:root {
  --primary: #3a1c71;
  --mid: #2a8fa0;
  --accent: #c8a84b;
  --light: #d0c8f8;
  --text: #1a0a2e;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  line-height: 1.9;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.trademark-link { color: #8b6a30; text-decoration: underline; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(58,28,113,0.78) 0%, rgba(26,106,128,0.70) 60%, rgba(13,148,136,0.65) 100%),
    url('images/hero-bg-desktop.webp') center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 180px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(200,168,75,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(58,28,113,0.4) 0%, transparent 60%);
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(200,168,75,0.6);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.3em;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 32px;
  position: relative;
  font-family: 'Cinzel', serif;
}

.hero h1 {
  font-family: 'Noto Serif JP', serif;
  color: #fff;
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
}

.hero h1 span { color: var(--accent); }
.hero .hero-reg { color: var(--accent); font-size: 0.5em; vertical-align: super; }

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 32px;
  position: relative;
}

.hero-lead {
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  max-width: 580px;
  line-height: 2;
  margin: 0 auto 48px;
  position: relative;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #1a0a2e;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  padding: 16px 48px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s;
}
.hero-cta:hover { background: #e0bc60; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(200,168,75,0.4); }

.hero-since {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.3em;
  margin-top: 20px;
  position: relative;
  font-family: 'Cinzel', serif;
}


/* ===== TRADEMARK ===== */
.trademark-bar {
  background: #faf8f2;
  border-bottom: 1px solid #e8e0d0;
  padding: 14px 24px;
  text-align: center;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.08em;
}
.trademark-bar strong { color: #5a4a2a; }

/* ===== SECTIONS ===== */
section { padding: 88px 24px; }
.section-inner { max-width: 860px; margin: 0 auto; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  margin-bottom: 32px;
  color: var(--primary);
}

.section-title em {
  font-style: normal;
  color: var(--mid);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

p { margin-bottom: 16px; font-size: 16px; line-height: 1.95; }
p:last-child { margin-bottom: 0; }

.ornament {
  text-align: center;
  margin: 16px 0 48px;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.5em;
}
.ornament-muted { color: rgba(200,168,75,0.5); }

/* ===== INTRO (カタチのチカラ) ===== */
.intro-section { background: #faf8f2; }

.intro-section p {
  font-size: 16px;
  line-height: 2.2;
  color: #2a1a4a;
}

.intro-emphasis {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.intro-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.intro-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 15px 28px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.intro-action.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(58, 28, 91, 0.18);
}

.intro-action.secondary {
  border: 1px solid rgba(58, 28, 91, 0.28);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.65);
}

.intro-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(58, 28, 91, 0.18);
}

.intro-img-float {
  float: right;
  width: 42%;
  margin: 4px 0 24px 36px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(58,28,113,0.12);
}
.intro-img-float img {
  width: 100%;
  height: auto;
  display: block;
}
.intro-clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ===== WHAT OVERVIEW IMAGE ===== */
.what-overview-wrap {
  margin: 40px 0 48px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(58,28,113,0.1);
  height: 380px;
}
.what-overview-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* ===== PROCESS IMAGE ===== */
.process-img-wrap {
  margin: 40px 0 56px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(58,28,113,0.08);
  height: 360px;
}
.process-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* ===== LOGIC IMAGE ===== */
.logic-img-wrap {
  margin: 0 0 48px;
  border-radius: 6px;
  overflow: hidden;
}
.logic-img-wrap img {
  width: 100%;
  display: block;
}

/* ===== FOR WHO IMAGE ===== */
.forwho-img-wrap {
  margin: 0 0 48px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(58,28,113,0.08);
  height: 360px;
}
.forwho-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* ===== WHAT ===== */
.what-section { background: #fff; }

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.what-card {
  border: 1px solid #e0d8f0;
  border-radius: 4px;
  padding: 32px 28px;
  background: linear-gradient(135deg, #faf8ff 0%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
}
.what-card::before {
  content: attr(data-num);
  position: absolute;
  top: -10px; right: 16px;
  font-family: 'Cinzel', serif;
  font-size: 64px;
  color: rgba(58,28,113,0.06);
  font-weight: 700;
}
.what-card::after {
  content: attr(data-icon);
  position: absolute;
  top: 28px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58,28,113,0.12), rgba(42,143,160,0.16));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.what-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; letter-spacing: 0.08em; padding-left: 48px; min-height: 36px; display: flex; align-items: center; }
.what-card p { font-size: 15px; color: #444; margin: 0; line-height: 1.85; }

.five-elements-block {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.five-elements-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(58,28,113,0.15);
  display: block;
}

.figure-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.figure-note.center { text-align: center; }

.five-elements-text {
  font-size: 15px;
  line-height: 2.1;
  color: #444;
}

.five-elements-text.spaced { margin-top: 16px; }

/* ===== CREATOR ===== */
.creator-section { background: linear-gradient(135deg, #f8f4ff 0%, #eef8ff 100%); }

.creator-block {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.creator-left { text-align: center; }

.creator-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 4px;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 12px 48px rgba(58,28,113,0.15);
}

.creator-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--mid));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
}

.creator-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.creator-role {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--mid);
  letter-spacing: 0.3em;
}

.creator-text p { font-size: 15px; color: #333; line-height: 2; }

.creator-note {
  margin-top: 48px;
  border-top: 1px solid #e0d8f0;
  padding-top: 40px;
}

.creator-note-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--mid);
  margin-bottom: 20px;
  text-align: center;
}

.creator-note-body {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 2.1;
  color: #333;
}

.creator-note-body p {
  margin: 0 0 18px;
}

.creator-note-title {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.creator-note-subtitle {
  margin: 34px 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.creator-note-closing {
  margin-top: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.creator-closing {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #d8d0f0;
  font-size: 16px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.9;
}

/* ===== PROCESS ===== */
.process-section { background: #fff; }

.steps { margin-top: 48px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 31px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary), var(--mid));
  opacity: 0.2;
}

.step { display: flex; gap: 24px; margin-bottom: 40px; position: relative; }
.step:last-child { margin-bottom: 0; }

.step-num {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--mid));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}
.step-num span { font-size: 18px; font-weight: 600; line-height: 1; }

.step-body { padding-top: 8px; }
.step-body h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; letter-spacing: 0.08em; }
.step-body p { font-size: 15px; color: #555; margin: 0; line-height: 1.85; }

/* ===== FOR WHO ===== */
.forwho-section { background: linear-gradient(135deg, #f8f4ff 0%, #eef8ff 100%); }

.forwho-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.forwho-card {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid #e0e8f8;
  border-radius: 4px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.forwho-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(58,28,113,0.1); }

.forwho-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--mid));
  color: #fff;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.forwho-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 10px; letter-spacing: 0.08em; }
.forwho-card p { font-size: 14px; color: #666; margin: 0; line-height: 1.8; }

/* ===== FEATURES ===== */
.features-section {
  background: linear-gradient(135deg, #3a1c71 0%, #1a6a80 100%);
  color: #fff;
}
.features-section .section-title { color: #fff; }
.features-section .section-label { color: var(--accent); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-item {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 28px 24px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}
.feature-item h3 { color: var(--accent); font-size: 15px; margin-bottom: 10px; letter-spacing: 0.08em; }
.feature-item h3::before {
  content: '✦';
  color: rgba(200,168,75,0.78);
  font-size: 12px;
  margin-right: 8px;
}
.feature-item p { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; line-height: 1.85; }

.feature-document {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 32px;
  margin-top: 8px;
}

.feature-document h3 {
  color: var(--accent);
}

.feature-document p {
  color: #555;
  margin-top: 12px;
}

.feature-document-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: block;
}

.feature-document-note {
  font-size: 11px;
  color: #aaa;
  text-align: right;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ===== LOGIC SECTION ===== */
.logic-section {
  background: var(--bg-warm);
  overflow: hidden;
}

.logic-intro {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin: 0 auto 48px;
  max-width: 640px;
  text-align: center;
}

.logic-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 48px;
}

.logic-flow::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--mid));
  z-index: 0;
}

.logic-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.logic-step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: white;
  margin-bottom: 16px;
  border: 3px solid var(--bg-warm);
  flex-shrink: 0;
}

.logic-step-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.logic-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--mid);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.logic-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.logic-step-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* ケーススタディ */
.logic-case {
  background: white;
  border: 1px solid #e0d8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(58,28,113,0.06);
}

.logic-case-header {
  background: linear-gradient(135deg, var(--primary), #1a6a80);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logic-case-header .case-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.logic-case-header .case-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.1em;
}

.logic-case-header .case-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.logic-case-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.logic-case-cell {
  padding: 24px 20px;
  border-right: 1px solid #f0e8ff;
}

.logic-case-cell:last-child { border-right: none; }

.cell-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mid);
  margin-bottom: 10px;
  text-transform: uppercase;
  display: block;
}

.cell-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.cell-value-small { font-size: 13px; }

.cell-note {
  font-size: 12px;
  color: #777;
  line-height: 1.7;
}

.cell-swatch {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.swatch-wood { background: #2d6a4f; }
.swatch-water { background: #1a3a6a; }

.cell-concept {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.logic-case-footer {
  background: #faf8ff;
  border-top: 1px solid #e8e0f8;
  padding: 20px 32px;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.logic-case-footer strong { color: var(--primary); }

.symbol-showcase {
  max-width: 980px;
  margin: 56px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.manual-sheet {
  min-height: 520px;
  padding: 30px 32px;
  background: linear-gradient(135deg, #fffaf0 0%, #f7fbff 100%);
  border: 1px solid #e5d6b6;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(26, 10, 46, 0.08);
}

.manual-sheet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(200,168,75,0.45);
}

.manual-sheet-head span {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--mid);
  text-transform: uppercase;
}

.manual-sheet-head strong {
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.manual-symbol-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: 20px 0 22px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(200,168,75,0.35) calc(50% - 1px), rgba(200,168,75,0.35) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(200,168,75,0.18) calc(50% - 1px), rgba(200,168,75,0.18) calc(50% + 1px), transparent calc(50% + 1px));
}

.manual-symbol-stage img {
  width: 100%;
  max-width: 188px;
  height: auto;
  display: block;
}

.manual-axis {
  position: absolute;
  inset: 22px 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(42,143,160,0.4), transparent);
}

.manual-meaning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.manual-meaning-grid div,
.manual-color-row {
  padding: 12px 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(224,216,240,0.75);
  border-radius: 4px;
}

.manual-meaning-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.manual-meaning-grid p,
.manual-color-row p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}

.manual-color-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 18px;
}

.manual-color-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.manual-color-row b {
  display: block;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.manual-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(26,10,46,0.12);
}

.manual-swatch.navy { background: #123a67; }
.manual-swatch.teal { background: #087070; }
.manual-swatch.gold { background: #c8a84b; }

.construction-board {
  position: relative;
  min-height: 230px;
  margin: 20px 0 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(200,168,75,0.08) 0 40%, transparent 41%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(58,28,113,0.22) calc(50% - 1px), rgba(58,28,113,0.22) calc(50% + 1px), transparent calc(50% + 1px));
  border: 1px solid rgba(224,216,240,0.8);
  border-radius: 4px;
  overflow: hidden;
}

.construction-board img {
  width: 168px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.construct-line {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.construct-line.axis {
  left: 50%;
  top: 18px;
  width: 1px;
  height: calc(100% - 36px);
  background: rgba(58,28,113,0.55);
}

.construct-line.rise {
  left: 50%;
  top: 20px;
  width: 10px;
  height: 36px;
  transform: translateX(-50%);
}

.construct-line.rise::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 12px solid var(--accent);
}

.construct-line.rise::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 2px;
  height: 24px;
  background: var(--accent);
}

.construct-arc {
  position: absolute;
  z-index: 1;
  width: 92px;
  height: 132px;
  border: 2px dashed rgba(42,143,160,0.52);
  top: 54px;
}

.construct-arc.left {
  left: calc(50% - 116px);
  border-right: 0;
  border-radius: 90px 0 0 90px;
}

.construct-arc.right {
  right: calc(50% - 116px);
  border-left: 0;
  border-radius: 0 90px 90px 0;
}

.construct-label {
  position: absolute;
  z-index: 4;
  padding: 3px 7px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(200,168,75,0.38);
  border-radius: 2px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.construct-label.axis { top: 76px; right: 18px; }
.construct-label.rise { top: 18px; left: 18px; }
.construct-label.flow { bottom: 18px; left: 22px; color: var(--mid); }

.construction-notes {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.construction-notes div {
  padding: 11px 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(224,216,240,0.75);
  border-radius: 4px;
}

.construction-notes b {
  display: block;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.construction-notes p {
  margin: 4px 0 0;
  color: #555;
  font-size: 12px;
  line-height: 1.75;
}

.manual-logic-icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: block;
  border: 1px solid rgba(38, 59, 127, 0.24);
  border-radius: 50%;
  background: #fff;
}

.manual-logic-icon::before,
.manual-logic-icon::after {
  content: '';
  position: absolute;
  display: block;
}

.manual-logic-icon.rise::before {
  left: 12px;
  top: 5px;
  width: 4px;
  height: 19px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 28%, 70% 28%, 70% 100%, 30% 100%, 30% 28%, 0 28%);
}

.manual-logic-icon.rise::after {
  left: 5px;
  bottom: 6px;
  width: 18px;
  height: 2px;
  background: var(--primary);
}

.manual-logic-icon.flow::before {
  left: 5px;
  top: 5px;
  width: 20px;
  height: 20px;
  border: 3px solid var(--mid);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.manual-logic-icon.flow::after {
  left: 12px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(42deg);
}

.manual-logic-icon.axis-mark::before {
  left: 13px;
  top: 4px;
  width: 3px;
  height: 22px;
  background: var(--primary);
}

.manual-logic-icon.axis-mark::after {
  left: 6px;
  top: 12px;
  width: 17px;
  height: 6px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--mid);
}

.clear-space-demo {
  position: relative;
  margin: 20px auto 14px;
  width: 268px;
  max-width: 92%;
  padding: 44px;
  border: 1px dashed rgba(200,168,75,0.85);
}

.clear-space-box {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.72);
  outline: 1px solid rgba(42,143,160,0.32);
  min-height: 132px;
}

.clear-space-box img {
  width: 112px;
  height: auto;
  display: block;
}

.space-label {
  position: absolute;
  color: var(--accent);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.space-label.top { top: 18px; left: 50%; transform: translateX(-50%); }
.space-label.side { top: 50%; left: 12px; transform: translateY(-50%); }
.space-label.height {
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: var(--mid);
}

.reverse-demo {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 16px;
  margin: 16px auto 16px;
  padding: 24px 18px 18px 28px;
  max-width: 330px;
  background: linear-gradient(135deg, #0e2144 0%, #063f4c 100%);
  border-radius: 4px;
}

.reverse-clear-box {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,0.42);
}

.reverse-clear-box img {
  width: 64px;
  height: auto;
  display: block;
}

.reverse-demo p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.space-label.reverse-top {
  top: 7px;
  left: 74px;
  color: rgba(255,255,255,0.75);
}

.space-label.reverse-side {
  left: 8px;
  top: 65px;
  color: rgba(255,255,255,0.75);
}


.manual-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(200,168,75,0.28);
  color: #555;
  font-size: 13px;
  line-height: 1.85;
}

.manual-preview .manual-sheet {
  min-height: 660px;
}

.manual-preview .rules-sheet {
  grid-column: 1 / -1;
  min-height: auto;
}

.manual-symbol-stage {
  min-height: 282px;
  margin: 22px 0 24px;
}

.manual-symbol-stage img {
  max-width: 210px;
  position: relative;
  z-index: 2;
}

.symbol-center-axis {
  position: absolute;
  z-index: 3;
  top: 30px;
  bottom: 30px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(58,28,113,0.72), transparent);
}

.symbol-axis-label,
.symbol-height-label {
  position: absolute;
  z-index: 4;
  padding: 3px 7px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(200,168,75,0.42);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.symbol-axis-label { top: 38px; right: 28px; }
.symbol-height-label { right: 58px; top: 50%; transform: translateY(-50%); color: var(--mid); }

.symbol-height-mark {
  position: absolute;
  z-index: 3;
  right: 78px;
  top: 36px;
  height: 210px;
  width: 14px;
  border-top: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
  border-right: 1px solid var(--mid);
}

.manual-meaning-grid {
  grid-template-columns: 1fr 1fr;
}

.manual-meaning-grid div {
  min-height: 118px;
}

.translation-flow {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.translation-source,
.translation-step,
.translation-output {
  border-radius: 6px;
  padding: 20px 18px;
  background: rgba(255,255,255,0.78);
  border: 2px solid rgba(224,216,240,0.85);
}

.translation-source span,
.translation-step span,
.translation-output span {
  display: block;
  margin-bottom: 8px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #888;
}

.translation-source b,
.translation-step b,
.translation-output b {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.translation-source p,
.translation-step p,
.translation-output p {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.85;
}

.translation-flow.compact {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
}

.translation-flow.compact .translation-source {
  min-height: 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  text-align: left;
  padding: 14px 18px;
}

.translation-flow.compact .translation-source b {
  margin: 0;
  font-size: 17px;
}

.translation-flow.compact .translation-source span {
  margin: 0;
}

.translation-flow.compact .translation-plus {
  display: none;
}

.translation-flow.compact .translation-step,
.translation-flow.compact .translation-output {
  position: relative;
  margin-top: 18px;
  padding: 22px 24px;
}

.translation-flow.compact .translation-step {
  padding-top: 76px;
}

.translation-mark {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 46px;
  height: auto;
  transform: translateX(-50%);
}

.translation-method-symbol {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(200, 168, 75, 0.7);
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.76);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(58, 28, 91, 0.08);
}

.translation-flow.compact .translation-step::before,
.translation-flow.compact .translation-output::before {
  content: '↓';
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 18px;
}

.translation-source.destiny {
  background: #f0f1ff;
  border-color: #8f8fe0;
}

.translation-source.wish {
  background: #fff7e7;
  border-color: #d2a63a;
}

.translation-source.feng {
  background: #effaf2;
  border-color: #58a777;
}

.translation-plus {
  align-self: center;
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
}

.translation-arrow {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.translation-arrow::before {
  content: '↓';
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}

.translation-step,
.translation-output {
  grid-column: 1 / -1;
  text-align: center;
}

.translation-step {
  background: #edf7ff;
  border-color: #b8d6ee;
}

.translation-output {
  background: #f8f0ff;
  border-color: #d8bdf2;
}

.rule-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0 24px;
}

.rule-lead p {
  margin: 0;
  padding: 16px 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(224,216,240,0.75);
  border-radius: 4px;
  color: #555;
  font-size: 13px;
  line-height: 1.9;
}

.construction-board {
  min-height: 294px;
}

.construction-board img {
  width: auto;
  height: 210px;
}

.construct-line.axis {
  left: 50%;
  top: 28px;
  height: calc(100% - 56px);
  background: rgba(58,28,113,0.72);
}

.construct-line.rise {
  top: 24px;
}

.construct-arc {
  z-index: 3;
  width: 88px;
  height: 148px;
  top: 82px;
  border-color: rgba(42,143,160,0.72);
}

.construct-arc.left { left: calc(50% - 112px); }
.construct-arc.right { right: calc(50% - 112px); }

.construct-label.axis {
  top: 70px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.construct-label.rise { top: 24px; left: 24px; }
.construct-label.flow { bottom: 26px; left: 24px; }

.construction-notes {
  grid-template-columns: 1fr;
}

.construction-notes div {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  align-items: start;
}

.construction-notes b,
.construction-notes p {
  grid-column: 2;
}

.construction-notes .manual-logic-icon {
  grid-row: 1 / span 2;
}

.manual-logic-img {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: block;
}

.manual-logic-icon {
  width: 32px;
  height: 32px;
  overflow: hidden;
}

.manual-logic-icon.rise::before {
  left: 14px;
  top: 5px;
  width: 4px;
  height: 21px;
}

.manual-logic-icon.rise::after {
  left: 7px;
  bottom: 6px;
  width: 18px;
}

.manual-logic-icon.flow::before {
  left: 7px;
  top: 8px;
  width: 19px;
  height: 16px;
  border: 0;
  border-left: 3px solid var(--mid);
  border-top: 3px solid var(--mid);
  border-bottom: 3px solid var(--mid);
  border-radius: 18px 0 0 18px;
  transform: none;
}

.manual-logic-icon.flow::after {
  left: 18px;
  top: 10px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
}

.manual-logic-icon.axis-mark::before {
  left: 14px;
  top: 5px;
  height: 22px;
}

.manual-logic-icon.axis-mark::after {
  left: 7px;
  top: 12px;
  width: 18px;
}

.clear-space-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 8px 0 34px;
}

.clear-space-demo {
  --symbol-h: 108px;
  --clear: 54px;
  position: relative;
  width: fit-content;
  max-width: none;
  margin: 0;
  padding: var(--clear);
  justify-self: center;
  border: 1px dashed rgba(200,168,75,0.9);
  background: rgba(255,255,255,0.7);
}

.clear-space-demo::before,
.clear-space-demo::after {
  content: '';
  position: absolute;
  display: block;
  pointer-events: none;
}

.clear-space-demo::before {
  left: 0;
  top: calc(var(--clear) + var(--symbol-h) / 2);
  width: var(--clear);
  border-top: 1px solid rgba(200,168,75,0.72);
}

.clear-space-demo::after {
  left: 50%;
  top: 0;
  height: var(--clear);
  border-left: 1px solid rgba(200,168,75,0.72);
}

.clear-space-demo.reverse {
  background: linear-gradient(135deg, #0e2144 0%, #063f4c 100%);
}

.clear-space-box {
  position: relative;
  min-height: 0;
  width: fit-content;
  margin: 0 auto;
  background: transparent;
  outline: 1px solid rgba(42,143,160,0.36);
}

.clear-space-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: -18px;
  width: 10px;
  height: 100%;
  border-top: 1px solid var(--mid);
  border-right: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
}

.clear-space-demo.reverse .clear-space-box {
  outline-color: rgba(255,255,255,0.36);
}

.clear-space-box img {
  width: auto;
  height: var(--symbol-h);
}

.clear-space-demo p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  margin: 0;
  color: #666;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.12em;
}

.clear-space-demo.reverse p {
  color: #666;
}

.space-label.top {
  top: calc(var(--clear) / 2 - 7px);
  left: 50%;
  transform: translateX(-50%);
}

.space-label.side {
  top: calc(var(--clear) + var(--symbol-h) / 2);
  left: calc(var(--clear) / 2);
  transform: translateY(-50%) rotate(-90deg);
}

.space-label.height {
  right: calc(var(--clear) - 34px);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

.clear-space-demo.reverse .space-label {
  color: rgba(255,255,255,0.74);
}

.usage-showcase {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 34px 36px;
  background: #fff;
  border: 1px solid #e7dcc9;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(26, 10, 46, 0.07);
}

.usage-section {
  background: #fff;
  padding-top: 76px;
  padding-bottom: 76px;
}

.usage-section .usage-showcase {
  margin-top: 0;
}

.section-cta {
  margin: 28px auto 0;
  text-align: center;
}

.section-cta p {
  margin: 0 0 14px;
  color: #4a3b5d;
  font-size: 14px;
  line-height: 1.9;
}

.section-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(58, 28, 91, 0.16);
}

.usage-copy {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.usage-copy .mini-label {
  display: block;
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--mid);
  text-transform: uppercase;
}

.usage-copy h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 22px;
  letter-spacing: 0.07em;
  line-height: 1.55;
}

.usage-copy p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 2;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.usage-grid figure {
  margin: 0;
}

.usage-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid #eadfca;
}

.usage-grid figcaption {
  margin-top: 8px;
  color: #6a6170;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ===== PRICE ===== */
.price-section { background: #fff; }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0 32px;
}

.plan-card {
  border: 1px solid #e0d8f0;
  border-radius: 6px;
  padding: 36px 32px;
  background: linear-gradient(135deg, #faf8ff 0%, #f0f8ff 100%);
  position: relative;
}

.plan-card.premium {
  background: linear-gradient(135deg, #f8f4ff 0%, #faf8f2 100%);
  opacity: 0.75;
}

.plan-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--mid);
  margin-bottom: 12px;
  display: block;
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.plan-price.muted { color: #aaa; }

.plan-price span { font-size: 14px; color: #888; font-weight: 400; }

.plan-price.price-split {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px;
  font-size: 24px;
  line-height: 1.35;
}

.plan-price.price-split span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(200, 168, 75, 0.32);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.plan-price.price-split span:last-child {
  border-bottom: none;
  color: #6a6170;
  font-size: 15px;
}

.plan-price.price-split b {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.plan-price.price-split small {
  color: #888;
  font-size: 12px;
  font-weight: 400;
}

.plan-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.plan-badge.active { background: #e8f8f0; color: #1a6a3a; }
.plan-badge.soon { background: #f0f0f0; color: #888; }

.plan-desc { font-size: 14px; color: #555; line-height: 1.9; margin: 0; }

.plan-card .plan-features {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.plan-card .plan-features li {
  font-size: 13px;
  color: #555;
  padding: 5px 0;
  border-bottom: 1px dashed #e8e0f0;
  display: flex;
  gap: 8px;
}

.plan-card .plan-features li::before { content: '✦'; color: var(--accent); font-size: 10px; margin-top: 3px; flex-shrink: 0; }
.plan-card .plan-features li:last-child { border-bottom: none; }

.price-note {
  background: linear-gradient(135deg, #f8f4ff 0%, #eef8ff 100%);
  border: 1px solid #d8d0f0;
  border-radius: 4px;
  padding: 32px 36px;
  margin-top: 8px;
  text-align: center;
}
.price-note p { font-size: 14px; color: #555; line-height: 1.95; margin-bottom: 12px; }
.price-note p:last-child { margin: 0; }
.price-note strong { color: var(--primary); }
.price-note-detail { font-size: 13px !important; color: #666 !important; margin-top: 4px; }
.price-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.price-action {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.price-action.primary { background: var(--primary); color: #fff; }
.price-action.secondary { border: 1px solid var(--primary); color: var(--primary); }
.price-note-sub { font-size: 13px !important; color: #999 !important; margin-top: 16px; }

/* ===== FAQ ===== */
.faq-section { background: var(--bg-warm); }

.faq-list { margin-top: 40px; }

.faq-item {
  border-bottom: 1px solid #e0d8f0;
  padding: 24px 0;
}

.faq-item:first-child { border-top: 1px solid #e0d8f0; }

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.faq-q::before {
  content: 'Q';
  font-family: 'Cinzel', serif;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-a {
  font-size: 14px;
  color: #555;
  line-height: 2;
  padding-left: 26px;
  margin: 0;
}

.highlight {
  background: linear-gradient(135deg, #f8f4ff, #eef8ff);
  border: 1px solid #d8d0f0;
  border-radius: 4px;
  padding: 24px 28px;
  margin: 24px 0;
}
.highlight p:last-child { margin: 0; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #1a0a2e 0%, #1a6a80 100%);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '風水ロゴ';
  position: absolute;
  font-size: 180px;
  color: rgba(255,255,255,0.03);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.cta-section .section-label { color: var(--accent); }
.cta-section .section-title { color: #fff; margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 40px; font-size: 15px; line-height: 2; }

.cta-main {
  display: inline-block;
  background: var(--accent);
  color: #1a0a2e;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.15em;
  padding: 18px 56px;
  border-radius: 2px;
  transition: all 0.3s;
  margin-bottom: 16px;
}
.cta-main:hover { background: #e0bc60; transform: translateY(-2px); box-shadow: 0 8px 40px rgba(200,168,75,0.5); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.cta-actions .cta-main { margin-bottom: 0; }
.cta-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.cta-sub {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-top: 16px;
}

/* ===== FOOTER ===== */
footer {
  background: #0d0818;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 32px 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 2;
}
footer a { color: rgba(200,168,75,0.7); }
footer a:hover { color: var(--accent); }
.footer-copy { margin-top: 8px; }

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  /* 全体 */
  section { padding: 56px 20px; }
  .section-title { font-size: clamp(22px, 6vw, 32px); }

  /* ヒーロー */
  .hero {
    padding: 48px 20px 140px;
    min-height: 100svh;
    background:
      linear-gradient(135deg, rgba(58,28,113,0.46) 0%, rgba(26,106,128,0.36) 60%, rgba(13,148,136,0.32) 100%),
      url('images/hero-bg-mobile.webp') center top / cover no-repeat,
      url('images/hero-bg-desktop.webp') 42% center / cover no-repeat;
    background-attachment: scroll;
  }
  .hero::before {
    background:
      radial-gradient(ellipse at 25% 28%, rgba(200,168,75,0.20) 0%, transparent 56%),
      radial-gradient(ellipse at 78% 72%, rgba(58,28,113,0.22) 0%, transparent 58%);
    pointer-events: none;
  }
  .hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-lead { font-size: 14px; }
  .hero-cta { padding: 14px 32px; font-size: 14px; letter-spacing: 0.1em; }

  /* グリッド → 1列 */
  .what-grid { grid-template-columns: 1fr; gap: 16px; }
  .forwho-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .creator-block { grid-template-columns: 1fr; gap: 32px; }
  .plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .creator-photo { aspect-ratio: 3/4; object-position: center 10%; max-width: 320px; margin: 0 auto 20px; }

  /* 全幅画像 スマホでは高さを抑える */
  .intro-img-float { float: none; width: 100%; margin: 0 0 24px 0; }
  .intro-actions { flex-direction: column; align-items: stretch; }
  .intro-action { width: 100%; min-width: 0; }
  .what-overview-wrap,
  .process-img-wrap,
  .forwho-img-wrap { height: auto; }

  /* 五行図グリッド → 1列 */
  .five-elements-block { grid-template-columns: 1fr; }

  /* ステップ */
  .steps::before { display: none; }
  .steps { gap: 24px; }
  .step-num { width: 44px; height: 44px; font-size: 18px; }

  /* カタチの理カード */
  .feature-document { grid-template-columns: 1fr !important; }
  .symbol-showcase {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .manual-sheet { min-height: auto; padding: 24px 18px; }
  .manual-sheet-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .manual-symbol-stage img { max-width: 190px; }
  .manual-meaning-grid { grid-template-columns: 1fr; }
  .translation-flow,
  .translation-flow.compact { grid-template-columns: 1fr; }
  .translation-plus { text-align: center; }
  .rule-lead { grid-template-columns: 1fr; }
  .clear-space-pair { grid-template-columns: 1fr; gap: 34px; }
  .usage-showcase { padding: 26px 18px; }
  .usage-grid { grid-template-columns: 1fr; }
  .usage-copy h3 { font-size: 18px; }

  /* プランカード */
  .plan-card { padding: 24px 20px; }
  .plan-price { font-size: 26px; }

  /* ロジックセクション */
  .logic-intro { font-size: 14px; }
  .logic-flow {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .logic-flow::before { display: none; }
  .logic-step-icon { font-size: 22px; }
  .logic-step-title { font-size: 13px; }
  .logic-step-desc { font-size: 11px; }
  .logic-case-body {
    grid-template-columns: 1fr;
  }
  .logic-case-cell {
    border-right: none;
    border-bottom: 1px solid #f0e8ff;
    padding: 18px 16px;
  }
  .logic-case-cell:last-child { border-bottom: none; }
  .logic-case-header { padding: 20px 16px; }
  .logic-case-footer { padding: 16px; font-size: 12px; }
  .cell-concept { font-size: 18px; }
  /* 価格ノート */
  .price-note { padding: 24px 20px; }
  .price-note a { display: block; width: 100%; text-align: center; }

  /* FAQ */
  .faq-q { font-size: 14px; }
  .faq-a { font-size: 13px; padding-left: 20px; }

  /* CTA */
  .cta-section { padding: 72px 20px; }
  .cta-section > div { flex-direction: column; align-items: center; }
  .cta-main { padding: 16px 32px; font-size: 15px; width: 100%; max-width: 320px; text-align: center; display: block; }

  /* フッター */
  footer { font-size: 11px; }

  /* トレードマークバー */
  .trademark-bar { font-size: 11px; padding: 10px 16px; }

  /* スマホ用フローティングナビ */
  .sp-nav { display: flex !important; }
}

/* ===== スマホ用フローティングページナビ ===== */
.sp-nav {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 999;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sp-nav-toggle {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(58,28,113,0.4);
  flex-shrink: 0;
}

.sp-nav-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.sp-nav-menu.open { display: flex; }

.sp-nav-menu a {
  display: block;
  background: var(--primary);
  color: white;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(200,168,75,0.4);
}

.sp-nav-top {
  width: 44px;
  height: 44px;
  background: rgba(58,28,113,0.85);
  border: 1px solid rgba(200,168,75,0.4);
  border-radius: 50%;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-decoration: none;
}

/* ===== PC ONLY: HERO背景固定 ===== */
@media (min-width: 641px) {
  .hero {
    background:
      linear-gradient(135deg, rgba(58,28,113,0.78) 0%, rgba(26,106,128,0.70) 60%, rgba(13,148,136,0.65) 100%),
      url('images/hero-bg-desktop.webp') center center / cover no-repeat fixed;
    background-attachment: fixed;
  }
}
