/* ===========================================================
   IZUMI FOODS — shared stylesheet
   Palette: warm paper cream + ocean seafoam blocks, logo navy/teal, tosaka red accent
=========================================================== */

:root {
  --paper: #ffffff;
  --paper-dim: #eef5f1;
  --ink: #16222c;
  --ink-soft: #46545c;
  --teal: #1f4d45;
  --teal-deep: #10322c;
  --teal-bright: #2ba38d;
  --seafoam: #e3efe9;
  --seafoam-line: #c8e0d6;
  --red: #b34632;
  --line: #dbe8e1;
  --white: #ffffff;

  --sans: "Noto Sans JP", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;

  --max-w: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--sans);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.6em;
  color: var(--teal-deep);
}

h1 { font-weight: 800; }

h2 { font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }

h3 { font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }

p { margin: 0 0 1em; max-width: 62ch; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--teal-deep);
}

.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--teal);
  border-color: var(--red);
}

.lang-switch {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.lang-switch a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-switch a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.lang-switch a[aria-current="true"] {
  background: var(--teal-deep);
  color: var(--white);
  border-color: var(--teal-deep);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  /* keep .wrap's 24px gutter so the hero lines up with the sections below */
  padding: 48px 24px;
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  max-width: 14ch;
  text-wrap: balance;
}

/* Home hero headings are split into .phrase spans, so the spans decide
   the line breaks (one phrase per line) instead of a ch-based width. */
.hero-grid h1 { max-width: none; }

.hero h1:lang(ko) { word-break: keep-all; }

/* Lede: Japanese breaks only at the <wbr> phrase marks in the markup;
   Korean breaks only between words. */
.hero .lede:lang(ja),
.hero .lede:lang(ko) {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.hero h1 .phrase { display: inline-block; }

/* 4:3 card like the .two-col images below. The photo's plate fills its
   frame edge to edge, so shrink it to the same plate size as the photos
   and feather the frame edges into the white card. */
.hero-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
}

.hero-media picture { display: contents; }

.hero-media img {
  display: block;
  width: 86%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
                      linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
              linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}

.hero .lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 44ch;
  text-wrap: balance;
}

/* Compact hero: for pages with no side image (products, suginori) —
   the full-size hero h1 above is sized to sit next to hero-media and
   looks oversized/unbalanced on its own. */
.hero-compact h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  max-width: 20ch;
}

.hero-compact .lede {
  font-size: 1rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  background: rgba(250, 247, 239, 0.94);
  backdrop-filter: blur(4px);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(16, 50, 44, 0.3);
}

/* ---------- buttons ---------- */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  background: var(--teal-deep);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 13px 20px 13px 24px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary::after {
  content: "\2192";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  line-height: 1;
}

.btn-primary:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* ---------- sections ---------- */

section { padding: 88px 0; }

section.alt { background: var(--paper-dim); }

/* ---------- stat row (proof points) ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-tile .stat-num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1;
  color: var(--teal-deep);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-tile .stat-label {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; gap: 20px; }
}

.section-head {
  max-width: 56ch;
  margin-bottom: 44px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--red);
  margin-bottom: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col picture { display: block; }

/* No card: all three home visuals share one 4:3 frame, and multiply
   blends the photos' white backdrop into whatever section colour is
   behind them, so the plates sit directly on the page. */
.two-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* This photo is cropped tight to the bowl; pad it so the bowl
   matches the plate size in the other two cards. */
.two-col img.inset { padding: 8%; }

/* Full-bleed photo with its own backdrop: show it as a rounded card. */
.two-col img.photo {
  display: block;
  width: 86%;
  margin-inline: auto;
  mix-blend-mode: normal;
  border-radius: var(--radius);
}

/* ---------- history / bases (timeline-ish, since content is chronological) ---------- */

.timeline {
  border-left: 2px solid var(--seafoam-line);
  padding-left: 28px;
  display: grid;
  gap: 28px;
}

.timeline .year {
  font-weight: 700;
  color: var(--red);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.bases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.base-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.base-card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--seafoam);
  border-radius: 50%;
  margin-bottom: 14px;
  color: var(--teal-deep);
}

.base-card .icon svg { width: 20px; height: 20px; display: block; }

/* ---------- strengths ---------- */

.strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.strength-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.strength-card .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-dim);
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ---------- products grid ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-dim);
}

.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.product-card .body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card h3 { font-size: 1.02rem; margin: 0; }

.pdf-link {
  font-size: 0.85rem;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}

.product-card .pdf-link {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- suginori variety table ---------- */

.variety-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.variety-table th,
.variety-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.variety-table th {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--paper-dim);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variety-table td:first-child { font-weight: 700; color: var(--teal); }

.variety-table tbody tr:last-child td { border-bottom: none; }

/* ---------- suginori orbit (rolling multilingual badge) ---------- */

.suginori-orbit { overflow: hidden; }

.orbit-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.orbit-scene {
  position: relative;
  margin: 0 auto;
}

.orbit-label {
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(0.7rem, 2vw, 2.5rem);
  letter-spacing: 0.22em;
  color: var(--ink);
  pointer-events: none;
}

.orbit-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65em;
  margin-top: 1.2em;
}

.orbit-divider {
  width: 40px;
  height: 1px;
  background: var(--line);
  opacity: 0.6;
}

.orbit-classic {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(0.55rem, 0.9vw, 0.68rem);
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  opacity: 0.7;
  text-transform: uppercase;
}

/* ---------- blend slider ---------- */

.blend-tool {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.blend-group { margin-bottom: 28px; }

.blend-group h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-deep);
  margin: 0 0 14px;
}

.blend-row {
  display: grid;
  grid-template-columns: 160px 1fr 52px;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.blend-row input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.blend-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.blend-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.blend-total strong { color: var(--teal); font-size: 1.2rem; }

.btn-reset {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.btn-reset:hover { border-color: var(--red); color: var(--red); }

/* ---------- forms ---------- */

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.field { display: grid; gap: 6px; }

.field label { font-size: 0.85rem; color: var(--ink-soft); }

.field input,
.field textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form-status {
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.show { display: block; }

.form-status.ok { background: #e4efe4; color: var(--teal-deep); }

.form-status.err { background: #f6e3df; color: var(--red); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-grid { padding: 32px 24px; }
  .strengths, .bases-grid { grid-template-columns: 1fr; }
  .blend-row { grid-template-columns: 110px 1fr 46px; }

  /* Keep the nav on phones as a second header row (same as css/style.css). */
  .site-header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 0;
    gap: 6px 12px;
  }
  .lang-switch { margin-left: auto; }
  .main-nav {
    order: 3;
    width: 100%;
    gap: 26px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    padding-top: 4px;
  }
  .main-nav a { padding: 10px 0; white-space: nowrap; }

  /* Stacked sections: photo first in every section, whatever the desktop side. */
  .two-col > picture,
  .two-col > img { order: -1; }

  /* Fit each heading phrase on one line at phone width. */
  .hero h1 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
}

/* Home "main products" lists: let each list run full width (one line on desktop). */
.product-line { max-width: none; }
