/* ============================================================
   人生100年占い — LP
   White base / mincho-serif / accents from the Uyuni sunset:
   peach #d99e77, dusk blue-gray #6b7684
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-soft: #faf9f6;
  --ink: #2b2b2e;
  --ink-soft: #5c5c62;
  --line: #e6e3dd;
  --peach: #d99e77;
  --peach-deep: #c4885f;
  --dusk: #6b7684;
  --serif-ja: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Georgia", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-ja);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.28em;
  font-size: 0.85rem;
}

.lang-switch { display: flex; gap: 0.25rem; }

.lang-switch button {
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.55rem;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-switch button.active {
  color: var(--peach-deep);
  border-bottom-color: var(--peach-deep);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Uyuni sunset fallback: dusk blue-gray sky -> peach band -> horizon
   -> mirrored reflection -> whitish salt flat */
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 22% at 50% 49%, rgba(255, 236, 214, 0.55), rgba(255, 236, 214, 0) 70%),
    linear-gradient(
      to bottom,
      #9aa3ad 0%,
      #a8a7a6 26%,
      #cfae9b 40%,
      #e9b99a 48%,
      #eec5a7 50%,
      #e9b99a 53%,
      #c8ab9c 66%,
      #b3aaa4 80%,
      #d8d5d0 100%
    );
  background-size: cover;
  background-position: center;
}

.hero-sky.has-photo {
  background-image: var(--hero-photo);
}

.hero-content {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  max-width: 42rem;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(70, 70, 80, 0.35);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(70, 70, 80, 0.4);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(70, 70, 80, 0.45);
  margin-bottom: 2.6rem;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 2px;
  transition: opacity 0.2s;
  cursor: pointer;
}

.btn:hover { opacity: 0.85; }

.btn-solid {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.hero .btn-solid {
  background: rgba(43, 43, 46, 0.85);
  border-color: transparent;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-wide { width: 100%; border: none; }

/* ---------- sections ---------- */

.section {
  max-width: 680px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section-alt {
  max-width: none;
  background: var(--paper-soft);
}

.section-alt > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: 2.8rem;
  color: var(--ink);
}

.section-title::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 1px;
  background: var(--peach);
  margin: 1.1rem auto 0;
}

.section-lead {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 2.6rem;
}

.prose p + p { margin-top: 1.4em; }

/* ---------- sample cards ---------- */

.cards {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.8rem 1.6rem;
}

.card-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--peach-deep);
  margin-bottom: 1rem;
}

.card-body {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 2;
}

.card-struct p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 2;
  margin-bottom: 0.9rem;
}

.struct-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--dusk);
  border: 1px solid var(--dusk);
  border-radius: 2px;
  padding: 0 0.5em;
  margin-right: 0.7em;
  white-space: nowrap;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  display: grid;
  gap: 2.4rem;
}

.step { text-align: center; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--peach);
  border-radius: 50%;
  color: var(--peach-deep);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- price ---------- */

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3rem 2rem;
  text-align: center;
}

.price-amount {
  font-size: 2.6rem;
  letter-spacing: 0.05em;
}

.price-sub {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.price-includes {
  list-style: none;
  margin-bottom: 2.4rem;
  display: table;          /* ブロック化＋内容幅（ボタンが横に並ばないように） */
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.price-includes li {
  font-size: 0.92rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.price-includes li::before {
  content: "◆";
  font-size: 0.6rem;
  color: var(--peach);
  margin-right: 0.8em;
  vertical-align: 0.15em;
}

/* ---------- form ---------- */

#order-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem 1.2rem;
}

.field { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-soft);
  color: var(--ink);
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--dusk);
}

.field.invalid input, .field.invalid select {
  border-color: #c0604f;
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: #c0604f;
  margin-top: 0.35rem;
}

.field.invalid .field-error { display: block; }

.checkline {
  display: flex !important;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.7rem;
  font-size: 0.88rem !important;
  color: var(--ink-soft) !important;
  cursor: pointer;
}

.time-approx {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.9rem 1rem 0.6rem;
  margin-top: 0.8rem;
}

.time-approx legend {
  font-size: 0.8rem;
  color: var(--dusk);
  padding: 0 0.5em;
}

.radioline {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4em;
  margin: 0 1.2em 0.5em 0;
  font-size: 0.9rem !important;
  cursor: pointer;
}

#order-form .btn-wide { grid-column: 1 / -1; margin-top: 0.6rem; }

.form-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

.demo-notice {
  grid-column: 1 / -1;
  border: 1px solid var(--peach);
  background: #fdf6ef;
  border-radius: 3px;
  padding: 1.4rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.demo-notice a {
  color: var(--peach-deep);
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---------- profile ---------- */

.profile { text-align: center; }

.profile-name {
  letter-spacing: 0.3em;
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.profile .prose {
  text-align: left;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.75rem 1.6rem;
  transition: opacity 0.2s;
}

.ig-link:hover { opacity: 0.7; }

.ig-mark {
  width: 1em;
  height: 1em;
  border: 1.5px solid currentColor;
  border-radius: 28%;
  position: relative;
  display: inline-block;
}

.ig-mark::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}

.faq-item dt {
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
}

.faq-item dt::before {
  content: "Q";
  color: var(--peach-deep);
  margin-right: 0.8em;
  font-size: 0.85rem;
}

.faq-item dd {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 1.5rem 3.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-links { margin-top: 0.7rem; }

.footer-links a { color: var(--ink-soft); }

/* ---------- desktop ---------- */

@media (min-width: 720px) {
  body { font-size: 17px; }

  #order-form { grid-template-columns: 1fr 1fr; }

  .field-half { grid-column: auto; }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
  }

  .section-alt > .cards { max-width: 960px; }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .section { padding: 7rem 1.5rem; }
}
