/* ---------------------------------------------------------
   1. Variables
   --------------------------------------------------------- */

:root {
  --color-text-head: #000000;
  --color-text-body: #000000;
  --color-text-overlay: #ffffff;
  --color-text-link: #4b7b70;
  --color-btn-bg: #4b7b70;
  --color-btn-text: #ffffff;
  --color-input-text: #000000;
  --color-input-border: #000000;
  --color-page-bg: #ffffff;
  --color-page-border: #000000;
  --color-page-accent: #4b7b70;

  --font-size-text-head: 36px;
  --font-size-text-subhead: 24px;
  --font-size-text-body: 17px;
  --font-size-text-link: 17px;

  --font-family-text-head: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  --font-family-text-subhead: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
  --font-family-text-body: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
}

/* ---------------------------------------------------------
   2. Base
   --------------------------------------------------------- */

html,
body {
  background-color: #ffffff !important;
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
.btn,
input,
textarea,
select {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "游明朝 Bold", serif;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4,
h5,
h6 {
  font-size: 1.25rem;
}

p,
.product-description,
.item-description {
  font-size: 1.125rem;
  line-height: 1.8;
}

button,
.btn,
input[type="submit"],
input[type="button"] {
  font-size: 1.125rem;
}

input,
textarea,
select {
  font-size: 1rem;
}

/* ---------------------------------------------------------
   3. ecforce utility classes
   --------------------------------------------------------- */

.u-text--head,
.u-font--head {
  font-family: var(--font-family-text-head);
  font-size: var(--font-size-text-head) !important;
  font-weight: bold;
}

.u-text--head {
  color: var(--color-text-head) !important;
}

.u-text--subhead,
.u-font--subhead {
  font-family: var(--font-family-text-subhead);
  font-size: var(--font-size-text-subhead) !important;
  font-weight: bold;
}

.u-text--subhead {
  color: var(--color-text-head) !important;
}

.u-text--body,
.u-text--strong,
.u-font--body,
.u-text--input,
.u-text--btn,
.u-text--btn--overlay,
.u-text--btn--reverse,
.u-text--btn--overlay--reverse {
  font-family: var(--font-family-text-body);
  font-size: var(--font-size-text-body) !important;
}

.u-text--body,
.u-text--strong,
.u-text--input {
  color: var(--color-text-body) !important;
}

.u-text--link {
  color: var(--color-text-link) !important;
  font-family: var(--font-family-text-body);
  font-size: var(--font-size-text-link) !important;
}

.u-text--head--overlay {
  color: var(--color-text-overlay) !important;
  font-family: var(--font-family-text-head);
  font-size: var(--font-size-text-head) !important;
  font-weight: bold;
}

.u-text--subhead--overlay {
  color: var(--color-text-overlay) !important;
  font-family: var(--font-family-text-subhead);
  font-size: var(--font-size-text-subhead) !important;
  font-weight: bold;
}

.u-text--body--overlay {
  color: var(--color-text-overlay) !important;
  font-family: var(--font-family-text-body);
  font-size: var(--font-size-text-body) !important;
}

.u-color--head,
.u-color--body,
.u-color--input {
  color: #000000 !important;
}

.u-text--color--overlay {
  color: #ffffff !important;
}

.u-color__btn--bg,
.u-color__btn--bg--overlay {
  background: var(--color-btn-bg) !important;
}

.u-color__btn--bg--reverse,
.u-color__btn--bg--overlay--reverse,
.u-color__btn--text--bg {
  background: #ffffff !important;
}

.u-color__btn,
.u-text--btn--reverse,
.u-text--btn--overlay--reverse {
  color: var(--color-btn-bg) !important;
}

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

.u-text--btn--reverse,
.u-text--btn--overlay--reverse {
  border: 1px solid #000000 !important;
}

.u-color__input--bg,
.u-color__bg--base,
.u-color__bg--main {
  background: #ffffff !important;
}

.u-color__border--input,
.u-color__border--border,
.u-color__border--main {
  border-color: #000000 !important;
}

.u-font--bold {
  font-weight: bold;
}

/* ---------------------------------------------------------
   4. ecforce components
   --------------------------------------------------------- */

.c-steps_to_order--theme {
  --theme-color: var(--color-btn-bg) !important;
  --text-color: var(--color-btn-text) !important;
}

.p-movie--theme {
  --theme-color: var(--color-btn-bg);
}

.c-product_info__details__icon::before,
.c-product_info__details__icon::after {
  background: #000000 !important;
}

.c-product_info__share .u-icon--twitter {
  display: none;
}

.c-product_item__actions .c-product_item__form--favorite,
.c-product_item__actions .c-product_item__form--cart {
  display: inline-block;
}

#index-view .text-crisp {
  color: #111111;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   5. WANSER common header / footer
   --------------------------------------------------------- */

#ecf_header_section,
#ecf_footer_section {
  --ws-color-primary: #4b7b70;
  --ws-color-primary-deep: #345c53;
  --ws-color-text: #333333;
  --ws-color-line: rgba(51, 51, 51, 0.14);
  --ws-font-body: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ws-font-ui: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --ws-content-max: 1160px;
}

/* Header */

/*
 * カート・購入手続きなど、ecforce側で固定ヘッダーを無効にする画面でも、
 * ヘッダーの中身だけは通常ページと同じ1160px幅に揃える。
 * ヘッダー背景そのものは画面幅いっぱいのままにする。
 */
#ecf_header_section:not(.wt-site-header) .l-header__inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 128px), var(--ws-content-max));
  min-height: 80px !important;
  max-height: none !important;
  height: 80px !important;
  margin-inline: auto;
  padding-inline: 0 !important;
}

#ecf_header_section:not(.wt-site-header) .logo__block {
  order: 1;
  flex: 0 0 auto;
  flex-grow: 0;
  margin-right: auto;
  padding-left: 0 !important;
}

#ecf_header_section:not(.wt-site-header) .l-header__inner__block__logo {
  display: flex;
  align-items: center;
  max-width: 180px !important;
}

#ecf_header_section:not(.wt-site-header) .l-header__inner__block__logo img {
  display: block;
  width: auto;
  max-width: 180px !important;
  max-height: 44px;
  object-fit: contain;
}

#ecf_header_section:not(.wt-site-header) .l-header__inner > .l-header__inner__block:first-child {
  order: 3;
  display: none;
}

#ecf_header_section:not(.wt-site-header) .l-header__inner > .l-header__inner__block:last-child {
  order: 3;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

#ecf_header_section.wt-site-header {
  position: fixed !important;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--ws-color-line);
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--ws-color-text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.wt-has-fixed-header {
  padding-top: var(--wt-fixed-header-height, 80px) !important;
}

#ecf_header_section.wt-site-header .l-header__inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 128px), var(--ws-content-max));
  min-height: 80px !important;
  max-height: none !important;
  height: 80px !important;
  margin-inline: auto;
  padding: 0;
}

#ecf_header_section.wt-site-header .logo__block {
  order: 1;
  flex: 0 0 auto;
  flex-grow: 0;
  margin-right: auto;
  padding-left: 0 !important;
}

#ecf_header_section.wt-site-header .l-header__inner__block__logo {
  display: flex;
  align-items: center;
}

#ecf_header_section.wt-site-header .l-header__inner__block__logo img {
  display: block;
  width: auto;
  max-width: 180px !important;
  max-height: 44px;
  object-fit: contain;
}

#ecf_header_section.wt-site-header .l-header__inner > .l-header__inner__block:first-child {
  order: 3;
  display: none;
}

#ecf_header_section.wt-site-header .l-header__inner > .l-header__inner__block:last-child {
  order: 3;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.wt-header-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font: 500 0.84rem/1.4 var(--ws-font-body);
  letter-spacing: 0.04em;
}

.wt-header-nav a {
  position: relative;
  color: var(--ws-color-text) !important;
  text-decoration: none !important;
}

.wt-header-nav a:not(.wt-header-nav__cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ws-color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease-out;
}

.wt-header-nav a:not(.wt-header-nav__cta):hover::after,
.wt-header-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.wt-header-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--ws-color-primary);
  color: #ffffff !important;
  font-weight: 600;
}

.wt-header-nav a.wt-header-nav__cta,
.wt-header-nav a.wt-header-nav__cta:link,
.wt-header-nav a.wt-header-nav__cta:visited,
.wt-header-nav__cta span {
  color: #ffffff !important;
}

.wt-header-nav__cta:hover {
  background: var(--ws-color-primary-deep);
}

.wt-header-nav [data-wt-url-pending="true"] {
  opacity: 0.62;
}

#ecf_header_section.wt-site-header > .p-global_navi {
  display: none;
}

#ecf_header_section.wt-site-header .l-header__inner__block__link {
  color: var(--ws-color-text);
}

#ecf_header_section.wt-site-header .count {
  font-family: var(--ws-font-ui);
}

/* Footer */

#ecf_footer_section.wt-site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(0, 2fr);
  gap: 48px 70px;
  width: 100%;
  padding: 64px max(64px, calc((100% - var(--ws-content-max)) / 2)) 48px;
  border-top: 0 !important;
  background: var(--ws-color-primary-deep) !important;
  color: #ffffff;
  font-family: var(--ws-font-body);
  letter-spacing: 0.04em;
}

#ecf_footer_section.wt-site-footer .l-footer__logo {
  width: auto;
  max-width: 190px !important;
  margin: 0;
}

#ecf_footer_section.wt-site-footer .l-footer__logo img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.wt-footer-brand-copy {
  grid-column: 1;
  max-width: 420px;
  margin: -28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.9;
}

#ecf_footer_section.wt-site-footer .l-footer__menu {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 20px;
  width: 100% !important;
  margin: 0;
}

#ecf_footer_section.wt-site-footer .wt-footer-links__column {
  min-width: 0;
}

#ecf_footer_section.wt-site-footer .wt-footer-links__column a {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.84rem;
  line-height: 1.7;
  text-decoration: none !important;
}

#ecf_footer_section.wt-site-footer .wt-footer-links__column a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

#ecf_footer_section.wt-site-footer .l-footer__info__store {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6) !important;
  font: 0.7rem/1.6 var(--ws-font-ui);
}

#ecf_footer_section.wt-site-footer .footer_head,
#ecf_footer_section.wt-site-footer .footer_link,
#ecf_footer_section.wt-site-footer .footer_body {
  color: inherit !important;
}

@media (max-width: 1100px) {
  .wt-header-nav {
    gap: 18px;
  }

  .wt-header-nav__cta {
    display: none;
  }
}

@media (max-width: 960px) {
  #ecf_header_section:not(.wt-site-header) .l-header__inner {
    width: 100%;
    min-height: 64px !important;
    height: 64px !important;
    padding-inline: 16px !important;
  }

  #ecf_header_section:not(.wt-site-header) .l-header__inner > .l-header__inner__block:first-child {
    order: 1;
    display: flex;
    flex: 1 1 0;
    align-items: center;
  }

  #ecf_header_section:not(.wt-site-header) .logo__block {
    order: 2;
    flex: 0 1 auto;
    margin: 0;
    padding: 0 !important;
  }

  #ecf_header_section:not(.wt-site-header) .l-header__inner > .l-header__inner__block:last-child {
    order: 3;
    flex: 1 1 0;
    justify-content: flex-end;
    margin-left: 0;
  }

  #ecf_header_section:not(.wt-site-header) .l-header__inner__block__logo {
    max-width: 150px !important;
  }

  #ecf_header_section:not(.wt-site-header) .l-header__inner__block__logo img {
    max-width: 150px !important;
    max-height: 38px;
  }

  #ecf_header_section.wt-site-header .l-header__inner {
    width: 100%;
    min-height: 64px !important;
    height: 64px !important;
    padding-inline: 16px;
  }

  #ecf_header_section.wt-site-header .l-header__inner > .l-header__inner__block:first-child {
    order: 1;
    display: flex;
    flex: 1 1 0;
    align-items: center;
  }

  #ecf_header_section.wt-site-header .logo__block {
    order: 2;
    flex: 0 1 auto;
    margin: 0;
    padding: 0 !important;
  }

  #ecf_header_section.wt-site-header .l-header__inner > .l-header__inner__block:last-child {
    order: 3;
    flex: 1 1 0;
    justify-content: flex-end;
    margin-left: 0;
  }

  #ecf_header_section.wt-site-header .l-header__inner__block__logo img {
    max-width: 150px !important;
    max-height: 38px;
  }

  .wt-header-nav {
    display: none;
  }

  #ecf_footer_section.wt-site-footer {
    grid-template-columns: 1fr;
    padding: 56px 28px 40px;
  }

  #ecf_footer_section.wt-site-footer .l-footer__menu,
  .wt-footer-brand-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .wt-footer-brand-copy {
    margin-top: -28px;
  }
}

@media (max-width: 680px) {
  #ecf_footer_section.wt-site-footer .l-footer__menu {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

  #ecf_footer_section.wt-site-footer .l-footer__info__store {
    display: block;
  }

  #ecf_footer_section.wt-site-footer .l-footer__info__store__sns {
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wt-header-nav a::after {
    transition-duration: 0ms !important;
  }
}

/* ---------------------------------------------------------
   6. FAQ
   --------------------------------------------------------- */

.p-faq__category {
  margin: 56px 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid #4b7b70;
  color: #333333;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.6;
}

.p-faq__category:first-child {
  margin-top: 0;
}

@media (max-width: 767px) {
  .p-faq__category {
    margin: 40px 0 16px;
    padding-bottom: 10px;
    font-size: 22px;
  }
}

/* ---------------------------------------------------------
   7. Floating banner
   --------------------------------------------------------- */

.wt-floating-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 200px;
  max-width: calc(100vw - 32px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.wt-floating-banner[hidden] {
  display: none !important;
}

.wt-floating-banner__link {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.wt-floating-banner__link img {
  display: block;
  width: 100%;
  height: auto;
}

.wt-floating-banner__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #4b7b70;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #4b7b70;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

@media (max-width: 767px) {
  .wt-floating-banner {
    right: 12px;
    bottom: 12px;
    width: 150px;
  }

  .wt-floating-banner__close {
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    font-size: 18px;
  }
}

/* ---------------------------------------------------------
   8. WANSER English labels
   --------------------------------------------------------- */

/*
 * wanser-top.css is loaded separately. !important ensures that
 * TOP and lower-page labels use the same size regardless of load order.
 */
.wanser-top .wt-section-kicker,
.wanser-top .wt-eyebrow,
.ws-products-page .ws-section-kicker {
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* ---------------------------------------------------------
   9. Products page
   --------------------------------------------------------- */

.ws-products-page {
  --ws-color-primary: #4b7b70;
  --ws-color-surface: #f7f7f5;
  --ws-color-text: #333333;
  --ws-color-line: rgba(51, 51, 51, 0.14);
  --ws-font-heading: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ws-font-body: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ws-font-decorative: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --ws-page-padding: 20px;
  --ws-content-max: 1160px;
  --ws-section-space: 96px;
  color: var(--ws-color-text);
  background: #ffffff;
  font-family: var(--ws-font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.ws-products-page,
.ws-products-page *,
.ws-products-page *::before,
.ws-products-page *::after {
  box-sizing: border-box;
}

.ws-products-page h1,
.ws-products-page h2,
.ws-products-page p {
  margin-top: 0;
  font-family: var(--ws-font-heading);
}

.ws-products-page h1,
.ws-products-page h2 {
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.ws-products-page .ws-page-hero {
  padding: 74px 0 62px;
  border-bottom: 1px solid var(--ws-color-line);
  background: var(--ws-color-surface);
}

.ws-products-page .ws-page-hero h1 {
  margin: 8px 0 14px;
  color: var(--ws-color-text);
  font-size: 46px;
  line-height: 1.4;
}

.ws-products-page .ws-page-hero p {
  max-width: 680px;
  margin-bottom: 0;
  color: #606060;
}

.ws-products-page .ws-section-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--ws-color-primary);
  font-family: var(--ws-font-decorative);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ws-products-page .ws-section {
  padding-block: var(--ws-section-space);
}

.ws-products-page .ws-section--surface {
  background: var(--ws-color-surface);
}

.ws-products-page .ws-catalog-card {
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: 48px;
  padding: 34px;
  border: 1px solid var(--ws-color-line);
  background: #ffffff;
}

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

.ws-products-page .ws-product-photo {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.ws-products-page .ws-catalog-copy h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.45;
}

.ws-products-page .ws-catalog-copy p {
  margin-bottom: 0;
}

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

.ws-products-page .ws-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 48px;
  padding: 0.85em 1.45em;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #333333;
  color: #ffffff !important;
  font: 600 16px/1 var(--ws-font-body);
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 240ms, color 240ms, transform 240ms;
}

.ws-products-page .ws-button:hover {
  border-color: currentColor;
  background: #ffffff;
  color: #333333 !important;
  transform: translateY(-1px);
}

.ws-products-page .ws-button--outline {
  border-color: currentColor;
  background: transparent;
  color: #333333 !important;
}

.ws-products-page .ws-button--outline:hover {
  background: #333333;
  color: #ffffff !important;
}

@media (min-width: 769px) {
  .ws-products-page {
    --ws-page-padding: 40px;
  }
}

@media (min-width: 1025px) {
  .ws-products-page {
    --ws-page-padding: 64px;
  }
}

@media (max-width: 960px) {
  .ws-products-page {
    --ws-section-space: 76px;
  }

  .ws-products-page .ws-catalog-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .ws-products-page {
    --ws-section-space: 64px;
  }

  .ws-products-page .ws-catalog-card {
    padding: 22px;
    gap: 22px;
  }

  .ws-products-page .ws-button-row {
    align-items: stretch;
  }

  .ws-products-page .ws-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-products-page *,
  .ws-products-page *::before,
  .ws-products-page *::after {
    transition-duration: 0.01ms !important;
  }
}
