/* 将棋フロンティア2 ホームページ（案 A「縁側」。2026-10-14）。配色はアプリの榧色のパネル（KayaTheme）と同じ */
:root {
  --page: #F1E3C3;
  --alt: #E8D5A6;
  --hd: #2A1806;
  --hdtext: #F3D27A;
  --text: #2A1806;
  --dim: #5E3A0C;
  --gold: #E8C15C;
  --gold-dk: #9A6A1E;
  --red: #C8382A;
  --cream: #F6EFDD;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif; font-weight: 500; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.hd { background: var(--hd); color: var(--hdtext); position: sticky; top: 0; z-index: 5; }
.hd .wrap { height: 64px; display: flex; align-items: center; gap: 18px; }
.hd .logo img { height: 32px; display: block; }
.hd nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 700; }
.hd nav a:hover { color: #fff; }
.btn { display: inline-block; white-space: nowrap; border-radius: 12px; padding: 10px 22px; font-weight: 900; font-size: 15px; line-height: 1.3; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.25); cursor: pointer; }
.btn.pri { background: linear-gradient(#D04432, #8E1E16); border: 2px solid var(--gold); color: #FFF5DC; }
.btn.sec { background: linear-gradient(#FBEBC6, #D6B06A); border: 2px solid var(--gold-dk); color: var(--dim); }
.hd .btn { padding: 7px 14px; font-size: 13px; }

/* ヒーロー */
.hero { position: relative; background: #2A1806 url(hero_bg.jpg) center/cover; color: var(--cream); overflow: hidden; }
.hero .wrap { display: flex; align-items: center; gap: 40px; padding-top: 56px; min-height: 600px; }
.hero-l { flex: 1; }
.hero-logo { width: 480px; max-width: 100%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.tag { font-family: "Yuji Syuku", serif; font-size: 40px; margin: 20px 0 8px; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.lead { font-size: 17px; color: #E8D8B8; margin: 0 0 24px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #888; border-radius: 10px; padding: 9px 18px; font-size: 15px; font-weight: 700; line-height: 1.2; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .85; }
.store .tri { width: 0; height: 0; border-left: 22px solid #3DDC84; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.store.soon { opacity: .55; cursor: default; }
.hero-r { position: relative; flex: 0 0 auto; align-self: flex-end; }
.hero-r .phone { width: 300px; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
/* スマホの脇の立ち絵（chara.png）は 2026-10-14 に外した（比率がおかしく見える） */

/* 節 */
section { padding: 64px 0; }
section.alt { background: var(--alt); }
h2 { font-family: "Yuji Syuku", serif; font-weight: 400; font-size: 36px; margin: 0 0 28px; display: flex; align-items: center; gap: 14px; }
h2:before { content: ""; width: 6px; height: 36px; background: var(--gold-dk); border-radius: 3px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: linear-gradient(#F8E8C4, #EDD29C); border: 2px solid var(--gold); border-radius: 18px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px rgba(0,0,0,.18); }
.card img { width: 46px; height: 46px; display: block; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.card p { margin: 0; font-size: 14.5px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.gallery img { width: 100%; display: block; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-weight: 700; font-size: 15px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule { display: flex; gap: 16px; align-items: baseline; background: linear-gradient(#F8E8C4, #EDD29C); border: 2px solid var(--gold); border-radius: 14px; padding: 14px 20px; }
.rule b { flex: 0 0 140px; font-size: 16px; }
.rule span { font-size: 14.5px; }
.faq .q { font-weight: 900; font-size: 17px; margin: 18px 0 4px; }
.faq .a { font-size: 15px; margin: 0; color: var(--dim); }

/* 文章のページ（プライバシーポリシーなど） */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-family: "Yuji Syuku", serif; font-weight: 400; font-size: 34px; margin: 0 0 6px; }
.doc .date { color: var(--dim); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; font-family: inherit; font-weight: 900; margin: 34px 0 10px; }
.doc h2:before { height: 22px; width: 5px; }
.doc p, .doc li { font-size: 15px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid #C9A76A; padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #EDD29C; }
.note { background: linear-gradient(#F8E8C4, #EDD29C); border: 2px solid var(--gold); border-radius: 14px; padding: 14px 18px; font-size: 14.5px; }

/* フッター */
footer { background: var(--hd); color: #E8D8B8; padding: 40px 0; font-size: 13.5px; }
footer img { height: 30px; margin-bottom: 14px; display: block; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 14px; font-weight: 700; }
footer .links a:hover { color: #fff; }

@media (max-width: 760px) {
  .hd .wrap { height: 56px; }
  .hd nav { display: none; }
  .hd .btn { margin-left: auto; }
  .hero .wrap { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 36px; min-height: 0; }
  .hero-logo { width: 330px; }
  .tag { font-size: 30px; margin-top: 12px; }
  .lead { font-size: 14.5px; }
  .hero-r { align-self: center; }
  .hero-r .phone { width: 250px; }
  section { padding: 44px 0; }
  h2 { font-size: 28px; }
  h2:before { height: 28px; }
  .grid, .rules { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .rule b { flex-basis: 110px; }
}

/* 特定商取引法に基づく表記の表 */
.doc table.spec{width:100%;border-collapse:collapse;margin:18px 0}
.doc table.spec th,.doc table.spec td{border:1px solid rgba(232,186,92,.35);padding:10px 12px;text-align:left;vertical-align:top;line-height:1.8}
.doc table.spec th{width:30%;white-space:nowrap;background:rgba(232,186,92,.08);font-weight:700}
@media(max-width:640px){.doc table.spec th,.doc table.spec td{display:block;width:auto;white-space:normal}.doc table.spec th{border-bottom:none}}
