/* ===================================================
   有限会社 平野晒工場 — メインスタイルシート（完全版）
   温かみ・親近感・安心感をベースにしたデザイン
   フォントサイズ: 18px基準
   =================================================== */

/* ---------- リセット & 変数 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --warm-white: #FAF8F3;
  --cream:      #F3EDE2;
  --cream-dark: #E8DFD0;
  --navy:       #1A3A5C;
  --navy-light: #274F7A;
  --gold:       #B8860B;
  --gold-light: #D4A017;
  --gold-pale:  #F5E9C8;
  --text:       #2C2A26;
  --text-mid:   #5A5650;
  --text-muted: #8C8880;
  --border:     rgba(184,134,11,0.18);
  --border-light: rgba(184,134,11,0.10);
  --radius:     6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 12px rgba(26,58,92,0.07);
  --shadow-md:  0 6px 32px rgba(26,58,92,0.10);
  --shadow-lg:  0 16px 56px rgba(26,58,92,0.13);
  --font-ja:    'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --transition: 0.28s ease;
  --font-base:  18px;
}

html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem; /* = 18px */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- 共通ユーティリティ ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-ja);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.95;
  max-width: 600px;
}
.divider-gold {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 18px 0 32px;
  border-radius: 2px;
}

/* ---------- フェードアニメーション ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up-d1 { transition-delay: 0.12s; }
.fade-up-d2 { transition-delay: 0.24s; }
.fade-up-d3 { transition-delay: 0.36s; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,243,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 36px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.logo-main {
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* PCナビゲーション */
.nav { display: flex; align-items: center; gap: 8px; }

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
  padding: 4px 10px 6px;
  display: block;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10px; right: 10px;
  width: calc(100% - 20px);
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--navy); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ドロップダウン */
.nav-item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  box-shadow: 0 8px 32px rgba(26,58,92,0.13);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  min-width: 160px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200;
}
.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.dropdown-link:hover {
  background: var(--gold-pale);
  color: var(--navy);
}
/* ドロップダウンインジケーター */
.nav-link-has-dropdown::after {
  display: none;
}
.nav-link-has-dropdown .arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.6rem;
  transition: transform var(--transition);
  vertical-align: middle;
}
.nav-item:hover .nav-link-has-dropdown .arrow {
  transform: rotate(180deg);
}

.nav-contact {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 22px;
  border: 1.5px solid var(--navy);
  border-radius: 100px;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
  margin-left: 8px;
}
.nav-contact:hover { background: var(--navy); color: #fff; }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--warm-white);
  z-index: 99;
  padding: 100px 40px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  font-family: var(--font-ja);
  font-size: 1.3rem;
  color: var(--navy);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.mobile-sub {
  font-size: 1.1rem;
  padding-left: 20px;
  color: var(--text-mid);
}

/* ---------- ページヘッダー（各サブページ） ---------- */
.page-header {
  background: var(--navy);
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(184,134,11,0.12) 0%, transparent 60%);
}
.page-header-inner { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--gold-light); }
.page-header .section-title { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- ヒーローセクション（index.html用） ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--cream-dark);
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(26,58,92,0.65) 0%, rgba(26,58,92,0.22) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  max-width: 820px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-light);
}
.hero-title {
  font-family: var(--font-ja);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero-title em {
  font-style: normal;
  color: #F5D98C;
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  margin-bottom: 42px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 38px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.hero-cta-sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 100px;
  transition: border-color var(--transition), color var(--transition);
}
.hero-cta-sub:hover { border-color: #fff; color: #fff; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%      { opacity: 0.3; transform: scaleY(0.5); }
}

/* ---------- 挨拶セクション ---------- */
.greeting { background: var(--warm-white); }
.greeting-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.greeting-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
}
.greeting-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.greeting-photo-label {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(26,58,92,0.9);
  color: #fff;
  font-family: var(--font-ja);
  font-size: 0.82rem;
  padding: 9px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.06em;
}
.greeting-text p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 2.0;
  margin-bottom: 22px;
}
.greeting-sign {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}
.greeting-sign-role {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 700;
  font-family: var(--font-sans);
}
.greeting-sign-name {
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
}

/* ---------- 和晒とは ---------- */
.about-sarashi { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.about-card {
  background: var(--warm-white);
  padding: 48px 36px;
  transition: background var(--transition);
}
.about-card:hover { background: var(--gold-pale); }
.about-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--gold);
}
.about-card-title {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.about-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.95;
}
.sarashi-compare {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-box {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
}
.compare-box.highlight {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.compare-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.compare-box.highlight .compare-label {
  background: var(--gold);
  color: #fff;
}
.compare-box:not(.highlight) .compare-label {
  background: var(--cream-dark);
  color: var(--text-muted);
}
.compare-box h4 {
  font-family: var(--font-ja);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.compare-box p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.95;
}

/* ---------- 案内カードグリッド（index.html） ---------- */
.nav-cards {
  background: var(--cream);
  padding: 80px 0;
}
.nav-cards .section-title { text-align: center; }
.nav-cards .eyebrow { text-align: center; }
.nav-cards .divider-gold { margin-left: auto; margin-right: auto; }
.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.nav-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
}
.nav-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.nav-card-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--gold);
}
.nav-card-title {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.nav-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.nav-card-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- 業務内容セクション（services.html） ---------- */
.services { background: var(--warm-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-photo {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-dark);
}
.service-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-photo img { transform: scale(1.04); }
.service-body { padding: 36px 32px; }
.service-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-title {
  font-family: var(--font-ja);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.service-card p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 2.0;
}
.service-card-full {
  grid-column: span 2;
}
.service-card-full .service-photo {
  aspect-ratio: 21/9;
}

/* services.htmlの大型セクション */
.service-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}
.service-section:last-child { border-bottom: none; }
.service-section:nth-child(even) { background: var(--cream); }
.service-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-section-inner.reverse {
  direction: rtl;
}
.service-section-inner.reverse > * {
  direction: ltr;
}
.service-section-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.service-section-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-section-body .service-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-section-body h2 {
  font-family: var(--font-ja);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.service-section-body p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 2.05;
  margin-bottom: 18px;
}
.service-section-body p:last-child { margin-bottom: 0; }

/* ---------- こだわり（製造工程）---------- */
.process { background: var(--navy); }
.process-title { color: var(--warm-white); }
.process-lead  { color: rgba(255,255,255,0.65); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-step-num {
  font-family: var(--font-sans);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.process-step-title {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.process-step p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.95;
}
.process-highlight {
  margin-top: 64px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.process-stat {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.process-stat:last-child { border-right: none; }
.process-stat-num {
  font-family: var(--font-sans);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.process-stat-num span { font-size: 1.15rem; }
.process-stat-label {
  font-family: var(--font-ja);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ---------- 写真ギャラリー ---------- */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  margin-top: 48px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  position: relative;
}
.gallery-item.large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,58,92,0.75));
  padding: 32px 18px 14px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-ja);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ギャラリーページ専用 */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.gallery-page-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-page-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-page-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-page-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-page-item:hover img { transform: scale(1.05); }
.gallery-page-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,58,92,0.82));
  padding: 40px 18px 16px;
  color: #fff;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ---------- メディア掲載 ---------- */
.media { background: var(--warm-white); padding: 64px 0; }
.media-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 48px;
}
.media-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.media-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.media-text {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.media-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- 会社沿革（history.html） ---------- */
.history { background: var(--warm-white); }
.history-timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 56px;
}
.history-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--border-light));
}
.history-item {
  position: relative;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}
.history-item:last-child { padding-bottom: 0; }
.history-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--warm-white);
  box-shadow: 0 0 0 2px var(--gold);
}
.history-item.major::before {
  width: 18px;
  height: 18px;
  left: -51px;
  top: 5px;
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
}
.history-year {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.history-content-title {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.history-content p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.95;
}
.history-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-pale);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

/* ---------- 基本データ ---------- */
.company-data { background: var(--cream); }
.data-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-top: 48px;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table tr {
  border-bottom: 1px solid var(--border-light);
}
.data-table tr:last-child { border-bottom: none; }
.data-table th {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 22px 0 22px 0;
  width: 170px;
  text-align: left;
  vertical-align: top;
}
.data-table td {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  padding: 22px 0;
  line-height: 1.75;
}
.data-table td a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 従業員紹介（employees.html） ---------- */
.employees { background: var(--warm-white); }
.president-section {
  background: var(--cream);
  padding: 80px 0;
}
.president-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.president-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
  position: relative;
}
.president-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.president-photo-label {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(26,58,92,0.9);
  color: #fff;
  font-family: var(--font-ja);
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.06em;
}
.president-name-en {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.president-name {
  font-family: var(--font-ja);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.president-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}
.president-body p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 2.05;
  margin-bottom: 18px;
}
.president-meta {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.president-meta-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.president-meta-item dd {
  font-family: var(--font-ja);
  font-size: 0.95rem;
  color: var(--navy);
}

.employees-grid-section { background: var(--warm-white); padding: 80px 0; }
.employees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.employee-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.employee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.employee-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--cream-dark);
}
.employee-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.employee-card:hover .employee-photo img { transform: scale(1.05); }
.employee-body {
  padding: 28px 24px;
}
.employee-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-sans);
  margin-bottom: 6px;
}
.employee-name {
  font-family: var(--font-ja);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.employee-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.9;
}

.recruit-section {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.recruit-section .section-title { color: #fff; }
.recruit-section p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.95;
  max-width: 560px;
  margin: 0 auto 36px;
}
.recruit-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition);
}
.recruit-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--navy); }
.contact .section-title { color: #fff; }
.contact .section-lead  { color: rgba(255,255,255,0.65); }
.contact .divider-gold  { background: var(--gold-light); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  margin-top: 56px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-info-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-light);
}
.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.contact-info-value {
  font-family: var(--font-ja);
  font-size: 0.98rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
}
.contact-info-value a { color: rgba(255,255,255,0.85); }

.contact-map {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* フォーム */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}
.form-label span { color: var(--gold-light); margin-left: 4px; font-size: 0.72rem; }
.form-ctrl {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 15px 18px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}
.form-ctrl::placeholder { color: rgba(255,255,255,0.3); }
.form-ctrl:focus {
  border-color: var(--gold-light);
  background: rgba(255,255,255,0.10);
}
textarea.form-ctrl { resize: vertical; min-height: 140px; }
.form-submit {
  padding: 17px 44px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}
.form-submit:hover { background: var(--gold-light); transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-error {
  font-size: 0.8rem;
  color: #f08080;
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  text-align: center;
  padding: 56px 0;
}
.form-success-icon {
  width: 72px;
  height: 72px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.form-success p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ---------- フッター ---------- */
.footer {
  background: #0E2238;
  padding: 56px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ---------- ボタン共通 ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.06em;
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Google Maps ---------- */
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
}
.map-wrapper iframe {
  display: block;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .nav-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .greeting-inner    { grid-template-columns: 1fr; gap: 48px; }
  .greeting-photo    { aspect-ratio: 16/9; max-width: 480px; }
  .president-inner   { grid-template-columns: 1fr; gap: 48px; }
  .president-photo   { aspect-ratio: 16/9; max-width: 480px; }
  .process-steps     { grid-template-columns: repeat(2,1fr); }
  .process-highlight { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
  .service-section-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-section-inner.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .section  { padding: 72px 0; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 24px; }
  .hero-content { padding: 0 28px; }
  .about-grid   { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-full { grid-column: span 1; }
  .service-card-full .service-photo { aspect-ratio: 16/9; }
  .sarashi-compare  { grid-template-columns: 1fr; }
  .process-steps    { grid-template-columns: 1fr; }
  .process-highlight { grid-template-columns: 1fr; padding: 32px 28px; gap: 24px; }
  .process-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
  .process-stat:last-child { border-bottom: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large { grid-column: span 2; }
  .gallery-page-grid { grid-template-columns: 1fr 1fr; }
  .gallery-page-item.wide { grid-column: span 2; }
  .history-item { grid-template-columns: 90px 1fr; gap: 16px; }
  .contact-inner { grid-template-columns: 1fr; }
  .data-card { padding: 36px 28px; }
  .data-table th { width: 120px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .media-inner { flex-direction: column; text-align: center; gap: 24px; padding: 32px 28px; }
  .employees-grid { grid-template-columns: 1fr 1fr; }
  .nav-cards-grid { grid-template-columns: 1fr 1fr; }
  .president-meta { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .hero-title { font-size: 1.9rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; aspect-ratio: 4/3; }
  .gallery-page-grid { grid-template-columns: 1fr; }
  .gallery-page-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .data-table th, .data-table td { display: block; width: 100%; }
  .data-table th { padding-bottom: 2px; padding-top: 16px; }
  .data-table td { padding-top: 2px; padding-bottom: 16px; }
  .employees-grid { grid-template-columns: 1fr; }
  .nav-cards-grid { grid-template-columns: 1fr; }
}

/* ---------- フォームエラー表示 ---------- */
.form-error { display: none; font-size: 0.82rem; color: #c0392b; margin-top: 5px; }
.form-error.show { display: block; }

/* ---------- フォーム送信完了 ---------- */
.form-success {
  text-align: center;
  padding: 56px 32px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
}
.form-success-icon {
  width: 64px; height: 64px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: var(--font-ja);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.form-success p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ---------- services.html 2カラムレスポンシブ ---------- */
@media (max-width: 768px) {
  .services-two-col,
  .history-two-col { grid-template-columns: 1fr !important; }
  .employees-president { grid-template-columns: 1fr !important; }
  .contact-two-col { grid-template-columns: 1fr !important; }
}
