
:root {
  --green: #173f3b;
  --green-light: #28534e;
  --cream: #f4f3ec;
  --cream-dark: #e8ece5;
  --white: #fff;
  --text: #334743;
  --muted: #5f716a;
  --line: #d4ddd5;
  --sage: #dce7dc;
  --page-width: 480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  padding-bottom: 150px;
  background: var(--cream);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

.site-frame {
  width: 100%;
  min-height: 100vh;
  margin-inline: auto;
  overflow: clip;
  background: var(--cream);
}

.container {
  padding-inline: 10px;
}

.section {
  padding-block: 38px;
}

.section-title {
  margin: 0;
  color: var(--green);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.6;
  text-align: center;
}

.lead {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

/* メイン画像 */

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ファーストビュー */

.intro {
  padding-block: 34px 37px;
  background: var(--sage);
}

.intro-inner {
  max-width: 410px;
  margin-inline: auto;
}

.intro-title {
  margin: 0;
  color: var(--green);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.65;
  text-align: center;
  letter-spacing: 0;
}

.highlight {
  text-decoration: underline;
  text-decoration-color: #a9c5ad;
  text-decoration-thickness: 7px;
  text-underline-offset: -2px;
  text-decoration-skip-ink: none;
}

.intro-text {
  margin: 17px 0 0;
  color: #334743;
  font-size: 15px;
  line-height: 1.95;
}

/* 相談内容 */

.consultation {
  background: var(--white);
}

.consultation .section-title {
  margin-bottom: 4px;
}

.consult-list {
  margin-top: 22px;
  border-top: 2px solid var(--green);
}

.consult-item {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.consult-item h3 {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.7;
}

.consult-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* FAQ */

.faq {
  background: var(--cream);
}

.faq .section-title {
  margin-bottom: 22px;
}

.faq-item {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 2px solid var(--green);
}

.faq-q {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.8;
}

.faq-a {
  display: grid;
  grid-template-columns: 1.8em minmax(0, 1fr);
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.faq-label {
  color: var(--green);
  font-weight: 750;
  white-space: nowrap;
}

.faq-a a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #9bb7a0;
  text-underline-offset: 3px;
}

.faq-a a:hover {
  text-decoration-color: var(--green);
}

/* サイズ計測ガイド */

.size-guide {
  background: var(--white);
}

.size-guide-header {
  margin-bottom: 24px;
  padding: 20px 16px;
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--cream);
}

.size-guide-title {
  margin: 0;
  color: var(--green);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.55;
}

.size-guide-intro {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}

.size-guide-content {
  display: grid;
  gap: 16px;
}

/* 計測ステップのカード */

.size-step {
  min-width: 0;
  padding: 18px 15px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 10px;
  background: var(--white);
}

.size-step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.size-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.size-step-heading h3 {
  margin: 0;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
}

.size-step-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 8px;
  background: var(--cream);
}

.size-step-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 160px;
  object-fit: contain;
}

.size-step ol {
  margin: 0;
  padding-left: 1.5em;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
}

.size-step li {
  padding-left: 3px;
}

.size-step li + li {
  margin-top: 5px;
}

/* 計測の注意点 */

.size-guide-notes {
  padding: 15px;
  border: 1px solid #cbd9cc;
  border-radius: 10px;
  background: var(--sage);
}

.size-guide-notes-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.size-guide-notes-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid #a8bfa9;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.size-guide-notes-heading h3 {
  margin: 0;
  color: var(--green);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.6;
}

.size-guide-notes ol {
  margin: 0;
  padding-left: 1.5em;
  color: var(--text);
  font-size: 13px;
  line-height: 1.9;
}

.size-guide-notes li {
  padding-left: 2px;
}

/* 計測シートの補足リンク */

.size-guide-sheet {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.size-guide-sheet a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #9bb7a0;
  text-underline-offset: 3px;
}

.size-guide-sheet a:hover {
  text-decoration-color: var(--green);
}

/* CTA */

.cta {
  padding: 37px 5px 36px;
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  margin: 0;
  color: var(--white);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.65;
}

.cta-lead {
  margin: 11px auto 19px;
  color: #e0e9e3;
  font-size: 14px;
  line-height: 1.9;
}

.phone-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 55px;
  padding: 13px 18px;
  border: 2px solid var(--white);
  border-radius: 100px;
  background: var(--white);
  color: var(--green);
  text-decoration: none;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.phone-button:hover {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--green);
}

.phone-button:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid #a9c5ad;
  outline-offset: 4px;
}

.phone-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.phone-hours {
  margin: 15px 0 0;
  color: #e0e9e3;
  font-size: 14px;
  line-height: 1.7;
}

.phone-note {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #e0e9e3;
  font-size: 13px;
  line-height: 1.85;
  text-align: left;
}

.phone-note ul {
  margin: 0;
  padding-left: 1.4em;
}

.phone-note li {
  padding-left: 0.1em;
}

.phone-note li + li {
  margin-top: 5px;
}

/* フッター */

.footer {
  padding: 20px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--green);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  text-align: center;
}

/* スマホ固定ボタン */

.mobile-fixed-cta {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 9px 16px;
  padding-bottom: calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(23, 63, 59, 0.16);
  background: rgba(244, 243, 236, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mobile-fixed-cta .phone-button {
  min-height: 49px;
  padding: 10px 16px;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  font-size: 15px;
}

.mobile-fixed-cta .phone-button:hover {
  border-color: var(--green-light);
  background: var(--green-light);
  color: var(--white);
}

.mobile-fixed-cta .phone-button:focus-visible {
  outline: 3px solid #739b85;
  outline-offset: 3px;
}

.mobile-cta-note {
  margin: 10px auto 7px;
  max-width: 480px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.mobile-cta-note p {
  margin: 0;
}

/* PC用QRモーダル */

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 31, 29, 0.72);
}

.modal-panel {
  position: relative;
  width: min(100%, 360px);
  padding: 30px 24px 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font-size: 27px;
}

.modal-close:hover {
  background: var(--sage);
}

.modal-title {
  margin: 0;
  color: var(--green);
  font-size: 20px;
  line-height: 1.6;
}

.modal-description {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.qr-image {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.qr-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* PC表示 */

.pc-qr-trigger {
  display: none;
  margin-top: 19px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
    background: var(--cream-dark);
  }

  .site-frame {
    width: min(100%, var(--page-width));
    box-shadow: 0 0 40px rgba(23, 63, 59, 0.12);
  }

  .container {
    padding-inline: 10px;
  }

  .section {
    padding-block: 34px;
  }

  .intro {
    padding-block: 30px 33px;
  }

  .intro-title {
    font-size: 25px;
  }

  .section-title {
    font-size: 22px;
  }

  .consult-item {
    padding-inline: 14px;
  }

  .faq-item {
    padding-inline: 14px;
  }

  .cta {
    padding: 34px 10px;
  }

  .mobile-fixed-cta {
    display: none;
  }

  .pc-qr-trigger {
    display: flex;
  }

  .size-guide-header {
    padding: 20px;
  }

  .size-guide-content {
    gap: 18px;
  }

  .size-step {
    padding: 20px;
  }

  .size-step-image-wrap {
    min-height: 175px;
  }

  .size-step-image {
    height: 175px;
  }

  .size-guide-notes {
    padding: 17px;
  }
}

/* スクロール連動アニメーション */

/* JavaScriptが有効な場合のみ演出を有効にする */

.js-scroll-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 表示領域に入った要素 */

.js-scroll-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを減らす設定を優先 */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-scroll-ready .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .phone-button,
  .consult-item {
    transition: none;
  }
}
