/* 三上剛史税理士事務所 サイト共通スタイル */
/* 配色：ロゴに合わせたネイビーとオレンジ */
:root {
  --dark: #1f1c33;          /* ヒーロー・見出し帯・フッターの地（ロゴの紺） */
  --on-dark: #ffffff;
  --on-dark-2: #cfcde0;
  --on-dark-3: #9a97b3;
  --ink: #1f1c33;
  --ink-2: #55536a;
  --line: #e3e1ea;
  --bg: #fcfcfd;
  --bg-2: #f4f3f8;
  --card: #ffffff;
  --accent: #b8541c;        /* ボタン・リンク（白文字が読める濃さのオレンジ） */
  --accent-hover: #96441a;
  --accent-bright: #d66a2a; /* 飾りの線（ロゴのオレンジ） */
  --accent-soft: #fbeee5;
  --accent-deep: #7a3d1a;
  --accent-on-dark: #f0a77b;
  --cta-dark-bg: #b8541c;
  --cta-dark-fg: #ffffff;
  --glow: rgba(214, 106, 42, 0.22);
  --radius: 10px;
  --wrap: 1080px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-brand: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(252,252,250,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.04em; line-height: 1.3; }
.brand-sub { display: block; font-size: 11px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.06em; }

.nav-toggle { display: none; }
.nav-btn { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav a:hover { background: var(--bg-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta a { background: var(--accent); color: #fff; margin-left: 6px; }
.site-nav .nav-cta a:hover { background: var(--accent-hover); color: #fff; }

@media (max-width: 860px) {
  .nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
    cursor: pointer; color: var(--ink);
  }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .nav-btn span::before { position: absolute; top: -6px; }
  .nav-btn span::after { position: absolute; top: 6px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .nav-cta a { margin: 12px 0 0; text-align: center; border-radius: 8px; border-bottom: 0; }
  .nav-toggle:checked ~ .site-nav { display: block; }
}

/* ---- hero (top page) ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark);
}
.hero .wrap { min-height: 440px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 30%, var(--glow), transparent 45%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent-bright); }
.hero .wrap { position: relative; }
.hero-copy { max-width: 560px; padding: 56px 0; }
.hero h1 span { display: inline-block; }
.hero-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--dark); background: var(--on-dark); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
}
.hero h1 { font-size: clamp(26px, 3.3vw, 38px); line-height: 1.45; margin: 18px 0 16px; color: var(--on-dark); letter-spacing: 0.04em; }
.hero p { margin: 0 0 28px; color: var(--on-dark-2); font-size: 16px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 760px) {
  .hero .wrap { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-copy { padding: 36px 0 8px; }
}

/* ---- buttons ---- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 15px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--dark); color: #fff; }

/* ---- page head ---- */
.page-head { background: var(--dark); color: #fff; padding: 44px 0 40px; }
.page-head .eyebrow { color: var(--accent-on-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; margin: 0 0 6px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: 0.06em; line-height: 1.4; }

/* ---- sections ---- */
main section { padding: 48px 0; }
.section-alt { background: var(--bg-2); padding: 56px 0 !important; }
h2 {
  font-size: clamp(21px, 2.6vw, 26px); line-height: 1.5; margin: 0 0 20px; color: var(--ink);
  padding-left: 14px; border-left: 4px solid var(--accent-bright);
}
h3 { font-size: 19px; line-height: 1.5; margin: 32px 0 12px; color: var(--ink); }
p { margin: 0 0 1.1em; }
.lead { font-size: 17px; color: var(--ink-2); }
.note { font-size: 14px; color: var(--ink-2); }

ul.list, ol.list { padding-left: 1.3em; margin: 0 0 1.2em; }
ul.list li, ol.list li { margin: 4px 0; }
ul.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
ul.checks li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px 12px 44px; position: relative; font-weight: 500;
}
ul.checks li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 5px var(--accent);
}

/* ---- strengths cards ---- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px 22px;
}
.cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.card .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.14em; }
.card h3 { margin: 4px 0 14px; font-size: 20px; }
.card p:last-child { margin-bottom: 0; }

/* ---- callout ---- */
.callout {
  background: var(--dark); color: #fff; border-radius: 16px; padding: 36px 32px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.callout h2 { color: #fff; border-left-color: var(--accent-on-dark); margin-bottom: 8px; }
.callout p { margin: 0; color: var(--on-dark-2); }
.callout .btn-ghost { border-color: #fff; }

/* ---- tables ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.info-table th { width: 8em; background: var(--bg-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.price-table { min-width: 760px; font-size: 15px; }
.price-table thead th { background: var(--dark); color: #fff; font-weight: 700; font-size: 14px; text-align: center; line-height: 1.5; }
.price-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td:first-child { text-align: left; font-weight: 700; color: var(--ink); background: var(--bg-2); }
.price-table .total { background: var(--accent-soft); font-weight: 700; }
.price-table thead th.total { background: var(--accent-deep); }
.price-table th:first-child, .price-table td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.price-table thead th:first-child { background: var(--dark); }
.table-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.scroll-hint { display: none; font-size: 13px; color: var(--ink-2); }
@media (max-width: 800px) { .scroll-hint { display: inline; } }

.price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .price-list { grid-template-columns: 1fr; } }
.price-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.price-item h3 { margin: 0 0 8px; font-size: 17px; }
.price-item .amount { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.price-item p { margin: 0; }

/* ---- profile ---- */
.profile-top.no-photo { display: block; max-width: 780px; margin: 0 auto; }
.profile-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.profile-top img { border-radius: 14px; }
@media (max-width: 760px) { .profile-top { grid-template-columns: 1fr; gap: 24px; } .profile-top img { max-width: 320px; } }
.signature { text-align: right; color: var(--ink-2); }
.timeline { list-style: none; margin: 0 0 1.4em; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
}
.timeline .when { font-weight: 700; color: var(--ink); display: block; }
.career { display: grid; gap: 14px; margin: 8px 0 20px; }
.career div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: #fff; }
.career strong { display: block; color: var(--ink); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.chips li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 15px; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: #fff; text-align: center; }
.contact-card h2 { border: 0; padding: 0; text-align: center; }
.contact-card img.cw { width: 240px; margin: 8px auto 16px; }
.contact-card img.qr { width: 160px; margin: 16px auto 0; }

/* ---- map ---- */
.map { position: relative; padding-top: 56%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- policy ---- */
.policy h2 { font-size: 19px; margin-top: 36px; }

/* ---- footer ---- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 40px 0 28px; font-size: 14px; margin-top: 24px; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: var(--on-dark-3); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: var(--on-dark-2); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copy { color: var(--on-dark-3); font-size: 12px; margin: 0; }

/* 暗い地の上のボタン（配色ごとに変わる） */
.hero .btn-primary, .callout .btn-primary { background: var(--cta-dark-bg); color: var(--cta-dark-fg); }
.hero .btn-primary:hover, .callout .btn-primary:hover { opacity: 0.88; color: var(--cta-dark-fg); }
.brand-name { font-family: var(--font-brand); }
.site-footer .brand img { filter: none; }
