/* =========================================================
   BIPAR — Brand stylesheet
   コンセプト: 「バラさない。」
   黒 × 黄色 — 鉄とオイルの黒に、走り続ける熱の黄色
   ========================================================= */

:root {
  /* ブランドカラー：黒 × 黄色 */
  --navy: #f5f5f0;         /* 文字色（黒地の上の明るい文字） */
  --navy-2: #b9b9b2;       /* 補助の文字色 */
  --white: #0c0c0c;        /* ページの地色（黒） */
  --ivory: #151515;        /* 交互に使うセクションの地色 */
  --surface: #1b1b1b;      /* カード・入力欄などの面 */
  --sky: #ffd400;          /* アクセントの黄色 */
  --sky-deep: #ffe14d;     /* 黒地の上で使う明るい黄色（文字・ホバー） */
  --sky-light: #222222;    /* 薄い面 */
  --sky-pale: #121212;     /* 交互に使うセクションの地色 */
  --on-accent: #0c0c0c;    /* 黄色の上の文字色 */
  --mint: #ffb300;
  --japan: #e63946;        /* 日の丸の赤 — メイドインジャパンの炎 */
  --steel: #8e8e87;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);

  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-display: "Oswald", "Zen Kaku Gothic New", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 0px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.85;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 900; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--sky-deep); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* ページ最上部では透明にして、トップの動画をヘッダーの裏まで流す（スクロールすると黒帯に） */
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.site-header::before {
  /* 動画の上でもロゴとメニューが読めるよう、上端だけうっすら暗くする */
  content: "";
  position: absolute;
  inset: 0 0 -24px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 100%);
  transition: opacity .3s;
}
.site-header.is-scrolled::before,
.site-header.is-solid::before { opacity: 0; }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: auto;
  height: 40px;
  flex-shrink: 0;
}
.logo-words { display: flex; flex-direction: column; justify-content: center; }
.logo-type {
  display: block;
  width: 116px;
  height: auto;
  position: relative;
  top: 3px; /* 文字ロゴだけ少し下げてキャッチコピーに寄せる（キャッチコピーの位置は変えない） */
}
.site-footer .logo-type { top: 0; }
.logo-sub {
  display: block;
  font-family: var(--font-jp);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--steel);
  margin-top: 6px;
  white-space: nowrap;
}
.site-footer .logo { align-items: center; gap: 12px; }
.site-footer .logo-mark { height: 52px; }
.site-footer .logo-type { width: 150px; }

/* ---------- Global nav（PC：横並び／1180px以下：全画面メニュー） ---------- */
.global-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 24px; }
.nav-list a {
  display: block;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  position: relative;
  padding: 8px 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-no, .nav-en, .nav-foot { display: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.global-nav .nav-cta { min-height: 40px; padding: 0 22px; font-size: 13px; }

/* 言語切り替え（JP / EN） */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, .3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, .6);
  transition: color .2s, background .2s;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { background: #fff; color: #0c0c0c; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 110;
  transition: background .2s, border-color .2s;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--navy);
  transition: transform .3s, opacity .3s, top .3s, background .2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle { background: var(--sky); border-color: var(--sky); }
.nav-open .nav-toggle span { background: var(--on-accent); }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-header .logo { position: relative; z-index: 110; }
  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 16px) var(--gutter) 28px;
    background: #0c0c0c;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .global-nav::before {
    /* 背景に大きく透かしの BIPAR */
    content: "BIPAR";
    position: absolute;
    right: -0.08em;
    bottom: -0.18em;
    font-family: var(--font-display);
    font-size: clamp(120px, 34vw, 320px);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 212, 0, .12);
    pointer-events: none;
  }
  .nav-open .global-nav { opacity: 1; visibility: visible; }
  .nav-list, .nav-actions, .nav-foot { position: relative; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 720px; margin: 0 auto; }
  .nav-list li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav-list a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 4px;
    font-size: 20px;
    white-space: normal;
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .45s, transform .45s cubic-bezier(.2, .7, .2, 1), color .2s;
  }
  .nav-open .nav-list a { opacity: 1; transform: none; }
  .nav-list li:nth-child(2) a { transition-delay: .04s; }
  .nav-list li:nth-child(3) a { transition-delay: .08s; }
  .nav-list li:nth-child(4) a { transition-delay: .12s; }
  .nav-list li:nth-child(5) a { transition-delay: .16s; }
  .nav-list li:nth-child(6) a { transition-delay: .2s; }
  .nav-list li:nth-child(7) a { transition-delay: .24s; }
  .nav-list a::after { display: none; }
  .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--sky); }
  .nav-no {
    display: inline;
    flex: none;
    width: 28px;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: .1em;
    color: var(--sky);
  }
  .nav-en {
    display: inline;
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
  }
  .nav-actions {
    width: 100%;
    max-width: 720px;
    margin: 28px auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .global-nav .nav-cta { min-height: 56px; font-size: 16px; }
  .lang-switch { align-self: center; font-size: 13px; }
  .lang-switch a { min-width: 64px; height: 38px; }
  .nav-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    width: 100%;
    max-width: 720px;
    margin: 24px auto 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
  }
  .nav-foot a { color: inherit; text-decoration: none; font-weight: 700; }
  .nav-foot a:hover { color: var(--sky); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
}
@media (max-width: 1180px) and (min-height: 700px) { .nav-list a { padding: 20px 4px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  border: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--on-accent);
  box-shadow: none;
}
.btn-primary:hover { background: #fff36b; border-color: #fff36b; }
.btn-white { background: var(--on-accent); border-color: var(--on-accent); color: var(--sky); }
.btn-white:hover { background: #262626; border-color: #262626; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 13px; white-space: nowrap; }
/* 幅広の黄色いボタン（文字は左、矢印は右端） */
.btn-block { justify-content: space-between; min-width: min(100%, 340px); min-height: 64px; padding: 0 28px; font-size: 16px; }
/* 下線付きの文字リンク */
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: min(100%, 260px);
  padding: 14px 0;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, .7);
  transition: border-color .2s, color .2s;
}
.btn-line:hover { color: var(--sky); border-color: var(--sky); }
.btn-line .arrow { transition: transform .2s; }
.btn-line:hover .arrow { transform: translateX(4px); }
@media (max-width: 600px) { .btn-block, .btn-line { width: 100%; } }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Section base ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--sky { background: var(--sky-pale); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}
.section-title {
  font-size: clamp(28px, 4.6vw, 48px);
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.section-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 720px;
  color: var(--navy-2);
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero（全面動画＋暗いオーバーレイ） ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 48px;
  overflow: hidden;
  background: #000;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg .photo--hero,
.hero-bg .photo--hero.has-video {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}
.hero-bg .photo-caption { display: none; }
.hero-bg .photo-empty { border: 0; border-radius: 0; background: #111; color: #444; }
.hero::after {
  /* 文字が読めるよう動画を暗くする */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .25) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 45%);
}
.hero .container { position: relative; z-index: 2; pointer-events: none; }
.hero-content { max-width: 860px; pointer-events: auto; }
.hero-eyebrow {
  font-family: var(--font-display);
  letter-spacing: .3em;
  font-size: 13px;
  color: var(--sky);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.12;
  margin-bottom: 28px;
  color: #fff;
}
.hero-title .hl { color: var(--sky); }
.hero-copy {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.1;
  letter-spacing: .08em;
  max-width: 600px;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, auto); justify-content: start; gap: 24px 56px; } }
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.hero-stats .stat-num small { font-size: .5em; margin-left: 3px; color: var(--sky); }
.hero-stats .stat-label { margin-top: 10px; font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .6); }
@media (max-width: 600px) {
  .hero { padding-bottom: 40px; }
  .hero-eyebrow { letter-spacing: .14em; font-size: 12px; }
  .story-step .to { font-size: 14px; }
  .hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .45) 100%); }
}

/* ---------- Photo frame（写真未配置時はプレースホルダー表示） ---------- */
.photo {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--sky-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .16);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 3; }
.photo--mission { aspect-ratio: 1000 / 1042; }
.photo-empty {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--sky);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 212, 0, .06) 0 14px, transparent 14px 28px),
    var(--sky-light);
  border: 2px dashed rgba(255, 212, 0, .35);
  border-radius: 0;
}
.photo-empty svg { width: 44px; height: 44px; }
.photo.is-empty img { visibility: hidden; }
.photo.is-empty .photo-empty { display: flex; }
/* YouTube動画（写真枠を16:9に切り替え。縦型ショートは9:16） */
.photo.has-video { aspect-ratio: 16 / 9; background: #000; }
.photo.has-video.is-vertical { aspect-ratio: 9 / 16; max-width: 380px; margin: 0 auto; }
.photo.has-video img, .photo.has-video .photo-empty { display: none !important; }
.photo-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
/* Safari が自動再生できないときに出す再生ボタン（▶）を表示しない */
.photo-video::-webkit-media-controls,
.photo-video::-webkit-media-controls-start-playback-button,
.photo-video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.photo.has-video .photo-caption { z-index: 2; pointer-events: none; }
.photo-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .3em;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 4px 12px;
  border-radius: 0;
}
.photo.is-empty .photo-caption { display: none; }
.hero-stamp {
  position: absolute;
  right: -10px;
  top: -28px;
  width: 118px;
  height: 118px;
  border: 2px solid var(--sky);
  background: rgba(12, 12, 12, .85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--sky);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
  transform: rotate(-12deg);
  opacity: 0;
  z-index: 2;
  animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) forwards 1s;
}
.hero-stamp strong { display: block; font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; color: inherit; }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-12deg) scale(1.6); }
  to   { opacity: 1; transform: rotate(-12deg) scale(1); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--steel);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--sky), transparent);
  animation: cue 1.8s infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Philosophy ---------- */
.philosophy-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 960px) {
  .philosophy-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}
.philosophy-quote {
  font-size: clamp(26px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .02em;
}
.philosophy-quote em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(255, 212, 0, .25) 62%);
}
.philosophy-body p { font-size: 16px; }
.philosophy-sign {
  margin-top: 32px;
  font-weight: 700;
  letter-spacing: .1em;
}

.compare {
  display: grid;
  gap: 20px;
  margin-top: 72px;
}
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
}
.compare-card--ours { background: var(--sky); color: var(--on-accent); border-color: var(--sky); box-shadow: var(--shadow); }
.compare-card h3 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.compare-card .tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .2em;
  padding: 3px 10px;
  border-radius: 0;
  background: var(--steel);
  color: #fff;
}
.compare-card--ours .tag { background: var(--on-accent); color: var(--sky); }
.compare-card li {
  padding: 10px 0 10px 28px;
  border-top: 1px dashed var(--line-strong);
  position: relative;
  font-size: 15px;
}
.compare-card li:first-child { border-top: 0; }
.compare-card li::before {
  content: "×";
  position: absolute;
  left: 4px;
  font-weight: 900;
  color: var(--steel);
}
.compare-card--ours li::before { content: "○"; color: var(--on-accent); }
.compare-card--ours li { border-top-color: rgba(12, 12, 12, .35); }

/* ---------- Ivory story ---------- */
.story {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) { .story { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.story-figure {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.story-flow { display: grid; gap: 14px; }
.story-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 16px;
}
.story-step .from {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--steel);
  text-align: right;
}
.story-step .to { font-weight: 700; }
.story-step .to b { color: var(--sky); }
.story-arrow {
  margin-left: 80px;
  color: var(--steel);
  font-size: 14px;
  line-height: 1;
}
.story-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}
.story-result span { color: var(--sky); }
.story-figure { position: relative; }
.story-mark { position: absolute; right: 22px; top: 22px; height: 64px; width: auto; opacity: .18; }

/* ---------- Mission: Made in Japan ---------- */
.mij { overflow: hidden; }
.mij::before {
  /* 日の丸をモチーフにした大きな円 */
  content: "";
  position: absolute;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  right: -18vw;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 38, 61, .07), rgba(215, 38, 61, 0) 70%);
  pointer-events: none;
}
.mij .container { position: relative; }
.mij-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .mij-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; } }
.mij .section-label { color: var(--japan); }
.mij-title {
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.35;
  letter-spacing: .03em;
  margin-bottom: 32px;
}
.mij-title .flame {
  color: var(--japan);
  display: inline-block;
  position: relative;
}
.mij-title .flame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--japan);
  transform: translateX(-50%);
}
.mij-visual { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.mij-badge {
  position: absolute;
  left: -24px;
  bottom: -24px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--japan);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .2em;
  line-height: 1.3;
  box-shadow: 0 12px 30px rgba(215, 38, 61, .3);
}
.mij-badge strong { font-size: 24px; letter-spacing: .12em; color: #fff; }
@media (max-width: 600px) { .mij-badge { left: -8px; bottom: -16px; width: 104px; height: 104px; } .mij-badge strong { font-size: 19px; } }
.mij-pillars {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) { .mij-pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.mij-pillars li {
  border-top: 3px solid var(--japan);
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  border-radius: 0;
  padding: 24px 24px 20px;
}
.mij-num { display: block; font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.mij-pillars p { margin: 0; font-size: 15px; color: var(--navy-2); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.product-card:hover { border-color: var(--sky); transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--sky-light);
  position: absolute;
  top: 18px;
  right: 22px;
}
.product-card .icon {
  width: 52px;
  height: 52px;
  color: var(--sky);
  margin-bottom: 24px;
  position: relative;
}
.product-card h3 { font-size: 22px; margin-bottom: 6px; position: relative; }
.product-card .en {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--steel);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.product-card p { font-size: 15px; color: var(--navy-2); margin: 0; }

.category-list {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.category-list li {
  background: var(--sky-pale);
  border: 1px solid rgba(255, 212, 0, .2);
  color: var(--sky-deep);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
}

/* ---------- Stores ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) { .store-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.store-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sky);
}
.store-card .store-name { display: flex; align-items: center; gap: 14px; font-size: clamp(16px, 2vw, 20px); font-weight: 900; line-height: 1.4; }
.store-card .store-logo { flex: none; width: 56px; height: 56px; object-fit: contain; }
@media (max-width: 600px) { .store-card .store-name { flex-direction: column; align-items: flex-start; gap: 12px; } .store-card .store-logo { width: 48px; height: 48px; } }
.store-card .store-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--steel);
  font-weight: 700;
  letter-spacing: .06em;
}
.store-card .store-meta .go {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sky-light);
  color: var(--sky);
  transition: background .2s, color .2s;
}
.store-card:hover .go { background: var(--sky); color: var(--on-accent); }
.store-card--global { background: var(--sky); color: var(--on-accent); border-color: var(--sky); }
.store-card--global .store-meta { color: rgba(12, 12, 12, .9); }
.store-card--global .go { background: var(--on-accent); color: var(--sky); }
.store-card--global:hover .go { background: var(--on-accent); color: var(--sky-deep); }

.store-note { margin-top: 28px; font-size: 13px; color: var(--steel); text-align: center; }

/* ---------- Global ---------- */
.global {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) { .global { grid-template-columns: 1fr 1fr; gap: 80px; } }
.global-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 8px;
}
.global-stat-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 700;
  line-height: 1;
  color: var(--sky);
}
.global-stat-num small { font-size: .5em; }
.global-stat-label { font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--navy-2); }

.global-rank-title {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.global-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.global-rank li {
  display: grid;
  grid-template-columns: 40px 42px 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--sky-pale);
  border-radius: var(--radius);
  padding: 12px 18px 12px 12px;
}
.global-rank li:first-child { background: var(--sky-light); }
.rank-no {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.rank-flag {
  width: 42px;
  height: 28px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .1);
}
.rank-name { font-weight: 900; font-size: 17px; }
@media (max-width: 420px) { .rank-en { display: none; } .global-rank li { grid-template-columns: 40px 42px 1fr; } }
.rank-en { font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; color: var(--steel); }

/* ---------- World map (Leaflet) ---------- */
.global-map { margin-top: clamp(40px, 6vw, 64px); }
.world-map {
  height: clamp(300px, 42vw, 520px);
  border-radius: 0;
  background: #aad3df; /* 海 */
  font-family: var(--font-jp);
  z-index: 0;
}
.map-hint { margin: 10px 0 0; font-size: 12px; color: var(--steel); text-align: center; }
.world-map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .8); }
.world-map .leaflet-control-zoom a { color: var(--sky-deep); }
.map-arc { stroke-dasharray: 6 8; stroke-linecap: round; transition: opacity .6s, stroke-width .6s; }
.map-arc.is-focus { stroke: var(--japan); stroke-width: 3.5; opacity: 1; }
.map-arc.is-dim { opacity: .25; }
.world-map.is-active .map-arc { animation: mapFlow 1.2s linear infinite; }
@keyframes mapFlow { to { stroke-dashoffset: -14; } }
.map-marker { background: none; border: 0; }
.map-marker-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .2s;
}
.map-marker:hover .map-marker-dot { transform: scale(1.15); }
.map-marker--home .map-marker-dot { width: 22px; height: 22px; background: var(--japan); }
.map-marker-label {
  position: absolute;
  left: 26px;
  top: -14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #111;
  text-shadow: 0 0 4px #fff, 0 0 4px #fff;
  white-space: nowrap;
}
.world-map .leaflet-popup-content { margin: 12px 16px; }
.map-popup div { white-space: nowrap; }
.map-popup { display: flex; align-items: center; gap: 12px; font-family: var(--font-jp); }
.map-popup img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.map-popup strong { display: block; font-size: 15px; color: #111; }
.map-popup span { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; color: var(--steel); text-transform: uppercase; }
.map-popup em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: #8a6d00; margin-top: 2px; }
@media (max-width: 600px) {
  .world-map { border-radius: 0; margin: 0 calc(var(--gutter) * -1); }
  .map-marker-dot { width: 24px; height: 24px; font-size: 12px; border-width: 2px; transform: translate(3px, 3px); }
  .map-marker--home .map-marker-dot { width: 18px; height: 18px; transform: translate(2px, 2px); }
  .map-marker-label { font-size: 12px; left: 22px; }
}

.global-points { display: grid; gap: 16px; margin-top: 28px; }
.global-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--navy-2);
}
.global-points li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--sky);
}

/* ---------- Check list ---------- */
.buyback-list { display: grid; gap: 12px; }
.buyback-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 700;
}
.buyback-list .check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sky);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 13px;
}

/* ---------- Buyback CTA ---------- */
.buyback-cta {
  background: var(--sky);
  color: var(--on-accent);
  overflow: hidden;
}
.buyback-cta::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  border: 60px solid rgba(12, 12, 12, .08);
  pointer-events: none;
}
.buyback-cta .container { position: relative; }
.buyback-cta .section-label,
.buyback-cta .section-lead { color: var(--on-accent); }
.buyback-cta-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) { .buyback-cta-inner { grid-template-columns: 1.3fr 1fr; } }
.buyback-cta .buyback-list li {
  background: rgba(12, 12, 12, .06);
  border-color: rgba(12, 12, 12, .28);
  color: var(--on-accent);
}
.buyback-cta .buyback-list .check { background: var(--on-accent); color: var(--sky); }

/* ---------- Instagram ---------- */
.insta {
  text-align: center;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 720px;
  margin: 0 auto 40px;
}
@media (min-width: 768px) { .insta-grid { grid-template-columns: repeat(6, 1fr); max-width: none; } }
.insta-grid a {
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--sky);
  transition: opacity .2s;
  overflow: hidden;
}
.insta-grid a:nth-child(even) { background: var(--sky-light); }
.insta-grid a:hover { opacity: .75; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; }
.insta-grid svg { width: 28px; height: 28px; }
/* Instagramウィジェット埋め込み枠：中身がある時だけ表示し、仮タイルを隠す */
.insta-embed { max-width: 1000px; margin: 0 auto 40px; }
.insta-embed:empty, .insta-embed.is-empty { display: none; }
.insta-embed iframe { display: block; width: 100% !important; border: 0; overflow: hidden; }
.insta.has-embed .insta-grid--placeholder { display: none; }
/* Instagram公式APIの投稿グリッド */
.insta.has-feed .insta-embed,
.insta.has-feed .insta-grid--placeholder { display: none !important; }
.insta-feed[hidden] { display: none; }
.insta-item {
  position: relative;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: var(--sky-light);
}
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.insta-item:hover img { transform: scale(1.06); }
.insta-item-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  color: #fff;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, .85));
  opacity: 0;
  transition: opacity .3s;
  overflow: hidden;
}
.insta-item:hover .insta-item-caption, .insta-item:focus-visible .insta-item-caption { opacity: 1; }
.insta-item.is-video::after, .insta-item.is-album::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, .6);
}
.insta-item.is-video::after { content: "▶"; }
.insta-item.is-album::after { content: "❐"; }
@media (hover: none) { .insta-item-caption { display: none; } }

.insta-handle {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: .08em;
  margin-bottom: 24px;
}

/* ---------- Recruit teaser ---------- */
.recruit-teaser {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) { .recruit-teaser { grid-template-columns: 1fr 1fr; gap: 80px; } }
.recruit-big {
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .02em;
}
.recruit-big span { color: var(--sky); }

/* ---------- Access / Google Maps ---------- */
.access-head {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 56px);
}
@media (min-width: 960px) { .access-head { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.google-badge {
  display: grid;
  justify-items: center;
  gap: 4px;
  background: var(--surface);
  border-radius: 0;
  padding: 28px 24px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.google-badge:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255, 212, 0, .16); }
.google-badge-logo { font-family: Arial, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.google-badge-score { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.google-badge-stars { position: relative; display: inline-block; color: #dadce0; font-size: 22px; letter-spacing: .12em; line-height: 1.2; }
.google-badge-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #fbbc05; }
.google-badge-date { font-size: 11px; color: var(--steel); }
.google-badge-count { font-size: 14px; font-weight: 700; color: var(--navy-2); }
.google-badge-link { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--sky-deep); }

/* Googleマップの最新口コミ */
.g-reviews { margin: 0 0 clamp(40px, 6vw, 56px); }
.g-reviews[hidden] { display: none; }
.g-reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.g-reviews-title { font-size: 20px; }
.g-reviews-title small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--steel); }
.g-reviews-nav { display: flex; gap: 8px; }
.g-reviews-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.g-reviews-btn:hover { background: var(--sky); border-color: var(--sky); color: var(--on-accent); }
.g-reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, calc((100% - 40px) / 3));
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
@media (max-width: 960px) { .g-reviews-track { grid-auto-columns: minmax(260px, 82%); } }
.g-review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.g-review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-review-stars { color: #fbbc05; letter-spacing: .1em; }
.g-review-date { font-size: 12px; color: var(--steel); }
.g-review-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.g-review-text.is-open { -webkit-line-clamp: unset; display: block; }
.g-review-more { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--sky); font-size: 13px; font-weight: 700; cursor: pointer; }
.g-review-reply { font-size: 13px; color: var(--navy-2); border-left: 2px solid var(--sky); padding-left: 12px; }
.g-review-reply summary { cursor: pointer; font-weight: 700; color: var(--sky-deep); }
.g-review-reply p { margin: 8px 0 0; white-space: pre-line; }
.g-review-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.g-review-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.g-review-who strong { display: block; font-size: 13px; }
.g-review-who span { display: block; font-size: 11px; color: var(--steel); }

.location-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .location-grid { grid-template-columns: repeat(3, 1fr); } }
.location-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.location-map { aspect-ratio: 16 / 10; background: var(--sky-light); position: relative; }
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sky);
  font-weight: 700;
  font-size: 14px;
  background:
    linear-gradient(rgba(255, 212, 0, .08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 212, 0, .08) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--sky-light);
}
.location-map-empty svg { width: 40px; height: 40px; }
.location-map.has-map .location-map-empty { display: none; }
.location-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.location-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 0;
  background: var(--sky-light);
  color: var(--sky-deep);
  margin-bottom: 10px;
}
.location-card h3 { font-size: 21px; margin-bottom: 14px; }
.location-card h3 small {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--steel);
  margin-top: 4px;
}
.location-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0 0 20px;
  font-size: 14px;
}
.location-info dt { font-weight: 700; color: var(--sky-deep); white-space: nowrap; }
.location-info dd { margin: 0; color: var(--navy-2); }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.access-note { margin: 28px 0 0; font-size: 13px; color: var(--steel); text-align: center; }

/* ---------- Company ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.company-table th,
.company-table td {
  text-align: left;
  vertical-align: top;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.company-table th {
  width: 30%;
  min-width: 100px;
  font-weight: 700;
  padding-right: 20px;
  color: var(--sky-deep);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { border-bottom: 0; padding-bottom: 2px; }
  .company-table td { padding-top: 2px; }
}

/* ---------- Tel box ---------- */
.tel-box {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0 auto 40px;
  max-width: 520px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--sky);
  text-decoration: none;
  text-align: center;
}
.tel-box-label { font-size: 13px; font-weight: 700; color: var(--sky-deep); }
.tel-box-num { font-family: var(--font-display); font-size: clamp(32px, 6vw, 42px); font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.tel-box-time { font-size: 12px; color: var(--steel); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 8px; }
.form-row--2 { display: grid; gap: 22px; }
@media (min-width: 768px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form label { font-size: 14px; font-weight: 700; }
.form .req {
  font-size: 11px;
  background: var(--sky);
  color: var(--on-accent);
  padding: 2px 8px;
  border-radius: 0;
  margin-left: 8px;
  vertical-align: middle;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iOSのズーム防止 */
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, .18);
}
.form textarea { min-height: 160px; resize: vertical; }
.form .hint { font-size: 12px; color: var(--steel); }
.form-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.form-choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 0;
  cursor: pointer;
}
.form-choices input { width: auto; margin: 0; accent-color: var(--sky); }
.form-submit { text-align: center; margin-top: 8px; }
.form-message {
  display: none;
  padding: 16px 20px;
  border-radius: 0;
  background: var(--sky);
  color: var(--on-accent);
  font-weight: 700;
  text-align: center;
}
.form-message.is-visible { display: block; }
.form-message--error { background: var(--japan); color: #fff; white-space: pre-line; }
.form input[type="file"] { padding: 10px 12px; font-size: 14px; cursor: pointer; }
.form input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  margin-right: 12px;
  padding: 6px 14px;
  border: 0;
  border-radius: 0;
  background: var(--sky);
  color: var(--on-accent);
  cursor: pointer;
}
.form-privacy { text-align: center; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sub page hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(60px, 10vw, 110px)) 0 clamp(60px, 8vw, 90px);
  background:
    radial-gradient(ellipse at 85% 20%, rgba(255, 212, 0, .18), transparent 55%),
    linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
}
.page-hero h1 {
  font-size: clamp(28px, 7vw, 80px);
  letter-spacing: .03em;
  margin-bottom: 20px;
}
.page-hero p { max-width: 680px; font-size: clamp(15px, 1.7vw, 17px); color: var(--navy-2); }
.breadcrumb { font-size: 12px; color: var(--steel); margin-bottom: 24px; letter-spacing: .06em; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--sky); }

/* ---------- Flow steps ---------- */
.flow {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
@media (min-width: 768px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li {
  counter-increment: flow;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}
.flow li::before {
  content: "STEP " counter(flow, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--sky);
  margin-bottom: 12px;
}
.flow h3 { font-size: 18px; margin-bottom: 10px; }
.flow p { font-size: 14px; margin: 0; color: var(--navy-2); }

/* ---------- Generic cards ---------- */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { font-size: 15px; margin: 0; color: var(--navy-2); }
.card .card-en {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--sky);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.value-card { position: relative; overflow: hidden; }
.value-kanji {
  display: block;
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
  color: var(--sky);
  margin-bottom: 18px;
}

/* ---------- Jobs ---------- */
.job {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 16px;
  overflow: hidden;
}
.job summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 24px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.job summary::-webkit-details-marker { display: none; }
.job summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--sky);
  transition: transform .25s;
}
.job[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.job-title { font-size: 19px; font-weight: 900; }
.job-type {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 0;
  background: var(--sky-light);
  color: var(--sky-deep);
}
.job-body { padding: 0 24px 24px; }
.job-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.job-body th, .job-body td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); }
.job-body th { width: 120px; color: var(--sky-deep); padding-right: 16px; white-space: nowrap; }
@media (max-width: 600px) {
  .job-body th, .job-body td { display: block; width: 100%; }
  .job-body th { padding-bottom: 0; }
  .job-body td { border-top: 0; padding-top: 4px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sky-pale);
  border-top: 4px solid var(--sky);
  padding: 72px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-contact { margin: 18px 0 0; font-size: 13px; line-height: 1.8; color: var(--navy-2); }
.footer-contact a { text-decoration: none; font-weight: 700; }
.footer-tagline { margin-top: 18px; color: var(--steel); font-size: 13px; }
.footer-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--sky);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: var(--navy-2); }
.footer-links a:hover { color: var(--sky); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--steel);
  font-size: 12px;
}
.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
  color: var(--sky-deep);
}
.sns-link svg { width: 22px; height: 22px; }

/* ---------- Floating CTA (SP) ---------- */
.float-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  transform: translateY(100%);
  transition: transform .3s;
}
.float-cta.is-visible { transform: none; }
.float-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: var(--surface);
  color: var(--sky-deep);
}
.float-cta a:last-child { background: var(--sky); color: var(--on-accent); }
@media (min-width: 768px) { .float-cta { display: none; } }
@media (max-width: 767px) { .site-footer { padding-bottom: 88px; } }

/* ---------- ページ上部へ戻るボタン ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--sky);
  color: var(--on-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #fff; }
.to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) { .to-top { right: 14px; bottom: 70px; width: 46px; height: 46px; } } /* スマホは下部の固定ボタンの上に */

/* ---------- Scroll band（スクロール連動で左右に流れる大きな文字） ---------- */
.scroll-band {
  overflow: hidden;
  background: var(--white);
  padding: clamp(18px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.scroll-band-row {
  display: flex;
  align-items: center;
  gap: .45em;
  white-space: nowrap;
  width: max-content;
  margin-left: -40vw;
  font-family: var(--font-display), var(--font-jp);
  font-weight: 700;
  font-size: clamp(44px, 8.5vw, 132px);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--sky);
  will-change: transform;
}
.scroll-band-row i { font-style: normal; font-size: .45em; color: var(--sky); }
.scroll-band-row.is-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 245, 240, .55);
}
.scroll-band-row.is-outline i { -webkit-text-stroke: 0; color: rgba(245, 245, 240, .35); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
/* 見出しは左右から入ってくる */
.reveal.from-left { transform: translateX(-90px); }
.reveal.from-right { transform: translateX(90px); }
@media (max-width: 767px) { .reveal.from-left { transform: translateX(-40px); } .reveal.from-right { transform: translateX(40px); } }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal.from-left, .reveal.from-right { opacity: 1; transform: none; }
  .scroll-band-row { transform: none !important; }
  .hero-stamp { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Utility */
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero：読み込み時に文字を左から順に表示 ---------- */
.hero-content > * { animation: heroIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
.hero-content > :nth-child(5) { animation-delay: .48s; }
@keyframes heroIn { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-content > * { animation: none; } }

/* ---------- 英語ページ（/en/）だけの調整 ---------- */
html[lang="en"] .recruit-big { font-size: clamp(32px, 4.2vw, 56px); }
html[lang="en"] .hero-copy { letter-spacing: .02em; }

/* 公式オンラインショップ（shop.bipar.jp）：一覧の先頭に横長で大きく */
.store-card--official {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(22px, 3vw, 36px);
  background: #0c0c0c;
  border: 2px solid var(--sky);
}
.store-card--official .store-name { font-size: clamp(18px, 2.4vw, 26px); }
.store-card--official .store-name small {
  display: block;
  margin-top: 4px;
  font: 500 11px/1.4 var(--font-display);
  letter-spacing: .2em;
  color: var(--sky);
}
.store-card--official .store-logo { width: 38px; height: 56px; }
.store-card--official .store-meta { margin-left: auto; gap: 14px; color: var(--sky); }
.store-card--official .store-meta .go { background: var(--sky); color: var(--on-accent); }
@media (max-width: 600px) {
  .store-card--official { flex-direction: column; align-items: flex-start; gap: 16px; }
  .store-card--official .store-name { flex-direction: row; align-items: center; font-size: 17px; }
  .store-card--official .store-meta { margin-left: 0; width: 100%; justify-content: space-between; }
}
