/* フタラ堂 / Futaradoh  共通の見た目 */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --ink-soft: #5d5850;
  --line: #e6e1d8;
  --accent: #e0522d;
  --accent-ink: #ffffff;
  --accent-soft: #fdebe4;
  --radius: 14px;
  --max: 980px;
  --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --font-body: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #201f1c;
    --ink: #f2efe9;
    --ink-soft: #b3ada3;
    --line: #34312c;
    --accent: #f06a43;
    --accent-ink: #1a0f0b;
    --accent-soft: #3a2119;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 26px; flex: none; }
.brand-name { white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .04em; line-height: 1.1; }
.brand-sub { display: block; font-size: 10px; letter-spacing: .25em; color: var(--ink-soft); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px;
}
.nav a:hover { background: var(--accent-soft); }
.nav .lang { border: 1px solid var(--line); margin-left: 6px; }

/* 見出しまわり */
.hero { padding: 72px 0 56px; }
.hero-mark { width: 96px; height: 72px; margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(34px, 7vw, 56px); line-height: 1.15; margin: 0 0 8px; letter-spacing: .03em;
}
.hero .en-name { font-weight: 800; letter-spacing: .3em; color: var(--ink-soft); font-size: 13px; margin: 0 0 24px; }
.hero .lead { font-size: clamp(16px, 2.4vw, 19px); max-width: 36em; margin: 0; color: var(--ink); }

section { padding: 48px 0; border-top: 1px solid var(--line); }
.section-title {
  font-family: var(--font-head); font-weight: 800; font-size: 24px; margin: 0 0 24px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 10px; height: 22px; border-radius: 3px; background: var(--accent);
  box-shadow: 14px 0 0 var(--accent); margin-right: 14px;
}

/* アプリのカード */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.card-head { display: flex; gap: 14px; align-items: center; }
.app-icon {
  width: 64px; height: 64px; border-radius: 15px; flex: none; background: var(--accent-soft);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 26px;
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-family: var(--font-head); font-size: 19px; margin: 0; line-height: 1.35; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); margin-top: 4px;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .more { margin-top: auto; font-weight: 700; font-size: 15px; }

/* 漫画 */
.comic { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .comic { grid-template-columns: 1fr 1fr; align-items: center; } }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panels span {
  aspect-ratio: 3 / 4; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface);
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn:hover { filter: brightness(1.05); }

/* アプリの詳しいページ */
.app-hero { padding: 56px 0 32px; display: grid; gap: 28px; }
@media (min-width: 760px) { .app-hero { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.app-hero h1 { font-family: var(--font-head); font-size: clamp(28px, 5vw, 42px); line-height: 1.25; margin: 8px 0 12px; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shot {
  flex: none; width: 200px; aspect-ratio: 9 / 19.5; border-radius: 22px; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, var(--accent-soft) 10px, var(--accent-soft) 20px);
  display: grid; place-items: center; color: var(--ink-soft); font-size: 13px; scroll-snap-align: start; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { font-weight: 700; color: var(--ink-soft); }
.facts dd { margin: 0; }

/* 文章のページ（個人情報・サポート） */
.doc { padding: 48px 0 24px; max-width: 760px; }
.doc h1 { font-family: var(--font-head); font-size: clamp(26px, 5vw, 34px); margin: 0 0 8px; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-family: var(--font-head); font-size: 20px; margin: 36px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.note {
  background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0;
}
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin: 10px 0;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-soft); font-size: 14px; margin-top: 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .nav a { padding: 6px 7px; font-size: 13px; }
  .nav a.opt { display: none; }
  .nav { flex-wrap: nowrap; }
  .hero { padding: 48px 0 40px; }
}
