/*
 * ホームページの見た目（T-1159）。寸法は Figma のファーストビュー（1920×1080・data/ref/hp/fv-figma.webp）から測った値。
 * 文言は apps/hp/content.mjs。
 */
:root {
  --bg: #0e1013;            /* 動画の背景と同じ色（scripts/hp/fv-video.mjs の BG） */
  --bar: #f9f9f9;           /* ヘッダーの白帯 */
  --ink: #111;
  --gutter: 16px;
  --box-max: 1280px;        /* 一番広い箱（白帯・区画の中身）。右のタブの空け（T-1235）もこれで決まる */
  --bar-w: min(var(--box-max), calc(100vw - var(--gutter) * 2));
  /* Figma は白帯が左から 220px（1920 幅）＝余白の 34% を左に置く */
  --bar-x: max(var(--gutter), calc((100vw - 1280px) * 0.34375));
  font-family: var(--font-body); /* 書体は assets/fonts.css の1か所（T-1198） */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- ヘッダー（丸い白帯） ---- */
.hp-header { position: fixed; z-index: 10; top: 20px; left: var(--bar-x); width: var(--bar-w); }
.hp-header__bar {
  height: 64px; padding: 0 23px 0 25px; border-radius: 32px; background: var(--bar); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.hp-header__logo { flex-shrink: 0; } /* 項目が増えてもロゴは縮めない（T-1256 で 101px→18px に潰れた） */
.hp-header__logo img { width: 101px; height: auto; }
/* 間は Figma の 33px から詰めた（サプライパートナーを足して8項目・T-1165。よくあるご質問を足して9項目・T-1256 で 16px/字 15px。白帯は最大 1280px・t1256/navfit.mjs で幅ごとに測る） */
.hp-nav ul { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hp-nav__link { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.hp-nav__link:hover { opacity: 0.6; }
.hp-nav__cta {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 24px; border-radius: 20px;
  background: var(--c-primary, #000); color: var(--c-primary-ink, #fff); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.hp-nav__cta:hover { background: var(--c-primary-h, #333); }
.hp-header__menu { display: none; }

/* ---- ファーストビュー ---- */
.hp-fv { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hp-fv__media {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 68% 46%, #1c2330 0%, var(--bg) 70%);
}
/* 動画は正方形。縁は背景の色へぼかす（動画の圧縮で色が少しずれても継ぎ目が出ない） */
.hp-fv__video {
  position: absolute; top: 50%; right: max(0px, calc(50vw - 860px)); height: min(100%, 62vw); aspect-ratio: 1; transform: translateY(-50%);
  object-fit: cover; background: var(--bg); opacity: 0; transition: opacity 1.2s ease;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.hp-fv__video[poster], .hp-fv__video.is-playing { opacity: 1; }
/* 文字の下を暗く（Figma の写真の上の黒い膜の代わり） */
.hp-fv__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 16, 19, 0.82) 0%, rgba(14, 16, 19, 0.45) 42%, rgba(14, 16, 19, 0) 66%),
              linear-gradient(0deg, rgba(14, 16, 19, 0.55) 0%, rgba(14, 16, 19, 0) 40%);
}
.hp-fv__inner { position: absolute; z-index: 1; left: calc(var(--bar-x) + 20px); right: var(--gutter); bottom: 12vh; }
.hp-fv__heading { margin: 0; font-size: 60px; line-height: 1.34; font-weight: 900; letter-spacing: 0.01em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.hp-fv__heading span { display: block; white-space: nowrap; }
.hp-fv__sub { margin: 6px 0 0 3px; font-size: 20px; line-height: 1.6; font-weight: 700; }
.hp-fv__actions { display: flex; gap: 20px; margin-top: 56px; }
.hp-fv__action { width: 350px; }
.hp-fv__note { margin: 0 0 7px; text-align: center; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; }

.hp-btn {
  display: flex; align-items: center; justify-content: center; height: 80px; font-size: 30px; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.hp-btn--dark { background: var(--c-primary, #000); color: var(--c-primary-ink, #fff); }
.hp-btn--dark:hover { background: var(--c-primary-h, #2a2a2a); }
.hp-btn--light { background: #fff; color: #000; }
.hp-btn--light:hover { background: #e9e9e9; }
/* LINE のボタン（最初の画面・T-1221）。色は theme.css の LINE の緑 */
.hp-btn--line { background: var(--c-lineapp); color: var(--c-lineapp-ink); }
.hp-btn--line:hover { background: var(--c-lineapp-h); }

/* ---- 準備中のページ ---- */
.hp-sub { background: #f4f5f7; color: var(--ink); }
.hp-soon { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 120px var(--gutter) 60px; text-align: center; }
.hp-soon__title { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 900; }
.hp-soon__lead { margin: 0; font-size: 16px; color: #555; }
.hp-soon__back { width: 260px; height: 56px; font-size: 18px; margin-top: 12px; }

/* ---- 少し狭い PC ---- */
@media (max-width: 1360px) {
  .hp-fv__heading { font-size: clamp(40px, 4.4vw, 60px); }
}

@media (max-width: 1320px) {
  .hp-nav ul { gap: 14px; }
  .hp-nav__link, .hp-nav__cta { font-size: 14px; }
  .hp-nav__cta { padding: 0 18px; }
}
/* 9項目（T-1256）がメニューを開閉にする手前の幅でもロゴと離れるように */
@media (max-width: 1240px) {
  .hp-nav ul { gap: 10px; }
}

/* ---- タブレット・スマホ（メニューは開閉）。8項目が白帯に1行で入らない幅（1200px 以下・T-1165 で 1080 から上げた） ---- */
@media (max-width: 1200px) {
  .hp-header { top: 12px; }
  .hp-header__bar { height: 56px; padding: 0 10px 0 18px; border-radius: 28px; }
  .hp-header__logo img { width: 86px; }
  .hp-header__menu {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px;
    border: 0; border-radius: 22px; background: #000; cursor: pointer;
  }
  .hp-header__menu span:not(.hp-sr) { display: block; height: 2px; background: #fff; transition: transform 0.2s; }
  .hp-header.is-open .hp-header__menu span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .hp-header.is-open .hp-header__menu span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .hp-nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; padding: 12px; border-radius: 20px;
    background: var(--bar); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }
  .hp-header.is-open .hp-nav { display: block; }
  .hp-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .hp-nav__link { display: block; padding: 14px 12px; font-size: 16px; border-bottom: 1px solid #e6e6e6; }
  .hp-nav__cta { display: flex; height: 48px; margin-top: 12px; border-radius: 24px; font-size: 16px; }
}

@media (max-width: 1080px) and (min-aspect-ratio: 4/5) {
  .hp-fv__heading { font-size: clamp(30px, 5.4vw, 52px); }
  .hp-fv__inner { bottom: 10vh; }
}

/* ---- スマホ・縦長: 服は上・文字は下 ---- */
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  .hp-fv { min-height: 600px; }
  .hp-fv__media { background: radial-gradient(ellipse 90% 45% at 50% 34%, #1c2330 0%, var(--bg) 75%); }
  .hp-fv__video { top: max(64px, 8svh); right: auto; left: 50%; width: min(100vw, 62svh); height: auto; transform: translateX(-50%); }
  .hp-fv__media::after { background: linear-gradient(0deg, rgba(14, 16, 19, 0.92) 0%, rgba(14, 16, 19, 0.6) 38%, rgba(14, 16, 19, 0) 60%); }
  .hp-fv__inner { left: var(--gutter); bottom: max(28px, 5svh); }
  /* 1行目（14字）が画面の幅に収まる大きさ（Figma と同じ2行のまま） */
  .hp-fv__heading { font-size: min(calc((100vw - 2 * var(--gutter)) / 14.4), 44px); line-height: 1.4; }
  .hp-fv__sub { margin: 10px 0 0; font-size: 13px; line-height: 1.7; }
  .hp-fv__actions { gap: 10px; margin-top: 26px; }
  .hp-fv__action { width: auto; flex: 1 1 0; min-width: 0; }
  .hp-fv__note { font-size: 10px; margin-bottom: 5px; }
  .hp-btn { height: 56px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-fv__video { transition: none; }
}

/* ---- ナビの下の項目（元の HP のメニューと同じ・T-1162）。PC はホバー・フォーカスで出る ---- */
.hp-nav__item { position: relative; }
.hp-nav .hp-nav__sub { display: block; margin: 0; padding: 0; list-style: none; }
.hp-nav__toggle { display: none; }
@media (min-width: 1201px) {
  /* 白帯の上下いっぱいまでをホバーの範囲にして、下の項目へ動くときに閉じない */
  .hp-nav__item--sub { padding: 20px 0; margin: -20px 0; }
  .hp-nav__item--sub > .hp-nav__link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .hp-nav .hp-nav__sub {
    position: absolute; top: 100%; left: 50%; min-width: 210px; padding: 10px 0; border-radius: 14px; background: var(--bar);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .hp-nav__item--sub:hover .hp-nav__sub, .hp-nav__item--sub:focus-within .hp-nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .hp-nav__sublink { display: block; padding: 10px 22px; font-size: 15px; font-weight: 500; white-space: nowrap; }
  .hp-nav__sublink:hover { background: #ececec; }
}
/* スマホ・タブレット: 項目の横の＋で開け閉め */
@media (max-width: 1200px) {
  .hp-nav { max-height: calc(100vh - 90px); max-height: calc(100svh - 90px); overflow-y: auto; }
  .hp-nav__item--sub { display: grid; grid-template-columns: 1fr 48px; border-bottom: 1px solid #e6e6e6; }
  .hp-nav__item--sub > .hp-nav__link { border-bottom: 0; }
  .hp-nav__toggle { display: block; position: relative; width: 48px; height: 100%; min-height: 48px; border: 0; background: none; cursor: pointer; }
  .hp-nav__toggle::before, .hp-nav__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.2s; }
  .hp-nav__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .hp-nav__item--sub.is-sub-open .hp-nav__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
  .hp-nav .hp-nav__sub { display: none; grid-column: 1 / -1; padding: 0 0 8px 14px; }
  .hp-nav__item--sub.is-sub-open .hp-nav__sub { display: block; }
  .hp-nav__sublink { display: block; padding: 10px 12px; font-size: 15px; color: #444; }
}

/*
 * ---- 右端に固定の縦のタブ（T-1170・Figma data/ref/hp/owner-1128/side-tabs-figma.png）----
 * Figma（実績数字の丸が 176px＝実寸 260px）から 1.48 倍: 幅 62・高さ 200・間 13。薄いグレー・左の角だけ丸い・縦書き。
 * ヘッダー（z-index 10）より下: 開いたメニューがタブの上に来る。上はヘッダーの下（84px）より下げる（横長のスマホでかぶらない）。
 * 本文にかぶらないよう、区画が画面の右端まで来る幅では main・footer の子に右へタブの幅を空ける（透明の縁＝背景は端まで塗られたまま）。
 */
:root { --side-w: 60px; --side-h: 200px; --side-gap: 12px; }
.hp-side {
  position: fixed; z-index: 9; right: 0; top: max(84px, calc(50% - var(--side-h) - var(--side-gap) / 2));
  display: flex; flex-direction: column; gap: var(--side-gap);
}
.hp-side__tab {
  display: flex; align-items: center; justify-content: center; width: var(--side-w); height: var(--side-h);
  border-radius: 12px 0 0 12px; background: #ededed; color: #333; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  writing-mode: vertical-rl; font-size: 15px; font-weight: 500; letter-spacing: 0.12em; white-space: nowrap;
  transition: background 0.2s;
}
.hp-side__tab:hover { background: #dcdcdc; }
.hp-side__tab:focus-visible { outline: 2px solid #000; outline-offset: -4px; }
@media (max-width: 1200px) {
  :root { --side-w: 32px; --side-h: 128px; --side-gap: 8px; }
  .hp-side { top: max(76px, calc(50% - var(--side-h) - var(--side-gap) / 2)); }
  .hp-side__tab { border-radius: 8px 0 0 8px; font-size: 12px; letter-spacing: 0.08em; }
}
/* 区画が画面の右端まで来る幅（1200px 以下）: 右にタブの幅を空ける。透明の縁なので背景の色・絵は端まで（background-origin）。
   ファーストビューは文字の箱だけ空ける（動画の真ん中をずらさない） */
@media (max-width: 1200px) {
  main > *:not(.hp-fv), footer > * { border-right: var(--side-w) solid transparent; background-origin: border-box; }
  .hp-fv__inner { right: calc(var(--gutter) + var(--side-w)); }
}
/* 1200px より広い幅（T-1235: 1280 幅で 1140〜1280px の真ん中寄せの箱の右端が 60px のタブにかぶっていた）:
   右に空ける幅を「一番広い箱（--box-max）が左右の余白（--gutter）込みでタブに届く分」だけにする（0〜タブの幅）。
   届かない幅（1432px 以上: 1440・1920）は 0 で、今の見た目のまま。区画の箱をこれより広くするときは --box-max も上げる
   （scripts/check/hp-side-tabs.mjs --all で全ページを測る） */
@media (min-width: 1201px) {
  main > *:not(.hp-fv), footer > * {
    border-right: clamp(0px, calc(var(--box-max) + 2 * (var(--side-w) + var(--gutter)) - 100vw), var(--side-w)) solid transparent;
    background-origin: border-box;
  }
}
/*
 * スマホ（767px 以下）はタブを画面の下の帯（2つ横並び）にする（T-1229・オーナー 11/30「スマホ幅の見せ方が全然ダメ」）。
 * 縦のタブのまま右を 32px 空けると、本文が 358px→326px に細り左に寄って見えた（料金の表は 246px まで細っていた）。
 * --side-w を 0 にすると右の空け（border-right）・最初の画面の文字の箱の計算も全部 0 になる。下は帯の高さだけ空ける。
 */
:root { --sp-bar-h: 0px; }
@media (max-width: 767px) {
  :root { --side-w: 0px; --sp-bar-h: 52px; }
  .hp-side { top: auto; bottom: 0; left: 0; right: 0; flex-direction: row; gap: 0; padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12); }
  .hp-side__tab { flex: 1 1 0; width: auto; height: var(--sp-bar-h); border-radius: 0; box-shadow: none; writing-mode: horizontal-tb; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
  .hp-side__tab + .hp-side__tab { border-left: 1px solid rgba(0, 0, 0, 0.1); }
  body { padding-bottom: calc(var(--sp-bar-h) + env(safe-area-inset-bottom)); }
  .hp-fv__inner { bottom: calc(max(28px, 5svh) + var(--sp-bar-h)); }
}

@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  .hp-fv__heading { font-size: min(calc((100vw - 2 * var(--gutter) - var(--side-w)) / 14.4), 44px); }
  /* ボタンの上の注記は切らずに2行まで（タブの幅を空けると 390 幅でも切れていた・360 幅は前から切れていた） */
  .hp-fv__note { white-space: normal; overflow: visible; min-height: 2.8em; line-height: 1.4; display: flex; align-items: flex-end; justify-content: center; }
}

/* ---- T-1197 先方のたたき台（11/29）の文: 上の小さな一行・長いボタンの名前・1行の見出し ---- */
.hp-fv__kicker { margin: 0 0 10px 3px; font-size: 18px; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.hp-fv__sub { max-width: 30em; }
.hp-fv .hp-btn { font-size: 24px; }
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  .hp-fv__kicker { margin: 0 0 6px; font-size: 12px; }
  /* 見出しは1行（9字）: 幅に収まる大きさ（右のタブの幅を空ける） */
  .hp-fv__heading { font-size: min(calc((100vw - 2 * var(--gutter) - var(--side-w)) / 9.6), 44px); }
  /* ボタンの名前が長い（12字）ので縦に並べる。注記はボタンの上に小さく1行 */
  .hp-fv__actions { flex-direction: column; gap: 8px; margin-top: 18px; }
  .hp-fv__action { flex: none; width: 100%; }
  .hp-fv__note { min-height: 0; justify-content: flex-start; margin-bottom: 3px; }
  .hp-fv .hp-btn { height: 48px; font-size: 16px; }
}

/* ---- 書体の割り当て（T-1198）。書体そのものは assets/fonts.css の1か所 ---- */
/* 太さが1つしかない書体（Anton・Dela Gothic One・Bebas Neue など）を偽の太字でにじませない。本文の Zen Kaku Gothic New は 400/500/700/900 を読むので本物の太さで出る（T-1200） */
:root { font-synthesis-weight: none; }
h1, h2, h3, .hp-fv__heading, .hp-h2, .hp-shero__tagline, .hp-semi__catch, .hp-semi__title, .hp-switch__title, .hp-news__title, .hp-pd__pagetitle, .hp-soon__title { font-family: var(--font-head); }
.hp-eyebrow, .hp-shero__name, .hp-sport__name { font-family: var(--font-en); }

/*
 * 句の切れ目（T-1229）: 見出し・リード文・表の見出し・ボタン（scripts/hp/ja-wrap.mjs が印 data-jw と <wbr> を付けた物）は
 * <wbr>・空白・句読点の所でしか折らない（「追加発注につ｜いて」のような1〜2文字の行を出さない）。1つの句が行より長いときだけ途中で折る。
 * 本文（段落）は折り方を整える（最後の行が1〜2文字にならないよう・Chrome／Safari 26〜。効かない端末では今のまま）
 */
[data-jw] { word-break: keep-all; overflow-wrap: anywhere; }
p, li, dd { text-wrap: pretty; }
