/* =========================================================
   オオカワニット プロトタイプ共通CSS
   ブランド：ネイビー（メイン）／OK-CAMEL #bc8a3c（アクセント）／白（ベース）
   方針：余白広め・写真大きめ・本文16〜18px・派手なアニメーション不使用
   ========================================================= */

:root {
  --navy: #1e3a5f;
  --navy-dark: #16293f;
  --camel: #bc8a3c;
  --white: #ffffff;
  --bg-light: #f6f7f9;
  --text: #2a3138;
  --text-sub: #5a6672;
  --border: #dde3e9;
  --radius-btn: 8px;
  --radius-card: 16px;
  --shadow-card: 0 2px 12px rgba(30, 58, 95, 0.08);
  --shadow-card-hover: 0 16px 32px rgba(30, 58, 95, 0.16);
  --content-width: 1080px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

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

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.site-logo small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: 0.18em;
}
.global-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}
.global-nav a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  border-radius: var(--radius-btn);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.global-nav a:hover { background: var(--bg-light); }
.global-nav a.is-current { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--camel); border-radius: 0; }
.global-nav a.nav-contact {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.global-nav a.nav-contact:hover { background: var(--navy-dark); }

/* ---------- セクション区切り（重要なブランド要素）
   ネイビー・キャメルの2本ラインを左右交互に配置 ---------- */
.divider { padding: 8px 0; }
.divider .line-navy  { height: 3px; background: var(--navy); border: none; }
.divider .line-camel { height: 3px; background: var(--camel); border: none; margin-top: 6px; }
.divider--left  .line-navy  { width: 62%; margin-right: auto; }
.divider--left  .line-camel { width: 38%; margin-right: auto; }
.divider--right .line-navy  { width: 62%; margin-left: auto; }
.divider--right .line-camel { width: 38%; margin-left: auto; }

/* ---------- 見出し ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-light); }
.section-title {
  font-size: 34px;
  color: var(--navy);
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.section-title-en {
  display: block;
  font-size: 13px;
  color: var(--camel);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.section-lead { color: var(--text-sub); margin-bottom: 40px; max-width: 760px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(22, 41, 63, 0.62), rgba(22, 41, 63, 0.62)),
    url("../img/hero.jpg") center / cover no-repeat,
    var(--navy-dark);
  color: var(--white);
  padding: 140px 0 150px;
}
.hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero .hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--camel);
}
.hero h1 {
  font-size: 48px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  margin-bottom: 24px;
  font-weight: 700;
}
.hero p { max-width: 680px; font-size: 17px; opacity: 0.95; }
.hero .photo-placeholder-note {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-size: 12px;
  opacity: 0.6;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 14px 40px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--navy);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover {
  background: var(--navy-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.28);
}
.btn--camel { background: var(--camel); border-color: var(--camel); }
.btn--camel:hover { background: #a1762f; box-shadow: 0 12px 24px rgba(188, 138, 60, 0.35); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); box-shadow: none; }

/* ---------- カード ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-body { padding: 24px 28px 28px; }

/* ---------- 写真プレースホルダー（Phase 2用・後で実写真に差替） ---------- */
.photo-placeholder {
  background: repeating-linear-gradient(
    45deg, #e3e8ee, #e3e8ee 14px, #eceff3 14px, #eceff3 28px);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.08em;
  min-height: 220px;
  text-align: center;
}
.photo-placeholder--tall { min-height: 360px; }
.photo-placeholder--wide { min-height: 420px; }

/* ---------- 実写真 ---------- */
.photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.photo--tall { height: 460px; }
.photo--wide { height: 340px; }
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.photo-row figure { margin: 0; }
.photo-row .photo { height: 300px; }
.photo-row figcaption {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 8px;
  text-align: center;
}

/* ---------- 生地づくりの流れ（3ステップ） ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.step img { border-radius: 12px; }
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(30, 58, 95, 0.3);
}
.step h3 { color: var(--navy); font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--text-sub); text-align: left; }

/* ---------- 生地カード一覧（画像＋生地名のみ・ブログ風にしない） ---------- */
.fabric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.fabric-card {
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fabric-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}
.fabric-card .photo-placeholder { min-height: 240px; }
.fabric-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.5s var(--ease);
}
.fabric-card:hover img { transform: scale(1.08); }
.fabric-card h3 {
  padding: 18px 22px;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.06em;
  position: relative;
}
.fabric-card h3::after {
  content: "→";
  position: absolute;
  right: 22px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  color: var(--camel);
}
.fabric-card:hover h3::after { opacity: 1; transform: translateX(0); }

/* ---------- 表（会社情報・沿革） ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 16px;
}
.info-table th {
  width: 200px;
  color: var(--navy);
  font-weight: 600;
  background: var(--bg-light);
  white-space: nowrap;
}

/* ---------- 機械一覧（テーブル不使用・Gridレイアウト） ---------- */
.machine-group { margin-bottom: 48px; }
.machine-group > h3 {
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 6px;
  padding-left: 14px;
  border-left: 4px solid var(--camel);
}
.machine-group > .machine-count { color: var(--text-sub); font-size: 14px; margin-bottom: 20px; padding-left: 18px; }
.machine-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.machine {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.machine:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.machine .machine-model { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.machine .machine-func { font-size: 14px; color: var(--camel); font-weight: 600; margin-bottom: 12px; }
.machine dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 14px;
}
.machine dt { color: var(--text-sub); }
.machine dd { text-align: right; }

/* ---------- 試験設備リスト ---------- */
.testing-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  list-style: none;
}
.testing-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-btn);
  padding: 14px 18px;
  font-size: 15px;
}

/* ---------- フォーム ---------- */
.form-grid { display: grid; gap: 22px; max-width: 720px; }
.form-field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 6px;
}
.required-badge {
  display: inline-block;
  background: var(--camel);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
}
.form-field textarea { min-height: 160px; resize: vertical; }

/* ---------- 生地詳細 ---------- */
.fabric-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.fabric-spec th { width: 140px; }
.fabric-catch { list-style: none; margin-bottom: 28px; }
.fabric-catch li {
  padding: 10px 0 10px 30px;
  position: relative;
  font-size: 17px;
}
.fabric-catch li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 14px;
  height: 3px;
  background: var(--camel);
}

/* ---------- CTA（問い合わせ導線） ---------- */
.cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta h2 { font-size: 28px; letter-spacing: 0.08em; margin-bottom: 14px; }
.cta p { opacity: 0.9; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 56px 0 32px;
  font-size: 14px;
}
.site-footer .footer-name { font-size: 18px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.06em; }
.site-footer address { font-style: normal; opacity: 0.85; line-height: 2; }
.site-footer .footer-nav { margin: 28px 0; display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .footer-nav a { color: var(--white); text-decoration: none; opacity: 0.85; }
.site-footer .footer-nav a:hover { opacity: 1; text-decoration: underline; }
.site-footer .copyright { opacity: 0.55; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; margin-top: 8px; }

/* ---------- ページタイトル（下層ページ共通） ---------- */
.page-title-band {
  background: linear-gradient(rgba(22, 41, 63, 0.72), rgba(22, 41, 63, 0.72)), var(--navy);
  color: var(--white);
  padding: 72px 0;
}
.page-title-band--photo {
  background-image:
    linear-gradient(rgba(22, 41, 63, 0.72), rgba(22, 41, 63, 0.72)),
    url("../img/warehouse-bw.jpg");
  background-size: cover;
  background-position: center;
}
.page-title-band .en {
  display: block;
  color: var(--camel);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.page-title-band h1 { font-size: 36px; letter-spacing: 0.08em; }

/* ---------- 2カラム（写真＋文章） ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------- 注記（プロトタイプ限定・本番では削除） ---------- */
.proto-note {
  background: #fff8ec;
  border: 1px dashed var(--camel);
  border-radius: var(--radius-btn);
  color: #8a6320;
  font-size: 13px;
  padding: 10px 16px;
  margin: 20px 0;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .steps, .fabric-grid { grid-template-columns: 1fr; }
  .split, .fabric-detail { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 27px; }
  .site-header .container { height: auto; flex-direction: column; padding: 12px 16px; gap: 8px; }
  .global-nav ul { flex-wrap: wrap; justify-content: center; gap: 2px; }
  .info-table th { width: 120px; }
  .photo-row { grid-template-columns: 1fr; }
  .photo--tall { height: 320px; }
}
