/* ============================================================
   壊れないテニス｜indexページ専用
   style.css：ページ固有の見た目
   ============================================================ */

main {
  background: var(--base);
}

.hero {
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 58px) 0 72px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 35%, rgba(255,255,255,0.54) 58%, rgba(255,255,255,0.12) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.78)),
    url("../img/hassamu.jpg") center right / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(95,127,63,0.08) 0 1px, transparent 2px),
    linear-gradient(120deg, rgba(95,127,63,0.14), transparent 42%);
  opacity: 0.45;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 5%;
  bottom: 11%;
  width: min(520px, 42vw);
  height: 120px;
  border-bottom: 1px solid rgba(144,172,106,0.45);
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 70px;
  align-items: center;
}

.hero-main { max-width: 650px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 17px;
  margin-bottom: 28px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  color: var(--text-mid);
  box-shadow: 0 10px 26px rgba(45,60,40,0.04);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.6vw, 4.05rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 24px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.hero-title span {
  background: linear-gradient(transparent 72%, rgba(210,226,190,0.74) 0);
}

.hero-notice {
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 20px;
}

.hero-symptoms {
  display: grid;
  gap: 9px;
  margin: 24px 0 30px;
}

.hero-symptoms li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-mid);
}

.hero-symptoms li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  border: 1px solid rgba(95,127,63,0.65);
  border-radius: 50%;
  color: var(--green);
  font-size: 0.68rem;
  flex-shrink: 0;
}

.hero-statement {
  display: inline-block;
  padding: 0 0 6px;
  border-bottom: 2px solid rgba(210,226,190,0.92);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: 0.04em;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-cta .btn {
  min-width: 180px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid rgba(222,216,205,0.94);
  border-radius: 10px;
  background: rgba(255,255,255,0.76);
  color: var(--text-mid);
  box-shadow: 0 10px 24px rgba(45,60,40,0.035);
  font-size: 0.82rem;
}

.hero-guide {
  padding: 34px 30px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 18px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 22px 50px rgba(45,60,40,0.12);
  backdrop-filter: blur(8px);
}

.hero-guide-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.12em;
  margin-bottom: 26px;
}

.hero-guide-title::before,
.hero-guide-title::after {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(160,181,128,0.55);
}

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

.guide-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(222,216,205,0.72);
}

.guide-step:last-child { padding-bottom: 0; border-bottom: 0; }

.guide-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4e3;
  color: var(--green);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.guide-step p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.9;
}

.guide-step a {
  color: var(--green);
  border-bottom: 1px solid rgba(95,127,63,0.4);
}

.guide-step a:hover {
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
  border-bottom-color: transparent;
  padding: 1px 5px;
  margin: -1px -5px;
}

.section {
  padding: 82px 0;
  background: var(--base);
}

.section-light {
  background:
    radial-gradient(circle at 12% 0%, rgba(238,244,231,0.65), transparent 260px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper2) 100%);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}

.section-head span,
.section-en {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.section-head h2,
.change-faq-layout h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.section-head h2::after,
.change-faq-layout h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 16px auto 28px;
  background: linear-gradient(90deg, transparent, rgba(95,127,63,0.7), transparent);
}

.section-head p {
  color: var(--text-mid);
  line-height: 2.05;
}

.worry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.worry-card,
.phil-grid article,
.ba-card,
.faq-item,
.follow-card {
  border: 1px solid rgba(222,216,205,0.92);
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 34px rgba(45,60,40,0.04);
}

.worry-card {
  min-height: 230px;
  padding: 28px 18px 24px;
  text-align: center;
}

.worry-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border: 1px solid rgba(95,127,63,0.38);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: radial-gradient(circle at 50% 50%, rgba(95,127,63,0.14), rgba(95,127,63,0.03));
}

.worry-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.worry-card p,
.phil-grid p,
.ba-card li,
.faq-answer,
.profile-body p,
.follow-card p,
.final-cta p {
  color: var(--text-mid);
}

.worry-card p {
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.9;
}

.problem-section--image {
  background: var(--base);
  padding: 64px 0;
}

.problem-image {
  width: 100%;
  max-width: 1180px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(222,216,205,0.9);
  box-shadow: 0 18px 48px rgba(45,60,40,0.06);
  background: #fffdf9;
}

.problem-mobile-flow { display: none; }

.problem-text-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(222,216,205,0.92);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 14px 34px rgba(45,60,40,0.04);
  overflow: hidden;
}

.problem-text-frame p {
  margin: 0;
  padding: 22px 28px;
  color: var(--text-mid);
  line-height: 1.95;
}

.problem-text-frame p + p {
  border-left: 1px solid rgba(222,216,205,0.92);
}

.problem-conclusion-text {
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  font-family: var(--serif);
  color: var(--text);
}

.problem-conclusion-text span { display: block; }
.problem-conclusion-text span:nth-child(2) { white-space: nowrap; }

.phil-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.phil-grid article {
  min-height: 220px;
  padding: 28px 22px;
}

.phil-grid article span {
  display: block;
  margin-bottom: 8px;
  color: rgba(95,127,63,0.72);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.phil-grid h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  font-size: 1rem;
}

.phil-grid p {
  font-size: 0.82rem;
  line-height: 1.9;
}

.phil-quote {
  margin-top: 34px;
  padding: 28px 34px;
  border: 1px solid rgba(222,216,205,0.8);
  border-radius: 18px;
  background: rgba(238,244,231,0.78);
  box-shadow: 0 14px 34px rgba(45,60,40,0.035);
  text-align: center;
}

.phil-quote p {
  font-family: var(--serif);
  color: var(--text-mid);
  line-height: 2.1;
}

.phil-quote cite {
  display: block;
  margin-top: 12px;
  color: var(--text-soft);
  font-style: normal;
  text-align: right;
}

.change-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.change-faq-layout h2::after {
  margin-left: 0;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.ba-card {
  padding: 26px 22px;
}

.ba-card.after {
  background: rgba(238,244,231,0.92);
  border-color: rgba(95,127,63,0.26);
}

.ba-card h3 {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.ba-card.after h3 { color: var(--green); }

.ba-card li {
  display: flex;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 0.82rem;
}

.ba-card.before li::before {
  content: "×";
  color: #9d9a91;
  font-weight: 600;
}

.ba-card.after li::before {
  content: "○";
  color: var(--green);
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq-item { overflow: hidden; }

.faq-btn {
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.faq-btn span { color: var(--green); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer { max-height: 520px; }

.faq-answer > * {
  padding: 0 22px 18px;
  font-size: 0.84rem;
  line-height: 1.9;
}

.faq-answer a {
  color: var(--green);
  border-bottom: 1px solid rgba(95,127,63,0.45);
}

.faq-answer a:hover {
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 6px;
  border-bottom-color: transparent;
  padding: 1px 5px;
  margin: -1px -5px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 58px;
}

.profile-images {
  display: grid;
  gap: 14px;
}

.profile-img {
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(45,60,40,0.06);
  overflow: hidden;
}

.profile-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
}

.profile-role {
  margin: 4px 0 18px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.profile-body p {
  line-height: 2;
  margin-top: 12px;
}

.profile-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.profile-kws span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.72rem;
}

.follow-section { background: var(--base); }

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

.follow-card {
  padding: 26px 24px;
}

.follow-card:hover {
  transform: translateY(-1px);
}

.follow-card > span:not(.follow-icon) {
  font-family: var(--serif);
  color: var(--text);
  font-size: 1.1rem;
}

.follow-card p {
  margin-top: 14px;
  color: var(--green);
  font-size: 0.82rem;
}

.follow-icon {
  width: 46px;
  height: 46px;
  margin: 0 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(95,127,63,0.26);
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.follow-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.follow-icon--note,
.follow-icon--x {
  color: #111;
  background: #fff;
  border-color: rgba(0,0,0,0.12);
}

.follow-icon--instagram {
  color: #d64d7f;
  background: linear-gradient(135deg, #fff1f7, #fff7e8);
  border-color: rgba(214,77,127,0.22);
}

.final-cta {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 32px;
  border: 1px solid rgba(222,216,205,0.92);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96), rgba(238,244,231,0.90)),
    url("../img/hassamu.jpg") center right / cover no-repeat;
  box-shadow: 0 18px 48px rgba(45,60,40,0.08);
  text-align: center;
}

.final-cta h2 {
  margin: 16px 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
}

.final-cta p {
  line-height: 2;
}

.final-cta .btn {
  margin: 18px 0 8px;
}

@media (max-width: 1180px) {
  .worry-grid { grid-template-columns: repeat(3, 1fr); }
  .phil-grid { grid-template-columns: repeat(2, 1fr); }
  .change-faq-layout { grid-template-columns: 1fr; }
  .change-faq-layout h2,
  .change-faq-layout .section-en { text-align: center; }
  .change-faq-layout h2::after { margin-left: auto; margin-right: auto; }
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-guide { max-width: 620px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-images { max-width: 240px; }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 40px 0 68px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84)),
      url("../img/hassamu.jpg") center top / cover no-repeat;
  }

  .hero-layout { padding: 0 22px; }
  .hero-title { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-tags { display: grid; grid-template-columns: 1fr; }

  .ba-grid,
  .problem-text-frame,
  .follow-grid { grid-template-columns: 1fr; }

  .problem-text-frame p + p {
    border-left: 0;
    border-top: 1px solid rgba(222,216,205,0.92);
  }

  .problem-image { display: none; }
  .problem-mobile-flow { display: block; }

  .problem-mobile-intro,
  .problem-mobile-step {
    border: 1px solid rgba(222,216,205,0.92);
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 14px 34px rgba(45,60,40,0.04);
  }

  .problem-mobile-intro {
    padding: 22px 20px;
  }

  .problem-mobile-intro span {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-family: var(--serif);
    font-size: 0.76rem;
  }

  .problem-mobile-intro h2 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-weight: 400;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.6;
  }

  .problem-mobile-intro p,
  .problem-mobile-step p {
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.95;
  }

  .problem-mobile-steps {
    display: grid;
    gap: 12px;
    margin-top: 14px;
  }

  .problem-mobile-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
  }

  .problem-mobile-step > span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1rem;
  }

  .section-head p,
  .phil-quote p,
  .profile-body p,
  .final-cta p,
  .problem-mobile-intro p,
  .problem-text-frame p,
  .change-faq-layout p,
  .faq-answer p,
  .follow-card p {
    text-align: left;
  }

  .section-head h2,
  .section-head span,
  .final-cta h2 {
    text-align: center;
  }

  .onsp { display: block; }
  .nosp { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .worry-grid,
  .phil-grid { grid-template-columns: 1fr; }
  .worry-card,
  .phil-grid article { min-height: auto; }
  .hero-guide { padding: 26px 20px; }
  .guide-step { align-items: flex-start; }
  .hero-cta { align-items: stretch; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .final-cta { margin: 0 20px; padding: 34px 20px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 40px; }
  .problem-section--image .container { padding: 0 12px; }
  .problem-text-frame p { padding: 18px 16px; font-size: 0.9rem; }
  .follow-card { text-align: left; }
  .follow-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .follow-icon svg { width: 20px; height: 20px; }
}

/* ============================================================
   共通セクション見出し
   ============================================================ */
.section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--text);
}

.section-divider {
  width: 56px;
  height: 1px;
  margin: 20px 0 24px;
  background: rgba(95,127,63,0.42);
}

.section-body {
  color: var(--text-mid);
  line-height: 2;
}

.text-center .section-divider,
.section-divider--follow {
  margin-right: auto;
  margin-left: auto;
}

/* ============================================================
   サービスページ
   ============================================================ */
.service-page {
  background: var(--base);
}

.service-narrow {
  max-width: 820px;
}

.service-hero {
  padding: calc(var(--header-h) + 72px) 0 70px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97), rgba(238,244,231,0.72)),
    url("../img/hassamu.jpg") center right / cover no-repeat;
  border-bottom: 1px solid rgba(222,216,205,0.9);
  text-align: center;
}

.service-label,
.service-type,
.service-price-label {
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.service-hero h1,
.service-card h2,
.fit-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
}

.service-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.service-hero p:last-child,
.service-note,
.service-card p,
.fit-note {
  color: var(--text-mid);
}

.service-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.9;
  text-align: center;
}

.service-lead span,
.final-cta span {
  background: linear-gradient(transparent 72%, rgba(210,226,190,0.82) 0);
}

.service-note {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid rgba(222,216,205,0.92);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  line-height: 2;
}

.service-list {
  display: grid;
  gap: 24px;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  overflow: hidden;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 22px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 14px 38px rgba(45,60,40,0.06);
}

.service-card-featured {
  border-color: rgba(95,127,63,0.28);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(238,244,231,0.64));
}

.service-card-body,
.service-card-side {
  padding: 34px;
}

.service-card-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid rgba(222,216,205,0.95);
  background: rgba(255,255,255,0.62);
}

.service-card h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.5;
}

.service-card-body > p:not(.service-type) {
  line-height: 2;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.service-card li,
.fit-card li {
  position: relative;
  padding-left: 1.5em;
  color: var(--text-mid);
  line-height: 1.85;
}

.service-card li::before,
.fit-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
}

.fit-card-no li::before {
  content: "—";
  color: var(--text-soft);
}

.service-price {
  font-family: var(--serif);
  color: var(--green-dark);
  font-size: 2rem;
  line-height: 1.3;
}

.service-price span {
  margin-left: 4px;
  font-family: var(--sans);
  color: var(--text-mid);
  font-size: 0.88rem;
}

.service-price-sub {
  font-size: 0.9rem;
  line-height: 1.9;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(95,127,63,0.22);
  border-radius: 999px;
  background: rgba(238,244,231,0.72);
  color: var(--green-dark);
  font-size: 0.78rem;
}

.service-card-side .btn {
  width: 100%;
  margin-top: 4px;
  padding-right: 18px;
  padding-left: 18px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

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

.fit-card {
  padding: 28px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
}

.fit-card-yes {
  background: rgba(238,244,231,0.78);
}

.fit-card h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.fit-card ul {
  display: grid;
  gap: 8px;
}

.fit-note {
  margin-top: 28px;
  text-align: center;
  line-height: 2;
}

@media (max-width: 820px) {
  .service-card,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .service-card-side {
    border-left: 0;
    border-top: 1px solid rgba(222,216,205,0.95);
  }
}

@media (max-width: 640px) {
  .service-hero {
    padding: calc(var(--header-h) + 44px) 0 48px;
  }

  .service-lead {
    text-align: left;
  }

  .service-note,
  .service-card-body,
  .service-card-side,
  .fit-card {
    padding: 24px 20px;
  }

  .service-price {
    font-size: 1.7rem;
  }
}

/* ============================================================
   プライベートレッスンページ
   ※サービスページと同じトーンに合わせた最小限の追加
   ============================================================ */
.private-lesson-page .service-note a,
.private-lesson-page .service-card a:not(.btn),
.private-lesson-page .fit-card a,
.private-lesson-page .qa-item a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.private-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.private-keywords li {
  padding: 8px 14px;
  border: 1px solid rgba(95,127,63,0.22);
  border-radius: 999px;
  background: rgba(238,244,231,0.72);
  color: var(--green-dark);
  font-size: 0.86rem;
}

.private-two-column .service-card:not(.service-card-featured) {
  grid-template-columns: 1fr;
}

.private-place-card .service-card-body p + p {
  margin-top: 16px;
}

.private-place-image {
  padding: 0;
  min-height: 100%;
}

.private-place-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.private-spec,
.private-delivery {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.private-spec {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-spec div,
.private-delivery div {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(238,244,231,0.6);
}

.private-spec dt,
.private-delivery dt {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.private-spec dd,
.private-delivery dd {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.8;
}

.private-delivery {
  margin-bottom: 0;
}

.qa-list {
  display: grid;
  gap: 16px;
}

.qa-item {
  padding: 26px 28px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 20px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 32px rgba(45,60,40,0.05);
}

.qa-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.7;
}

.qa-item h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(95,127,63,0.12);
  color: var(--green-dark);
  font-family: var(--sans);
  font-size: 0.86rem;
}

.qa-item p,
.voice-card p {
  color: var(--text-mid);
  line-height: 2;
}

.voice-card + .voice-card {
  margin-top: 18px;
}

.voice-card p + p {
  margin-top: 18px;
}

.private-note {
  color: var(--green-dark) !important;
  font-size: 0.92rem;
  text-align: right;
}

@media (max-width: 820px) {
  .private-spec {
    grid-template-columns: 1fr;
  }

  .private-place-image img {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .private-keywords {
    display: grid;
    justify-content: stretch;
  }

  .qa-item {
    padding: 22px 20px;
  }
}

/* ============================================================
   ジュニアレッスンページ
   ※プライベートレッスンページのトーンに合わせ、要所だけ見栄えを追加
   ============================================================ */
.junior-lesson-page .service-note a,
.junior-lesson-page .service-card a:not(.btn),
.junior-lesson-page .fit-card a,
.junior-lesson-page .qa-item a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.junior-hero {
  position: relative;
  overflow: hidden;
}


.junior-intro-card,
.junior-parent-box,
.junior-plan-box {
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 28px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 46px rgba(45,60,40,0.06);
}

.junior-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: center;
  padding: 40px;
}

.junior-intro-card h2,
.junior-parent-box h2,
.junior-plan-box h2 {
  margin: 8px 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.7;
}

.junior-intro-card p,
.junior-parent-box p,
.junior-plan-box p {
  line-height: 2;
  color: var(--text-mid);
}

.junior-intro-card p + p,
.junior-parent-box p + p {
  margin-top: 14px;
}

.junior-intro-card span,
.junior-parent-box span {
  background: linear-gradient(transparent 62%, rgba(202,225,170,0.55) 0);
  color: var(--green-dark);
}

.junior-state-list {
  display: grid;
  gap: 12px;
}

.junior-state-list li {
  padding: 16px 18px;
  border: 1px solid rgba(95,127,63,0.18);
  border-radius: 18px;
  background: rgba(238,244,231,0.72);
  color: var(--green-dark);
  letter-spacing: 0.08em;
  text-align: center;
}

.junior-feature-grid .service-card-body ul,
.junior-price-card .service-card-body ul,
.junior-plan-box ul,
.junior-results-card ul {
  display: grid;
  gap: 10px;
}

.junior-parent-box {
  padding: 38px 40px;
  text-align: center;
}

.junior-price-card .service-card-side .btn {
  white-space: nowrap;
}

.junior-plan-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1px;
  overflow: hidden;
  background: rgba(222,216,205,0.95);
}

.junior-plan-box > div {
  padding: 34px 36px;
  background: rgba(255,255,255,0.9);
}

.junior-plan-main {
  margin: 10px 0 10px;
  color: var(--green-dark) !important;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.3 !important;
}

.junior-result-photo {
  margin: 26px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(95,127,63,0.18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(45,60,40,0.07);
}

.junior-result-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.junior-results-card {
  margin-top: 18px;
  background: rgba(255,255,255,0.9);
}

.junior-results-card li {
  line-height: 1.8;
}

.junior-result-note {
  margin-top: 20px;
}

.junior-voice-card {
  position: relative;
  overflow: hidden;
}

.junior-voice-card::before {
  content: "Voice";
  position: absolute;
  right: 22px;
  top: 16px;
  color: rgba(95,127,63,0.08);
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

@media (max-width: 820px) {
  .junior-hero::after {
    width: 110px;
    height: 110px;
    right: 20px;
    bottom: 18px;
    opacity: 0.45;
  }

  .junior-intro-card,
  .junior-plan-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .junior-intro-card,
  .junior-parent-box,
  .junior-plan-box > div {
    padding: 26px 22px;
  }

  .junior-parent-box {
    text-align: left;
  }

  .junior-state-list li {
    text-align: left;
  }

  .junior-plan-main {
    font-size: 1.65rem;
  }
}

/* junior lesson layout adjustments */
.junior-feature-grid,
.junior-recommend-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.junior-feature-grid .service-card,
.junior-recommend-grid .service-card {
  grid-template-columns: 1fr;
}

.junior-recommend-grid .service-card-side {
  align-items: stretch;
  border-left: 0;
  border-top: 1px solid rgba(222,216,205,0.95);
}

.junior-result-intro,
.junior-result-note {
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-mid);
  line-height: 2;
}

.junior-result-note {
  margin-top: 22px;
}

@media (max-width: 820px) {
  .junior-feature-grid,
  .junior-recommend-grid {
    grid-template-columns: 1fr;
  }
}

/* junior plan text wrap fix */
.junior-plan-box p {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* ============================================================
   noteページ
   ============================================================ */
.note-page {
  background: var(--base);
}

.note-hero {
  padding: calc(var(--header-h) + 72px) 0 70px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97), rgba(238,244,231,0.72)),
    url("../img/hassamu.jpg") center right / cover no-repeat;
  border-bottom: 1px solid rgba(222,216,205,0.9);
  text-align: center;
}

.note-hero h1,
.note-message,
.note-theme-card h3,
.note-quote p,
.note-link-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
}

.note-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.note-hero p:last-child {
  color: var(--text-mid);
  line-height: 2;
}

.note-message-card {
  padding: 34px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 38px rgba(45,60,40,0.06);
}

.note-message-card p {
  color: var(--text-mid);
  line-height: 2;
}

.note-message-card p + p {
  margin-top: 18px;
}

.note-message {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.7;
}

.note-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.note-theme-card {
  padding: 28px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 20px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 12px 32px rgba(45,60,40,0.05);
}

.note-theme-icon {
  margin-bottom: 14px;
  font-size: 1.8rem;
  line-height: 1;
}

.note-theme-card h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.5;
}

.note-theme-card p {
  color: var(--text-mid);
  line-height: 1.9;
}

.note-quote {
  margin-bottom: 46px;
  padding: 34px;
  border: 1px solid rgba(95,127,63,0.25);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(238,244,231,0.7));
  text-align: center;
}

.note-quote p {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.9;
}

.note-quote div {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.note-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 20px;
  background: rgba(255,255,255,0.86);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(45,60,40,0.05);
}

.note-link-card span {
  display: block;
}

.note-link-title {
  font-size: 1.35rem;
  line-height: 1.5;
}

.note-link-url,
.note-link-arrow {
  color: var(--green);
  font-size: 0.9rem;
}

.note-link-url {
  margin-top: 6px;
}

.note-link-arrow {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .note-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .note-hero {
    padding: calc(var(--header-h) + 44px) 0 48px;
  }

  .note-message-card,
  .note-theme-card,
  .note-quote,
  .note-link-card {
    padding: 24px 20px;
  }

  .note-theme-grid {
    grid-template-columns: 1fr;
  }

  .note-buttons,
  .note-link-card {
    align-items: stretch;
    flex-direction: column;
  }

  .note-buttons .btn {
    width: 100%;
  }
}


/* ============================================================
   お問い合わせページ
   既存CSSは残したまま、contact.php用のCSSだけを追加
   ============================================================ */
.contact-hero {
  padding: calc(var(--header-h) + 72px) 0 64px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.97), rgba(238,244,231,0.72)),
    url("../img/hassamu.jpg") center right / cover no-repeat;
  border-bottom: 1px solid rgba(222,216,205,0.9);
}

.contact-hero-title {
  margin: 10px 0 20px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--text);
}

.contact-highlight {
  color: var(--green);
  background: linear-gradient(transparent 72%, rgba(210,226,190,0.78) 0);
}

.contact-hero-sub {
  max-width: 680px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 22px;
}

.contact-hero-status {
  margin: 0 0 22px;
  max-width: 720px;
}

.contact-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(95,127,63,0.24);
  border-radius: 999px;
  background: rgba(238,244,231,0.82);
  color: var(--green-dark);
  font-size: 0.88rem;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.contact-form-wrap {
  overflow: hidden;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.form-header {
  padding: 24px 34px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.form-header-label {
  margin-bottom: 6px;
  color: rgba(255,255,255,0.68);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.form-header-title {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--white);
}

.form-body {
  padding: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 23px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-required {
  margin-left: 5px;
  color: #b44a3f;
  font-size: 0.78rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.65;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(95,127,63,0.72);
  box-shadow: 0 0 0 4px rgba(95,127,63,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa79f;
}

.form-select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f7f3f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.form-note {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.85;
  text-align: center;
}

.page-status {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(45,60,40,0.06);
}

.page-status::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: transparent;
}

.page-status--success {
  border-color: rgba(95,127,63,0.35);
  background: linear-gradient(180deg, #fbfdf6 0%, #f3f8e7 100%);
}

.page-status--success::before {
  background: var(--green);
}

.page-status--error {
  border-color: rgba(180,74,63,0.26);
  background: linear-gradient(180deg, #fff9f8 0%, #fff3f1 100%);
}

.page-status--error::before {
  background: #b44a3f;
}

.page-status-title {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.8;
}

.page-status-text {
  margin: 10px 0 0;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.9;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  padding: 24px 22px;
  border: 1px solid rgba(222,216,205,0.95);
  border-radius: 18px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 12px 30px rgba(45,60,40,0.04);
}

.sidebar-label {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

.sidebar-title {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
}

.sidebar-text,
.flow-mini-text,
.topic-item {
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.8;
}

.flow-mini {
  display: grid;
  gap: 13px;
}

.flow-mini-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.flow-mini-num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
}

.topics-list {
  display: grid;
  gap: 8px;
}

.topic-item {
  display: flex;
  gap: 8px;
}

.topic-item::before {
  content: "—";
  color: var(--green);
}

.closing-section {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.closing-title {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

.closing-text {
  color: var(--text-mid);
  line-height: 2;
}

.form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: calc(var(--header-h) + 48px) 0 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-body,
  .form-header {
    padding-right: 22px;
    padding-left: 22px;
  }

  .contact-guarantee {
    align-items: flex-start;
    border-radius: 14px;
    line-height: 1.7;
  }
}

/* ============================================================
   お問い合わせページ：ヒーロー位置調整
   既存CSSは残したまま、contact.php上部の中央寄せだけを追加
   ============================================================ */
.contact-hero .container-sm {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 32px;
  padding-left: 32px;
}

.contact-hero {
  text-align: center;
}

.contact-hero-sub,
.contact-hero-status {
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 640px) {
  .contact-hero .container-sm {
    padding-right: 22px;
    padding-left: 22px;
  }
}


/* private lesson first session same row */
.private-session-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: stretch;
}

.private-session-grid > .service-card {
  height: 100%;
}

.private-session-grid > .service-card:not(.service-card-featured) {
  grid-template-columns: 1fr;
}

.private-session-grid > .service-card-featured {
  grid-template-columns: minmax(0, 1fr) 270px;
}

.private-session-grid .service-card-side .btn {
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .private-session-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .private-session-grid > .service-card-featured {
    grid-template-columns: 1fr;
  }

  .private-session-grid .service-card-side {
    border-left: 0;
    border-top: 1px solid rgba(222,216,205,0.95);
  }
}


/* profile images mobile horizontal layout */
@media (max-width: 640px) {
  .profile-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .profile-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
  }

  .profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
.point-illustration {
  text-align: center;
}

.point-illustration img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.junior-illustration-group {
  width: 100%;
}

.junior-illustration-group.nosp {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
}

.junior-illustration-group.onsp {
  display: none;
}

.point-illustration {
  flex: 1;
  text-align: center;
}

.point-illustration img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .junior-illustration-group.nosp {
    display: none;
  }

  .junior-illustration-group.onsp {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}
.private-point-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.private-point-illustration img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  border-radius: 18px;
}

@media (max-width: 640px) {
  .private-point-illustration img {
    max-width: 100%;
  }
}
.private-point-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 28px auto 0;
}
.note-theme-head {
  margin-bottom: 14px;
}

.note-theme-head img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}
.qa-accordion {
  overflow: hidden;
}

.qa-accordion summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 44px;
  cursor: pointer;
  list-style: none;
}

.qa-accordion summary::-webkit-details-marker {
  display: none;
}

.qa-accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(95, 127, 63, 0.28);
  border-radius: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(255, 255, 255, 0.76);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1;
}

.qa-accordion[open] summary::after {
  content: "−";
}

.qa-accordion .qa-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(222, 216, 205, 0.75);
}

.qa-accordion .qa-answer p {
  margin: 0;
}

.voice-card {
  position: relative;
  padding: 30px 32px;
  border-left: 4px solid rgba(95, 127, 63, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 241, 0.94));
}

.voice-card::before {
  content: "“";
  position: absolute;
  top: 8px;
  right: 22px;
  color: rgba(95, 127, 63, 0.16);
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  pointer-events: none;
}

.voice-card + .voice-card {
  margin-top: 18px;
}

.voice-card p {
  position: relative;
  z-index: 1;
  line-height: 2;
}

.voice-card .private-note,
.junior-voice-card .private-note {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(95, 127, 63, 0.08);
  color: var(--green);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .qa-accordion summary {
    padding-right: 38px;
  }

  .qa-accordion summary::after {
    width: 26px;
    height: 26px;
  }

  .voice-card {
    padding: 24px 22px;
  }

  .voice-card::before {
    right: 16px;
    font-size: 3.2rem;
  }
}
/* TOP hero mobile fix */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h, 82px) + 38px);
    padding-bottom: 44px;
    overflow: visible;
  }

  .hero-layout {
    display: block;
    padding: 0 22px;
  }

  .hero-main {
    max-width: none;
  }

.hero-title {
  font-size: clamp(1.9rem, 9.6vw, 2.65rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin-top: 0;
  margin-bottom: 26px;
  word-break: keep-all;
  overflow-wrap: normal;
}
  .hero-title span {
    display: inline;
  }

  .hero-notice,
  .hero-symptoms,
  .hero-statement,
  .hero-cta {
    position: relative;
    z-index: 1;
  }

  .hero-guide,
  .hero-tags {
    display: none;
  }
}
.faq-btn {
  position: relative;
  z-index: 2;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
}
.profile-img img {
  width: 100%;
  height: auto;
  display: block;
}
/* profile images fix */
.profile-img img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .profile-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    max-width: none;
  }

  .profile-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
  }

  .profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* profile images mobile overlap fix */
@media (max-width: 640px) {
  .profile-images {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
  }

  .profile-img {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
  }

  .profile-img img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}
/* TOP hero tablet fix */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h, 82px) + 44px);
    padding-bottom: 64px;
    overflow: hidden;
  }

  .hero-layout {
    display: block;
    padding: 0 30px;
  }

  .hero-main {
    max-width: 760px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 7vw, 3.35rem);
    line-height: 1.34;
    letter-spacing: 0.02em;
    margin-top: 0;
    margin-bottom: 28px;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero-title span {
    display: inline;
  }

  .hero-guide {
    max-width: 780px;
    margin-top: 44px;
  }

  .hero-tags {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.ba-illustration {
  text-align: center;
}

.ba-illustration img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}
/* note quote decoration */
.note-quote {
  position: relative;
  overflow: hidden;
  margin-bottom: 46px;
  padding: 42px 38px 34px;
  border: 1px solid rgba(95, 127, 63, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 18%, rgba(95, 127, 63, 0.08), transparent 120px),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(250,248,241,0.94));
  box-shadow: 0 18px 46px rgba(45,60,40,0.06);
  text-align: center;
}

.note-quote::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 24px;
  color: rgba(95, 127, 63, 0.18);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
}

.note-quote::after {
  content: "”";
  position: absolute;
  right: 24px;
  bottom: -18px;
  color: rgba(95, 127, 63, 0.16);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
}

.note-quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--text);
}

.note-quote div {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 22px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(95, 127, 63, 0.08);
  color: var(--green-dark);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .note-quote {
    padding: 34px 22px 28px;
    text-align: left;
  }

  .note-quote::before {
    top: 4px;
    left: 14px;
    font-size: 4rem;
  }

  .note-quote::after {
    right: 16px;
    bottom: -16px;
    font-size: 4rem;
  }

  .note-quote p {
    font-size: 1.2rem;
    line-height: 1.9;
  }

  .note-quote div {
    margin-top: 18px;
    font-size: 0.84rem;
  }
}
