:root {
  --navy: #0f1a33;
  --navy-light: #1c2c52;
  --gold: #c9a55c;
  --text: #222;
  --bg-alt: #f5f6f8;
}

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

body {
  font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

html.splash-active, html.splash-active body { overflow: hidden; height: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Splash ===== */
#splash {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease;
}
#splash.hide {
  opacity: 0;
  pointer-events: none;
}
#splashVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* スマホ縦向きは横長動画の左右が切れるので、全体を収めて上下を黒にする */
@media (orientation: portrait) {
  #splashVideo { object-fit: contain; }
}
#skipBtn {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}
#skipBtn:hover { background: rgba(255,255,255,0.25); }

/* ===== Header ===== */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 0;
}
.logo { line-height: 0; }
.logo img { height: 132px; }

#mainNav { display: flex; align-items: center; gap: 32px; }
#mainNav ul { display: flex; gap: 28px; }
#mainNav a { color: #fff; font-size: 15px; }
#mainNav a:hover { color: var(--gold); }
.btn-contact {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

#menuToggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
#menuToggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

/* ===== Hero ===== */
.hero-image-wrap { position: relative; }
.hero-image { width: 100%; height: auto; display: block; }
.hero-hotspot {
  position: absolute;
  display: block;
  color: transparent;
  font-size: 0;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn-primary:hover { opacity: .85; }

/* ===== Sections ===== */
.section { padding: 80px 20px; }
.section.alt { background: var(--bg-alt); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 30px; color: var(--navy); }
.section-head .en { display: block; color: var(--gold); letter-spacing: 3px; font-size: 13px; margin: 6px 0 16px; }
.section-head p { color: #555; }

/* News / Bid */
.news-bid-heading-image { width: 100%; height: auto; display: block; margin-bottom: 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.news-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e2e2;
  font-size: 14px;
  align-items: center;
}
.news-list .date { color: #999; width: 100px; flex-shrink: 0; }
.news-list .tag {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.bid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bid-table th, .bid-table td { padding: 12px 10px; border-bottom: 1px solid #e2e2e2; text-align: left; }
.bid-table th { background: var(--navy); color: #fff; font-weight: normal; }

/* Business content image */
.business-section { padding: 0; }
.business-image { width: 100%; height: auto; display: block; }
.business-image-wrap { position: relative; }

.work-hotspot {
  position: absolute;
  left: 0;
  width: 29.9%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  background: rgba(0,0,0,0);
  border: none;
  color: transparent;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.work-hotspot:hover, .work-hotspot:focus {
  background: rgba(201,165,92,.35);
  color: #fff;
}

/* 施工写真ギャラリー(モーダル) */
.work-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  padding: 20px;
}
.work-modal.open { opacity: 1; pointer-events: auto; }
.work-modal-inner {
  background: #fff;
  max-width: 800px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  border-radius: 6px;
  padding: 32px;
  position: relative;
}
.work-modal-close {
  position: absolute; top: 10px; right: 14px;
  font-size: 30px; line-height: 1;
  background: none; border: none; color: #999; cursor: pointer;
}
.work-modal-close:hover { color: #333; }
#workModalTitle { color: var(--navy); font-size: 20px; margin-bottom: 20px; padding-right: 30px; }
.work-modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.work-modal-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px; }
.work-modal-empty { grid-column: 1 / -1; text-align: center; color: #888; font-size: 14px; padding: 40px 0; }

/* Company banner image */
.company-banner-image { width: 100%; height: auto; display: block; }

/* Company table */
.company-table { width: 100%; max-width: 700px; margin: 0 auto; border-collapse: collapse; }
.company-table th, .company-table td { padding: 16px; border-bottom: 1px solid #e2e2e2; text-align: left; font-size: 15px; }
.company-table th { width: 180px; color: var(--navy); background: var(--bg-alt); }

/* Contact form */
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}
.contact-form button { align-self: center; margin-top: 10px; }

/* Footer */
#siteFooter {
  background: var(--navy);
  color: #cbd2e0;
  text-align: center;
  padding: 48px 20px;
}
.footer-logo { height: 60px; margin: 0 auto 16px; }
.copyright { font-size: 12px; opacity: .6; margin-top: 8px; }

/* ===== Page hero (sub pages) ===== */
.page-hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.page-hero h1 { font-size: 30px; margin-bottom: 8px; }
.page-hero .en { color: var(--gold); letter-spacing: 3px; font-size: 13px; margin-bottom: 16px; }
.page-hero p:last-child { opacity: .85; font-size: 14px; }

/* ===== Daily flow page ===== */
.daily-image { width: 100%; height: auto; display: block; }

/* ===== 代表あいさつ ===== */
.daihyo-image { width: 100%; height: auto; display: block; }

/* ===== Staff ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}
.staff-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  overflow: hidden;
}
.staff-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 20%;
}
.staff-info { padding: 24px; }
.staff-role { color: var(--gold); font-size: 13px; margin-bottom: 4px; }
.staff-name { color: var(--navy); font-size: 20px; margin-bottom: 12px; }
.staff-bio { font-size: 14px; color: #555; margin-bottom: 16px; }
.staff-quals { font-size: 13px; color: #444; border-top: 1px solid #eee; padding-top: 12px; }
.staff-quals li { padding: 3px 0; }
.staff-quals li::before { content: "・"; color: var(--gold); }

/* 新着情報・入札情報の見出し(スマホのみ表示。PCは見出し画像) */
.col-head {
  display: none;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.col-head .en { font-size: 13px; color: var(--gold); letter-spacing: 2px; font-weight: bold; }
.two-col > div + div .col-head { margin-top: 8px; }

/* 施工写真が見られることを示すバッジ */
.work-badge {
  position: absolute;
  left: 8%;
  bottom: 10%;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 施工写真ボタン(スマホのみ) */
.work-buttons { display: none; background: var(--navy); padding: 24px 16px 32px; text-align: center; }
.work-buttons p { color: #fff; font-size: 16px; margin-bottom: 14px; }
.work-btn {
  display: block;
  width: 100%;
  margin: 0 auto 12px;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
}

/* 1日の流れ(スマホ用) */
.daily-mobile { display: none; background: var(--navy); color: #fff; padding-bottom: 32px; }
.daily-m-hero {
  background: linear-gradient(rgba(15,26,51,.55), rgba(15,26,51,.85)), url(../assets/images/daily/daily_top.jpg) center/cover;
  padding: 40px 16px 32px;
}
.daily-m-hero h1 { font-size: 28px; letter-spacing: 4px; }
.daily-m-hero .en { color: var(--gold); letter-spacing: 3px; font-size: 13px; margin-bottom: 12px; }
.daily-m-hero p:last-child { font-size: 15px; }
.daily-m-list { list-style: none; padding: 8px 16px 0 32px; position: relative; }
.daily-m-list::before { content: ""; position: absolute; left: 20px; top: 16px; bottom: 16px; width: 2px; background: rgba(201,165,92,.5); }
.daily-m-list li { position: relative; background: var(--navy-light); border-radius: 8px; padding: 16px; margin-top: 16px; }
.daily-m-list li::before { content: ""; position: absolute; left: -17px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.daily-m-list .time { color: var(--gold); font-size: 22px; font-weight: bold; letter-spacing: 1px; line-height: 1.2; }
.daily-m-list h3 { font-size: 19px; margin: 4px 0 6px; }
.daily-m-list p.desc { font-size: 15px; color: #dfe4ee; margin-bottom: 12px; }
.daily-m-list img { width: 100%; border-radius: 6px; }

/* トップの代表あいさつボタン(スマホ用) */
.hero-mobile-btn {
  display: none;
  position: absolute;
  left: 23.4%;
  top: 79%;
  background: #14244a;
  color: #fff;
  font-size: 2.4vw;
  line-height: 1;
  letter-spacing: .1em;
  padding: 1.2vw 2.4vw;
  border-radius: 2px;
  white-space: nowrap;
}
.hero-mobile-btn span { margin-left: 2vw; }

/* 会社概要の詳細 */
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.company-h {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 10px;
  margin: 0 0 12px;
}
.company-col .company-h:not(:first-child) { margin-top: 28px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; border-top: 2px solid var(--navy); }
.info-table th, .info-table td { padding: 11px 12px; border-bottom: 1px solid #e2e2e2; text-align: left; vertical-align: middle; }
.info-table th { background: var(--bg-alt); color: var(--navy); font-weight: normal; width: 42%; }
.info-table a { color: var(--navy); text-decoration: underline; }
.count-table th { width: 22%; font-weight: bold; vertical-align: top; }
.count-table td:last-child { text-align: right; white-space: nowrap; width: 4em; }
.work-buttons .work-group { color: var(--gold); font-size: 14px; margin: 18px 0 8px; text-align: left; letter-spacing: .1em; }

/* トップのバナー(1日の流れ・社員紹介・求人募集) */
.top-banners.top-banners-3 { grid-template-columns: 1fr 1fr; max-width: 1200px; padding-top: 80px; }
.top-banner-wide { grid-column: 1 / -1; max-width: 840px; width: 100%; justify-self: center; }
a.work-btn { text-align: center; }

/* 事業内容(スマホ):画像上の事業部ボタン */
.div-btn {
  display: none;
  position: absolute;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  font-size: 2.6vw;
  font-weight: bold;
  font-family: inherit;
  line-height: 1;
  padding: .9vw 2.4vw;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
  animation: badgePulse 2s ease-in-out infinite;
  cursor: pointer;
}
.div-btn.active { background: #fff; animation: none; }
.work-panel { display: none; }
.work-panel.open { display: block; }
.work-hint { color: #fff; font-size: 15px; }
.work-buttons.chosen .work-hint { display: none; }
#workButtons { scroll-margin-top: 70px; }

/* 会社沿革(3列の下に横いっぱい) */
.company-history { grid-column: 1 / -1; max-width: 760px; width: 100%; justify-self: center; }
.history-table th { width: 30%; white-space: nowrap; }
.history-table td { white-space: pre-line; }

/* 新着・入札:見出しから一覧へ */
.news-bid-heading { position: relative; }
.heading-link { position: absolute; top: 0; height: 100%; color: transparent; font-size: 0; }
a.col-head { text-decoration: none; }
.col-head .more { margin-left: auto; font-size: 14px; color: var(--navy); font-weight: normal; }
.list-page { max-width: 900px; }
.back-top { text-align: center; margin-top: 40px; }
.back-top a { color: var(--navy); text-decoration: underline; }

/* 会社概要:ボタンで開く */
.company-toggle-wrap { text-align: center; margin-top: 32px; }
.company-toggle {
  background: var(--navy); color: #fff; border: none; border-radius: 4px;
  font-size: 16px; font-weight: bold; font-family: inherit; letter-spacing: .1em;
  padding: 14px 40px; cursor: pointer;
}
.company-toggle:hover { opacity: .85; }
.section-inner.company-grid { display: none; }
.section-inner.company-grid.open { display: grid; }

/* 事業部ページ */
.division-page { max-width: 1100px; }
.works-desc { color: #555; font-size: 15px; margin: -4px 0 16px; }
.adblue-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 48px; }
.adblue-photo { width: 100%; border-radius: 4px; }
.adblue-text p, .adblue-about p { font-size: 15px; line-height: 2; margin-bottom: 14px; }
.adblue-about { margin-bottom: 48px; }
.ext-link { color: var(--navy); text-decoration: underline; font-weight: bold; }

/* お問い合わせページ */
.contact-tel { text-align: center; font-size: 18px; color: var(--navy); margin-bottom: 32px; }
.contact-tel a { font-weight: bold; font-size: 22px; color: var(--navy); }

/* 求人募集 */
.recruit-banner { width: 100%; max-width: 840px; margin: 0 auto 40px; border-radius: 4px; }
.job-category {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 26px; color: var(--navy); text-align: center;
  margin: 40px 0 20px; letter-spacing: .2em;
}
.job-category::after { content: ""; display: block; width: 60px; height: 3px; background: var(--gold); margin: 10px auto 0; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 420px)); justify-content: center; gap: 24px; }
.job-card { background: #fff; border-top: 4px solid var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 24px 26px; }
.job-label { color: var(--gold); font-size: 13px; letter-spacing: .15em; }
.job-title { color: var(--navy); font-size: 21px; margin-bottom: 14px; }
.job-pay { font-size: 15px; color: var(--navy); }
.job-pay strong { font-size: 26px; color: #b8322b; margin-left: 4px; }
.job-note { font-size: 13px; color: #777; margin-bottom: 14px; }
.job-perks { border-top: 1px solid #eee; padding-top: 12px; }
.job-perks li { font-size: 15px; padding: 4px 0 4px 22px; position: relative; }
.job-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: bold; }
.job-contact { text-align: center; margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn-outline { background: #fff; border: 2px solid var(--gold); }

/* Instagram */
.insta-section { background: var(--bg-alt); }
.insta-box { display: flex; align-items: center; justify-content: center; gap: 40px; }
.insta-qr { width: 200px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.insta-id { font-size: 22px; color: var(--navy); font-weight: bold; margin-bottom: 14px; letter-spacing: .05em; }
.btn-insta {
  display: inline-block;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7);
  color: #fff;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 999px;
}
.btn-insta:hover { opacity: .85; }
.footer-insta { color: #cbd2e0; text-decoration: underline; font-size: 14px; }
#contact { scroll-margin-top: 140px; }

/* 実績紹介 */
.works-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 20px 16px 0; }
.works-tabs a { border: 1px solid var(--navy); color: var(--navy); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.works-tabs a:hover { background: var(--navy); color: #fff; }
.works-cat { scroll-margin-top: 150px; margin-bottom: 56px; }
.works-group { color: var(--gold); font-size: 13px; letter-spacing: .15em; margin-bottom: 2px; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.works-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.photo-view {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.photo-view.open { opacity: 1; pointer-events: auto; }
.photo-view img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* 縦長画像だけのページ(代表あいさつ・企業理念) */
.tall-page { background: var(--navy); }
.tall-image { width: 100%; max-width: 900px; margin: 0 auto; display: block; }

/* トップの企業理念・事業内容バナー */
.top-banners {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 840px;
  gap: 24px;
}
.top-banner { position: relative; display: block; overflow: hidden; border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.top-banner img { width: 100%; transition: transform .4s ease; }
.top-banner:hover img { transform: scale(1.03); }
.top-banner-more {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: #14244a;
  color: #fff;
  font-size: 13px;
  letter-spacing: .1em;
  padding: 5px 14px;
  border-radius: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .logo img { height: 64px; }
  .section { padding: 40px 16px; }
  .news-bid-heading-image { display: none; }
  .col-head { display: flex; }
  .daily-image { display: none; }
  .daily-mobile { display: block; }
  .work-buttons { display: block; }
  .work-badge { display: none; }
  .div-btn { display: block; }
  .business-image-wrap .work-hotspot { pointer-events: none; }
  .hero-mobile-btn { display: block; }
  .top-banners { grid-template-columns: 1fr; gap: 16px; padding: 0 16px 40px; }
  .top-banners.top-banners-3 { grid-template-columns: 1fr; padding-top: 32px; }
  .works-cat { scroll-margin-top: 80px; margin-bottom: 40px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .works-grid img { height: 130px; }
  .adblue-intro { grid-template-columns: 1fr; gap: 16px; }
  .top-banner-more { display: none; }
  .insta-qr { display: none; }
  .insta-text { text-align: center; }
  #contact { scroll-margin-top: 70px; }
  #mainNav { position: fixed; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: flex-start; padding: 20px; gap: 20px; transform: translateY(-150%); transition: transform .3s ease; }
  #mainNav.open { transform: translateY(0); }
  #mainNav ul { flex-direction: column; gap: 16px; }
  #menuToggle { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .info-table { font-size: 14px; }
}
