/* ============================================
   伊東工業 現場公開サイトデモ 共通スタイル
   参考: iwafuneko-fukuda.com 風(紺色帯＋英字ウォーターマーク)
   ============================================ */
:root {
  --navy: #123a8c;
  --navy2: #2b6cb8;
  --navy-dark: #0c2a66;
  --pale: #dce6f2;
  --wm: #e5ecf5;
  --accent: #f5a623;
  --red: #d40000;
  --ink: #1a1a1a;
  --gray: #666;
  --line: #d9dee5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 2;
  letter-spacing: 0.05em;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
ul { list-style: none; }

.inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--navy);
}
.header-in {
  max-width: 1280px; margin: 0 auto; padding: 0 0 0 20px;
  display: flex; align-items: stretch; justify-content: space-between;
  min-height: 72px; gap: 12px;
}
.kj-title {
  align-self: center;
  font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.4;
}
#global-nav ul { display: flex; height: 100%; }
#global-nav li { display: flex; }
#global-nav a {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 10px 14px; color: var(--ink); text-align: center; transition: .2s;
  border-bottom: 4px solid transparent;
}
#global-nav a .ja { font-size: .88rem; font-weight: 700; line-height: 1.4; }
#global-nav a .en { font-size: .6rem; color: var(--gray); letter-spacing: .06em; line-height: 1.4; }
#global-nav li:not(.nav-accent) a:hover,
#global-nav li.current:not(.nav-accent) a { border-bottom-color: var(--navy); color: var(--navy); }
#global-nav li.nav-accent a {
  background: var(--navy); color: #fff; padding: 10px 20px; border-bottom: none;
}
#global-nav li.nav-accent a .en { color: rgba(255,255,255,.75); }
#global-nav li.nav-accent a:hover { background: var(--navy-dark); }

/* hamburger */
#ham-btn {
  display: none; width: 50px; height: 50px; border: none; cursor: pointer;
  background: var(--navy); position: relative; align-self: center; margin-right: 14px;
  border-radius: 4px; flex: 0 0 50px;
}
#ham-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: .3s; }
#ham-btn span:nth-child(1){ top: 17px; }
#ham-btn span:nth-child(2){ top: 24px; }
#ham-btn span:nth-child(3){ top: 31px; }
body.menu-open #ham-btn span:nth-child(1){ top: 24px; transform: rotate(45deg); }
body.menu-open #ham-btn span:nth-child(2){ opacity: 0; }
body.menu-open #ham-btn span:nth-child(3){ top: 24px; transform: rotate(-45deg); }

#sp-nav {
  display: none; position: fixed; inset: 75px 0 auto 0; z-index: 99;
  background: var(--navy); padding: 10px 22px 24px;
}
#sp-nav a {
  display: block; color: #fff; font-weight: 600; padding: 13px 6px;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
#sp-nav a span.en { font-size: .68rem; opacity: .7; margin-left: 10px; font-weight: 400; }
body.menu-open #sp-nav { display: block; }

/* ---------- hero (トップ) ---------- */
#hero { position: relative; overflow: hidden; line-height: 0; }
#hero > svg { width: 100%; height: auto; }
#hero > img { width: 100%; height: clamp(380px, 46vw, 660px); object-fit: cover; display: block; }
#hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background: linear-gradient(transparent, rgba(6, 22, 48, .5));
  pointer-events: none; z-index: 1;
}
.hero-panel {
  position: absolute; left: 4%; bottom: 18%; z-index: 2;
  max-width: 640px; line-height: 1.7;
  background: rgba(8, 28, 66, .58);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 28px 36px 26px;
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 20, 60, .35);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; color: #9fc5f8;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: #9fc5f8; }
.hero-panel h1 {
  margin-top: 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: .05em; line-height: 1.55;
}
.hero-panel h1 em {
  font-style: normal;
  background: linear-gradient(transparent 72%, rgba(122,178,255,.55) 72%);
}
.hero-sub { margin-top: 10px; font-size: .86rem; opacity: .94; line-height: 1.9; }
.hero-credit { margin-top: 8px; font-size: .76rem; opacity: .85; letter-spacing: .06em; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chips span {
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 3px 14px; font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.1); line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-btn {
  display: inline-block; background: #fff; color: var(--navy-dark);
  font-weight: 700; font-size: .85rem; padding: 10px 26px; border-radius: 8px; transition: .2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,20,60,.35); }
.hero-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.65); }
.hero-btn.ghost:hover { background: rgba(255,255,255,.15); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  color: #fff; font-size: .62rem; font-weight: 600; letter-spacing: .32em;
  text-align: center; opacity: .9; z-index: 2; line-height: 1.4;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 36px; background: #fff; margin: 6px auto 0;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- page hero (下層) ---------- */
.page-hero { position: relative; overflow: hidden; line-height: 0; }
.page-hero > svg { width: 100%; height: auto; }
.page-hero > img { width: 100%; height: clamp(220px, 24vw, 320px); object-fit: cover; display: block; }
.page-hero-band {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(12,42,102,.92), rgba(43,108,184,.85));
  color: #fff; text-align: center; padding: 26px 20px; line-height: 1.5;
}
.page-hero-band h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: .12em; }
.page-hero-band .en { display: block; font-size: clamp(.85rem, 1.8vw, 1.05rem); letter-spacing: .18em; margin-top: 4px; opacity: .9; }

/* ---------- ウォーターマーク見出し ---------- */
section { padding: 80px 0; }
.wm-head { position: relative; text-align: center; margin-bottom: 46px; padding: 30px 0; }
.wm-head .wm {
  position: absolute; left: -4%; top: 50%; transform: translateY(-50%);
  font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 800; color: var(--wm);
  letter-spacing: .04em; white-space: nowrap; line-height: 1; user-select: none; z-index: 0;
}
.wm-head::before {
  content: ""; position: absolute; left: 0; top: 58%; height: 42px; width: 46%;
  background: var(--pale); opacity: .55; z-index: 0;
}
.wm-head h2 {
  position: relative; z-index: 1; font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 700; letter-spacing: .1em;
}
.lead-left { max-width: 860px; margin: 0 auto; font-size: .98rem; }
.lead-center { max-width: 860px; margin: 0 auto; text-align: center; font-size: .98rem; }

/* 全幅写真 */
.full-photo { line-height: 0; }
.full-photo svg { width: 100%; height: auto; }
.full-photo img { width: 100%; height: clamp(260px, 32vw, 440px); object-fit: cover; display: block; }

/* ---------- PICK UP ---------- */
.pickup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
.pickup-grid a { display: block; color: var(--ink); }
.pickup-grid .ph { overflow: hidden; line-height: 0; aspect-ratio: 16 / 10; }
.pickup-grid .ph svg { width: 100%; height: auto; transition: transform .4s; }
.pickup-grid .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pickup-grid a:hover .ph svg, .pickup-grid a:hover .ph img { transform: scale(1.05); }
.pickup-grid h3 { text-align: center; font-size: 1.05rem; font-weight: 700; margin-top: 14px; letter-spacing: .08em; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 700;
  padding: 13px 52px; font-size: .95rem; letter-spacing: .1em; transition: .2s;
}
.btn::after { content: "　→"; }
.btn:hover { background: var(--navy-dark); }
.btn-center { text-align: center; margin-top: 34px; }

/* ---------- よくある質問 ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); margin-bottom: 14px; background: #fff; }
.faq summary {
  cursor: pointer; padding: 16px 48px 16px 56px; font-weight: 700; font-size: .97rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; position: absolute; left: 18px; top: 14px;
  color: var(--navy); font-weight: 800; font-size: 1.25rem;
}
.faq summary::after {
  content: "＋"; position: absolute; right: 18px; top: 16px; color: var(--navy); font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 4px 20px 18px 56px; position: relative; font-size: .93rem; border-top: 1px dashed var(--line); margin-top: 2px; padding-top: 14px; }
.faq .a::before {
  content: "A"; position: absolute; left: 18px; top: 10px;
  color: var(--red); font-weight: 800; font-size: 1.25rem;
}

/* ---------- news ---------- */
.news-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.news-list dl {
  display: flex; gap: 26px; padding: 16px 8px; border-bottom: 1px solid var(--line);
  align-items: baseline; flex-wrap: wrap;
}
.news-list dt { color: var(--navy); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.news-list dd { flex: 1; min-width: 240px; font-size: .93rem; }
.news-list dd a { text-decoration: underline; text-underline-offset: 3px; }
.tag-new {
  display: inline-block; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700;
  border-radius: 3px; padding: 1px 8px; margin-right: 8px; vertical-align: 2px;
}

/* ---------- tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 15px 20px; border: 1px solid var(--line); text-align: left; font-size: .93rem; vertical-align: top; }
.spec-table th { background: var(--pale); color: var(--navy-dark); width: 25%; white-space: nowrap; font-weight: 700; }
.red-note { color: var(--red); font-weight: 700; }

/* ---------- 工程表 (ガントチャート) ---------- */
.gantt-wrap { overflow-x: auto; }
.gantt { border-collapse: collapse; width: 100%; min-width: 760px; background: #fff; }
.gantt th, .gantt td { border: 1px solid #9aa4b2; font-size: .78rem; padding: 6px 8px; text-align: center; }
.gantt thead th { background: #fff; font-weight: 700; }
.gantt .rowhead { background: #fff; font-weight: 700; white-space: nowrap; text-align: center; min-width: 96px; }
.gantt .subhead { background: #fff; white-space: nowrap; min-width: 88px; }
.gantt td.cell { position: relative; height: 34px; padding: 0; min-width: 44px; }
.gantt td.cell .bar {
  position: absolute; top: 50%; transform: translateY(-50%); height: 14px;
  background: #5b8ed6; left: 4px; right: 4px;
}
.gantt td.cell .bar.start { left: 4px; }
.gantt td.cell .bar.mid { left: 0; right: 0; }
.gantt td.cell .bar.contL { left: 0; }
.gantt td.cell .bar.contR { right: 0; }
.gantt .hol { background: repeating-linear-gradient(180deg, #ffd93d, #ffd93d 100%); width: 10px; min-width: 10px; padding: 0; }
.gantt .hol-label { writing-mode: vertical-rl; font-size: .62rem; color: #8a6d00; letter-spacing: 0; }
.gantt-note { font-size: .78rem; color: var(--gray); margin-top: 8px; }

/* ---------- flow ---------- */
.flow { max-width: 820px; margin: 0 auto; }
.flow-step { display: flex; gap: 20px; position: relative; padding: 0 0 32px 0; }
.flow-step::before {
  content: ""; position: absolute; left: 27px; top: 54px; bottom: 0; width: 3px;
  background: var(--pale);
}
.flow-step:last-child::before { display: none; }
.flow-step .num {
  flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; z-index: 1;
}
.flow-step .txt { border: 1px solid var(--line); padding: 14px 22px; flex: 1; }
.flow-step h3 { color: var(--navy-dark); font-size: 1rem; }
.flow-step p { font-size: .88rem; color: var(--gray); line-height: 1.8; }

/* ---------- 進捗 ---------- */
.prog-summary { max-width: 760px; margin: 0 auto 56px; border: 1px solid var(--line); padding: 28px 36px; }
.prog-summary .label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.prog-summary .pct { color: var(--navy); font-size: 2.2rem; }
.prog-bar { height: 16px; background: #e8edf4; overflow: hidden; margin-top: 10px; }
.prog-bar i { display: block; height: 100%; width: 0; transition: width 1.2s ease; background: linear-gradient(90deg, var(--navy), var(--navy2)); }
.prog-note { font-size: .8rem; color: var(--gray); margin-top: 10px; }

.month-block { margin-bottom: 70px; }
.month-block h3 {
  font-size: 1.15rem; font-weight: 700; border-left: 6px solid var(--navy);
  padding: 2px 0 2px 14px; margin-bottom: 14px;
}
.month-block .date { font-size: .8rem; color: var(--gray); font-weight: 400; margin-left: 12px; }
.month-block > p { font-size: .95rem; margin-bottom: 20px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.photo-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid figure { line-height: 0; }
.photo-grid svg { width: 100%; height: auto; }
.photo-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.photo-grid figcaption { font-size: .82rem; line-height: 1.6; margin-top: 8px; color: var(--ink); }

/* ---------- お知らせ ---------- */
.notice-article { max-width: 860px; margin: 0 auto; }
.notice-article h3 {
  font-size: 1.1rem; font-weight: 700; margin: 46px 0 14px;
  border-left: 6px solid var(--navy); padding-left: 14px;
}
.notice-article p { font-size: .95rem; }
.caution { color: var(--red); font-weight: 700; font-size: .9rem; margin-top: 10px; }
.fig-frame { border: 1px solid var(--line); padding: 8px; line-height: 0; }
.fig-frame svg { width: 100%; height: auto; }

/* 写真＋注記オーバーレイ */
.anno-map { position: relative; line-height: 0; }
.anno-map img { width: 100%; display: block; }
.anno {
  position: absolute; color: #f2e94e; font-weight: 700; line-height: 1.4;
  font-size: clamp(.68rem, 1.8vw, 1.05rem); text-shadow: 0 1px 5px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9);
  white-space: nowrap;
}
.anno-ellipse { position: absolute; border: 3px solid #f2e94e; border-radius: 50%; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

.notice-item { border: 1px solid var(--line); border-left: 6px solid var(--navy); padding: 20px 26px; margin-bottom: 20px; }
.notice-item .date { font-size: .8rem; color: var(--gray); }
.notice-item h3 { color: var(--navy-dark); font-size: 1.05rem; margin: 2px 0 8px; }
.notice-item p { font-size: .92rem; }

/* ---------- 日記 ---------- */
.diary-entry { border: 1px solid var(--line); padding: 30px 34px; margin-bottom: 34px; }
.diary-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.diary-head .avatar { flex: 0 0 58px; }
.diary-head .avatar svg { width: 58px; height: 58px; border-radius: 50%; }
.diary-head h3 { font-size: 1.12rem; color: var(--navy-dark); }
.diary-head .meta { font-size: .78rem; color: var(--gray); }
.diary-entry .ph { margin: 16px 0; line-height: 0; }
.diary-entry .ph svg { width: 100%; height: auto; }
.diary-entry .ph img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.diary-entry p { font-size: .95rem; }

/* ---------- 近日公開 (現場周辺情報) ---------- */
.coming-soon { text-align: center; padding: 40px 20px 20px; }
.coming-soon h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: .12em; margin-bottom: 36px; }
.coming-soon .mascot { width: 190px; margin: 0 auto 18px; }
.coming-soon p { font-size: .95rem; color: var(--ink); }

/* ---------- カード(重機・安全) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.card { border: 1px solid var(--line); overflow: hidden; background: #fff; color: var(--ink); }
.card .thumb { aspect-ratio: 16/9; overflow: hidden; line-height: 0; }
.card .thumb svg { width: 100%; height: 100%; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 16px 20px 20px; }
.card h3 { font-size: 1rem; color: var(--navy-dark); margin-bottom: 6px; }
.card p { font-size: .87rem; color: var(--gray); line-height: 1.8; }

/* ---------- 凡例 ---------- */
.legend { border: 2px solid var(--red); padding: 14px 22px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: .85rem; }
.legend .t { font-weight: 700; color: var(--red); }
.legend span.pin { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: inline-block; }

/* ---------- footer ---------- */
footer { border-top: 3px solid var(--navy); background: #fff; padding: 50px 20px 20px; margin-top: 60px; }
.ft-in {
  max-width: 1000px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: start;
}
.ft-col h3 { font-size: .95rem; font-weight: 700; text-align: center; margin-bottom: 14px; }
.ft-col p { font-size: .88rem; text-align: center; }
.ft-logo { text-align: center; }
.ft-logo .mark { color: var(--navy); font-size: .66rem; font-weight: 700; letter-spacing: .1em; }
.ft-logo .name { font-size: 1.45rem; font-weight: 800; letter-spacing: .14em; }
.ft-mascot { width: 120px; margin: 0 auto; }
.copyright { text-align: center; font-size: .74rem; color: var(--gray); margin-top: 44px; }
.copyright a { color: var(--gray); text-decoration: underline; }
.demo-note { text-align: center; font-size: .7rem; color: #aaa; margin-top: 6px; }

#page-top {
  position: fixed; right: 20px; bottom: 20px; width: 52px; height: 52px;
  background: #fff; border: 1px solid #999; color: var(--ink);
  display: grid; place-items: center; font-size: .62rem; font-weight: 700; line-height: 1.3;
  text-align: center; opacity: 0; pointer-events: none; transition: .3s; z-index: 90;
}
#page-top.show { opacity: 1; pointer-events: auto; }

/* scroll animation */
.sa { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.sa.show { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* 中間幅: ナビの文字と余白を詰めて全項目を表示 */
@media (max-width: 1280px) {
  .kj-title { font-size: 1.1rem; }
  #global-nav a { padding: 8px 8px; }
  #global-nav a .ja { font-size: .78rem; }
  #global-nav a .en { font-size: .54rem; }
  #global-nav li.nav-accent a { padding: 8px 12px; }
}
/* 狭い幅: 工事名の下にナビを2段組みで全項目表示 */
@media (max-width: 1080px) {
  .header-in { flex-wrap: wrap; justify-content: center; padding: 8px 10px 0; row-gap: 0; min-height: 0; }
  .kj-title { text-align: center; width: 100%; }
  #global-nav { width: 100%; }
  #global-nav ul { justify-content: center; flex-wrap: wrap; }
  #global-nav a { padding: 4px 8px 8px; }
  #global-nav li.nav-accent a { padding: 4px 12px 8px; }
}
/* スマホ幅のみハンバーガー */
@media (max-width: 560px) {
  #global-nav { display: none; }
  #ham-btn { display: block; }
  .header-in { flex-wrap: nowrap; justify-content: space-between; padding: 0 0 0 14px; min-height: 64px; }
  .kj-title { text-align: left; width: auto; font-size: .92rem; }
}
@media (max-width: 860px) {
  section { padding: 54px 0; }
  .hero-panel { position: static; max-width: none; border-radius: 0; border-left: none; border-right: none; padding: 22px 20px; background: linear-gradient(120deg, #0c2a66, #1e50a0); }
  .hero-scroll { display: none; }
  #hero::after { display: none; }
  #hero { line-height: 1.6; padding-bottom: 0; }
  .pickup-grid { grid-template-columns: 1fr; }
  .photo-grid, .photo-grid.grid-3 { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: 1fr; justify-items: center; }
  .spec-table th { width: 32%; }
  .wm-head::before { width: 70%; }
}
