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

/* TOPの黄色はブランドの鮮やかな #FFD500 を使用 */
body.page-top { --yellow: #FFD500; }
body.page-top { background: #fff; color: var(--dark); }

/* ---- First View（ヒーロー映像対応） ---- */
.fv { padding: 140px 48px 100px; text-align: center; background: #fff; position: relative; overflow: hidden; }
.fv::before { content: ''; position: absolute; top: 0; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, #FFD50020, transparent); border-radius: 50%; z-index: 0; }
/* 背景映像（全ページのトップ画像→映像） */
.fv .fv-media { z-index: 0; }
.fv .fv-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.80); z-index: 1; }
.fv > .fv-inner { position: relative; z-index: 2; }
.fv h1 { font-size: 72px; font-weight: 900; line-height: 1.3; margin-bottom: 12px; }
.fv h1 .word { display: inline-block; position: relative; padding-bottom: 8px; }
.fv h1 .word::after { content: ''; position: absolute; bottom: 0; left: 5%; right: 5%; height: 6px; border-radius: 2px; }
.fv h1 .w1::after { background: var(--red); }
.fv h1 .w2::after { background: var(--blue); }
.fv h1 .w3::after { background: var(--yellow); }
.fv h1 .l2 { display: block; margin-top: 20px; }
.fv .sub { font-size: 16px; color: var(--gray); margin: 32px 0 8px; font-weight: 500; }
.fv .group { font-size: 14px; color: var(--dark); font-weight: 700; margin-bottom: 40px; }
.fv .ctas { display: flex; gap: 16px; justify-content: center; }

/* ---- Buttons ---- */
.btn-primary { background: var(--red); color: #fff; padding: 18px 40px; border-radius: 6px; font-weight: 700; 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: 700; text-decoration: none; font-size: 15px; }
.btn-blue { background: var(--blue); color: #fff; padding: 18px 40px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn-white { background: #fff; color: var(--red); padding: 20px 60px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 16px; display: inline-block; }

/* ---- Section base ---- */
.sec { padding: 100px 48px; }
.sec-label { font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--blue); font-weight: 700; letter-spacing: .2em; margin-bottom: 12px; text-align: center; }
.sec h2 { font-size: 36px; font-weight: 900; text-align: center; margin-bottom: 16px; color: var(--dark); }
.sec .lead { text-align: center; color: var(--gray); margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; font-size: 15px; }
.alt-bg { background: var(--offwhite); }

/* About */
.about-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about-img { height: 380px; background: linear-gradient(135deg, #FFD50040, #0066CC30); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 14px; overflow: hidden; position: relative; }
.about-h { font-size: 32px; font-weight: 900; line-height: 1.5; margin-bottom: 24px; }
.about-h .em { color: var(--red); }
.about-body { font-size: 15px; line-height: 2; 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: 700; color: var(--gray); letter-spacing: .15em; 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: 16px; font-weight: 700; margin-bottom: 14px; }
.svc-catch { font-size: 18px; font-weight: 700; 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: 1; 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: 700; 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: 1000px; margin: 0 auto; text-align: center; }
.stat-num { font-family: 'Outfit', sans-serif; font-size: 80px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--gray); font-weight: 500; }
.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: 1100px; margin: 0 auto; }
.voice-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; position: relative; }
.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: 700; color: var(--dark); margin-bottom: 4px; }

/* Recruit */
.recruit { position: relative; }
.iv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; 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, #0066CC); 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: 600; margin-bottom: 8px; }
.iv-quote { font-size: 16px; font-weight: 700; line-height: 1.6; }
.recruit-ctas { display: flex; gap: 16px; justify-content: center; margin-top: 40px; }

/* Office */
.office-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 16px; max-width: 1100px; margin: 0 auto 40px; }
.office-photo { background: linear-gradient(135deg, #0066CC30, #FFD50040); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 13px; font-weight: 600; overflow: hidden; }
.office-photo:nth-child(1) { grid-row: span 2; background: linear-gradient(135deg, #1A274430, #0066CC50); font-size: 16px; }
.office-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; text-align: center; }
.office-feat { padding: 20px; }
.office-icon { font-size: 40px; margin-bottom: 12px; }
.office-feat-name { font-size: 14px; font-weight: 700; 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: 1100px; 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: 700; 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: var(--blue); color: #fff; }
.job-tag-s.eng { background: #fef3c7; color: #92400e; }
.job-tag-s.sales { background: #dbeafe; color: #1e40af; }
.job-name { font-size: 18px; font-weight: 700; 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: 32px; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.events-info { flex: 1; }
.events-label { font-size: 12px; font-weight: 700; letter-spacing: .15em; margin-bottom: 8px; opacity: .9; }
.events-h { font-size: 22px; font-weight: 900; margin-bottom: 8px; line-height: 1.5; }
.events-desc { font-size: 13px; opacity: .95; }

/* Group */
.group-wrap { max-width: 1100px; margin: 0 auto; text-align: center; }
.group-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.group-logo { background: #fff; border: 1px solid var(--line); 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: 14px; color: var(--navy); margin-bottom: 6px; }
.group-logo-desc { font-size: 11px; color: var(--gray); text-align: center; }

/* Message */
.msg-wrap { max-width: 1000px; 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: 900; 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: 2; margin-bottom: 24px; }
.msg-name { font-weight: 700; margin-bottom: 24px; }

/* News */
.news-list { max-width: 900px; 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: 600; }
.news-cat { display: inline-block; font-size: 10px; font-weight: 700; 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: 900px; 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: 700; font-size: 15px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: .2s; }
.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: 900; margin-bottom: 16px; }
.cta-sec p { font-size: 15px; margin-bottom: 32px; opacity: .95; max-width: 600px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
	.fv { padding: 120px 20px 80px; }
	.fv h1 { font-size: 42px; }
	.svc-grid, .stats-grid, .iv-grid, .voice-grid, .process-steps, .group-logos, .jobs-grid { grid-template-columns: 1fr 1fr; }
	.about-wrap, .msg-wrap, .events-banner { grid-template-columns: 1fr; }
	.office-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
	.office-grid .office-photo:nth-child(1) { grid-row: auto; }
	.sec, .cta-sec { padding-left: 20px; padding-right: 20px; }
	.news-item { grid-template-columns: 1fr; gap: 8px; }
}
