/* FRONTIER DIRECT LP 共通スタイル（デザイントークン・ヘッダー・フッター・ボタン） */

/* ---------- リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

/* display指定を持つ要素（.sp-menu等）でもhidden属性を確実に効かせる */
[hidden] {
  display: none !important;
}

/* ---------- デザイントークン ---------- */
:root {
  --color-navy: #17325f;
  /* メインCTA・見出し */
  --color-navy-dark: #0f2547;
  /* フッター背景・濃紺セクション */
  --color-text: #182338;
  /* 基本テキスト */
  --color-text-sub: #5a6884;
  /* サブテキスト */
  --color-border: #dde4ef;
  /* 罫線 */
  --color-red: #cc242b;
  /* メーカー向けテーマ（Figma書き出しSVGの実測値） */
  --color-yellow: #D9A716;
  /* メーカー向けテーマ（Figma書き出しSVGの実測値） */
  --color-bg-light: #f5f7fb;
  /* 薄背景 */
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Archivo", "Noto Sans JP", sans-serif;
  --font-heading: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --header-height: 80px;
  --radius: 8px;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.8;
  /* palt（約物詰め）は使わない: Figmaは詰めない前提で文字幅・折返しを設計しているため */
}

/* ---------- レイアウト共通 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: 1136px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}

.btn:hover {
  opacity: .85;
}

.btn--sm {
  height: 40px;
  padding: 0 17px;
  font-size: 14px;
  gap: 8px;
}

.btn--primary {
  background: var(--color-navy);
  border: 1px solid var(--color-navy);
  color: #fff;
}

.btn--outline {
  background: #fff;
  border: 1.4px solid var(--color-border);
  color: var(--color-navy);
}

.btn--ghost-white {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn__icon {
  width: 16px;
  height: 16px;
}

.btn__icon--lg {
  width: 24px;
  height: 24px;
}

/* ---------- ロゴ（波形＋FRONTIER＋DIRECTの3パーツ合成） ---------- */
.site-logo {
  position: relative;
  display: block;
}

.site-logo--header {
  width: 136.76px;
  height: 30px;
}

.site-logo--footer {
  width: 218.81px;
  height: 48px;
}

.site-logo img {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
}

.site-logo__wave {
  inset: 0 51.67% 0 0;
  width: 48.33% !important;
  height: 100% !important;
}

.site-logo__frontier {
  inset: 19.46% 10.13% 64.28% 63.63%;
  width: 26.24% !important;
  height: 16.26% !important;
}

.site-logo__direct {
  inset: 48.13% 0 19.45% 53.81%;
  width: 46.19% !important;
  height: 32.42% !important;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__inner {
  width: 100%;
  max-width: 1200px;
  height: 56px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.site-brand__tagline {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .96px;
  color: var(--color-text-sub);
  line-height: 1;
  padding-top: 2px;
  margin: 0 auto;
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 4px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.site-nav__link:hover {
  color: var(--color-navy);
}

.site-header__cta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 24px;
}

/* ハンバーガー（SPのみ表示） */
.hamburger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
}

.hamburger__bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--color-text-sub);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.hamburger__bar:nth-child(1) {
  top: 12px;
}

.hamburger__bar:nth-child(2) {
  top: 19px;
  width: 24px;
}

.hamburger__bar:nth-child(3) {
  top: 26px;
}

.hamburger.is-open .hamburger__bar:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger.is-open .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger__bar:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

/* SPドロワーメニュー */
body.is-menu-open {
  overflow: hidden;
  touch-action: none;
}

.sp-menu-overlay {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 90;
  background: rgba(24, 35, 56, .5);
}

.sp-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  z-index: 95;
  width: 220px;
  background: rgba(255, 255, 255, .95);
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

.sp-menu__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 4px 0 5px 4px;
  border-bottom: 1px solid var(--color-text);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.sp-menu__link img {
  width: 20px;
  height: 20px;
}

.sp-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-menu__cta .btn {
  width: 100%;
  font-size: 14px;
}

.sp-menu__cta .btn__icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 1100px) {

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    padding: 0 20px;
  }
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-navy-dark);
  padding: 80px 0 40px;
  color: #fff;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-footer__main {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 32px 24px;
  gap: 40px;
}

.site-footer__about {
  width: 568px;
  max-width: 100%;
}

.site-footer__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .8);
}

.site-footer__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}

.site-footer__nav {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.site-footer__navlink {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 4px 2px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.site-footer__navlink:hover {
  opacity: .8;
}

.site-footer__chevron {
  display: none;
  width: 20px;
  height: 20px;
}

.site-footer__cta {
  display: flex;
  gap: 12px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .6);
  margin-top: 0;
  padding: 25px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copy {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .6px;
  color: rgba(255, 255, 255, .6);
  line-height: 1;
}

.site-footer__privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
  line-height: 1;
}

.site-footer__privacy img {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 40px;
  }

  .site-footer__inner {
    padding: 0 20px;
  }

  .site-footer__main {
    flex-direction: column;
    padding: 0 0 24px;
    gap: 32px;
  }

  .site-footer__about {
    width: 100%;
  }

  .site-footer__right {
    align-items: stretch;
    gap: 32px;
  }

  .site-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
    justify-content: stretch;
    padding: 0 20px;
  }

  .site-footer__navlink {
    justify-content: space-between;
    height: 40px;
    border-bottom: 1px solid #fff;
    padding: 4px 0 5px 4px;
  }

  .site-footer__chevron {
    display: block;
  }

  .site-footer__cta {
    width: 100%;
  }

  .site-footer__cta .btn {
    flex: 1;
    font-size: 14px;
    padding: 0 12px;
  }

  .site-footer__cta .btn__icon--lg {
    width: 20px;
    height: 20px;
  }

  .site-footer__bottom {
    padding: 25px 0 0;
  }
}
