/* 全ページ共通: 変数・リセット・ヘッダー・フッター・セクション見出し・ボタン */
:root {
  --cream: #f4f1e8;
  --yellow: #dfb448;
  --slate: #849bac;
  --ink: #000;
  --white: #fff;
  --content: 1244px;
  --font: "DM Sans", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 1440px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  /* カンプは DM Sans の既定の字形（opsz 14）。大きい文字で細身にならないよう固定する */
  font-variation-settings: "opsz" 9;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, h1, h2, h3, p { margin: 0; padding: 0; }
ul { list-style: none; }

.container { width: var(--content); margin: 0 auto; }

/* ヘッダー */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 64px;
}
.site-header__inner {
  width: var(--content);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}
.site-header__logo img { width: 42px; height: 42px; }
.gnav { margin-left: auto; display: flex; align-items: center; }
.gnav__list { display: flex; gap: 48px; margin-right: 70px; }
.gnav__list a,
.gnav__contact {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}
.gnav__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 42px;
  border-radius: 21px;
  background: var(--ink);
  color: var(--white);
}

/* セクション見出し（英語＋インドネシア語の小見出し＋区切り線） */
.sec-head {
  padding-bottom: 29px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 27px;
  color: var(--white);
}
.sec-head__en {
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}
.sec-head__sub {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
}

/* MORE ボタン */
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 150px;
  height: 42px;
  padding: 0 22px 0 23px;
  border: 1.5px solid var(--ink);
  border-radius: 21px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}
.btn-more img { width: 11px; height: 11px; }

/* 角丸カード */
.panel {
  background: var(--cream);
  border-radius: 10px;
}

/* フッター */
.site-footer {
  background: var(--slate);
  color: var(--white);
  padding: 121px 0 0;
  height: 479px;
}
.site-footer__inner {
  width: var(--content);
  margin: 0 auto;
  position: relative;
  height: 100%;
}
.footer-brand { display: flex; gap: 20px; }
.footer-brand img { width: 78px; height: 78px; }
.footer-brand__name { font-size: 36px; font-weight: 700; line-height: 1; margin-top: -5px; } /* 字の上端をロゴの上端に揃える */
.footer-brand__addr { margin-top: 9px; font-size: 14px; line-height: 1.5; }
.footer-nav {
  position: absolute;
  top: 6px;
  left: 538px;
  display: grid;
  grid-template-columns: 229px 178px auto;
  row-gap: 32px;
}
.footer-nav__title { font-size: 16px; font-weight: 700; letter-spacing: 0.15em; line-height: 1; }
.footer-nav__list { margin-top: 12px; }
.footer-nav__list li { font-size: 14px; letter-spacing: 0.12em; line-height: 28px; }
.footer-nav__sns { grid-column: 3; grid-row: 2; }
.footer-nav__sns img { width: 30px; height: 30px; }
.footer-copy { position: absolute; top: 236px; left: 0; font-size: 14px; }
.footer-contact {
  position: absolute;
  top: 210px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.footer-contact { transition: color 0.3s; }
.footer-contact:hover { color: var(--yellow); }
/* 矢印は文字色に合わせる（ホバーでイエロー） */
.footer-contact .arrow {
  width: 20px;
  height: 20px;
  margin-top: 8px;
  background: currentColor;
  -webkit-mask: url(../img/common/arrow_bk.svg) no-repeat center / contain;
  mask: url(../img/common/arrow_bk.svg) no-repeat center / contain;
}

/* SERVICE のサブメニュー（マウスオーバーで表示） */
.gnav__has-sub { position: relative; }
.gnav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 19px;
  padding: 0 30px;
  height: 46px;
  align-items: center;
  white-space: nowrap;
  background: #f8f6f0;
  border-radius: 8px;
}
.gnav__has-sub:hover .gnav__sub,
.gnav__has-sub:focus-within .gnav__sub { display: flex; }
.gnav__has-sub::after { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 26px; }
.gnav__list .gnav__sub a { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.gnav__sub li { display: flex; align-items: center; line-height: 1; }
.gnav__sub li + li::before { content: ""; width: 1px; height: 10px; margin: 0 20px; background: var(--ink); }

/* 下層ページ共通: 見出し。.page-mv はカンプ位置のメインビジュアル（いまは PRIVACY POLICY だけが使う） */
.subpage { position: relative; overflow: hidden; }
.page-mv {
  position: absolute;
  top: 1638px;
  left: calc(50% - 390px);
  width: 1163px;
  z-index: 0;
  pointer-events: none;
}
.page-inner { position: relative; z-index: 1; width: 1120px; margin: 0 auto; }
.page-head { padding-top: 163px; }
.page-head__en { margin-left: -5px; font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.page-head__ja {
  display: flex;
  align-items: center; /* 小さいインドネシア語は大きい日本語の縦中央に揃える */
  margin-top: 6px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
}
.page-head__id { position: relative; top: -2px; margin-left: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; } /* 和文の字面の中央に合わせて少し上げる */

/* 下層ページのセクション見出し（イエローの英語ラベル＋黒帯の日本語＋下線） */
.sub-label { font-size: 17px; font-weight: 700; line-height: 1; color: var(--yellow); }
.sub-title {
  margin-top: 12px;
  border-bottom: 1.5px solid var(--ink);
  line-height: 1;
}
.sub-title span {
  display: inline-flex;
  align-items: center;
  width: 320px;
  height: 64px;
  padding-left: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ホバー（色の変化は 0.3 秒で揃える） */
.gnav__contact,
.btn-more,
.btn-back { transition: background-color 0.3s, color 0.3s; }
.gnav__contact:hover { background: var(--yellow); }
.site-header--inverse .gnav__contact:hover { background: var(--yellow); color: var(--white); }
.btn-more:hover,
.btn-back:hover { background: var(--ink); color: var(--white); }
.btn-more img { transition: filter 0.3s; }
.btn-more:hover img { filter: invert(1); }

/* SERVICE のサブメニューはフェードで出す */
.gnav__sub { display: flex; visibility: hidden; opacity: 0; transition: opacity 0.3s, visibility 0.3s; }
.gnav__has-sub:hover .gnav__sub,
.gnav__has-sub:focus-within .gnav__sub { visibility: visible; opacity: 1; }

/* メインビジュアルは全ページ TOP と同じ位置で画面に固定し、本文だけがスクロールする（アニメーション指示） */
.fixed-mv {
  position: fixed;
  top: 152px;
  left: calc(50% - 460px);
  width: 1163px;
  max-width: none;
  z-index: 0;
  pointer-events: none;
}
/* スクロールすると全面にかぶさるベタ（TOP はイエロー、SERVICE はアイボリー） */
.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.veil.is-on { opacity: 1; }
.veil--yellow { background: var(--yellow); }
.veil--yellow.is-on { opacity: 0.86; } /* メインビジュアルが透けて見える程度 */
/* SERVICE の MV はベールと一緒に出す */
.fixed-mv--veiled { opacity: 0; transition: opacity 0.8s ease; }
.veil.is-on + .fixed-mv--veiled { opacity: 1; }
.site-footer { position: relative; z-index: 2; }

/* スクロールで出てくるアニメーション。クラスは main.js が付ける */
.fx {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--fx-delay, 0s);
}
.fx--line { display: block; }
.fx--gather {
  transform: translate(var(--gx, 0), var(--gy, 0)) scale(0.94);
  transition-duration: 1s, 1s;
}
.fx.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .veil, .fixed-mv--veiled { transition: none; }
}

/* ヘッダーは追従・透過。スクロールしたら半透明のクリームを敷いてぼかす */
.site-header {
  position: fixed;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(244, 241, 232, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.gnav__list > li > a, .gnav__contact { transition: color 0.3s, background-color 0.3s; }
/* SERVICE の白抜きヘッダーも、スクロールしたら通常の色に戻す */
.site-header--inverse.is-scrolled .gnav__list > li > a { color: var(--ink); }
.site-header--inverse.is-scrolled .gnav__contact { background: var(--ink); color: var(--white); }
.site-header--inverse.is-scrolled .gnav__contact:hover { background: var(--yellow); }
.site-header__logo img { transition: filter 0.3s; }
.site-header--inverse.is-scrolled .site-header__logo img { filter: brightness(0); }
