/*
  2026-08 LP refresh
  Native CSSで既存の申込機能とブランド資産を保ちながら、情報設計と表示品質を改善する。
*/

:root {
  color-scheme: light dark;
  --page: #f8f6ef;
  --surface: #fffdf8;
  --surface-muted: #efede5;
  --text: #123a32;
  --text-muted: #4a5f59;
  --line: rgba(18, 58, 50, 0.16);
  --accent: #8d5d0b;
  --accent-ink: #fffdf8;
  --hero-copy: #fffdf8;
  --hero-muted: #d8e5e0;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(18, 58, 50, 0.12);
}

html {
  scroll-padding-top: 82px;
}

body {
  overflow-x: clip;
  background: var(--page);
  color: var(--text);
  line-height: 1.8;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  max-width: 760px;
  padding-inline: 24px;
}

.wrap--wide {
  max-width: 1120px;
}

.band {
  padding-block: clamp(64px, 8vw, 104px);
}

.band--morning,
.band--paperwhite,
.band--tight {
  background: var(--page);
}

.chapter-title {
  max-width: 18ch;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.section-intro {
  max-width: 42em;
  margin: 0;
  color: var(--text-muted);
}

/* 日本語見出しの改行を句の切れ目に寄せる。幅が足りれば1行に収まる。 */
.phrase {
  display: inline-block;
}

/* 句単位で折り返す見出しは、18ch制限ではなく句の幅で改行位置を決める。 */
.chapter-title:has(.phrase) {
  max-width: none;
}

.site-header {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-color: var(--line);
}

.site-header .wrap {
  max-width: 1120px;
  min-height: 68px;
  padding-block: 10px;
}

.site-header img {
  width: auto;
  height: 28px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta,
.cta-primary,
.submit-button,
.sticky-cta a {
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
  white-space: nowrap;
}

.header-cta:hover,
.cta-primary:hover,
.submit-button:hover:not(:disabled),
.sticky-cta a:hover {
  filter: brightness(0.94);
}

.header-cta:active,
.cta-primary:active,
.submit-button:active:not(:disabled),
.sticky-cta a:active {
  transform: translateY(1px);
}

.hero {
  min-height: calc(100dvh - 68px);
  padding: clamp(34px, 5vw, 62px) 0;
  background: #123a32;
}

.hero .wrap {
  max-width: 1120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 84px);
}

.hero-copy {
  min-width: 0;
}

.hero-badge {
  margin-bottom: 18px;
  color: var(--hero-copy);
}

.hero h1 {
  max-width: 10.5em;
  margin-bottom: 20px;
  color: var(--hero-copy);
  font-size: clamp(2.4rem, 5.1vw, 3.55rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 34em;
  margin-bottom: 28px;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-primary {
  padding: 15px 28px;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 999px;
  color: var(--hero-copy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cta-secondary:hover {
  background: rgba(255, 253, 248, 0.08);
}

.hero-visual {
  justify-self: end;
  width: min(100%, 390px);
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 28px 60px rgba(7, 26, 22, 0.38);
}

.availability {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.availability .wrap {
  max-width: 1120px;
}

.availability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.availability-list li {
  padding: 22px clamp(16px, 3vw, 32px);
  border-left: 1px solid var(--line);
}

.availability-list li:last-child {
  border-right: 1px solid var(--line);
}

.availability-list b,
.availability-list span {
  display: block;
}

.availability-list b {
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.9rem;
}

.availability-list span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 92px);
  align-items: start;
}

.process-rail {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-rail li {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.process-rail b {
  font-size: 1rem;
}

.process-rail span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.experience {
  background: var(--surface-muted);
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.58fr);
  align-items: start;
  gap: clamp(46px, 8vw, 92px);
}

.experience-copy {
  position: sticky;
  top: 104px;
}

.experience-note {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stage-note {
  color: var(--text-muted);
}

.phone-bar .who small {
  color: #53635f;
}

.chat-day {
  color: #3f4f4a;
}

.phone {
  max-width: 360px;
}

.replay {
  color: var(--text);
  border-color: var(--line);
}

.rira-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(44px, 8vw, 92px);
}

.rira-figure {
  margin: 0;
}

.rira-figure img {
  width: min(100%, 430px);
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.plain-points {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.plain-points li {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.plain-points b,
.plain-points span {
  display: block;
}

.plain-points span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.message-section {
  background: var(--surface);
}

.message-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
  margin-top: 34px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
}

.message-figure {
  margin: 0;
}

.message-figure img {
  width: 176px;
  height: 176px;
  border-radius: 12px;
  object-fit: cover;
}

.message-figure figcaption {
  margin-top: 14px;
}

.message-figure .co {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.message-figure .name {
  display: block;
  font-weight: 700;
}

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

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

.message-mail {
  font-family: var(--mono);
  font-size: 0.84rem;
}

.message-mail a {
  color: var(--accent);
}

.scope-section {
  background: var(--surface);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.scope-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
}

.scope-block h3 {
  margin: 0 0 16px;
  font-size: 1.08rem;
}

.scope-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.3em;
  color: var(--text-muted);
  font-size: 0.91rem;
}

.scope-footnote {
  max-width: 46em;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.band--green {
  background: #123a32;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 34px 0 30px;
}

.plan-card {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.06);
}

.plan-card h3 {
  margin: 0;
  color: var(--hero-copy);
  font-size: 1.08rem;
}

.plan-price {
  margin: 10px 0 4px;
  color: var(--hero-copy);
}

.plan-price b {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-price span {
  margin-left: 6px;
  color: var(--hero-muted);
  font-size: 0.86rem;
}

.plan-card .offer-list {
  margin: 0;
}

.plan-card .offer-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.band--green .chapter-title {
  color: var(--hero-copy);
}

.band--green .section-intro {
  color: var(--hero-muted);
}

.offer-badge {
  background: var(--accent);
  color: var(--accent-ink);
}

.offer-list {
  margin-bottom: 0;
}

.setup-note {
  margin: 0;
}

.setup-note + .setup-note {
  margin-top: 20px;
}

.form-heading {
  max-width: 460px;
  margin: 0 auto 30px;
  text-align: center;
}

.form-heading .chapter-title {
  max-width: none;
  margin-inline: auto;
}

.form-card {
  max-width: 520px;
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field label {
  color: var(--text);
}

.field input,
.field textarea {
  border-color: color-mix(in srgb, var(--text) 32%, transparent);
  border-radius: 10px;
  background: var(--page);
  color: var(--text);
}

.field textarea::placeholder {
  color: color-mix(in srgb, var(--text) 72%, transparent);
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  outline-color: var(--accent);
  background: var(--surface);
}

.form-note,
.thanks-card p {
  color: var(--text-muted);
}

.faq-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 0;
  border-color: var(--line);
}

.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 48px 22px 0;
  color: var(--text-muted);
}

.operator-facts {
  max-width: 720px;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.operator-facts > div {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.operator-facts dt {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.operator-facts dd {
  margin: 0;
  font-size: 0.92rem;
}

.operator-facts .mail,
.form-note a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.site-footer {
  background: #123a32;
  color: #bed0ca;
}

.site-footer .footer-mark {
  font-family: var(--sans);
  font-weight: 800;
}

@media (max-width: 840px) {
  .header-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .problem-layout,
  .experience-grid,
  .rira-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 32px;
  }

  .hero h1 {
    max-width: 9.5em;
  }

  .hero-visual {
    justify-self: center;
    width: min(62vw, 270px);
  }

  .experience-copy {
    position: static;
  }

  .phone {
    width: min(100%, 360px);
  }

  .rira-figure {
    order: 2;
  }

  .rira-figure img {
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding-inline: 20px;
  }

  .site-header .wrap {
    min-height: 62px;
  }

  .site-header img {
    height: 24px;
  }

  .header-cta {
    padding: 9px 14px;
    font-size: 0.76rem;
  }

  .hero {
    padding: 30px 0 36px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.8vw, 3rem);
  }

  .hero-lead {
    line-height: 1.7;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    width: min(49vw, 190px);
  }

  .availability-list {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 8px;
  }

  .availability-list li,
  .availability-list li:last-child {
    padding: 14px 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .availability-list li:last-child {
    border-bottom: 0;
  }

  .process-rail li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .scope-grid,
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-block {
    padding: 22px 20px;
  }

  .message-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .message-figure img {
    width: 112px;
    height: 112px;
  }

  .operator-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d2520;
    --surface: #15352e;
    --surface-muted: #102d27;
    --text: #f4f1e9;
    --text-muted: #c1d0cb;
    --line: rgba(244, 241, 233, 0.18);
    --accent: #d5a649;
    --accent-ink: #102d27;
    --shadow: 0 18px 48px rgba(3, 14, 12, 0.32);
  }

  .site-header {
    background: rgba(13, 37, 32, 0.92);
  }

  .site-header img {
    padding: 4px 7px;
    border-radius: 6px;
    background: #fffdf8;
  }

  .scope-block,
  .form-card,
  .message-card {
    background: var(--surface-muted);
  }

  .phone,
  .phone-screen,
  .phone-bar,
  .chat,
  .bubble,
  .readout,
  .quick-btn,
  .phone-input,
  .phone-input .fake-field {
    color-scheme: light;
  }

  .replay:hover {
    background: var(--surface);
  }

  .sticky-cta {
    background: rgba(13, 37, 32, 0.95);
  }

  .field .req {
    color: #ff9b7a;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-cta:active,
  .cta-primary:active,
  .submit-button:active:not(:disabled),
  .sticky-cta a:active {
    transform: none;
  }
}
