/* 色はアプリのアイコン・AccentColor・Clay に合わせる */
:root {
  color-scheme: light dark;
  --bg: #faf6ee;
  --bg-glow: rgba(46, 125, 58, 0.10);
  --surface: #ffffff;
  --surface-2: #f4efe4;
  --text: #1f2421;
  --muted: #6b6f68;
  --line: rgba(31, 36, 33, 0.10);
  --accent: #2e7d3a;
  --accent-soft: rgba(46, 125, 58, 0.10);
  --red: #d2352e;
  --clay: #b4532a;
  --shadow: 0 1px 2px rgba(31, 36, 33, 0.04), 0 8px 24px rgba(31, 36, 33, 0.06);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111412;
    --bg-glow: rgba(93, 187, 99, 0.14);
    --surface: #1b1f1c;
    --surface-2: #232825;
    --text: #eef1ec;
    --muted: #9ea59c;
    --line: rgba(238, 241, 236, 0.10);
    --accent: #5dbb63;
    --accent-soft: rgba(93, 187, 99, 0.14);
    --red: #ef6a62;
    --clay: #d9774b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -200px, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ヘッダー */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line);
  flex: none;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.lang:hover {
  text-decoration: none;
  border-color: var(--accent);
}

/* レイアウト */

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.page-head {
  margin: 8px 4px 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.updated {
  display: inline-block;
  margin: 14px 0 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 24px 20px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 20px 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.card h3 {
  margin: 20px 0 6px;
  font-size: 16px;
}

.card p,
.card ul {
  margin: 8px 0;
}

.card ul {
  padding-left: 1.3em;
}

.card li {
  margin: 4px 0;
}

.card li::marker {
  color: var(--accent);
}

@media (max-width: 480px) {
  main {
    padding-top: 28px;
  }

  .card {
    padding: 4px 16px 14px;
  }

  .contact-card {
    padding: 16px;
  }

  th,
  td {
    padding: 8px 10px;
  }
}

/* 表 */

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

tr + tr td,
tbody tr:first-child td {
  border-top: 1px solid var(--line);
}

td:first-child {
  min-width: 7em;
  font-weight: 600;
}

/* 狭い画面では行ごとのカードにし、列名を各セルの上に出す */
@media (max-width: 560px) {
  .table-wrap {
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 10px;
    padding: 6px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
  }

  tr + tr td,
  tbody tr:first-child td {
    border-top: none;
  }

  td {
    padding: 4px 14px;
  }

  td:first-child {
    font-size: 15px;
  }

  td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }
}

/* トップページ */

.hero {
  text-align: center;
  padding: 24px 0 36px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(31, 36, 33, 0.16);
}

.hero h1 {
  margin-top: 20px;
}

.hero .lead {
  max-width: 30em;
  margin-left: auto;
  margin-right: auto;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent);
}

.link-card .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.link-card .icon.clay {
  background: color-mix(in srgb, var(--clay) 14%, transparent);
  color: var(--clay);
}

.link-card strong {
  display: block;
  font-size: 16px;
}

.link-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.link-card .chevron {
  margin-left: auto;
  color: var(--muted);
}

/* サポート */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 20px 24px;
}

.contact-card p {
  margin: 0;
}

.contact-card .address {
  font-weight: 600;
  word-break: break-all;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #0d1a0f;
  }
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

details {
  border-top: 1px solid var(--line);
}

details:first-of-type {
  border-top: none;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(-135deg);
}

details p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* フッター */

.site-footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
}
