/* =============================================================================
   経友会 会計士・税理士マイページ 共通スタイル
   色・余白はここの :root の変数を変えれば全ページに反映されます。
   ============================================================================= */
:root {
  --navy: #14324f;
  --navy-2: #1f4a72;
  --gold: #b0843a;
  --gold-soft: #f4ead8;
  --ink: #1d2733;
  --ink-2: #4a5866;
  --ink-3: #7a8794;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --ok: #2f7d55;
  --warn: #b5562b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 50, 79, .06), 0 6px 20px rgba(20, 50, 79, .07);
  --max: 1120px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.85; letter-spacing: .02em;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.45; letter-spacing: .04em; color: var(--navy); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
pre { background: #0f2236; color: #e6edf5; padding: 16px 18px; border-radius: 8px; overflow-x: auto; line-height: 1.6; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }

/* ---------- header / footer ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.brand-text { line-height: 1.25; }
.brand-text b { display: block; font-family: var(--serif); font-size: 1rem; }
.brand-text span { font-size: .72rem; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--navy); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.user-chip { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 760px) { .nav .hide-sp { display: none; } .brand-text span { display: none; } }

.site-footer { background: var(--navy); color: #c9d5e2; margin-top: 80px; padding: 40px 0 28px; font-size: .86rem; }
.site-footer a { color: #e6edf5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; margin: 0 0 8px; font-size: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; color: #93a6ba; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: .95rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a722f; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ---------- generic sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 6px 0 14px; }
.lead { color: var(--ink-2); max-width: 760px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 52px 0; } }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--gold-soft); color: #7a5a22; }
.badge-navy { background: #e4ecf5; color: var(--navy); }
.notice { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 14px 18px; border-radius: 6px; font-size: .92rem; }
.notice-navy { border-left-color: var(--navy); background: #eaf0f6; }

/* ---------- mypage ---------- */
.page-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 40px 0 36px; }
.page-head h1 { color: #fff; margin: 4px 0 8px; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.page-head p { color: #d4e0ec; margin: 0; max-width: 760px; }
.breadcrumb { font-size: .8rem; color: #b9cadb; }
.breadcrumb a { color: #e6edf5; text-decoration: none; }

.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.skill-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.skill-card:hover { transform: translateY(-2px); border-color: var(--gold); color: inherit; }
.skill-card .no { font-family: var(--serif); color: var(--gold); font-weight: 700; font-size: .85rem; }
.skill-card h3 { margin: 4px 0 8px; font-size: 1.1rem; }
.skill-card p { margin: 0 0 14px; color: var(--ink-2); font-size: .9rem; flex: 1; }
.skill-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; margin-top: 36px; }
.detail aside .card { position: sticky; top: 88px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail aside .card { position: static; } }
.detail h2 { font-size: 1.3rem; border-bottom: 2px solid var(--line); padding-bottom: 6px; margin-top: 44px; }
.detail h2:first-child { margin-top: 0; }
.dl-meta { list-style: none; padding: 0; margin: 14px 0; font-size: .88rem; }
.dl-meta li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.dl-meta li span:first-child { color: var(--ink-3); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 18px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

.chat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.chat-row { padding: 14px 18px; font-size: .92rem; }
.chat-row.user { background: var(--bg-2); }
.chat-row .who { font-weight: 700; font-size: .78rem; color: var(--ink-3); display: block; margin-bottom: 2px; }
.chat-row.ai .who { color: var(--gold); }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 14px 0; }
.table th, .table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table th { background: var(--bg-2); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

.shot { margin: 18px 0 26px; }
.shot figcaption { font-size: .84rem; color: var(--ink-3); margin-top: 6px; }
.shot .frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shot img { display: block; width: 100%; }
