/* 株式会社Riv — 静的サイト共通スタイル（旧サイト SWELL テーマの配色・構成に合わせる） */
:root {
  --main: #0a7ced;
  --main-dark: #085db2;
  --main-band: #0781ef;
  --text: #333;
  --muted: #777;
  --bg: #fdfdfd;
  --gray: #f9f9f9;
  --field: #f6f6f7;
  --border: #e5e5e5;
  --radius: 20px;
  --font-ja: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Poppins", var(--font-ja);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
a:hover { opacity: .8; }
h1, h2, h3 { line-height: 1.4; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.article { max-width: 900px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.en { font-family: var(--font-en); }
.label { font-family: var(--font-en); color: var(--main); font-weight: 600; font-size: 20px; margin: 0 0 10px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; max-width: 100%; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }
.site-logo img { height: 46px; width: auto; }
.gnav { display: flex; align-items: center; gap: 36px; }
.gnav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.gnav a { color: var(--text); text-decoration: none; font-family: var(--font-en); font-size: 15px; letter-spacing: .03em; position: relative; }
.gnav ul a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--text); transition: width .3s; }
.gnav ul a:hover::after, .gnav ul a[aria-current="page"]::after { width: 100%; }
.btn-line { display: inline-block; border: 1px solid var(--main); color: var(--main) !important; border-radius: 4px; padding: 4px 18px; font-size: .9em; }
.btn-line:hover { background: var(--main); color: #fff !important; opacity: 1; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 959px) {
  .site-header__inner { height: 64px; }
  .site-logo img { height: 38px; }
  .menu-btn { display: block; }
  .gnav { position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; box-shadow: 0 8px 16px rgba(0, 0, 0, .08); transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .gnav ul a::after { display: none; }
  .gnav .btn-line { margin-top: 16px; text-align: center; padding: 10px; }
  body.is-menu-open .gnav { transform: translateY(0); visibility: visible; }
  body.is-menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.is-menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.is-menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- トップ ---------- */
.hero { position: relative; min-height: 70vh; display: grid; place-items: center; background: #e9f3fd center / cover no-repeat; overflow: hidden; }
.hero__logo { width: min(520px, 70%); }
.hero--video { min-height: 0; display: block; background: #e9eaf0; }
.hero__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.section { padding: 80px 0; }
@media (max-width: 599px) { .section { padding: 48px 0; } }

.concept-block { text-align: left; }
.concept-sentence { font-size: 30px; font-weight: 700; }
.concept-headline { font-size: 24px; font-weight: 700; }
@media (max-width: 480px) { .concept-sentence { font-size: 20px; } .concept-headline { font-size: 15px; } }

.textlink { margin: 24px 0 0; }
.textlink a { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-en); color: var(--text); text-decoration: none; font-size: 15px; }
.textlink a::after { content: ""; width: 60px; height: 1px; background: currentColor; transition: width .3s; }
.textlink a:hover::after { width: 90px; }
.textlink--white a { color: #fff; }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.news-list li { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
.news-list time { color: var(--muted); font-size: 13px; order: -1; min-width: 7.5em; font-variant-numeric: tabular-nums; }
.news-list a { color: var(--text); text-decoration: none; flex: 1 1 20em; min-width: 0; }
.news-list a:hover { color: var(--main); }

.big-label { font-family: var(--font-en); color: var(--main); font-weight: 600; font-size: 100px; line-height: 1.1; margin: 0 0 24px; }
.big-label--right { text-align: right; }
@media (max-width: 959px) { .big-label { font-size: 64px; } }
@media (max-width: 480px) { .big-label { font-size: 50px; } }

.business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; }
@media (max-width: 767px) { .business-grid { grid-template-columns: 1fr; } }
.business-item img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 16px; }
.business-item h3 { font-size: 24px; margin: 0; }
.business-item .sub { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.business-item p { margin: 0; }

.company-band { background: var(--main-band); color: #fff; }
.company-band .big-label { color: #fff; }
.company-rich { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 48px; align-items: center; }
.company-rich img { border-radius: var(--radius); }
.company-sentence { font-size: 28px; line-height: 1.6; font-weight: 700; }
@media (max-width: 767px) { .company-rich { grid-template-columns: 1fr; gap: 24px; } .company-sentence { font-size: 20px; line-height: 2; } }

.recruit-band { position: relative; color: #fff; background: #222 url('/assets/img/Recruit2-1-scaled.jpg') center / cover no-repeat; }
.recruit-band::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.recruit-band > * { position: relative; }
.recruit-band .big-label { text-align: right; }
.join { font-family: var(--font-en); font-size: 80px; line-height: 1; font-weight: 700; margin: 0 0 24px; }
.join a { color: #fff; text-decoration: none; }
.recruit-sentence { font-size: 28px; line-height: 2; font-weight: 700; }
@media (max-width: 480px) { .join { font-size: 35px; } .recruit-sentence { font-size: 18px; } }

.contact-cta { text-align: center; }
.btn-main { display: inline-block; background: var(--main); color: #fff !important; text-decoration: none; border-radius: 10px; padding: 14px 48px; font-family: var(--font-en); font-weight: 600; box-shadow: 0 3px 0 #ddd; transition: transform .2s; }
.btn-main:hover { opacity: 1; transform: translateY(3px); box-shadow: none; }

/* ---------- 下層ページ ---------- */
.page-title { background: var(--gray); padding: 56px 0 40px; }
.page-title h1 { font-family: var(--font-en); font-size: 40px; margin: 0; color: var(--text); }
.page-body { padding: 56px 0 96px; }
.page-body h2 { font-size: 22px; border-left: 4px solid var(--main); padding-left: 12px; margin: 48px 0 16px; }
.lead-strong { font-weight: 700; }

.profile { margin: 0 0 48px; }
.profile-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--main); }
.profile-row dt { font-weight: 700; margin: 0; }
.profile-row dd { margin: 0; }
@media (max-width: 599px) { .profile-row { grid-template-columns: 1fr; } }

.ceo { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.ceo img { border-radius: var(--radius); }
@media (max-width: 767px) { .ceo { grid-template-columns: 1fr; } .ceo img { max-width: 280px; } }

.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.books a { color: var(--text); text-decoration: none; font-size: 14px; display: grid; gap: 10px; }
.books img { width: 160px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
@media (max-width: 767px) { .books { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin: 0 0 64px; }
.split img { width: 100%; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.mvv-title { font-family: var(--font-en); font-size: 32px; font-weight: 700; margin: 0 0 12px; }
.signature { text-align: right; font-weight: 700; }

.full-img { width: 100%; margin: 48px 0; }
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--gray); border-radius: 12px; padding: 20px 16px; text-align: center; font-size: 14px; }
.steps .step-no { font-family: var(--font-en); color: var(--main); font-weight: 600; margin: 0 0 8px; }
.steps img { width: 40px; margin: 0 auto 8px; }
.steps h3 { font-size: 16px; margin: 0 0 8px; }
@media (max-width: 959px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.philosophy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 48px; }
.philosophy div { border-top: 3px solid var(--main); padding-top: 12px; }
.philosophy h3 { font-size: 18px; margin: 0 0 8px; }
@media (max-width: 767px) { .philosophy { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
.job-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.job-table th, .job-table td { border-bottom: 1px solid var(--border); padding: 14px 12px; text-align: left; vertical-align: top; }
.job-table th { width: 160px; white-space: nowrap; background: var(--gray); }
.job-table ul { margin: 0; padding-left: 1.2em; }

.post-head { margin: 0 0 32px; }
.post-head h1 { font-size: 26px; margin: 0 0 12px; }
.post-date { color: var(--muted); font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.post-cat { display: inline-block; margin-top: 32px; font-size: 13px; background: var(--main); color: #fff; border-radius: 3px; padding: 2px 10px; text-decoration: none; }

.contact-box { background: var(--gray); border-radius: 12px; padding: 40px 24px; text-align: center; margin-top: 48px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 32px 0; text-align: center; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0 0 16px; padding: 0; }
.footer-nav a { color: var(--main); text-decoration: none; font-size: 14px; font-family: var(--font-en); }
.copyright { color: var(--main); font-size: 13px; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 旧 style 属性の置き換え（CSP で inline style を禁止するため） */
.article--flush { padding: 0; margin-bottom: 64px; }
.img-w240 { width: 240px; }
.label--xl { font-size: 28px; }
.lead-strong--loose { line-height: 2; }
.contact-cta--spaced { margin-top: 48px; }

/* ---------- 会計事務所Riv 追加分（株式会社Riv の style.css に足したもの） ---------- */
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo__sub { color: var(--main); font-weight: 700; font-size: 15px; letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 959px) { .site-logo__sub { font-size: 13px; } }

.hero--office { min-height: 72vh; background-image: url('/assets/img/nrd-c3tNiAb098I-unsplash-768x1024.jpg'); color: #fff; }
.hero--office::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 124, 237, .88), rgba(8, 93, 178, .72)); }
.hero__inner { position: relative; width: 100%; max-width: var(--container); padding: 0 max(24px, env(safe-area-inset-left, 0px)); }
.hero__en { font-family: var(--font-en); font-weight: 600; font-size: 18px; letter-spacing: .12em; margin: 0 0 16px; }
.hero__copy { font-size: 40px; font-weight: 700; line-height: 1.5; margin: 0 0 20px; }
.hero__lead { font-size: 17px; max-width: 40em; margin: 0; }
@media (max-width: 599px) { .hero--office { min-height: 60vh; } .hero__copy { font-size: 26px; } .hero__lead { font-size: 15px; } }

.service-item h3 { font-size: 22px; }
.service-item ul { margin: 8px 0 0; padding-left: 1.2em; font-size: 15px; }
.note-muted { color: var(--muted); font-size: 14px; }
.todo { background: #fff4d6; color: #7a5200; border-radius: 4px; padding: 0 6px; font-size: .9em; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .steps--3 { grid-template-columns: 1fr; } }

/* ---------- AI を前面に出す部分 ---------- */
.ai-band { background: linear-gradient(135deg, #0b1f3a 0%, #0a4a9c 100%); color: #fff; }
.ai-band .big-label, .ai-band .label { color: #7cc2ff; }
.ai-lead { font-size: 26px; font-weight: 700; line-height: 1.7; margin: 0 0 40px; }
@media (max-width: 599px) { .ai-lead { font-size: 19px; } }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; }
@media (max-width: 767px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(124, 194, 255, .35); border-radius: 16px; padding: 28px; }
.ai-card__no { font-family: var(--font-en); color: #7cc2ff; font-weight: 600; letter-spacing: .1em; font-size: 14px; margin: 0 0 6px; }
.ai-card h3 { font-size: 20px; margin: 0 0 10px; }
.ai-card p { margin: 0; color: #dbe8f7; font-size: 15px; }
.ai-band .textlink a { color: #fff; }

.roles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 0 0 48px; }
@media (max-width: 767px) { .roles { grid-template-columns: 1fr; } }
.roles > div { border-radius: 16px; padding: 28px; }
.roles__ai { background: #eaf3fe; }
.roles__human { background: var(--gray); border: 1px solid var(--border); }
.roles h3 { font-family: var(--font-en); font-size: 22px; margin: 0 0 4px; color: var(--main); }
.roles .sub { font-weight: 700; margin: 0 0 12px; }
.roles ul { margin: 0; padding-left: 1.2em; }

.ai-point { margin: 12px 0 0 !important; padding: 10px 14px; background: #eaf3fe; border-radius: 10px; font-size: 14px; }
.ai-point::before { content: "AI"; font-family: var(--font-en); font-weight: 700; color: #fff; background: var(--main); border-radius: 4px; padding: 0 6px; margin-right: 8px; font-size: 12px; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* グループ（株式会社Riv ⇔ 会計事務所Riv）の相互リンク */
.footer-group { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.footer-group a { color: var(--main); text-decoration: none; }

/* スマホ幅では募集要項の表を「見出し→内容」の縦並びにする */
@media (max-width: 599px) {
  .job-table, .job-table tbody, .job-table tr, .job-table th, .job-table td { display: block; width: 100%; }
  .job-table th { white-space: normal; border-bottom: 0; padding: 10px 12px 6px; }
  .job-table td { padding: 8px 12px 16px; }
}
.nowrap { white-space: nowrap; }
