:root {
  --ink: #102f36;
  --ink-soft: #38545b;
  --teal: #239bb4;
  --teal-dark: #087d94;
  --mist: #eef5f4;
  --sand: #f4f0e6;
  --line: #d8e2e0;
  --white: #fff;
  --danger: #a93232;
  --shadow: 0 18px 55px rgba(16, 47, 54, .12);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfdfc; font-family: "Noto Sans JP", system-ui, sans-serif; line-height: 1.65; }
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; transform: translateY(-150%); padding: 10px 16px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { transform: none; }

.utility-bar { color: #fff; background: var(--ink); font-size: 12px; letter-spacing: .08em; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 38px; }
.utility-inner span { position: relative; }
.utility-inner span + span::before { content: ""; width: 3px; height: 3px; position: absolute; left: -20px; top: 50%; background: #70c5d5; border-radius: 50%; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 253, 252, .94); border-bottom: 1px solid rgba(216, 226, 224, .8); backdrop-filter: blur(16px); }
.header-inner { min-height: 88px; display: grid; grid-template-columns: 310px 1fr auto; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 68px; height: 58px; object-fit: contain; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-size: 15px; letter-spacing: .04em; }
.brand small { margin-top: 5px; color: var(--teal-dark); font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .16em; }
.main-nav { display: flex; justify-content: center; gap: clamp(18px, 3vw, 38px); }
.main-nav a { position: relative; font-size: 14px; font-weight: 600; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--teal); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-link { min-width: 46px; text-align: center; font-size: 13px; font-weight: 700; text-decoration: none; }
.cart-button { min-width: 76px; height: 43px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; font-family: "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.cart-button b { min-width: 21px; height: 21px; display: grid; place-items: center; color: var(--ink); background: #fff; border-radius: 50%; font-size: 11px; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.hero { padding-block: clamp(28px, 5vw, 72px) 46px; display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: clamp(30px, 5vw, 78px); }
.hero-visual { position: relative; overflow: hidden; min-height: 0; aspect-ratio: 2.1 / 1; background: var(--ink); border-radius: 0 72px 0 72px; box-shadow: var(--shadow); }
.hero-visual::after { content: "JAPAN"; position: absolute; right: 24px; bottom: -17px; color: rgba(255,255,255,.17); font: 700 94px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.hero-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.eyebrow { margin: 0 0 13px; color: var(--teal-dark); font: 700 14px/1.3 "Barlow Condensed", sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.hero-copy h1 { max-width: 600px; margin: 0; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.15; letter-spacing: -.035em; }
.hero-copy > p:not(.eyebrow) { max-width: 550px; margin: 24px 0 0; color: var(--ink-soft); font-size: 16px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--teal-dark); box-shadow: 0 12px 26px rgba(8, 125, 148, .22); }
.button.primary:hover { background: var(--ink); }
.button.secondary { background: #fff; border-color: var(--line); }
.button.full { width: 100%; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }

.trust-strip { color: #fff; background: var(--ink); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { min-height: 132px; display: grid; grid-template-columns: 46px 1fr; align-content: center; column-gap: 18px; padding: 22px 38px; border-left: 1px solid rgba(255,255,255,.13); }
.trust-grid > div:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.trust-grid strong { grid-row: span 2; color: #67c6d8; font: 700 36px/1 "Barlow Condensed", sans-serif; }
.trust-grid span { font-weight: 700; }
.trust-grid small { color: rgba(255,255,255,.68); }

.catalog-section { padding-block: clamp(70px, 9vw, 120px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 470px); align-items: end; gap: 44px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.035em; }
.section-heading > p { margin: 0; color: var(--ink-soft); }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 260px 180px; align-items: center; gap: 14px; margin-bottom: 28px; padding: 14px; background: var(--mist); border-radius: 16px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.category-tabs button { padding: 9px 14px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; }
.category-tabs button.active { color: #fff; background: var(--ink); }
.search-field { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.catalog-toolbar select { height: 44px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.product-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card[hidden] { display: none; }
.product-image { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; padding: 0; background: #f5f5f2; border: 0; cursor: pointer; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.sold-out .product-image img { filter: grayscale(.3); opacity: .72; }
.sold-out-badge { position: absolute; top: 13px; left: 13px; padding: 6px 10px; color: #fff; background: var(--danger); border-radius: 999px; font-size: 11px; font-weight: 700; }
.product-info { padding: 18px; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--teal-dark); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.product-meta code { color: #6b7c80; font-family: inherit; }
.product-info h3 { min-height: 54px; margin: 9px 0 7px; font-size: 15px; line-height: 1.55; }
.product-info h3 button { padding: 0; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; font-weight: inherit; }
.product-summary { min-height: 68px; margin: 0; color: #607478; font-size: 12px; }
.product-buy-row { margin-top: 16px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.price { margin: 0; font-size: 20px; font-weight: 700; }
.price small { margin-left: 3px; color: #758488; font-size: 10px; font-weight: 500; }
.text-button { padding: 0; color: var(--teal-dark); background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.empty-state { padding: 54px; text-align: center; color: var(--ink-soft); background: var(--mist); border-radius: 16px; }

.story-section { padding-block: 82px; background: var(--sand); }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(36px, 6vw, 86px); }
.story-image { overflow: hidden; min-height: 330px; border-radius: 48px 0 48px 0; background: #d8dfd7; }
.story-image img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.story-copy h2 { margin: 0 0 22px; font-size: clamp(32px, 4vw, 52px); line-height: 1.2; }
.story-copy p:not(.eyebrow) { color: var(--ink-soft); }
.story-copy a { display: inline-block; margin-top: 14px; color: var(--teal-dark); font-weight: 700; text-decoration: none; }

.guide-section { padding-block: 90px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.guide-card { min-height: 320px; padding: clamp(28px, 4vw, 54px); background: var(--mist); border-radius: var(--radius); }
.guide-card > span, .line-card div > span { color: var(--teal-dark); font: 700 13px "Barlow Condensed", sans-serif; letter-spacing: .16em; }
.guide-card h2 { margin: 12px 0 18px; font-size: clamp(27px, 3vw, 40px); line-height: 1.25; }
.guide-card p { color: var(--ink-soft); }
.line-card { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 34px; background: var(--ink); color: #fff; }
.line-card img { width: 190px; aspect-ratio: 1; object-fit: cover; padding: 8px; background: #fff; border-radius: 12px; }
.line-card p { color: rgba(255,255,255,.75); }

.site-footer { color: rgba(255,255,255,.78); background: #071e24; }
.footer-grid { padding-block: 64px 40px; display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 72px; }
.footer-grid h2 { margin: 0 0 18px; color: #fff; font-size: 14px; }
.footer-grid a { display: block; margin: 8px 0; text-decoration: none; }
.footer-grid a:hover { color: #68c6d8; }
.footer-logo { width: 170px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .85; }
.footer-grid p { font-size: 13px; }
.copyright { padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

.backdrop { position: fixed; inset: 0; z-index: 80; visibility: hidden; opacity: 0; background: rgba(6, 23, 28, .5); backdrop-filter: blur(3px); transition: opacity .2s ease, visibility .2s ease; }
.backdrop.open { visibility: visible; opacity: 1; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(105%); background: #fff; box-shadow: -20px 0 55px rgba(0,0,0,.16); transition: transform .25s ease; }
.cart-drawer.open { transform: none; }
.drawer-heading { min-height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { margin: 0; font-size: 22px; }
.drawer-heading button, .dialog-close { width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 24px; }
.cart-lines { overflow-y: auto; padding: 18px 24px; }
.cart-empty { padding: 70px 10px; text-align: center; color: var(--ink-soft); }
.cart-line { display: grid; grid-template-columns: 82px 1fr auto; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 82px; height: 82px; object-fit: cover; border-radius: 9px; }
.cart-line h3 { margin: 0; font-size: 13px; line-height: 1.45; }
.cart-line p { margin: 5px 0; color: var(--ink-soft); font-size: 12px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty-control button { width: 28px; height: 28px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.qty-control span { min-width: 24px; text-align: center; font-size: 12px; }
.remove-line { align-self: start; padding: 3px; color: #7a8b8f; background: transparent; border: 0; cursor: pointer; }
.cart-footer { padding: 22px 24px 28px; border-top: 1px solid var(--line); }
.cart-footer > div { display: flex; justify-content: space-between; margin-bottom: 7px; }
.cart-footer > p { margin: 0 0 16px; color: var(--danger); font-size: 11px; }

dialog { width: min(980px, calc(100% - 30px)); max-height: calc(100dvh - 30px); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.24); }
dialog::backdrop { background: rgba(6, 23, 28, .62); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.product-dialog-grid { display: grid; grid-template-columns: 1.08fr .92fr; }
.product-dialog-grid > div:first-child { padding: 30px; background: #f3f5f1; }
.dialog-main-image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.dialog-thumbnails { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; }
.dialog-thumbnails button { flex: 0 0 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; }
.dialog-thumbnails button.active { border-color: var(--teal-dark); }
.dialog-thumbnails img { width: 72px; height: 72px; object-fit: cover; }
.dialog-copy { padding: clamp(34px, 6vw, 72px); }
.dialog-copy h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.35; }
.dialog-price { margin: 18px 0; font-size: 25px; font-weight: 700; }
.dialog-copy > p:not(.eyebrow):not(.dialog-price) { color: var(--ink-soft); }
.stock-line { font-size: 13px; font-weight: 700; }
.dialog-copy label { display: grid; gap: 7px; margin: 16px 0; font-size: 12px; font-weight: 700; }
.dialog-copy select, .dialog-copy input, .form-grid input, .form-grid textarea { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #bdccca; border-radius: 9px; outline: none; }
.dialog-copy select:focus, .dialog-copy input:focus, .form-grid input:focus, .form-grid textarea:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(35, 155, 180, .12); }
.rakuten-link { display: inline-block; margin-top: 18px; color: var(--teal-dark); font-size: 12px; font-weight: 700; text-decoration: none; }

.checkout-dialog { width: min(760px, calc(100% - 30px)); padding: clamp(28px, 5vw, 60px); }
.checkout-heading { margin-bottom: 25px; }
.checkout-heading h2 { margin: 0 0 9px; font-size: clamp(28px, 4vw, 42px); }
.checkout-heading > p:last-child { margin: 0; color: var(--danger); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid textarea { resize: vertical; }
.agree { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0; font-size: 12px; }
.agree input { margin-top: 4px; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.checkout-message { min-height: 24px; margin: 8px 0; color: var(--danger); font-size: 13px; }
.checkout-message.success { color: #087a55; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 140; transform: translate(-50%, 30px); visibility: hidden; opacity: 0; padding: 12px 18px; color: #fff; background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); font-size: 13px; transition: .2s ease; }
.toast.show { visibility: visible; opacity: 1; transform: translate(-50%, 0); }

.legal-header { border-bottom: 1px solid var(--line); background: #fff; }
.legal-header .shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.legal-header a { color: var(--teal-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-page { max-width: 900px; padding-block: 72px 100px; }
.legal-page h1 { margin: 0 0 24px; font-size: clamp(32px, 5vw, 52px); line-height: 1.25; }
.legal-page h2 { margin: 42px 0 10px; font-size: 22px; }
.legal-page > p { color: var(--ink-soft); }
.preview-alert { padding: 18px 20px; color: #7b4a00 !important; background: #fff4dc; border: 1px solid #e8cf9b; border-radius: 12px; }
.legal-list { margin: 38px 0 0; border-top: 1px solid var(--line); }
.legal-list > div { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.legal-list dt, .legal-list dd { margin: 0; padding: 18px 16px; }
.legal-list dt { font-weight: 700; background: var(--mist); }

@media (max-width: 1040px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: block; grid-column: 2; }
  .header-actions { grid-column: 3; }
  .main-nav { position: absolute; top: 88px; left: 0; right: 0; display: none; padding: 22px 30px 28px; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 36px rgba(16,47,54,.1); }
  .main-nav.open { display: flex; }
  .catalog-toolbar { grid-template-columns: 1fr 220px; }
  .category-tabs { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 1200px); }
  .utility-inner { justify-content: flex-start; overflow-x: auto; gap: 28px; white-space: nowrap; }
  .header-inner { min-height: 74px; }
  .main-nav { top: 74px; }
  .brand img { width: 54px; height: 46px; }
  .brand span { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-visual { min-height: 0; border-radius: 0 42px 0 42px; }
  .hero-visual img { min-height: 0; }
  .hero-visual::after { font-size: 62px; }
  .hero-copy h1 { font-size: clamp(36px, 11vw, 55px); }
  .trust-grid { grid-template-columns: 1fr; padding-block: 12px; }
  .trust-grid > div, .trust-grid > div:last-child { min-height: 96px; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .category-tabs { grid-column: auto; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .category-tabs button { white-space: nowrap; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .story-grid, .guide-section, .product-dialog-grid { grid-template-columns: 1fr; }
  .story-image, .story-image img { min-height: 250px; }
  .line-card { grid-template-columns: 130px 1fr; gap: 20px; }
  .line-card img { width: 130px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .product-dialog-grid > div:first-child { padding: 18px; }
  .dialog-copy { padding: 28px 22px 34px; }
}

@media (max-width: 520px) {
  .utility-inner { font-size: 10px; }
  .header-actions { gap: 4px; }
  .language-link { min-width: 34px; }
  .cart-button { min-width: 62px; }
  .hero-copy h1 { font-size: clamp(36px, 10.2vw, 40px); }
  .hero-actions .button { width: 100%; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-info { padding: 13px; }
  .product-info h3 { min-height: 66px; font-size: 13px; }
  .product-summary { display: none; }
  .product-buy-row { display: block; }
  .text-button { margin-top: 8px; }
  .price { font-size: 17px; }
  .line-card { grid-template-columns: 1fr; }
  .line-card img { width: 150px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); }
  .checkout-dialog { padding: 50px 20px 24px; }
  .legal-list > div { grid-template-columns: 1fr; }
  .legal-list dt { padding-bottom: 8px; }
  .legal-list dd { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
