/* ピコクラフト: アイランドのサイト。色はゲーム（海・墨・金）とストアの絵（tools/store_art.py）に合わせる */
:root {
  --sea-top: #4e98e6;
  --sea-bottom: #2460b6;
  --ink: #10284a;
  --ink-dim: #4d5f7a;
  --gold: #ffd84a;
  --sand: #f6e7c1;
  --grass: #5bbf4a;
  --bg: #f3f8fd;
  --surface: #ffffff;
  --line: rgba(16, 40, 74, 0.14);
  --link: #1d5fb8;
  --radius: 14px;
  --body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Noto Sans JP", system-ui, sans-serif;
  color-scheme: light;
}

/* 英語のページは欧文のシステムフォントで */
:root:lang(en) {
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* 中身が短いページでもフッターを画面の下に */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--link);
}

img {
  max-width: 100%;
  display: block;
}

.pixel {
  image-rendering: pixelated;
}

.wrap {
  width: min(960px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(720px, 100% - 32px);
  margin-inline: auto;
}

/* ヘッダー */
.header {
  background: var(--ink);
  color: #fff;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 4px 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header nav a {
  color: #dbe8ff;
  text-decoration: none;
  font-size: 0.92rem;
}
.header nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.header nav .lang {
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

/* トップ */
.hero {
  background: linear-gradient(var(--sea-top), var(--sea-bottom));
  color: #fff;
  text-align: center;
  padding: 48px 0 56px;
}
.hero .icon {
  width: 144px;
  height: 144px;
  margin: 0 auto 20px;
  border-radius: 32px;
  border: 6px solid var(--ink);
  box-shadow: 0 6px 0 rgba(16, 40, 74, 0.5);
}
.hero h1 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(2rem, 8vw, 3.2rem);
  text-shadow: 0 4px 0 var(--ink);
}
.hero h1 .sub {
  display: block;
  color: var(--gold);
  font-size: 1.25em;
}
.hero .tagline {
  margin: 16px auto 0;
  max-width: 34em;
  font-size: 1.05rem;
  color: #eaf2ff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 2px 14px;
  border-radius: 999px;
  background: rgba(16, 40, 74, 0.45);
  font-size: 0.9rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
}
.button:hover {
  filter: brightness(1.05);
}
.soon {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  color: #eaf2ff;
  font-size: 0.95rem;
}

.section {
  padding: 48px 0 8px;
}
.section h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.features b {
  display: block;
  margin-bottom: 4px;
}

/* 規約・ヘルプ */
.page {
  padding-block: 40px 72px;
}
.page-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.4;
  margin: 0 0 4px;
}
.meta,
.lead {
  color: var(--ink-dim);
  margin: 0 0 28px;
  font-size: 0.92rem;
}
.prose h2 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 2.2em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
}
.prose ol,
.prose ul {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.3em;
}
.notice {
  margin: 0 0 28px;
  padding: 14px 18px;
  background: #fff6dc;
  border: 1px solid #f0d58a;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.notice p {
  margin: 0;
}
.notice p + p {
  margin-top: 8px;
  color: var(--ink-dim);
}

/* 特定商取引法に基づく表記: 狭い画面では見出しと中身を縦に */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 0;
}
.table th {
  width: 32%;
  background: #eef4fb;
  font-weight: 700;
}
@media (max-width: 560px) {
  .table th,
  .table td {
    display: block;
    width: auto;
  }
  .table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .table td {
    padding-top: 4px;
  }
}

/* ヘルプ */
.faq {
  margin: 0 0 40px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
}
.faq details + details {
  margin-top: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq details p {
  margin: 8px 0 0;
  color: var(--ink-dim);
}
.contact {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact h2 {
  margin-top: 0;
  border: 0;
}
.mail {
  display: inline-block;
  margin: 4px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* フッター: 砂浜と草のふち */
.footer {
  margin-top: 48px;
  background: var(--ink);
  color: #dbe8ff;
}
.footer::before {
  content: "";
  display: block;
  height: 12px;
  background: linear-gradient(var(--grass) 0 4px, var(--sand) 4px);
}
.footer .wrap {
  padding-block: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer a:hover {
  text-decoration: underline;
}
.copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}
