/*
 * GamesInk トップ（/）専用のスタイル。レイアウトは app/View/Layouts/top.ctp、中身は app/View/Articles/index.ctp。
 * 「虹色のインク」がモチーフ: 見出しの下のかすれた虹の線、攻略サイトごとのインクのしずく（色は並び順で虹をn等分）、黒い帯へ垂れるインク。
 * 2026-11-08 作成。直したら top.ctp の $topCssVersion を上げる
 */
:root {
  --navy: #1a3950; --navy-2: #24506f; --sky: #cddbe9; --sky-2: #e8eff6; --paper: #fbfcfd;
  --ink: #141414; --text2: #3a4652; --sub: #66727e; --line: #dfe6ed;
  /* ロゴのしずくのグラデーションの7色。サイトの色にも使う */
  --c1: #ff7a8a; --c2: #f6cf4a; --c3: #7fdc6e; --c4: #3fd3d6; --c5: #4c7fe6; --c6: #8b62e0; --c7: #f06aa9;
}
* { box-sizing: border-box; }
/* ナビ・ヒーローのボタンでページ内を移動するときは、スクロールして同じページだと分かるように（動きを減らす設定の人は一瞬で飛ぶ） */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* 上に貼り付いたナビ（52px）の下で止める */
#sites, #tools, #contact { scroll-margin-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* 上部のバー（今と同じ紺） */
.nav { background: var(--navy); height: 52px; position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 28px; }
.nav img { height: 24px; display: block; }
.nav ul { display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 13px; color: #c9d6e2; }
.nav li a:hover { color: #fff; }

/* ヒーロー: 水色の面に、虹のインクがにじんだ跡 */
.hero { position: relative; overflow: hidden; background: var(--sky-2); padding: 88px 0 96px; text-align: center; }
.hero .blots { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .in { position: relative; }
.hero .logo { width: 340px; max-width: 78%; }
.hero h1 { margin: 0; line-height: 1; }
.hero .catch { font-size: 34px; font-weight: 900; letter-spacing: .06em; line-height: 1.5; margin: 18px 0 4px; color: var(--ink); }
.stroke { display: block; margin: 0 auto; width: 300px; max-width: 70%; height: 16px; }
.hero .lead { color: var(--text2); margin: 18px auto 30px; max-width: 34em; }
.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 23px; font-weight: 700; font-size: 15px; }
.btn-main { background: var(--navy); color: #fff; }
.btn-main:hover { background: var(--navy-2); }
.btn-sub { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn svg { width: 18px; height: 18px; }

/* 見出し: インクのしずく＋文字、下に虹のにじんだ線 */
.sec { padding: 72px 0 24px; }
.sec-h { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 28px; }
.sec-h h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: .04em; line-height: 1.3; }
.sec-h h2 .stroke { margin: 6px 0 0; width: 100%; max-width: none; height: 10px; }
.sec-h .drop { width: 26px; height: 32px; flex: none; margin-bottom: 14px; }

/* 攻略サイト: カードの左上に、そのサイトのインクのしずく */
.sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.site { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .15s, box-shadow .15s; }
.site:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,57,80,.12); }
.site .ic { position: relative; }
.site .ic img { width: 64px; height: 64px; border-radius: 16px; display: block; }
.site .ic .drop { position: absolute; right: -9px; bottom: -6px; width: 20px; height: 25px; filter: drop-shadow(0 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff); }
.site b { font-size: 16px; line-height: 1.4; }
.site small { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.site .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.site .tags span { font-size: 11.5px; padding: 1px 9px; border-radius: 10px; background: var(--sky-2); color: var(--navy); }
.site .badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; color: #fff; background: var(--navy); }
/* カードの下辺に、そのサイトの色の線が少しにじむ */
.site::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--c); opacity: .85; }

/* ツール: 横長のカード、アイコンは色の面 */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool { display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .15s, box-shadow .15s; }
.tool:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,57,80,.12); }
.tool .ti { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); color: var(--fg, #1d2329); }
.tool .ti svg { width: 30px; height: 30px; }
.tool b { display: block; font-size: 15.5px; line-height: 1.4; }
.tool small { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.tool .for { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--navy); background: var(--sky-2); padding: 0 8px; border-radius: 9px; }

/* コンセプト: 今と同じ黒の帯。上の縁から虹のインクが垂れる */
.concept { position: relative; margin-top: 88px; background: #0d0f12; color: #e9edf1; text-align: center; padding: calc(max(96px, 8vw) + 28px) 0 96px; }
/* 絵（1200×96）を横幅いっぱいに広げても垂れの先が切れないよう、高さは画面幅の8%以上（2026-11-08 修正） */
.concept .drips { position: absolute; top: -1px; left: 0; width: 100%; height: max(96px, 8vw); }
.concept h2 { font-size: 26px; font-weight: 900; margin: 0 0 6px; letter-spacing: .04em; }
.concept .stroke { width: 220px; }
.concept p { max-width: 36em; margin: 22px auto 0; color: #b9c2cb; }
.concept .colors { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.concept .colors svg { width: 18px; height: 23px; }

/* お問い合わせ: 今と同じ水色 */
.contact { background: var(--sky); text-align: center; padding: 72px 0; }
.contact h2 { font-size: 22px; margin: 0 0 8px; font-weight: 900; }
.contact p { color: var(--text2); margin: 0 auto 24px; max-width: 36em; }

/* 下の余白は、右下のトップへ戻るボタン（50px＋16px）が最後の行に重ならない高さ */
.ft { background: var(--navy); color: #a9bccd; font-size: 12.5px; padding: 28px 16px 84px; text-align: center; }
.ft ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; list-style: none; padding: 0; margin: 0 0 14px; }
.ft a:hover { color: #fff; }

/* ほかのタイトル: 小さいアイコンと名前だけを詰めて並べる（色はそのまま） */
.past { margin-top: 44px; }
.past h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--text2); }
.past h3 svg { width: 13px; height: 16px; fill: #b8c2cc; }
.past ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.past li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #f1f4f7; font-size: 13px; line-height: 1.35; color: var(--text2); transition: background .15s; }
.past li a:hover { background: var(--sky-2); color: var(--ink); }
.past img { flex: none; width: 34px; height: 34px; border-radius: 9px; display: block; }
.past .sub { margin-top: 18px; }
.past .ri { flex: none; position: relative; width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.past .ri svg.l { width: 20px; height: 20px; }
.past .ri svg.d { position: absolute; right: 3px; bottom: 3px; width: 8px; height: 10px; }
@media (max-width: 640px) { .past .ri { width: 30px; height: 30px; } .past .ri svg.l { width: 18px; height: 18px; } }

@media (max-width: 900px) { .past ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .past ul { grid-template-columns: repeat(2, 1fr); gap: 6px; } .past li a { font-size: 12.5px; padding: 7px 8px; gap: 8px; } .past img { width: 30px; height: 30px; } }

@media (max-width: 900px) {
  .sites { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav ul { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero .catch { font-size: 22px; letter-spacing: .02em; }
  .sec { padding-top: 56px; }
  .sec-h { flex-wrap: wrap; }
  .sec-h h2 { font-size: 22px; }
  .sites { gap: 10px; }
  .site { padding: 14px 12px 12px; }
  .site .ic img { width: 52px; height: 52px; border-radius: 13px; }
  .site b { font-size: 14.5px; }
  .site small { font-size: 11.5px; }
  .site .tags { display: none; }
  .site .badge { top: 10px; right: 10px; }
  .tools { grid-template-columns: 1fr; gap: 10px; }
  .concept { padding-bottom: 72px; }
}

/* トップへ戻るボタン: 少しスクロールすると右下に出る。白い丸に虹の輪、太くて丸い矢印（2026-11-08 案C） */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 50px; height: 50px; border: 0; padding: 0; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(26,57,80,.2); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: conic-gradient(#ff7a8a, #f6cf4a, #7fdc6e, #3fd3d6, #4c7fe6, #8b62e0, #f06aa9, #ff7a8a); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top.is-on:hover { transform: translateY(-3px); }
.to-top svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ===== /info/ の各ページ（GamesInkについて・プライバシーポリシー・広告掲載・お問い合わせ）2026-11-08 ===== */
/* 上の帯: ヒーローを低くしたもの。パンくず・ページ名・虹のかすれた線 */
.page-head { position: relative; overflow: hidden; background: var(--sky-2); padding: 44px 0 72px; text-align: center; }
.page-head .blots { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-head .in { position: relative; }
.crumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 12.5px; color: var(--sub); }
.crumb li + li::before { content: "›"; margin-right: 6px; color: #a4b0bc; }
.crumb a { color: var(--navy); }
.crumb a:hover { text-decoration: underline; }
.page-head h1 { margin: 0 0 6px; font-size: 30px; font-weight: 900; letter-spacing: .04em; line-height: 1.4; }
.page-head .stroke { width: 200px; }

/* 本文: 帯に少し重なる白いカード */
.doc { position: relative; max-width: 800px; margin: -40px auto 0; padding: 40px 48px 44px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(26,57,80,.06); color: var(--text2); line-height: 1.95; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-size: 20px; font-weight: 900; color: var(--ink); line-height: 1.5; }
.doc h3 { margin: 28px 0 8px; padding-left: 12px; border-left: 4px solid var(--sky); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.doc p { margin: 0 0 10px; }
.doc a { color: #2b5bbf; text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--navy); }
.doc .note { font-size: 13px; color: var(--sub); }
.doc figure { margin: 14px 0 12px; text-align: center; }
.doc figure img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.doc .motif { display: block; width: 200px; max-width: 60%; margin: 6px 0 12px; }
.doc .ext { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; }

/* ほかのページへのリンク */
.page-end { height: 72px; }

/* お知らせ（お問い合わせの送信結果。コントローラーの setFlash が .alert の HTML を出す） */
#flashMessage { margin: 0 0 20px; }
#flashMessage .alert { margin: 0; }
.alert { position: relative; margin: 0 0 16px; padding: 14px 44px 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.alert-success { background: #e3f5e6; color: #1f6b33; }
.alert-warning { background: #fff3d6; color: #7a5300; }
.alert .close { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.alert .close:hover { background: rgba(0,0,0,.06); }

/* お問い合わせフォーム */
.form { margin-top: 28px; }
.form .field { margin-bottom: 20px; }
.form label.lbl { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.form .req { font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 9px; background: #ffe0e4; color: #b4384b; line-height: 1.7; }
.form input[type=text], .form input[type=email], .form textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfd; font: inherit; font-size: 16px; color: var(--ink); line-height: 1.6; transition: border-color .15s, background .15s; }
.form textarea { min-height: 220px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: #4c7fe6; background: #fff; box-shadow: 0 0 0 3px rgba(76,127,230,.15); }
.form .field.has-error input, .form .field.has-error textarea { border-color: #d64a5c; background: #fff7f8; }
.form .err { display: block; margin-top: 6px; font-size: 12.5px; color: #c23345; }
.form .captcha { margin: 8px 0 22px; }
.form .captcha .hint { display: block; margin-bottom: 8px; font-size: 13px; color: var(--sub); }
.form .captcha .hint.is-error { color: #c23345; font-weight: 700; }
.form .actions { text-align: center; }
.form button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }

/* 送信内容の確認（ブラウザ標準の <dialog>） */
dialog.confirm { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(13,15,18,.35); color: var(--text2); }
dialog.confirm::backdrop { background: rgba(13,15,18,.55); }
.confirm .hd { padding: 18px 22px 0; font-size: 17px; font-weight: 900; color: var(--ink); }
.confirm dl { margin: 14px 22px 0; padding: 14px 16px; background: #f5f7fa; border-radius: 10px; font-size: 14px; }
.confirm dt { font-size: 12px; color: var(--sub); }
.confirm dd { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; color: var(--ink); max-height: 30vh; overflow: auto; }
.confirm dd:last-child { margin-bottom: 0; }
.confirm p { margin: 14px 22px 0; font-size: 14px; }
.confirm .ft-btns { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }
.confirm .ft-btns .btn { height: 42px; padding: 0 20px; font-size: 14px; }

@media (max-width: 640px) {
  .page-head { padding: 32px 0 64px; }
  .page-head h1 { font-size: 22px; }
  .doc { margin: -40px 12px 0; padding: 26px 18px 30px; border-radius: 14px; }
  .doc h2 { font-size: 18px; margin-top: 32px; }
}
/* reCAPTCHA の枠は幅304px固定。320px幅の端末でははみ出すので縮める */
@media (max-width: 360px) { .form .g-recaptcha { transform: scale(.86); transform-origin: 0 0; height: 68px; } }
