:root {
  --navy: #102238;
  --ink: #1f2b32;
  --muted: #69747a;
  --paper: #fbfaf6;
  --gold: #a9874e;
  --line: rgba(31,43,50,.14);
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", sans-serif;
  --side-pad: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  letter-spacing: .01em;
  font-size: 16px;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}
h1, h2, p { margin-top: 0; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- 共通ヘッダー（TOP・既存ツールと同一） ---------- */
.site-header { position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--side-pad); color: var(--navy); background: rgba(251,250,246,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { font-weight: 600; font-size: .72rem; letter-spacing: .34em; color: var(--navy); text-decoration: none; }
.menu-button { display: grid; position: relative; z-index: 102; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(16,34,56,.18); border-radius: 50%; background: rgba(251,250,246,.82); place-content: center; gap: 7px; cursor: pointer; }
.menu-button i { display: block; width: 23px; height: 1px; background: currentColor; transition: transform .2s; }
.menu-button[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 101; inset: 0; padding: 92px var(--side-pad) 32px; background: var(--paper); display: grid; align-content: start; }
.mobile-menu a { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-family: var(--serif); text-decoration: none; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .menu-button i { transition: none; } }

.hub-shell { width: 100%; padding-top: 70px; }
.hub-container { max-width: 1040px; margin: 0 auto; padding-inline: var(--side-pad); }

.tool-eyebrow { font-size: .7rem; letter-spacing: .14em; font-weight: 600; color: var(--gold); margin: 0 0 12px; }

/* ---------- Hero ---------- */
.hub-hero { padding: 56px 0 40px; }
.hub-headline { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.4; color: var(--navy); margin-bottom: 20px; }
.hub-lead { font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 1.9; color: var(--ink); margin-bottom: 14px; }
.hub-lead-sub { font-size: .92rem; color: var(--muted); max-width: 520px; }

/* ---------- ツールカード ---------- */
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
.tool-card { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.5); overflow: hidden; transition: border-color .2s ease-out, box-shadow .2s ease-out; }
.tool-card:hover, .tool-card:focus-within { border-color: var(--gold); box-shadow: 0 6px 20px rgba(16,34,56,.08); }
.tool-card-link { display: block; color: inherit; text-decoration: none; }
.tool-card-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.tool-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tool-card-thumb--ad { display: grid; align-content: center; gap: 20px; padding: 30px; background: var(--navy); color: #f7f3ea; }
.ad-thumb-budget { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.ad-thumb-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; align-items: end; height: 58px; border-bottom: 1px solid rgba(255,255,255,.2); }
.ad-thumb-line i { display: block; background: #c6aa78; opacity: .82; }
.ad-thumb-line i:nth-child(1) { height: 35%; }
.ad-thumb-line i:nth-child(2) { height: 58%; }
.ad-thumb-line i:nth-child(3) { height: 78%; }
.ad-thumb-line i:nth-child(4) { height: 100%; }
.ad-thumb-flow { color: #9aa6ab; font-size: .58rem; letter-spacing: .12em; }
.tool-card-body { display: block; padding: 22px 24px 26px; }
.tool-card-badge { display: inline-block; font-size: .66rem; letter-spacing: .06em; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.tool-card-title { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--navy); margin-bottom: 10px; }
.tool-card-desc { display: block; font-size: .85rem; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.tool-card-cta { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.tool-card-cta span { color: var(--gold); }

.hub-grid-section { padding: 16px 0 64px; }

/* ---------- About ---------- */
.hub-about { padding: 8px 0 56px; border-top: 1px solid var(--line); }
.hub-about-headline { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 1.8rem); color: var(--navy); margin: 14px 0 16px; }
.hub-about-body { font-size: .9rem; line-height: 1.9; color: var(--ink); max-width: 640px; margin-bottom: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid currentColor; padding-bottom: 3px; text-decoration: none; }
.text-link span { color: var(--gold); }

/* ---------- CTA ---------- */
.hub-cta { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.cta-headline { font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.7rem); color: var(--navy); line-height: 1.5; margin: 10px 0 14px; }
.cta-lead { font-size: .86rem; color: var(--ink); line-height: 1.8; margin-bottom: 18px; max-width: 640px; }
.btn-consult { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; background: var(--navy); color: #fff; border-radius: 4px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.btn-consult span { color: #c6aa78; }

/* ---------- Footer ---------- */
.hub-footer { background: var(--navy); color: #f7f3ea; padding: 44px 0 28px; }
.hub-footer-inner { display: grid; gap: 10px; }
.hub-footer .brand { color: #f7f3ea; }
.hub-footer-inner p { color: #c9d0d4; font-size: .84rem; margin: 0; }
.hub-footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.hub-footer-inner nav a { color: #c9d0d4; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.hub-copyright { margin-top: 18px !important; font-size: .72rem !important; color: #7d8a90 !important; }

@media (min-width: 600px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-hero { padding: 76px 0 52px; }
}
