/* 第２期の共通部品。既存トップ本文のスタイルは変更しない。 */
.l-header--phase2 .l-header__inner { gap: 32px; }
.l-header--phase2 .p-header__logo { flex: 0 0 154px; width: 154px; }
.l-header--phase2 .p-header__logo img { width: 154px; height: 48px; object-fit: contain; }
.l-header--phase2 .p-header__nav { margin-left: auto; white-space: nowrap; }
.l-header--phase2 .p-header__nav a[aria-current="page"] { color: var(--color-support); font-weight: 500; }
.l-header--phase2 .c-button--header { flex-shrink: 0; border-radius: 4px; }
.l-footer--phase2 { padding-block: 64px; color: #aebfd0; }
.l-footer--phase2 .l-footer__inner { grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 80px; }
.l-footer--phase2 .p-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
.l-footer--phase2 .p-footer__logo-plate { display: block; padding: 16px; border-radius: 4px; background: #fff; }
.l-footer--phase2 .p-footer__logo-plate img { position: static; width: 176px; height: 60px; margin: 0; object-fit: contain; }
.l-footer--phase2 .p-footer__brand p { margin: 0; color: inherit; }
.l-footer--phase2 .p-footer__company, .l-footer--phase2 .p-footer__address { font-size: 13px; line-height: 24px; }
.l-footer--phase2 .p-footer__address { font-style: normal; }
.l-footer--phase2 .p-footer__copyright { font-family: var(--font-en); font-size: 11px; line-height: 20px; }
.l-footer--phase2 .p-footer__links { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.l-footer--phase2 .p-footer__links p { display: block; margin: 0; color: #fff; font-weight: 500; }
.l-footer--phase2 .p-footer__links a { margin: 0; font-size: 14px; line-height: 26px; }
.p-akari-page, .p-company-page { overflow-wrap: anywhere; }
.p-akari-section__inner, .p-company-section__inner { display: flex; flex-direction: column; align-items: stretch; gap: 48px; }
.c-section-title--phase2 { margin-bottom: 0; }
.c-section-title--phase2 .c-section-title__en { color: var(--color-support); letter-spacing: 2.5px; line-height: 13px; }
.c-section-title--phase2 .c-section-title__ja { color: var(--color-main); font-size: 28px; line-height: 44px; font-weight: 500; }
.c-section-title--phase2 .c-section-title__rule { width: auto; max-width: none; }
.p-phase2-cta { padding-block: 80px; color: #fff; text-align: center; background: var(--color-main); }
.p-phase2-cta .l-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.p-phase2-cta .c-section-title__ja, .p-phase2-cta .c-section-title__en { color: #fff; }
.p-phase2-cta .c-button { margin-top: 8px; min-width: 272px; border-radius: 4px; }
.p-akari-page .c-button, .p-company-page .c-button { align-self: flex-start; min-width: 272px; border-radius: 4px; font-size: 14px; }
.p-akari-page .p-phase2-cta .c-button, .p-company-page .p-phase2-cta .c-button { align-self: center; }
.p-akari-page a:focus-visible, .p-company-page a:focus-visible, .l-header--phase2 a:focus-visible, .l-footer--phase2 a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
#agency { scroll-margin-top: 100px; }

/* 中間幅でもナビが重ならないよう、既存のSPメニューを利用する。 */
@media (max-width: 1100px) {
  .l-header--phase2 .p-header__nav { display: none; }
  .l-header--phase2 .c-button--header { margin-left: auto; }
  .l-header--phase2 .p-header__mobile-nav { position: relative; display: block; }
  .l-header--phase2 .p-header__menu { display: flex; flex-direction: column; gap: 5px; width: 28px; padding: 4px; cursor: pointer; list-style: none; }
  .l-header--phase2 .p-header__menu::-webkit-details-marker { display: none; }
  .l-header--phase2 .p-header__menu span { width: 20px; height: 2px; background: var(--color-main); }
  .l-header--phase2 .p-header__mobile-nav nav { position: absolute; top: 44px; right: -16px; display: flex; flex-direction: column; width: 240px; padding: 16px 24px; color: #fff; background: var(--color-main); box-shadow: 0 8px 24px #06233f33; }
  .l-header--phase2 .p-header__mobile-nav nav a { padding-block: 12px; border-bottom: 1px solid #ffffff33; }
  .l-footer--phase2 .l-footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .l-header--phase2 .l-header__inner { gap: 16px; }
  .l-header--phase2 .p-header__logo { flex-basis: 120px; width: 120px; }
  .l-header--phase2 .p-header__logo img { width: 120px; height: 42px; }
  .l-header--phase2 .c-button--header { padding-inline: 12px; }
  .l-footer--phase2 { padding: 48px 0; }
  .l-footer--phase2 .l-footer__inner { grid-template-columns: 1fr 1fr; width: calc(100% - 40px); gap: 40px 24px; }
  .l-footer--phase2 .p-footer__brand { grid-column: 1 / -1; grid-row: auto; }
  .p-akari-section__inner, .p-company-section__inner { gap: 32px; }
  .c-section-title--phase2 .c-section-title__ja { font-size: 24px; line-height: 36px; }
  .p-phase2-cta { padding-block: 64px; }
  .p-akari-page .c-button, .p-company-page .c-button { min-width: 0; width: 100%; }
  #agency { scroll-margin-top: 80px; }
}
