@charset "UTF-8";
/* ==========================================================================
   静岡県青色申告会連合会 ウェブサイト 共通スタイル
   基準: 右腕AI/デザインスペシャリスト/Resources/design-system.md
   2026-09-02
   ========================================================================== */

/* --------------------------------------------------------------
   1. トークン
   -------------------------------------------------------------- */
:root {
  /* 基本色 */
  --bg:            #F3F5F7;
  --surface:       #FFFFFF;
  --text:          #555555;
  --muted:         #6B6967;
  --border:        #DBE8F0;

  /* アクセント */
  --accent:        #368DC8;
  --accent-2:      #73BECD;
  --teal:          #00A99D;
  --navy:          #14314A;
  --pale:          #DCEBF5;

  /* 状態 */
  --alert:         #E05A5A;
  --note:          #E8A33D;

  /* グラデーション */
  --gradient-brand:   linear-gradient(90deg, #79C2CE, #56A7C7, #247DB9);
  --gradient-hero-bg: linear-gradient(160deg, #14314A 0%, #247DB9 45%, #56A7C7 75%, #79C2CE 100%);

  /* 角丸・影・線 */
  --radius:        16px;
  --radius-sm:     4px;
  --pill:          999px;
  --leaf:          0 48px 0 48px;
  --shadow:        0 3px 8px rgba(133,133,133,.25);
  --shadow-float:  0 24px 40px -12px rgba(54,141,200,.35);

  /* 字送り */
  --ls-heading:    .06em;
  --ls-body:       .05em;
  --lh-body:       1.625;

  /* 余白（8pxスケール） */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;

  /* コンテナ */
  --container:     1120px;
  --container-narrow: 720px;

  /* 書体 */
  --font-ja: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic Medium', 'Yu Gothic', sans-serif;
  --font-en: 'Kumbh Sans', 'Inter', sans-serif;

  --header-h: 76px;
}

/* --------------------------------------------------------------
   2. リセット・基本
   -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

a { color: var(--accent); }
a:hover { opacity: .7; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  letter-spacing: var(--ls-heading);
  line-height: 1.4;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* 固定ヘッダーに隠れないように */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
.container--narrow { max-width: var(--container-narrow); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 英字ラベル */
.label-en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------
   3. ヘッダー
   -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--gradient-brand);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { opacity: .7; }
.brand__mark { width: 38px; height: auto; flex: none; }
.brand__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  line-height: 1.2;
  white-space: nowrap;
}
.brand__sub {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
}

/* グローバルナビ */
.gnav__list { display: flex; align-items: center; gap: var(--s-1); }
.gnav__list a {
  display: block;
  padding: 10px 18px;
  border-radius: var(--pill);
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: var(--ls-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.gnav__list a:hover { background: var(--pale); color: var(--accent); opacity: 1; }
.gnav__list a[aria-current="page"] { background: var(--navy); color: #fff; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------
   4. ヒーロー（トップページ）
   -------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 24s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(20,49,74,.88) 0%,
    rgba(20,49,74,.72) 32%,
    rgba(36,125,185,.45) 62%,
    rgba(121,194,206,.10) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--s-8) var(--s-7);
  color: #fff;
}
.hero__label { color: var(--accent-2); margin-bottom: var(--s-3); }
.hero__title {
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: var(--s-5);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* --------------------------------------------------------------
   5. ボタン
   -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 16px 32px;
  border-radius: var(--pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: var(--ls-body);
  text-decoration: none;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .7; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-float);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}
.btn--secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn__arrow { font-family: var(--font-en); }

/* --------------------------------------------------------------
   6. 下層ページの見出し帯
   -------------------------------------------------------------- */
.page-head {
  position: relative;
  background: var(--gradient-hero-bg);
  color: #fff;
  padding-block: var(--s-6);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.page-head__inner { position: relative; z-index: 1; }
.page-head__label { color: rgba(255,255,255,.75); margin-bottom: var(--s-2); }
.page-head__title {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 12px 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--border); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* --------------------------------------------------------------
   7. セクション・カード
   -------------------------------------------------------------- */
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-6); }
.section--surface { background: var(--surface); }

.section-head { margin-bottom: var(--s-6); }
.section-head__label { color: var(--accent); margin-bottom: var(--s-2); }
.section-head__title { font-size: 28px; font-weight: 700; }
.section-head__lead { margin-top: var(--s-3); color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.card--leaf { border-radius: var(--leaf); }

/* バナー（関係団体） */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: opacity .2s ease;
}
.banner img { max-height: 64px; width: auto; }

/* --------------------------------------------------------------
   8. ご挨拶ページ
   -------------------------------------------------------------- */
.greeting-list { display: grid; gap: var(--s-6); }

.greeting {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.greeting__head { margin-bottom: var(--s-4); padding-left: var(--s-3); border-left: 4px solid var(--accent); }
.greeting__title { font-size: 22px; font-weight: 700; }
.greeting__title-en { color: var(--muted); margin-top: var(--s-1); }
.greeting__body p { line-height: var(--lh-body); }
.greeting__figure { margin: 0; text-align: center; }
.greeting__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.greeting__caption {
  margin-top: var(--s-3);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------
   9. 表
   -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
}
.table th, .table td {
  padding: 14px var(--s-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: var(--ls-heading);
  white-space: nowrap;
  border-bottom: 0;
}
.table tbody tr:hover { background: #F7FBFD; }
.table a { font-weight: 500; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table .num { font-family: var(--font-en); letter-spacing: .02em; white-space: nowrap; }

/* 行事予定表 */
.table--plan td, .table--plan th { text-align: center; }
.table--plan tbody th {
  background: var(--pale);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  width: 84px;
}
.table--plan td { line-height: 1.9; }
.table--plan td:empty::after { content: "—"; color: var(--border); }

/* 表の注記 */
.notes {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--pale);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--navy);
  line-height: 1.9;
}

/* --------------------------------------------------------------
   10. 関連サイト
   -------------------------------------------------------------- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-3);
}
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.link-card:hover { opacity: 1; border-color: var(--accent); box-shadow: var(--shadow); }
.link-card__arrow { color: var(--accent); font-family: var(--font-en); flex: none; }

/* --------------------------------------------------------------
   11. 各会紹介ページ
   -------------------------------------------------------------- */
.office {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-6);
  align-items: start;
}
.office__data { margin: 0; }
.office__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s-3);
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}
.office__key {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: var(--ls-heading);
}
.office__val { margin: 0; line-height: 1.7; }
.office__val a { font-weight: 500; }
.office__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--pale);
}
.office__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border: 0;
}
.office__map-link { display: block; margin-top: var(--s-2); font-size: 13px; }

/* --------------------------------------------------------------
   12. フッター
   -------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: 14px;
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--gradient-brand);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-6);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: #fff;
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  text-decoration: none;
}
.site-footer__brand img { width: 32px; height: auto; }
.fnav { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.fnav a { color: rgba(255,255,255,.8); text-decoration: none; }
.fnav a:hover { color: #fff; opacity: 1; }

/* --------------------------------------------------------------
   13. スクロール表示アニメーション
   -------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.is-visible { opacity: 1; transform: none; }
.fade-in:nth-child(2) { transition-delay: .1s; }
.fade-in:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero__media { animation: none; }
}

/* --------------------------------------------------------------
   14. 768px 以下
   -------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .container { padding-inline: var(--s-3); }

  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 16px; }

  /* ハンバーガー */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .gnav.is-open { display: block; }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) var(--s-3) var(--s-4); }
  .gnav__list a { padding: 14px var(--s-3); border-radius: var(--radius-sm); }

  .hero { min-height: 460px; }
  .hero__inner { padding-block: var(--s-7) var(--s-6); }
  .hero__title { font-size: 30px; }
  .btn { width: 100%; justify-content: center; }

  .section { padding-block: var(--s-7); }
  .section-head { margin-bottom: var(--s-5); }
  .section-head__title { font-size: 22px; }
  .page-head__title { font-size: 24px; }

  .card { padding: var(--s-4); }
  .card--leaf { border-radius: 0 32px 0 32px; }

  .greeting { grid-template-columns: 1fr; padding: var(--s-4); }
  .greeting__figure { max-width: 200px; margin-inline: auto; }
  .greeting__title { font-size: 19px; }

  .office { grid-template-columns: 1fr; gap: var(--s-5); }
  .office__row { grid-template-columns: 84px 1fr; gap: var(--s-2); }

  /* 表をカードに組み替える */
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; width: 100%; }
  .table--stack tr {
    margin-bottom: var(--s-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
  }
  .table--stack td, .table--stack tbody th {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: var(--s-3);
    padding: 12px var(--s-3);
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  .table--stack tr > *:last-child { border-bottom: 0; }
  .table--stack td::before, .table--stack tbody th::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: var(--ls-heading);
    padding-top: 3px;
  }
  .table--stack td:empty { display: none; }
  .table--plan tbody th { width: auto; background: var(--pale); }
  .table--plan.table--stack tr > * { text-align: left; }
  .table--plan td::before { color: var(--navy); }

  .link-grid { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* 印刷 */
@media print {
  .site-header, .site-footer, .breadcrumb, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .fade-in { opacity: 1; transform: none; }
}
