/* ============================================================
   GARTERIOR オンラインストア — design tokens
   参照: 幻冬舎コーポレートサイトの編集的レイアウト
   （オーバーサイズタイポ／写真を主役にした余白／最小限の枠線）
   ブランドカラー #F37021 を軸に、モスグリーン・アイボリーで統一。
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
  --bg: #ffffff;
  --bg-panel: #ffffff;
  --ink: #111820;
  --ink-soft: #454b52;
  --paper: #ffffff;
  --paper-deep: #f5f5f5;
  --line: #ebebeb;
  --line-dark: #ebebeb;
  --muted: #8b929a;
  --ink-on-light: #111820;
  --muted-on-light: #6b7178;
  --orange: #f37021;
  --orange-deep: #cf5814;
  --orange-text: #f37021;
  --moss: #6b7a4a;
  --moss-deep: #4c5a34;
  --gold: #f4c215;
  --silver: #bfbfbf;
  --bronze: #e89949;
  --ghost: #e4e9d9;
  --paper-moss: #f3f5ee;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 15.5px;
}
h1, h2, h3 { font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px 96px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Site header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px; background: var(--bg-panel); border-bottom: 1px solid var(--line-dark);
}
.site-header .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.site-header .brand img { height: 22px; }
.site-header .brand span { font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 16px; letter-spacing: .1em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 30px; }
.site-nav a {
  padding: 4px 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--orange-text); border-bottom-color: var(--orange); }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 12px; color: var(--muted); margin: 32px 0 20px; letter-spacing: .03em; }
.crumb a { text-decoration: none; color: var(--muted); font-weight: 700; }
.crumb a:hover { color: var(--orange-text); }

/* ---------- Hero (clean, whitespace-led, photography-forward) ---------- */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero-ghost { display: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(160px,.55fr); gap: 48px; align-items: end; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--orange-text);
  font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--orange); }
.hero h1 { margin: 0; font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 40px; line-height: 1.5; letter-spacing: .01em; color: var(--ink); }
.lead { margin: 22px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.9; max-width: 52ch; }
.hero-logo { width: 100%; max-width: 140px; justify-self: end; align-self: end; opacity: .85; }

.notice {
  margin: 30px 0 6px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--moss-deep);
  background: var(--paper-moss); color: var(--muted-on-light); font-size: 13.5px; position: relative; z-index: 1;
}

/* ---------- Category top-page tiles (edge-to-edge, photo-forward) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; margin-top: 64px; }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.tile .tile-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-moss); }
.tile .tile-img-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(32,28,20,0) 68%, rgba(32,28,20,.22) 100%);
}
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.03); }
.tile-num { position: absolute; left: 14px; bottom: 12px; color: #fff; font-family: "Lato", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.tile:nth-child(1) .tile-num { color: var(--gold); }
.tile:nth-child(2) .tile-num { color: var(--silver); }
.tile:nth-child(3) .tile-num { color: var(--bronze); }
.tile-body { padding: 20px 2px 0; margin-top: 0; }
.tile-body .cat { margin: 0 0 8px; color: var(--orange-text); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.tile-body h3 { margin: 0 0 10px; font-size: 19px; }
.tile-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tile-arrow { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--orange-text); }

/* ---------- Section ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 14px; }
.section-head h2 { margin: 0; font-size: 26px; }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--orange-text); white-space: nowrap; }
.section-intro { margin: 0 0 36px; color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 66ch; }

/* ---------- Product cards (flat, photo-led, minimal chrome) ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.products.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.pcard img { width: 100%; height: 210px; object-fit: cover; background: var(--paper-moss); }
.pcard-body { display: flex; flex: 1; flex-direction: column; padding: 18px 0 0; }
.pcard h3 { margin: 0 0 10px; font-size: 19px; }
.pcard .desc { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; flex: 1; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.price strong { font-size: 20px; color: var(--orange-text); font-family: "Lato", "Zen Kaku Gothic New", sans-serif; font-weight: 800; }
.pricenote { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 20px; color: #fff !important; background: var(--orange);
  text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-align: center; margin-top: auto; border: 1px solid var(--orange);
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn.green { background: var(--moss); border-color: var(--moss); color: #fff !important; }
.btn.green:hover { background: var(--moss-deep); border-color: var(--moss-deep); }
.btn.outline { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }
.btn.outline:hover { background: var(--moss-deep); border-color: var(--moss-deep); color: #fff !important; }

/* ---------- Size table ---------- */
table.sizes { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0 0; }
table.sizes th, table.sizes td { border: 1px solid var(--line); padding: 10px; text-align: center; }
table.sizes th { background: var(--moss-deep); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .05em; }
details.sizewrap { margin-top: 10px; }
details.sizewrap summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--orange-text); }

/* ---------- Business card gallery: one large block per design, horizontal scroll for front/back ---------- */
.meishi-block { margin-bottom: 52px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.meishi-block:last-of-type { border-bottom: none; }
.meishi-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.meishi-block-head h3 { margin: 0; font-size: 22px; }
.meishi-hint { font-size: 11.5px; font-weight: 700; color: var(--orange-text); letter-spacing: .04em; }
.meishi-strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; -webkit-overflow-scrolling: touch;
}
.meishi-strip figure {
  flex: 0 0 min(560px, 84vw); margin: 0; scroll-snap-align: start;
}
.meishi-strip img { width: 100%; aspect-ratio: 91/55; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.meishi-strip figcaption { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--orange-text); letter-spacing: .05em; }

/* ---------- Lineup preview strip (header slider, small thumbnails) ---------- */
.lineup-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.lineup-strip figure { flex: 0 0 168px; margin: 0; scroll-snap-align: start; }
.lineup-strip img { width: 100%; aspect-ratio: 91/55; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.lineup-strip figcaption { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--orange-text); text-align: center; }
@media (max-width: 640px) { .lineup-strip figure { flex-basis: 130px; } }

/* ---------- Scroll-row: click arrows for horizontal galleries (desktop-friendly) ---------- */
.scroll-row { position: relative; }
.scroll-row .arrow-btn {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-on-light); z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); padding: 0;
}
.scroll-row .arrow-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.scroll-row .arrow-prev { left: -14px; }
.scroll-row .arrow-next { right: -14px; }
@media (max-width: 640px) {
  .scroll-row .arrow-btn { width: 32px; height: 32px; font-size: 15px; }
  .scroll-row .arrow-prev { left: -8px; }
  .scroll-row .arrow-next { right: -8px; }
}
@media (max-width: 600px) { .meishi-strip figure { flex-basis: 92vw; } }

/* ---------- Business card gallery (legacy small grid, unused but kept for safety) ---------- */
.card-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; margin-bottom: 32px; }
.card-gallery figure { margin: 0; }
.card-gallery img { width: 100%; aspect-ratio: 91/55; object-fit: cover; display: block; border: 1px solid var(--line); }
.card-gallery figcaption { font-size: 11px; font-weight: 700; padding: 8px 0 2px; color: var(--ink-soft); letter-spacing: .05em; }
.card-gallery details.card-back summary { cursor: pointer; font-size: 10.5px; font-weight: 700; color: var(--moss); padding: 2px 0; list-style: none; letter-spacing: .03em; }
.card-gallery details.card-back summary::-webkit-details-marker { display: none; }
.card-gallery details.card-back img { width: 100%; aspect-ratio: 91/55; object-fit: cover; display: block; margin-top: 6px; border: 1px solid var(--line); }

/* ---------- Detail page photo grid ---------- */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-bottom: 40px; }
.detail-hero .main-photo { width: 100%; object-fit: cover; aspect-ratio: 4/3; background: var(--paper-moss); }
.detail-info .eyebrow { margin-bottom: 16px; }
.detail-info h1 { margin: 0 0 14px; font-size: 32px; }
.spec-list { list-style: none; margin: 22px 0; padding: 0; font-size: 13.5px; }
.spec-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-list li b { min-width: 92px; color: var(--orange-text); font-weight: 700; font-size: 12px; letter-spacing: .03em; }
.specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 24px; margin: 18px 0 0; padding: 0; list-style: none; }
.specs-grid li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.specs-grid dt, .specs-grid b { display: block; margin-bottom: 2px; color: var(--orange-text); font-weight: 700; font-size: 11px; letter-spacing: .04em; }

/* ---------- Detail close-up gallery (restored, matches original store's spec-photo pattern) ---------- */
.detail-shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-top: 16px; }
.detail-shot { display: flex; gap: 16px; align-items: center; }
.detail-shot img { width: 92px; height: 92px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.detail-shot .t { margin: 0 0 5px; font-weight: 700; font-size: 13.5px; }
.detail-shot .d { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) { .detail-shot-grid { grid-template-columns: 1fr; } }

/* ---------- Plan badge (CAD) ---------- */
.plan-badge { display: inline-block; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--orange-text); }

/* ---------- Uniform detail extras ---------- */
.variant-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin: 16px 0 0; }
.variant-grid figure { margin: 0; }
.variant-grid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--paper-moss); display: block; padding: 16px; border: 1px solid var(--line); }
.variant-grid figcaption { padding: 10px 0 0; font-size: 12px; color: var(--muted); }
.variant-grid figcaption b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 3px; font-weight: 700; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.feature-chips li { font-size: 12.5px; color: var(--ink-soft); position: relative; padding-left: 14px; }
.feature-chips li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.price-compare { display: flex; align-items: baseline; gap: 14px; }
.price-compare .was { text-decoration: line-through; color: var(--muted); font-size: 13.5px; }
.price-compare .now { font-size: 30px; font-weight: 800; font-family: "Lato", "Zen Kaku Gothic New", sans-serif; color: var(--orange-text); }
@media (max-width: 600px) {
  .variant-grid { grid-template-columns: 1fr; }
}

/* ---------- Steps (application pages) ---------- */
.steps { counter-reset: step; list-style: none; margin: 26px 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; position: relative; padding: 18px 0 18px 50px; border-bottom: 1px solid var(--line); font-size: 14px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 16px;
  font-family: "Lato", "Zen Kaku Gothic New", sans-serif; font-weight: 800; font-size: 15px; color: var(--orange-text);
}

/* ---------- Uniform lineup / spotlight crop ---------- */
.uniform-lineup { width: 100%; margin-bottom: 4px; border: 1px solid var(--line); }
.spotlight {
  width: 100%; aspect-ratio: 3/4; background-image: url(uniform-new/garterior-uniform-01.webp);
  background-repeat: no-repeat; background-size: 400% auto; background-position: 0% 28%;
  border: 1px solid var(--line);
}
.spotlight.pos-1 { background-position: 0% 28%; }
.spotlight.pos-2 { background-position: 33.4% 28%; }
.spotlight.pos-3 { background-position: 66.7% 28%; }
.spotlight.pos-4 { background-position: 100% 28%; }
.spotlight-hero { width: 100%; aspect-ratio: 4/3; background-image: url(uniform-new/garterior-uniform-01.webp); background-repeat: no-repeat; background-size: 320% auto; background-position: 0% 22%; border: 1px solid var(--line); }
.spotlight-hero.pos-1 { background-position: 4% 22%; }
.spotlight-hero.pos-2 { background-position: 36% 22%; }
.spotlight-hero.pos-3 { background-position: 68% 22%; }
.spotlight-hero.pos-4 { background-position: 100% 22%; }

/* ---------- Wearing strip: horizontal scroll-snap gallery (mimics original Google Sites layout) ---------- */
.wearing-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.wearing-strip .wcard { flex: 0 0 min(360px, 76vw); scroll-snap-align: start; }
.wearing-strip .wshot { width: 100%; aspect-ratio: 4/3; background-repeat: no-repeat; background-size: 320% auto; background-color: var(--paper-moss); border: 1px solid var(--line); }
.wearing-strip .wshot.pos-1 { background-position: 4% 22%; }
.wearing-strip .wshot.pos-2 { background-position: 36% 22%; }
.wearing-strip .wshot.pos-3 { background-position: 68% 22%; }
.wearing-strip .wcap { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--orange-text); letter-spacing: .02em; }

/* ---------- ArchiLink rich detail sections ---------- */
.al-hero-img { width: 100%; max-width: 320px; margin: 0 auto; }
.al-diagram { width: min(560px, 100%); margin: 0 auto 8px; }
.al-price-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 34px 0; padding: 22px 26px; border: 1px solid var(--line); background: var(--paper-deep);
}
.al-price-panel p { margin: 0; color: var(--muted-on-light); font-size: 14px; max-width: 46ch; }
.al-price-panel strong { font-family: "Lato", "Zen Kaku Gothic New", sans-serif; font-weight: 800; font-size: 34px; color: var(--orange-deep); white-space: nowrap; }
.al-compare { display: grid; grid-template-columns: minmax(0,.9fr) 60px minmax(0,1.1fr); gap: 18px; align-items: stretch; margin: 30px 0; }
.al-compare-card { padding: 26px; border: 1px solid var(--line); color: var(--ink-on-light); }
.al-compare-card.now { background: #fff; }
.al-compare-card.rec { background: #fff; border-color: var(--orange); }
.al-compare-card h3 { margin: 0 0 14px; font-size: 18px; color: var(--ink-on-light); }
.al-compare-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted-on-light); }
.al-compare-row strong { color: var(--ink-on-light); }
.al-compare-total { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--ink-on-light); display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted-on-light); }
.al-compare-total strong { font-family: "Lato", "Zen Kaku Gothic New", sans-serif; font-weight: 800; font-size: 20px; color: var(--ink-on-light); }
.al-compare-card.rec .al-compare-total strong { color: var(--orange-deep); font-size: 24px; }
.al-arrow { align-self: center; text-align: center; font-size: 26px; color: var(--orange-text); }
.al-numcards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 40px 0; }
.al-numcards article { background: #fff; padding: 26px; color: var(--ink-on-light); }
.al-numcards .num { display: block; margin-bottom: 12px; font-family: "Lato", "Zen Kaku Gothic New", sans-serif; font-weight: 800; font-size: 20px; color: var(--orange-deep); }
.al-numcards h3 { margin: 0 0 10px; font-size: 17px; color: var(--ink-on-light); }
.al-numcards p { margin: 0; color: var(--muted-on-light); font-size: 13px; }
.al-showcase { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; margin: 48px 0; }
.al-showcase.reverse .al-showcase-img { order: 2; }
.al-showcase-img { width: 100%; border: 1px solid var(--line); background: var(--paper-moss); }
.al-showcase h2 { margin: 0 0 12px; font-size: 24px; }
.al-showcase > div > p.d { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.al-points { display: grid; gap: 10px; }
.al-points .pt { padding: 12px 14px; border-left: 2px solid var(--moss-deep); background: var(--paper-moss); font-size: 13px; color: var(--muted-on-light); }
.al-chat { margin: 40px 0; padding: 26px; border: 1px solid var(--line); border-left: 3px solid var(--moss-deep); background: var(--paper-moss); }
.al-chat h2 { margin: 0 0 10px; font-size: 20px; color: var(--ink-on-light); }
.al-chat p { margin: 0; color: var(--muted-on-light); font-size: 14px; }
@media (max-width: 900px) {
  .al-compare { grid-template-columns: 1fr; }
  .al-arrow { transform: rotate(90deg); }
  .al-numcards { grid-template-columns: 1fr; }
  .al-showcase, .al-showcase.reverse { grid-template-columns: 1fr; }
  .al-showcase.reverse .al-showcase-img { order: 0; }
}

footer { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { justify-self: start; max-width: 100px; margin-top: 20px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products, .products.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .products, .products.cols-3 { grid-template-columns: 1fr; }
  .card-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero h1 { font-size: 28px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav { gap: 16px; }
}
