@charset "utf-8";

/* ページ管理の標準ラッパーが付ける上下余白を独自ページでは解除する。 */
.l-container__row:has(.wt-haguki-free-page),
.l-container__row:has(.wt-guides-page) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.l-container:has(.wt-haguki-free-page),
.l-container:has(.wt-guides-page) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* WANSER ハグキスマイル商品詳細専用。すべて .wt-haguki-page 配下に限定。 */
.wt-haguki-page {
  --wt-product-primary: #4b7b70;
  --wt-product-primary-deep: #345c53;
  --wt-product-primary-pale: #e7efec;
  --wt-product-surface: #f7f7f5;
  --wt-product-text: #333333;
  --wt-product-muted: #666666;
  --wt-product-line: rgba(51, 51, 51, 0.14);
  --wt-product-font: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --wt-product-ui-font: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --wt-product-content-max: 1160px;
  --wt-product-side-padding: 64px;
  --wt-product-section-space: 96px;
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  color: var(--wt-product-text);
  background: #ffffff;
  font: 16px/1.9 var(--wt-product-font);
  letter-spacing: 0.04em;
}

.wt-haguki-free-page {
  margin-top: -60px;
}

.wt-haguki-page,
.wt-haguki-page *,
.wt-haguki-page *::before,
.wt-haguki-page *::after {
  box-sizing: border-box;
}

.wt-haguki-page img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.wt-haguki-page figure,
.wt-haguki-page blockquote {
  margin: 0;
}

.wt-haguki-page h1,
.wt-haguki-page h2,
.wt-haguki-page h3,
.wt-haguki-page p {
  font-family: var(--wt-product-font);
}

.wt-haguki-page p {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.9;
}

.wt-container {
  width: min(calc(100% - (var(--wt-product-side-padding) * 2)), var(--wt-product-content-max));
  margin-inline: auto;
}

.wt-section {
  padding-block: var(--wt-product-section-space);
  background: #ffffff;
}

.wt-section + .wt-section {
  border-top: 1px solid var(--wt-product-line);
}

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

.wt-section--tint {
  background: linear-gradient(135deg, #eef3f1, #e7efec);
}

.wt-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.wt-section-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--wt-product-primary);
  font: 600 14px/1.2 var(--wt-product-ui-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wt-section-heading,
.wt-message-copy h2 {
  margin: 0;
  color: var(--wt-product-text) !important;
  font-size: 36px !important;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.wt-section-heading::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin-top: 18px;
  background: var(--wt-product-primary);
}

.wt-section-intro {
  max-width: 700px;
  margin: 22px 0 0;
  color: #5c5c5c;
}

.wt-detail-hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(82vh - 80px));
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--wt-product-primary-deep);
}

.wt-detail-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(0.96);
}

.wt-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 55, 49, 0.82), rgba(29, 55, 49, 0.35));
}

.wt-detail-hero .wt-container {
  position: relative;
  z-index: 1;
}

.wt-detail-hero__copy {
  max-width: 700px;
  padding-block: 80px;
}

.wt-detail-hero h1 {
  margin: 0 0 22px;
  color: #ffffff !important;
  font-size: 56px !important;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.wt-detail-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 17px;
}

.wt-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.wt-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  padding: 0.85em 1.45em;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #333333;
  color: #ffffff !important;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background 240ms ease-out, color 240ms ease-out, transform 240ms ease-out;
}

.wt-button:hover {
  background: #111111;
  transform: translateY(-1px);
}

.wt-button--secondary {
  background: var(--wt-product-primary);
}

.wt-button--secondary:hover {
  background: var(--wt-product-primary-deep);
}

.wt-button--outline {
  border-color: currentColor;
  background: transparent;
  color: var(--wt-product-text) !important;
}

.wt-button--outline:hover {
  background: var(--wt-product-text);
  color: #ffffff !important;
}

.wt-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--wt-product-text) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.wt-text-link::after {
  content: "→";
  font-family: var(--wt-product-ui-font);
}

.wt-about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wt-card {
  overflow: hidden;
  border: 1px solid var(--wt-product-line);
  border-radius: 8px;
  background: #ffffff;
}

.wt-number-card {
  min-height: 250px;
  padding: 30px;
}

.wt-number-card .wt-num {
  display: block;
  margin-bottom: 34px;
  color: var(--wt-product-primary);
  font: 500 20px/1 var(--wt-product-ui-font);
}

.wt-number-card h3 {
  margin: 0 0 14px;
  color: var(--wt-product-text) !important;
  font-size: 24px !important;
  line-height: 1.55;
}

.wt-number-card p {
  margin-bottom: 0;
  color: #5f5f5f;
}

.wt-doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.wt-doctor-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--wt-product-line);
  border-radius: 8px;
  background: #ffffff;
}

.wt-doctor-avatar {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wt-product-primary-pale);
}

.wt-doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wt-doctor-avatar--hayashiya img {
  object-position: 42% center;
}

.wt-doctor-card h3 {
  margin: 8px 0 0;
  color: var(--wt-product-text) !important;
  font-size: 24px !important;
}

.wt-role,
.wt-review-meta {
  color: var(--wt-product-primary);
  font-size: 14px;
}

.wt-doctor-card p {
  margin: 10px 0 0;
  color: #5f5f5f;
  font-size: 16px;
}

.wt-message-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.wt-message-copy h2 {
  margin-bottom: 28px;
}

.wt-message-copy p {
  color: #555555;
}

.wt-message-photo {
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--wt-product-primary-pale);
}

.wt-message-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ecforceの商品画像・価格・SKU・カート機能 */
.wt-product-commerce {
  scroll-margin-top: 96px;
}

.wt-product-commerce .p-product_content {
  width: 100%;
  margin: 0;
}

.wt-product-commerce .p-product_content__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: start;
  gap: clamp(36px, 6vw, 72px);
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 48px) !important;
  border: 1px solid var(--wt-product-line);
  border-radius: 8px;
  background: #ffffff;
}

.wt-product-commerce .p-product_content__inner__img,
.wt-product-commerce .p-product_content__inner__info {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.wt-product-commerce .p-product_content__inner__img {
  position: sticky;
  top: 104px;
}

.wt-product-commerce .c-product_img,
.wt-product-commerce .c-product_img__slider,
.wt-product-commerce .c-product_img__track {
  width: 100%;
}

.wt-product-commerce .c-product_img__slider--main {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #e7efec, #f7f7f5);
}

.wt-product-commerce .c-product_info__title {
  margin: 8px 0 16px !important;
  color: var(--wt-product-text) !important;
  font-size: 36px !important;
  line-height: 1.45;
}

.wt-product-commerce .c-product_info__description,
.wt-product-commerce .u-text--body,
.wt-product-commerce .u-text--strong,
.wt-product-commerce .u-text--input {
  font-family: var(--wt-product-font) !important;
  font-size: 16px !important;
  line-height: 1.8;
}

.wt-product-commerce .c-product_info__price,
.wt-product-commerce .c-product_info__price * {
  color: var(--wt-product-text) !important;
}

.wt-product-commerce .c-product_info__form__submit,
.wt-product-commerce .c-product_info__co-selling-product__co-btn-add,
.wt-product-commerce .c-product_info__co-selling-product__co-btn-add-wide,
.wt-product-commerce .u-color__btn--bg {
  border-color: var(--wt-product-primary) !important;
  background: var(--wt-product-primary) !important;
  color: #ffffff !important;
}

.wt-product-commerce .u-text--btn,
.wt-product-commerce .u-color__btn--text {
  color: #ffffff !important;
}

.wt-product-commerce input,
.wt-product-commerce select,
.wt-product-commerce textarea {
  border-color: rgba(51, 51, 51, 0.24) !important;
  background: #ffffff !important;
}

.wt-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.wt-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--wt-product-primary-pale);
}

.wt-card__media img {
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.wt-card__media--product img {
  object-fit: cover;
  object-position: center;
}

.wt-card__media--doctors img {
  object-position: center top;
}

.wt-card__body {
  padding: 28px;
}

.wt-feature-card .wt-num {
  color: var(--wt-product-primary);
  font: 500 20px/1 var(--wt-product-ui-font);
}

.wt-feature-card h3 {
  margin: 14px 0 12px;
  color: var(--wt-product-text) !important;
  font-size: 24px !important;
  line-height: 1.55;
}

.wt-feature-card p:last-child {
  margin-bottom: 0;
}

.wt-avoid-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.wt-avoid-list span {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--wt-product-line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

.wt-avoid-list span::before {
  content: "×";
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f0;
  color: #c62828;
  font: 400 20px/1 var(--wt-product-ui-font);
}

.wt-safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.wt-safety-card {
  padding: 28px;
  background: #ffffff;
}

.wt-safety-card h3 {
  margin: 0 0 12px;
  color: var(--wt-product-text) !important;
  font-size: 24px !important;
}

.wt-safety-card p {
  margin-bottom: 0;
  color: #5f5f5f;
}

.wt-ingredients,
.wt-disclaimer {
  margin-top: 28px;
  color: #6d6d6d;
  font-size: 14px !important;
}

.wt-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wt-step-card {
  position: relative;
  padding-left: 52px;
}

.wt-step-card::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: -22px;
  left: 19px;
  border-left: 1px dashed var(--wt-product-primary);
}

.wt-step-number {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--wt-product-primary);
  color: #ffffff;
  font: 600 20px/1 var(--wt-product-ui-font);
}

.wt-step-visual {
  min-height: 190px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--wt-product-primary-pale);
}

.wt-step-visual img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wt-step-card:first-child .wt-step-visual img {
  object-position: center bottom;
}

.wt-step-card h3 {
  margin: 0 0 8px;
  color: var(--wt-product-text) !important;
  font-size: 24px !important;
  line-height: 1.55;
}

.wt-step-card p {
  color: #5e5e5e;
}

.wt-tip {
  margin-top: 36px !important;
  padding: 16px 22px;
  border: 1px solid var(--wt-product-line);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.wt-review-card .wt-card__media {
  aspect-ratio: 4 / 3;
}

.wt-review-card blockquote {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.9;
}

.wt-faq + .wt-faq {
  margin-top: 10px;
}

.wt-faq {
  border: 1px solid var(--wt-product-line);
  background: #ffffff;
}

.wt-faq summary {
  position: relative;
  padding: 20px 58px 20px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}

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

.wt-faq summary::before {
  content: "Q.";
  margin-right: 10px;
  color: var(--wt-product-primary);
  font-family: var(--wt-product-ui-font);
}

.wt-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--wt-product-primary);
  font: 400 24px/1 var(--wt-product-ui-font);
  transform: translateY(-50%);
}

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

.wt-faq-answer {
  padding: 0 22px 22px 57px;
  color: #555555;
}

.wt-faq-answer p {
  margin: 0;
  white-space: pre-line;
}

.wt-faq-loading {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--wt-product-line);
  background: #ffffff;
  color: var(--wt-product-muted);
}

.wt-recommend {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 48px;
  padding: 40px;
  border: 1px solid var(--wt-product-line);
  background: #ffffff;
}

.wt-product-stage {
  display: grid;
  height: 240px;
  min-height: 240px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #e7efec, #f7f7f5);
}

.wt-product-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wt-recommend h3 {
  margin: 6px 0 8px;
  color: var(--wt-product-text) !important;
  font-size: 32px !important;
}

.wt-ecforce-extra-sections:empty {
  display: none;
}

@media (max-width: 960px) {
  .wt-haguki-page {
    --wt-product-side-padding: 28px;
    --wt-product-section-space: 76px;
  }

  .wt-message-grid,
  .wt-product-commerce .p-product_content__inner {
    grid-template-columns: 1fr;
  }

  .wt-product-commerce .p-product_content__inner__img {
    position: static;
  }

  .wt-doctor-grid {
    grid-template-columns: 1fr;
  }

  .wt-cards,
  .wt-step-grid,
  .wt-safety-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wt-recommend {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 680px) {
  .wt-haguki-page {
    --wt-product-side-padding: 20px;
    --wt-product-section-space: 64px;
  }

  .wt-detail-hero {
    min-height: 70vh;
    align-items: end;
  }

  .wt-detail-hero > img {
    object-position: 58% center;
  }

  .wt-detail-hero::after {
    background: linear-gradient(0deg, rgba(28, 54, 48, 0.84), rgba(28, 54, 48, 0.2));
  }

  .wt-detail-hero__copy {
    padding: 84px 0 72px;
  }

  .wt-detail-hero h1 {
    font-size: clamp(36px, 11vw, 52px) !important;
  }

  .wt-heading-row {
    display: block;
    margin-bottom: 34px;
  }

  .wt-heading-row .wt-text-link {
    margin-top: 22px;
  }

  .wt-section-heading,
  .wt-message-copy h2 {
    font-size: 30px !important;
  }

  .wt-about-cards,
  .wt-cards,
  .wt-step-grid,
  .wt-safety-grid {
    grid-template-columns: 1fr;
  }

  .wt-doctor-card {
    grid-template-columns: 76px 1fr;
    gap: 16px;
    padding: 20px;
  }

  .wt-doctor-card h3,
  .wt-number-card h3,
  .wt-feature-card h3,
  .wt-step-card h3,
  .wt-safety-card h3 {
    font-size: 20px !important;
  }

  .wt-message-photo {
    min-height: 340px;
  }

  .wt-product-commerce .p-product_content__inner {
    padding: 20px !important;
  }

  .wt-product-commerce .c-product_info__title {
    font-size: 28px !important;
  }

  .wt-avoid-list {
    grid-template-columns: 1fr 1fr;
  }

  .wt-step-card {
    padding-left: 0;
  }

  .wt-step-card::before {
    display: none;
  }

  .wt-step-number {
    top: 12px;
    left: 12px;
  }

  .wt-recommend {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .wt-recommend .wt-product-stage {
    display: none;
  }

  .wt-faq summary {
    padding: 18px 52px 18px 18px;
  }

  .wt-faq-answer {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wt-haguki-page *,
  .wt-haguki-page *::before,
  .wt-haguki-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   ご利用ガイド一覧ページ
   ========================================================= */
.wt-guides-page {
  --wt-product-primary: #4b7b70;
  --wt-product-primary-deep: #345c53;
  --wt-product-primary-pale: #e7efec;
  --wt-product-surface: #f7f7f5;
  --wt-product-text: #333333;
  --wt-product-muted: #666666;
  --wt-product-line: rgba(51, 51, 51, 0.14);
  --wt-product-font: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --wt-product-ui-font: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --wt-product-content-max: 1160px;
  --wt-product-side-padding: 64px;
  width: 100vw;
  max-width: none !important;
  margin-top: -60px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  color: var(--wt-product-text);
  background: #ffffff;
  font: 16px/1.9 var(--wt-product-font);
  letter-spacing: 0.04em;
}

.wt-guides-page,
.wt-guides-page *,
.wt-guides-page *::before,
.wt-guides-page *::after {
  box-sizing: border-box;
}

.wt-guides-page h1,
.wt-guides-page h2,
.wt-guides-page p {
  font-family: var(--wt-product-font);
}

.wt-guides-page p {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.9;
}

.wt-guides-hero {
  padding: 74px 0 62px;
  border-bottom: 1px solid var(--wt-product-line);
  background: var(--wt-product-surface);
}

.wt-guides-hero h1 {
  margin: 8px 0 14px;
  color: var(--wt-product-text) !important;
  font-size: 46px !important;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.wt-guides-hero p {
  max-width: 680px;
  margin-bottom: 0;
  color: #606060;
}

.wt-guides-section {
  padding-block: 96px;
  background: #ffffff;
}

.wt-guide-list {
  display: grid;
  gap: 18px;
}

.wt-guide-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 38px;
  padding: 24px;
  border: 1px solid var(--wt-product-line);
  border-radius: 8px;
  background: #ffffff;
}

.wt-guide-thumb {
  display: grid;
  place-items: center;
  height: 180px;
  min-height: 180px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--wt-product-primary-pale);
}

.wt-guide-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
}

.wt-guide-card h2 {
  margin: 0 0 10px;
  color: var(--wt-product-text) !important;
  font-size: 28px !important;
  font-weight: 600;
  line-height: 1.45;
}

.wt-guide-card p {
  margin-bottom: 0;
  color: var(--wt-product-text);
}

.wt-guides-cta {
  padding-block: 62px;
  border-top: 1px solid var(--wt-product-line);
  background: var(--wt-product-surface);
  text-align: center;
}

.wt-guides-cta h2 {
  margin: 0;
  color: var(--wt-product-text) !important;
  font-size: 28px !important;
  font-weight: 600;
  line-height: 1.45;
}

.wt-guides-cta .wt-button-row {
  justify-content: center;
}

@media (max-width: 767px) {
  .wt-guides-page {
    --wt-product-side-padding: 20px;
  }

  .wt-guides-hero {
    padding: 52px 0 44px;
  }

  .wt-guides-hero h1 {
    font-size: 34px !important;
  }

  .wt-guides-section {
    padding-block: 64px;
  }

  .wt-guide-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .wt-guide-thumb {
    height: 210px;
    min-height: 210px;
  }

  .wt-guide-card h2,
  .wt-guides-cta h2 {
    font-size: 24px !important;
  }

  .wt-guides-cta {
    padding-block: 52px;
  }
}
