/* 千賀修一 公式ホームページ 共通スタイル（新版・明るく現代的）
   レイアウト：左揃え、白地に藍一色。主役は見出しの大きさと両輪の図。装飾は最小限。 */
:root {
  --paper: #ffffff;      /* 地 */
  --tint: #f3f7fc;       /* 空のように淡い面 */
  --ink: #17202c;        /* 本文 */
  --ink-soft: #4a5566;   /* 補足 */
  --mute: #7b8596;       /* 注記 */
  --line: #dde3eb;       /* 罫 */
  --ai: #3a6ca6;         /* 明るい藍：主なアクセント */
  --ai-deep: #2a5287;
  --ai-pale: #e2ecf7;
  --mist: #d4e3f3;       /* 図形用の淡い青 */
  --bronze: #9c6b3c;     /* テミス像のブロンズ：差し色 */
  --mincho: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.9; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ai); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.45; letter-spacing: .02em; margin: 0; text-wrap: balance; word-break: auto-phrase; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 32px; }
@media (max-width: 600px) { .wrap { padding-inline: 18px; } }

.draft-bar { background: var(--tint); color: var(--mute); font-size: 12px; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }

/* ヘッダー */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 12px; }
.brand .name { font-size: 20px; font-weight: 700; letter-spacing: .18em; }
.brand .sub { font-size: 12px; color: var(--mute); letter-spacing: .08em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 14px; white-space: nowrap; padding: 22px 0 20px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ai); }
.nav a[aria-current="page"] { color: var(--ai); border-bottom-color: var(--ai); font-weight: 500; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
@media (max-width: 1020px) {
  .brand .sub { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 4px 18px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* 区画 */
.sec { padding-block: 104px; }
.sec.alt { background: var(--tint); }
.sec-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 28px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 40em; }
.eyebrow { display: block; font-size: 14px; color: var(--ai); font-weight: 500; margin-bottom: 12px; letter-spacing: .08em; }
@media (max-width: 600px) { .sec { padding-block: 68px; } }

/* ボタン */
.btn { display: inline-block; text-decoration: none; background: var(--ai); color: #fff; border: 1px solid var(--ai); border-radius: 999px; padding: 12px 28px; font-size: 15px; font-weight: 500; transition: background .2s; }
.btn:hover { background: var(--ai-deep); }
.btn.ghost, .btn.light { background: transparent; color: var(--ai); }
.btn.ghost:hover, .btn.light:hover { background: var(--ai-pale); }

/* 写真の仮置き */
.photo { background: var(--tint); border: 1px solid var(--line); border-radius: 4px; color: var(--mute); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; padding: 16px; line-height: 1.6; }

/* フッター */
.site-footer { background: var(--tint); color: var(--ink-soft); padding-block: 64px 32px; font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ai); }
.site-footer .copy { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; font-size: 12px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }

/* 下層ページ */
.page-head { padding-block: 96px 64px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; }
.page-head p { font-size: 18px; color: var(--ink-soft); max-width: 38em; margin: 0; }
.prose { max-width: 40em; }
.prose p { font-size: 17px; line-height: 2; }
blockquote { margin: 40px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--bronze); font-family: var(--mincho); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; line-height: 1.8; color: var(--ai-deep); }
blockquote cite { display: block; font-size: 13px; color: var(--mute); font-style: normal; font-weight: 400; margin-top: 10px; }
.note { font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 12px; margin: 28px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.grid2 > * { padding: 28px 28px 28px 0; }
.grid2 > * + * { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } .grid2 > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.card .tag { font-size: 13px; color: var(--ai); font-weight: 500; display: block; margin-bottom: 4px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-soft); margin: 0; line-height: 1.9; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { font-size: 14px; text-decoration: none; border: 1px solid var(--line); color: var(--ink-soft); padding: 6px 16px; border-radius: 999px; }
.subnav a:hover { border-color: var(--ai); color: var(--ai); }
.anchor { scroll-margin-top: 88px; }
.closing { background: linear-gradient(180deg, var(--ai-pale), var(--tint)); color: var(--ink); padding-block: 88px; }
.closing .m { font-family: var(--mincho); font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; line-height: 1.7; margin-bottom: 20px; color: var(--ai-deep); }
.closing p { color: var(--ink-soft); max-width: 38em; margin: 0 0 28px; }


/* 経営者ページの部品 */
.questions { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.questions li { padding: 22px 0; display: grid; grid-template-columns: 5em 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.questions .q { color: var(--ai); font-weight: 500; font-size: 15px; }
.questions b { display: block; font-size: 19px; margin-bottom: 4px; }
.questions p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
@media (max-width: 560px) { .questions li { grid-template-columns: 1fr; gap: 2px; } }
.wheels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin: 40px 0; }
.wheel { text-align: center; padding: 28px 20px; border: 2px solid var(--ai); border-radius: 50%; aspect-ratio: 1; max-width: 260px; width: 100%; justify-self: center; display: flex; flex-direction: column; justify-content: center; }
.wheel .k { font-size: 44px; font-weight: 700; color: var(--ai); line-height: 1; }
.wheel h3 { font-size: 17px; margin: 10px 0 4px; }
.wheel p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.7; }
.wheels .axle { background: var(--ai); color: #fff; font-weight: 500; font-size: 14px; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 720px) { .wheels { grid-template-columns: 1fr; } .wheels .axle { justify-self: center; } }
.cycle { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cycle li { border-top: 2px solid var(--ai); padding-top: 18px; }
.cycle b { display: block; font-size: 18px; margin-bottom: 6px; }
.cycle p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.85; }
@media (max-width: 860px) { .cycle { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cycle { grid-template-columns: 1fr; } }
.cases { border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 10em 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.case .yr { color: var(--ai); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.case h3 { font-size: 19px; margin-bottom: 6px; }
.case p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
@media (max-width: 600px) { .case { grid-template-columns: 1fr; gap: 4px; } }
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { display: grid; grid-template-columns: 9em 7em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.posts time { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.posts .cat { font-size: 13px; color: var(--ai); font-weight: 500; }
.posts a { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.posts a:hover { color: var(--ai); text-decoration: underline; }
@media (max-width: 640px) { .posts li { grid-template-columns: auto 1fr; gap: 4px 14px; } .posts li > :last-child { grid-column: 1 / -1; } }

/* メニューの中身の一覧（サブメニュー） */
.nav { align-items: center; }
.nav-item { position: relative; }
.nav-item > a.top::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.nav .sub { display: none; position: absolute; top: 100%; left: -18px; z-index: 60; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(23,32,44,.12); padding: 10px 0; }
.nav .sub.wide { min-width: 600px; column-count: 2; column-gap: 0; }
.nav .sub.wide a { break-inside: avoid; }
.nav .sub.right { left: auto; right: -18px; }
.nav .sub a { display: block; padding: 9px 20px; border: 0; font-size: 14px; color: var(--ink); white-space: nowrap; line-height: 1.5; }
.nav .sub a:hover { background: var(--tint); color: var(--ai); }
@media (min-width: 1021px) {
  .nav-item:hover .sub, .nav-item:focus-within .sub { display: block; }
}
@media (max-width: 1020px) {
  .nav-item > a.top { display: block; }
  .nav-item > a.top::after { display: none; }
  .nav .sub, .nav .sub.wide { display: block; column-count: 1; position: static; min-width: 0; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 6px 14px; border-left: 2px solid var(--ai-pale); margin: 0 0 6px; }
  .nav .sub a { padding: 7px 0 7px 10px; font-size: 13.5px; color: var(--ink-soft); white-space: normal; border-bottom: 0; }
  .nav { max-height: calc(100vh - 80px); overflow-y: auto; }
}

/* トップページ：このホームページの案内 */
.guide { padding-block: 72px 24px; }
.g-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.g-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 14px; background: #fff; }
.g-card.tokushu { border-color: var(--bronze); background: #fffaf3; }
.g-card h3 { font-size: 17px; margin: 0 0 4px; }
.g-card h3 a { color: var(--ink); text-decoration: none; }
.g-card.tokushu h3 a { color: var(--bronze); }
.g-card h3 a:hover { color: var(--ai); }
.g-card p { font-size: 12.5px; color: var(--mute); margin: 0 0 10px; line-height: 1.6; }
.g-card ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.g-card li { border-bottom: 1px dashed var(--line); }
.g-card li:last-child { border-bottom: 0; }
.g-card li a { display: block; padding: 7px 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); text-decoration: none; }
.g-card li a:hover { color: var(--ai); }
@media (max-width: 1100px) { .g-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .g-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .g-grid { grid-template-columns: 1fr; } }
/* 名前が折り返さないように */
.brand { flex-shrink: 0; }
.brand .name { white-space: nowrap; }
@media (min-width: 1021px) { .nav { gap: 18px; } }
@media (max-width: 1240px) { .brand .sub { display: none; } }

@media print {
  figure, .in-row { break-inside: avoid; page-break-inside: avoid; }
}
