/* ============================================================
   株式会社 相双資材
   Design System: Corporate Trust Navy × Minimal × Earth
   ============================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }

/* ---- Tokens ---- */
:root {
  /* Navy palette */
  --navy: #0B2545;
  --navy-deep: #061730;
  --navy-mid: #1E3A5F;
  --steel: #3D5A80;
  --slate: #475569;
  --gray: #64748B;
  --gray-light: #94A3B8;
  --border: #E2E8F0;
  --surface: #F8FAFC;
  --pearl: #F1F5F9;
  --white: #FFFFFF;

  /* Accent (warm, for "子どもたちの未来" narrative) */
  --amber: #B8864B;
  --amber-light: #D4A574;
  --amber-bg: #FAF5EF;

  /* Functional */
  --text: #0F172A;
  --text-soft: #334155;
  --text-muted: #64748B;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #0B2545 0%, #1E3A5F 100%);
  --grad-dark: linear-gradient(180deg, #061730 0%, #0B2545 100%);
  --grad-steel: linear-gradient(135deg, #1E3A5F 0%, #3D5A80 100%);

  /* Fonts */
  --font-serif: 'Noto Serif JP', 'ヒラギノ明朝 ProN', 'Yu Mincho', serif;
  --font-sans: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Yu Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 960px;
  --space: clamp(3.5rem, 8vw, 6rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-1: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-3: 0 16px 48px rgba(15, 23, 42, 0.12);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  font-feature-settings: "palt";
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--navy);
}

/* Accent (eyebrow) text */
.eyebrow {
  color: var(--steel);
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 2rem; height: 1px; background: var(--steel);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow { max-width: var(--container-narrow); }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  height: 76px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.85rem;
  color: var(--navy); font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 500; letter-spacing: 0.05em;
}
.nav-logo img {
  height: 42px; width: auto; max-width: 300px;
  transition: opacity .25s ease;
}
.nav-logo:hover img { opacity: 0.7; }
@media (max-width: 540px) {
  .nav-logo img { height: 34px; max-width: 200px; }
}
.nav-logo-sub {
  display: block; font-size: 0.65rem; letter-spacing: 0.2em;
  color: var(--gray); font-family: var(--font-sans);
  font-weight: 400; margin-top: 2px;
}
@media (max-width: 540px) {
  .nav-logo img { height: 36px; }
  .nav-logo > div { display: none; }
}
.nav-menu {
  display: flex; gap: 1.25rem; align-items: center;
}
.nav-menu a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-soft);
  transition: color .2s; position: relative;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .nav-menu { gap: 0.95rem; }
  .nav-menu a { font-size: 0.78rem; }
}
.nav-menu a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--navy); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-cta {
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--navy); color: white !important;
  font-size: 0.82rem; font-weight: 500;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); }

@media (max-width: 960px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; position: absolute;
    top: 76px; left: 0; right: 0; background: white;
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem; gap: 1.5rem; align-items: flex-start;
  }
  .nav-cta { width: 100%; text-align: center; }
}

/* ---- Hero (Corporate) ---- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  background: var(--grad-hero);
  color: white;
  padding: 10rem 0 6rem;
  overflow: hidden;
}
/* Photo background variant */
.hero.hero-photo {
  background-image:
    linear-gradient(135deg, rgba(11, 37, 69, 0.78) 0%, rgba(11, 37, 69, 0.55) 50%, rgba(30, 58, 95, 0.65) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
}
.hero.hero-photo .hero-title,
.hero.hero-photo .hero-sub {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.5);
}
.hero::before {
  /* Topographic line pattern (地質テクスチャ) */
  content: ''; position: absolute; inset: 0; opacity: 0.08;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.8) 40px, rgba(255,255,255,0.8) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.5) 40px, rgba(255,255,255,0.5) 41px);
  pointer-events: none;
}
.hero.hero-photo::before { opacity: 0.04; }
.hero::after {
  content: ''; position: absolute; right: -10%; top: 20%;
  width: 50%; height: 60%;
  background: radial-gradient(circle, rgba(184,134,75,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 980px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 1rem;
  color: var(--amber-light); font-size: 0.8rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ''; width: 2.5rem; height: 1px; background: var(--amber-light);
}
.hero-title {
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  font-weight: 500; line-height: 1.5;
  margin-bottom: 1.5rem; color: white;
  letter-spacing: 0.01em;
  /* Japanese line-break safety:
     - keep-all prevents mid-word breaks like プラン/ト or 育て/る
     - normal overflow-wrap means it will only break at word boundaries (no mid-word breaks)
     - line-break: strict respects Japanese kinsoku rules
     - text-wrap: balance produces more even line lengths (modern browsers) */
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: balance;
}
.hero-title .highlight { color: var(--amber-light); font-weight: 600; }
.hero-sub {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  color: rgba(255,255,255,0.78);
  max-width: 720px; margin-bottom: 2.5rem;
  line-height: 1.9;
  /* 本文として自然な日本語改行を許す（hero-titleとは異なる） */
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats bar under hero */
.stats-bar {
  background: var(--navy-deep); color: white;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stats-bar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.stats-bar-item {
  padding: 2rem 1.5rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300; color: var(--amber-light);
  line-height: 1; margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.stats-bar-label {
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 2rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer; letter-spacing: 0.02em;
}
.btn-primary {
  background: white; color: var(--navy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.btn-primary-dark {
  background: var(--navy); color: white;
}
.btn-primary-dark:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--pearl); }

/* ---- Sections ---- */
.section { padding: var(--space) 0; }
.section-header { margin-bottom: 4rem; max-width: 720px; }
.section-header.center { text-align: center; margin: 0 auto 4rem; }
.section-title {
  font-size: clamp(1.45rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: balance;
}
.section-lead {
  font-size: 1.05rem; color: var(--text-soft);
  line-height: 1.9;
}

/* ---- Business cards (3 pillars) ---- */
.biz-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.biz-card {
  background: white; padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--navy);
}
.biz-card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--amber);
  letter-spacing: 0.2em; font-weight: 500;
  margin-bottom: 1rem;
}
.biz-card-title {
  font-size: 1.35rem; margin-bottom: 1rem;
  color: var(--navy);
}
.biz-card-desc {
  font-size: 0.95rem; color: var(--text-soft);
  line-height: 1.9; margin-bottom: 1.5rem;
}
.biz-card-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--navy); font-weight: 500; font-size: 0.9rem;
}

/* ---- Project achievements list ---- */
.achievement-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.achievement-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.achievement-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(11, 37, 69, 0.14);
  z-index: 2; position: relative;
}
.achievement-img {
  width: 100%; aspect-ratio: 16/10;
  background: var(--grad-steel);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
}
.achievement-img.placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,255,255,0.05) 15px, rgba(255,255,255,0.05) 16px);
}
.achievement-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.achievement-card:hover .achievement-img img { transform: scale(1.05); }
.achievement-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 37, 69, 0.25) 100%);
  pointer-events: none;
}

/* ---- Service photo card (HOME 4-segment with image bg) ---- */
.service-card-photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card-photo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(11, 37, 69, 0.18);
  z-index: 2;
}
.service-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.service-card-photo:hover img { transform: scale(1.08); }
.service-card-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 37, 69, 0.85) 100%);
  pointer-events: none;
}
.service-card-photo-label {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1rem;
  z-index: 2; color: white; font-family: var(--font-serif);
  font-size: 1rem; line-height: 1.4; letter-spacing: 0.05em;
}

/* ---- Workflow timeline image variant ---- */
.timeline-img-inline {
  margin: 0.8rem 0 1.4rem;
  width: 100%;
  border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, var(--pearl) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.timeline-img-inline img {
  width: 100%; height: auto; display: block;
  max-height: 180px; object-fit: contain;
}

/* ---- Video Embed (responsive 16:9) ---- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--navy-deep);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ---- Video link card (HOME) ---- */
.video-cta {
  background: var(--grad-dark);
  color: white;
  padding: var(--space) 0;
  position: relative; overflow: hidden;
}
.video-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(184,134,75,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.video-cta-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 860px) {
  .video-cta-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.video-cta-text .eyebrow {
  color: var(--amber-light);
}
.video-cta-text .eyebrow::before {
  background: var(--amber-light);
}
.video-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: white; margin-bottom: 1rem;
  font-weight: 400;
}
.video-cta-desc {
  color: rgba(255,255,255,0.75);
  line-height: 1.9; margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.video-cta-meta {
  display: flex; gap: 1.25rem; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* ---- Recruit block (contact.html) ---- */
.recruit-block {
  background: linear-gradient(180deg, var(--pearl) 0%, white 100%);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.recruit-lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.recruit-lead strong { color: var(--navy); }
.recruit-points {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.recruit-point {
  background: white;
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.recruit-voices {
  display: grid; gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}
.recruit-voice {
  background: white;
  border-left: 3px solid var(--amber);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.recruit-voice-role {
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

/* ---- Greeting (代表挨拶) president photo block ---- */
.greeting-photo {
  width: 100%; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
}
.greeting-photo img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.greeting-signature {
  margin-top: 1.5rem; max-width: 320px;
  margin-left: auto; opacity: 0.95;
}
.greeting-signature img { width: 100%; height: auto; }
.achievement-body { padding: 1.5rem; }
.achievement-meta {
  font-size: 0.75rem; color: var(--gray);
  letter-spacing: 0.1em; margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}
.achievement-title {
  font-size: 1rem; line-height: 1.6;
  color: var(--navy); margin-bottom: 0.5rem;
}
.achievement-client {
  font-size: 0.82rem; color: var(--text-muted);
}

/* ---- Mission narrative section ---- */
.mission {
  position: relative; overflow: hidden;
  background: var(--grad-dark);
  color: white;
  padding: var(--space) 0;
}
.mission::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(ellipse at 30% 40%, rgba(184,134,75,0.15) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 70%, rgba(61,90,128,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.mission-content { position: relative; z-index: 1; text-align: center; }
.mission-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: white; margin-bottom: 1.5rem;
  font-weight: 300;
}
.mission-title .highlight { color: var(--amber-light); font-weight: 500; }
.mission-text {
  font-size: 1.05rem; line-height: 2.2;
  color: rgba(255,255,255,0.8);
  max-width: 740px; margin: 0 auto;
}

/* ---- Timeline (沿革・業務の流れ) ---- */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.5rem;
  top: 10px; width: 18px; height: 18px;
  border-radius: 50%; background: white;
  border: 2.5px solid var(--navy);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem; color: var(--steel);
  letter-spacing: 0.08em; font-weight: 500;
  margin-bottom: 0.3rem;
}
.timeline-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.8; }

/* ---- Data table (会社概要) ---- */
.info-table {
  width: 100%; border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 1.2rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  vertical-align: top;
  line-height: 1.8;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th {
  background: var(--pearl);
  color: var(--navy); font-weight: 500;
  width: 200px; font-family: var(--font-serif);
}
.info-table td { color: var(--text-soft); }

/* ---- News list ---- */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.news-item {
  display: grid; grid-template-columns: 120px 120px 1fr auto;
  gap: 1.5rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background .2s;
}
.news-item:hover { background: var(--pearl); padding-left: 1rem; padding-right: 1rem; margin: 0 -1rem; border-radius: var(--radius-sm); }
.news-item.news-item-static { cursor: default; }
.news-item.news-item-static:hover { background: transparent; padding-left: 0; padding-right: 0; margin: 0; }
.news-date {
  font-family: var(--font-mono);
  font-size: 0.85rem; color: var(--navy); font-weight: 500;
  letter-spacing: 0.05em;
}
.news-category {
  font-size: 0.7rem; color: var(--steel);
  background: var(--pearl);
  padding: 4px 12px; border-radius: 100px;
  letter-spacing: 0.1em; text-align: center;
  border: 1px solid var(--border);
}
.news-title { font-size: 0.95rem; color: var(--text); line-height: 1.6; }
.news-arrow { color: var(--gray-light); }

@media (max-width: 768px) {
  .news-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .news-item > .news-arrow { display: none; }
}

/* ---- Cert badges ---- */
.cert-strip {
  display: flex; gap: 2rem; flex-wrap: wrap;
  justify-content: center; align-items: center;
  padding: 2.5rem; background: var(--pearl);
  border-radius: var(--radius-md);
}
.cert-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white; border-radius: var(--radius-sm);
  color: var(--navy); font-weight: 500; font-size: 0.85rem;
  border: 1px solid var(--border);
}

/* ---- Audience selector (4 segments) ---- */
.audience {
  background: var(--pearl);
  padding: var(--space) 0;
}
.audience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 960px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  background: white; padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.audience-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: var(--grad-hero); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.audience-title {
  font-size: 1rem; color: var(--navy);
  margin-bottom: 0.5rem;
}
.audience-desc {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.7;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy); color: white;
  text-align: center; padding: calc(var(--space)*0.7) 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(184,134,75,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.cta-band-content { position: relative; z-index: 1; }
.cta-band-title {
  font-size: clamp(1.35rem, 3.5vw, 2.2rem);
  color: white; margin-bottom: 1rem;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: balance;
}
.cta-band-desc {
  color: rgba(255,255,255,0.75);
  max-width: 640px; margin: 0 auto 2rem;
}

/* ---- Form ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.85rem;
  color: var(--navy); margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-label .required {
  color: #DC2626; font-size: 0.7rem;
  margin-left: 0.5rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.9rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: white; font: inherit; font-size: 0.95rem;
  transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--navy);
}
.form-textarea { min-height: 160px; resize: vertical; }
.form-submit {
  background: var(--navy); color: white;
  padding: 1rem 3rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 1rem;
  transition: background .2s, transform .15s;
}
.form-submit:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-about p { font-size: 0.88rem; line-height: 1.8; margin-top: 1rem; }
.site-footer h4 { color: white; font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.1em; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer a { font-size: 0.88rem; transition: color .2s; color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); }
/* Backwards-compat aliases (some older HTML may use .footer) */
.footer h4 { color: white; font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.1em; font-weight: 600; }
.footer ul li { margin-bottom: 0.6rem; }
.footer a { font-size: 0.88rem; transition: color .2s; color: rgba(255,255,255,0.78); }
.footer a:hover { color: var(--amber-light); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-4 { margin-top: 4rem; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Strategy Roadmap (strategy.html)
   ============================================================ */
.roadmap {
  display: grid;
  gap: 1.5rem;
  position: relative;
}
.roadmap-phase {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  position: relative;
  border-left: 4px solid var(--navy);
  transition: transform .3s, box-shadow .3s;
}
.roadmap-phase:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.roadmap-phase:nth-child(2) { border-left-color: var(--steel); }
.roadmap-phase:nth-child(3) { border-left-color: var(--amber); }
.roadmap-phase-meta {
  display: flex; gap: 1.5rem; align-items: baseline; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.roadmap-phase-num {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--amber);
  letter-spacing: 0.2em; font-weight: 600;
}
.roadmap-phase-year {
  font-family: var(--font-mono);
  font-size: 1.1rem; color: var(--navy);
  letter-spacing: 0.05em; font-weight: 500;
}
.roadmap-phase-title {
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.roadmap-phase-desc {
  font-size: 1rem; color: var(--text-soft);
  line-height: 1.95; margin-bottom: 1.5rem;
}
.roadmap-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}
.roadmap-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
}
.roadmap-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* ============================================================
   Network Diagram (about.html)
   ============================================================ */
.network-diagram {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .network-diagram { grid-template-columns: 1fr; }
}
.network-core {
  background: var(--grad-hero);
  color: white;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-2);
}
@media (max-width: 860px) {
  .network-core { position: static; }
}
.network-core-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-light);
  letter-spacing: 0.25em;
  margin-bottom: 0.8rem;
}
.network-core-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.network-core-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.network-core-list {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  display: grid;
  gap: 0.5rem;
}
.network-core-list li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}
.network-tiers {
  display: grid;
  gap: 1.25rem;
}
.network-tier {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.75rem;
  position: relative;
  border-left: 3px solid var(--navy);
  transition: transform .25s, box-shadow .25s;
}
.network-tier:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-2);
}
.network-tier:nth-child(2) { border-left-color: var(--steel); }
.network-tier:nth-child(3) { border-left-color: var(--amber); }
.network-tier:nth-child(4) { border-left-color: var(--amber-light); }
.network-tier-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.network-tier-headline {
  font-family: var(--font-serif);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.network-tier-num-big {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--navy);
  font-weight: 300;
  line-height: 1;
}
.network-tier-num-unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.network-tier-title {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.network-tier-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 0;
}

/* ============================================================
   ACCESSIBILITY (WCAG 2.1 AA)
   ============================================================ */

/* Skip-to-content link (visible only on focus) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--navy);
  color: white;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Visible focus rings for keyboard users (no impact on mouse users) */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Stronger focus on dark backgrounds */
.site-header :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible,
.hero :focus-visible,
.stats-bar :focus-visible {
  outline-color: var(--amber-light);
  outline-offset: 3px;
}

/* Buttons / CTAs: thicker focus ring */
.btn:focus-visible {
  outline-width: 3px;
  outline-offset: 3px;
}

/* Form fields already have focus border, just ensure outline is also visible for keyboard */
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Lock body scroll when mobile menu is open */
body.nav-open {
  overflow: hidden;
  /* Reserve scrollbar width to prevent layout shift on desktop */
  padding-right: var(--scrollbar-width, 0);
}

/* Suppress focus ring when <main> receives programmatic focus from skip-link
   (we don't want an outline around the entire main content block) */
main:focus,
main:focus-visible {
  outline: none;
}

/* Screen-reader only utility (for decorative-not-empty alt or captions) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   MOBILE / 日本語タイポグラフィ最終調整 (iPhone崩れ対策)
   ============================================================ */

/* 全画像のEXIF orientation を尊重（横倒し問題対策） */
img {
  image-orientation: from-image;
}

/* 見出しは語中改行を防ぐ（プラン/ト 等を回避） */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .cta-band-title,
.biz-card-title, .audience-title, .achievement-title {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

/* 本文は日本語の自然な改行ルール（禁則処理）に従わせる */
body, p, li, td, th, dd, dt, .biz-card-desc, .audience-desc,
.achievement-client, .timeline-desc, .section-lead {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;
}

/* グローバル overflow 対策：水平スクロール防止 */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* グリッド/フレックスの子要素が縮まないと overflow するので min-width:0 を効かせる */
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

/* タブレット (≤768px) でフッターを2カラムから1カラムへ */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

/* iPhone (≤480px) ではより厳しく */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    line-height: 1.55;
    letter-spacing: 0;
  }
  .hero-sub {
    font-size: 0.88rem;
    line-height: 1.85;
  }
  .section-title {
    font-size: clamp(1.15rem, 4.3vw, 1.55rem);
    line-height: 1.5;
  }
  .cta-band-title {
    font-size: clamp(1.05rem, 4.3vw, 1.4rem);
    line-height: 1.5;
  }
  /* iPhoneでヒーローバッジが詰まりすぎないように */
  .hero-badges {
    gap: 0.5rem !important;
  }
  /* CTAボタングループも縦並びに */
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group .btn {
    text-align: center;
  }
  /* セクションのコンテナpaddingを少し詰める */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  /* compliance行動指針のカード溢れ防止 */
  .conduct-item {
    grid-template-columns: 36px 1fr !important;
    gap: 0.7rem !important;
    padding: 0.85rem 1rem !important;
  }
  .conduct-num {
    font-size: 1.2rem !important;
    padding-right: 0.3rem !important;
  }
  .conduct-text {
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
  }
  /* network-tier card溢れ防止 */
  .network-tier-card,
  [class*="network-tier"] {
    max-width: 100%;
    overflow: hidden;
  }
  /* 全 article/card 要素も最大幅を保証 */
  article, .biz-card, .achievement-card {
    max-width: 100%;
  }
  /* テーブル: モバイルでは縦スタック（ラベル上、値下） */
  table.info-table,
  table.info-table tbody,
  table.info-table tr,
  table.info-table th,
  table.info-table td {
    display: block;
    width: 100%;
  }
  table.info-table tr {
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
  }
  table.info-table tr:last-child {
    border-bottom: none;
  }
  table.info-table th {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 0 0 0.3rem 0;
    text-align: left;
    background: transparent !important;
    border: none !important;
  }
  table.info-table td {
    padding: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    border: none !important;
  }
}
