/* FLLW ヘルプセンター（ポータル）の見た目。
   色はアプリ本体（src/styles/app.css）と同じトークンを使う。
   **写真は使わない。** 素材は自前のSVGとアプリの画面だけで、
   外部オリジンからは何も読まない（本体と同じ方針）。 */
@import "./fonts.css";

:root {
  /* アプリ本体と同じ値。ここを勝手に変えないこと */
  --ink: #1B1918;
  --surface: #242220;
  --surface-2: #2C2A27;
  --surface-3: #34312D;
  --chalk: #F3EFE7;
  --ash: #9A948A;
  --ash-dim: #6B665F;
  --brass: #FFC107;
  --brass-soft: rgba(255, 193, 7, 0.14);
  --rust: #B5473A;
  --moss: #7A9A63;
  --line: rgba(243, 239, 231, 0.09);
  --radius: 14px;

  --sans: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  /* 小書き仮名や長音符が行頭に来ないようにする（禁則処理）。
     入れないと「まとめて報告。チ／ェックイン」のように切れる */
  line-break: strict;
}

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   地の模様。プレート（重量盤）を思わせる同心円と、
   ローレット（滑り止め）の斜線。**画像ではなくCSSで描く** */
.plate-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.plate-field::before {
  /* 右上の大きなプレート */
  content: "";
  position: absolute;
  top: -22vw; right: -18vw;
  width: 62vw; height: 62vw;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 27%, rgba(255,193,7,0.05) 27% 28%, transparent 28% 40%,
                    rgba(255,193,7,0.045) 40% 41%, transparent 41% 62%,
                    rgba(255,193,7,0.035) 62% 63%, transparent 63%);
}
.plate-field::after {
  /* ローレット（滑り止め）の斜線 */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -58deg, transparent 0 13px, rgba(243,239,231,0.016) 13px 14px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 78%);
}

/* ------------------------------------------------------------
   トップバー */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(18px, 5vw, 48px);
  background: rgba(27, 25, 24, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar .mark { display: flex; align-items: center; gap: 11px; }
.bar .mark img { height: 19px; display: block; }
.bar .mark span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ash); text-transform: uppercase; padding-top: 2px;
}
.bar nav { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.bar nav a { color: var(--ash); font-size: 14px; }
.bar nav a:hover { color: var(--chalk); text-decoration: none; }

/* ------------------------------------------------------------
   ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--brass); color: #201d16;
  box-shadow: 0 6px 22px rgba(255, 193, 7, 0.18);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 193, 7, 0.26); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(243,239,231,0.28); background: rgba(243,239,231,0.04); }

/* ------------------------------------------------------------
   レイアウト */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px); }
section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--brass); opacity: .6;
}

h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
/* 見出しを語のかたまりで折り返すための箱。**中では折り返されない。**
   <br> だけだと、狭い画面でその行がさらに折り返されて語の途中で切れる。
   **箱と箱のあいだに空白を書かないこと**（inline-block の隙間が出る） */
.nw { display: inline-block; }

/* ------------------------------------------------------------
   ヒーロー */
.hero { position: relative; padding: clamp(56px, 11vw, 118px) 0 clamp(48px, 8vw, 92px); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px); font-weight: 700; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--brass); }
.hero p.lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--ash); max-width: 46ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--ash-dim); }

/* バーベルの図。SVGは HTML 側に置く */
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; }

/* ------------------------------------------------------------
   数字の帯 */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: clamp(24px, 5vw, 48px) 0 0;
}
.stats div { background: var(--surface); padding: 22px 24px; }
.stats b {
  display: block; font-family: var(--mono); font-size: 28px; font-weight: 600;
  color: var(--brass); letter-spacing: -0.02em;
}
.stats span { display: block; font-size: 13px; color: var(--ash); }
/* 3段目の補足。数字・ラベル・補足の順に読ませる */
.stats em { display: block; font-style: normal; font-size: 11.5px; color: var(--ash); opacity: 0.72; margin-top: 3px; }

/* ------------------------------------------------------------
   カード */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: rgba(255,193,7,0.3); transform: translateY(-2px); }
.card .ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--brass-soft); color: var(--brass);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ash); line-height: 1.7; }
.card .tag {
  display: inline-block; margin-top: 14px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ash-dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.card .tag.coach { color: var(--brass); border-color: rgba(255,193,7,0.3); }

/* 節 */
.band { padding: clamp(48px, 8vw, 90px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
.band > .wrap > p.sub { color: var(--ash); max-width: 60ch; margin: 0 0 34px; font-size: 15.5px; }

/* 2列（説明＋画面） */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split ul { margin: 0; padding-left: 18px; color: var(--ash); font-size: 15px; }
.split ul li { margin-bottom: 10px; }
.split ul li b { color: var(--chalk); font-weight: 600; }

/* ------------------------------------------------------------
   端末の枠に入れた画面 */
.phone {
  position: relative; margin: 0 auto; width: 100%; max-width: 268px;
  border: 8px solid #0d0c0b; border-radius: 34px;
  background: #0d0c0b; box-shadow: 0 22px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.phone img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------
   ログインの箱 */
.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(26px, 4vw, 38px);
  max-width: 430px;
}
.panel h2 { font-size: 21px; margin-bottom: 6px; }
.panel p.sub { color: var(--ash); font-size: 14px; margin: 0 0 22px; }
label { display: block; font-size: 13px; color: var(--ash); margin: 0 0 6px; }
input[type=email], input[type=password] {
  width: 100%; padding: 12px 14px; margin-bottom: 16px;
  background: var(--ink); color: var(--chalk);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 16px;
}
input:focus { outline: none; border-color: rgba(255,193,7,0.55); }
.msg { font-size: 13.5px; margin: 0 0 14px; min-height: 1.2em; }
.msg.err { color: var(--rust); }
.msg.ok { color: var(--moss); }

/* ------------------------------------------------------------
   フッター */
footer {
  border-top: 1px solid var(--line); padding: 34px 0 46px;
  color: var(--ash-dim); font-size: 13px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 18px; }
footer a { color: var(--ash); }

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto 8px; }
  .split { grid-template-columns: 1fr; }
  .bar nav a.hide-sm { display: none; }
}
