/*
 * ミコトAI プレローンチLP 共通スタイル。
 * 本体アプリ(src/app/globals.css)のデザイントークンをそのまま移植している。
 * トーン: 明るく今風・やわらかい生活系(占い館風の紺×金×明朝は使わない)
 */

:root {
  --base: #faf6f1;
  --card: #ffffff;
  --ink: #4a4038;
  --accent: #e07a5f;
  --accent-deep: #cd6247;
  --accent-soft: #faeae3;
  --sage: #7f9c88;
  --radius: 24px;
  --shadow: 0 1px 3px rgba(74, 64, 56, 0.06);
}

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

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

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ---------- レイアウト ---------- */

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 64, 56, 0.1);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tag {
  margin-left: 8px;
  font-size: 10px;
  font-weight: 400;
  color: rgba(74, 64, 56, 0.5);
}

.badge-soon {
  flex: none;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- ヒーロー ---------- */

.hero {
  text-align: center;
  padding: 48px 0 8px;
}

.hero .eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.45;
  font-weight: 700;
}

.hero .lead {
  max-width: 30em;
  margin: 16px auto 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(74, 64, 56, 0.7);
}

.notice {
  max-width: 30em;
  margin: 28px auto 0;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 18px 20px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.notice span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(74, 64, 56, 0.7);
}

/* ---------- セクション ---------- */

section.block {
  margin-top: 56px;
}

section.block > h2 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

section.block > .sub {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(74, 64, 56, 0.5);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px;
}

/* 3カラムの特徴 */
.features {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  grid-template-columns: 1fr;
}

.features .card {
  text-align: center;
}

.features .emoji {
  font-size: 26px;
}

.features .t {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

.features .d {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(74, 64, 56, 0.6);
}

/* しくみ(2段構えのフロー) */
.flow {
  margin-top: 20px;
}

.flow-step {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.flow-step.engine {
  border-color: rgba(127, 156, 136, 0.35);
}

.flow-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.flow-badge.engine {
  background: rgba(127, 156, 136, 0.16);
  color: #4f7361;
}

.flow-badge.ai {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.flow-title {
  font-size: 16px;
  font-weight: 700;
}

.flow-step p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(74, 64, 56, 0.75);
}

.flow-io {
  margin-top: 14px;
  border-top: 1px solid rgba(74, 64, 56, 0.08);
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(74, 64, 56, 0.6);
}

.flow-io b {
  color: rgba(74, 64, 56, 0.85);
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  font-size: 11px;
  color: rgba(74, 64, 56, 0.45);
}

.flow-arrow::before {
  content: "▼";
  font-size: 12px;
  color: rgba(74, 64, 56, 0.28);
}

.engine-detail {
  margin-top: 16px;
}

.engine-detail summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
}

.engine-detail summary::-webkit-details-marker {
  display: none;
}

.engine-detail summary::after {
  content: " ▾";
}

.engine-detail[open] summary::after {
  content: " ▴";
}

.engine-detail dl {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.85;
}

.engine-detail dt {
  font-weight: 700;
  color: rgba(74, 64, 56, 0.85);
  margin-top: 10px;
}

.engine-detail dd {
  margin: 2px 0 0;
  color: rgba(74, 64, 56, 0.6);
}

/* 大切にしていること */
.values {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.values .card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.values .emoji {
  font-size: 22px;
  line-height: 1.5;
  flex: none;
}

.values .t {
  font-size: 15px;
  font-weight: 700;
}

.values .d {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(74, 64, 56, 0.72);
}

/* メニュー一覧 */
.menu-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  grid-template-columns: 1fr;
}

.menu-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.menu-item .emoji {
  font-size: 24px;
  line-height: 1.4;
  flex: none;
}

.menu-item .body {
  flex: 1;
  min-width: 0;
}

.menu-item .title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.menu-item .price {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
}

.menu-item .price.free {
  color: #5c7a66;
  background: rgba(127, 156, 136, 0.15);
}

.menu-item .desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(74, 64, 56, 0.7);
}

.menu-item .chips {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.menu-item .chips span {
  font-size: 11px;
  border-radius: 999px;
  background: rgba(74, 64, 56, 0.06);
  padding: 3px 9px;
  color: rgba(74, 64, 56, 0.65);
}

/* 鑑定サンプル */
.samples {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.sample {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
  padding: 16px 20px;
}

.sample > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.sample > summary::-webkit-details-marker {
  display: none;
}

.sample > summary::after {
  content: "サンプルを読む ▾";
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.sample[open] > summary::after {
  content: "閉じる ▴";
}

.sample .profile {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(74, 64, 56, 0.5);
  border-top: 1px solid rgba(74, 64, 56, 0.08);
  padding-top: 12px;
}

.sample .body {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.95;
  color: rgba(74, 64, 56, 0.88);
}

.sample .body h3 {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
}

.sample .body h4 {
  margin: 20px 0 0;
  font-size: 13.5px;
  font-weight: 700;
}

.sample .body p {
  margin: 10px 0 0;
}

.sample .body ul {
  margin: 10px 0 0;
  padding-left: 1.3em;
}

.sample .body li + li {
  margin-top: 4px;
}

.sample .body hr {
  margin: 22px 0 0;
  border: 0;
  border-top: 1px solid rgba(74, 64, 56, 0.1);
}

.sample .body strong {
  font-weight: 700;
  color: var(--ink);
}

/* 料金表 */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
}

.price-table th,
.price-table td {
  border-bottom: 1px solid rgba(74, 64, 56, 0.1);
  padding: 12px 4px;
  text-align: left;
  vertical-align: top;
}

.price-table th {
  font-weight: 500;
}

.price-table td.amount {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.price-table tr.group th {
  padding: 22px 4px 6px;
  border-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
}

.price-table tr.group:first-child th {
  padding-top: 4px;
}

.price-table tr.group + tr th,
.price-table tr.group + tr td {
  border-top: 1px solid rgba(74, 64, 56, 0.1);
}

.price-table caption {
  caption-side: bottom;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(74, 64, 56, 0.5);
  text-align: left;
}

/* 手順 */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  font-size: 13px;
  line-height: 1.8;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps b {
  display: block;
  font-size: 14px;
}

/* FAQ */
.faq {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::before {
  content: "Q. ";
  color: var(--accent);
}

.faq details[open] summary {
  margin-bottom: 8px;
}

.faq p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(74, 64, 56, 0.75);
}

/* ---------- 法務ページ ---------- */

.legal {
  padding: 40px 0;
}

.legal h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.legal .intro {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
}

.legal h2 {
  margin: 32px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.legal h2 + * {
  margin-top: 12px;
}

.legal p,
.legal li {
  font-size: 14px;
  line-height: 1.9;
}

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

.legal li + li {
  margin-top: 4px;
}

.legal .enacted {
  margin-top: 40px;
  font-size: 12px;
  color: rgba(74, 64, 56, 0.4);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}

.legal-table th {
  width: 32%;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  color: rgba(74, 64, 56, 0.6);
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid rgba(74, 64, 56, 0.1);
}

.legal-table td {
  vertical-align: top;
  line-height: 1.8;
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 64, 56, 0.1);
}

.legal-table ul {
  margin: 0;
  padding-left: 1.2em;
}

.disclaimer {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(74, 64, 56, 0.45);
}

/* ---------- フッター ---------- */

.site-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(74, 64, 56, 0.1);
  padding: 28px 0 48px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 12px;
}

.site-footer nav a {
  color: rgba(74, 64, 56, 0.7);
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer .copy {
  margin: 16px 0 0;
  font-size: 11px;
  color: rgba(74, 64, 56, 0.4);
}

.site-footer .note {
  margin: 8px auto 0;
  max-width: 32em;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(74, 64, 56, 0.4);
}

/* ---------- レスポンシブ ---------- */

@media (min-width: 640px) {
  .hero h1 {
    font-size: 34px;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
}
