/* =========================================================
   下層ページ共通スタイル（style.css の後に読み込む）
   ========================================================= */
.sub-page main { padding-top: var(--header-h); }
.container.narrow { max-width: 1000px; }

/* ---------- ページヒーロー ---------- */
.hero-sub { position: relative; height: 320px; overflow: hidden; display: flex; align-items: flex-end; color: var(--white); }
.hero-sub .container { position: relative; z-index: 1; padding-bottom: 60px; }
.hero-sub-img, .hero-sub-video, .hero-sub-gradient { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
.hero-sub-img::after, .hero-sub::before { content: ""; position: absolute; inset: 0; background: rgba(60,60,60,.25); z-index: 0; }
.hero-sub-gradient { background: linear-gradient(90deg,#4aa3d8,#8ac1b1 40%,#e3b05c 70%,#e07f6a); }
.crumbs { font-size: 12px; letter-spacing: .08em; margin-bottom: 36px; }
.crumbs a { color: var(--white); }
.hero-sub h1 { font-size: 28px; font-weight: 400; letter-spacing: .14em; line-height: 1.5; }

/* ---------- 本文 ---------- */
.sub-body { padding: 60px 0 40px; }
.sub-body > * + * { margin-top: 28px; }
.h-page { font-size: 26px; font-weight: 500; letter-spacing: .1em; line-height: 1.6; margin: 50px 0 20px; }
.h-lead { font-size: 22px; font-weight: 500; letter-spacing: .08em; line-height: 1.7; margin: 40px 0 16px; }
.h-sub  { font-size: 17px; font-weight: 700; letter-spacing: .06em; margin: 30px 0 10px; }
.h-minor{ font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.sub-body p { font-size: 15px; line-height: 2; }
.sub-body p + p { margin-top: 1em; }
.bullets { padding-left: 1.4em; list-style: disc; margin: 12px 0; }
.bullets li { margin: 8px 0; line-height: 1.9; }
.note { color: #888; font-size: 13px; }
.txtlink { text-decoration: underline; color: #2a5ea8; }
.pdf a { display: inline-block; padding-left: 26px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23c33" d="M6 2h8l6 6v14H6z"/><path fill="%23fff" d="M14 2v6h6"/><text x="7" y="18" font-size="7" fill="%23fff" font-family="sans-serif">PDF</text></svg>') left center/20px no-repeat; text-decoration: underline; color: #2a5ea8; }
.btn-row { margin: 24px 0; }
.btn-row + .btn-row { margin-top: 10px; }
.more { text-align: center; margin: 20px 0 50px; }

.box { background: var(--white); padding: 50px 0; }
.sub-body > .box { box-shadow: 0 0 0 1px #eee; margin-left: auto; margin-right: auto; max-width: 1100px; }
.box .container.narrow { padding: 0 60px; }
.fig img { width: 100%; height: auto; margin: 20px 0; }
.logo-row { text-align: center; }
.logo-row img { max-width: 360px; margin: 0 auto 20px; }
.bgimg { height: 420px; background-size: cover; background-position: center; margin-top: 0 !important; }
.bgimg + .box { margin-top: -220px; position: relative; }

/* 左画像・右テキスト */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.split-img { background-size: cover; background-position: center; }
.split-txt { padding: 50px 60px; display: flex; flex-direction: column; justify-content: center; }
.split + .split .split-img { order: 2; }

/* 動画バナー */
.banner-video { position: relative; height: 360px; overflow: hidden; display: grid; place-items: center; color: var(--white); }
.banner-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-video p { position: relative; font-size: 28px; letter-spacing: .14em; text-shadow: 0 0 16px rgba(0,0,0,.4); }

/* ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.08); overflow: hidden; display: block; transition: transform .25s; }
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: #eee; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card-body p { font-size: 13px; line-height: 1.7; color: #555; }

/* 記事一覧（カード型／リスト型） */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.post { display: block; }
.post-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #eee; }
.post-body time { display: block; font-size: 12px; color: #888; margin-top: 10px; }
.post-body h3 { font-size: 14px; font-weight: 500; line-height: 1.7; margin-top: 6px; }
.lists { display: grid; gap: 28px; }
.list { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid #e5e5e5; padding-bottom: 28px; }
.list .post-img { aspect-ratio: 16/9; }
.post-img { position: relative; overflow: hidden; }
.post-img > .post-thumbnail { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.list h3 { font-size: 16px; font-weight: 500; line-height: 1.7; }

/* タブ風ナビ */
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tabs span { display: block; background: #e9e9e9; text-align: center; padding: 22px 10px; font-size: 14px; letter-spacing: .1em; }

/* 会社概要テーブル */
.spec { width: 100%; border-collapse: collapse; margin: 20px 0 40px; }
.spec th, .spec td { padding: 22px 20px; border-bottom: 1px solid #333; text-align: left; vertical-align: top; font-size: 15px; line-height: 2; }
.spec th { width: 180px; background: #eee; font-weight: 700; }
.map iframe { width: 100%; height: 420px; border: 0; }

/* 沿革タイムライン */
.timeline { display: grid; gap: 36px; }
.tl-item { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.tl-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #eee; }
.tl-body h3 { font-size: 22px; font-weight: 500; letter-spacing: .1em; }
.tl-body h4 { font-size: 16px; font-weight: 700; margin: 6px 0 10px; }
.tl-body p { font-size: 14px; line-height: 1.9; }

/* バリュー */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.value { background: var(--white); border: 1px solid #e5e5e5; padding: 36px; }
.value .tag { display: inline-block; font-size: 13px; letter-spacing: .2em; border-bottom: 2px solid var(--red); padding-bottom: 4px; margin-bottom: 14px; }
.value h3 { font-size: 20px; font-weight: 500; letter-spacing: .06em; }
.value h4 { font-size: 15px; font-weight: 700; margin: 10px 0 12px; color: #555; }
.value p { font-size: 14px; line-height: 1.9; }

/* 特徴・ステップ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #f6f6f6; padding: 30px 26px; text-align: center; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature p { font-size: 13px; line-height: 1.8; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 18px; z-index: 1; }
.step-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #eee; }
.step h3 { font-size: 15px; font-weight: 700; margin: 14px 0 6px; }
.step p { font-size: 13px; line-height: 1.8; }

/* 事業の規模 */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 80px; max-width: 900px; margin: 30px auto; }
.stat { text-align: center; }
.stat img { max-width: 420px; margin: 0 auto; }
.stat-label { font-size: 14px; letter-spacing: .1em; color: #555; }
.stat-num { font-family: var(--font-display); font-size: 64px; line-height: 1.1; }
.stat-num small { font-size: 18px; margin-left: 6px; font-family: var(--font-sans); }
.stat img + .stat-label, .stat img ~ .stat-num { display: none; } /* 画像がある場合は画像のみ表示 */

/* サステナビリティ 3つの円 */
.circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0; }
.circle { aspect-ratio: 1; border-radius: 50%; border: 3px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.circle:nth-child(1) { border-color: #6fbf73; } .circle:nth-child(2) { border-color: #4da3d8; } .circle:nth-child(3) { border-color: #e78fb3; }
.circle h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.circle p { font-size: 13px; line-height: 1.7; }

/* 所在地 */
.locs { display: grid; gap: 40px; }
.loc { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: center; }
.loc-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #eee; }
.loc-body h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.loc-body p { font-size: 14px; line-height: 1.9; }
.loc-body .small { font-size: 11px; color: #888; }
.address { text-align: center; margin: 20px 0 40px; }
.address h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

/* グループ営業所 一覧 */
.org { display: grid; grid-template-columns: 220px 1fr; gap: 30px; background: var(--white); border: 1px solid #e3e3e3; padding: 30px; }
.org-logo { text-align: center; }
.org-logo img { max-height: 110px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.org-logo p { font-size: 13px; font-weight: 700; }
.org-body h4 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.org-body p { font-size: 14px; line-height: 1.8; }

/* 取引先 2列 */
.cols { columns: 2; column-gap: 40px; margin-top: 20px; }
.cols li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dotted #ccc; font-size: 14px; }
.cols a { text-decoration: underline; }

/* 代表写真（右寄せ回り込み） */
.sideimg { float: right; width: 260px; margin: 0 0 20px 30px; }
.sideimg img { width: 100%; }
.box::after { content: ""; display: block; clear: both; }

/* 関連情報 */
.related { background: #f2f2f2; padding: 50px 0; margin-top: 60px; }
.related h3 { font-size: 18px; letter-spacing: .1em; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid a { background: var(--white); padding: 20px; font-size: 14px; letter-spacing: .08em; border-left: 4px solid var(--red); }

/* お問い合わせフォーム */
.inquiry-form { padding: 20px 0 40px; }
.inquiry-form h2 { text-align: center; font-size: 18px; letter-spacing: .14em; margin-bottom: 30px; }
.form { max-width: 720px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form label { display: block; font-size: 13px; margin-bottom: 18px; }
.form label span { color: var(--red); }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; border: 0; border-bottom: 1px solid #333; background: transparent; padding: 10px 4px; font-size: 15px; font-family: inherit; }
.form textarea { border: 1px solid #333; }
.form .btn-more { display: block; margin: 20px auto 0; border: 0; cursor: pointer; padding: 14px 80px; }
.form-note { font-size: 12px; color: #999; text-align: center; margin-top: 16px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1023px) {
  .hero-sub { height: 240px; }
  .hero-sub h1 { font-size: 22px; }
  .split { grid-template-columns: 1fr; }
  .split-img { height: 240px; order: 0 !important; }
  .split-txt { padding: 30px 24px; }
  .box .container.narrow { padding: 0 24px; }
  .gallery, .cards, .posts, .features, .circles, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .values { grid-template-columns: 1fr; }
  .tl-item, .loc, .org, .list { grid-template-columns: 1fr; }
  .cols { columns: 1; }
  .sideimg { float: none; width: 200px; margin: 0 auto 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .spec th { width: 110px; }
  .bgimg { height: 220px; }
  .bgimg + .box { margin-top: 0; }
}
@media (max-width: 560px) {
  .gallery, .cards, .posts, .features, .circles, .related-grid { grid-template-columns: 1fr; }
  .circle { aspect-ratio: auto; border-radius: 16px; }
}
/* Responsive content and accessible controls. */
.sub-body {overflow-wrap:anywhere;}
.sub-body > .bullets,.sub-body > .cols,.sub-body > .circles,.sub-body > .pdf {max-width:952px;margin-left:auto;margin-right:auto;}
.sub-body .container > * {min-width:0;}
.spec {table-layout:fixed;}
.spec th,.spec td {overflow-wrap:anywhere;}
.tabs a {display:block;background:#e9e9e9;text-align:center;padding:22px 10px;font-size:14px;letter-spacing:.1em;}
.contact-intro {max-width:720px;margin:0 auto 24px;text-align:center;color:#555;}
.form-note {color:#666;}
.form .btn-more {padding:14px 28px;}
.stat img {max-width:100%;}
.article-body img {max-width:100%;height:auto;margin:24px auto;}
.article-body iframe {max-width:100%;}
.search-form {display:flex;gap:12px;max-width:760px;margin:0 auto 32px;}
.search-form input {min-width:0;flex:1;padding:14px;font:inherit;border:1px solid #aaa;}
.search-form button {border:0;cursor:pointer;}
.search-result {padding:24px 0;border-bottom:1px solid #ddd;}
.search-result h2 {font-size:18px;margin-bottom:8px;}
.search-result a {text-decoration:underline;text-underline-offset:4px;}
.search-result p {font-size:14px;color:#666;}
@media(max-width:560px){
 .hero-sub .container {padding-bottom:36px;}
 .hero-sub h1 {font-size:22px;letter-spacing:.06em;}
 .hero-sub {height:240px;}
 .crumbs {margin-bottom:18px;}
 .sub-body {padding-top:32px;}
 .spec th,.spec td {padding:14px 12px;font-size:13px;}
 .spec th {width:90px;}
 .value {padding:24px;}
 .steps {grid-template-columns:minmax(0,1fr);}
 .sub-body > .bullets,.sub-body > .cols,.sub-body > .circles,.sub-body > .pdf {margin-left:20px;margin-right:20px;}
 .banner-video p {padding:24px;font-size:21px;}
 .btn-more.wide {padding-left:24px;padding-right:24px;}
}
.logo-row img { max-width:min(360px,100%); }

/* Only the linked TOPICS banners and floating official-site image use these rules. */
.topic-links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;}
.topic-link {display:block;min-width:0;}
.topic-link img {display:block;width:100%;height:auto;object-fit:contain;}
.topic-link:hover {opacity:.88;}
.shakehands-floating-link {position:fixed;right:24px;bottom:24px;width:clamp(104px,12vw,144px);z-index:80;border-radius:8px;box-shadow:0 3px 16px rgb(0 0 0 / .18);}
.shakehands-floating-link img {display:block;width:100%;height:auto;border-radius:8px;}
.has-shakehands-cta .to-top {right:24px;bottom:calc(36px + clamp(104px,12vw,144px));}
.menu-open .shakehands-floating-link {visibility:hidden;pointer-events:none;}
@media(max-width:640px){
 .split-mobile-text-only {min-height:0;}
 .split-mobile-text-only > .split-img {display:none;}
 .topic-links {grid-template-columns:1fr;}
 .shakehands-floating-link {right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:88px;}
 .has-shakehands-cta .to-top {right:16px;bottom:calc(116px + env(safe-area-inset-bottom,0px));}
}
.sub-body img { max-width:100%; }
[hidden] {display:none!important;}
.pagination {display:flex;justify-content:center;align-items:center;gap:20px;margin:36px 0;}
.pagination button {font:inherit;background:#eee;border:0;padding:12px 18px;cursor:pointer;}
.pagination button:disabled {opacity:.4;cursor:default;}
@media(max-width:560px){.pagination{gap:10px}.pagination button{font-size:12px;padding:12px;}}
