/*
Theme Name: Tokyo Shokuhin Rebuild
Theme URI: https://www.tosyo9.com/
Author: OpenAI for Genspark User
Description: 東京食品株式会社向けブランド再構築用のWordPressテーマ。暖色・提案力・高級感・更新しやすさを重視したレスポンシブ設計です。
Version: 4.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tokyo-shokuhin-rebuild
*/

:root {
  --bg: #fff9f2;
  --bg-soft: #fff2e2;
  --surface: #ffffff;
  --surface-2: #fff7ef;
  --line: #ecd5bf;
  --text: #3d281b;
  --text-soft: #6f5848;
  --accent: #d76a35;
  --accent-strong: #b54f20;
  --accent-soft: #f6dccb;
  --brown: #6d3f28;
  --brown-deep: #4a2a1b;
  --gold: #f0b164;
  --success: #27714d;
  --shadow: 0 18px 50px rgba(96, 52, 26, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 32px));
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(240,177,100,0.18), transparent 30%),
    radial-gradient(circle at top left, rgba(215,106,53,0.10), transparent 26%),
    var(--bg);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover, a:focus-visible { color: var(--brown-deep); }
img, iframe, video { max-width: 100%; height: auto; display: block; }
iframe { border: 0; width: 100%; min-height: 340px; border-radius: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 249, 242, 0.92);
  border-bottom: 1px solid rgba(107, 60, 36, 0.08);
}
.header-inner, .site-footer-inner, .content-inner, .archive-inner {
  width: var(--container);
  margin: 0 auto;
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.custom-logo-link img, .brand-fallback-logo { max-height: 60px; width: auto; }
.brand-text { display: grid; gap: 2px; }
.site-title { margin: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 800; letter-spacing: .04em; }
.site-title a { color: var(--brown-deep); }
.site-description { margin: 0; color: var(--text-soft); font-size: .86rem; }
.primary-navigation .menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  align-items: center;
}
.primary-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brown-deep);
  font-weight: 700;
  font-size: .94rem;
}
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { background: rgba(215,106,53,.12); }
.nav-cta a {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 24px rgba(183, 81, 34, 0.22);
}
.nav-cta a:hover { color: #fff; filter: brightness(.97); }

main.site-main { display: block; }
.page-shell, .archive-shell { padding: 38px 0 86px; }
.front-page-shell { padding-top: 0; }
.page-shell--inner { padding-top: 28px; }
.page-hero-card, .hero-card, .content-section, .feature-card, .info-card, .diagram-card, .panel-card, .contact-card, .timeline-card, .kpi-card, .video-card, .brand-card, .recruit-card, .customer-card, .pillar-card, .cta-panel, .quote-card {
  background: var(--surface);
  border: 1px solid rgba(107, 60, 36, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.page-hero-card, .content-section { padding: clamp(22px, 4vw, 36px); }
.content-section { margin-top: 26px; }
.feature-card, .info-card, .diagram-card, .panel-card, .contact-card, .timeline-card, .kpi-card, .video-card, .brand-card, .recruit-card, .customer-card, .pillar-card, .cta-panel, .quote-card { padding: 24px; }
.page-kicker, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(215,106,53,.12);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-title, .hero-title, .section-title, .content-section h2, .entry-content h2 {
  margin: 14px 0 14px;
  line-height: 1.25;
  letter-spacing: .02em;
  font-weight: 800;
  color: var(--brown-deep);
}
.page-title, .hero-title { font-size: clamp(2rem, 4vw, 3.8rem); }
.hero-subtitle, .page-lead, .section-lead, .entry-content > p { color: var(--text-soft); font-size: clamp(1rem, 1.8vw, 1.08rem); }
.entry-content h3, .content-section h3 { margin-top: 0; font-size: clamp(1.12rem, 2vw, 1.5rem); line-height: 1.35; color: var(--brown); }
.entry-content h4, .content-section h4 { margin: 0 0 10px; font-size: 1rem; color: var(--brown-deep); }
.entry-content ul, .entry-content ol, .content-section ul, .content-section ol { padding-left: 1.2em; }
.entry-content li, .content-section li { margin-bottom: .45em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

.hero-card { overflow: hidden; background: linear-gradient(140deg, rgba(255,255,255,.96), rgba(255,247,239,.95)); }
.hero-grid, .grid-2, .video-grid, .contact-grid, .info-grid, .split-grid, .visual-story-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .card-grid, .kpi-grid, .strength-grid, .customer-grid, .recruit-grid, .cta-grid, .product-grid, .business-grid, .appeal-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-copy { padding: clamp(28px, 5vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.hero-visual { min-height: 100%; background: linear-gradient(135deg, rgba(255,215,184,0.75), rgba(244,181,106,0.15)); padding: 20px; display: flex; }
.hero-visual-inner {
  width: 100%;
  min-height: 100%;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(61,40,27,.12), rgba(61,40,27,.38)),
    url('assets/images/hero-prize.jpg') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}
.hero-visual-badge {
  display: inline-flex; width: fit-content; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--brown-deep); font-weight: 800; font-size: .85rem;
}
.hero-visual-title { margin: 0; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.35; color: #fff; }
.hero-visual-text { margin: 0; color: #fff; background: rgba(61,40,27,.42); padding: 14px 16px; border-radius: 16px; }

.entry-content > .page-hero-card:first-child { display: none; }

.page-hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 460px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 24px 60px rgba(43, 24, 16, 0.18);
  background: #221915;
}
.page-hero-banner__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}
.page-hero-banner__content {
  position: relative;
  z-index: 2;
  min-height: 460px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 46px 0;
}
.page-hero-banner__panel {
  max-width: 560px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(58,38,29,.66), rgba(31,20,15,.78));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 54px rgba(18, 10, 8, 0.24);
}
.page-hero-banner__eyebrow {
  margin: 14px 0 8px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.page-hero-banner__title {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.12;
  color: #fff;
}
.page-hero-banner__lead {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
}

.section-kicker--light {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}
.section-title--light,
.section-lead--light { color: #fff; }
.button-secondary--light {
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}
.button-secondary--light:hover,
.button-secondary--light:focus-visible { color: #fff; background: rgba(255,255,255,.20); }

.top-hero-sample {
  position: relative;
  min-height: 760px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(72, 38, 18, 0.18);
  background: #2d211c;
}
.top-hero-sample__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38,24,18,.82) 0%, rgba(38,24,18,.72) 34%, rgba(38,24,18,.28) 64%, rgba(38,24,18,.18) 100%),
    linear-gradient(180deg, rgba(38,24,18,.14) 0%, rgba(38,24,18,.46) 100%),
    url('assets/images/company-exterior.jpg') center/cover no-repeat;
  transform: scale(1.02);
}
.top-hero-sample__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 760px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 184px;
}
.top-hero-sample__panel {
  max-width: 520px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(64,42,31,.68), rgba(46,31,24,.78));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 48px rgba(20, 11, 7, 0.26);
}
.top-hero-sample__title {
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 4.2vw, 4.25rem);
  line-height: 1.14;
  color: #fff;
  letter-spacing: .02em;
}
.top-hero-sample__lead {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.6vw, 1.06rem);
}
.top-hero-sample__highlights {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.top-mini-card {
  background: rgba(255,255,255,.96);
  border-radius: 22px;
  border: 1px solid rgba(107,60,36,.10);
  box-shadow: 0 14px 34px rgba(60, 30, 16, 0.14);
  padding: 18px 18px 16px;
}
.top-mini-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--brown-deep);
}
.top-mini-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.7;
}

.page-hero-banner {
  position: relative;
  min-height: 500px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #2d211c;
}
.page-hero-banner__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
.page-hero-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 500px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 44px;
}
.page-hero-banner__panel {
  max-width: 620px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(51,35,27,.76), rgba(28,19,14,.84));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 48px rgba(12, 8, 6, 0.28);
}
.page-hero-banner__eyebrow {
  margin: 16px 0 8px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.76);
}
.page-hero-banner__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.14;
}
.page-hero-banner__lead {
  margin: 16px 0 0;
  color: rgba(255,255,255,.96);
  font-size: clamp(1rem, 1.55vw, 1.08rem);
}

.page-hero-banner .section-kicker,
.page-hero-banner__eyebrow,
.page-hero-banner__title,
.page-hero-banner__lead {
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0,0,0,.30);
}
.page-shell--inner {
  padding-top: 34px;
}
.page-shell--inner .entry-content > .page-hero-card:first-child {
  display: none;
}

.top-story-block {
  margin-top: 34px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 30px;
}
.top-story-block--soft {
  background: linear-gradient(180deg, rgba(255,248,240,.96), rgba(255,252,249,.98));
  border: 1px solid rgba(107,60,36,.08);
  box-shadow: var(--shadow);
}
.top-story-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 28px;
  align-items: center;
}
.top-text-card {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(107,60,36,.08);
}
.top-story-block__visual img { min-height: 400px; object-fit: cover; }

.top-feature-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}
.top-feature-strip__card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(107,60,36,.08);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.top-feature-strip__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(215,106,53,.12);
  color: var(--accent-strong);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.top-feature-strip__card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.42;
}
.top-feature-strip__card p {
  margin: 0;
  color: var(--text-soft);
}

.top-gallery-band {
  margin-top: 32px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #8b451f 0%, #b65a21 54%, #d06e2d 100%);
  box-shadow: 0 28px 60px rgba(120, 59, 24, 0.20);
}
.top-gallery-band__inner { padding: clamp(28px, 4vw, 42px); }
.top-gallery-band__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.35fr 1fr 1fr;
  margin-top: 20px;
}
.top-gallery-band__large { grid-row: span 2; }
.top-gallery-band__grid .section-media {
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 34px rgba(75, 32, 10, 0.20);
}
.top-gallery-band__grid .section-media img { min-height: 250px; object-fit: cover; }
.top-gallery-band__large img { min-height: 100%; }

.top-dual-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.top-dual-cards__card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,247,239,.96));
  border: 1px solid rgba(107,60,36,.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.top-dual-cards__card h2 { margin: 12px 0 10px; font-size: clamp(1.3rem, 2vw, 1.8rem); }
.top-dual-cards__card p { margin: 0; color: var(--text-soft); }

.top-info-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 26px;
  margin-top: 32px;
  align-items: start;
}
.top-info-split__left {
  background: linear-gradient(180deg, rgba(255,252,248,.98), rgba(255,255,255,.98));
  border: 1px solid rgba(107,60,36,.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 34px);
}
.top-info-split__video-card { padding: 0; overflow: hidden; }
.top-info-split__video-copy { padding: 22px 22px 24px; }
.top-info-split__poster {
  position: relative;
  background: linear-gradient(180deg, #f09a4e 0%, #ee8636 52%, #e06c22 100%);
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(160, 78, 26, 0.24);
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
}
.top-info-split__poster::before {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.top-info-split__poster h2,
.top-info-split__poster p { position: relative; color: #fff; }
.top-info-split__poster-image {
  position: relative;
  margin: 18px 0 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.18);
}
.top-info-split__poster-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.top-keyword-panel {
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(255,247,239,.96), rgba(255,251,246,.98));
  border: 1px solid rgba(107,60,36,.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 36px);
}
.top-keyword-panel__tags { margin-top: 18px; }

.top-closing-cta {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,241,226,.96), rgba(255,249,242,.98));
  border: 1px solid rgba(107,60,36,.08);
  box-shadow: var(--shadow);
}
.top-closing-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
.top-closing-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.button-row, .hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button, .wp-block-button__link, input[type="submit"], button, .contact-submit {
  appearance: none; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 800; line-height: 1.2; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.button:hover, input[type="submit"]:hover, button:hover, .contact-submit:hover { transform: translateY(-1px); }
.button-primary, input[type="submit"], .contact-submit {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow: 0 14px 26px rgba(183,81,34,.22);
}
.button-secondary { color: var(--brown-deep); background: rgba(255,255,255,.9); border: 1px solid rgba(107,60,36,.12); }
.badge-list, .meta-list, .check-list, .point-list, .tag-list {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 18px 0 0;
}
.badge-list li, .tag-list li, .meta-list li {
  background: rgba(255,255,255,.88); border: 1px solid rgba(107,60,36,.09); border-radius: 999px; padding: 8px 14px; font-weight: 700; color: var(--brown);
}
.stat-number { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--accent-strong); line-height: 1.1; }
.small-note, .muted, .caption { color: var(--text-soft); font-size: .92rem; }
.section-divider { height: 1px; background: linear-gradient(90deg, rgba(215,106,53,0), rgba(215,106,53,.35), rgba(215,106,53,0)); margin: 34px 0; }
.icon-bullet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.icon-bullet-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-bullet-list li::before { content: "●"; color: var(--accent); font-size: .9rem; line-height: 1.8; }

.diagram-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; }
.diagram-card { text-align: center; }
.diagram-label {
  display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 8px 14px;
  border-radius: 999px; background: rgba(215,106,53,.12); color: var(--accent-strong); font-size: .85rem; font-weight: 800; margin-bottom: 12px;
}
.diagram-arrow { font-size: 2rem; color: var(--accent-strong); font-weight: 800; text-align: center; }

.section-media, .section-media img, .media-frame img, .inline-photo {
  border-radius: 20px;
}
.section-media {
  overflow: hidden;
  border: 1px solid rgba(107,60,36,.08);
  box-shadow: var(--shadow);
  background: #fff;
}
.media-frame { overflow: hidden; border-radius: 20px; }
.media-frame img, .section-media img { width: 100%; height: 100%; object-fit: cover; }
.media-caption { padding: 12px 16px; color: var(--text-soft); font-size: .92rem; }
.gallery-stack { display: grid; gap: 20px; }
.brand-logo-block { display: flex; align-items: center; justify-content: center; min-height: 220px; background: linear-gradient(135deg, #fff7ef, #fff); }
.brand-logo-block img { max-width: min(100%, 420px); max-height: 180px; object-fit: contain; }
.quote-card { background: linear-gradient(135deg, rgba(255,247,239,.98), rgba(255,255,255,.96)); }
.quote-card p { margin: 0; }
.lead-quote { font-size: clamp(1.12rem, 2vw, 1.36rem); color: var(--brown-deep); font-weight: 700; }
.history-list { display: grid; gap: 16px; }
.history-item { padding-left: 18px; border-left: 4px solid rgba(215,106,53,.35); }
.history-year { display: block; font-weight: 800; color: var(--accent-strong); margin-bottom: 4px; }
.brand-list { columns: 2; gap: 22px; margin: 0; padding-left: 1.2em; }
.notice-bar, .form-message {
  padding: 14px 16px; border-radius: 14px; margin: 0 0 20px; border: 1px solid rgba(39,113,77,.18); background: rgba(39,113,77,.08); color: var(--success); font-weight: 700;
}
.form-row { display: grid; gap: 8px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { font-weight: 800; color: var(--brown); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); padding: 14px 16px; font: inherit;
}
textarea { min-height: 160px; resize: vertical; }
.cta-banner { background: linear-gradient(135deg, var(--brown-deep), var(--accent-strong)); color: #fff; }
.cta-banner .section-title, .cta-banner h2, .cta-banner h3, .cta-banner p, .cta-banner li, .cta-banner a { color: #fff; }
.wp-block-separator, .divider { border: 0; height: 1px; background: rgba(107,60,36,.12); margin: 28px 0; }
.site-footer { padding: 24px 0 48px; background: linear-gradient(180deg, rgba(74,41,25,.02), rgba(74,41,25,.08)); }
.site-footer-inner {
  background: rgba(255,255,255,.8); border: 1px solid rgba(107,60,36,.08); border-radius: 24px; padding: 24px clamp(20px,4vw,34px); display: grid; gap: 16px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.footer-title { margin: 0 0 10px; font-size: 1.02rem; color: var(--brown-deep); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text-soft); }
.site-footer small { color: var(--text-soft); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 1024px) {
  .hero-grid, .grid-2, .video-grid, .contact-grid, .info-grid, .split-grid, .grid-3, .card-grid, .kpi-grid, .strength-grid, .customer-grid, .recruit-grid, .cta-grid, .product-grid, .business-grid, .footer-grid, .diagram-grid, .form-grid, .visual-story-grid, .top-story-block__grid, .top-feature-strip, .top-gallery-band__grid, .top-dual-cards, .top-info-split, .top-closing-cta__inner {
    grid-template-columns: 1fr;
  }
  .diagram-arrow { transform: rotate(90deg); }
  .brand-list { columns: 1; }
  .top-hero-sample { min-height: 820px; }
  .top-hero-sample__content { min-height: 820px; padding-bottom: 220px; }
  .top-hero-sample__highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-gallery-band__large { grid-row: auto; }
  .top-gallery-band__grid .section-media img,
  .top-story-block__visual img { min-height: 280px; }
  .page-hero-banner,
  .page-hero-banner__content { min-height: 420px; }
}
@media (max-width: 860px) {
  .header-inner { align-items: flex-start; padding: 16px 0; flex-direction: column; }
  .primary-navigation .menu { gap: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .page-shell, .archive-shell { padding: 24px 0 60px; }
  .header-inner { gap: 12px; }
  .primary-navigation .menu { gap: 2px; }
  .primary-navigation a { padding: 10px 12px; font-size: .88rem; }
  .hero-copy, .hero-visual-inner, .page-hero-card, .content-section, .feature-card, .info-card, .diagram-card, .panel-card, .contact-card, .timeline-card, .cta-panel, .quote-card, .top-hero-sample__panel, .top-story-block, .top-dual-cards__card, .top-info-split__left, .top-info-split__poster, .top-keyword-panel, .top-closing-cta, .page-hero-banner__panel { padding: 20px; }
  .button-row, .hero-actions, .cta-actions, .top-closing-cta__actions { flex-direction: column; }
  .button, input[type="submit"], .contact-submit { width: 100%; text-align: center; }
  iframe { min-height: 240px; }
  .top-hero-sample { min-height: 920px; border-radius: 0 0 24px 24px; }
  .top-hero-sample__content {
    width: calc(100% - 28px);
    min-height: 920px;
    padding: 18px 0 290px;
    align-items: flex-start;
  }
  .top-hero-sample__panel { max-width: 100%; }
  .top-hero-sample__highlights {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
  }
  .top-hero-sample__title { font-size: clamp(1.85rem, 8vw, 2.7rem); }
  .page-hero-banner,
  .page-hero-banner__content { min-height: 360px; }
  .page-hero-banner__content {
    width: calc(100% - 28px);
    padding: 24px 0 18px;
    align-items: flex-end;
  }
  .page-hero-banner__title { font-size: clamp(1.9rem, 8vw, 2.9rem); }
}


/* === FINAL EASY UPDATE LAYER === */
:root {
  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-heading: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --title-hero-pc: 58;
  --title-hero-tab: 48;
  --title-hero-sp: 32;
  --title-hero-line-height-pc: 1.14;
  --title-hero-line-height-tab: 1.16;
  --title-hero-line-height-sp: 1.18;
  --title-page-pc: 55;
  --title-page-tab: 40;
  --title-page-sp: 28;
  --title-section-pc: 30;
  --title-section-tab: 26;
  --title-section-sp: 20;
}

body {
  font-family: var(--font-base);
}

.site-title,
.page-title,
.hero-title,
.section-title,
.content-section h2,
.entry-content h2,
.entry-content h3,
.content-section h3,
.top-mini-card h2,
.top-feature-strip__card h2,
.top-dual-cards__card h2,
.page-hero-banner__title,
.top-hero-stage__title {
  font-family: var(--font-heading);
  overflow-wrap: anywhere;
  word-break: normal;
}

.page-title,
.page-hero-banner__title {
  font-size: calc(var(--title-page-pc) * 1px);
}

.section-title,
.content-section h2,
.entry-content h2 {
  font-size: calc(var(--title-section-pc) * 1px);
}

.top-hero-stage__title {
  font-size: calc(var(--title-hero-pc) * 1px);
}

.content-inner,
.entry-content,
.top-hero-stage__panel,
.page-hero-banner__panel,
.top-feature-strip__card,
.top-dual-cards__card,
.top-mini-card,
.brand-card,
.feature-card,
.info-card,
.contact-card,
.section-media,
.product-shot-card,
.top-collage-board__item,
.top-collage-board__main {
  min-width: 0;
}

img,
iframe,
video {
  max-width: 100%;
}

.top-hero-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #2d211c;
  border-radius: 0 0 34px 34px;
  box-shadow: 0 24px 70px rgba(72, 38, 18, 0.18);
}

.top-hero-stage__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38,24,18,.82) 0%, rgba(38,24,18,.72) 34%, rgba(38,24,18,.28) 64%, rgba(38,24,18,.18) 100%),
    linear-gradient(180deg, rgba(38,24,18,.14) 0%, rgba(38,24,18,.46) 100%),
    url('assets/images/company-exterior.jpg') center/cover no-repeat;
  transform: scale(1.02);
}

.top-hero-stage__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 700px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 120px;
}

.top-hero-stage__panel {
  max-width: 640px;
  padding: clamp(30px, 4vw, 44px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(18,18,18,.78), rgba(31,21,16,.82));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
}

.top-hero-stage__title {
  margin: 16px 0 0;
  color: #ffffff;
  line-height: var(--title-hero-line-height-pc);
  letter-spacing: .01em;
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.top-hero-stage__lead {
  margin: 16px 0 0;
  color: rgba(255,255,255,.96);
  font-size: 17px;
  text-shadow: 0 4px 14px rgba(0,0,0,.20);
}

.badge-list--light li {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}

.top-hero-stage__highlights-wrap {
  margin-top: -84px;
  position: relative;
  z-index: 5;
}

.top-hero-stage__highlights {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.top-feature-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.top-collage-board {
  margin-top: 32px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #8b451f 0%, #b65a21 54%, #d06e2d 100%);
  box-shadow: 0 28px 60px rgba(120, 59, 24, 0.20);
  padding: clamp(24px, 4vw, 36px);
}

.top-collage-board__header {
  margin-bottom: 20px;
}

.top-collage-board__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr);
  gap: 18px;
  align-items: stretch;
}

.top-collage-board__main,
.top-collage-board__item {
  margin: 0;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(75, 32, 10, 0.20);
}

.top-collage-board__main img {
  width: 100%;
  height: 100%;
  aspect-ratio: 0.77 / 1;
  object-fit: cover;
}

.top-collage-board__subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.top-collage-board__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-hero-banner--business .page-hero-banner__media {
  background-position: center center;
}

.page-hero-banner--products {
  background: linear-gradient(90deg, #5e4a40 0%, #5e4a40 38%, #f1eeea 38%, #f1eeea 100%);
}

.page-hero-banner--products .page-hero-banner__content {
  align-items: center;
  min-height: 500px;
  padding: 40px 0;
}

.page-hero-banner--products .page-hero-banner__panel {
  max-width: 460px;
}

.page-hero-banner--products .page-hero-banner__media {
  background-position: right 28px center;
  background-size: auto 82%;
  background-repeat: no-repeat;
  transform: none;
}

.product-showcase-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,249,243,.98));
  padding: clamp(30px, 5vw, 54px);
  border-radius: 30px;
}

.product-showcase-panel .brand-card {
  min-height: 158px;
  padding: 26px 24px 22px;
  border-radius: 24px;
}

.product-showcase-panel .brand-card h3 {
  margin-bottom: 10px;
}

.product-section-title {
  margin-top: 0;
  margin-bottom: 18px;
}

.product-category-grid,
.product-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-shot-grid {
  margin-top: 8px;
  gap: 20px;
}

.product-shot-card {
  margin: 0;
  padding: 14px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(107,60,36,.08);
  box-shadow: 0 18px 40px rgba(96, 52, 26, 0.10);
}

.product-shot-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.top-closing-cta__actions {
  align-items: stretch;
}

@media (max-width: 1024px) {
  .top-hero-stage__content {
    min-height: 640px;
    padding-bottom: 86px;
  }

  .top-hero-stage__highlights,
  .top-feature-strip,
  .product-category-grid,
  .product-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-collage-board__frame {
    grid-template-columns: 1fr;
  }

  .page-hero-banner--products {
    background: linear-gradient(180deg, #5e4a40 0%, #5e4a40 46%, #f1eeea 46%, #f1eeea 100%);
  }

  .page-hero-banner--products .page-hero-banner__content {
    min-height: 460px;
    padding: 34px 0;
  }

  .page-hero-banner--products .page-hero-banner__media {
    background-position: center bottom 18px;
    background-size: auto 70%;
  }
}

@media (max-width: 860px) {
  .page-title,
  .page-hero-banner__title {
    font-size: calc(var(--title-page-tab) * 1px);
  }

  .section-title,
  .content-section h2,
  .entry-content h2 {
    font-size: calc(var(--title-section-tab) * 1px);
  }

  .top-hero-stage__title {
    font-size: calc(var(--title-hero-tab) * 1px);
    line-height: var(--title-hero-line-height-tab);
  }
}

@media (max-width: 640px) {
  .top-hero-stage {
    border-radius: 0 0 24px 24px;
  }

  .top-hero-stage__content {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 24px 0 28px;
    align-items: flex-start;
  }

  .top-hero-stage__panel {
    max-width: 100%;
    padding: 24px 20px;
  }

  .top-hero-stage__highlights-wrap {
    margin-top: 18px;
  }

  .top-hero-stage__highlights,
  .top-feature-strip,
  .product-category-grid,
  .product-shot-grid,
  .top-collage-board__subgrid {
    grid-template-columns: 1fr;
  }

  .page-title,
  .page-hero-banner__title {
    font-size: calc(var(--title-page-sp) * 1px);
  }

  .section-title,
  .content-section h2,
  .entry-content h2 {
    font-size: calc(var(--title-section-sp) * 1px);
  }

  .top-hero-stage__title {
    font-size: calc(var(--title-hero-sp) * 1px);
    line-height: var(--title-hero-line-height-sp);
  }

  .page-hero-banner__panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .page-hero-banner--products {
    background: linear-gradient(180deg, #5e4a40 0%, #5e4a40 44%, #f1eeea 44%, #f1eeea 100%);
  }

  .page-hero-banner--products .page-hero-banner__content {
    min-height: 380px;
    padding: 24px 0 18px;
    align-items: flex-end;
  }

  .page-hero-banner--products .page-hero-banner__media {
    background-position: center bottom 12px;
    background-size: calc(100% - 24px) auto;
  }

  .top-collage-board {
    padding: 18px;
  }

  .top-collage-board__main img,
  .top-collage-board__item img,
  .product-shot-card img {
    aspect-ratio: auto;
    height: auto;
  }
}
