:root {
  --ink: #3B2620;
  --sub: #6E5A52;
  --line: #EDE3DE;
  --soft: #F1E9E5;
  --accent: #B84A33;
  --accent-ink: #8A3A28;
  --accent-soft: #F8ECE7;
  --page: #FAF6F3;
  --pig: #FCE6E0;
  --card: #FFFFFF;
  --ok: #2F6B5E;
  --error: #A3321C;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Zen Maru Gothic', -apple-system, 'Hiragino Maru Gothic ProN', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a { color: var(--accent-ink); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--sub); text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 700; }

/* トップ */
.hero { text-align: center; padding: 56px 0 40px; }
.hero-icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 10px 30px rgba(184, 74, 51, 0.14); }
.hero h1 { font-size: 40px; margin: 20px 0 4px; letter-spacing: 0.04em; }
.hero .lead { font-size: 18px; color: var(--sub); margin: 0 0 24px; }
.badge-soon { display: inline-block; padding: 8px 20px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #F0D5CB; font-weight: 700; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 8px 0 40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; }
.feature h2 { font-size: 17px; margin: 0 0 6px; color: var(--accent-ink); }
.feature p { margin: 0; font-size: 14px; color: var(--sub); line-height: 1.7; }

.talk { display: flex; align-items: flex-end; gap: 12px; background: var(--pig); border-radius: 22px; padding: 22px 20px; margin-bottom: 48px; }
.talk img { width: 96px; height: 96px; flex: none; }
.bubble { position: relative; background: var(--card); border-radius: 18px; padding: 14px 16px; font-size: 15px; }
.bubble::before { content: ""; position: absolute; left: -8px; bottom: 16px; border: 8px solid transparent; border-right-color: var(--card); border-left: 0; }

/* 文書ページ */
.doc { padding: 32px 0 56px; }
.doc h1 { font-size: 28px; margin: 0 0 8px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { font-size: 15px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc .table-wrap { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--soft); white-space: nowrap; }
.notice { background: var(--accent-soft); border: 1px solid #F0D5CB; border-radius: 14px; padding: 12px 16px; font-size: 14px; color: var(--accent-ink); margin: 12px 0 8px; }

/* フォーム */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; margin-top: 20px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.req, .opt { font-size: 12px; font-weight: 500; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }
.req { background: var(--accent); color: #fff; }
.opt { background: var(--soft); color: var(--sub); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #E2D4CE;
  border-radius: 12px;
  padding: 11px 12px;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: 3px solid #F3CFC3; border-color: var(--accent); }
.hint { font-size: 13px; color: var(--sub); margin: 6px 0 0; }
.field-error { font-size: 13px; color: var(--error); margin: 6px 0 0; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--accent); flex: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { display: block; width: 100%; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 17px; padding: 14px; cursor: pointer; }
.submit:hover { background: var(--accent-ink); }
.submit:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 14px 0 0; font-size: 14px; text-align: center; }
.form-status.error { color: var(--error); }

.thanks { text-align: center; padding: 56px 0 72px; }
.thanks img { width: 140px; height: 140px; }
.thanks h1 { font-size: 26px; margin: 12px 0 8px; }
.thanks p { color: var(--sub); }
.button-link { display: inline-block; margin-top: 16px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 24px 0 32px; font-size: 13px; color: var(--sub); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.site-footer a { color: var(--sub); }

@media (max-width: 640px) {
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 13px; }
  .brand span { display: none; }
  .site-header .wrap { gap: 12px; }
  .talk img { width: 72px; height: 72px; }
}

input[type="text"], input[type="email"], select { min-height: 50px; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236E5A52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.doc td { line-height: 1.6; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; width: 100%; }
