/* 翻訳ITOCON のサイト（2026-10-09 第25号で作り直し。手本は白地・1色・太い見出し・2列の組み立て）
   決まり：地は白とごく薄い色。色は紫（アイコンの色 #403068）1色。グラデーション・半透明・光る飾り・浮き出る動きは使わない。
   暗い表示の設定でも白い地のまま（color-scheme: light のみ）。文字は大きめ。ボタンは大きく幅を持たせる。 */
:root {
  --bg: #ffffff;
  --soft: #f4f1f9;
  --card: #ffffff;
  --text: #1a1a1f;
  --muted: #55555f;
  --line: #e2dfe8;
  --accent: #403068;
  --accent-dark: #2f2350;
  --accent-soft: #ece7f4;
  color-scheme: light only;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-inline: 24px; }

/* 上の帯 */
header.site { border-bottom: 1px solid var(--line); background: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 21px; }
.brand img { width: 40px; height: 40px; }
nav.site { display: flex; gap: 22px; font-size: 16px; flex-wrap: wrap; align-items: center; }
nav.site a { color: var(--text); text-decoration: none; font-weight: 600; }
nav.site a:hover { color: var(--accent); }

main { padding-block: 0 64px; }
main > .wrap-narrow, main > .wrap { padding-top: 40px; }

/* 見出し：太い黒い文字。下に短い紫の線（どの段も同じ） */
h1 { font-size: 34px; line-height: 1.35; margin: 0 0 20px; font-weight: 800; }
h2 { font-size: 30px; line-height: 1.35; margin: 0 0 28px; font-weight: 800; position: relative; padding-bottom: 14px; }
h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); position: absolute; left: 0; bottom: 0; border-radius: 2px; }
h2.center { text-align: center; }
h2.center::after { left: 50%; transform: translateX(-50%); }
h3 { font-size: 22px; line-height: 1.4; margin: 28px 0 10px; font-weight: 700; }
p { margin: 0 0 14px; }

/* ボタン：大きく、幅を持たせる */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 20px; line-height: 1.3; padding: 18px 40px; border-radius: 10px; min-width: 300px; text-align: center; border: 2px solid var(--accent); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-white { background: #fff; color: var(--accent); border-color: #fff; }
.btn-white:hover { background: var(--accent-soft); }

/* チェックの印の付いた箇条書き */
ul.checks { list-style: none; padding: 0; margin: 0 0 24px; }
ul.checks li { position: relative; padding-left: 36px; font-size: 20px; font-weight: 600; margin-bottom: 10px; line-height: 1.6; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin-top: 3px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; text-align: center; line-height: 26px; }

.small { font-size: 16px; color: var(--muted); margin: 0 0 6px; }

/* 1. 一番上 */
.hero { background: var(--soft); padding-block: 48px 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero .eyebrow { font-size: 18px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.hero h1 { font-size: 44px; }
.hero .btn { margin: 6px 0 14px; }

/* 動画の置き方（第24号の決まりのまま） */
.video-box { }
.video-frame { position: relative; display: flex; justify-content: center; }
.video-box video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.video-box.is-portrait video { width: auto; max-width: 100%; max-height: 70vh; aspect-ratio: 9 / 16; }
.video-box.is-broken video { display: none; }
.video-box.is-broken .video-frame img.fallback { display: block; }
.video-frame img.fallback { display: none; border-radius: 12px; }
.video-big-play { position: absolute; inset: 0; margin: auto; width: 180px; height: 60px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.video-big-play[hidden] { display: none; }
.video-controls { display: flex; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.video-controls button { border: 2px solid var(--accent); background: #fff; color: var(--accent); font-size: 17px; font-weight: 700; padding: 10px 22px; border-radius: 10px; cursor: pointer; min-width: 140px; }
.video-controls button[aria-pressed="true"].sound { background: var(--accent); color: #fff; }
.video-controls button:disabled { opacity: 0.5; cursor: default; }

/* 2. 使える通話の帯 */
.apps-band { border-bottom: 1px solid var(--line); background: #fff; }
.apps-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding-block: 18px; }
.apps-band .label { font-weight: 700; color: var(--muted); margin-right: 6px; font-size: 16px; }
.apps-band span.app { font-weight: 700; font-size: 19px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 8px; }

/* 段の共通 */
section.block { padding-block: 64px 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.cards li { background: var(--soft); border-radius: 12px; padding: 22px 24px; font-size: 20px; font-weight: 700; line-height: 1.6; }

/* 5. 使い方：01〜04 を左右交互に */
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 24px; }
.step:nth-child(even) .step-text { order: 2; }
.step .num { font-size: 20px; font-weight: 800; color: var(--accent); margin: 0 0 6px; letter-spacing: 0.04em; }
.step h3 { margin: 0 0 12px; font-size: 24px; }
.step img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.step img.shot { width: auto; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); margin: 0 auto; }
.step .step-text h3 { margin: 0 0 10px; font-size: 24px; }
.step .step-text p { font-size: 18px; }
.step ul.checks { margin-bottom: 0; }

/* 6. 安心して使うために */
ul.assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ul.assure li { position: relative; padding: 18px 20px 18px 58px; background: var(--soft); border-radius: 12px; font-size: 18px; line-height: 1.7; }
ul.assure li::before { content: "✓"; position: absolute; left: 20px; top: 20px; width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; text-align: center; line-height: 26px; }

/* 7. 紫の帯 */
.band-purple { background: var(--accent); color: #fff; margin-top: 64px; }
.band-purple .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 40px; }
.band-purple p { font-size: 26px; font-weight: 700; margin: 0; }

/* 8. 料金 */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
.price { border: 2px solid var(--accent); border-radius: 14px; padding: 26px 24px; text-align: center; }
.price .minutes { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.price .yen { font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1.2; margin: 0; }
ul.plain { padding-left: 1.3em; margin: 0 0 14px; }
ul.plain li { margin-bottom: 6px; }

/* 10. 1分で分かる、翻訳ITOCON（YouTube。押すまで読み込まない） */
/* 枠の高さは「幅の 56.25%」の余白で作る（aspect-ratio に頼らない。Safari を含むどのブラウザーでも、表紙の絵と
   押した後の動画が同じ大きさ・同じ位置になる。第34号） */
.yt-wrap { max-width: 960px; margin: 0 auto; }
.yt { position: relative; width: 100%; height: 0; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; }
.yt iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; display: block; }
.yt-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.yt-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.yt-cover:hover .yt-play { background: var(--accent-dark); }
.yt-play-tri { width: 0; height: 0; border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent #fff; margin-left: 8px; }
.cm-cta { text-align: center; margin-top: 28px; }
.cm-cta .cm-lead { font-size: 22px; font-weight: 700; margin: 0 0 14px; }
.cm-cta .btn { margin: 0 0 10px; }
.cm-cta .small { margin: 0; }
@media (max-width: 760px) { .yt-play { width: 72px; height: 72px; margin: -36px 0 0 -36px; } .cm-cta .cm-lead { font-size: 19px; } }

/* 表（対応している通話・特商法など） */
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 10px; text-align: left; vertical-align: top; }
th { width: 30%; color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ほかのページの部品 */
.card { background: var(--soft); border-radius: 12px; padding: 20px 24px; margin: 0 0 18px; }
.note { color: var(--muted); font-size: 16px; }
ol, ul { padding-left: 1.4em; }
ol li, ul li { margin-bottom: 6px; }

footer.site { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); margin-top: 48px; }
footer.site .wrap { padding-block: 26px; display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* スマホの幅 */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap, .wrap-narrow { padding-inline: 18px; }
  h1, .hero h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .hero { padding-block: 28px 36px; }
  .hero .wrap, .two-col, .step { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .step:nth-child(even) .step-text { order: 0; }
  .cards, .prices { grid-template-columns: minmax(0, 1fr); }
  .btn { display: block; width: 100%; min-width: 0; }
  ul.checks li { font-size: 18px; }
  .band-purple p { font-size: 22px; }
  .apps-band span.app { font-size: 16px; padding: 4px 10px; }
  section.block { padding-block: 44px 0; }
}
.dl { text-align: center; }
.dl .btn { margin: 4px 0 12px; }
.dl .small { margin: 0; }
