/* =========================================================
   TOP（front-page）専用スタイル — top_mockup_v2 準拠
   共通のヘッダー/フッター/リセット/変数は theme.css 側。
   ========================================================= */

/* TOPのブランド色は決定稿の見え方に合わせる */
body.page-top { --blue: #00A0E8; --yellow: #FFF100; }
body.page-top { background: #fff; color: var(--dark); }
.sp-br { display: none; }

/* ---- First View（ヒーロー映像対応） ---- */
.fv { margin-top: var(--header-height); height: calc(100vh - var(--header-height)); min-height: 0; padding: 0 64px 56px; text-align: left; background: #d9dee4 url('../img/hero-poster-top.avif') center center / cover no-repeat; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
@supports (height: 100svh) {
	.fv { height: calc(100svh - var(--header-height)); }
}
/* 背景映像（全ページのトップ画像→映像） */
.fv .fv-media { z-index: 0; }
.fv .fv-overlay { display: none; }
.fv > .fv-inner { position: relative; z-index: 2; width: 100%; max-width: none; margin: 0; }
.fv-text { max-width: 940px; }
.fv h1 { font-size: 64px; font-weight: var(--weight-black); line-height: 1.28; margin-bottom: 12px; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.34); }
.fv h1 .word { display: inline-block; position: relative; padding-bottom: 8px; }
.fv h1 .l2 { display: block; margin-top: 20px; }
.fv .sub { font-size: 20px; line-height: 1.65; color: rgba(255,255,255,.96); margin: 28px 0 0; font-weight: var(--weight-bold); text-shadow: 0 2px 12px rgba(0,0,0,.28); }
.fv .group { font-size: 14px; color: #fff; font-weight: var(--weight-bold); margin-bottom: 0; }
.fv .ctas { position: absolute; right: 64px; bottom: 50px; width: 384px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; z-index: 3; }
.fv .ctas a { text-align: center; white-space: nowrap; padding: 22px 40px; font-size: 17px; line-height: 1.3; border-radius: 6px; }

/* ---- Buttons ---- */
.btn-primary { background: var(--red); color: #fff; padding: 18px 40px; border-radius: 6px; font-weight: var(--weight-bold); text-decoration: none; font-size: 15px; transition: .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230,0,18,.25); }
.btn-outline { background: #fff; color: var(--dark); padding: 18px 40px; border: 2px solid var(--dark); border-radius: 6px; font-weight: var(--weight-bold); text-decoration: none; font-size: 15px; }
.btn-blue { background: var(--blue); color: #fff; padding: 18px 40px; border-radius: 6px; font-weight: var(--weight-bold); text-decoration: none; font-size: 15px; }
.btn-white { background: #fff; color: var(--red); padding: 20px 60px; border-radius: 6px; font-weight: var(--weight-bold); text-decoration: none; font-size: var(--font-button-lg); display: inline-block; }

/* ---- Section base ---- */
.sec { padding: 100px 48px; }
/* 見出しは左揃え。1200px中央ボックスに収めてグリッド左端と整合 */
.sec-label, .sec h2, .sec .lead { max-width: 1200px; margin-left: auto; margin-right: auto; text-align: left; }
.sec-label { font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--blue); font-weight: var(--weight-bold); letter-spacing: var(--tracking-label-wide); margin-bottom: 12px; }
.sec h2 { font-size: 36px; font-weight: var(--weight-black); margin-bottom: 16px; color: #000; }
.sec .lead { color: #000; margin-bottom: 60px; font-size: 15px; font-weight: var(--weight-bold); }
.alt-bg { background: var(--offwhite); }

/* About */
.about-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; }
.about-img { height: 380px; background: #cfd6df url('../img/president.avif') center top / cover no-repeat; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 14px; overflow: hidden; position: relative; }
.about-h { font-size: 32px; font-weight: var(--weight-black); line-height: 1.5; margin-bottom: 24px; }
.about-h .em { color: var(--red); }
.about-body { font-size: 15px; line-height: var(--lh-long); color: var(--dark); margin-bottom: 24px; }

/* Service */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.svc-bar { height: 5px; }
.svc-card:nth-child(1) .svc-bar { background: var(--red); }
.svc-card:nth-child(2) .svc-bar { background: var(--blue); }
.svc-card:nth-child(3) .svc-bar { background: var(--yellow); }
.svc-card:nth-child(4) .svc-bar { background: var(--dark); }
.svc-body { padding: 32px 24px; }
.svc-num { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: var(--weight-bold); color: var(--gray); letter-spacing: var(--tracking-label); margin-bottom: 8px; }
.svc-card:nth-child(1) .svc-num { color: var(--red); }
.svc-card:nth-child(2) .svc-num { color: var(--blue); }
.svc-card:nth-child(3) .svc-num { color: #caa400; }
.svc-card:nth-child(4) .svc-num { color: var(--dark); }
.svc-name { font-size: var(--font-body); font-weight: var(--weight-bold); margin-bottom: 14px; }
.svc-catch { font-size: 18px; font-weight: var(--weight-bold); line-height: 1.5; margin-bottom: 14px; }
.svc-card:nth-child(1) .svc-catch { color: var(--red); }
.svc-card:nth-child(2) .svc-catch { color: var(--blue); }
.svc-card:nth-child(3) .svc-catch { color: #caa400; }
.svc-card:nth-child(4) .svc-catch { color: var(--dark); }
.svc-desc { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* Process */
.process-wrap { max-width: 1200px; margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.process-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px 16px; text-align: center; position: relative; }
.process-num { font-family: 'Outfit', sans-serif; font-size: 48px; font-weight: 800; color: var(--red); line-height: var(--lh-tight); margin-bottom: 12px; }
.process-step:nth-child(2) .process-num { color: var(--blue); }
.process-step:nth-child(3) .process-num { color: #caa400; }
.process-step:nth-child(4) .process-num { color: var(--red); }
.process-step:nth-child(5) .process-num { color: var(--blue); }
.process-name { font-size: 14px; font-weight: var(--weight-bold); margin-bottom: 8px; }
.process-desc { font-size: 11px; color: var(--gray); line-height: 1.6; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; text-align: center; }
.stat-num { font-family: 'Outfit', sans-serif; font-size: 80px; font-weight: 800; color: var(--red); line-height: var(--lh-tight); margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--gray); font-weight: var(--weight-medium); }
.stats-note { text-align: center; margin-top: 40px; color: var(--gray); font-style: italic; font-size: 14px; }

/* Voice */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; background: #f5f5f5; border-radius: 16px; padding: 48px; }
.voice-card { background: #fff; border: none; border-radius: 12px; padding: 32px; position: relative; box-shadow: 0 2px 12px rgba(15,26,48,0.05); display: flex; flex-direction: column; }
.voice-text { flex: 1; }
.voice-mark { font-family: 'Outfit', sans-serif; font-size: 60px; color: var(--yellow); line-height: .6; margin-bottom: 12px; }
.voice-text { font-size: 15px; line-height: 1.8; margin-bottom: 24px; color: var(--dark); }
.voice-meta { font-size: 12px; color: var(--gray); border-top: 1px solid var(--line); padding-top: 16px; }
.voice-name { font-weight: var(--weight-bold); color: var(--dark); margin-bottom: 4px; }

/* Recruit */
.recruit { position: relative; }
.iv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto 40px; }
.iv-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.iv-video { height: 200px; background: linear-gradient(135deg, #1A2744, #009DE4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 36px; position: relative; overflow: hidden; }
.iv-body { padding: 24px; }
.iv-role { font-size: 12px; color: var(--gray); font-weight: var(--weight-semibold); margin-bottom: 8px; }
.iv-quote { font-size: var(--font-body); font-weight: var(--weight-bold); line-height: 1.6; }
.recruit-ctas { display: flex; gap: 20px; justify-content: center; margin-top: 40px; }
.recruit-ctas a { width: 384px; padding: 22px 0; font-size: var(--font-button-lg); text-align: center; border-radius: 4px; }

/* Office */
.office-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 16px; max-width: 1200px; margin: 0 auto 40px; }
.office-photo { background: #e2e8f0; background-size: cover; background-position: center; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 13px; font-weight: var(--weight-semibold); overflow: hidden; }
.office-photo:nth-child(1) { grid-row: span 2; font-size: var(--font-body); }
.office-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; text-align: center; }
.office-feat { padding: 28px 20px; border: 1px solid var(--line); border-radius: 12px; }
.office-icon { font-size: 40px; margin-bottom: 12px; color: var(--navy); line-height: 0; }
.office-icon .feat-svg { display: inline-block; }
.office-feat-name { font-size: 14px; font-weight: var(--weight-bold); margin-bottom: 6px; }
.office-feat-desc { font-size: 12px; color: var(--gray); }

/* Jobs（TOPの簡易カード） */
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 40px; }
.job-card-simple { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: .2s; text-decoration: none; color: inherit; }
.job-card-simple:hover { border-color: var(--red); box-shadow: 0 8px 20px rgba(230,0,18,.08); }
.job-info { flex: 1; }
.job-tag-s { display: inline-block; font-size: 10px; font-weight: var(--weight-bold); padding: 4px 10px; border-radius: 3px; margin-bottom: 12px; letter-spacing: .05em; }
.job-tag-s.mid { background: var(--red); color: #fff; }
.job-tag-s.new { background: #243DC7; color: #fff; }
.job-tag-s.eng { background: var(--blue); color: #fff; }
.job-tag-s.sales { background: #D4B500; color: #fff; }
.job-name { font-size: 18px; font-weight: var(--weight-bold); margin-bottom: 6px; }
.job-meta { font-size: 12px; color: var(--gray); }
.job-arrow { font-size: 24px; color: var(--gray); }
.events-banner { background: linear-gradient(135deg, var(--red), #c00010); color: #fff; border-radius: 12px; padding: 48px 32px; max-width: 1200px; margin: 0 auto; text-align: center; }
.events-info { flex: 1; }
.events-label { font-size: 12px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-label); margin-bottom: 8px; opacity: .9; }
.events-h { font-size: 22px; font-weight: var(--weight-black); margin-bottom: 8px; line-height: 1.5; }
.events-desc { font-size: 13px; opacity: .95; }

/* Group */
.group-wrap { max-width: 1200px; margin: 0 auto; text-align: center; }
.group-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.group-logo { background: #f5f5f5; border: none; border-radius: 12px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; transition: .2s; }
.group-logo:hover { border-color: var(--blue); }
.group-logo-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px; color: var(--red); margin-bottom: 6px; }
.group-logo-desc { font-size: 11px; color: var(--gray); text-align: center; }

/* Message */
.msg-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.msg-video { background: linear-gradient(135deg, #1A2744, #E60012); height: 340px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; position: relative; overflow: hidden; }
.msg-quote { font-family: 'Outfit', sans-serif; font-size: 120px; color: var(--yellow); line-height: .6; margin-bottom: 16px; }
.msg-h { font-size: 32px; font-weight: var(--weight-black); margin-bottom: 24px; line-height: 1.4; }
.msg-h .word { display: inline-block; position: relative; padding-bottom: 6px; }
.msg-h .word::after { content: ''; position: absolute; bottom: 0; left: 5%; right: 5%; height: 4px; }
.msg-h .w1::after { background: var(--red); }
.msg-h .w2::after { background: var(--blue); }
.msg-h .w3::after { background: var(--yellow); }
.msg-body { font-size: 15px; line-height: var(--lh-long); margin-bottom: 24px; }
.msg-name { font-weight: var(--weight-bold); margin-bottom: 24px; }

/* News */
.news-list { max-width: 1200px; margin: 0 auto; }
.news-item { display: grid; grid-template-columns: 120px 100px 1fr auto; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.news-date { font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--gray); font-weight: var(--weight-semibold); }
.news-cat { display: inline-block; font-size: 10px; font-weight: var(--weight-bold); padding: 4px 10px; border-radius: 3px; text-align: center; }
.news-cat.tech { background: #dbeafe; color: #1e40af; }
.news-cat.recruit { background: #fee2e2; color: #991b1b; }
.news-cat.event { background: #fef3c7; color: #92400e; }
.news-cat.info { background: #f1f5f9; color: #475569; }
.news-title { font-size: 14px; color: var(--dark); text-decoration: none; transition: .2s; }
.news-title:hover { color: var(--blue); }
.news-arrow { color: var(--gray); }

/* FAQ */
.faq-list { max-width: 1200px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 20px 24px; font-weight: var(--weight-bold); font-size: 15px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: .2s; background: #f5f5f5; }
.faq-q:hover { background: var(--offwhite); }
.faq-q-mark { color: var(--red); font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.faq-a { padding: 0 24px 20px 60px; font-size: 14px; color: var(--gray); line-height: 1.8; border-top: 1px solid var(--line); padding-top: 16px; }

/* CTA */
.cta-sec { background: var(--red); text-align: center; padding: 80px 48px; color: #fff; }
.cta-sec h2 { color: #fff; font-size: 40px; font-weight: var(--weight-black); margin-bottom: 16px; }
.cta-sec p { font-size: 15px; margin-bottom: 32px; opacity: .95; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== 決定稿TOP 追補 ===== */
/* 黒塗りボタン（会社情報を見る／グループ一覧／記事一覧） */
.btn-dark { display: inline-flex; align-items: center; gap: 8px; background: var(--dark); color: #fff; padding: 16px 32px; border-radius: 6px; font-weight: var(--weight-bold); text-decoration: none; font-size: 14px; transition: .2s; }
.btn-dark:hover { background: #0f172a; transform: translateY(-2px); }

/* RECRUIT：写真カード（決定稿＝枠なし写真＋キャプション＋バッジ） */
.recruit .iv-card { background: none; border: none; border-radius: 0; overflow: visible; }
.iv-photo { width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center; border-radius: 8px; }
.recruit .iv-body { padding: 16px 2px 0; }
.iv-quote { font-size: 15px; font-weight: var(--weight-bold); line-height: 1.6; color: var(--dark); margin-bottom: 10px; }
.iv-badge { display: inline-block; background: var(--blue); color: #fff; font-size: 11px; font-weight: var(--weight-bold); padding: 4px 12px; border-radius: 3px; letter-spacing: .04em; }

/* CAREERS：青セクション */
.careers-sec { background: var(--blue); }
.careers-sec .sec-label { color: rgba(255,255,255,.85); }
.careers-sec h2 { color: #fff; }
.careers-sec .lead { color: rgba(255,255,255,.85); }

/* EVENT：独立した赤帯セクション */
.events-sec { padding: 8px 48px 64px; }
.events-banner { max-width: 1200px; }

/* GROUP：ロゴ行は左端揃え、ボタンは中央（決定稿） */
.group-wrap { text-align: center; }
.group-logos { margin: 0 0 32px; }

/* CAREERS：職種バッジ2つを横並び */
.job-tags-row { display: flex; gap: 6px; margin-bottom: 12px; }
.job-tags-row .job-tag-s { margin-bottom: 0; }

/* RECRUIT：新卒エントリーは完成稿の濃紺青（中途=赤・FVの採用情報=シアンは別） */
.recruit-ctas .btn-blue { background: #1731C4; }
.recruit-ctas .btn-blue:hover { background: #122699; }

/* EVENT：中央見出しを大きく */
.events-h { font-size: 26px; }
.events-desc { margin-top: 8px; }

/* MESSAGE：見出し下線は不要（白カードに番号なし） */
.msg-video { color: transparent; }

/* TOP FAQ：常時展開・非インタラクティブ */
.faq-item[data-top-faq] .faq-q {
	cursor: default;
}
.faq-item[data-top-faq] .faq-q:hover {
	background: #f5f5f5;
}
/* ===== 決定稿TOP：セクション形状・色の精密化 ===== */
.alt-bg { background: #f5f5f5; }
.faq-sec { background: #fff; }
.btn-dark { background: #000; border-radius: 4px; justify-content: center; }
.btn-dark:hover { background: #000; }
.about-wrap .btn-dark,
.msg-wrap .btn-dark,
.news-more .btn-dark { width: 384px; max-width: 100%; padding: 20px 0; font-size: var(--font-button-lg); }
.group-wrap .btn-dark { width: 300px; max-width: 100%; padding: 16px 0; }

/* ABOUT */
.about-wrap { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 52px; align-items: center; }
.about-img { height: 350px; border-radius: 0; }
.about-h { font-size: 34px; line-height: 1.45; color: #000; }
.about-body { color: #000; font-weight: var(--weight-medium); }

/* SERVICE */
.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.svc-card { background: #f7f7f7; border: 0; border-radius: 0; box-shadow: 0 8px 22px rgba(15, 23, 42, .06); }
.svc-card:hover { transform: none; box-shadow: 0 8px 22px rgba(15, 23, 42, .06); }
.svc-bar { height: 18px; }
.svc-card:nth-child(2) .svc-bar { background: var(--yellow); }
.svc-card:nth-child(3) .svc-bar { background: var(--blue); }
.svc-body { min-height: 330px; padding: 56px 64px 62px; }
.svc-num { font-size: 17px; color: #000; letter-spacing: .02em; margin-bottom: 24px; }
.svc-card:nth-child(1) .svc-num,
.svc-card:nth-child(2) .svc-num,
.svc-card:nth-child(3) .svc-num,
.svc-card:nth-child(4) .svc-num { color: #000; }
.svc-name { font-size: 38px; line-height: 1.25; font-weight: var(--weight-black); color: #000; margin-bottom: 28px; }
.svc-catch { font-size: 22px; line-height: 1.6; font-weight: var(--weight-black); margin-bottom: 18px; }
.svc-card:nth-child(2) .svc-catch { color: #d4b500; }
.svc-card:nth-child(3) .svc-catch { color: var(--blue); }
.svc-desc { font-size: 20px; line-height: var(--lh-body); color: #000; font-weight: var(--weight-bold); }

/* PROCESS */
.process-wrap { max-width: 1200px; margin: 60px auto 0; }
.process-steps { display: block; max-width: 820px; margin-left: auto; }
.process-step {
	display: grid;
	grid-template-columns: 128px 260px 1fr;
	align-items: center;
	gap: 28px;
	min-height: 142px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #8d8d8d;
	border-radius: 0;
	padding: 0;
	text-align: left;
}
.process-step::after {
	content: '';
	width: 12px;
	height: 12px;
	background: #000;
	transform: translateX(-50%) translateY(50%) rotate(45deg);
	position: absolute;
	left: 50%;
	bottom: -1px;
}
.process-step:last-child { border-bottom: 0; }
.process-step:last-child::after { content: none; }
.process-num,
.process-step:nth-child(2) .process-num,
.process-step:nth-child(3) .process-num,
.process-step:nth-child(4) .process-num,
.process-step:nth-child(5) .process-num { color: var(--red); }
.process-num { font-size: 28px; font-weight: var(--weight-bold); margin: 0; }
.process-num::after { content: '/'; margin-left: 1px; }
.process-name { font-size: 32px; line-height: 1.3; font-weight: var(--weight-black); color: #000; margin: 0; }
.process-desc { font-size: 20px; line-height: 1.7; color: #000; font-weight: var(--weight-medium); }

/* VOICE */
.voice-grid { background: #f5f5f5; border-radius: 0; padding: 68px 48px; }
.voice-card { min-height: 250px; border-radius: 6px; box-shadow: 0 4px 18px rgba(15, 23, 42, .08); }
.voice-mark { color: #fff100; }

/* OFFICE */
.office-photo { border-radius: 0; }
.office-features { max-width: 900px; }
.office-feat { border-color: #9ca3af; border-radius: 0; min-height: 170px; padding: 42px 20px; background: #fff; }

/* EVENT */
.events-banner { background: var(--red); border-radius: 6px; box-shadow: none; }

/* GROUP */
.events-sec + .sec { padding-top: 135px; padding-bottom: 140px; }
.job-card-simple { min-height: 118px; padding: 36px; }
.events-sec { padding-top: 48px; }
.group-logo { height: 160px; border-radius: 2px; box-shadow: 0 4px 16px rgba(15, 23, 42, .06); }
.group-logo-name { font-size: 28px; color: var(--red); }

/* MESSAGE */
.msg-wrap { align-items: start; }
.msg-video { height: 460px; border-radius: 0; }
.msg-h { color: #000; }
.msg-body { color: #000; font-weight: var(--weight-medium); }

/* NEWS */
.news-list { max-width: 1020px; }
.news-list-sample .news-item { grid-template-columns: 1fr auto; gap: 24px; min-height: 88px; padding: 24px 0; }
.news-list-sample .news-spacer { display: none; }
.news-list-sample .news-date { font-size: 20px; line-height: var(--lh-tight); color: #000; font-weight: 800; }
.news-list-sample .news-arrow { font-size: 30px; color: #767676; line-height: var(--lh-tight); }
.news-more { max-width: 1200px; margin: 56px auto 0; text-align: center; }

/* FAQ */
.faq-list { max-width: 1130px; }
.faq-item { border-color: #9ca3af; border-radius: 14px; margin-bottom: 28px; }

.faq-q { min-height: 76px; padding: 24px 36px; gap: 22px; background: #f5f5f5; color: #000; font-size: 18px; }
.faq-q:hover { background: #f5f5f5; }
.faq-q-mark { color: var(--red); font-size: 32px; line-height: var(--lh-tight); }
.faq-a { border-top: 0; padding: 34px 80px 40px; color: #000; font-size: var(--font-body); line-height: var(--lh-long); font-weight: var(--weight-bold); }

/* TOP footer */
.ast-footer-compact { padding: 112px 0 116px; text-align: center; }
.ast-footer-compact { padding-bottom: 108px; }
.ast-footer-compact .wrap { max-width: 960px; }
.ast-footer-compact .footer-logo { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 31px; }
.ast-footer-compact .footer-logo-img { height: 62px; width: auto; }
.ast-footer-compact .footer-logo-img-footer { width: 168px; height: auto; }
.ast-footer-compact .footer-logo small { margin-top: 10px; color: #000; font-size: 22px; line-height: var(--lh-tight); font-weight: var(--weight-black); letter-spacing: var(--tracking-none); }
.ast-footer-compact p { color: #000; font-size: 18px; line-height: 1.45; margin: 0; font-weight: var(--weight-black); }
.ast-footer-compact .footer-address { margin-bottom: 18px; }
.ast-footer-compact .footer-company { white-space: nowrap; }

/* ===== TOP再監査 0.5.8：PDF実測に基づく枠寸法補正 ===== */
@media (min-width: 769px) {
	/* SERVICEカードはPDFの348px級に近づけ、PROCESSの開始位置を戻す */
	.svc-body { min-height: 278px; padding: 38px 64px 40px; }

	/* RECRUIT写真枠は決定稿の16:9に合わせる */
	.iv-photo { aspect-ratio: 16 / 9; }

	/* WORKPLACEの写真グリッドは大枠394px、小枠186px級に固定 */
	.office-grid {
		grid-template-columns: minmax(0, 557px) repeat(2, minmax(0, 1fr));
		grid-template-rows: 186px 186px;
		gap: 22px;
	}

	/* CAREERS青帯は決定稿より短かったため、下方向の呼吸を戻す */
	.careers-sec { padding-top: 116px; padding-bottom: 276px; }

	/* EVENT赤帯はPDFより低かったため少し厚くする */
	.events-banner { min-height: 177px; display: flex; align-items: center; justify-content: center; }

	/* MESSAGE左枠は横を抑え、高さを決定稿へ寄せる */
	.msg-wrap { grid-template-columns: 528px minmax(0, 1fr); gap: 72px; }
	.msg-video { height: 476px; }

	/* FAQはページ中央へ揃える */
	.faq-list { width: 1130px; max-width: calc(100vw - 200px); margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
	.sp-br { display: block; }
	.fv { margin-top: 0; height: 100vh; min-height: 0; padding: var(--header-height) 20px 48px; background-position: center top; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
	@supports (height: 100svh) {
		.fv { height: 100svh; }
	}
	.fv-text { max-width: 100%; }
	.fv h1 { font-size: 36px; line-height: 1.35; }
	.fv .sub { font-size: 14px; line-height: var(--lh-body); }
	.fv .ctas { position: relative; right: auto; bottom: auto; width: 100%; max-width: 340px; margin-top: 28px; }
	.svc-grid, .stats-grid, .iv-grid, .voice-grid, .process-steps, .group-logos, .jobs-grid { grid-template-columns: 1fr 1fr; }
	.svc-grid, .voice-grid, .process-steps { grid-template-columns: 1fr; }
	.svc-body { min-height: 0; padding: 40px 28px 44px; }
	.svc-name { font-size: 28px; }
	.svc-catch { font-size: 18px; }
	.svc-desc { font-size: 15px; }
	.process-steps { display: block; max-width: none; margin-left: 0; }
	.process-step { grid-template-columns: 70px 1fr; gap: 12px 20px; min-height: 130px; padding: 24px 0; }
	.process-desc { grid-column: 2; font-size: 14px; }
	.process-name { font-size: 22px; }
	.process-num { font-size: 22px; }
	.jobs-grid { grid-template-columns: 1fr; }
	.about-wrap, .msg-wrap, .events-banner { grid-template-columns: 1fr; }
	.about-img, .msg-video { height: 280px; }
	.workplace-sec { display: flex; flex-direction: column; }
	.workplace-sec .sec-label { order: 0; }
	.workplace-sec h2 { order: 1; }
	.workplace-sec .office-grid { order: 2; }
	.workplace-sec .lead { order: 3; }
	.workplace-sec .office-features { order: 4; }
	.office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 12px; margin-bottom: 32px; width: 100%; }
	.office-photo { width: 100%; min-width: 0; min-height: 0; height: clamp(104px, 30vw, 120px); aspect-ratio: auto; }
	.office-photo:nth-child(1) { grid-column: 1 / -1; height: 240px; min-height: 0; }
	.office-grid .office-photo:nth-child(1) { grid-row: auto; }
	.workplace-sec .office-features { grid-template-columns: 1fr; gap: 14px; width: 100%; max-width: 100%; align-self: stretch; }
	.workplace-sec .office-feat { width: 100%; min-height: 0; padding: 28px 20px; }
	.sec, .cta-sec { padding-left: 20px; padding-right: 20px; }
	.cta-sec h2 { font-size: 34px; line-height: 1.45; }
	.news-item { grid-template-columns: 1fr; gap: 8px; }
	.news-list-sample .news-item { grid-template-columns: 1fr auto; }
	.faq-a { padding: 24px 28px 32px; }

}

/* ===== ボタン幅トンマナ統一（主要ボタン300px固定／TOP中途・新卒エントリーは360維持） ===== */
.fv .ctas { width: 384px; }
.cta-sec .btn-white { width: 384px; max-width: 100%; box-sizing: border-box; padding-left: 0; padding-right: 0; justify-content: center; }

@media (max-width: 768px) {
	.fv .ctas { width: 100%; max-width: 340px; }
	.about-wrap .btn-dark,
	.msg-wrap .btn-dark,
	.news-more .btn-dark,
	.cta-sec .btn-white { width: 100%; max-width: 340px; }
	.recruit-ctas { flex-direction: column; align-items: center; }
	.recruit-ctas a { width: 100%; max-width: 340px; }
	.ast-footer-compact { padding: 72px 0 76px; }
	.ast-footer-compact .footer-logo { margin-bottom: 34px; }
	.ast-footer-compact .footer-logo-img { height: 52px; }
	.ast-footer-compact .footer-logo-img-footer { width: 146px; height: auto; }
	.ast-footer-compact .footer-logo small { font-size: 20px; }
	.ast-footer-compact p { font-size: 14px; line-height: 1.7; }
	.ast-footer-compact .footer-address { margin-bottom: 10px; }
	.ast-footer-compact .footer-company { white-space: normal; }
}

/* ===== 0.5.60：モバイル指摘反映 ===== */
@media (max-width: 768px) {
	body.page-top .fv h1 {
		line-height: 1.32;
	}

	body.page-top .top-about-sec {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	body.page-top .top-about-sec + .sec {
		padding-top: 68px;
	}

	body.page-top .about-wrap {
		gap: 28px;
	}

	body.page-top .about-wrap .btn-dark {
		margin-bottom: 0;
	}

	body.page-top .voice-grid {
		padding: 24px 18px;
		gap: 16px;
	}

	body.page-top .voice-card {
		min-height: 0;
		padding: 24px 22px;
	}

	body.page-top .voice-mark {
		margin-bottom: 6px;
	}

	body.page-top .workplace-sec,
	body.page-top .workplace-sec .sec-label,
	body.page-top .workplace-sec h2,
	body.page-top .workplace-sec .lead,
	body.page-top .workplace-sec .office-features,
	body.page-top .workplace-sec .office-feat,
	body.page-top .workplace-sec .office-icon {
		text-align: left;
	}

	body.page-top .workplace-sec .office-features {
		margin-left: 0;
		margin-right: 0;
	}

	body.page-top .group-wrap {
		text-align: left;
	}
}

/* 0.5.86: TOP Recruit cards should be one column on mobile. */
@media (max-width: 768px) {
	body.page-top .recruit .iv-grid {
		grid-template-columns: 1fr;
		gap: 30px;
		width: 100%;
	}

	body.page-top .recruit .iv-card {
		width: 100%;
	}
}

/* 0.5.87: Keep TOP Workplace content left-aligned on mobile. */
@media (max-width: 768px) {
	body.page-top .workplace-sec {
		align-items: flex-start;
		text-align: left;
	}

	body.page-top .workplace-sec .sec-label,
	body.page-top .workplace-sec h2,
	body.page-top .workplace-sec .lead,
	body.page-top .workplace-sec .office-grid,
	body.page-top .workplace-sec .office-features {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		text-align: left;
	}

	body.page-top .workplace-sec .office-feat,
	body.page-top .workplace-sec .office-icon,
	body.page-top .workplace-sec .office-feat-name,
	body.page-top .workplace-sec .office-feat-desc {
		text-align: left;
	}
}

/* Recruit interview and group display refinements. */
body.page-top .recruit .iv-card {
	display: block;
	color: inherit;
	text-decoration: none;
}
body.page-top .group-logos {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.page-top .group-logo-name {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 18px;
	line-height: 1.5;
}

/* Keep fractional viewport rounding from exposing the poster beside the video. */
body.page-top .fv .ast-hero-video {
	width: calc(100% + 2px);
	max-width: none;
	margin-left: -1px;
}

/* 0.5.153: Mobile FV text and CTA placement. */
@media (max-width: 768px) {
	body.page-top .fv {
		height: 100vh;
		min-height: 0;
		margin-bottom: 196px;
		padding: var(--header-height) 20px 24px;
		justify-content: flex-end;
		overflow: visible;
	}

	@supports (height: 100svh) {
		body.page-top .fv { height: 100svh; }
	}

	body.page-top .fv-text {
		width: 100%;
		max-width: none;
	}

	body.page-top .fv h1 {
		font-size: clamp(18px, calc(7.65vw - 4.3px), 26px);
		line-height: 1.32;
		white-space: nowrap;
		margin-bottom: 0;
	}

	body.page-top .fv h1 .l2 {
		margin-top: 12px;
		white-space: nowrap;
	}

	body.page-top .fv .sp-br { display: none; }

	body.page-top .fv .sub {
		margin-top: 18px;
		font-size: 13px;
	}

	body.page-top .fv .ctas {
		position: absolute;
		top: calc(100% + 24px);
		left: 20px;
		right: 20px;
		bottom: auto;
		width: auto;
		max-width: none;
		margin-top: 0;
	}
}
