:root {
  --page: #F5EFE3;
  --card: #FFFCF6;
  --ink: #2A2622;
  --muted: #6B645B;
  --shu: #D23F2A;
  --ai: #23476E;
  --line: rgba(42, 38, 34, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1B1916;
    --card: #2A2723;
    --ink: #EDE6DA;
    --muted: #A69E92;
    --shu: #FF6A50;
    --ai: #7FA8D6;
    --line: rgba(237, 230, 218, 0.14);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

.hero { text-align: center; padding: 48px 0 32px; }
.hero img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.1; margin: 24px 0 8px; }
.hero .jp { color: var(--muted); font-size: 20px; letter-spacing: 0.1em; }
.hero p.lead { font-size: clamp(19px, 3vw, 23px); max-width: 620px; margin: 16px auto; }

.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
}
.pills { margin-top: 14px; color: var(--muted); font-size: 15px; }

section { padding: 36px 0; }
h2 { font-size: 28px; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 22px; }

.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.line {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 16px 18px;
  border-bottom: 6px solid var(--c);
}
.line .code {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 4px solid var(--c); font-weight: 800; color: var(--c);
}
.line h3 { margin: 10px 0 2px; font-size: 22px; }
.line .name { color: var(--muted); font-size: 14px; font-weight: 600; }
.line p { margin: 8px 0 0; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { background: var(--card); border-radius: 14px; padding: 18px; }
.feature .icon { font-size: 30px; }
.feature h3 { margin: 6px 0 4px; font-size: 18px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }

.promise {
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

article { background: var(--card); border-radius: 16px; padding: clamp(20px, 4vw, 36px); margin: 20px 0 40px; }
article h1 { margin-top: 0; font-size: 32px; }
article h2 { font-size: 21px; margin-top: 28px; }
.updated { color: var(--muted); font-size: 15px; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
footer a { color: var(--muted); }

.contact { display: grid; gap: 6px; max-width: 560px; }
.contact label { font-weight: 600; font-size: 15px; margin-top: 10px; }
.contact .optional { font-weight: 400; color: var(--muted); }
.contact input, .contact select, .contact textarea {
  font: inherit;
  color: var(--ink);
  background: var(--page);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: 2px solid var(--ai); border-color: transparent; }
.contact textarea { resize: vertical; }
.contact button {
  margin-top: 16px;
  justify-self: start;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--shu);
  border: 0;
  border-radius: 12px;
  padding: 12px 26px;
  cursor: pointer;
}
.contact button:disabled { opacity: 0.6; cursor: default; }
.contact .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 8px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #4E8A3A; }
.form-status.error { color: var(--shu); }
.fine { color: var(--muted); font-size: 14px; margin: 0; }
