/* ==========================================================
   トルシーダ コーポレートサイト 共通スタイル
   規定は Claude_Work/_brand/BRAND.md v2（第3・4・6節）
   白地・墨の文字・ミニマル。Web ではライムグリーンを使わない（白黒のみ）。
   アニメーション・transition は使わない。
   ========================================================== */

/* ---------- 色（この6つ以外を足さない） ---------- */
:root {
  --white: #FFFFFF;   /* 地 */
  --ink: #1A1A1A;     /* 墨：本文・見出し・ロゴ・主ボタン */
  --gray: #6B6B6B;    /* グレー：補助文字だけ */
  --rule: #D9D9D9;    /* 罫：区切り線専用 */
  --pale: #F5F5F5;    /* 薄面：囲み1階層だけ */

  --font: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --container: 1120px;
  --gutter: 24px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
  font-feature-settings: "palt" 1;
}

/* 折り返しは文節の切れ目で。最後の行に1〜2文字だけ残さない（対応ブラウザのみ。非対応でも崩れない） */
p { margin: 0 0 1em; word-break: auto-phrase; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* フォーカスリング：墨の2px（ライムグリーンは白地で見えない） */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .75em 1.8em;
  font: inherit; font-weight: 500; line-height: 1.4; letter-spacing: .06em;
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
}
.btn:hover { text-decoration: none; }

/* 主ボタン：墨の塗り＋白文字 */
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--ink); }

/* 副ボタン：墨の1px枠＋墨文字、背景透明 */
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }

/* 大きい主ボタン（ページ下部のお問い合わせ）：主ボタンと同じ墨の塗り＋白文字 */
.btn-large { min-height: 64px; padding: .9em 2.4em; font-size: 17px; }

@media (max-width: 600px) {
  .btn-large { width: 100%; padding: .9em 1em; letter-spacing: .02em; }
}

.arrow::after { content: "→"; font-family: "Inter", sans-serif; font-weight: 400; }
.ext::after { content: "↗"; font-family: "Inter", sans-serif; font-weight: 400; margin-left: .3em; }

/* ---------- ヘッダー ---------- */
/* スクロールしても常に上に表示する */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
/* ページ内リンクで飛んだ先がヘッダーに隠れないように */
[id] { scroll-margin-top: 100px; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px;
}
/* ロゴ＋名乗り（トルシーダ会計事務所／株式会社トルシーダ） */
.site-brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.site-brand img { width: 132px; flex-shrink: 0; }
.site-org {
  padding-left: 20px; border-left: 1px solid var(--rule);
  font-size: 12px; font-weight: 500; letter-spacing: .06em; line-height: 1.55; white-space: nowrap;
}
/* 2行に積む（会計事務所が上） */
.site-org > span { display: block; }
.site-org .sep { display: none; }
@media (max-width: 600px) {
  .site-brand { gap: 12px; }
  .site-brand img { width: 112px; }
  .site-org { padding-left: 12px; font-size: 10px; letter-spacing: .04em; }
}

.global-nav ul { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.global-nav a { white-space: nowrap; }
@media (max-width: 1100px) { .global-nav ul { gap: 24px; } }
.global-nav a:not(.btn) {
  font-size: 14px; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.global-nav a:not(.btn):hover { border-bottom-color: var(--ink); }
.global-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.global-nav .btn { min-height: 44px; padding: .5em 1.4em; font-size: 14px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 14px 12px;
  background: transparent; border: 1px solid var(--ink); cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; background: var(--ink); }
.nav-toggle span + span { margin-top: 8px; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .global-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--rule); }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .global-nav li a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
  .global-nav li:last-child { margin-top: 20px; }
  .global-nav .btn { width: 100%; }
}

/* ---------- ヒーロー（白地に大きな和文のキャッチコピーだけ） ---------- */
.hero { padding: 168px 0 176px; }
.hero-title {
  font-size: clamp(34px, 5.6vw, 64px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
}
.hero-title span { display: inline-block; }
.hero-lead { margin: 40px 0 0; max-width: 40em; font-size: 20px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 56px; }

@media (max-width: 600px) {
  .hero { padding: 96px 0 104px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- セクション（色ではなく余白と1pxの罫で区切る） ---------- */
.section { padding: 120px 0; border-top: 1px solid var(--rule); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }

/* 大きな欧文 × 小さな和文 */
.section-en {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}
.section-ja { display: block; margin-top: 20px; font-size: 18px; font-weight: 500; letter-spacing: .08em; line-height: 1.5; }

@media (max-width: 600px) {
  .section-ja { margin-top: 14px; font-size: 16px; }
}

.section-body { max-width: 680px; }
.section-more { margin-top: 48px; }

@media (max-width: 880px) {
  .section { padding: 88px 0; }
  .section-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- 私たちについて ---------- */
.about-lead { margin-bottom: 32px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; line-height: 1.6; letter-spacing: .04em; font-feature-settings: "palt" 1; }
.about-photo { margin: 56px 0 0; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 70% 30%; }
.about-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--gray); }

/* ---------- リスト共通（横罫だけ） ---------- */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.rows > li { padding: 32px 0; border-bottom: 1px solid var(--rule); }

/* サービス */

.service-name { font-size: 24px; }
.service-org { margin: 0 0 16px; font-size: 13px; color: var(--gray); }
.service-row p { font-size: 15px; }
.service-row .more { display: inline-block; margin-top: 16px; font-size: 14px; }


/* 事例 */
.case-meta { margin: 0 0 8px; font-size: 13px; color: var(--gray); }
.case-title { font-size: 19px; line-height: 1.7; }

/* お知らせ */
.news-row { display: grid; grid-template-columns: 7.5em 6em 1fr; gap: 16px; align-items: baseline; }
.rows > li.news-row { padding: 24px 0; }
.news-date { font-family: "Inter", sans-serif; font-size: 14px; font-variant-numeric: tabular-nums; }
.news-cat { font-size: 13px; color: var(--gray); }
.news-row p { margin: 0; }

@media (max-width: 600px) {
  .news-row { grid-template-columns: auto 1fr; gap: 4px 16px; }
  .news-row p { grid-column: 1 / -1; }
}

/* ---------- お問い合わせ導線 ---------- */
.contact-lead { margin-bottom: 48px; font-size: 17px; }

/* ---------- フッター：白地に上罫 ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: 72px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
.footer-logo img { width: 132px; }
.footer-org { margin: 28px 0 4px; font-weight: 500; }
.footer-address { margin: 0; font-style: normal; }
.footer-nav ul, .footer-sns { margin: 0; padding: 0; list-style: none; }
.footer-nav ul { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 12px 48px; }   /* 列ごとに上から下へ */
.footer-sns { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule);
}
.copyright { margin: 0; font-size: 13px; color: var(--gray); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column-reverse; }   /* 著作権表記は左下のまま */
}

/* ==========================================================
   下層ページ
   ========================================================== */

/* ---------- ページの見出し ---------- */
.page-head { padding: 96px 0 112px; }
.breadcrumb { margin: 0 0 56px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 .6em; font-size: 13px; color: var(--gray); }
.breadcrumb li + li::before { content: "／"; margin-right: .6em; }
.breadcrumb a { color: var(--gray); }
.page-lead { margin-top: 56px; max-width: 40em; font-size: 20px; line-height: 1.9; }
.page-lead-title { margin-top: 56px; font-size: clamp(24px, 3vw, 32px); line-height: 1.6; }
.page-intro { margin-top: 32px; max-width: 42em; font-size: 17px; }
.facts + .note { margin-top: 16px; }

@media (max-width: 600px) {
  .page-head { padding: 64px 0 72px; }
  .breadcrumb { margin-bottom: 40px; }
  .page-lead { margin-top: 40px; font-size: 17px; }
}

/* サービス名をそのまま見出しにする（番号は付けない） */
.section-name { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; line-height: 1.3; letter-spacing: .04em; }

/* ページ冒頭も下のセクションと同じ2列（見出しを左、文章を右）に組み、文章の始まる位置をそろえる */
.page-head-grid .section-body > :first-child { margin-top: 0; }
.page-head-grid .page-lead-title + .page-intro,
.page-head-grid .page-lead-title + .case-head-meta { margin-top: 32px; }
.page-head-grid .page-lead { font-size: 18px; }
/* 下層ページ内のセクション見出しは一回り小さく */
.section-en.is-sub { font-size: clamp(40px, 5vw, 64px); }

/* ---------- 本文ブロック ---------- */
.block + .block { margin-top: 72px; }
.block-title { margin-bottom: 24px; font-size: 22px; }
.block-title.is-rule { padding-top: 24px; border-top: 1px solid var(--ink); }
/* 見出しの罫のすぐ下に来る一覧は、上の線を省いて二重線にしない */
.block-title.is-rule + .list-rule, .block-title.is-rule + .steps { border-top: 0; }
.note { font-size: 13px; color: var(--gray); }

/* 箇条書き（横罫で区切る） */
.list-rule { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.list-rule > li { padding: 16px 0; border-bottom: 1px solid var(--rule); }

/* 用語と説明 */
.defs { margin: 0; }
.defs dt { font-size: 17px; font-weight: 500; }
.defs dd { margin: 4px 0 28px; }
.defs dd:last-child { margin-bottom: 0; }

/* ご利用の流れ */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--rule); }
.steps > li { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); counter-increment: step; }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: "Inter", sans-serif; font-size: 14px; color: var(--gray); line-height: 1.9; }
.steps h3, .steps h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; line-height: 1.7; }
.steps p + p { margin-top: .8em; }
.steps p { margin: 0; }

/* 表（見出し行は塗らない・横罫だけ） */
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 18px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table thead th { padding-top: 0; font-size: 13px; font-weight: 500; color: var(--gray); border-bottom: 1px solid var(--ink); }
.table tbody th { font-weight: 500; white-space: nowrap; }
.table thead th, .table tbody td:not(:last-child) { white-space: nowrap; }   /* 金額・規模は途中で折らない */
.table .num { font-family: "Inter", "Noto Sans JP", sans-serif; font-size: 20px; font-weight: 500; white-space: nowrap; }

/* 会社概要など（項目と内容） */
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 0 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 14px; color: var(--gray); }
.facts dd { margin: 0; }
.facts.is-wide > div { grid-template-columns: 14em 1fr; }   /* 項目名が長い表（プライバシーポリシー） */
@media (max-width: 600px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* ページ内リンク */
.page-head .anchor-nav { margin-top: 48px; }
.section-org { display: block; margin-top: 10px; font-size: 13px; font-weight: 400; color: var(--gray); letter-spacing: .04em; }
.list-rule + .note { margin-top: 12px; }
.anchor-nav { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* ---------- 強み ---------- */
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 0 24px; }
.feature-num { font-family: "Inter", sans-serif; font-size: 14px; color: var(--gray); line-height: 2.4; }
.feature-title { margin-bottom: 16px; font-size: 22px; }
@media (max-width: 600px) { .feature { grid-template-columns: 1fr; } .feature-num { line-height: 1.6; } }

/* ---------- 代表紹介 ---------- */
/* 写真を列いっぱいの幅で上に置き、経歴はその下に */
.profile { display: grid; grid-template-columns: 1fr; gap: 40px; }
.profile-photo { margin: 0; }
.profile-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 30%; }
.profile-role { margin: 0; font-size: 14px; color: var(--gray); }
.profile-name { margin: 4px 0 0; font-size: 28px; }
.profile-kana { margin: 0 0 24px; font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: .12em; color: var(--gray); }
@media (max-width: 760px) { .profile { gap: 32px; } }

/* ---------- 地図（白黒の紙面に合わせてモノクロ） ---------- */
.map { margin-top: 32px; }
.map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(1); }

/* ---------- よくある質問（開閉は動きなし） ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; display: grid; grid-template-columns: 2em 1fr; padding: 24px 40px 24px 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: "Inter", sans-serif; color: var(--gray); }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-family: "Inter", sans-serif; font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { display: grid; grid-template-columns: 2em 1fr; padding: 0 40px 24px 0; }
.faq .answer::before { content: "A"; font-family: "Inter", sans-serif; color: var(--gray); }
.faq .answer p { margin: 0; }

/* ---------- 事例 ---------- */
.case-head-meta { margin: 24px 0 0; font-size: 14px; color: var(--gray); }
.back-link { margin-top: 72px; }

/* ---------- お問い合わせフォーム ---------- */
.form { display: grid; gap: 32px; margin-top: 32px; }
.field label, .field legend { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.field fieldset { margin: 0; padding: 0; border: 0; }
.req, .opt { display: inline-block; margin-left: .6em; padding: 0 .5em; font-size: 11px; font-weight: 500; line-height: 1.7; vertical-align: .15em; }
.req { color: var(--white); background: var(--ink); }
.opt { color: var(--gray); border: 1px solid var(--rule); }
.input, .textarea {
  display: block; width: 100%; padding: 14px 16px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--rule); border-radius: 0;
}
.input:focus, .textarea:focus { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }
.textarea { min-height: 220px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.choices.is-stack { flex-direction: column; gap: 12px; }
.input::placeholder, .textarea::placeholder { color: var(--gray); opacity: 1; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.choice input, .agree input { width: 18px; height: 18px; accent-color: var(--ink); }
.agree { display: flex; align-items: flex-start; gap: 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
