/* ==========================================================================
   GOKEI — 旧 BiND 版（レスポンシブ・1 ページ構成）の再現
   寸法は旧版を Mac の Chrome で実測した値と、BiND の部品の決まり（余白・段組の割合）に合わせている。
     中身の最大幅 960px（内側の余白 30px → 本文 900px）
     768px 以下：メニューをボタン（≡）に切り替え
     640px 以下：段組を縦積み・余白 15px
   書体：旧版は BiND の配信フォント（ほのか明朝）。BiND は使わない方針のため OS の明朝体で代用。
   ========================================================================== */

:root {
	--min: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "游明朝", "Yu Mincho", YuMincho, "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
	--go: "Helvetica Neue", Helvetica, YuGothic, "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
	--text: #555;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; color: var(--text); font-family: var(--min); font-size: 14px; line-height: 1.9; }
h1, h2, h3, h4, p, ul, figure, table, th, td { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: #333; text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: .4; }
table { border-collapse: collapse; border-spacing: 0; }
th { font-weight: 400; text-align: left; }
small { font-size: 12px; }
:focus-visible { outline: 2px solid #c00; outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10000; padding: 8px 12px; background: #fff; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }

/* ---------------------------------------------------------------- ヘッダー（上に固定） */
.hd { position: sticky; top: 0; z-index: 100; background: rgba(34, 9, 9, .5); }
.hd__in { display: flex; align-items: flex-start; height: 140px; padding: 30px; }
.hd__logo { flex: none; width: 31.36%; margin-right: 3.96%; line-height: 0; }
.hd__logo a:hover { opacity: 1; }
.hd__logo img { width: 80%; }
.gnav { flex: 1; min-width: 0; margin-top: 10px; }
.gnav ul { position: relative; display: flex; flex-wrap: wrap; padding: 15px; }
.gnav li { position: relative; z-index: 1; padding: 0 10px; }
.gnav a { display: block; padding: 0 25px; color: #333; font-family: var(--go); font-size: 14px; line-height: 30px; letter-spacing: 1px; text-align: center; }
.gnav a:hover { opacity: 1; }
/* マウスを乗せた項目の下に動く灰色の札（旧版の lavalamp） */
.gnav .gnav__lamp { position: absolute; padding: 0; z-index: 0; top: 15px; left: 15px; height: 30px; border-radius: 7px; background: #dcdcdc; transition: left .4s ease, width .4s ease; }
.gnav__close, .hd__btn { display: none; }

/* ---------------------------------------------------------------- ビルボード */
.billboard { padding: 30px; background: url(../img/billboard-bg.jpg) center center; }
.slider { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; aspect-ratio: 900 / 380; }
.slider__track { display: flex; height: 100%; transition: transform .8s ease; will-change: transform; }
.slider__img { flex: none; width: 100%; height: 100%; max-width: none; }

/* ---------------------------------------------------------------- 帯と中身 */
.blk { position: relative; }
.in { max-width: 960px; margin: 0 auto; padding: 30px; }
.blk--intro { background: rgba(234, 153, 153, .72); color: #000; }
.blk--nopt .in { line-height: 0; }
.blk--white { color: #333; }
.blk--white .box { border-color: #333; }

.page-title { font-size: 30.8px; line-height: 1.8; font-weight: 700; }
.hr { height: 0; margin: 10px 0; border: 0; border-top: 1px solid #999; }
.lead { font-size: 18.2px; line-height: 1.9; font-weight: 700; }
.black { color: #000; }
.center { text-align: center; }

/* 大見出し（赤い帯） */
.sec-title { padding-left: 1%; border-left: 3px solid #444; background: #c00; box-shadow: rgba(51, 51, 51, .6) 0 0 5px 1px; color: #fff; font-size: 56px; line-height: 2; font-weight: 400; text-align: center; }
/* 中見出し */
.hl { font-size: 22.4px; line-height: 1.6; font-weight: 700; }
.hl--honbu { font-size: 21px; }
.hl--bar { padding: 1%; background: #d9d9d9; font-weight: 400; }
.hl--red { padding-left: 2%; background: #f00; color: #fff; text-align: center; }

/* 2 段 */
.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2%; align-items: start; }
.cols img { display: block; }
.cols figcaption { font-size: 14px; }

/* 写真の並び（段数・間隔は旧版の部品の割合） */
.album { display: grid; align-items: start; text-align: center; }
.album--4 { grid-template-columns: repeat(4, 1fr); gap: 18px 2%; }
.album--3 { grid-template-columns: repeat(3, 1fr); gap: 18px 2%; }
.album--8 { grid-template-columns: repeat(8, 1fr); gap: 36px 4%; }
.album__text { text-align: left; }

/* 一覧表 */
.list-table { width: 100%; margin-bottom: 15px; border: 1px solid #999; }
.list-table th, .list-table td { padding: 7px 10px; vertical-align: top; }
.list-table th { border-right: 1px solid #999; white-space: nowrap; }
.list-table--large th, .list-table--large td p { font-size: 18.2px; font-weight: 700; }
/* 見出し列の幅（旧版の書体で自動で決まっていた幅を割合で固定。書体が違っても揃うように） */
.list-table--equip th { width: 21.8%; }
.list-table--meeting th { width: 19.5%; }
.list-table--large th { width: 59.4%; }

/* 製作事例の枠 */
.works-box { width: 100%; }
.works-box th { padding: 2%; border: 1px double #ddd; background: #e6841c; color: #fff; font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif; font-size: 24px; line-height: 1.5; font-weight: 700; text-align: center; vertical-align: middle; }
.works-box td { padding: 2%; border: 1px solid #030303; font-size: 16px; line-height: 1.5; font-weight: 700; text-align: center; vertical-align: middle; }

/* 囲み見出し */
.box { padding: 1em; border: 1px solid #555; text-align: center; }

/* 会社概要・沿革の表 */
.info-table { width: 100%; line-height: 1.5; }
.info-table th, .info-table td { height: 40px; border: 1px solid #ddd; background: #fff; vertical-align: middle; }
.info-table th { width: 160px; background: #ebebeb; text-align: center; }
.info-table--history th { width: 100px; }
.info-table--history .c { text-align: center; }
.info-table--history tr.is-auto th, .info-table--history tr.is-auto td { height: auto; }

/* 御見学の写真（マウスを乗せると別カットに替わる・クリックで拡大） */
.visit { position: relative; display: block; }
.visit:hover { opacity: 1; }
.visit img { display: block; }
.visit__on { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.visit:hover .visit__on, .visit:focus-visible .visit__on { opacity: 1; }

/* 地図 */
.blk--map iframe { width: 100%; height: 600px; border: 0; }

/* ---------------------------------------------------------------- フッター */
.ft { padding: 2%; background: #980000; color: #fff; text-align: center; }
.ft__in { max-width: 960px; margin: 0 auto; }
.ft__logo { width: 70%; }
.ft__tel { font-size: 22.4px; line-height: 1.6; font-weight: 700; }

/* 拡大表示 */
.zoom { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .8); }
.zoom[hidden] { display: none; }
.zoom__box { position: relative; max-width: 92vw; max-height: 92vh; padding: 10px; background: #fff; }
.zoom__box img { display: block; max-width: calc(92vw - 20px); max-height: calc(92vh - 20px); width: auto; height: auto; }
.zoom__close { position: absolute; right: -12px; top: -12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #333; color: #fff; font-size: 18px; line-height: 30px; cursor: pointer; }

/* 汎用（固定ページ・404） */
.entry p + p { margin-top: 1em; }

/* ==========================================================================
   768px 以下：メニューをボタンに
   ========================================================================== */
@media (max-width: 768px) {
	/* ヘッダー：ロゴ（左）と ≡ ボタン（右端）を 1 列に並べ、上下中央でそろえる（2026-11-21） */
	html { scroll-padding-top: 96px; }
	.hd__in { align-items: center; height: auto; padding: 15px 30px; }
	.hd__logo { flex: 1 1 auto; width: auto; min-width: 0; margin: 0 16px 0 0; }
	.hd__logo img { width: 100%; max-width: 260px; height: auto; }
	.hd__btn { margin-left: auto; }
	.hd__btn { position: relative; display: block; flex: none; width: 48px; height: 48px; padding: 0; border: 1px solid #333; background: #fff; cursor: pointer; }
	.hd__btn span:not(.screen-reader-text) { position: absolute; left: 7px; width: 32px; border-top: 4px solid #333; }
	.hd__btn span:nth-child(1) { top: 11px; }
	.hd__btn span:nth-child(2) { top: 21px; }
	.hd__btn span:nth-child(3) { top: 31px; }
	.gnav { position: fixed; z-index: 9000; top: 0; left: 0; width: 100%; margin: 0; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
	.gnav.is-open { transform: none; visibility: visible; }
	.gnav ul { display: block; padding: 0; }
	.gnav li { padding: 0; border-bottom: 1px solid #ddd; }
	.gnav a { padding: 0 10px; color: var(--text); text-align: left; letter-spacing: 0; }
	.gnav .gnav__lamp { display: none; }
	.gnav__close { display: block; order: -1; text-align: right; }
	.gnav__close button { width: 40px; height: 30px; border: 0; background: none; color: #555; font-size: 20px; line-height: 30px; cursor: pointer; }
	.gnav ul { display: flex; flex-direction: column; }
}

/* ==========================================================================
   640px 以下：縦積み
   ========================================================================== */
@media (max-width: 640px) {
	html { scroll-padding-top: 0; }
	.hd { position: relative; }
	.hd__in { padding: 10px 15px; }
	.hd__logo { margin-right: 12px; }
	.billboard { padding: 15px; }
	.in { padding: 15px; }
	.sec-title { font-size: 56px; }
	/* 旧版：縦積みの段は 1 段目の上にも 4%（幅 360 で 14.4px）の間隔が入る */
	.cols { display: block; }
	.cols > * { margin-top: 4%; }
	.cols img { width: 100%; }
	.album--sp2 { grid-template-columns: repeat(2, 1fr); gap: 4%; row-gap: 14.4px; }
	.album--sp3 { grid-template-columns: repeat(3, 1fr); column-gap: 4%; row-gap: 14.4px; }
	.list-table th, .list-table td { display: block; width: 100% !important; }
	.list-table th { border-right: 0; border-bottom: 1px solid #999; white-space: normal; }
	.blk--map .in, .blk--map { padding: 15px; }
	.ft__in { padding: 15px; }
	.ft__logo { width: 100%; }
	/* 旧版はスマホで 7px（50%）だったが、読めないため 11px にしている */
	.ft__body { font-size: 11px; line-height: 1.9; }
}
