@charset "UTF-8";

/* =========================================================
   ひさご電材 コーポレートサイト 共通スタイル
   全ページ共通で読み込む。色・余白・部品はここで一括管理。
   ========================================================= */

/* ---- カラー・基本設定（ここを変えると全体に反映） ---- */
:root {
  --ink:      #111417;  /* 見出し・濃い文字 */
  --body:     #111111;  /* 本文 */
  --muted:    #333333;  /* 補助テキスト */
  --faint:    #999999;  /* ラベル・薄い文字 */
  --line:     #ececec;  /* 境界線 */
  --line-2:   #e6e8ea;  /* カード枠線 */
  --bg:       #ffffff;  /* 背景（白） */
  --bg-gray:  #f6f6f5;  /* 薄グレー背景 */
  --bg-green:  #0f6b0f;  /* グリーン背景 */
  --bg-blue:  #0d3050;  /* ブルー背景 */
  --bg-soft:  #fafafa;  /* お問い合わせ背景 */
  --footer:   #666666;  /* フッター背景 */
  --maxw:     1360px;   /* コンテンツ最大幅 */
  --maxw-hf: 2000px; /*ヘッダー最大幅 */
}

/* ---- リセット ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #111; color: #fff; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }
a { color: var(--bg-blue); text-decoration: none; }
a:hover { color: var(--body); }

.mono { font-family: "IBM Plex Mono", monospace; }
.font-mincho { font-family: "Shippori Mincho", serif; }

/* ---- アニメーション ---- */
@keyframes h2-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes h2-fade { from { opacity: 0; } to { opacity: 1; } }
.rise-1 { animation: .8s ease .1s both h2-rise; }
.rise-2 { animation: .8s ease .2s both h2-rise; }
.rise-3 { animation: .8s ease .3s both h2-rise; }
.fade-1 { animation: 1s ease .35s both h2-fade; }

/* =========================================================
   レイアウト部品
   ========================================================= */

/* 中央寄せコンテナ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

/* セクションの縦余白 */
.section { padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(80px, 10vw, 160px); }
.section-gray { background: var(--bg-gray); }

/* セクション見出しブロック */
.section-head { max-width: 720px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-title {
  font-size: clamp(22px, 2.8vw, 33px);
  font-weight: 700; letter-spacing: -.01em; line-height: 1.3;
  margin: 0 0 18px;
}
.section-lead { font-size: 16px; color: var(--muted); font-weight: 400; line-height: 2; margin: 0; }

/* アンカー用オフセット（固定ヘッダー分） */
section[id] { scroll-margin-top: 88px; }

/* ボタン */
.btn {
  display: inline-block; text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 15px 32px; border-radius: 2px;
  border: 1px solid transparent;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-green { background: var(--bg-green); color: #fff; }
.btn-green:hover { color: #fff; }
.btn-blue { background: var(--bg-blue); color: #fff; }
.btn-blue:hover { color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: #d2d6da; }
.btn-lg { padding: 16px 40px; }

/* 下線リンク */
.link-underline {
  text-decoration: none; color: var(--ink);
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  white-space: nowrap;
}

/* 写真プレースホルダー */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
	border-radius: 6px;
	overflow: hidden;
}
.ph-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .1em; color: #a6abb0;
}

/* =========================================================
   ヘッダー / ナビ（CSSのみのハンバーガーメニュー）
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw-hf); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 22px; width: auto; display: block; }

/* ヘッダー直下の全幅写真 */
.full-photo { width: 100%; aspect-ratio: 21 / 6; margin-top: 72px; border-radius: 0; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.site-nav > a { text-decoration: none; color: #3c4147; font-size: 14px; font-weight: 500; }
.site-nav > a.is-active { color: var(--ink); font-weight: 700; }
.site-nav > a.is-cta { color: #fff; background: var(--ink); padding: 10px 20px; border-radius: 2px; }

.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 900px) {
  .nav-burger {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 44px; height: 44px; margin: 0 -10px 0 0; cursor: pointer;
  }
  .nav-burger span {
    display: block; width: 22px; height: 2px; background: #111417;
    transition: transform .24s ease, opacity .18s ease;
  }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(0,0,0,.06);
    padding: 4px 0 10px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .24s ease, transform .24s ease;
  }
  .site-nav > a {
    padding: 15px clamp(20px,5vw,40px); margin: 0; border-radius: 0;
    background: transparent; color: #3c4147; font-weight: 500; font-size: 15px;
    border-top: 1px solid #f2f2f2;
  }
  #nav-toggle:checked ~ .site-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  #nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   ヒーロー
   ========================================================= */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(112px, 13vw, 180px) clamp(20px, 4vw, 56px) 0; }
.hero-title {
  font-size: clamp(22px, 2.8vw, 33px); font-weight: 700; line-height: 1.35;
  letter-spacing: -.01em; margin: 0 0 24px; max-width: 18em;
}
.hero-lead {
  font-size: clamp(14px, 1.2vw, 16px); line-height: 2; color: var(--body);
  font-weight: 300; max-width: 36em; margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(48px, 6vw, 80px); }
.hero-image {
  position: relative; width: 100%; aspect-ratio: 21 / 9;
  border-radius: 3px; overflow: hidden; border: 1px solid #e6e6e6;
  background: repeating-linear-gradient(135deg,#ededed 0,#ededed 16px,#f6f6f6 16px,#f6f6f6 32px);
  display: flex; align-items: center; justify-content: center;
}
.hero-image .ph-label {
  font-size: 13px; letter-spacing: .14em;
  background: #fff; padding: 9px 16px; border-radius: 2px;
  box-shadow: 0 0 0 1px #eaeaea;
}

/* =========================================================
   数字（実績サマリー）
   ========================================================= */
.stats-band { border-top: 1px solid var(--line); margin-top: clamp(72px, 9vw, 140px); }
.stats {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden;
}
.stat { background: #fff; padding: clamp(28px, 3vw, 44px); }
.stat-num { font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stat-unit { font-size: .4em; font-weight: 400; color: var(--faint); margin-left: 8px; }
.stat-desc { font-size: 13px; color: var(--muted); margin-top: 14px; font-weight: 300; }

/* =========================================================
   できること（横並びリスト）
   ========================================================= */
.cap-list { border-top: 1px solid var(--line-2); }
.cap-row {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr) minmax(0,1.6fr);
  gap: clamp(12px, 2.5vw, 40px); align-items: center;
  padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line-2);
}
.cap-title { font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; margin: 0; letter-spacing: -.005em; }
.cap-media { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.cap-desc { font-size: 15px; color: var(--muted); font-weight: 400; margin: 0 0 14px; line-height: 1.9; }
.cap-equip-label { font-size: 14px; color: var(--muted); font-weight: 500; margin: 0 0 6px; letter-spacing: .02em; }
.cap-equip { font-size: 14px; color: var(--muted); font-weight: 400; margin: 0; line-height: 1.9; }
@media (max-width: 720px) { .cap-row { grid-template-columns: 1fr; gap: 12px; } }

/* 製品事例の行（写真は小さめ） */
.case-row {
  display: grid; grid-template-columns: minmax(0,1fr) 180px minmax(0,2fr);
  gap: clamp(12px, 2.5vw, 40px); align-items: center;
  padding: clamp(28px, 3.4vw, 44px) 0 clamp(28px, 3.4vw, 44px) 0px;
  border-bottom: 1px solid var(--line-2);
}
@media (max-width: 720px) {
  .case-row {
    grid-template-columns: 140px minmax(0,1fr);
    padding-left: 0; gap: 16px; align-items: start;
  }
  .case-row .cap-title { grid-column: 1 / -1; }
}

/* =========================================================
   カード（対応業種・実績）
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 1.8vw, 28px); }
.cards-wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.card-media { aspect-ratio: 3 / 2; }
.card-media-43 { aspect-ratio: 4 / 3; }
.card-body { padding: 26px 24px 30px; }
.card-body-sm { padding: 24px; }
.card-title { font-size: 21px; font-weight: 700; margin: 0 0 10px; }
.card-title-sm { font-size: 18px; line-height: 1.5; }
.card-desc { font-size: 14px; color: var(--muted); font-weight: 300; margin: 0; line-height: 1.9; }

/* 実績セクションの見出し行 */
.works-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(40px, 5vw, 64px);
}

/* =========================================================
   お問い合わせ帯
   ========================================================= */
.contact-band { border-top: 1px solid var(--line); background: var(--bg-soft); }
.contact-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 160px) clamp(20px, 4vw, 56px); text-align: center; }
.contact-title { font-size: clamp(22px, 2.8vw, 33px); font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin: 0 0 24px; }
.contact-lead { font-size: clamp(14px, 1.2vw, 16px); color: var(--body); font-weight: 300; line-height: 2; max-width: 40em; margin: 0 auto 40px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 56px; }
.cert-list { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cert {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted);
  border: 1px solid #e0e3e6; padding: 7px 14px; border-radius: 2px;
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: var(--footer); color: #fff; }
.footer-inner { max-width: var(--maxw-hf); margin: 0 auto; padding: clamp(32px, 4vw, 56px) clamp(20px, 4vw, 56px) 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #23272b; }
.footer-label { font-size: 14px; font-weight: bold; color: #dddddd; margin-bottom: 12px; }
.footer-addr { font-size: 14px; color: #9aa0a6; line-height: 1.9; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; }
.footer-copy { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links > a { text-decoration: none; color: var(--faint); font-size: 13px; }

/* =========================================================
   下層ページ共通
   ========================================================= */

/* ページ見出し（会社情報・採用・お問い合わせ の先頭） */
.page-head { padding-top: clamp(120px, 14vw, 190px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-title { font-size: clamp(22px, 2.8vw, 33px); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 18px; }
.page-lead { font-size: clamp(14px, 1.2vw, 16px); color: var(--muted); font-weight: 400; line-height: 2; max-width: 40em; margin: 0; }

/* 区切り・帯 */
.line-top { border-top: 1px solid var(--line); }
.pad-block { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }

/* ブロック小見出し（旧・英語ラベルの置き換え） */
.block-title { font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; letter-spacing: -.005em; margin: 0 0 28px; }

/* 汎用CTA */
.cta { text-align: center; }
.cta-title { font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; margin: 0 0 20px; }
.cta-lead { font-size: clamp(14px, 1.2vw, 16px); color: var(--body); font-weight: 300; line-height: 2; max-width: 34em; margin: 0 auto 32px; }

/* =========================================================
   会社情報ページ
   ========================================================= */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(40px, 5vw, 80px); }

/* 会社概要テーブル */
.spec { border-collapse: collapse; width: 100%; font-size: 15px; }
.spec tr { border-top: 1px solid var(--line); }
.spec tbody tr:last-child { border-bottom: 1px solid var(--line); }
.spec th { text-align: left; font-weight: 400; color: var(--body); padding: 18px 0; width: 34%; vertical-align: top; }
.spec td { padding: 18px 0; color: #3c4147; vertical-align: top; }

/* 拠点・認証リスト */
.info-row { border-top: 1px solid var(--line); padding: 18px 0; }
.info-row-end { border-bottom: 1px solid var(--line); }
.info-label { font-size: 14px; color: var(--body); margin-bottom: 8px; }
.info-text { font-size: 15px; color: #3c4147; line-height: 1.9; }
.note { font-size: 12px; color: var(--ink); margin-top: 10px; }

/* 地図プレースホルダー */
.map-ph {
  width: 100%; aspect-ratio: 24 / 9; border-radius: 3px; overflow: hidden;
  border: 1px solid #e0e0e0;
  background: repeating-linear-gradient(135deg,#e7e7e7 0 14px,#f1f1f1 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.map-ph .ph-label { background: var(--bg-soft); padding: 8px 16px; border-radius: 2px; letter-spacing: .12em; font-size: 12px; }

/* =========================================================
   採用ページ
   ========================================================= */
.media-21 {
  width: 100%; aspect-ratio: 21 / 9; border-radius: 0px; overflow: hidden;
  border: 0px solid #e0e0e0;
  background: repeating-linear-gradient(135deg,#ffffff 0 14px,#ffffff 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.media-21 .ph-label { background: #fff; padding: 0px 0px; border-radius: 0px; box-shadow: 0 0 0 1px #ffffff; letter-spacing: .12em; font-size: 12px; }

.pos-list { border-top: 1px solid var(--line); }
.pos-row { display: grid; grid-template-columns: 88px 1fr; gap: clamp(16px, 3vw, 48px); align-items: start; padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.pos-no { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: #b3b8bd; padding-top: 5px; }
.pos-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: clamp(12px, 2.5vw, 40px); align-items: baseline; }
.pos-title { font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; margin: 0; }
.pos-desc { font-size: 15px; color: var(--body); font-weight: 400; margin: 0; line-height: 1.9; }

/* =========================================================
   お問い合わせページ
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: clamp(40px, 5vw, 88px); align-items: start; }

.form { display: grid; gap: 28px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.field { display: block; }
.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.req { color: #c0392b; }
.input { width: 100%; border: none; border-bottom: 1px solid #d2d6da; padding: 10px 2px; font-size: 16px; color: var(--ink); background: transparent; outline: none; }
.input:focus { border-bottom-color: #111417; }
.textarea { width: 100%; border: 1px solid #d2d6da; border-radius: 2px; padding: 14px; font-size: 16px; color: var(--ink); background: transparent; outline: none; resize: vertical; }
.textarea:focus { border-color: #111417; }
.btn-submit { cursor: pointer; color: #fff; background: var(--ink); border: none; font-size: 15px; font-weight: 500; padding: 16px 48px; border-radius: 2px; }
.btn-submit:hover { background: #000; }

.contact-aside { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 48px); }
.aside-block { margin-bottom: 28px; }
.aside-label { font-size: 13px; color: var(--faint); margin-bottom: 8px; }
.tel-big { text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.aside-note { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 300; }
.aside-fax { font-size: 16px; color: #3c4147; }
.aside-end { border-top: 1px solid var(--line); padding-top: 24px; }

/* =========================================================
   スマホ向け：2カラムを縦積みに
   ========================================================= */
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 8px; }
  .pos-main { grid-template-columns: 1fr; gap: 8px; }
}
