/* ========================================
   common.css - 全8ページ共通
   ヘッダー / フッター / 共通ボタン・リンク・セクション見出し
   ======================================== */

/* ----- header ----- */
.header {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 16px 5px 20px;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 4px 0 0 rgba(0, 69, 153, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.header__logo {
  display: block;
  flex-shrink: 0;
  height: 40px;
  width: 141px;
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header__nav-item::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.header__nav-link {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

/* お問い合わせボタン：SPでは非表示、PC幅（1024px～）で表示（.btn より優先） */
.header .header__contact {
  display: none;
}

.header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.header__hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
}

.header__hamburger-icon span,
.header__hamburger-icon::before,
.header__hamburger-icon::after {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
}

.header__hamburger-icon::before,
.header__hamburger-icon::after {
  content: "";
}

.header__hamburger-icon::before {
  top: 0;
}

.header__hamburger-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.header__hamburger-icon::after {
  bottom: 0;
}

/* PC: ヘッダーはページ内で固定幅・ナビ表示（1024px直後で崩れないようフォント・gap控えめ） */
@media (min-width: 1024px) {
  .header {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    margin: 0 auto;
    padding: 8px 20px;
  }

  .header__inner {
    gap: 16px;
  }

  .header__logo {
    height: 48px;
    width: 169px;
    flex-shrink: 0;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
  }

  .header__nav-link {
    font-size: 14px;
    white-space: nowrap;
  }

  .header .header__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-width: 160px;
    padding: 0 20px;
    background: var(--color-primary);
    border-radius: 999px;
    font-family: var(--font-ja);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--color-white);
    flex-shrink: 0;
  }

  .header__contact-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
  }

  .header__hamburger {
    display: none;
  }
}

/* 1360px: ヘッダー余裕が出たらフォント・gap を Figma 通りに */
@media (min-width: 1360px) {
  .header {
    padding-left: 40px;
    padding-right: 40px;
  }

  .header__inner {
    gap: 20px;
  }

  .header__nav {
    gap: 40px;
  }

  .header__nav-link {
    font-size: 16px;
  }

  .header .header__contact {
    gap: 12px;
    min-width: 180px;
    padding: 0 24px;
    font-size: 16px;
  }

  .header__contact-icon {
    width: 18px;
    height: 18px;
  }
}

/* ヘッダーがページ内配置のとき（下層など） */
.header--static {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  margin: 0 auto;
}

/* ----- SP用ドロワーメニュー（ハンバーガー開閉） ----- */
.header-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.header-drawer.is-open {
  visibility: visible;
  opacity: 1;
}

.header-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.header-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-white);
  box-shadow: -4px 0 16px rgba(0, 69, 153, 0.12);
  padding: 72px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

/* ドロワー内の閉じるボタン */
.header-drawer__close {
  position: absolute;
  top: 16px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  cursor: pointer;
}

.header-drawer__close-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.header-drawer__close-icon::before,
.header-drawer__close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
}

.header-drawer__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.header-drawer__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.header-drawer.is-open .header-drawer__panel {
  transform: translateX(0);
}

.header-drawer__nav {
  flex: 1;
}

.header-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-drawer__item {
  border-bottom: 1px solid rgba(0, 69, 153, 0.1);
}

.header-drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.header-drawer__link::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(221deg, #c5dff7 15.32%, #3da2ff 85.75%);
}

.header-drawer__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

/* ハンバーガー → × アイコン（開いているとき） */
.header.is-menu-open .header__hamburger-icon::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header.is-menu-open .header__hamburger-icon span {
  opacity: 0;
}

.header.is-menu-open .header__hamburger-icon::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* PC時はドロワー非表示 */
@media (min-width: 1024px) {
  .header-drawer {
    display: none;
  }
}

/* ----- footer ----- */
.footer {
  background: var(--color-white);
}

.footer__inner {
  padding: 48px 28px;
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 40px;
}

.footer__menu-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.footer__menu-link::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(221deg, #c5dff7 15.32%, #3da2ff 85.75%);
}

.footer__policy {
  margin-bottom: 40px;
  font-family: var(--font-ja);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-text-gray);
}

/* SP: フッターお問い合わせボタンは非表示（PC時のみ表示） */
.footer__contact {
  display: none;
}

.footer__company {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__logo {
  display: block;
  width: 167px;
  height: 60px;
}

.footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__address {
  font-style: normal;
  font-family: var(--font-ja), var(--font-en);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin: 0;
}

.footer__tel {
  margin: 0;
  font-family: var(--font-en);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.footer__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  background: var(--color-text);
}

.footer__copy-text {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
  }

  .footer__menu {
    flex-direction: row;
    gap: 40px;
    margin-bottom: 0;
  }

  .footer__policy {
    width: 100%;
    margin-bottom: 24px;
  }

  .footer__company {
    margin-top: 0;
  }
}

/* 1024px: フッター PC レイアウト（左：会社情報 / 右：ナビ＋お問い合わせボタン＋プライバシー） */
@media (min-width: 1024px) {
  .footer__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: auto;
    margin-right: auto;
    padding: 60px 40px;
  }

  .footer__company {
    order: 1;
    width: 284px;
    flex-shrink: 0;
  }

  .footer__right {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 28px;
    flex-shrink: 0;
  }

  .footer__right-top {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 36px;
  }

  .footer__menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 40px;
    margin-bottom: 0;
  }

  .footer__menu-col {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }

  .footer__menu-link {
    font-size: 16px;
    color: #191919;
  }

  .footer__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 200px;
    height: 46px;
    padding: 0 24px;
    background: var(--color-primary);
    border-radius: 999px;
    font-family: var(--font-ja);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--color-white);
  }

  .footer__contact:hover {
    opacity: 0.9;
  }

  .footer__contact-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
  }

  .footer__policy {
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
  }

  .footer__policy a {
    color: inherit;
  }
}

/* 1360px: フッター Figma 通り padding 120px/75px・コピーエリア高さ 40px・ロゴサイズ等 */
@media (min-width: 1360px) {
  .footer__inner {
    padding: 75px 120px;
  }

  .footer__logo {
    width: 250px;
    height: 71px;
  }

  .footer__address,
  .footer__tel {
    font-size: 14px;
    line-height: 1.4;
    color: #191919;
  }

  .footer__copy {
    height: 40px;
  }
}

/* ----- components（共通ボタン・リンク・セクション見出し） ----- */

/* セクション見出し（下層のページタイトルでも流用） */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.section-head--center {
  align-items: center;
  text-align: center;
}

.section-head__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin: 0;
}

.section-head__sub {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0;
}

.section-head__sub--white {
  background: none;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .section-head__title {
    font-size: 40px;
    letter-spacing: 0.1em;
  }

  .section-head__sub {
    font-size: 20px;
  }
}

/* ボタン：青塗り（primary） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  height: 44px;
  min-width: 180px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ボタン：白枠（outline） */
.btn--outline {
  background: var(--color-white);
  border: 1px solid var(--color-accent);
  color: transparent;
  background-image: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
}

.btn--outline:hover {
  opacity: 0.9;
}

.btn--large {
  height: 60px;
  min-width: 300px;
  padding: 0 40px 0 24px;
  font-size: 20px;
  letter-spacing: 0.05em;
}

/* 矢印付きリンク（お知らせ一覧・会社概要など） */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.link-arrow__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.link-arrow__icon img,
.link-arrow__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.link-arrow--white {
  color: var(--color-white);
}
