/* 共通レイアウト: ヘッダー / フッター */

.header-inner {
  display: flex;
  justify-content: space-between;
  max-width: 97%;
  margin: auto;
}
.header-menu-list > li + li {
  margin-left: 20px;
  padding-left: 3px;
  border-left: 0;
}

/* ヘッダー「事業情報」ドロップダウン */
@media (min-width: 769px) {
  .header {
    position: relative;
    z-index: 1000;
    overflow: visible;
  }
  .header-menu-list-nav,
  .header-menu-list {
    overflow: visible;
  }
  .header-menu-list > .ina-nav-business {
    position: relative;
  }
  .ina-nav-business > a {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
  }
  .ina-nav-business > a::after {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .ina-nav-submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 280px;
    margin: 0;
    padding: 12px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: rgba(248, 248, 249, .98);
    box-shadow: 0 16px 38px rgba(16, 24, 40, .14);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .ina-nav-submenu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 16px;
    content: "";
  }
  .ina-nav-business:hover .ina-nav-submenu,
  .ina-nav-business:focus-within .ina-nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
  .ina-nav-business:hover > a::after,
  .ina-nav-business:focus-within > a::after {
    transform: translateY(3px) rotate(225deg);
  }
  .ina-nav-submenu li + li {
    margin-top: 3px;
  }
  .ina-nav-submenu a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: #2d323e;
    font-family: YakuHanJP, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
  }
  .ina-nav-submenu a:hover,
  .ina-nav-submenu a:focus-visible {
    background: #fff;
    color: #217cb7;
    transform: translateX(3px);
  }
  .ina-nav-submenu a:focus-visible {
    outline: 2px solid rgba(33, 124, 183, .3);
    outline-offset: -2px;
  }
}

/* モバイルでは事業情報の3リンクをメニュー内に展開 */
@media (max-width: 768px) {
  .header-menu-list-nav-sp .header-menu-list-sp > .ina-sp-business {
    padding: 1.1rem 1rem;
  }
  .header-menu-list-nav-sp .ina-sp-business__title {
    display: block;
    color: #2d323e;
    font-size: clamp(1.15rem, 1rem + 1vw, 1.45rem);
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.4;
  }
  .header-menu-list-nav-sp .header-menu-list-sp .ina-sp-submenu {
    margin: .65rem 0 0;
    padding: 0 0 0 .9rem;
    list-style: none;
    text-align: left;
  }
  .header-menu-list-nav-sp .header-menu-list-sp .ina-sp-submenu li,
  .header-menu-list-nav-sp .header-menu-list-sp .ina-sp-submenu li + li {
    border: 0;
  }
  .header-menu-list-nav-sp .header-menu-list-sp .ina-sp-submenu a {
    display: block;
    padding: .42rem 0;
    color: #59636f;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.5;
  }
}

/* /test2 コンパクトヘッダー */
@media (min-width: 769px) {
  .header--compact .header-inner {
    align-items: center;
  }
  .header--compact .header-contents:first-child {
    gap: clamp(10px, 1.2vw, 18px);
  }
  .header--compact .header-contents:last-child {
    margin-left: auto;
    gap: clamp(18px, 2vw, 30px);
  }
  .header--compact .header-menu-list-nav--compact .header-menu-list {
    align-items: center;
    margin-left: 0;
  }
  .header--compact .header-menu-list-nav--compact .header-menu-list > li + li {
    margin-left: clamp(9px, 1.35vw, 18px);
    padding-left: 0;
  }
  .header--compact .ina-burger {
    display: block;
  }
  .header--compact .ina-nav-mypage > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2d323e;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
  }
  .header--compact .ina-nav-mypage > a:hover {
    background: transparent;
    color: #217cb7;
  }
  .header--compact .ina-nav-mypage svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
  }
  .header--compact .ina-header-tagline {
    margin: 0;
    color: #667085;
    font-family: YakuHanJP, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: clamp(.58rem, .54rem + .12vw, .67rem);
    font-weight: 600;
    letter-spacing: .045em;
    line-height: 1.55;
    text-align: left;
    white-space: nowrap;
  }
  .header--compact .ina-header-tagline span {
    display: block;
  }
}

@media (max-width: 768px) {
  .header--compact .ina-burger {
    display: block;
  }
  .header--compact .header-contents:first-child {
    gap: 8px;
  }
  .header--compact .ina-header-tagline {
    margin: 0;
    color: #667085;
    font-family: YakuHanJP, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: .53rem;
    font-weight: 600;
    letter-spacing: .025em;
    line-height: 1.45;
    text-align: left;
    white-space: nowrap;
  }
  .header--compact .ina-header-tagline span {
    display: block;
  }
  .header--compact .title-logo img {
    width: 82px;
  }
  .header-menu-list-nav-sp .header-menu-list-sp a.ina-sp-mypage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
  }
  .header-menu-list-nav-sp .ina-sp-mypage svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
  }
}

/* 全画面ドロワー: PCは写真40% + メニュー60%、SPはメニューのみ */
.header-menu-list-nav-sp {
  display: grid !important;
  grid-template-columns: 50% 50%;
  align-items: stretch;
  justify-content: stretch;
  background: #fff;
}
.ina-drawer-visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e8ecef;
  cursor: pointer;
}
.ina-drawer-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 70%, rgba(0, 0, 0, .08));
  content: "";
  pointer-events: none;
}
.ina-drawer-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .42s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
.ina-drawer-visual img.is-active {
  opacity: 1;
  transform: scale(1);
}
.ina-drawer-close {
  position: fixed;
  z-index: 10005;
  top: clamp(22px, 3vw, 38px);
  right: clamp(22px, 3vw, 42px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #1e2430;
  cursor: pointer;
  font-family: YakuHanJP, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: color .18s ease, opacity .2s ease, visibility 0s linear .2s;
}
body.ina-nav-open .ina-drawer-close {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.ina-drawer-close i {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}
.ina-drawer-close i::before,
.ina-drawer-close i::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: background-color .18s ease;
}
.ina-drawer-close i::before {
  transform: rotate(45deg);
}
.ina-drawer-close i::after {
  transform: rotate(-45deg);
}
.ina-drawer-close:hover {
  color: #217cb7;
}
.ina-drawer-panel {
  display: flex;
  min-width: 0;
  min-height: 100dvh;
  flex-direction: column;
  padding: clamp(88px, 11vh, 124px) clamp(48px, 7vw, 108px) clamp(34px, 5vh, 56px);
  overflow-y: auto;
  background: #fff;
  color: #1e2430;
  font-family: YakuHanJP, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu {
  position: static !important;
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: auto 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  text-align: left;
}
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu > li,
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu > li + li {
  margin-left: 0;
  padding-left: 0;
  border: 0;
}
.ina-drawer-group {
  margin: 0 0 clamp(22px, 3.2vh, 34px);
}
.ina-drawer-heading {
  margin: 0 0 10px;
  padding: 0 0 9px;
  border-bottom: 1px solid #dfe3e7;
  color: #1e2430;
  font-size: clamp(1.05rem, .92rem + .55vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.45;
}
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu a.ina-drawer-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0 0 9px;
  border-bottom: 1px solid #dfe3e7;
  border-radius: 0;
  color: #1e2430;
  font-size: clamp(1.05rem, .92rem + .55vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.45;
}
.ina-drawer-heading--link span,
.ina-drawer-login span {
  color: #217cb7;
  font-size: .9em;
  transition: transform .18s ease;
}
.ina-drawer-heading--link:hover span,
.ina-drawer-login:hover span {
  transform: translateX(4px);
}
.ina-drawer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px clamp(20px, 2.3vw, 34px);
}
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu .ina-drawer-links a {
  position: relative;
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  color: #2d323e;
  font-size: clamp(.82rem, .77rem + .18vw, .94rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  text-decoration: none;
}
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu .ina-drawer-links a:hover,
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu .ina-drawer-links a:focus-visible {
  color: #217cb7;
}
.ina-drawer-archive {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 7px;
  color: #a3aab3;
  font-size: .72rem;
  font-weight: 500;
}
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu .ina-drawer-archive a {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 2px 0;
  color: #a3aab3;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #d2d6db;
  text-underline-offset: 3px;
}
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu .ina-drawer-archive a:hover {
  color: #667085;
}
.header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu a.ina-drawer-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  color: #1e2430;
  font-size: clamp(.98rem, .9rem + .3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.45;
}
.ina-drawer-group--login {
  margin-bottom: 0;
}
.ina-drawer-utility {
  display: flex;
  max-width: 720px;
  flex-wrap: wrap;
  gap: 8px clamp(15px, 1.7vw, 24px);
  margin-top: clamp(24px, 4vh, 42px);
  padding-top: 18px;
  border-top: 1px solid #edf0f2;
}
.ina-drawer-utility a {
  color: #7d8691;
  font-size: clamp(.68rem, .65rem + .1vw, .75rem);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}
.ina-drawer-utility a:hover,
.ina-drawer-utility a:focus-visible {
  color: #217cb7;
}

@media (max-width: 768px) {
  .header-menu-list-nav-sp {
    grid-template-columns: 1fr;
  }
  .ina-drawer-visual {
    display: none;
  }
  .ina-drawer-close {
    top: 17px;
    right: 20px;
  }
  .ina-drawer-panel {
    min-height: 100dvh;
    padding: 82px clamp(22px, 7vw, 34px) 28px;
  }
  .header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu {
    max-width: none;
    margin: 0;
  }
  .ina-drawer-group {
    margin-bottom: 20px;
  }
  .ina-drawer-heading,
  .header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu a.ina-drawer-heading {
    margin-bottom: 7px;
    padding-bottom: 7px;
    font-size: 1.02rem;
  }
  .header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu .ina-drawer-links a {
    padding: 4px 0;
    font-size: .84rem;
  }
  .ina-drawer-links {
    gap: 3px 22px;
  }
  .ina-drawer-archive {
    margin-top: 5px;
    font-size: .67rem;
  }
  .header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu .ina-drawer-archive a {
    font-size: .67rem;
  }
  .header-menu-list-nav-sp .header-menu-list-sp.ina-drawer-menu a.ina-drawer-login {
    padding: 7px 0;
    font-size: .96rem;
  }
  .ina-drawer-utility {
    gap: 7px 16px;
    margin-top: 18px;
    padding-top: 14px;
  }
  .ina-drawer-utility a {
    font-size: .68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ina-drawer-visual img {
    transition: none;
  }
}

/* 共通フッター 2026-07-20 */
.ina-footer {
  width: 100%;
  background: #f6f7f8;
  color: #1e2430;
  font-family: YakuHanJP, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}
.ina-footer *,
.ina-footer *::before,
.ina-footer *::after {
  box-sizing: border-box;
}
.ina-footer__inner {
  width: 75vw;
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
}
.ina-footer__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
}
.ina-footer__brand a {
  display: block;
  width: fit-content;
}
.ina-footer__brand img {
  display: block;
  width: clamp(118px, 11vw, 148px);
  height: auto;
}
.ina-footer__brand p {
  margin: 1.1rem 0 0;
  color: #344054;
  font-size: clamp(.9rem, .84rem + .22vw, 1.02rem);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.7;
}
.ina-footer__member {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 190px;
  min-height: 48px;
  padding: .7rem 1rem .7rem 1.15rem;
  border: 1px solid #1e2430;
  border-radius: 7px;
  background: #1e2430;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.ina-footer__member:hover {
  background: transparent;
  color: #1e2430;
  transform: translateY(-1px);
}
.ina-footer__primary {
  border-top: 1px solid #cfd4da;
  border-bottom: 1px solid #cfd4da;
}
.ina-footer__primary ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.ina-footer__primary li:nth-child(3n + 2),
.ina-footer__primary li:nth-child(3n + 3) {
  border-left: 1px solid #e1e4e8;
}
.ina-footer__primary li:nth-child(n + 4) {
  border-top: 1px solid #e1e4e8;
}
.ina-footer__primary a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 62px;
  padding: .8rem 1.2rem;
  color: #1e2430;
  font-size: clamp(.82rem, .78rem + .14vw, .9rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.ina-footer__primary a:hover {
  background: #fff;
  color: #176d9f;
}
.ina-footer__lower {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3rem);
}
.ina-footer__utility,
.ina-footer__operator {
  width: 100%;
}
.ina-footer__utility ul {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ina-footer__utility a,
.ina-footer__logout button {
  border: 0;
  background: transparent;
  color: #667085;
  font-family: inherit;
  font-size: clamp(.92rem, .88rem + .16vw, 1rem);
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}
.ina-footer__logout button {
  padding: 0;
}
.ina-footer__utility a:hover,
.ina-footer__logout button:hover {
  color: #1e2430;
}
.ina-footer__operator p {
  margin: 0;
  color: #7b8492;
  font-size: clamp(.84rem, .8rem + .14vw, .92rem);
  font-weight: 500;
  line-height: 1.8;
}
.ina-footer__operator .ina-footer__gov {
  margin-bottom: .5rem;
  color: #1e2430;
  font-size: 1rem;
  font-weight: 700;
}
.ina-footer__operator .ina-footer__copyright {
  margin-top: 1rem;
  color: #98a2b3;
  font-family: Manrope, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.ina-footer a:focus-visible,
.ina-footer button:focus-visible {
  outline: 3px solid rgba(33, 124, 183, .28);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .ina-footer__inner {
    width: min(88vw, 560px);
    padding-top: 3.5rem;
  }
  .ina-footer__intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .ina-footer__member {
    width: 100%;
  }
  .ina-footer__primary ul {
    grid-template-columns: 1fr;
  }
  .ina-footer__primary li:nth-child(n) {
    border-left: 0;
  }
  .ina-footer__primary li + li {
    border-top: 1px solid #e1e4e8;
  }
  .ina-footer__primary a {
    min-height: 54px;
    padding-inline: .2rem;
  }
  .ina-footer__lower {
    gap: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ina-footer a,
  .ina-footer button {
    transition: none;
  }
}

/* ------------------------------------------------------------------
   SP(768px以下)横はみ出しの共通ガード(2026-08-11 柿森)
   .header-inner が flex(max-width:97%)で縮まない子を持つと全ページが右に流れる。
   apply/seminar 等 layouts.app を使う全ページに効かせるため app-layout.css に集約。
------------------------------------------------------------------ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .header-inner { max-width: 100%; padding-inline: 16px; }
  .header-inner > * { min-width: 0; }
}

/* ------------------------------------------------------------------
   全ページのフォントをサイト標準(Zen Kaku Gothic New)に統一(2026-08-11 柿森)
   common.css は body{font-family:sans-serif}止まりで、フォーム等が
   システムフォントで表示されヘッダーと不一致だった。既定を上書きして揃える。
   ※ 個別に font-family を持つ要素(ロゴのRoboto等)はそのまま優先される。
------------------------------------------------------------------ */
body {
  font-family: YakuHanJP, "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}
