/* ── リセット・変数 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif; color: #222; background: #fff; line-height: 1.75; font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --navy:   #0B2545;
  --navy2:  #163C6B;
  --green:  #2E7D32;
  --gold:   #C9981C;
  --light:  #F4F6F9;
  --gray:   #666;
  --border: #DDE3ED;
}

/* ── ヘッダー ── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: rgba(11,37,69,.95); backdrop-filter: blur(6px);
  height: 68px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 32px;
}
.logo img { height: 42px; width: auto; }

/* グローバルナビ */
#gnav ul { display: flex; list-style: none; gap: 4px; }
#gnav > ul > li { position: relative; }
#gnav > ul > li > a {
  display: block; color: #ccd5e0; font-size: .8rem;
  padding: 8px 12px; border-radius: 4px;
  transition: background .18s, color .18s;
}
#gnav > ul > li > a:hover,
#gnav > ul > li > a.active { background: rgba(255,255,255,.12); color: #fff; }
#gnav .btn-contact {
  background: var(--green); color: #fff !important;
  padding: 8px 16px; border-radius: 4px;
}
#gnav .btn-contact:hover { opacity: .85; }

/* ドロップダウン — #gnav ul { display:flex } より詳細度を高くして上書き */
#gnav .has-sub .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--navy); min-width: 180px;
  border-radius: 0 0 6px 6px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  flex-direction: column; gap: 0; z-index: 400;
}
/* マウスホバー（デスクトップ） */
@media (hover: hover) {
  #gnav .has-sub:hover .sub-menu { display: flex; }
}
/* JS制御（クリック） */
#gnav .has-sub.is-open .sub-menu { display: flex; }
.sub-menu li a {
  display: block; color: #ccd5e0; font-size: .78rem;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .15s;
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ハンバーガー */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(11,37,69,.98); z-index: 299; padding: 8px 0;
  max-height: calc(100vh - 68px); overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; color: #ccd5e0; padding: 14px 24px; font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── ヒーロー ── */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(8,24,50,.88);
}
.hero-content {
  position: relative; text-align: center; color: #fff; padding: 0 24px; max-width: 860px;
}
.hero-label {
  font-size: .78rem; letter-spacing: .35em; color: var(--gold);
  margin-bottom: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero-label::before, .hero-label::after {
  content: ''; display: block; width: 36px; height: 1px; background: var(--gold); opacity: .7;
}
.hero-title {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.45; letter-spacing: .08em;
  margin-bottom: 24px; text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-title em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: rgba(255,255,255,.85); line-height: 2; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55); font-size: .68rem; letter-spacing: .18em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:.3;transform:scaleY(.5)} }

/* ── ボタン ── */
.btn-primary {
  background: var(--green); color: #fff; font-weight: bold;
  padding: 14px 36px; border-radius: 4px; font-size: .92rem;
  letter-spacing: .05em; box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: opacity .2s, transform .2s; display: inline-block;
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.7); color: #fff; font-weight: bold;
  padding: 14px 36px; border-radius: 4px; font-size: .92rem;
  letter-spacing: .05em; transition: background .2s; display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-navy {
  background: var(--navy); color: #fff; font-weight: bold;
  padding: 12px 32px; border-radius: 4px; font-size: .88rem;
  transition: background .2s; display: inline-block;
}
.btn-navy:hover { background: var(--navy2); }

/* ── セクション共通 ── */
.section { padding: 80px 24px; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: #fff; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  text-align: center; font-size: .72rem; letter-spacing: .3em;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.section-label::before, .section-label::after {
  content: ''; display: block; width: 28px; height: 1px; background: var(--gold); opacity: .65;
}
.section-label.light { color: #fff; }
.section-label.light::before, .section-label.light::after { background: #fff; }
.section-title {
  text-align: center; font-size: clamp(1.4rem, 3vw, 2rem);
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-weight: 900; color: var(--navy); margin-bottom: 48px; line-height: 1.5;
}
.section-title.light { color: #fff; }
.section-title::after {
  content: ''; display: block; width: 36px; height: 3px;
  background: var(--gold); margin: 14px auto 0; border-radius: 2px;
}

/* ── バッジバー ── */
.badge-bar {
  background: var(--navy2); padding: 24px;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.badge-item {
  padding: 14px 32px; color: #fff; font-size: .85rem; font-weight: bold;
  border-right: 1px solid rgba(255,255,255,.15); letter-spacing: .05em;
  display: flex; align-items: center; gap: 8px;
}
.badge-item:last-child { border-right: none; }
.badge-item .bi { color: var(--gold); font-size: 1.2rem; }

/* ── サービスグリッド ── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border-radius: 8px;
  overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.service-img {
  width: 100%; height: 200px;
  background-size: cover; background-position: center; position: relative;
}
.service-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(11,37,69,.65));
}
.service-label {
  position: absolute; bottom: 14px; left: 16px; z-index: 1;
  color: #fff; font-size: .72rem; letter-spacing: .12em; font-weight: bold;
}
.service-body { padding: 22px 22px 26px; }
.service-body h3 { font-size: 1.05rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; font-family: 'Noto Serif JP', serif; }
.service-body p { font-size: .85rem; color: var(--gray); line-height: 1.85; }

/* ── ニュース ── */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex; align-items: baseline; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.news-date { font-size: .78rem; color: var(--gold); font-weight: bold; white-space: nowrap; min-width: 90px; }
.news-tag {
  font-size: .7rem; background: var(--navy); color: #fff;
  padding: 2px 10px; border-radius: 3px; white-space: nowrap;
}
.news-text { font-size: .88rem; color: #333; }
.news-text a:hover { color: var(--green); }

/* ── 社会貢献カード ── */
.contrib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.contrib-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.contrib-img { width: 100%; height: 200px; object-fit: cover; }
.contrib-img-ph { width: 100%; height: 200px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.contrib-body { padding: 20px 22px 24px; }
.contrib-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; font-family: 'Noto Serif JP', serif; }
.contrib-body p { font-size: .85rem; color: var(--gray); line-height: 1.85; }

/* ── 画像グリッド ── */
.img-grid { display: grid; gap: 12px; }
.img-grid-2 { grid-template-columns: repeat(2, 1fr); }
.img-grid-3 { grid-template-columns: repeat(3, 1fr); }
.img-grid-4 { grid-template-columns: repeat(4, 1fr); }
.img-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; }

/* ── ライトボックス ── */
.lightbox-trigger {
  cursor: zoom-in; transition: opacity .2s;
  position: relative; display: block;
}
.lightbox-trigger::after {
  content: '🔍'; position: absolute; bottom: 8px; right: 8px;
  font-size: 1.1rem; background: rgba(0,0,0,.5); border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: #fff; padding: 6px;
}
.lightbox-trigger:hover { opacity: .88; }
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  align-items: center; justify-content: center;
}
#lightbox.is-open { display: flex; }
.lb-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.88);
  cursor: pointer;
}
.lb-box {
  position: relative; max-width: 92vw; max-height: 92vh;
  z-index: 1;
}
.lb-box img {
  max-width: 90vw; max-height: 86vh;
  border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.6);
  object-fit: contain;
}
.lb-close {
  position: absolute; top: -16px; right: -16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ── 会社概要テーブル ── */
.profile-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.profile-table tr { border-bottom: 1px solid var(--border); }
.profile-table th {
  background: var(--light); color: var(--navy); font-weight: 700;
  padding: 16px 20px; width: 200px; text-align: left; vertical-align: top;
}
.profile-table td { padding: 16px 20px; color: #333; line-height: 1.8; }

/* ── 沿革タイムライン ── */
.timeline { position: relative; padding-left: 48px; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item::before {
  content: ''; position: absolute; left: -38px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.tl-year {
  font-size: .8rem; font-weight: 900; color: var(--green);
  letter-spacing: .05em; margin-bottom: 4px;
}
.tl-text { font-size: .88rem; color: #333; line-height: 1.7; }

/* ── 代表挨拶 ── */
.greeting-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.greeting-img { border-radius: 6px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.greeting-img img { width: 100%; }
.greeting-label { color: var(--gold); font-size: .72rem; letter-spacing: .18em; font-weight: 700; margin-bottom: 10px; }
.greeting-wrap h3 { font-family: 'Noto Serif JP', serif; font-size: 1.3rem; font-weight: 900; color: var(--navy); line-height: 1.6; margin-bottom: 24px; }
.greeting-wrap p { font-size: .9rem; color: #444; line-height: 2.1; margin-bottom: 14px; }
.greeting-sign { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--gray); }

/* ── ページヒーロー（サブページ用） ── */
.page-hero {
  padding: 140px 24px 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  text-align: center; color: #fff;
}
.page-hero h1 {
  font-family: 'Noto Serif JP', serif; font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900; letter-spacing: .08em; margin-bottom: 12px;
}
.page-hero .breadcrumb { font-size: .78rem; color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb span { margin: 0 8px; }

/* ── 採用カード ── */
.recruit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.recruit-card {
  background: #fff; border-radius: 8px; padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07); text-align: center;
  border-top: 4px solid var(--green);
}
.recruit-card .icon { font-size: 2.4rem; margin-bottom: 14px; }
.recruit-card h3 { font-size: 1rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.recruit-card p { font-size: .84rem; color: var(--gray); line-height: 1.8; }

/* ── フッター ── */
footer { background: #060f1c; color: #8899aa; }
.footer-top {
  max-width: 1100px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.footer-logo img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .75; }
.footer-logo p { font-size: .8rem; line-height: 1.9; }
.footer-nav h4 { color: #fff; font-size: .82rem; margin-bottom: 14px; letter-spacing: .08em; }
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav ul li a { font-size: .8rem; color: #7788aa; transition: color .18s; }
.footer-nav ul li a:hover { color: #fff; }
.footer-contact h4 { color: #fff; font-size: .82rem; margin-bottom: 14px; }
.footer-contact p { font-size: .8rem; line-height: 2; }
.footer-contact .tel { font-size: 1.2rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 20px 24px; font-size: .72rem; }

/* ── アクセス ── */
.access-wrap { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.access-info dt { font-weight: 700; color: var(--navy); margin-top: 18px; margin-bottom: 4px; font-size: .88rem; }
.access-info dd { font-size: .88rem; color: #333; line-height: 1.75; }
.map-wrap { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.map-wrap iframe { display: block; width: 100%; }

/* ── 採用情報テーブル ── */
.info-grid { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 40px; }
.info-item { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: none; }
.info-label { background: var(--light); padding: 14px 16px; font-size: .83rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; }
.info-value { padding: 14px 20px; font-size: .85rem; color: #333; line-height: 1.8; }
@media (max-width: 600px) {
  .info-item { grid-template-columns: 1fr; }
  .info-label { border-bottom: 1px solid var(--border); }
}

/* ── SDGs バッジ一覧 ── */
.sdgs-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.sdgs-list li {
  background: var(--light); border-left: 3px solid var(--green);
  padding: 8px 16px; font-size: .84rem; border-radius: 0 4px 4px 0;
}

/* ── お問い合わせ ── */
.contact-section-main { background: var(--navy); color: #fff; text-align: center; padding: 80px 24px; }
.contact-tel { font-size: clamp(2rem,5vw,3rem); font-weight: 900; color: var(--gold); letter-spacing: .08em; margin: 12px 0; }
.contact-hours { font-size: .82rem; color: #aab8cc; margin-bottom: 32px; }

/* ── レスポンシブ ── */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contrib-grid { grid-template-columns: 1fr; }
  .recruit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #gnav { display: none; }
  .nav-toggle { display: block; }
  .header-inner { padding: 0 16px; }
  .logo img { height: 34px; }

  .hero-title { letter-spacing: .02em; }
  .service-grid { grid-template-columns: 1fr; }
  .greeting-wrap { grid-template-columns: 1fr; }
  .greeting-img { order: -1; }
  .access-wrap { grid-template-columns: 1fr; }
  .img-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .img-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .recruit-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .badge-item { padding: 10px 16px; font-size: .78rem; flex: 1 1 48%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .section { padding: 52px 16px; }
}
@media (max-width: 480px) {
  .img-grid-4, .img-grid-3, .img-grid-2 { grid-template-columns: 1fr; }
}

/* ── iOS vh 対応 ── */
.hero { height: calc(var(--vh, 1vh) * 100); }
