:root {
  --cream: #f6f2eb;
  --cream-2: #efe7d8;
  --brown: #5f4924;
  --brown-deep: #4a3517;
  --gold: #c8a14b;
  --gold-soft: #e6d7b4;
  --text: #4f3d23;
  --line: rgba(143, 113, 57, 0.22);
  --shadow: 0 16px 40px rgba(83, 61, 24, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}

#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.narrow {
  width: min(760px, 100%);
  margin-inline: auto;
}
.site-main {
  padding-top: 40px;
  flex: 1;
}
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
}
.header-logo img {
  width: 180px;
}
.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.site-nav a {
  text-decoration: none;
  color: var(--brown);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.35s ease;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.btn-primary,
.btn-header,
.btn-sp-menu {
  background: var(--brown);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover,
.btn-header:hover,
.btn-sp-menu:hover {
  transform: translateY(-2px);
  background: #6b5228;
}
.btn-header {
  min-height: 48px;
  padding-inline: 22px;
}
.sp-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--brown);
}
.sp-menu {
  border-top: 1px solid var(--line);
  background: rgba(246, 242, 235, 0.98);
}
.sp-menu-inner {
  padding: 20px 0 24px;
  display: grid;
  gap: 14px;
}
.sp-menu a {
  text-decoration: none;
}

.hero {
  padding: 42px 0 56px;
}
.hero-inner {
  text-align: center;
}
.hero-logo-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto 22px;
}
.hero-logo {
  width: min(420px, 68vw);
  margin-inline: auto;
}
.hero-time {
  width: 88px;
  position: absolute;
  right: -72px;
  top: 6px;
}
.hero-visual {
  margin: 14px auto 5px;
  width: min(930px, 100%);
}
.hero-copy {
  font-size: 19px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--brown);
  margin-top: 26px;
}
.hero-copy p {
  margin: 0;
}
.hero-pills,
.result-pills {
  list-style: none;
  padding: 0;
  margin: 26px auto 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-pills li,
.result-pills li {
  padding: 8px 16px;
  border-radius: 999px;
  background: #efe9df;
  color: #7a6240;
  font-size: 14px;
  border: 1px solid rgba(200, 161, 75, 0.18);
}
.section {
  padding: 64px 0;
}
.ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.ornament img {
  width: min(220px, 55vw);
}
.ornament.small img {
  width: 180px;
}
.section-title,
.subpage-title {
  font-family: "Shippori Mincho", serif;
  text-align: center;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.38;
  letter-spacing: 0.1em;
  color: var(--brown);
  margin: 0 0 24px;
}
.subpage-lead {
  text-align: center;
  color: #7a6240;
  font-size: 18px;
  line-height: 1.9;
}
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  place-content: center;
  text-align: left;
}
.bullet-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.95;
  font-size: 18px;
}
.bullet-list.small li {
  font-size: 16px;
}
.bullet-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.9em;
  transform: translateY(-50%);
}
.section-what .narrow {
  text-align: left;
}
.section-illust {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.section-illust img {
  width: 126px;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.type-card {
  text-decoration: none;
  text-align: center;
}
.type-card img {
  filter: drop-shadow(0 16px 28px rgba(91, 74, 44, 0.08));
  transition: transform 0.35s ease;
}
.type-card:hover img {
  transform: translateY(-6px);
}
.type-caption {
  margin: 12px 0 0;
  color: #6d5734;
  font-size: 16px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.summary-box {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(200, 161, 75, 0.18);
  border-radius: 24px;
  padding: 32px;
}
.summary-title {
  font-family: "Shippori Mincho", serif;
  color: var(--brown);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  margin: 0 0 18px;
  text-align: center;
}
.summary-title.center {
  text-align: center;
}
.faq-wrap {
  width: min(760px, 100%);
}
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 161, 75, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(83, 61, 24, 0.03);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 18px;
  position: relative;
  color: var(--brown);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--gold);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 24px 22px;
  color: #6e5d46;
  line-height: 1.95;
  font-size: 16px;
}
.faq-cta {
  margin-top: 28px;
  text-align: center;
}
.subpage-hero {
  padding: 40px 0 18px;
}
.diagnosis-frame-wrap {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(200, 161, 75, 0.18);
  border-radius: 24px;
  padding: 18px;
}
.diagnosis-iframe {
  width: 100%;
  min-height: 78vh;
  border: 0;
  border-radius: 18px;
  background: #fff;
}
.type-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 40px;
  align-items: start;
}
.type-lead {
  font-size: 19px;
  line-height: 2;
  color: #6b5735;
  margin-top: 0;
}
.type-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.type-block h2 {
  font-size: 24px;
  font-family: "Shippori Mincho", serif;
  color: var(--brown);
  margin: 0 0 8px;
}
.type-block p,
.page-content {
  font-size: 17px;
  line-height: 2;
  color: #6e5d46;
}
.type-detail-cta {
  margin-top: 20px;
}
.default-page {
  min-height: 55vh;
}
.site-footer {
  background: var(--brown);
  color: #fff;
  margin-top: auto;
}
.footer-pattern {
  height: 32px;
  background: url("../images/loop_pattern.png") repeat-x center/auto 100%;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 34px 0 42px;
}
.footer-brand img {
  width: 150px;
}
.footer-copy {
  font-size: 15px;
  margin: 0 0 18px;
  letter-spacing: 0.08em;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.js-fade-up,
.js-fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}
.js-fade-in {
  transform: none;
}
.is-visible {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: 0.12s;
}
.delay-2 {
  transition-delay: 0.24s;
}
.delay-3 {
  transition-delay: 0.36s;
}
.delay-4 {
  transition-delay: 0.48s;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .site-nav {
    gap: 18px;
    font-size: 13px;
  }
  .hero-time {
    right: -46px;
  }
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    place-content: center;
    place-items: center;
  }
  .two-col,
  .type-detail-grid {
    grid-template-columns: 1fr;
  }

  .header-logo img {
    width: 130px;
  }

  .header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
  }
}
@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, 1120px);
  }
  .site-main {
    padding-top: 30px;
  }
  .header-inner {
    min-height: 72px;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }
  .header-logo img {
    width: 130px;
  }

  .site-nav,
  .btn-header {
    display: none;
  }
  .sp-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero {
    padding-top: 22px;
  }
  .hero-logo {
    width: min(300px, 70vw);
  }
  .hero-time {
    width: 74px;
    right: -10px;
    top: -6px;
  }
  .hero-copy {
    font-size: 14px;
    line-height: 1.9;
  }
  .hero-pills li,
  .result-pills li {
    font-size: 13px;
  }
  .section {
    padding: 48px 0;
  }
  .section-title,
  .subpage-title {
    font-size: 24px;
    line-height: 1.45;
  }
  .bullet-list li {
    font-size: 16px;
  }
  .summary-box {
    padding: 26px 22px;
  }
  .summary-title {
    font-size: 18px;
    line-height: 1.5;
  }
  .faq-item summary {
    font-size: 16px;
    padding: 18px 20px;
  }
  .faq-answer {
    font-size: 15px;
    padding: 0 20px 18px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-copy {
    font-size: 13px;
  }
  .footer-links {
    justify-content: center;
    gap: 18px;
  }
  .footer-brand img {
    width: 150px;
    margin: auto;
  }
}

.result-kicker {
  text-align: center;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: 13px;
  margin: 0 0 10px;
}
.result-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 36px;
  align-items: start;
}
.result-visual img {
  filter: drop-shadow(0 18px 32px rgba(91, 74, 44, 0.08));
}
.result-mini-box,
.result-next-box {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(200, 161, 75, 0.18);
  border-radius: 20px;
  padding: 24px;
}
.result-mini-box h3,
.result-next-box h3 {
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  color: var(--brown);
  margin: 0 0 8px;
}
.result-mini-box p,
.result-next-box p {
  margin: 0;
  font-size: 17px;
  line-height: 2;
  color: #6e5d46;
}
.result-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.result-actions.center {
  justify-content: center;
}
.btn-secondary {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}
.btn-secondary:hover {
  background: rgba(95, 73, 36, 0.06);
}
.premium-price {
  font-family: "Shippori Mincho", serif;
  font-size: 34px;
  color: var(--brown);
  text-align: center;
  margin: 12px 0 0;
}
.diagnosis-page-shell {
  background: #f2ede4;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(200, 161, 75, 0.18);
}
.diagnosis-card-intro {
  width: min(780px, 100%);
  margin: 0 auto 24px;
}
.diagnosis-card-intro h2 {
  text-align: center;
  font-family: "Shippori Mincho", serif;
  color: var(--brown);
  font-size: 32px;
  margin: 0 0 20px;
}
.diagnosis-note-box {
  background: #f8f4ee;
  border: 2px solid rgba(200, 161, 75, 0.8);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.diagnosis-note-box p {
  margin: 0;
  font-size: 17px;
  line-height: 2;
  color: #6e5d46;
}
.diagnosis-scale-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.diagnosis-scale-list li {
  background: #fff;
  border: 1px solid rgba(200, 161, 75, 0.25);
  border-radius: 14px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  font-size: 20px;
  color: var(--brown);
}
.diagnosis-scale-list span {
  font-family: "Shippori Mincho", serif;
  font-size: 34px;
  width: 28px;
  display: inline-block;
}
.diagnosis-embed-wrap {
  margin-top: 24px;
}
.diagnosis-iframe-local {
  min-height: 1900px;
  background: #fff;
}
@media (max-width: 1024px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .diagnosis-page-shell {
    padding: 18px;
    border-radius: 22px;
  }
  .diagnosis-card-intro h2 {
    font-size: 26px;
  }
  .diagnosis-note-box p {
    font-size: 15px;
  }
  .diagnosis-scale-list li {
    min-height: 62px;
    font-size: 16px;
    padding: 0 16px;
  }
  .diagnosis-scale-list span {
    font-size: 28px;
  }
  .diagnosis-iframe-local {
    min-height: 1750px;
  }
}
.single-product .product_meta .posted_in {
  display: none;
}

.single-product .product_title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--brown);
}

.section-head-en {
  text-align: center;
}

@media (max-width: 767px) {
  .single-product .product_title {
    font-size: 28px;
    line-height: 1.4;
  }

  .section-head-en {
    text-align: center;
  }
}

.type-hero-image img {
  margin: auto;
}

.header-logo img {
  padding: 10px 0;
}

/*CTRボタン*/
.wc-block-cart__submit-container {
  margin-top: 28px;
}

.wc-block-cart__submit-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  width: 100%;
  border-radius: 16px !important;
  background: #4a3517 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(83, 61, 24, 0.12);
  border: 1px solid #4a3517 !important;
  transition: 0.25s ease;
}

.wc-block-cart__submit-button:hover {
  background: #5f4924 !important;
  border-color: #5f4924 !important;
  transform: translateY(-1px);
}

.wc-block-cart__submit-button .wc-block-components-button__text {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .wc-block-cart__submit-button {
    min-height: 56px;
    font-size: 16px;
    border-radius: 14px !important;
  }

  .wc-block-cart__submit-button .wc-block-components-button__text {
    font-size: 16px;
  }
}

.ctaaf {
  line-height: 1.7em !important;
}

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

@media (max-width: 767px) {
  .sp-fixed-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 999;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brown);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  }

  .sp-fixed-cta.is-visible {
    display: flex;
  }
}

/* ===== 固定CTAボタン（スマホのみ） ===== */
@media (max-width: 768px) {
  .fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    transition: opacity 0.3s ease;
    text-align: center;
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  .fixed-cta.hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* ボタンを横幅いっぱいに＋流用スタイルを上書き適用 */
  .fixed-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.35s ease;
    letter-spacing: 0.08em;
    font-weight: 600;
    box-sizing: border-box;
  }

  .fixed-cta.hidden {
    opacity: 0;
    pointer-events: none;
  }
}

.footer_link {
  font-size: 0.7em;
  text-align: center;
  margin-bottom: 2em;
}
.footer_link a {
  text-decoration: none;
}

.un20 {
  margin-bottom: 15px !important;
}

.sales_point {
  text-align: center;
  letter-spacing: 0em !important;
}

@media (max-width: 768px) {
  .sales_point {
    text-align: left;
    letter-spacing: 0em !important;
  }
}
