/* ============================================================
   江戸商事 コーポレートサイト  /  style.css
   素のHTML+CSS構成。後続でPHPを差し込むことを想定。
   ============================================================ */

/* ---------- 1. CSS変数（デザイントークン） ---------- */
:root {
  --color-bg: #ffffff;
  --color-fg: #0f172a;
  --color-fg-soft: rgba(15, 23, 42, 0.7);
  --color-fg-faint: rgba(15, 23, 42, 0.6);
  --color-navy: #0f2c5c;
  --color-navy-dark: #081a3a;
  --color-navy-light: #1e4a8a;
  --color-accent: #d9531e;
  --color-accent-dark: #a83f15;
  --color-muted: #f5f7fa;
  --color-border: #e5e7eb;

  --max-w: 1280px;
  --pad-x: 1rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.08);

  --transition: 150ms ease-in-out;
}

/* ---------- 2. リセット & ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-feature-settings: "palt";
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }

/* ---------- 3. コンテナ（最大幅 1280px） ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* ---------- 4. ヘッダー & ナビ ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  transition: color var(--transition);
}
.brand:hover { color: var(--color-navy-light); }

.global-nav {
  display: none;
}
.global-nav a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.global-nav a:hover { background: var(--color-muted); color: var(--color-navy); }

@media (min-width: 768px) {
  .global-nav {
    display: flex;
    gap: 1.25rem;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-btn-text {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background var(--transition);
}
.cta-btn-text:hover { background: var(--color-accent-dark); }
@media (min-width: 640px) { .cta-btn-text { display: inline-flex; } }

.cta-btn-icon {
  display: inline-flex;
  padding: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cta-btn-icon:hover { background: var(--color-accent-dark); }
@media (min-width: 640px) { .cta-btn-icon { display: none; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-fg);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--color-muted); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* モバイル時のメニュー展開 */
@media (max-width: 767px) {
  .global-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: absolute;
    inset-inline: 0;
    top: 4rem;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  .global-nav.is-open a {
    display: block;
    padding: 0.5rem 0.75rem;
  }
}

/* ---------- 5. ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: #fff;
}
/* 背景画像3枚スライド (CSS-only fade)
   現在は placeholder gradient。実画像 (building.jpg/datacenter.jpg/factory.jpg) を
   /images/hero/ 配下に置けば、各 .hero-slide-N の background を差替えるだけで自動反映。 */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-fade 18s infinite;
}
.hero-slide-1 {
  background-image: url('../images/hero/building.jpg');
  animation-delay: 0s;
}
.hero-slide-2 {
  background-image: url('../images/hero/datacenter.png?20260713');
  animation-delay: 6s;
}
.hero-slide-3 {
  background-image: url('../images/hero/factory.jpg');
  animation-delay: 12s;
}
@keyframes hero-fade {
  0% { opacity: 0; }
  5%, 28% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 上は薄く (画像を見せる)、 下に向かって少し濃くする (テキスト下地)、
     さらにオレンジのアクセントは弱め。 
  background:
    linear-gradient(180deg, rgba(15, 44, 92, 0.15) 0%, rgba(15, 44, 92, 0.35) 50%, rgba(15, 44, 92, 0.55) 100%),
    radial-gradient(circle at 30% 20%, rgba(217, 83, 30, 0.10), transparent 55%);*/
  pointer-events: none;
}
.hero > .container {
  position: relative;
  z-index: 2;
}

/* 改行制御: 小画面で改行を出すか出さないか */
.br-sm { display: none; }
@media (min-width: 640px) { .br-sm { display: inline; } }
.hero-inner {
  position: relative;
  display: grid;
  min-height: 60vh;
  align-items: center;
  gap: 2rem;
  padding-block: 5rem;
}
.hero-content { max-width: 48rem; }
.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  /* オーバーレイを薄くしたぶん、テキスト自体に陰影を付けて可読性確保 */
  text-shadow: 0 2px 16px rgba(0, 0, 0, 1), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .hero-inner {
    min-height: 68vh;
    padding-block: 7rem;
  }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.125rem; }
}

/* ---------- 6. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-back { background: #888; color: #fff; }
.btn-back:hover { opacity:0.7; }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline-on-dark {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-on-dark:hover { background: #fff; color: var(--color-navy); }
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn-outline:hover { background: var(--color-navy); color: #fff; }

/* ---------- 7. リード文セクション ---------- */
.lead-section {
  padding-block: 3rem;
  text-align: center;
}
.lead-section p {
  max-width: 48rem;
  margin-inline: auto;
  line-height: 1.8;
  color: var(--color-fg-soft);
}
.lead-section strong { color: var(--color-navy); }
@media (min-width: 768px) {
  .lead-section { padding-block: 4rem; }
  .lead-section p { font-size: 1.125rem; }
}

/* ---------- 8. セクション共通 ---------- */
.section {
  padding-block: 4rem;
}
.section.bg-muted { background: var(--color-muted); }
.section.bg-navy { background: var(--color-navy); color: #fff; }

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
}
.section-title .accent-bar {
  display: block;
  width: 3rem;
  height: 0.25rem;
  background: var(--color-accent);
  margin: 0.75rem auto 0;
}
.section-title .subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-fg-soft);
}
.section.bg-navy .section-title h2 { color: #fff; }
.section.bg-navy .section-title .subtitle { color: rgba(255, 255, 255, 0.8); }

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
  .section-title { margin-bottom: 2.5rem; }
  .section-title h2 { font-size: 1.875rem; }
}

/* ---------- 9. 選ばれる理由 (Strengths) ---------- */
.strength-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.strength-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow var(--transition);
}
.strength-card:hover { box-shadow: var(--shadow-md); }
.strength-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(15, 44, 92, 0.1);
  color: var(--color-navy);
}
.strength-card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}
.strength-card .value {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}
.strength-card .desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-fg-soft);
  line-height: 1.6;
}
@media (min-width: 640px) {
  .strength-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .strength-list { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 10. 取扱製品 (Products) ---------- */
.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  height: 100%;
}
.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}
.product-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(217, 83, 30, 0.1);
  color: var(--color-accent);
}
.product-card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}
.product-card .short {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
}
.product-card .desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-fg-soft);
  line-height: 1.6;
  flex: 1;
}
.product-card .more {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  transition: color var(--transition);
}
.product-card:hover .more { color: var(--color-accent); }
.product-card .more svg { transition: transform var(--transition); }
.product-card:hover .more svg { transform: translateX(0.125rem); }
@media (min-width: 640px) {
  .product-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .product-list { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 11. お知らせ (News) ---------- */
.news-list {
  max-width: 48rem;
  margin-inline: auto;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.news-list li {
  border-top: 1px solid var(--color-border);
}
.news-list li:first-child { border-top: 0; }
.news-list a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  transition: background var(--transition);
}
.news-list a:hover { background: var(--color-muted); }
.news-list time {
  flex-shrink: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--color-fg-faint);
}
.news-list .badge {
  width: fit-content;
  padding: 0.125rem 0.625rem;
  background: rgba(15, 44, 92, 0.1);
  color: var(--color-navy);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}
.news-list .title {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
  transition: color var(--transition);
}
.news-list a:hover .title { color: var(--color-accent); }
@media (min-width: 640px) {
  .news-list a {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
  }
  .news-list .title { font-size: 1rem; }
}
.news-more {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---------- 12. CTA セクション ---------- */
.cta-section {
  background: var(--color-navy);
  color: #fff;
  padding-block: 4rem;
}
.cta-section .inner {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}
.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
}
.cta-section p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}
.cta-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; justify-content: center; }
}
@media (min-width: 768px) {
  .cta-section { padding-block: 5rem; }
  .cta-section h2 { font-size: 1.875rem; }
  .cta-section p { font-size: 1.125rem; }
}

/* ---------- 13. フッター ---------- */
.site-footer {
  margin-top: auto;
  background: var(--color-navy);
  color: #fff;
  padding-block: 3rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-company .name {
  font-size: 1.125rem;
  font-weight: 700;
}
.footer-company address {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}
.footer-company a { color: #fff; font-weight: 500; transition: color var(--transition); }
.footer-company a:hover { color: var(--color-accent); }
.footer-sitemap .heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}
.footer-sitemap ul {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
}
.footer-sitemap a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-sitemap a:hover { color: var(--color-accent); }
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-block: 2rem;
}
.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 14. ページヒーロー (トップ以外の各ページ共通) ----------
   トップと同じ building.jpg を背景、 ただしフィルターは強めにかけて
   テキスト可読性を最優先 (情報表示が主目的のため画像は雰囲気重視) */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-navy);
  background-image: url('../images/hero/building.jpg');
  background-size: cover;
  background-position: center;
  padding-block: 3rem;
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 44, 92, 0.75), rgba(15, 44, 92, 0.85));
}
.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.page-hero .lead {
  margin-top: 1rem;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
  .page-hero { padding-block: 4rem; }
  .page-hero h1 { font-size: 2.25rem; }
}

.breadcrumb {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumb li::after {
  content: "›";
  margin-inline-start: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb li:last-child::after { content: none; }
.breadcrumb li:last-child {
  color: #fff;
  font-weight: 500;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------- 15. 沿革タイムライン (history page) ---------- */
.history-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}
.history-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}
.history-list li:first-child { border-top: 0; }
.history-list time {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}
.history-list .badge-cat {
  display: inline-block;
  margin-inline-end: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}
.history-list .badge-cat.b-founding,
.history-list .badge-cat.b-anniversary {
  background: rgba(217, 83, 30, 0.15);
  color: var(--color-accent);
}
.history-list .badge-cat.b-office,
.history-list .badge-cat.b-leadership {
  background: rgba(15, 44, 92, 0.1);
  color: var(--color-navy);
}
.history-list .badge-cat.b-license,
.history-list .badge-cat.b-merger,
.history-list .badge-cat.b-capital {
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-fg-soft);
}
.history-list .badge-cat.b-certification {
  background: #d1fae5;
  color: #065f46;
}
.history-list .badge-cat.b-investment {
  background: #fef3c7;
  color: #92400e;
}
.history-list .desc {
  font-size: 0.875rem;
  color: var(--color-fg-soft);
  line-height: 1.6;
}
@media (min-width: 640px) {
  .history-list li {
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1rem 1.5rem;
  }
}

/* ---------- 16. 会社概要 (代表挨拶 / 会社情報 / 拠点) ---------- */
.container-narrow { max-width: 56rem; margin-inline: auto; }
.message-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.message-photo .photo-placeholder {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 44, 92, 0.1), rgba(217, 83, 30, 0.1));
  color: rgba(15, 44, 92, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
.message-photo .repr-name {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}
.message-body p {
  line-height: 1.9;
  color: var(--color-fg-soft);
  font-size: 1rem;
}
.message-body p + p { margin-top: 1rem; }
@media (min-width: 768px) {
  .message-grid { grid-template-columns: 1fr 2fr; gap: 2.5rem; }
}

.info-table {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding-block: 1rem;
  border-top: 1px solid var(--color-border);
}
.info-row:first-child { border-top: 0; }
.info-row dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}
.info-row dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-fg-soft);
}
@media (min-width: 640px) {
  .info-row { grid-template-columns: 1fr 3fr; gap: 1.5rem; }
}

.office-list { display: grid; gap: 3rem; }
.office {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.office-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.office-pin {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(217, 83, 30, 0.1);
  color: var(--color-accent);
  flex-shrink: 0;
}
.office h3 { font-size: 1.25rem; font-weight: 700; color: var(--color-navy); }
.office-meta { display: grid; gap: 0.75rem; margin-top: 1rem; font-size: 0.875rem; }
.office-meta dd { margin: 0; line-height: 1.6; color: var(--color-fg-soft); }
.office-meta a { color: var(--color-navy); font-weight: 500; }
.office-meta a:hover { color: var(--color-accent); }
.meta-row { display: flex; align-items: center; gap: 0.75rem; }
.meta-row dt { color: var(--color-fg-faint); }
.office-access {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-muted);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-fg-soft);
}
.office-access ul li { line-height: 1.6; }
.office-map {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.office-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
@media (min-width: 768px) {
  .office { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
  .office-map iframe { height: 100%; min-height: 280px; }
}

/* ---------- 17. 有資格者テーブル ---------- */
.quals-table-wrap {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.quals-table { width: 100%; border-collapse: collapse; }
.quals-table thead { background: var(--color-navy); color: #fff; }
.quals-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
}
.quals-table th.num { text-align: right; }
.quals-table td {
  padding: 1rem;
  /*border-top: 1px solid var(--color-border);*/
  font-size: 0.875rem;
  color: var(--color-fg);
}
.quals-table tbody tr:nth-child(even) { background: var(--color-muted); }
.quals-table td.num { text-align: right; }
.quals-table .count {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-right: 0.25rem;
}
@media (min-width: 640px) {
  .quals-table th, .quals-table td { padding: 1rem 1.5rem; }
}

/* ---------- 18. 主要取引先 ---------- */
.client-groups { display: grid; gap: 2.5rem; }
.client-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}
.client-group h3 svg { color: var(--color-accent); }
.client-count {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-fg-faint);
}
.client-items {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.client-item {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-fg-soft);
}
/* 仕入先 (notes 付き) は notes が長いので 1〜2 列 */
.client-items.supplier-list { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .client-items.supplier-list { grid-template-columns: repeat(2, 1fr); }
}
.client-item.has-notes {
  padding: 1rem 1.25rem;
  text-align: left;
}
.client-item .client-name {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}
.client-item .client-notes {
  font-size: 0.75rem;
  color: var(--color-fg-soft);
  line-height: 1.65;
}
/* 納入先 (社名のみ) は muted 背景でコンパクトに */
.client-items.name-list .client-item {
  background: var(--color-muted);
  text-align: center;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
}
.client-pending {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-muted);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-fg-faint);
  text-align: center;
}
.muted-note {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--color-muted);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--color-fg-soft);
  line-height: 1.6;
}
@media (min-width: 640px) { .client-items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .client-items { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 19. お問合せ ---------- */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.contact-method {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.contact-icon {
  margin: 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(217, 83, 30, 0.1);
  color: var(--color-accent);
}
.contact-method h3 { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; color: var(--color-navy); }
.contact-method p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-fg-soft); line-height: 1.6; }
.contact-method .big-phone { font-size: 1.25rem; font-weight: 700; }
.contact-method .big-phone a { color: var(--color-accent); }
.contact-method .muted { font-size: 0.75rem; color: var(--color-fg-faint); }
@media (min-width: 768px) { .contact-methods { grid-template-columns: repeat(3, 1fr); } }

.contact-form {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  /* form 内のすべての縦間隔を form-field の margin-top で一元管理 */
}
.form-field {
  margin-top: 1.25rem;
  /* 内部の label + input の整列を保つため block コンテキスト */
}
.form-field:first-child { margin-top: 0; }
/* grid (.form-row) 内では grid の gap が間隔を担うので
   form-field 自身の margin-top はクリアして二重マージンを防ぐ */
.form-row .form-field { margin-top: 0; }
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}
.form-field .req { color: var(--color-accent); margin-inline-start: 0.125rem; }
.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.5;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--color-fg);
  /* 高さを揃えるため box-sizing: border-box (グローバルで既に設定済) */
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field select {
  /* 矢印用の余白 (ブラウザ標準矢印を残しつつ右側を確保) */
  padding-right: 2.25rem;
  appearance: auto;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 2px rgba(15, 44, 92, 0.18);
}
/* form-row 自体の上マージンは grid の gap に合わせず統一 1.25rem */
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; align-items: start; }
.form-note {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-muted);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-fg-soft);
  line-height: 1.6;
}
.form-actions { margin-top: 1.5rem; text-align: center; }
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 2rem; }
}

/* ---------- 20. サンクスページ ---------- */
.thanks-card {
  max-width: 40rem;
  margin-inline: auto;
  padding: 2.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.thanks-icon {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(217, 83, 30, 0.1);
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.thanks-card h2 { margin-top: 0; font-size: 1.5rem; color: var(--color-navy); }
.thanks-card p { margin-top: 0.75rem; color: var(--color-fg-soft); line-height: 1.7; }
.thanks-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.link-accent { color: var(--color-accent); font-weight: 700; text-decoration: underline; }
.muted { color: var(--color-fg-faint) !important; }

/* ---------- 21. 取扱製品 一覧 (lg cards) ---------- */
.product-list-lg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.product-card-lg {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  height: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.product-card-lg:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}
.product-icon-lg {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(217, 83, 30, 0.1);
  color: var(--color-accent);
  flex-shrink: 0;
}
.product-card-lg-head { margin-top: 1.5rem; }
.product-card-lg-head h2 { font-size: 1.25rem; font-weight: 700; color: var(--color-navy); }
.product-card-lg-head .short { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 500; color: var(--color-accent); }
.product-card-lg .desc {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-fg-soft);
  line-height: 1.7;
  flex: 1;
}
.product-card-lg .more {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}
.product-card-lg:hover .more { color: var(--color-accent); }
.product-card-lg .more svg { transition: transform var(--transition); }
.product-card-lg:hover .more svg { transform: translateX(0.125rem); }
@media (min-width: 768px) { .product-list-lg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .product-list-lg { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 22. 製品カテゴリ詳細 ---------- */
.product-detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.product-detail-head .short { font-size: 0.875rem; font-weight: 500; color: var(--color-accent); }
.product-detail-head h2 { margin-top: 0.25rem; font-size: 1.5rem; font-weight: 700; color: var(--color-navy); }

.product-detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.product-detail-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.product-detail-card.has-image { padding: 0; }
.product-detail-card.has-image .product-detail-body { padding: 1.5rem; }
.product-image {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.product-image img {
  max-width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
}
.product-detail-card .meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-fg-faint);
  font-weight: 500;
}
.product-detail-card h3 {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}
.product-detail-card .desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-fg-soft);
  line-height: 1.6;
}
.features {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.features li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-fg);
}
.features svg { color: var(--color-accent); }
.external-note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(217, 83, 30, 0.05);
  border: 1px solid rgba(217, 83, 30, 0.3);
  border-radius: var(--radius-md);
}
.external-note p { font-size: 0.875rem; font-weight: 500; color: var(--color-navy); }
.external-note a {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.external-note a:hover { text-decoration: underline; }
@media (min-width: 768px) { .product-detail-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 23. お知らせ一覧/詳細 ---------- */
.news-full-list {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.news-full-list li { border-top: 1px solid var(--color-border); }
.news-full-list li:first-child { border-top: 0; }
.news-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 0.5rem;
  transition: background var(--transition);
}
.news-row:hover { background: var(--color-muted); }
.news-row time {
  flex-shrink: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--color-fg-faint);
}
.news-row .badge {
  width: fit-content;
  padding: 0.125rem 0.625rem;
  background: rgba(15, 44, 92, 0.1);
  color: var(--color-navy);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}
.news-row .title {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
  transition: color var(--transition);
}
.news-row:hover .title { color: var(--color-accent); }
@media (min-width: 640px) {
  .news-row { flex-direction: row; align-items: center; gap: 1.5rem; padding: 1.25rem 1rem; }
  .news-row .title { font-size: 1rem; }
}

.news-detail-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.news-detail-head time {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--color-fg-faint);
}
.news-detail-head .badge {
  padding: 0.125rem 0.625rem;
  background: rgba(15, 44, 92, 0.1);
  color: var(--color-navy);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}
.news-detail-body {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--color-fg-soft);
  line-height: 1.9;
  white-space: pre-line;
}
.news-detail-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy);
}
.back-link:hover { color: var(--color-accent); }

/* ---------- 24. ユーティリティ ---------- */
.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;
}
.text-center { text-align: center; }
