/* apps.f-five.co.jp 共通。色と書体はコーポレートサイト（f-five.co.jp/css/style.css）に合わせている */
:root {
  --primary: #0067c0;
  --secondary: #0057a4;
  --accent: #4ca3ff;
  --dark: #1d1f28;
  --bg: #fafafa;
  --text: #222;
  --text-sub: #555761;
  --muted: #7a7c87;
  --line: rgba(0, 0, 0, 0.1);
  --card: #fff;
  --gradient-primary: linear-gradient(135deg, #0067c0, #4ca3ff);
  --gradient-dark: linear-gradient(135deg, #1d1f28, #373a47);
  --shadow: 0 10px 30px rgba(0, 103, 192, 0.1);
  --radius: 16px;
  --font: 'Inter', 'Noto Sans JP', sans-serif;
  color-scheme: light;
}

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

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー・フッター */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.95); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { display: block; }
.brand__apps { font-weight: 700; font-size: 15px; color: var(--primary); padding-left: 12px; border-left: 1px solid var(--line); }
.header-end { display: flex; align-items: center; gap: 16px; }
.site-nav { display: flex; gap: 8px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--text); padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: 12px; font-weight: 700; }
.lang-switch a { color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.lang-switch a:hover { color: var(--primary); }
.lang-switch a[aria-current="true"] { background: var(--gradient-primary); color: #fff; }

.site-footer { margin-top: 96px; background: var(--dark); color: rgba(255, 255, 255, 0.7); padding: 32px 0; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }

/* 見出し */
h1, h2, h3 { font-weight: 700; line-height: 1.4; margin: 0; }
.hero { background: var(--gradient-dark); color: #fff; padding: 88px 0 80px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255, 255, 255, 0.85); margin: 20px 0 0; max-width: 40em; font-size: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 16px; }

.section-title { margin: 72px 0 8px; font-size: clamp(24px, 4vw, 32px); }
.section-title span { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-lead { color: var(--muted); margin: 0; }

/* アプリ紹介 */
.app { margin-top: 32px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; display: grid; grid-template-columns: 1fr 280px; gap: 48px; }
.app__name { font-size: 30px; }
.app__name .beta { display: inline-block; vertical-align: middle; margin-left: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: #fff; background: var(--gradient-primary); border-radius: 999px; padding: 2px 10px; line-height: 1.6; }
.beta-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff7e6; color: #8a5a00; font-size: 13px; }
.app__name small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.app__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.app__tags span { font-size: 12px; font-weight: 600; color: var(--primary); background: rgba(0, 103, 192, 0.08); border-radius: 999px; padding: 4px 12px; }
.app__lead { color: var(--text-sub); margin: 20px 0 0; }
.app h3 { font-size: 17px; margin-top: 36px; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.3; }
.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.features li { padding-left: 22px; position: relative; }
.features li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 5px; background: var(--gradient-primary); }
.features strong { color: var(--text); }
.features span { color: var(--text-sub); display: block; font-size: 14px; }
.steps { padding-left: 1.4em; margin: 16px 0 0; color: var(--text-sub); }
.steps li { margin-top: 6px; }
.note { margin-top: 28px; padding: 16px 20px; border-radius: 12px; background: #f1f6fc; color: var(--text-sub); font-size: 14px; }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 36px; border-radius: 26px; background: var(--gradient-primary); color: #fff; font-weight: 700; box-shadow: 0 10px 20px rgba(76, 163, 255, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(76, 163, 255, 0.4); }
.cta small { color: var(--muted); font-size: 13px; }

/* タイマー画面のイメージ（スクリーンショットの代わりに CSS で描いている）。ここだけアプリ本体の配色 */
.mock {
  --m-bg: #17120E; --m-line: #3A2F27; --m-line-soft: #2E251E; --m-text: #F1E8DC; --m-sub: #B4A595; --m-mute: #8A7C6F; --m-accent: #F08A4B;
  align-self: start; position: sticky; top: 96px; background: var(--m-bg); color: var(--m-text); border: 6px solid #2b2d36; border-radius: 32px;
  padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 20px 40px rgba(29, 31, 40, 0.25);
}
.mock__label { font-size: 12px; color: var(--m-mute); }
.mock__time { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 44px; line-height: 1; }
.mock__stages { display: flex; gap: 4px; width: 100%; }
.mock__stages span { flex: 1; text-align: center; font-size: 10px; padding: 6px 0; border-radius: 6px; background: var(--m-line-soft); color: var(--m-mute); }
.mock__stages span.on { background: var(--m-accent); color: var(--m-bg); font-weight: 700; }
.mock__rows { width: 100%; font-size: 12px; color: var(--m-sub); display: grid; gap: 6px; }
.mock__rows div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--m-line); padding-bottom: 6px; }
.mock__rows b { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--m-text); }
.mock__btn { width: 100%; height: 48px; border-radius: 24px; background: var(--m-accent); color: var(--m-bg); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* アプリ画面のスクリーンショット（スマホ縦向きの画面）。枠は .mock と同じ */
.shot { align-self: start; position: sticky; top: 96px; margin: 0; border: 6px solid #2b2d36; border-radius: 32px; overflow: hidden; background: #0d1024; box-shadow: 0 20px 40px rgba(29, 31, 40, 0.25); }
.shot img { display: block; width: 100%; height: auto; }

/* 準備中 */
.soon { margin-top: 24px; border: 2px dashed rgba(0, 103, 192, 0.2); border-radius: var(--radius); padding: 24px 32px; color: var(--text-sub); }
.soon h2 { font-size: 18px; color: var(--text); }
.soon p { margin: 8px 0 0; }

/* 文書ページ（プライバシーポリシーなど） */
.doc { max-width: 760px; }
.doc__body { margin-top: 48px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.doc h1 { font-size: 28px; }
.doc h2 { font-size: 18px; margin-top: 40px; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.3; }
.doc p, .doc li { color: var(--text-sub); }
.doc .meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.doc th { width: 30%; color: var(--muted); font-weight: 500; }

@media (max-width: 760px) {
  /* 狭い画面では2段にする。上段にロゴと言語、下段にメニュー */
  .site-header .wrap { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .header-end { display: contents; }
  /* ロゴは横長のまま小さくする */
  .brand { gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .brand .brand__logo-text { width: 78px; height: 21px; }
  .brand__apps { font-size: 13px; padding-left: 8px; }
  .lang-switch { font-size: 11px; }
  .lang-switch a { padding: 4px 8px; }
  .site-nav { order: 1; width: 100%; gap: 0; font-size: 13px; overflow-x: auto; margin: 4px -8px 0; padding-bottom: 4px; }
  .site-nav a { padding: 8px; }
  .hero { padding: 56px 0 48px; }
  .section-title { margin-top: 48px; }
  .app { grid-template-columns: 1fr; gap: 32px; padding: 28px 20px; }
  .mock, .shot { position: static; max-width: 300px; width: 100%; justify-self: center; order: -1; }
  .soon { padding: 20px; }
  .doc__body { margin-top: 32px; padding: 28px 20px; }
}
