/* ウィジェット起業 公式サイト
   構成はウィジェット野球・サッカー・戦国武将のサイトを踏襲。配色はアプリの画面（夜の紺・青のアクセント）に合わせる。
   ★フォントは外部から読み込まない（Google Fonts 等を使うと、閲覧者の情報が外部に渡るため）。端末のゴシック体を使う。 */
:root {
  --bg: #0e1116;           /* アプリの Theme.background */
  --surface: #191d24;      /* Theme.surface */
  --surface-high: #232831; /* Theme.surfaceHigh */
  --text: #edf0f5;         /* Theme.primaryText */
  --text-soft: #9ea6b3;    /* Theme.secondaryText */
  --accent: #599ffa;       /* Theme.accent */
  --accent-deep: #3b7fe0;
  --positive: #4dc78c;     /* Theme.positive */
  --caution: #f5b84f;      /* Theme.caution */
  --negative: #ed6b6b;     /* Theme.negative */
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 50% -10%, rgba(89, 159, 250, 0.22), transparent 62%),
    linear-gradient(180deg, #121a2b 0%, #0e1116 40%, #0b0d12 100%);
  /* background-attachment: fixed は iOS Safari で描画が壊れるので使わない（サッカーサイトで実際に踏んだ）。 */
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1080px; margin: 0 auto; padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-weight: 800; font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.nav-links a:hover { color: var(--accent); }

/* hero */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 56px 20px 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 44px 56px;
}
.hero-copy { text-align: center; max-width: 470px; }
.hero-icon { width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.wordmark { font-weight: 800; font-size: clamp(30px, 7.4vw, 44px); letter-spacing: .06em; line-height: 1.25; }
.hero-copy h1 { font-weight: 800; font-size: clamp(24px, 6vw, 34px); line-height: 1.5; margin-top: 18px; color: var(--accent); }
.tagline { font-weight: 700; font-size: clamp(16px, 3.8vw, 19px); line-height: 1.7; margin-top: 8px; }
/* 日本語の見出しは、語の途中ではなく句読点のところで折り返す（入りきらないときだけ語の途中で折る） */
.hero-copy h1, .tagline, .hero-copy .sub, .widget-note, .sec-title, .sec-lead, .feature h3, .scene figcaption, .play h3, .plan h3, .doc h1, .doc h2 {
  word-break: keep-all; overflow-wrap: anywhere;
}
.rule { width: 88px; height: 4px; background: var(--accent); margin: 20px auto; border-radius: 2px; }
.hero-copy .sub { color: var(--text-soft); font-size: 14px; line-height: 1.95; }
.badge {
  display: inline-block; margin-top: 24px; padding: 11px 28px;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.badge.soon { background: transparent; color: var(--text-soft); border-color: var(--line); cursor: default; }

/* ホーム画面のウィジェット（コマ送りで動かす） */
.hero-widget { flex: none; width: min(480px, 92vw); text-align: center; }
.widget { position: relative; width: 100%; aspect-ratio: 1316 / 620; }
.widget img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.widget img.frame { opacity: 0; transition: opacity .5s ease; }
.widget img.frame.on { opacity: 1; }
.widget-note { margin-top: 14px; font-size: 12px; color: var(--text-soft); line-height: 1.8; }
.widget-note b { color: var(--accent); font-weight: 700; }
.stage-label { margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--caution); min-height: 1.6em; }

/* sections */
section { padding: 62px 20px; }
.inner { max-width: 1080px; margin: 0 auto; }
.sec-title { text-align: center; font-size: clamp(22px, 4.2vw, 30px); font-weight: 800; }
.sec-title small { display: block; color: var(--accent); font-size: 12px; letter-spacing: .28em; margin-bottom: 10px; font-weight: 700; }
.sec-rule { width: 64px; height: 4px; background: var(--accent); margin: 18px auto 0; border-radius: 2px; }
.sec-lead { text-align: center; color: var(--text-soft); font-size: 14px; line-height: 1.95; margin-top: 22px; }
.band { background: rgba(255, 255, 255, 0.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* features */
.features { margin-top: 44px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 24px; text-align: center; }
.feature .num { font-size: 42px; font-weight: 800; color: var(--accent); line-height: 1; }
.feature .num small { font-size: 17px; color: var(--text); margin-left: 2px; }
.feature h3 { font-size: 17px; margin-top: 12px; }
.feature p { font-size: 13px; color: var(--text-soft); margin-top: 8px; line-height: 1.9; }

/* ウィジェットの場面 */
.scenes { margin-top: 44px; display: grid; gap: 34px 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.scene { text-align: center; }
.scene figcaption { margin-top: 13px; font-size: 15px; font-weight: 800; }
.scene figcaption span { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--text-soft); line-height: 1.7; }

/* 1日の流れ */
.day { margin-top: 44px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.day .play .time { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1; }
.day .play .time { white-space: nowrap; }
.day .play .time small { display: block; font-size: 12px; color: var(--caution); margin-top: 8px; font-weight: 700; letter-spacing: .08em; }

/* 遊びの要素 */
.plays { margin-top: 44px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.play { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px; position: relative; }
.play h3 { font-size: 17px; margin-top: 2px; }
.day .play h3 { margin-top: 12px; }
.play h3 em {
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--caution);
  border: 1px solid rgba(245, 184, 79, .45); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px;
}
.play p { font-size: 13px; color: var(--text-soft); line-height: 1.85; margin-top: 7px; }

/* screenshots */
.shots {
  margin-top: 44px; display: flex; gap: 18px; overflow-x: auto;
  padding: 10px 4px 26px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
}
.shot { flex: none; width: 210px; scroll-snap-align: center; text-align: center; }
.shot img { width: 100%; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); border: 1px solid var(--line); }
.shot span { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--text-soft); }
.scroll-hint { text-align: center; font-size: 11.5px; color: var(--text-soft); }

/* 料金 */
.plans { margin-top: 44px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; }
.plan.featured { border: 2px solid var(--accent); background: rgba(89, 159, 250, .08); }
.plan h3 { font-size: 19px; }
.plan .price { font-size: 34px; font-weight: 800; color: var(--accent); margin-top: 6px; }
.plan .price small { font-size: 14px; color: var(--text-soft); margin-left: 4px; }
.plan ul { margin-top: 12px; padding-left: 20px; }
.plan li { font-size: 13.5px; line-height: 1.95; }
.plan-note { margin-top: 12px; font-size: 12px; color: var(--text-soft); line-height: 1.8; }
.fine { margin-top: 26px; font-size: 12px; color: var(--text-soft); line-height: 1.9; text-align: center; }

/* spec table */
.spec { margin-top: 40px; width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 14px 10px; text-align: left; line-height: 1.85; vertical-align: top; }
.spec th { width: 30%; font-weight: 700; white-space: nowrap; }
.spec td { color: var(--text-soft); word-break: break-word; overflow-wrap: anywhere; }
.spec a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* contact cta */
.cta { text-align: center; }
.btn {
  display: inline-block; margin-top: 26px; padding: 16px 44px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-weight: 800; font-size: 15px; border: 2px solid var(--accent);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 20px 46px; text-align: center; font-size: 12px; color: var(--text-soft); }
.foot-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 18px; font-weight: 600; flex-wrap: wrap; }
.foot-links a:hover { color: var(--accent); }

/* 開発・運営のクレジット（n11）。ロゴは白い台紙に載せる（暗い背景のため） */
.dev-credit { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 18px; }
.dev-credit-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; color: var(--text-soft); }
.dev-credit-link {
  display: inline-flex; padding: 9px 16px; border-radius: 14px;
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dev-credit-link img { display: block; height: 24px; width: auto; }
.dev-credit-link:hover { transform: translateY(-2px); }

/* text pages (privacy / terms / contact) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: 26px; text-align: center; }
.doc .updated { text-align: center; color: var(--text-soft); font-size: 12px; margin: 12px 0 40px; line-height: 1.8; }
.doc h2 { font-size: 18px; margin: 36px 0 12px; border-left: 4px solid var(--accent); padding-left: 12px; }
.doc p, .doc li { font-size: 14px; line-height: 2.0; color: #cdd3dd; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; margin-top: 6px; }
.doc a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc .card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; text-align: center; margin-top: 36px; }
.doc .mail { font-size: 18px; font-weight: 700; margin-top: 8px; word-break: break-all; color: var(--text); }

@media (max-width: 560px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: auto; }
  .spec tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .spec th, .spec td { border: 0; padding: 0; }
  .spec th { font-size: 11px; color: var(--text-soft); letter-spacing: .04em; }
  .spec td { margin-top: 4px; }
  .scenes { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { padding: 10px 16px; }
  .brand span { font-size: 14px; }
  .brand img { width: 26px; height: 26px; }
  .nav-links { gap: 12px; font-size: 12.5px; }
  /* 狭い画面では章内リンクを落として、ロゴとお問い合わせを優先する */
  .nav-links a[href*="#"] { display: none; }
  section { padding: 50px 16px; }
  .hero { padding: 40px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .widget img.frame { transition: none; }
}
