/*
Theme Name: Fuji Kougyo
Theme URI: https://fujikougyo.com/
Author: 株式会社コネクト
Description: フジ鋼業株式会社 コーポレートサイト専用テーマ。静的デザイン v1（2026-05-28〜09-03）をWordPress化したもの。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: fujikougyo
*/

/* ========================================
   フジ鋼業 新コーポレートサイト デザイン v1 (tungaloy水準)
   PALETTE A: navy #1F3864 / red #C8102E
   方針: tungaloy.com/jp 水準のBtoB機能優先 + コンテンツ密度高め
   2026-05-28 v1
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --navy: #1F3864;
  --navy-dark: #142747;
  --navy-mid: #3B5C8F;
  --navy-light: #EEF2F7;
  --red: #C8102E;
  --red-dark: #A20D24;
  --text-dark: #1A1A1A;
  --text-mid: #4B5563;
  --text-light: #6B7280;
  --border: #E0E0E0;
  --bg-gray: #F5F5F5;
  --bg-alt: #FAFAFA;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a, button { transition: background 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Wireframe Notice ===== */
.wf-notice {
  background: #fffbe6;
  border-bottom: 1px solid var(--red);
  color: var(--text-dark);
  text-align: center;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
}
.wf-notice strong { color: var(--red); }

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Placeholder image ===== */
.ph-image {
  background:
    repeating-linear-gradient(45deg, #e5e7eb, #e5e7eb 10px, #f3f4f6 10px, #f3f4f6 20px);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border: 1px dashed #9ca3af;
  line-height: 1.5;
}

/* ===== Top Bar (上部極小バー) ===== */
/* ===== Top utility bar (slim) ===== */
.top-bar {
  background: var(--bg-gray);
  color: var(--text-mid);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--text-mid); }
.top-bar a:hover { color: var(--navy); }
.top-bar .top-links { display: flex; gap: 18px; align-items: center; }
.top-bar .top-links a { display: inline-flex; align-items: center; gap: 5px; }
.top-bar .top-meta { color: var(--text-light); letter-spacing: 0.08em; font-weight: 700; }

/* ===== Main Header (K's-style: 2-row right stack + tall CTA blocks) ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 200px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-mark {
  width: 46px;
  height: 46px;
  background: var(--red);
  color: var(--white);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-jp {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-dark);
}
.logo-en {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-top: 3px;
}

/* Right stack (utility row above + nav row below) */
.header-right-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
}
.header-utility-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
}
.lang-switch > i {
  font-size: 13px;
  color: var(--text-mid);
}
.lang-switch a {
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 0;
}
.lang-switch a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--red);
  padding-bottom: 0;
}
.lang-switch .sep { color: var(--text-light); }

.header-nav-row {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav a.active::after,
.nav a:hover::after { transform: scaleX(1); }

.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 700;
  border-left: 1px solid var(--border);
  padding-left: 18px;
}
.header-tel:hover { text-decoration: none; opacity: 1; }
.header-tel .tel-num {
  font-size: 17px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0.04em;
}
.header-tel small {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Far right tall CTA blocks (absolute, full header height) */
.header-cta-blocks {
  position: absolute;
  top: 0;
  right: max(0px, calc((100% - 1200px) / 2));
  bottom: 0;
  display: flex;
  z-index: 5;
}
.cta-block {
  width: 92px;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  text-align: center;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.cta-block:first-child { border-left: 0; }
.cta-block:hover { background: var(--red-dark); text-decoration: none; }
.cta-block .cta-icon {
  font-size: 22px;
  display: block;
}
.cta-block .cta-text {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== Section base ===== */
section { position: relative; }
.section {
  padding: 72px 0;
}
.section-alt { background: var(--bg-gray); }
.section-head {
  margin-bottom: 36px;
  border-left: 4px solid var(--red);
  padding-left: 16px;
}
.section-title {
  font-size: 23px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.section-sub {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.16em;
  margin-top: 5px;
  font-weight: 700;
}

/* ===== Top alert / お知らせバナー ===== */
.alert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.alert-card { padding-left: 24px; padding-right: 24px; }
.alert-card {
  background: var(--white);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
  color: inherit;
  transition: background 180ms ease;
  position: relative;
}
.alert-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.alert-card:hover { background: var(--navy-light); }
.alert-card:hover::after { transform: scaleX(1); }
.alert-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.alert-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 1px;
  color: var(--white);
  background: var(--red);
}
.alert-tag.news { background: var(--navy); }
.alert-tag.event { background: var(--navy-mid); }
.alert-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 700;
}
.alert-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ===== Main Visual (フルスクリーン写真型・山南合成化学参考) ===== */
.hero {
  position: relative;
  height: 660px;
  background: var(--navy-dark);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.biz-panel .panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms ease;
}
.biz-panel:hover .panel-bg img { transform: scale(1.045); }
.hero-bg .ph-image {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  font-size: 15px;
  background:
    repeating-linear-gradient(45deg, #2a3f63, #2a3f63 18px, #33486e 18px, #33486e 36px);
  color: rgba(255, 255, 255, 0.72);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 39, 71, 0.14) 0%, rgba(20, 39, 71, 0.04) 38%, rgba(20, 39, 71, 0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 52px;
}
.hero-text-row {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}
.hero-text-row h1 {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.hero-text-row .lead {
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.95);
  max-width: 430px;
  padding-bottom: 8px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 30px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
}
.hero-keywords {
  display: flex;
  font-size: 12px;
  color: var(--white);
}
.hero-keywords span {
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero-keywords span:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  padding-left: 18px;
  margin-left: 18px;
}
.hero-counter {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
}
.hero-counter .sep {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
}


/* ===== Business split (全幅2分割・高部鉄工所参考) ===== */
.biz-section {
  padding: 48px 0 0;
}
.biz-section .section-head {
  margin-bottom: 28px;
  border-left: 4px solid var(--red);
  padding-left: 14px;
}
.biz-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.biz-panel {
  position: relative;
  height: 560px;
  display: block;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
}
.biz-panel:hover { text-decoration: none; }
.biz-panel .panel-bg {
  position: absolute;
  inset: 0;
}
.biz-panel .panel-bg .ph-image {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  font-size: 14px;
  background:
    repeating-linear-gradient(45deg, #3a4a66, #3a4a66 16px, #45587a 16px, #45587a 32px);
  color: rgba(255, 255, 255, 0.6);
}
.biz-panel .panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 39, 71, 0.5);
  transition: background 200ms ease;
}
.biz-panel:nth-child(2) .panel-overlay {
  background: rgba(20, 39, 71, 0.36);
}
.biz-panel:hover .panel-overlay {
  background: rgba(20, 39, 71, 0.66);
}
.panel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 36px;
}
.panel-content .en {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.panel-content .jp {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-top: 12px;
}
.panel-content .divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.7);
  margin: 22px 0;
}
.panel-content .desc {
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.95);
}
.panel-content .mini-stats {
  margin-top: 16px;
  font-size: 12px;
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.panel-content .readmore {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
}
.panel-content .readmore .pill {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  transition: background 220ms ease;
}
.biz-panel:hover .readmore .pill { background: rgba(255, 255, 255, 0.16); }
.panel-content .readmore .line {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}
.panel-content .readmore .line::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
}
.panel-content .domain {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
}
.biz-note {
  font-size: 11px;
  color: var(--text-light);
  padding: 10px 0 14px;
}


/* ===== 中央見出しバリアント ===== */
.section-head.center {
  text-align: center;
  border-left: none;
  padding-left: 0;
}
.section-head.center .section-title {
  font-size: 24px;
}
.section-head.center::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red);
  margin: 16px auto 0;
}

/* ===== About info（分離行テーブル・中央型） ===== */
.about-lead {
  max-width: 860px;
  margin: 0 auto 36px;
}
.about-lead p {
  font-size: 14px;
  line-height: 2.05;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.about-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 10px;
  font-size: 14px;
}
.about-table th {
  background: var(--navy-light);
  border-left: 3px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  width: 220px;
  text-align: center;
  vertical-align: middle;
  padding: 16px 18px;
  letter-spacing: 0.06em;
}
.about-table td {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  color: var(--text-dark);
  padding: 16px 26px;
  vertical-align: middle;
  line-height: 1.8;
}

.about-news-strip {
  max-width: 960px;
  margin: 24px auto 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--red);
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: center;
}
.about-news-strip .pin {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--red);
  color: var(--white);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* ===== Timeline（沿革・分離行テーブル） ===== */
.timeline-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 10px;
  font-size: 14px;
}
.timeline-table th {
  background: var(--navy-light);
  border-left: 3px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  width: 220px;
  text-align: center;
  vertical-align: middle;
  padding: 16px 18px;
  letter-spacing: 0.06em;
}
.timeline-table td {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  color: var(--text-dark);
  padding: 16px 26px;
  vertical-align: middle;
  line-height: 1.8;
}


/* ===== Message feature (代表挨拶・PHILOSOPHY型・写真左ブリード) ===== */
.message-feature {
  background: var(--white);
  padding: 72px 0;
  overflow: hidden;
}
.message-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-right: 48px;
}
.message-feature-photo {
  position: relative;
}
.message-feature-photo .ph-image {
  width: 100%;
  height: 560px;
  border: none;
  font-size: 14px;
}
.message-feature-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.message-feature-photo .caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
  padding-right: 8px;
}
.message-feature-body {
  padding: 24px 0;
}
.en-heading {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 26px;
}
.en-heading .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--navy);
}
.message-feature-body .sub-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 18px;
}
.message-feature-body h3 {
  font-size: 25px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.message-feature-body p {
  font-size: 14px;
  line-height: 2.2;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.message-feature-body .message-name {
  margin: 20px 0 30px;
  font-size: 13px;
  color: var(--text-light);
}
.message-feature-body .message-name strong {
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-left: 10px;
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-dark);
  color: var(--white) !important;
  padding: 18px 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.btn-dark:hover {
  background: var(--navy);
  text-decoration: none;
}

/* 会社情報セクション内の沿革サブブロック */
.history-merged {
  margin-top: 8px;
}


/* ===== News table ===== */
.news-table {
  width: 100%;
  border-top: 2px solid var(--navy);
  border-collapse: collapse;
  font-size: 14px;
}
.news-table th, .news-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.news-table tr:hover { background: var(--bg-alt); }
.news-table .date {
  width: 110px;
  color: var(--text-light);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.news-table .cat {
  width: 90px;
}
.news-table .cat span {
  display: inline-block;
  font-size: 11px;
  color: var(--navy);
  background: var(--navy-light);
  padding: 3px 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.news-table .title { color: var(--text-dark); }
.news-table a {
  color: var(--text-dark);
  text-decoration: none;
}
.news-table a:hover { color: var(--navy); text-decoration: underline; }
/* ===== News lines（TOP・1行リスト型） ===== */
.news-lines {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 2px solid var(--navy);
}
.news-lines a {
  display: grid;
  grid-template-columns: 110px 110px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: background 180ms ease, padding-left 180ms ease;
}
.news-lines a:hover {
  background: var(--navy-light);
  padding-left: 16px;
  text-decoration: none;
  opacity: 1;
}
.news-lines .date {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.news-lines .pill {
  display: inline-block;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 0;
  text-align: center;
  letter-spacing: 0.06em;
}
.news-lines .title {
  font-size: 14px;
  line-height: 1.7;
}
.news-foot {
  text-align: center;
  margin-top: 36px;
}
.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  background: var(--navy-dark);
  color: var(--white) !important;
  border-radius: 999px;
  padding: 18px 44px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.btn-pill-dark:hover {
  background: var(--navy);
  text-decoration: none;
}


/* ===== Contact（カード型フォーム・中央見出し） ===== */
.contact-intro {
  text-align: center;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 36px;
}
.contact-form-card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: 10px;
  padding: 48px 56px;
  box-shadow: 0 10px 30px rgba(31, 56, 100, 0.07);
}
.form-line {
  display: grid;
  grid-template-columns: 170px 52px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.form-line.align-top { align-items: start; }
.form-line .f-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.form-line .f-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.08em;
}
.form-line .f-badge.opt {
  background: var(--text-light);
}
.form-line input, .form-line select, .form-line textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #C6D0DE;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-line input:focus, .form-line select:focus, .form-line textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 56, 100, 0.1);
}
.form-line textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.8;
}
.contact-form-card .submit-row {
  text-align: center;
  margin-top: 32px;
}
.contact-form-card .submit-row button {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 16px 64px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: inherit;
}
.contact-form-card .submit-row button:hover { background: var(--red-dark); }
.contact-sub-row {
  max-width: 1000px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mid);
}
.contact-sub-row .sub-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.contact-sub-row .num {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.contact-sub-row a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}


/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-logo {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.footer-en {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.18em;
  margin-top: 4px;
  font-weight: 700;
}
.footer-addr {
  font-style: normal;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.85;
}
.footer-col h4 {
  font-size: 11px;
  color: var(--white);
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }

/* ===== Footer v2（タノム型・TOPのみ使用） ===== */
.footer-v2 {
  background: var(--navy-dark);
  color: var(--white);
  padding: 64px 0 28px;
}
.footer-v2 .cols {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 1.4fr;
  gap: 40px;
  margin: 0 auto 52px;
}
.footer-v2 h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: var(--white);
}
.footer-v2 .cols ul li {
  margin-bottom: 10px;
}
.footer-v2 .cols a,
.footer-v2 .cols li,
.footer-v2 .cols address {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  text-decoration: none;
  font-style: normal;
  line-height: 1.9;
}
.footer-v2 .cols a:hover {
  text-decoration: underline;
  opacity: 1;
}
.footer-v2 .util-row {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-v2 .util-row a {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.footer-v2 .util-row a:hover { text-decoration: underline; opacity: 1; }
.footer-v2 .util-row .to-top { margin-left: auto; }
.footer-v2 .copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 18px;
}


/* ===== Sub-page: page header ===== */
.page-head {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.page-head .breadcrumb {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.page-head .breadcrumb a { color: var(--text-light); }
.page-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}
.page-head h1 small {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-left: 12px;
  font-weight: 700;
}

/* ===== News list (sub-page) ===== */
.news-list-wrap {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
}
.news-sidebar {
  font-size: 13px;
}
.news-sidebar h4 {
  font-size: 12px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 12px;
  margin-top: 20px;
}
.news-sidebar h4:first-child { margin-top: 0; }
.news-sidebar ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.news-sidebar ul li a {
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
}
.news-sidebar ul li a:hover { color: var(--navy); text-decoration: none; }
.news-sidebar ul li .count {
  color: var(--text-light);
  font-size: 11px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 28px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  background: var(--white);
}
.pagination a:hover { background: var(--bg-gray); text-decoration: none; }
.pagination .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== Contact form (table-style) ===== */
.contact-routing-strip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-routing-strip .col {
  font-size: 13px;
}
.contact-routing-strip .col .label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.contact-routing-strip .col a {
  color: var(--navy);
  font-weight: 700;
}

.form-intro {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--navy);
}

.form-table {
  width: 100%;
  border-top: 2px solid var(--navy);
  border-collapse: collapse;
  font-size: 14px;
}
.form-table th, .form-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.form-table th {
  background: var(--bg-gray);
  color: var(--text-dark);
  font-weight: 700;
  width: 180px;
  letter-spacing: 0.02em;
  vertical-align: top;
  padding-top: 20px;
}
.form-table .required {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 6px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.form-table .optional {
  display: inline-block;
  background: var(--border);
  color: var(--text-mid);
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 6px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table select,
.form-table textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  border-radius: 2px;
}
.form-table input:focus, .form-table select:focus, .form-table textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-table textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}
.form-table .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-table .note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.form-submit {
  text-align: center;
  padding: 28px 0 0;
}
.form-submit button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 56px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}
.form-submit button:hover { background: var(--red-dark); }
.form-submit .privacy-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.7;
}
.form-submit .privacy-note a { color: var(--navy); text-decoration: underline; }

/* ===== Thanks ===== */
.thanks-block {
  padding: 60px 0 80px;
  text-align: center;
}
.thanks-icon {
  font-size: 48px;
  color: var(--red);
  margin-bottom: 18px;
}
.thanks-block h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.thanks-block p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-mid);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-thanks {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.btn-thanks-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-thanks-primary:hover { background: var(--navy-dark); text-decoration: none; }
.btn-thanks-outline {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-thanks-outline:hover { background: var(--bg-gray); text-decoration: none; }


/* =========================================================
   ロゴ画像・事業パネルロゴ・受賞バッジ・製品ギャラリー
   ========================================================= */
.logo-mark-img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* 事業パネル内のブランドロゴ */
.panel-logo {
  height: 46px;
  width: auto;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 14px;
  border-radius: 3px;
}

/* 受賞・認定バッジ */
.awards-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.awards-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.18em;
  white-space: nowrap;
  border-left: 3px solid var(--red);
  padding-left: 12px;
}
.awards-items {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.award-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.award-item img {
  height: 58px;
  width: auto;
}
.award-item span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-mid);
  line-height: 1.5;
}

/* 製品ギャラリー */
.gallery-section { background: var(--bg-gray); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 240ms ease;
}
.gallery-item:hover { box-shadow: 0 8px 24px rgba(31, 56, 100, 0.12); }
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  padding: 13px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-mid);
  text-align: center;
  letter-spacing: 0.04em;
  background: var(--white);
  position: relative;
  z-index: 1;
}


/* =========================================================
   採用情報ページ
   ========================================================= */
.recruit-lead {
  max-width: 860px;
  margin: 0 auto;
}
.recruit-lead p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.recruit-jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
}
.job-card .job-cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--navy-light);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.job-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.job-card > p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-mid);
  margin-bottom: 18px;
  flex: 1;
}
.job-card dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px 12px;
  font-size: 12.5px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.job-card dt {
  font-weight: 700;
  color: var(--navy);
}
.job-card dd {
  color: var(--text-dark);
  line-height: 1.7;
}
.recruit-note {
  max-width: 1040px;
  margin: 24px auto 0;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
}


/* =========================================================
   ニュース記事 詳細ページ
   ========================================================= */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.article-head {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 22px;
  margin-bottom: 32px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.article-meta .date {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.article-meta .pill {
  display: inline-block;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  letter-spacing: 0.06em;
}
.article-head h1 {
  font-size: 27px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.article-body {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-dark);
}
.article-body p { margin-bottom: 22px; }
.article-body h2 {
  font-size: 19px;
  font-weight: 900;
  color: var(--navy);
  border-left: 4px solid var(--red);
  padding-left: 12px;
  margin: 38px 0 18px;
  line-height: 1.5;
}
.article-body ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.article-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.article-body .info-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--navy);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.95;
}
.article-body .info-box dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
}
.article-body .info-box dt { font-weight: 700; color: var(--navy); }
.article-body .info-box dd { color: var(--text-dark); }
.article-body a { color: var(--navy); text-decoration: underline; }

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.article-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.article-nav a:hover { text-decoration: underline; }
.article-nav .to-list {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 999px;
  padding: 13px 32px;
  letter-spacing: 0.06em;
}
.article-nav .to-list:hover { background: var(--navy); text-decoration: none; }
.article-nav .disabled {
  color: var(--text-light);
  opacity: 0.45;
  pointer-events: none;
}


/* ===========================================================
   2026-07-29 追記：実データ反映に伴う要素
   =========================================================== */

/* 受賞バッジ：画像を持たないテキスト型バッジ */
.award-item.text-award {
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.award-item.text-award .award-year {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* 会社情報テーブル内のアクセス補足 */
.about-table .access-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-mid);
}

/* 沿革テーブル：本文が長くなったため行間を調整 */
.timeline-table td { line-height: 1.75; }


/* 記事本文内の写真 */
.article-figure {
  margin: 28px 0;
}
.article-figure img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-mid);
}

/* 受賞バッジ4件の間隔は .awards-items 本体（上）で指定する。
   メディアクエリ外にここで書き足すと、下の RESPONSIVE セクションを上書きしてしまう */

/* 縦長ロゴのバッジ（関西ものづくり新撰）は少し大きめに */
.award-item.logo-tall img { height: 70px; }


/* ===== プライバシーポリシー ===== */
.policy-lead {
  padding: 20px 24px;
  background: var(--navy-light);
  border-left: 3px solid var(--navy);
  margin-bottom: 40px;
}
.policy-lead p { margin: 0; font-size: 14.5px; line-height: 1.9; }

.policy-body h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p {
  font-size: 14.5px;
  line-height: 1.95;
  margin: 0 0 14px;
}
.policy-body ul {
  margin: 0 0 16px;
  padding-left: 1.3em;
}
.policy-body li {
  font-size: 14.5px;
  line-height: 1.9;
  margin-bottom: 7px;
}
.policy-body li strong { color: var(--navy); }

.policy-contact {
  padding: 22px 24px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
}
.policy-contact p:last-child { margin-bottom: 0; }

.policy-date {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: right;
  font-size: 13px;
  color: var(--text-mid);
}


/* 冒頭の ul, ol { list-style: none } をポリシー本文だけ戻す。
   .article-body ul は ::before の赤丸マーカーを使う設計なので触らない
   （list-style を足すと赤丸とdiscの二重マーカーになる） */
.policy-body ul { list-style: disc; }
.policy-body ol { list-style: decimal; }



/* ===== 本文強調（2026-09-03 読みやすさ装飾） ===== */
.about-lead strong, .message-feature-body p strong, .recruit-lead strong, .contact-intro strong, .contact-lead strong {
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(transparent 62%, var(--navy-light) 62%);
  padding: 0 1px;
}
.hero .lead strong, .panel-content .desc strong {
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid rgba(200, 16, 46, 0.9);
  padding-bottom: 1px;
}

/* =========================================================================
   RESPONSIVE  —  レスポンシブ指定はここに集約する（2026-07-31 再編）

   ■ ルール
   1. メディアクエリは**このセクションの中だけ**に書く。上のベース部分や
      ファイル末尾に @media を足さない（後方優先で下の指定を殺すため）
   2. 並び順は「幅の降順」。狭い画面ほど後に置くので、必ず狭い方が勝つ
   3. 新しい指定は該当する幅のブロック内に追記する。新しいブロックは作らない

   ■ 並び
   1200 → 1024 → 960 → 900 → (769-900復元) → 768 → 390
   ========================================================================= */

/* ===== 会社情報 写真2枚 ===== */
.about-photos {
  max-width: 1000px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-photos figure { margin: 0; }
.about-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg-gray);
  display: block;
  border: 1px solid var(--border);
}
.about-photos figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
}

/* ===== 沿革 折り畳み ===== */
.history-fold summary {
  list-style: none;
  cursor: pointer;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--white);
  transition: background 180ms ease, color 180ms ease;
}
.history-fold summary::-webkit-details-marker { display: none; }
.history-fold summary:hover { background: var(--navy); color: var(--white); }
.history-fold summary i { transition: transform 240ms ease; font-size: 12px; }
.history-fold[open] summary { margin-bottom: 24px; }
.history-fold[open] summary i { transform: rotate(180deg); }

/* ===== スリムフッター ===== */
.foot-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.foot-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.foot-brand span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.foot-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
}
.foot-nav a:hover { color: var(--white); }

/* ---------- PC（1200px以下）横幅が詰まる帯の微調整 ---------- */
@media (max-width: 1200px) {
  .header-main { padding-right: 190px; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .message-feature-grid { gap: 40px; padding-right: 32px; }
  .en-heading { font-size: 54px; }
}

/* ---------- タブレット横（1024px以下） ---------- */
@media (max-width: 1024px) {
  .hero { height: 520px; }
  .hero-text-row { gap: 28px; }
  .hero-text-row h1 { font-size: 38px; }
  .hero-text-row .lead { font-size: 13px; max-width: 340px; }
  .biz-panel { height: 460px; }
  .panel-content .en { font-size: 34px; }
  .panel-content { padding: 32px 28px; }
  .message-feature-grid { grid-template-columns: 1fr 1.15fr; gap: 32px; }
  .message-feature-photo img { height: auto; }
  .en-heading { font-size: 46px; }
  .message-feature-body h3 { font-size: 22px; }
}

/* ---------- ナビ格納（960px以下） ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-tel small { display: none; }
}

/* ---------- タブレット縦（900px以下）　※旧5ブロックを統合 ---------- */
@media (max-width: 900px) {
  .hero { height: 540px; }
  .hero-text-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-text-row h1 { font-size: 30px; }
  .hero-keywords { flex-wrap: wrap; row-gap: 8px; }
  .hero-keywords span:not(:first-child) { padding-left: 12px; margin-left: 12px; }
  .hero-counter { white-space: nowrap; }

  /* ヘッダー：CTAは右端の四角ボタンのまま（電話の横） */
  .header-main { padding-right: 104px; min-height: 0; }
  .header-cta-blocks { position: absolute; top: 0; right: 0; bottom: 0; display: flex; }
  .cta-block { width: 84px; flex-direction: column; gap: 5px; padding: 8px 6px; }
  .cta-block .cta-icon { font-size: 18px; }
  .biz-split { grid-template-columns: 1fr; }
  .biz-panel { height: 460px; }
  .panel-content .en { font-size: 30px; }
  .panel-content .mini-stats { flex-direction: column; gap: 6px; }
  .message-feature { padding: 48px 0; }
  .message-feature-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
  .message-feature-photo .ph-image { height: 320px; }
  .en-heading { font-size: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item img { height: 170px; }
  .awards-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .recruit-jobs { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- 769〜900px の復元。上の900px指定が1024px指定を上書きしてしまう帯を明示的に戻す ---------- */
@media (min-width: 769px) and (max-width: 900px) {
  /* ヒーロー：横並びを維持（縦積みにしない） */
  .hero { height: 500px; }
  .hero-text-row { flex-direction: row; align-items: flex-end; gap: 24px; }
  .hero-text-row h1 { font-size: 34px; }
  .hero-text-row .lead { font-size: 12.5px; max-width: 300px; }

  /* ヘッダー：CTAは絶対配置のまま（下段全幅にしない） */
  .site-header { position: sticky; }
  .header-main { padding: 14px 190px 14px 24px; min-height: 76px; }
  .header-cta-blocks {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: auto;
    width: auto;
    display: flex;
    height: auto;
  }
  .cta-block {
    width: 86px;
    flex-direction: column;
    gap: 6px;
    padding: 8px 6px;
  }
  .cta-block .cta-icon { font-size: 20px; }

  /* 事業紹介：2分割を維持 */
  .biz-split { grid-template-columns: 1fr 1fr; }
  .biz-panel { height: 470px; }
  .panel-content .en { font-size: 28px; }
  .panel-content .mini-stats { flex-direction: column; gap: 6px; }

  /* 代表挨拶：2カラムを維持 */
  .message-feature { padding: 56px 0; }
  .message-feature-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    padding: 0 24px;
  }
  .message-feature-photo img { height: auto; }
  .en-heading { font-size: 42px; }
}

/* ---------- スマホ（768px以下）　※旧13ブロックを統合 ---------- */
@media (max-width: 768px) {
  .about-table th, .timeline-table th { width: 110px; padding: 12px 8px; }
  .about-table td, .timeline-table td { padding: 12px 14px; }
  .news-lines a { grid-template-columns: 92px 86px 1fr; gap: 10px; }
  .contact-form-card { padding: 28px 20px; }
  .form-line { grid-template-columns: 1fr; gap: 8px; }
  .form-line .f-badge { width: 52px; }
  .contact-sub-row { grid-template-columns: 1fr; }
  .footer-v2 .cols { grid-template-columns: 1fr; gap: 28px; }
  .container { padding: 0 16px; }
  .alert-grid, .about-row, .message-row, .contact-block, .contact-routing, .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .section { padding: 32px 0; }
  .news-list-wrap, .contact-routing-strip, .form-table .form-row-2 { grid-template-columns: 1fr !important; }
  .form-table th { display: block; width: 100%; }
  .form-table td { display: block; width: 100%; padding-top: 0; }
  /* --- 横スクロール防止（全体） --- */
  html, body { overflow-x: hidden; max-width: 100%; }
  img { max-width: 100%; height: auto; }

  /* --- ヘッダー：CTAは右端の四角ボタン（電話の横）に固定 --- */
  .site-header { position: sticky; width: 100%; overflow-x: hidden; }
  .header-main {
    padding: 10px 150px 10px 14px;
    min-height: 58px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .logo { flex: 0 0 auto; min-width: 0; }
  .header-right-stack { position: static; }
  /* 電話：お問い合わせと同型の全高ブロック（ネイビー）。番号は隠し tel: で発信 */
  .header-tel {
    position: absolute; top: 0; bottom: 0; right: 76px;
    width: 70px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    background: var(--navy);
    color: var(--white);
    border-left: none; padding: 6px 4px; margin: 0;
    z-index: 5;
  }
  .header-tel > div { display: none; }
  .header-tel > i { color: var(--white) !important; font-size: 17px; }
  .header-tel::after { content: "電話"; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; }
  .logo { gap: 8px; }
  .logo-mark { width: 36px; height: 36px; font-size: 7px; }
  .logo-jp { font-size: 14px; letter-spacing: 0.02em; white-space: nowrap; }
  .logo-en { font-size: 7px; letter-spacing: 0.1em; margin-top: 2px; }
  .header-right-stack { align-items: flex-end; gap: 4px; flex: 1 1 auto; min-width: 0; }
  .header-utility-row { gap: 8px; }
  .lang-switch { font-size: 11px; }
  .header-nav-row { gap: 0; }
  .header-cta-blocks {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: auto;
    width: auto;
    display: flex;
    height: auto;
  }
  .cta-block {
    width: 76px;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    font-size: 11px;
  }
  .cta-block .cta-icon { font-size: 17px; margin: 0; }
  .cta-block .cta-text { font-size: 10.5px; letter-spacing: 0.02em; white-space: nowrap; }

  /* --- 上部ユーティリティバー --- */
  .top-bar { font-size: 10px; padding: 5px 0; }
  .top-bar .top-links { gap: 12px; }

  /* --- ヒーロー：高さと文字量を最適化 --- */
  .hero { height: 440px; }
  .hero-content { padding-bottom: 28px; }
  .hero-text-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-text-row h1 {
    font-size: 29px;
    line-height: 1.5;
    letter-spacing: 0.05em;
  }
  .hero-text-row .lead { display: none; }
  .hero-foot {
    margin-top: 18px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-keywords { font-size: 11.5px; flex-wrap: wrap; row-gap: 6px; }
  .hero-keywords span:not(:first-child) { padding-left: 10px; margin-left: 10px; }
  .hero-counter { font-size: 12px; align-self: flex-end; }

  /* --- お知らせ帯：縦積み --- */
  .alert-grid { grid-template-columns: 1fr !important; gap: 1px; }
  .alert-card { padding: 15px 18px; }
  .alert-title { font-size: 14px; }

  /* --- 事業紹介：縦積み・高さ調整 --- */
  .biz-section { padding: 36px 0 0; }
  .biz-section .section-head { margin-bottom: 20px; }
  .biz-split { grid-template-columns: 1fr; }
  .biz-panel { height: auto; min-height: 400px; }
  .panel-content { height: auto; min-height: 400px; padding: 36px 22px 32px; }
  .panel-content .en { font-size: 27px; letter-spacing: 0.16em; }
  .panel-content .jp { font-size: 12px; letter-spacing: 0.22em; margin-top: 8px; }
  .panel-content .divider { height: 24px; margin: 16px 0; }
  .panel-content .desc { font-size: 13.5px; line-height: 2; text-align: left; }
  .panel-content .mini-stats { flex-direction: column; gap: 6px; font-size: 12px; margin-top: 12px; }
  .panel-content .readmore { margin-top: 20px; }
  .panel-content .readmore .pill { padding: 11px 24px; font-size: 11px; letter-spacing: 0.16em; }
  .panel-content .readmore .line { width: 32px; }
  .panel-content .domain { font-size: 10px; margin-top: 12px; }
  .biz-note { padding: 12px 16px; }

  /* --- 代表挨拶：写真上・テキスト下 --- */
  .message-feature { padding: 40px 0; }
  .message-feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
  .message-feature-photo img { height: auto; }
  .message-feature-photo .caption { text-align: center; padding-right: 0; }
  .message-feature-body { padding: 0; }
  .en-heading { font-size: 38px; margin-bottom: 16px; }
  .en-heading .outline { -webkit-text-stroke: 1.5px var(--navy); }
  .message-feature-body .sub-label { font-size: 11px; margin-bottom: 12px; }
  .message-feature-body h3 { font-size: 20px; line-height: 1.65; margin-bottom: 16px; }
  .message-feature-body p { font-size: 14px; line-height: 2.05; }
  .message-feature-body .message-name { margin: 16px 0 22px; }
  .message-feature-body .message-name strong { font-size: 16px; }
  .btn-dark { padding: 15px 28px; font-size: 13px; width: 100%; justify-content: center; }

  /* --- 会社情報・沿革テーブル：縦積みカード化 --- */
  .section-head.center .section-title { font-size: 22px; }
  .about-lead { margin-bottom: 24px; }
  .about-lead p { font-size: 14px; line-height: 2; }
  .about-table, .timeline-table { border-spacing: 0 8px; font-size: 14px; }
  .about-table tr, .timeline-table tr { display: block; margin-bottom: 8px; }
  .about-table th, .timeline-table th {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 14px;
    font-size: 13px;
  }
  .about-table td, .timeline-table td {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
  }
  .about-news-strip { padding: 12px 14px; font-size: 12px; align-items: flex-start; }
  .about-news-strip .pin { margin-top: 2px; }

  /* --- ニュース：日付とタグを1行に、タイトルを次行に --- */
  .news-lines a {
    grid-template-columns: auto 1fr;
    grid-template-areas: "date pill" "title title";
    gap: 8px 10px;
    padding: 16px 4px;
  }
  .news-lines .date { grid-area: date; font-size: 12.5px; }
  .news-lines .pill { grid-area: pill; justify-self: start; font-size: 11px; padding: 3px 14px; }
  .news-lines .title { grid-area: title; font-size: 14.5px; line-height: 1.7; }
  .news-foot { margin-top: 24px; }
  .btn-pill-dark { gap: 20px; padding: 15px 32px; font-size: 13px; }

  /* --- お問い合わせフォーム --- */
  .contact-intro { font-size: 14px; margin-bottom: 24px; }
  .contact-form-card { padding: 24px 18px; border-radius: 8px; }
  .form-line {
    grid-template-columns: 1fr auto;
    grid-template-areas: "label badge" "input input";
    gap: 8px;
    margin-bottom: 18px;
    align-items: center;
  }
  .form-line .f-label { grid-area: label; font-size: 13px; }
  .form-line .f-badge { grid-area: badge; width: 46px; font-size: 9px; }
  .form-line input, .form-line select, .form-line textarea {
    grid-area: input;
    font-size: 16px; /* iOS自動ズーム防止 */
    padding: 12px 14px;
  }
  .form-line textarea { min-height: 130px; }
  .contact-form-card .submit-row button { width: 100%; padding: 15px 20px; font-size: 14px; }
  .contact-sub-row { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
  .contact-sub-row .num { font-size: 20px; }

  /* --- フッター --- */
  .footer-v2 { padding: 40px 0 20px; }
  .footer-v2 .cols { grid-template-columns: 1fr; gap: 26px; margin-bottom: 28px; }
  .footer-v2 h4 { font-size: 13.5px; margin-bottom: 10px; }
  .footer-v2 .cols a, .footer-v2 .cols li, .footer-v2 .cols address { font-size: 13.5px; line-height: 1.9; }
  .footer-v2 .cols ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
  .footer-v2 .cols ul li { margin-bottom: 0; }
  .footer-v2 .util-row { gap: 14px 16px; padding: 16px 0; }
  .footer-v2 .util-row a { font-size: 11px; }
  .footer-v2 .util-row .to-top { margin-left: 0; }
  .footer-v2 .copyright { font-size: 10px; }

  /* --- 共通の詰め --- */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 22px; }
  .wf-notice { font-size: 10px; padding: 6px 12px; line-height: 1.5; }
  .logo-mark-img { height: 26px; }
  .panel-logo { height: 36px; margin-bottom: 12px; padding: 6px 10px; }
  .gallery-item img { height: 150px; }
  .gallery-item figcaption { padding: 10px 8px; font-size: 12.5px; }
  .about-photos { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .about-photos img { height: auto; }
  .history-fold summary { font-size: 13px; padding: 14px 16px; }
  .foot-slim { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 24px; }
  .foot-nav { gap: 8px 20px; }
  .awards-row { padding: 20px 0 26px; gap: 14px; }
  .awards-items { gap: 20px; }
  .award-item img { height: 46px; }
  .award-item span { font-size: 11.5px; }
  .recruit-lead p { font-size: 13.5px; line-height: 1.95; }
  .job-card { padding: 22px 20px; }
  .job-card h3 { font-size: 16px; }
  .job-card > p { font-size: 13px; }
  .job-card dl { grid-template-columns: 70px 1fr; font-size: 12px; }
  .recruit-note { font-size: 11px; padding: 0 4px; }
  .article-wrap { padding: 28px 16px 44px; }
  .article-head h1 { font-size: 20px; line-height: 1.65; }
  .article-head { padding-bottom: 16px; margin-bottom: 24px; }
  .article-body { font-size: 14px; line-height: 2; }
  .article-body h2 { font-size: 17px; margin: 30px 0 14px; }
  .article-body .info-box { padding: 16px 18px; }
  .article-body .info-box dl { grid-template-columns: 1fr; gap: 2px; }
  .article-body .info-box dd { margin-bottom: 10px; }
  .article-nav { flex-direction: column-reverse; gap: 14px; }
  .article-nav .to-list { width: 100%; text-align: center; }
  .article-nav-side {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
  }
  .awards-items { gap: 16px 20px; }
  .award-item.text-award {
    padding-left: 0;
    border-left: none;
  }
  .award-item.text-award .award-year { font-size: 19px; }
  .news-table, .news-table tbody, .news-table tr, .news-table td { display: block; width: 100%; }
  .news-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .news-table tr:last-child { border-bottom: none; }
  .news-table td {
    padding: 0;
    border-bottom: none;
  }
  .news-table .date {
    display: inline-block;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
  }
  .news-table .cat {
    display: inline-block;
    width: auto;
    vertical-align: middle;
  }
  .news-table .title {
    margin-top: 7px;
    line-height: 1.65;
  }
  .award-item.logo-tall img { height: 56px; }
  .policy-lead { padding: 16px 18px; }
  .policy-body h2 { font-size: 16px; margin-top: 32px; }
  .policy-body p, .policy-body li { font-size: 14px; }
  .policy-contact { padding: 18px; }
}

/* ---------- 小型スマホ（390px以下） ---------- */
@media (max-width: 390px) {
  .logo-jp { font-size: 13px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-en { display: none; }
  .header-main { padding-right: 138px; gap: 6px; }
  .cta-block { width: 70px; }
  .header-tel { width: 64px; right: 70px; }
  .hero { height: 420px; }
  .hero-text-row h1 { font-size: 26px; }
  .panel-content .en { font-size: 24px; }
  .en-heading { font-size: 33px; }
  .footer-v2 .cols { grid-template-columns: 1fr; }
  .cta-block .cta-text { font-size: 11px; }
}
