/* ============================================================
   『自由設計ノート』LP スタイルシート
   ============================================================ */

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

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

body {
  margin: 0;
  padding: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

blockquote {
  margin: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

hr {
  border: 0;
  margin: 0;
}

/* ---------- Variables ---------- */
:root {
  --bg: #F5E6D3;
  --bg-alt: #F0DFC6;
  --text: #2C2C2C;
  --text-soft: #5A544E;
  --accent: #F4C2A1;
  --accent-dark: #E8A87C;
  --divider: rgba(44, 44, 44, 0.12);
  --divider-strong: rgba(44, 44, 44, 0.24);

  --font-serif: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", sans-serif;

  --container: 720px;
  --section-pad-y: 80px;
  --section-pad-y-sp: 56px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-serif);
  font-weight: 400;
  font-feature-settings: "palt" 1;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent);
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background-image: url("assets/silhouette-b.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245, 230, 211, 0.45) 0%,
    rgba(245, 230, 211, 0.60) 50%,
    rgba(245, 230, 211, 0.75) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  text-align: center;
  padding: 40px 8px;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-soft);
  margin-bottom: 28px;
  text-transform: none;
}

.hero__title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 40px;
}

.hero__caption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 36px;
  letter-spacing: 0.08em;
}

.hero__note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 20px;
  letter-spacing: 0.05em;
}

/* ---------- Section base ---------- */
.main {
  position: relative;
}

.section {
  padding: var(--section-pad-y) 24px;
  position: relative;
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--final {
  background-color: var(--bg-alt);
  padding-top: calc(var(--section-pad-y) + 16px);
  padding-bottom: calc(var(--section-pad-y) + 16px);
}

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section__ornament {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  margin: 0 auto 28px;
}

.section__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

.section__title--final {
  margin-bottom: 40px;
}

.section p {
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 1.4em;
  color: var(--text);
}

.section p:last-child {
  margin-bottom: 0;
}

.section__lead {
  text-align: center;
  font-size: 16px;
}

.divider {
  border-top: 1px solid var(--divider);
  margin: 40px 0;
}

/* ---------- 【2】Problem ---------- */
.problem__list {
  margin: 0 auto 16px;
  max-width: 600px;
}

.problem__list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--divider);
  font-size: 15.5px;
  line-height: 1.85;
}

.problem__list li:last-child {
  border-bottom: none;
}

.problem__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 26px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--text);
  transform: rotate(45deg);
  background-color: transparent;
}

/* ---------- 【3】Story ---------- */
.story__figure {
  margin: 0 auto 40px;
  width: 140px;
  text-align: center;
}

.story__figure img {
  width: 100%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 8px;
}

.quote {
  position: relative;
  margin: 32px 0;
  padding: 28px 28px 28px 44px;
  background-color: rgba(255, 255, 255, 0.45);
  border-left: 3px solid var(--accent);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  font-weight: 500;
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 44px;
  color: var(--accent-dark);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote--soft {
  background-color: rgba(255, 255, 255, 0.35);
  border-left-color: var(--divider-strong);
  font-size: 15px;
  text-align: left;
}

.quote--soft::before {
  display: none;
}

/* ---------- 【4】TOC ---------- */
.toc {
  margin-bottom: 40px;
}

.toc__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}

.toc__item:last-of-type {
  border-bottom: 1px solid var(--divider);
}

.toc__heading {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--text);
}

.toc__body {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--text-soft);
  margin: 0 !important;
}

.toc__note {
  text-align: center;
  font-size: 14.5px !important;
  color: var(--text-soft);
  margin-top: 32px !important;
  line-height: 1.9 !important;
}

/* ---------- 【5】Benefit ---------- */
.benefit {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefit__item {
  padding: 32px 28px;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--divider);
  border-radius: 4px;
  position: relative;
}

.benefit__number {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 12px !important;
}

.benefit__heading {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 14px;
  color: var(--text);
}

.benefit__body {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: var(--text);
  margin: 0 !important;
}

/* ---------- 【6】Author ---------- */
.author__figure {
  margin: 0 auto 28px;
  width: 180px;
}

.author__figure img {
  width: 100%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border: 1px solid var(--divider);
}

.author__name {
  text-align: center;
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 28px !important;
}

.author__list {
  max-width: 560px;
  margin: 0 auto 32px;
}

.author__list li {
  padding: 10px 0 10px 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  border-bottom: 1px dashed var(--divider);
}

.author__list li:last-child {
  border-bottom: none;
}

.author__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.author__sns {
  text-align: center;
  font-size: 14.5px !important;
  margin-top: 24px !important;
  color: var(--text-soft);
  line-height: 1.9 !important;
}

.author__sns strong {
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.05em;
}

/* ---------- 【7】Steps ---------- */
.steps {
  counter-reset: step;
  margin-bottom: 48px;
}

.steps__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
  display: flex;
  gap: 24px;
  align-items: baseline;
}

.steps__item:last-child {
  border-bottom: none;
}

.steps__no {
  font-family: var(--font-sans);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  min-width: 60px;
  margin: 0 !important;
  flex-shrink: 0;
}

.steps__body {
  font-size: 15.5px !important;
  line-height: 1.85 !important;
  margin: 0 !important;
  flex: 1;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 640px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--divider);
  padding: 0;
}

.faq__item:first-child {
  border-top: 1px solid var(--divider);
}

.faq__q {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  position: relative;
  color: var(--text);
  transition: color 0.2s ease;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--accent-dark);
}

.faq__q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent-dark);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq__item[open] .faq__q::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}

.faq__a {
  padding: 0 4px 24px 4px;
  animation: fadeIn 0.4s ease;
}

.faq__a p {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: var(--text-soft);
  margin: 0 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 【9】Postscript ---------- */
.postscript__strong {
  text-align: center;
  padding: 20px 0;
  font-size: 17px !important;
}

.postscript__sign {
  text-align: right;
  margin-top: 32px !important;
  font-size: 16px !important;
  letter-spacing: 0.1em;
}

/* ---------- CTA Button ---------- */
.cta-wrap {
  text-align: center;
  margin-top: 40px;
}

.cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: 700;
  text-decoration: none;
  color: #FFFFFF;
  background-color: var(--accent);
  padding: 20px 40px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(244, 194, 161, 0.45),
              0 2px 6px rgba(44, 44, 44, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  max-width: 100%;
  text-align: center;
  line-height: 1.5;
}

.cta:hover,
.cta:focus {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 168, 124, 0.5),
              0 4px 10px rgba(44, 44, 44, 0.1);
}

.cta:active {
  transform: translateY(0);
}

.cta--hero {
  margin-top: 12px;
  padding: 22px 44px;
}

.cta--large {
  padding: 24px 48px;
  font-size: clamp(15px, 2.4vw, 17px);
}

.cta__label {
  display: inline-block;
}

.cta__note {
  font-family: var(--font-sans);
  font-size: 12.5px !important;
  color: var(--text-soft);
  margin-top: 16px !important;
  letter-spacing: 0.06em;
  line-height: 1.7 !important;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bg);
  padding: 56px 24px 48px;
  border-top: 1px solid var(--divider);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-sans);
}

.footer__line {
  font-size: 13px !important;
  color: var(--text-soft);
  margin-bottom: 6px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.05em;
}

.divider--footer {
  max-width: 200px;
  margin: 24px auto;
}

.footer__disclaimer {
  font-size: 12px !important;
  color: var(--text-soft);
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
  letter-spacing: 0.03em;
}

.footer__copy {
  font-size: 11px !important;
  color: var(--text-soft);
  margin: 0 !important;
  letter-spacing: 0.08em;
}

/* ============================================================
   Responsive — SP (<=768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad-y: var(--section-pad-y-sp);
  }

  .hero {
    min-height: 88vh;
    padding: 56px 20px;
  }

  .hero__inner {
    padding: 20px 4px;
  }

  .hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.24em;
    margin-bottom: 22px;
  }

  .hero__title {
    margin-bottom: 20px;
    letter-spacing: 0.04em;
  }

  .hero__subtitle {
    margin-bottom: 30px;
  }

  .hero__caption {
    font-size: 12px;
    margin-bottom: 28px;
  }

  .section {
    padding: var(--section-pad-y-sp) 20px;
  }

  .section__title {
    margin-bottom: 36px;
  }

  .section p {
    font-size: 15px;
  }

  .divider {
    margin: 32px 0;
  }

  .problem__list li {
    font-size: 14.5px;
    padding: 12px 0 12px 26px;
  }

  .problem__list li::before {
    top: 22px;
  }

  .story__figure {
    width: 120px;
    margin-bottom: 32px;
  }

  .quote {
    padding: 22px 22px 22px 38px;
    font-size: 15.5px;
    margin: 24px 0;
  }

  .quote::before {
    font-size: 36px;
    left: 12px;
  }

  .toc__item {
    padding: 20px 0;
  }

  .toc__heading {
    font-size: 15.5px;
  }

  .toc__body {
    font-size: 13.5px !important;
  }

  .benefit {
    gap: 24px;
  }

  .benefit__item {
    padding: 26px 22px;
  }

  .benefit__heading {
    font-size: 16.5px;
  }

  .benefit__body {
    font-size: 14.5px !important;
  }

  .author__figure {
    width: 150px;
    margin-bottom: 22px;
  }

  .author__name {
    font-size: 20px !important;
    margin-bottom: 22px !important;
  }

  .author__list li {
    font-size: 14px;
  }

  .steps__item {
    flex-direction: column;
    gap: 8px;
    padding: 22px 0;
  }

  .steps__no {
    min-width: auto;
  }

  .steps__body {
    font-size: 15px !important;
  }

  .faq__q {
    font-size: 15px;
    padding: 20px 36px 20px 4px;
  }

  .faq__a p {
    font-size: 14.5px !important;
  }

  .cta {
    display: block;
    width: 100%;
    padding: 20px 20px;
    font-size: 14.5px;
    letter-spacing: 0.04em;
  }

  .cta--hero,
  .cta--large {
    padding: 20px 16px;
    font-size: 14.5px;
  }

  .cta__label {
    display: inline-block;
    white-space: normal;
  }

  .footer {
    padding: 48px 20px 40px;
  }
}

/* ============================================================
   Responsive — narrow SP (<=380px)
   ============================================================ */
@media (max-width: 380px) {
  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .section__title {
    font-size: 20px;
  }

  .cta,
  .cta--hero,
  .cta--large {
    font-size: 13.5px;
    padding: 18px 12px;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .hero {
    min-height: auto;
    background: none;
  }
  .hero__overlay {
    display: none;
  }
  .cta {
    box-shadow: none;
    border: 1px solid var(--text);
    color: var(--text);
    background: transparent;
  }
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 4px;
  border-radius: 4px;
}
