/* ロゴ（色鉛筆・クレヨン画）に合わせた「紙に描いた」見た目 */
:root {
  --paper: #dccdb0;      /* ロゴの紙の色 */
  --paper-2: #e8dcc3;    /* カードの紙 */
  --ink: #1c1a1f;        /* 黒いシルエット */
  --ink-2: #4a4438;
  --blue: #2c5d97;       /* 青のハッチング */
  --navy: #1d3550;
  --teal: #2f8f84;       /* 緑〜水色 */
  --sun: #d9a92a;        /* 右上の黄色 */
  --red: #b8483c;        /* 輪郭の赤 */
  --chalk: #f4eee2;      /* ロゴの白文字 */
  /* 手描きっぽい、少しゆがんだ角 */
  --rough: 255px 18px 225px 16px / 16px 225px 18px 255px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", system-ui, "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", sans-serif;
  line-height: 1.7;
  background-color: var(--paper);
  /* 紙のザラつき＋斜めのクレヨン線（画像を使わず CSS だけ） */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(-58deg, rgba(44, 93, 151, .05) 0 2px, transparent 2px 9px);
}
/* 本文は読みやすいふつうの書体。見出しだけ手書き風 */
p, li, select, .btn { font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", sans-serif; }
a { color: var(--blue); }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 18px 20px;
}
.logo { font-weight: 900; font-size: 1.5rem; color: var(--ink); text-decoration: none; filter: url(#crayon); }
.logo span { color: var(--blue); }
.lang select {
  background: var(--paper-2); color: var(--ink); border: 2px solid var(--ink-2);
  border-radius: var(--rough); padding: 6px 12px; font: inherit; font-size: .9rem;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヒーロー ---------- */
.hero { text-align: center; padding: 8px 0 40px; }
.hero-logo {
  width: min(760px, 100%); height: auto; display: block; margin: 0 auto;
  /* 画像の四角い縁を紙になじませる */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}
.kicker { color: var(--teal); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin: 0; }
.hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 4.2rem); line-height: 1.1; margin: 8px 0 14px;
  color: var(--navy); filter: url(#crayon);
}
.sub { max-width: 620px; margin: 0 auto 28px; color: var(--ink-2); font-size: 1.08rem; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 30px; font-weight: 800; text-decoration: none;
  background: var(--ink); color: var(--chalk);
  border: 3px solid var(--ink); border-radius: var(--rough);
  box-shadow: 4px 5px 0 var(--blue);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 6px 7px 0 var(--blue); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: 4px 5px 0 var(--sun); }
.btn.ghost:hover { box-shadow: 6px 7px 0 var(--sun); }
.btn.small { padding: 10px 22px; font-size: .95rem; box-shadow: 3px 4px 0 var(--red); }
.btn.disabled { background: #8d8576; border-color: #8d8576; cursor: default; transform: none; box-shadow: none; }
.og-note { margin-top: 20px; color: var(--red); font-weight: 700; }

section h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 0 0 22px; text-align: center; color: var(--navy); filter: url(#crayon); }
.recruit, .about, .features, .steps, .lang-note, .final, .games, .faq { padding: 56px 0 0; }

/* ---------- 管理者募集 ---------- */
.recruit-card {
  position: relative; max-width: 720px; margin: 0 auto; padding: 30px 28px 26px; text-align: center;
  background: var(--paper-2); border: 3px solid var(--red); border-radius: var(--rough);
  box-shadow: 6px 7px 0 rgba(184, 72, 60, .25);
  transform: rotate(-.6deg);
}
.recruit-card h2 { margin-bottom: 10px; }
.recruit-card p { margin: 0 0 12px; color: var(--ink-2); }
.recruit-card .tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 14px; color: var(--chalk); background: var(--red);
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; border-radius: var(--rough);
}
.recruit-card .req { color: var(--ink); font-size: 1.05rem; }
.recruit-card .hint { margin: 12px 0 0; font-size: .85rem; }

/* ---------- コンセプト ---------- */
.about { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 32px; align-items: center; }
.about-art {
  width: 100%; height: auto; border-radius: var(--rough);
  border: 3px solid var(--ink-2); transform: rotate(-1.5deg);
  box-shadow: 5px 6px 0 rgba(28, 26, 31, .18);
}
.about h2 { text-align: left; }
.about p { font-size: 1.08rem; color: var(--ink-2); margin: 0; }

/* ---------- 特徴 ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid article {
  background: var(--paper-2); border: 2px solid var(--ink-2); border-radius: var(--rough);
  padding: 22px; box-shadow: 4px 5px 0 rgba(44, 93, 151, .25);
}
.grid article:nth-child(3n+2) { transform: rotate(.5deg); box-shadow: 4px 5px 0 rgba(47, 143, 132, .3); }
.grid article:nth-child(3n) { transform: rotate(-.4deg); box-shadow: 4px 5px 0 rgba(217, 169, 42, .35); }
.grid h3 { margin: 6px 0 6px; font-size: 1.15rem; color: var(--navy); }
.grid p { margin: 0; color: var(--ink-2); }
.ico { font-size: 1.7rem; }

/* ---------- 手順 ---------- */
.steps ol { max-width: 640px; margin: 0 auto; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 14px 16px 14px 62px; margin-bottom: 12px;
  background: var(--paper-2); border: 2px solid var(--ink-2); border-radius: var(--rough);
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%) rotate(-6deg);
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--chalk);
  font-weight: 900; display: grid; place-items: center;
}
.lang-note p { max-width: 640px; margin: 0 auto; text-align: center; color: var(--ink-2); }
.final { text-align: center; padding-bottom: 64px; }
.social a { margin: 0 8px; }

footer {
  border-top: 2px dashed rgba(28, 26, 31, .25); padding: 28px 20px; text-align: center;
  color: var(--ink-2); font-size: .85rem;
}
footer p { max-width: 760px; margin: 6px auto; }
footer a { color: var(--ink-2); }

@media (max-width: 680px) {
  .about { grid-template-columns: 1fr; text-align: center; }
  .about h2 { text-align: center; }
  .about-art { max-width: 280px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- 問い合わせページ ---------- */
.contact-page { max-width: 720px; }
.contact-head { text-align: center; padding: 24px 0 8px; }
.contact-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--navy); filter: url(#crayon); margin: 0 0 10px; }
.c-urgent { font-size: .9rem; color: var(--red); max-width: 600px; margin: 0 auto; }
.cform, .cdone {
  margin: 28px 0 64px; padding: 28px 26px; background: var(--paper-2);
  border: 2px solid var(--ink-2); border-radius: var(--rough); box-shadow: 5px 6px 0 rgba(44, 93, 151, .25);
}
.cform label { display: block; font-weight: 700; margin: 18px 0 6px; color: var(--navy); font-family: system-ui, sans-serif; }
.cform label:first-child { margin-top: 0; }
.cform em { color: var(--red); font-style: normal; }
.cform input[type="text"], .cform input[type="email"], .cform select, .cform textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-family: system-ui, sans-serif; color: var(--ink);
  background: #fbf7ee; border: 2px solid var(--ink-2); border-radius: 10px;
}
.cform textarea { resize: vertical; min-height: 150px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid rgba(44, 93, 151, .35); outline-offset: 1px; }
.cform .is-bad { border-color: var(--red); background: #fbeeea; }
.cform .hint { margin: 6px 0 0; font-size: .85rem; color: var(--ink-2); }
.cform .err { margin: 4px 0 0; font-size: .88rem; color: var(--red); font-weight: 700; min-height: 0; }
.cform .err:empty { display: none; }
.cform .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); margin-top: 22px; }
.cform .agree input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.cform .form-err { margin: 16px 0 0; }
.cform .btn { margin-top: 20px; cursor: pointer; font-size: 1rem; }
.cform .btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cdone { text-align: center; }
.cdone h2 { margin-bottom: 10px; }
.cdone p { color: var(--ink-2); margin: 0 0 22px; }

/* ---------- いちばん推したい機能（Ghost Squad） ---------- */
.grid article.star { border: 3px solid var(--blue); box-shadow: 5px 6px 0 var(--sun); }

/* ---------- ゲームの一覧 ---------- */
.chips { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li {
  padding: 7px 16px; background: var(--paper-2); border: 2px solid var(--ink-2); border-radius: var(--rough);
  font-weight: 700; color: var(--ink);
}
.chips li:nth-child(3n+1) { transform: rotate(-1deg); }
.chips li:nth-child(4n+2) { transform: rotate(.8deg); }
.chips li.hot { background: var(--ink); color: var(--chalk); border-color: var(--ink); box-shadow: 3px 4px 0 var(--sun); }
.chips li.more { background: transparent; border-style: dashed; color: var(--ink-2); }
.games-d { text-align: center; color: var(--ink-2); margin: 18px auto 0; max-width: 620px; }

/* ---------- よくある質問 ---------- */
.faq details {
  max-width: 680px; margin: 0 auto 12px; background: var(--paper-2);
  border: 2px solid var(--ink-2); border-radius: var(--rough); padding: 0 18px;
}
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 800; color: var(--navy); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }
.faq details[open] { box-shadow: 4px 5px 0 rgba(44, 93, 151, .25); }
