@charset "UTF-8";
/* ============================================================
   株式会社半布里産業 コーポレートサイト
   Theme: ロゴブルー × アクセントオレンジ
   ============================================================ */

:root {
  /* Brand colors（ロゴから抽出） */
  --blue-sky:   #2EB2FF;   /* ロゴの明るいブルー */
  --blue-main:  #1B7FD4;   /* メインブルー */
  --blue-deep:  #0E42A7;   /* ロゴの濃紺 */
  --orange:     #FF6B0D;   /* ロゴのオレンジ球 */
  --orange-dark:#E55A00;
  --ink:        #20242B;
  --gray:       #6B7280;
  --line:       #E3E8EF;
  --bg-soft:    #F3F7FB;   /* 薄いブルーグレー背景 */
  --white:      #FFFFFF;

  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-en: "Jost", "Helvetica Neue", Arial, sans-serif;

  --header-h: 84px;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(14, 66, 167, .10);
  --container: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: .04em;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  max-width: 1280px; margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 24px;
  padding-inline: 20px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.gnav { margin-left: auto; }
.gnav-list { display: flex; align-items: center; gap: 4px; }
.gnav-list > li > a {
  display: block; padding: 10px 10px;
  font-size: 14.5px; font-weight: 600;
  position: relative; white-space: nowrap;
}
.gnav-list > li > a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px;
  height: 2px; background: var(--blue-main);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.gnav-list > li > a:hover::after,
.gnav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-tel { text-align: right; line-height: 1.3; margin-right: 4px; }
.header-tel .tel-num { font-family: var(--font-en); font-size: 20px; font-weight: 600; color: var(--blue-deep); }
.header-tel .tel-note { font-size: 11px; color: var(--gray); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; line-height: 1;
  transition: opacity .25s, transform .25s;
  border: none; cursor: pointer;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-contact { background: var(--blue-deep); color: #fff; }
.btn-entry { background: var(--orange); color: #fff; }
.btn-line { background: #fff; color: var(--blue-deep); border: 2px solid var(--blue-deep); }
.btn-lg { padding: 16px 44px; font-size: 16px; }

/* mobile nav toggle */
.nav-toggle {
  display: none; width: 48px; height: 48px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--blue-deep); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- Hero (TOP) ---------- */
.hero { position: relative; height: min(680px, 82vh); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,66,167,.45) 0%, rgba(14,66,167,.08) 55%, transparent 100%);
}
.hero-copy {
  position: absolute; z-index: 2; left: 6vw; bottom: 14%;
  color: #fff; text-shadow: 0 2px 18px rgba(7,30,80,.55);
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 700; line-height: 1.5; letter-spacing: .08em;
}
.hero-copy p { margin-top: 14px; font-size: clamp(14px, 1.5vw, 18px); font-weight: 500; letter-spacing: .12em; }

.hero-scroll {
  position: absolute; z-index: 2; right: 28px; bottom: 0;
  color: #fff; font-family: var(--font-en); font-size: 11px; letter-spacing: .25em;
  writing-mode: vertical-rl; padding-bottom: 70px;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 1px; height: 56px; background: #fff;
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- Section common ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.sec-head { margin-bottom: 48px; }
.sec-head .en {
  display: block; font-family: var(--font-en);
  font-size: 14px; letter-spacing: .3em; font-weight: 600;
  color: var(--blue-main); text-transform: uppercase; margin-bottom: 6px;
}
.sec-head .ja {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.4;
}
.sec-head.center { text-align: center; }
.sec-head .ja::after {
  content: ""; display: block; width: 48px; height: 3px; margin-top: 18px;
  background: linear-gradient(90deg, var(--blue-sky), var(--blue-deep));
  border-radius: 2px;
}
.sec-head.center .ja::after { margin-inline: auto; }
.sec-lead { max-width: 760px; color: var(--gray); }
.sec-head.center + .sec-lead { margin-inline: auto; text-align: center; }

/* ---------- News ---------- */
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a {
  display: flex; gap: 28px; align-items: baseline;
  padding: 22px 8px; transition: background .25s;
}
.news-list a:hover { background: var(--bg-soft); }
.news-date {
  font-family: var(--font-en); color: var(--blue-main); font-weight: 600; font-size: 14px;
  flex-shrink: 0; min-width: 88px; /* 数字がプロポーショナル幅のため、日付文字列間の微差を吸収する */
}
.news-cat {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: var(--blue-deep);
  border: 1px solid var(--blue-deep); border-radius: 999px; padding: 2px 14px; line-height: 1.6;
  min-width: 80px; text-align: center; /* 最長ラベル「お知らせ」基準。日付・バッジ幅を揃えて本文の書き出し位置を揃える */
}
.news-title { font-weight: 500; }
.more-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; font-weight: 700; color: var(--blue-deep); font-size: 15px;
}
.more-link::after {
  content: ""; width: 34px; height: 1px; background: var(--blue-deep); transition: width .25s;
}
.more-link:hover::after { width: 50px; }

/* ---------- Message ---------- */
.message-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center;
}
.message-grid figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.message-body p + p { margin-top: 1.2em; }
/* 会社概要ページの代表挨拶のみ、画像を少し上に引き上げる（トップページの.message-gridには影響させない） */
.greeting-figure { align-self: start; margin-top: 96px; }

/* ---------- Point（強み） ---------- */
.point-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0;
}
.point-item + .point-item { border-top: 1px solid var(--line); }
.point-item:nth-child(even) figure { order: 2; }
.point-item figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 3/2; object-fit: cover; box-shadow: var(--shadow); }
.point-num {
  font-family: var(--font-en); font-size: 15px; letter-spacing: .2em;
  color: var(--orange); font-weight: 600; display: block; margin-bottom: 8px;
}
.point-item h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; line-height: 1.5; margin-bottom: 18px;
}
.point-item p { color: var(--ink); }
.point-item .more-link { margin-top: 20px; }

/* ---------- Link cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.link-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s;
}
.link-card:hover { transform: translateY(-6px); }
.link-card figure { overflow: hidden; }
.link-card figure img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .5s; }
.link-card:hover figure img { transform: scale(1.05); }
.link-card .card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.link-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.link-card h3 .en { display: block; font-family: var(--font-en); font-size: 12px; letter-spacing: .22em; color: var(--blue-main); font-weight: 600; margin-bottom: 2px; }
.link-card p { font-size: 14.5px; color: var(--gray); flex: 1; }
.link-card .more-link { margin-top: 4px; }

/* ---------- ICT band ---------- */
.ict-band {
  position: relative; padding: 110px 0; color: #fff;
  background-color: var(--blue-deep);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.ict-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,66,167,.88) 0%, rgba(27,127,212,.72) 60%, rgba(46,178,255,.45) 100%);
}
.ict-band > .container { position: relative; z-index: 1; }
.ict-band .sec-head .en { color: #BFE5FF; }
.ict-band .sec-head .ja { color: #fff; }
.ict-band .sec-head .ja::after { background: var(--orange); }
.ict-band p { max-width: 640px; }
.ict-band .btn { margin-top: 32px; }

/* ---------- Recruit banner ---------- */
.recruit-band {
  position: relative; padding: 120px 0; color: #fff;
  background-color: var(--ink);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  text-align: center;
}
.recruit-band::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(20,28,46,.55);
}
.recruit-band > .container { position: relative; z-index: 1; }
.recruit-band .en { font-family: var(--font-en); letter-spacing: .3em; color: var(--blue-sky); font-weight: 600; }
.recruit-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 42px); font-weight: 700; line-height: 1.6; margin: 12px 0 22px;
}
.recruit-band p { max-width: 680px; margin-inline: auto; }
.recruit-band .btn { margin-top: 34px; }

/* ---------- Page hero (下層) ---------- */
.page-hero {
  position: relative; padding: 92px 0 84px; color: #fff;
  background-color: var(--blue-deep);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,66,167,.82), rgba(46,178,255,.55));
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .en { font-family: var(--font-en); letter-spacing: .3em; font-weight: 600; font-size: 14px; color: #CFE9FF; text-transform: uppercase; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; margin-top: 6px; }
.breadcrumb { background: var(--bg-soft); font-size: 13px; padding: 12px 0; color: var(--gray); }
.breadcrumb a { color: var(--blue-main); }
.breadcrumb span::before { content: "›"; margin: 0 10px; color: var(--gray); }

/* ---------- 会社概要 ---------- */
.policy-list { counter-reset: pol; max-width: 760px; }
.policy-list li {
  position: relative; padding: 14px 0 14px 56px; border-bottom: 1px dashed var(--line);
  counter-increment: pol; font-weight: 500;
}
.policy-list li::before {
  content: counter(pol, decimal-leading-zero);
  position: absolute; left: 0; top: 12px;
  font-family: var(--font-en); font-weight: 600; font-size: 18px; color: var(--blue-sky);
}
.spec-table th, .spec-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 200px; background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
.greeting-name { margin-top: 26px; text-align: right; font-weight: 700; }
.greeting-name .post { font-size: 13px; color: var(--gray); font-weight: 500; margin-right: 10px; }

/* 代表挨拶の段落間に空白行を入れるための専用クラス（.message-body等の既存クラスとは独立） */
.greeting-spacer { display: block; height: 1.4em; }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.badge-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.badge-card h3 { font-size: 16px; font-weight: 700; color: var(--blue-deep); margin-bottom: 8px; line-height: 1.6; }
.badge-card p { font-size: 13.5px; color: var(--gray); }

/* ---------- 事業内容 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.biz-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.biz-card figure img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.biz-card .card-body { padding: 28px; }
.biz-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--blue-deep); margin-bottom: 10px; }
.biz-card h3 small { display: block; font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; color: var(--blue-main); }
.biz-card ul { margin-top: 12px; }
.biz-card ul li { position: relative; padding-left: 18px; font-size: 14.5px; }
.biz-card ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 2px; background: var(--orange); }

/* ---------- 工事実績 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.work-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .5s; }
.work-card:hover img { transform: scale(1.04); }
.work-card figcaption { padding: 16px 18px; font-weight: 700; font-size: 15px; }
.work-card figcaption small { display: block; font-weight: 500; font-size: 12.5px; color: var(--gray); margin-top: 2px; }
.work-caption-with-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.work-link {
  font-size: 12px;
  color: var(--blue-main);
  text-decoration: none;
  white-space: nowrap;
}
.work-link:hover {
  text-decoration: underline;
}

/* ---------- ICTページ ---------- */
.ict-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.ict-step { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); position: relative; }
.ict-step:not(:last-child)::after {
  content: "›"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--blue-sky); font-weight: 700;
}
.ict-step .step-num { font-family: var(--font-en); color: var(--orange); font-weight: 600; font-size: 13px; letter-spacing: .15em; }
.ict-step h3 { font-size: 17px; font-weight: 700; margin: 6px 0 10px; color: var(--blue-deep); }
.ict-step p { font-size: 13.5px; color: var(--gray); line-height: 1.8; }
.merit-list { max-width: 780px; }
.merit-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px dashed var(--line); }
.merit-list li::before {
  content: "✓"; position: absolute; left: 0; top: 12px;
  color: var(--orange); font-weight: 700; font-size: 18px;
}
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.photo-strip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 6px; }

/* ---------- 採用 ---------- */
.recruit-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rp-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; text-align: center; }
.rp-card .num { font-family: var(--font-en); font-size: 40px; font-weight: 600; color: var(--blue-deep); line-height: 1.2; }
.rp-card .num small { font-size: 18px; }
.rp-card h3 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.rp-card p { font-size: 13.5px; color: var(--gray); }
.interview-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px;
}
.interview-card figure img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.interview-card .name { font-weight: 700; font-size: 17px; margin-bottom: 16px; color: var(--blue-deep); }
.qa dt { font-weight: 700; color: var(--orange); margin-top: 14px; }
.qa dt::before { content: "Q. "; }
.qa dd::before { content: "A. "; font-weight: 700; color: var(--blue-main); }
.faq-list { max-width: 800px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; position: relative; padding-right: 50px;
}
.faq-item summary::before { content: "Q"; font-family: var(--font-en); color: var(--blue-main); margin-right: 14px; font-weight: 600; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 22px 18px 50px; color: var(--gray); }

/* ---------- お問い合わせ ---------- */
.contact-box { max-width: 760px; margin-inline: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; text-align: center; }
.contact-box .tel { font-family: var(--font-en); font-size: 36px; font-weight: 600; color: var(--blue-deep); }
.contact-box .hours { font-size: 13.5px; color: var(--gray); margin-bottom: 28px; }
.form-note { font-size: 13.5px; color: var(--gray); margin-bottom: 26px; }

/* ---------- お問い合わせフォーム（Googleフォームへ送信する自作フォーム） ---------- */
.contact-form { text-align: left; }
.contact-form .field { margin-bottom: 24px; }
.contact-form label {
  display: block; font-weight: 700; font-size: 14.5px;
  margin-bottom: 9px; letter-spacing: .02em;
}
.contact-form .req, .contact-form .opt {
  display: inline-block; margin-left: 10px; padding: 2px 9px;
  font-size: 11px; font-weight: 700; line-height: 1.7;
  border-radius: 999px; vertical-align: 2px;
}
.contact-form .req { background: var(--orange); color: #fff; }
.contact-form .opt { background: var(--bg-soft); color: var(--gray); border: 1px solid var(--line); }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 14px 16px;
  font-family: inherit; font-size: 16px; /* 16px未満だとiOSで自動ズームする */
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(27,127,212,.15);
}
.contact-form textarea { min-height: 170px; resize: vertical; line-height: 1.9; }
.contact-form .btn { width: 100%; margin-top: 8px; }
.contact-form .btn:disabled { opacity: .6; cursor: default; transform: none; }
.form-privacy { font-size: 12.5px; color: var(--gray); margin-top: 16px; text-align: center; }
/* ボット対策用のダミー欄（画面にも読み上げにも出さない） */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-thanks { text-align: center; padding: 40px 24px; }
.form-thanks-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--blue-deep); margin-bottom: 12px;
}
.form-thanks-title::before {
  content: "✓"; display: block; font-size: 34px; color: var(--orange);
  line-height: 1; margin-bottom: 12px;
}

@media (max-width: 768px) {
  .contact-form .field { margin-bottom: 20px; }
  .form-thanks { padding: 28px 8px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #DCEAFF; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 40px; background: #fff; padding: 6px 12px; border-radius: 6px; }
.footer-brand address { font-style: normal; margin-top: 18px; font-size: 14px; line-height: 2; }
.footer-nav h4, .footer-recruit h4 {
  font-family: var(--font-en); font-size: 13px; letter-spacing: .25em; color: var(--blue-sky);
  margin-bottom: 16px; font-weight: 600;
}
.footer-nav li, .footer-recruit li { margin-bottom: 10px; font-size: 14.5px; }

/* ---------- フッターのInstagram導線 ---------- */
.footer-sns-head { margin-top: 28px; }
.footer-sns-note { font-size: 13px; line-height: 1.9; color: #B9D0F5; margin-bottom: 12px; }
.footer-sns {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 18px;   /* タップ領域を44px以上確保 */
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  transition: background .25s, border-color .25s, color .25s;
}
.footer-sns:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.footer-sns-icon { flex-shrink: 0; }
.footer-nav a:hover, .footer-recruit a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding: 20px 0; font-size: 12.5px; text-align: center; color: #A9C6F2; }

/* ---------- Utility ---------- */
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.text-center { text-align: center; }
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .gnav {
    position: fixed; left: 0; right: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h)); /* iOSアドレスバー対策 */
    background: #fff; padding: 28px 28px 60px;
    transform: translateX(100%); transition: transform .35s;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .gnav.is-open { transform: none; }
  .gnav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav-list > li { border-bottom: 1px solid var(--line); }
  .gnav-list > li > a { padding: 16px 6px; font-size: 16px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: flex; margin-right: -11px; } /* アイコンを右端に光学的に揃える */
  .header-tel { display: none; }
  .header-actions .btn { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; }
  .section { padding: 64px 0; }
  .hero { height: 78vh; }
  .hero-copy { left: 24px; right: 24px; }
  .message-grid, .point-item, .interview-card { grid-template-columns: 1fr; gap: 28px; }
  .greeting-figure { margin-top: 0; }
  .point-item:nth-child(even) figure { order: 0; }
  .card-grid, .biz-grid, .recruit-points, .badge-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ict-flow { grid-template-columns: 1fr; }
  .ict-step:not(:last-child)::after { content: "⌄"; right: 50%; top: auto; bottom: -24px; transform: translateX(50%); }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .news-list a { flex-wrap: wrap; gap: 10px 16px; }
  .contact-box { padding: 32px 22px; }
}

/* ============================================================
   ブラッシュアップ追加分（2026-07）
   ============================================================ */

/* ---------- JS無効時のフェード表示保証（不具合対策） ---------- */
html.no-js .fade-up { opacity: 1; transform: none; }

/* ---------- Safari の details マーカー非表示（不具合修正） ---------- */
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- ヘッダー電話の tel: リンク ---------- */
.header-tel a.tel-num:hover { opacity: .8; }

/* ---------- モバイルメニュー内CTA（デスクトップでは非表示） ---------- */
.gnav-cta { display: none; }
@media (max-width: 1060px) {
  .gnav-cta {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line);
  }
  .gnav-cta .btn { width: 100%; padding: 15px 26px; font-size: 15px; }
  .gnav-tel { text-align: center; line-height: 1.5; margin-bottom: 4px; }
  .gnav-tel a {
    font-family: var(--font-en); font-size: 26px; font-weight: 600; color: var(--blue-deep);
  }
  .gnav-tel span { display: block; font-size: 12px; color: var(--gray); }
}

/* ---------- バンド内の複数ボタン ---------- */
.band-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.band-btns .btn { margin-top: 0; }

/* ---------- フッター電話リンク ---------- */
.footer-brand address a { text-decoration: underline; text-underline-offset: 3px; }
.footer-brand address a:hover { color: #fff; }

/* ---------- 工事実績：サムネイルボタン ---------- */
.work-thumb {
  display: block; width: 100%; padding: 0; border: none;
  background: none; cursor: zoom-in; position: relative;
}
.work-count {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(14,66,167,.85); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- ライトボックス ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 30, .88); }
.lb-body {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px 40px;
}
.lb-stage { max-width: min(920px, 100%); width: 100%; text-align: center; touch-action: pan-y; }
.lb-img {
  max-width: 100%; max-height: min(62vh, 640px);
  width: auto; height: auto; margin-inline: auto;
  border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.5);
  background: #000;
}
.lb-caption {
  margin-top: 18px; color: #EAF2FF; font-size: 14.5px; line-height: 2;
  max-width: 720px; margin-inline: auto; text-align: left;
}
.lb-caption:empty { display: none; } /* 説明文なしのカードでは余白ごと消す */
.lb-caption strong { color: #fff; font-weight: 700; }
.lb-caption a { color: var(--blue-sky); text-decoration: underline; text-underline-offset: 3px; }
.lb-caption a:hover { color: #fff; }
.lb-counter {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  color: #CFE0FA; font-family: var(--font-en); font-size: 14px; letter-spacing: .1em;
}
.lb-close {
  position: absolute; top: 12px; right: 16px;
  width: 48px; height: 48px; border: none; background: none; cursor: pointer;
  color: #fff; font-size: 34px; line-height: 1;
  touch-action: manipulation;
}
.lb-close:hover { color: var(--blue-sky); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08);
  cursor: pointer; transition: background .25s;
  touch-action: manipulation;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-prev span, .lb-next span {
  display: block; width: 12px; height: 12px; margin: auto;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
}
.lb-prev span { transform: rotate(-135deg) translate(-1px, 1px); }
.lb-next span { transform: rotate(45deg) translate(-1px, 1px); }

@media (max-width: 768px) {
  .lb-body { padding: 64px 12px 32px; }
  .lb-img { max-height: 52vh; }
  .lb-caption { font-size: 13.5px; padding-inline: 8px; }
  .lb-prev, .lb-next { width: 42px; height: 42px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* ---------- リンク集ページ ---------- */
/* 幅を絞るが左寄せ（policy-list・merit-list・faq-list と同じ扱い） */
.links-list { max-width: 860px; }
.links-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; margin-bottom: 18px; transition: box-shadow .25s, transform .25s;
}
.links-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.links-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.links-item h3 a { color: var(--blue-deep); }
.links-item h3 a::after { content: "↗"; margin-left: 8px; font-size: 13px; color: var(--blue-main); }
.links-item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.links-item p { font-size: 14px; color: var(--gray); line-height: 1.9; }

/* ---------- スマホ対応の強化 ---------- */
@media (max-width: 768px) {
  /* iOSアドレスバー対策：svh対応ブラウザでは実表示高さを使用 */
  .hero { height: 78svh; }

  /* 会社概要テーブルを縦積みに */
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { padding: 12px 16px; }
  .spec-table td { padding: 14px 16px 18px; }

  /* パンくずの折り返し防止 */
  .breadcrumb .container { white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 社員の声カードの余白調整 */
  .interview-card { padding: 24px 20px; }

  /* リンク集カードの余白 */
  .links-item { padding: 22px 20px; }
}

/* タップターゲット確保（フッターナビ） */
@media (max-width: 768px) {
  .footer-nav a, .footer-recruit a:not(.footer-sns) { display: inline-block; padding: 4px 0; }

  /* Menuが縦に長くなりすぎるため2列にする。CSS Gridで2列×4行に固定し、
     grid-auto-flow: column で上から下へ1列目を埋めてから2列目に進む
     （並び順を維持）。行数を4に固定するため、7項目で2列目が3項目でも
     行の高さの基準が1列目に揃い、2列の高さがズレない */
  .footer-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 24px;
    row-gap: 10px;
  }
  .footer-nav li { margin-bottom: 0; }
}

/* ---------- ICTページ：設計事業部（3次元設計データ） ---------- */
/* CAD画面は黒背景なので、切り取らず全体を見せる（object-fitなし・原寸比） */
/* 2列固定。1枚だけの場合も同じ幅のまま左に寄る（土木設計・外構設計で図版サイズを揃えるため） */
.design-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
/* 影ではなく枠線で囲む。CAD画面（黒背景）と完成イメージ（白背景）が混在するため、
   影だと明るい画像でだけ影が目立ってしまう */
.design-fig .work-thumb {
  border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line);
  transition: border-color .25s;
}
.design-fig .work-thumb:hover { border-color: var(--blue-sky); }
.design-fig img { width: 100%; height: auto; }
.design-fig figcaption { font-size: 13px; color: var(--gray); margin-top: 12px; line-height: 1.9; }

/* 土木設計／外構設計の2カラム */
.design-cols {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 40px; margin-top: 44px; align-items: start;
}
/* PCでは説明文の行数が違っても図版の上端が揃うよう、行を左右で共有する（subgrid）。
   非対応ブラウザでは従来どおり各カラムが独立し、揃わないだけで崩れない */
@media (min-width: 769px) {
  .design-cols { grid-template-rows: auto auto auto auto; align-items: stretch; }
  .design-col { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
}
.design-col h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 21px); font-weight: 700; line-height: 1.6;
  padding-left: 14px; border-left: 4px solid var(--blue-main);
  margin-bottom: 14px;
}
.design-col > p { color: var(--gray); }
.design-col .design-figs { margin-top: 22px; }
.design-col .more-link { margin-top: 20px; }

.design-order {
  margin-top: 48px; padding: 36px 40px;
  background: var(--bg-soft); border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}
.design-order h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; line-height: 1.6;
  margin-bottom: 14px;
}
.design-order p { max-width: 760px; }
.design-order .btn { margin-top: 26px; }

@media (max-width: 768px) {
  .design-cols { grid-template-columns: 1fr; gap: 36px; margin-top: 34px; }
  .design-figs { grid-template-columns: 1fr; gap: 26px; margin-top: 34px; }
  .design-col .design-figs { margin-top: 18px; }
  .design-order { margin-top: 36px; padding: 26px 22px; border-left-width: 3px; }
}

/* ---------- 外部サイトへの more-link（末尾に ↗ を表示） ---------- */
/* inline-flex の並び順: テキスト(0) → ↗(1) → 下線(2) */
.more-link.is-external::before {
  content: "↗"; order: 1;
  font-size: 13px; line-height: 1; color: var(--blue-main);
}
.more-link.is-external::after { order: 2; }

/* 事業内容カード内のリンク（外構・造園の専門サイトへの導線） */
.biz-card .more-link { margin-top: 20px; }

/* ---------- 新着情報（一覧ページ／写真・説明文つき） ---------- */
/* トップページは .news-list（テキストのみ）、一覧ページはこの .news-entries を使う */
.news-entries { max-width: 880px; }
.news-entry { padding: 36px 0; border-bottom: 1px solid var(--line); }
.news-entry:first-child { border-top: 1px solid var(--line); }
.news-entry-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.news-entry h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px); font-weight: 700; line-height: 1.6;
  margin-top: 12px;
}
.news-entry-body { margin-top: 14px; color: var(--gray); font-size: 15px; }
.news-entry-body p + p { margin-top: .9em; }
.news-entry-body strong { color: var(--ink); font-weight: 700; }
.news-entry-body ol { counter-reset: nl; margin: .8em 0; }
.news-entry-body ol li { position: relative; padding-left: 28px; counter-increment: nl; }
.news-entry-body ol li::before {
  content: counter(nl) "."; position: absolute; left: 4px; top: 0;
  font-family: var(--font-en); font-weight: 600; color: var(--blue-main);
}

/* 添付写真。新聞記事のみ .work-thumb（クリックで拡大／js/main.js を共用）、
   証書・認定証・ロゴ類は .news-fig-thumb（拡大なし・クリック不可） */
.news-figs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.news-fig { width: 170px; }
.news-fig .work-thumb,
.news-fig-thumb {
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; padding: 10px;
}
.news-fig .work-thumb { transition: box-shadow .25s, border-color .25s; }
/* ホバー演出は拡大できる新聞記事のみに適用する */
.news-fig .work-thumb:hover { box-shadow: var(--shadow); border-color: var(--blue-sky); }
/* 証書は縦横比がまちまちなので contain で全体を見せる */
.news-fig img { width: 100%; height: 148px; object-fit: contain; }
.news-fig figcaption { font-size: 12px; color: var(--gray); margin-top: 8px; line-height: 1.7; }

@media (max-width: 768px) {
  .news-entry { padding: 28px 0; }
  .news-figs { gap: 14px; }
  .news-fig { width: calc(50% - 7px); }
  .news-fig img { height: 124px; }
}
