/* ===========================================
   トップページ専用スタイル
   =========================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  background:
    radial-gradient(720px 380px at 88% 14%, color-mix(in oklab, var(--accent-soft) 36%, transparent), transparent 65%),
    radial-gradient(820px 460px at -8% 86%, color-mix(in oklab, var(--leaf) 18%, transparent), transparent 65%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: clamp(520px, 70vh, 720px);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
}

.hero-copy { display: flex; flex-direction: column; gap: 28px; }

.hero-title {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-accent {
  position: relative;
  display: inline-block;
  color: var(--accent);
  background: linear-gradient(transparent 70%, color-mix(in oklab, var(--accent-soft) 40%, transparent) 70%);
  padding: 0 4px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 20px 24px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-meta .en-label { font-size: 10.5px; letter-spacing: 0.18em; }

@media (max-width: 680px) {
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
}
@media (max-width: 420px) {
  .hero-meta { grid-template-columns: 1fr; }
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
}

.hero-image-stack {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-paper);
  box-shadow: var(--shadow-lg);
}

.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scene figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  border-radius: 8px;
  background: color-mix(in oklab, var(--bg-paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
}

.hero-scene figcaption .en-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.hero-scene figcaption strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.hero-scene-main {
  z-index: 1;
  left: 0;
  top: 8%;
  width: 74%;
  height: 70%;
}

.hero-scene-craft {
  z-index: 2;
  right: 0;
  top: 0;
  width: 46%;
  aspect-ratio: 1 / 1;
}

.hero-scene-daily {
  z-index: 3;
  right: 6%;
  bottom: 6%;
  width: 54%;
  aspect-ratio: 4 / 3;
}

.hero-stamp {
  position: absolute;
  z-index: 4;
  left: 6%;
  bottom: 6%;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 174px;
  display: block;
  text-align: left;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.hero-stamp strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  margin: 2px 0;
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero-visual { aspect-ratio: 4 / 3; max-height: none; }
  .hero-scene-main { width: 70%; height: 76%; top: 6%; }
  .hero-scene-craft { width: 42%; }
  .hero-scene-daily { width: 48%; right: 4%; bottom: 5%; }
  .hero-stamp { width: 152px; left: 4%; bottom: 4%; }
  .hero-stamp strong { font-size: 16px; }
}

@media (max-width: 520px) {
  .hero-visual { aspect-ratio: 1 / 1.15; }
  .hero-scene-main {
    left: 0;
    top: 8%;
    width: 78%;
    height: 62%;
  }
  .hero-scene-craft {
    width: 47%;
    top: 0;
  }
  .hero-scene-daily {
    width: 58%;
    right: 0;
    bottom: 7%;
  }
  .hero-scene figcaption {
    left: 10px;
    bottom: 10px;
    padding: 7px 8px;
  }
  .hero-scene figcaption strong {
    font-size: 12px;
  }
  .hero-stamp {
    width: 134px;
    left: 0;
    bottom: 0;
    padding: 10px 12px;
  }
}

/* Hero strip */
.hero-strip {
  margin-top: clamp(40px, 5vw, 64px);
}
.hero-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-paper);
  padding: 18px 6px;
}
.strip-item {
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
}
.strip-item:last-child { border-right: none; }
.strip-item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 760px) {
  .hero-strip-inner { grid-template-columns: 1fr; padding: 8px; }
  .strip-item { border-right: none; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .strip-item:last-child { border-bottom: none; }
}

/* ---------- MESSAGE ---------- */
.message-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.message-side .eyebrow { margin-bottom: 18px; display: flex; }
.message-body { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.sp-br { display: none; }
.text-keep { white-space: nowrap; }

.msg-block { display: flex; flex-direction: column; gap: 10px; }
.msg-block-label {
  display: inline-flex;
  color: var(--accent);
  font-weight: 600;
}
.msg-block-label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  margin-right: 10px;
  align-self: center;
  opacity: 0.7;
}

/* Operations cycle diagram (oval loop, in left column) */
.cycle-diagram {
  margin-top: clamp(64px, 7vw, 88px);
  max-width: 360px;
}
.cycle-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
}
.cycle-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  margin-right: 10px;
  opacity: 0.7;
}
.cycle-caption {
  margin: 8px 0 16px;
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* Oval stage with SVG track + 5 absolutely positioned nodes */
.cycle-stage {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 280 / 360;
  margin: 0 auto;
  color: var(--accent);
  overflow: visible;
}
.cycle-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cycle-node {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.cycle-num {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--bg-paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cycle-node:hover .cycle-num {
  transform: scale(1.08);
  box-shadow: var(--shadow);
}
.cycle-label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

/* Node positions on the oval perimeter
   Ellipse: cx=140, cy=180, rx=78, ry=140 in viewBox 280×360
   Node centers (clockwise from top):
   01: 0°    (140, 40)   → 50%,    11.1%
   02: 72°   (214, 137)  → 76.4%,  38.1%
   03: 144°  (186, 293)  → 66.4%,  81.4%
   04: 216°  (94, 293)   → 33.6%,  81.4%
   05: 288°  (66, 137)   → 23.6%,  38.1% */

.cycle-node--01 { top: 11.1%; left: 50%; }
.cycle-node--01 .cycle-label {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
}

.cycle-node--02 { top: 38.1%; left: 76.4%; }
.cycle-node--02 .cycle-label {
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 10px;
}

.cycle-node--03 { top: 81.4%; left: 66.4%; }
.cycle-node--03 .cycle-label {
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 10px;
}

.cycle-node--04 { top: 81.4%; left: 33.6%; }
.cycle-node--04 .cycle-label {
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  margin-right: 10px;
}

.cycle-node--05 { top: 38.1%; left: 23.6%; }
.cycle-node--05 .cycle-label {
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  margin-right: 10px;
}

@media (max-width: 800px) {
  .message-grid { grid-template-columns: 1fr; gap: 32px; }
  .cycle-diagram { max-width: 360px; margin-top: clamp(40px, 5vw, 56px); }
  .cycle-stage { max-width: 260px; }
}

/* ---------- BRAND SCENES ---------- */
.brand-scenes-section {
  background:
    linear-gradient(180deg, var(--bg) 0%, color-mix(in oklab, var(--bg-soft) 48%, var(--bg)) 100%);
}

.section-head {
  max-width: 860px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .eyebrow { margin-bottom: 14px; display: flex; }
.section-head .lead {
  margin-top: 18px;
}

.brand-scene-list {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}

.brand-scene-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-paper);
  box-shadow: 0 18px 48px rgba(42, 52, 41, 0.06);
}

.brand-scene-panel-reverse {
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
}

.brand-scene-panel-reverse .brand-scene-media {
  order: 2;
}

.brand-scene-panel-reverse .brand-scene-copy {
  order: 1;
}

.brand-scene-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 8px;
}
.brand-scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-scene-copy {
  padding: clamp(6px, 1vw, 12px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.brand-scene-copy .en-label {
  display: flex;
  color: var(--accent);
}

.brand-scene-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.5vw, 34px);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.brand-scene-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.scene-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-soft) 62%, #fff);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .brand-scene-panel,
  .brand-scene-panel-reverse {
    grid-template-columns: 1fr;
  }

  .brand-scene-panel-reverse .brand-scene-media,
  .brand-scene-panel-reverse .brand-scene-copy {
    order: initial;
  }

  .brand-scene-copy {
    max-width: 760px;
  }
}
@media (max-width: 620px) {
  .hero-copy,
  .message-body,
  .section-head,
  .brand-scene-panel,
  .brand-scene-media,
  .brand-scene-copy {
    min-width: 0;
    max-width: 100%;
  }
  .hero-copy .lead br {
    display: none;
  }
  .hero-title,
  .hero-copy .lead,
  .message-side .h2,
  .message-body .lead,
  .section-head .h2,
  .section-head .lead,
  .brand-scene-copy h3,
  .brand-scene-copy p {
    overflow-wrap: anywhere;
    line-break: strict;
  }

  .sp-br {
    display: block;
  }

  .brand-scene-panel {
    padding: 14px;
    overflow: hidden;
  }

  .brand-scene-media {
    aspect-ratio: 4 / 3;
  }

  .brand-scene-copy {
    padding: 8px 4px 4px;
    gap: 14px;
  }

  .scene-tags span {
    max-width: 100%;
  }
}

/* ---------- PRODUCT GRID ---------- */
.product-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
  flex-wrap: wrap;
}
.product-head .eyebrow { display: flex; margin-bottom: 14px; }

.product-footnote { margin-top: 32px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  gap: 14px;
}

@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width:  860px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width:  600px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  420px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
}

.product-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

/* ---------- CTA ---------- */
/* .cta-section / .cta-card は site.css に移動済み */
