:root {
  --paper: #fff9f3;
  --ink: #35211b;
  --muted: #6d5148;
  --green: #a74629;
  --line: #efdfd2;
  --card: #fffefa;
  --soft: #f8e8dd;
  font-size: 18px;
}
.shell { width: min(1250px, calc(100% - 64px)); }
.top { background: #fffdf9; }
.top-inner { height: 80px; gap: 22px; }
.brand { font-size: 24px; }
.brand img { width: 48px; height: 48px; border-radius: 11px; }
.brand small { font-size: 13px; letter-spacing: .04em; }
.top nav { gap: 8px; }
.top nav a { font-size: 17px; padding: 10px 16px; }
.top-contact { color: var(--green); font-size: 16px; font-weight: 700; white-space: nowrap; }
main { padding: 32px 0 48px; }
.btn { min-height: 46px; padding: 10px 16px; font-size: 16px; line-height: 1.4; }
.heading { margin: 38px 0 18px; }
.heading h2 { font-size: 30px; line-height: 1.3; }
.pagehead { margin-bottom: 24px; }
.pagehead h1 { font-size: clamp(32px, 4vw, 43px); line-height: 1.2; }
.heading p, .pagehead p, .muted, .feature p, .course p, .notice { font-size: 16px; }
.course h2, .feature h3 { font-size: 21px; }
.panel { padding: 24px; }
.panel h2 { font-size: 24px; line-height: 1.35; }
.badge, .kicker { font-size: 14px; }

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  min-height: 356px;
  overflow: hidden;
  border: 1px solid #f1dcc7;
  border-radius: 26px;
  background: radial-gradient(ellipse at 79% 46%, #ffe3c5, transparent 58%), #fbefe2;
}
.store-hero-copy { padding: 36px 0 36px clamp(26px, 4vw, 60px); }
.store-hero h1 { font-size: clamp(48px, 5.2vw, 72px); letter-spacing: -.035em; margin: 0; line-height: 1.12; }
.hero-slogan { font-size: clamp(25px, 2.6vw, 35px); margin: 7px 0 12px; font-weight: 780; color: var(--green); }
.hero-description { font-size: 19px; margin: 0 0 22px; color: var(--muted); }
.hero-illustration { align-self: end; }
.hero-illustration img { width: 100%; height: clamp(294px, 30vw, 352px); display: block; object-fit: contain; object-position: bottom; }

.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.product-card:hover { border-color: #c88165; box-shadow: 0 8px 22px #62351a12; }
.product-card:focus-visible { outline-offset: 2px; }
.product-art { display: grid; place-items: center; background: #f5eee7; aspect-ratio: 1.32; overflow: hidden; }
.product-art img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; }
.product-info { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 15px 16px 16px; }
.product-kind { color: var(--green); font-size: 14px; font-weight: 700; }
.product-info h3 { margin: 5px 0 6px; line-height: 1.35; font-size: 20px; overflow-wrap: anywhere; }
.product-info p { color: var(--muted); margin: 0 0 15px; font-size: 16px; line-height: 1.55; }
.product-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; margin-top: auto; color: var(--green); }
.product-foot strong { font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-foot small { font-size: 14px; font-weight: 500; }
.store-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.store-extra a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.store-extra span { color: var(--muted); font-size: 16px; }
.store-filter, .account-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.store-filter a[aria-current] { background: var(--green); color: white; }
.back-link { display: inline-block; color: var(--green); margin-bottom: 14px; font-weight: 700; }
.store-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 330px); align-items: start; gap: 24px; }
.product-overview { display: grid; grid-template-columns: minmax(0, 195px) minmax(0, 1fr); gap: 24px; align-items: start; }
.product-overview h1 { margin: 4px 0 8px; font-size: clamp(28px, 3vw, 38px); line-height: 1.25; overflow-wrap: anywhere; }
.overview-image img { width: 100%; border-radius: 11px; display: block; }
.product-overview ul { padding-left: 1.2em; margin-bottom: 0; font-size: 16px; }
.choose-product { position: sticky; top: 16px; }
.choose-product label { display: grid; gap: 5px; margin: 12px 0; }
.choose-product select { width: 100%; min-width: 0; min-height: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.detail-price { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; }
.detail-price strong { color: var(--green); font-size: 28px; }
.choose-product .btn { width: 100%; }
.detail-gallery summary { cursor: pointer; font-weight: 700; }
.detail-gallery img { display: block; width: 100%; margin-top: 12px; }
.contact-card { width: min(100%, 400px); text-align: center; }
.contact-card img, #store-dialog img { width: 175px; max-width: 100%; }
#store-dialog { width: min(435px, calc(100% - 30px)); text-align: center; border: 1px solid var(--line); border-radius: 19px; padding: 24px; background: var(--card); color: var(--ink); }
#store-dialog::backdrop { background: #2f1d18a3; }
#store-dialog h2 { margin: 0 0 12px; }
#store-dialog .actions { justify-content: center; }
.dialog-close { position: absolute; top: 9px; right: 9px; border: 0; background: transparent; font-size: 26px; line-height: 1; }
.inquiry { background: var(--soft); padding: 10px; border-radius: 10px; }
.footer a { color: var(--green); }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 20px; padding: 18px 0 24px; font-size: 14px; }
.footer > a:last-child { justify-self: end; }
#toast { z-index: 6; }

@media (max-width: 1050px) {
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-overview { grid-template-columns: minmax(0, 135px) minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 850px) {
  .store-detail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .store-detail-main { display: contents; }
  .product-overview { order: -2; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); }
  .choose-product { order: -1; position: static; }
}
@media (max-width: 760px) {
  :root { font-size: 17px; }
  .shell { width: calc(100% - 32px); }
  .top-inner { height: 68px; }
  .brand { font-size: 21px; }
  .brand img { width: 42px; height: 42px; }
  .top nav { z-index: 5; gap: 4px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: #fffdf9; }
  .top nav a { flex: 1; text-align: center; font-size: 16px; padding: 10px 5px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  main { padding: 18px 0 32px; }
  .heading { margin: 28px 0 14px; }
  .heading h2 { font-size: 26px; }
  .panel { padding: 18px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .store-hero { min-height: 284px; }
  .store-hero-copy { padding: 24px 0 24px 20px; }
  .store-hero h1 { font-size: clamp(34px, 7vw, 53px); }
  .hero-description { font-size: 16px; }
  .hero-illustration img { height: clamp(195px, 44vw, 286px); }
  .footer { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer > span { flex-basis: 100%; }
  #toast { bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .store-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
    min-height: auto;
    border-radius: 19px;
  }
  .store-hero-copy { display: contents; }
  .hero-intro { padding: 20px 0 9px 15px; }
  .hero-slogan { font-size: 23px; margin: 7px 0; }
  .hero-description { margin: 0; line-height: 1.55; }
  .hero-description br { display: none; }
  .store-hero .actions { grid-column: 1 / -1; grid-row: 2; gap: 8px; padding: 9px 14px 15px; }
  .store-hero .actions .btn { flex: 1; padding-inline: 6px; }
  .hero-illustration { grid-column: 2; grid-row: 1; }
  .hero-illustration img { height: clamp(150px, 40vw, 190px); }
  .product-info { padding: 11px 10px 12px; }
  .product-info h3 { font-size: 18px; }
  .product-info p { font-size: 15px; }
  .product-foot strong { font-size: 18px; }
  .product-foot small { font-size: 13px; }
  .store-extra { grid-template-columns: 1fr; gap: 10px; }
  .product-overview { grid-template-columns: minmax(0, 1fr); }
  .overview-image { width: min(62%, 180px); }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .top-contact { font-size: 15px; }
  .product-foot > span { display: none; }
}
