/* Opt-in genre pages: existing custom pages keep their existing styles. */
.ec-theme-page,
.ec-collection-hero {
  --genre-ink: #292923;
  --genre-muted: #66655e;
  --genre-paper: #f5f2ec;
  --genre-accent: #393b30;
  --genre-line: #dedbd3;
  --genre-display: "Noto Sans JP", sans-serif;
  color: var(--genre-ink);
}
[data-genre="multi-brand"] { --genre-paper: #f1f0f7; --genre-accent: #4e416b; --genre-ink: #312b40; }
[data-genre="cosmetic"] { --genre-paper: #f9eee8; --genre-accent: #984b3f; --genre-ink: #503b33; --genre-display: "Shippori Mincho", "Yu Mincho", serif; }
[data-genre="grocery"] { --genre-paper: #eff2e6; --genre-accent: #38583b; --genre-ink: #28452d; }
[data-genre="book-store"] { --genre-paper: #f3efe3; --genre-accent: #314c63; --genre-ink: #2e3c43; --genre-display: "Shippori Mincho", "Yu Mincho", serif; }
[data-genre="furniture"] { --genre-paper: #f0ece3; --genre-accent: #63513f; --genre-ink: #413d33; --genre-display: "Shippori Mincho", "Yu Mincho", serif; }
[data-genre="electronic"] { --genre-paper: #eef2f6; --genre-accent: #244fa0; --genre-ink: #142d43; }
[data-genre="sneaker"] { --genre-paper: #eaf0d4; --genre-accent: #293622; --genre-ink: #253020; }
[data-genre="jewerly"] { --genre-paper: #f5f0e8; --genre-accent: #7d6447; --genre-ink: #453c32; --genre-display: "Shippori Mincho", "Yu Mincho", serif; }
[data-genre="baby"] { --genre-paper: #fbf0e7; --genre-accent: #985d49; --genre-ink: #594437; }
[data-genre="stay-retreat"] { --genre-paper: #f4f1e8; --genre-accent: #62533b; --genre-ink: #353e31; --genre-display: "Shippori Mincho", "Yu Mincho", serif; }
[data-genre="experience-days"] { --genre-paper: #edf5f1; --genre-accent: #175a4e; --genre-ink: #24463c; }
.ec-collection-hero { padding: 20px 24px 0; }
.ec-collection-hero__frame { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 1520px; min-height: 560px; margin: 0 auto; background: var(--genre-paper); overflow: hidden; }
.ec-collection-hero__copy { align-self: center; padding: clamp(40px, 5.4vw, 84px); padding-right: 28px; position: relative; z-index: 1; }
.ec-collection-hero__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; color: var(--genre-accent); font-size: 11px; font-weight: 600; line-height: 1.8; letter-spacing: .19em; }
.ec-collection-hero__eyebrow::before { content: ""; display: block; flex: 0 0 26px; height: 1px; background: currentColor; }
.ec-collection-hero h1 { margin: 0; color: inherit; font-family: var(--genre-display); font-size: clamp(34px, 3.35vw, 55px); font-weight: 500; line-height: 1.5; letter-spacing: .035em; white-space: pre-line; word-break: normal; overflow-wrap: anywhere; text-wrap: balance; }
.ec-collection-hero__description { max-width: 370px; margin: 24px 0 32px; color: var(--genre-muted); font-size: 14px; line-height: 2.05; text-wrap: pretty; }
.ec-collection-hero__button { display: inline-flex; justify-content: space-between; align-items: center; gap: 36px; min-height: 52px; padding: 15px 22px; background: var(--genre-accent); color: #fff; border: 1px solid var(--genre-accent); font-size: 13px; line-height: 1.6; transition: opacity .2s; }
.ec-collection-hero__button:hover { color: #fff; opacity: .85; }
.ec-collection-hero__button span { font-size: 20px; font-weight: 400; }
.ec-collection-hero__visual { position: relative; min-width: 0; min-height: 0; margin: 0; }
.ec-collection-hero__image { position: absolute; inset: 0; overflow: hidden; }
.ec-collection-hero__image picture, .ec-collection-hero__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ec-collection-hero__visual[data-position="right"] img { object-position: 82% center; }
.ec-collection-hero__visual[data-position="left"] img { object-position: 18% center; }
.ec-collection-hero figcaption { position: absolute; left: 28px; bottom: 24px; max-width: calc(100% - 56px); display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 16px; background: rgb(255 255 255 / 92%); color: #343832; font-size: 11px; line-height: 1.8; }
.ec-collection-hero[data-genre="cosmetic"] .ec-collection-hero__visual { margin: 28px 28px 28px 0; }
.ec-collection-hero[data-genre="cosmetic"] .ec-collection-hero__image { border-radius: 180px 180px 8px 8px; }
.ec-collection-hero[data-genre="cosmetic"] img { object-position: center; }
.ec-collection-hero[data-genre="grocery"] .ec-collection-hero__image { margin: 32px; border-radius: 50% 50% 8px 8px; }
.ec-collection-hero[data-genre="electronic"] .ec-collection-hero__copy { background: #142d43; color: #fff; align-self: stretch; display: flex; flex-direction: column; align-items: start; justify-content: center; }
.ec-collection-hero[data-genre="electronic"] .ec-collection-hero__eyebrow { color: #b6d3ec; }
.ec-collection-hero[data-genre="electronic"] .ec-collection-hero__description { color: #d0dde7; }
.ec-collection-hero[data-genre="electronic"] .ec-collection-hero__button { background: #fff; border-color: #fff; color: #142d43; }
.ec-collection-hero[data-genre="sneaker"] h1 { font-weight: 700; letter-spacing: -.02em; }
.ec-collection-hero[data-genre="baby"] .ec-collection-hero__frame { border-radius: 12px 12px 72px 12px; }
.ec-collection-hero--wide .ec-collection-hero__frame { position: relative; grid-template-columns: 1fr; min-height: 640px; isolation: isolate; }
.ec-collection-hero--wide .ec-collection-hero__visual { position: absolute; inset: 0; z-index: -1; }
.ec-collection-hero--wide .ec-collection-hero__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 25 19 / 68%), transparent 85%); }
.ec-collection-hero--wide .ec-collection-hero__copy { max-width: 680px; color: #fff; }
.ec-collection-hero--wide .ec-collection-hero__eyebrow, .ec-collection-hero--wide .ec-collection-hero__description { color: #fff; }
.ec-collection-hero--wide .ec-collection-hero__button { background: #fff; color: #363e33; border-color: #fff; }
.ec-collection-hero--wide figcaption { left: auto; right: 24px; }
.ec-collection-hero--inset .ec-collection-hero__frame { background: #282d29; color: #fff; padding: 32px; }
.ec-collection-hero--inset .ec-collection-hero__eyebrow { color: #ddc29a; }
.ec-collection-hero--inset .ec-collection-hero__description { color: #e0ddd7; }
.ec-collection-hero--inset .ec-collection-hero__button { background: #e8d8bc; border-color: #e8d8bc; color: #37342c; }
.ec-collection-hero--inset .ec-collection-hero__image { border-radius: 240px 240px 0 0; }
.ec-theme-page .ec-theme-section { padding-top: clamp(44px, 5vw, 76px); padding-bottom: clamp(36px, 4vw, 64px); }
.ec-theme-page .ec-theme-section .flat-title { text-align: left; gap: 12px; margin-bottom: 32px; }
.ec-theme-page .ec-theme-section .flat-title .title, .ec-theme-page .ec-theme-story h2 { font-family: var(--genre-display); color: var(--genre-ink); line-height: 1.6; letter-spacing: .025em; }
.ec-theme-page .ec-theme-section .sub-title { color: var(--genre-muted); font-size: 14px; line-height: 1.9; }
.ec-theme-page .ec-theme-products { background: var(--genre-paper); }
.ec-theme-page .ec-theme-products .card-product-wrapper { border-radius: 6px; }
.ec-theme-page .ec-theme-products .card-product-info { padding-top: 16px; gap: 8px; }
.ec-theme-page .ec-theme-products .card-product-info .title { font-size: 14px; line-height: 1.7; }
.ec-theme-page .ec-theme-products .price { color: var(--genre-ink); font-weight: 500; }
.ec-theme-page .ec-theme-story picture { display: block; }
.ec-theme-page .ec-theme-story picture img { width: 100%; max-height: 580px; object-fit: cover; }
.ec-theme-page .ec-theme-story p { color: var(--genre-muted); line-height: 2; }
.ec-theme-page .ec-theme-guide { border-top: 1px solid var(--genre-line); background: var(--genre-paper); }
.ec-theme-page .ec-theme-guide .tf-icon-box { text-align: left; }
.ec-theme-page .ec-theme-guide .title { color: var(--genre-ink); font-size: 16px; }
.ec-theme-page .ec-theme-guide p { color: var(--genre-muted); line-height: 1.9; }
.ec-theme-page :focus-visible, .ec-collection-hero :focus-visible { outline: 3px solid var(--genre-accent); outline-offset: 5px; }
.ec-collection-hero--wide :focus-visible, .ec-collection-hero--inset :focus-visible, .ec-collection-hero[data-genre="electronic"] :focus-visible { outline-color: #e8d8bc; }
@media (max-width: 991px) {
  .ec-collection-hero { padding: 12px 16px 0; }
  .ec-collection-hero__frame { min-height: 470px; }
  .ec-collection-hero__copy { padding: 36px 24px; }
  .ec-collection-hero h1 { font-size: 34px; }
  .ec-collection-hero__description { font-size: 13px; }
  .ec-collection-hero__button { gap: 18px; padding: 13px 16px; }
}
@media (max-width: 767px) {
  .ec-collection-hero { padding: 8px 12px 0; }
  .ec-collection-hero__frame { display: flex; flex-direction: column; min-height: 0; }
  .ec-collection-hero__visual { order: -1; width: 100%; height: 270px; flex: 0 0 auto; }
  .ec-collection-hero__copy { align-self: stretch; padding: 28px 24px 32px; }
  .ec-collection-hero__eyebrow { margin-bottom: 16px; font-size: 10px; letter-spacing: .15em; }
  .ec-collection-hero h1 { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.5; }
  .ec-collection-hero__description { margin: 16px 0 22px; max-width: none; }
  .ec-collection-hero__button { font-size: 13px; min-height: 48px; }
  .ec-collection-hero figcaption { left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 8px 11px; font-size: 10px; }
  .ec-collection-hero[data-genre="cosmetic"] .ec-collection-hero__visual { width: auto; margin: 20px 20px 0; }
  .ec-collection-hero[data-genre="cosmetic"] .ec-collection-hero__image { border-radius: 120px 120px 4px 4px; }
  .ec-collection-hero[data-genre="grocery"] .ec-collection-hero__image { margin: 16px 16px 0; border-radius: 100px 100px 4px 4px; }
  .ec-collection-hero[data-genre="baby"] .ec-collection-hero__frame { border-radius: 8px 8px 40px 8px; }
  .ec-collection-hero--wide .ec-collection-hero__frame { min-height: 560px; justify-content: end; }
  .ec-collection-hero--wide .ec-collection-hero__visual { height: 100%; }
  .ec-collection-hero--wide .ec-collection-hero__image::after { background: linear-gradient(0deg, rgb(18 25 19 / 85%), rgb(18 25 19 / 5%) 100%); }
  .ec-collection-hero--wide .ec-collection-hero__copy { padding-bottom: 42px; }
  .ec-collection-hero--wide figcaption { display: none; }
  .ec-collection-hero--inset .ec-collection-hero__frame { padding: 20px 20px 0; }
  .ec-collection-hero--inset .ec-collection-hero__copy { padding-left: 4px; padding-right: 4px; }
  .ec-collection-hero--inset .ec-collection-hero__image { border-radius: 150px 150px 0 0; }
  .ec-theme-page .ec-theme-section .flat-title { margin-bottom: 24px; }
  .ec-theme-page .ec-theme-products .card-product-info .title { font-size: 13px; }
  .ec-theme-page .ec-theme-story picture img { max-height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-collection-hero__button { transition: none; }
}
