/* ==========================================================================
   tsuruma-law.jp 共通スタイル
   旧 WordPress テーマ（Twenty Twenty-Five 派生）の見た目を踏襲。
   モバイルファースト。min-width:900px で PC 向けのナビに切り替える。
   ダークモードは採らない（旧記事に背景色の直書きが多いため）。
   素の CSS のみ。Web フォント不使用。
   ========================================================================== */

:root {
  color-scheme: light;

  --green-900: #1F3D34;
  --green-700: #2A4D42;
  --gold: #A68B4B;
  --bg: #F4F1EA;
  --bg-alt: #FAF8F3;
  --text: #1E1E1E;
  --muted: #4A4A46;
  --line: #D6CFBF;
  --on-dark: #F4F1EA;
  --on-dark-muted: rgba(244, 241, 234, 0.78);

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "游ゴシック Medium",
    YuGothic, "游ゴシック体", "Noto Sans JP", Meiryo, sans-serif;

  --content: 645px;
  --gutter: 20px;
}

/* --------------------------------------------------------------------------
   リセットとベース
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* ドロワー展開中は背面をスクロールさせない */
html.nav-open, html.nav-open body { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green-900);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.5em; }
li { margin-bottom: 0.35em; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
small { font-size: 0.85em; }

a { color: var(--green-900); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); text-decoration-color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

.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;
}

.ta-center { text-align: center; }

/* 本文へスキップ */
.skip-link {
  position: absolute;
  left: 8px; top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  transition: top 0.15s ease-out;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   ヘッダーとナビゲーション
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--green-900);
  color: var(--on-dark);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
html.nav-open .site-header { z-index: 70; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 4px var(--gutter);
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  color: var(--on-dark);
  text-decoration: none;
}
.brand:hover { color: var(--on-dark); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ハンバーガーボタン（900px 未満のみ表示） */
.nav-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(244, 241, 234, 0.35);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  /* ドロワーより手前に出して、開いている間も閉じるボタンとして押せるようにする */
  position: relative;
  z-index: 65;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
html.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
html.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
html.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ドロワー（右からスライドイン） */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(78vw, 300px);
  background: var(--green-900);
  padding: 72px 12px 24px;
  padding-right: calc(12px + env(safe-area-inset-right));
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
html.nav-open .site-nav {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
}

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; border-bottom: 1px solid rgba(244, 241, 234, 0.14); }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 14px;
  color: var(--on-dark);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.site-nav a:hover { background: rgba(244, 241, 234, 0.08); color: var(--on-dark); }
.site-nav a[aria-current="page"] { border-left-color: var(--gold); }

/* 暗幕 */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 20, 16, 0.5);
  cursor: pointer;
}
.nav-backdrop[hidden] { display: none; }

/* --------------------------------------------------------------------------
   メイン領域
   -------------------------------------------------------------------------- */
main {
  display: block;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
/* ホーム以外は本文領域を白系にする（旧記事の background-color:#ffffff 直書きとなじませる） */
body:not(.page-home) main { background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   ホーム
   -------------------------------------------------------------------------- */
.home-section,
.hero {
  padding: clamp(50px, 7vw, 90px) var(--gutter);
}
.home-section > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.home-section-alt { background: var(--bg-alt); }

/* ヒーロー */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: var(--content);
  margin: 0 auto;
}
.motto {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--green-900);
  border-top: 1px solid var(--gold);
  padding-top: 14px;
  margin: 0;
}
.hero-body { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.2em;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.hero-name {
  font-size: clamp(27px, 1.684rem + (1vw - 3.2px) * 1.868, 46px);
  letter-spacing: 0.14em;
  line-height: 1.35;
  margin: 0 0 0.6em;
}
.hero-name small {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero-body p { color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border: 1px solid var(--green-900);
  border-radius: 1px;
  background: transparent;
  color: var(--green-900);
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-decoration: none;
}
.btn:hover { background: var(--green-900); color: var(--on-dark); }
.btn-primary { background: var(--green-900); color: var(--on-dark); }
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); color: var(--on-dark); }

/* セクション見出し（div.section-head 内の h2、または h2.section-head） */
.section-head { text-align: center; margin-bottom: clamp(30px, 5vw, 50px); }
.section-head h2,
h2.section-head {
  font-size: clamp(19px, 1.185rem + (1vw - 3.2px) * 1.082, 30px);
  letter-spacing: 0.24em;
  text-align: center;
  margin: 0;
}
.section-head h2::after,
h2.section-head::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}
.section-head p { color: var(--muted); margin: 1.4em 0 0; }

/* 取扱業務（2 列） */
.services-cols {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-col { padding: 28px 4px; }
.services-col + .services-col { border-top: 1px solid var(--line); }
.services-col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.services-col h3::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--gold);
}
.services-col ul { list-style: none; padding: 0; margin: 0; }
.services-col li { margin: 0; padding: 11px 0; line-height: 1.75; border-bottom: 1px dotted var(--line); }
.services-col li:last-child { border-bottom: 0; }

.home-note { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: 30px; }

/* 「詳細 →」リンク */
.more-link { text-align: center; margin: 1.6em auto 0; }
.more-link a {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding: 10px 0 2px;
}
.more-link a:hover { color: var(--text); }

/* 経歴 */
.career { list-style: none; padding: 0; margin: 0 auto; }
.career li {
  display: grid;
  grid-template-columns: 4.8em 1fr;
  gap: 8px;
  margin: 0;
  padding: 8px 0;
}
.career li.wide { grid-template-columns: 1fr; }
.career .y { font-family: var(--serif); font-weight: 500; color: var(--green-900); font-variant-numeric: tabular-nums; }

/* アクセス */
.access-office {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(15px, 0.875rem + (1vw - 3.2px) * 0.392, 18px);
  letter-spacing: 0.12em;
  color: var(--green-900);
  margin-bottom: 0.6em;
}

/* --------------------------------------------------------------------------
   一覧（ホームの最新記事・ブログ・カテゴリ）
   -------------------------------------------------------------------------- */
.post-list { list-style: none; padding: 0; margin: 0 0 1.6em; border-top: 1px solid var(--line); }
.post-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.post-item-date {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.post-item-main { min-width: 0; }
.post-item-title {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.75;
  text-decoration: none;
}
.post-item-title:hover {
  color: var(--green-900);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}
.post-item .entry-cats { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.7; margin-top: 2px; }
.post-item .entry-cats a { color: var(--muted); }
.home-section > .post-list-home { max-width: 820px; margin-left: auto; margin-right: auto; }
.post-list-home .entry-cats { display: none; }

/* --------------------------------------------------------------------------
   記事・固定ページ
   -------------------------------------------------------------------------- */
.entry,
.blog {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 44px var(--gutter) 56px;
}
.entry-header { margin-bottom: 2.2em; }
.entry-title {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  letter-spacing: 0.1em;
  line-height: 1.45;
  margin: 0 0 0.6em;
}
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 1.2em;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.entry-date, .entry-modified time { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.entry-cats a { color: var(--muted); }
.entry-cats a:hover { color: var(--green-900); }

/* 本文 */
.entry-body { overflow-wrap: anywhere; }
.entry-body::after { content: ""; display: table; clear: both; }
.entry-body h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: 0.08em;
  margin: 2.2em 0 0.8em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
}
.entry-body h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  margin: 2em 0 0.7em;
  padding-left: 0.7em;
  border-left: 3px solid var(--gold);
}
.entry-body h4 { font-size: 1.08rem; margin: 1.8em 0 0.6em; }
.entry-body h5, .entry-body h6 { font-size: 1rem; margin: 1.6em 0 0.5em; }
.entry-body > :first-child { margin-top: 0; }
.entry-body li > ul, .entry-body li > ol { margin: 0.35em 0 0; }

.entry-body img { vertical-align: middle; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft, .alignright { display: block; margin: 0.4em auto 1em; }
figure { margin: 1.8em 0; }
figure img { display: block; margin: 0 auto; }
figcaption { font-size: 0.85rem; color: var(--muted); line-height: 1.6; text-align: center; margin-top: 0.6em; }

blockquote {
  margin: 1.6em 0;
  padding: 0.6em 0 0.6em 1.2em;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(214, 207, 191, 0.35);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}
pre {
  margin: 1.6em 0;
  padding: 14px 16px;
  background: #F0ECE2;
  border: 1px solid var(--line);
  overflow-x: auto;
  line-height: 1.65;
  font-size: 0.88rem;
}
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }

/* 表（旧記事は border 属性・bgcolor・インライン style が多いので、既定は控えめにして上書きを許す） */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1.6em 0;
}
.table-scroll::before {
  content: "※表は横にスクロールできます";
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
  position: sticky;
  left: 0;
}
.table-scroll > table { margin: 0 auto; }
/* 値の既定は :where() で詳細度 0 にし、旧記事の style 属性で上書きできるようにする。
   align・valign・bgcolor 属性を打ち消さないよう、text-align・vertical-align・背景色は指定しない。 */
:where(.entry-body, .entry-featured) table {
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.7;
  overflow-wrap: normal;
}
:where(.entry-body, .entry-featured) :where(th, td) {
  padding: 0.35em 0.75em;
  border: 1px solid var(--line);
}
:where(.entry-body, .entry-featured) caption { text-align: left; font-weight: 600; padding-bottom: 0.4em; }
/* 4 列以上の表（合格率ランキング等）はセル内で折り返さず、横スクロールに任せる */
:where(.table-scroll) table:has(tr > :nth-child(4)) :where(th, td) { white-space: nowrap; }
/* 2列の表（経歴など）は左列（年月）を折り返さない */
:where(.table-scroll) table:has(tr > :nth-child(2):last-child):not(:has(tr > :nth-child(3))) :where(th, td):first-child { white-space: nowrap; }

/* 前後の記事 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 3em 0 0;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.6;
}
.post-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  text-decoration: none;
}
.post-nav a:hover { border-color: var(--gold); }
.post-nav .post-nav-prev { order: 1; }
.post-nav .post-nav-next { order: 2; }
.post-nav .post-nav-index { order: 3; justify-content: center; border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 0.25em; }
.post-nav .post-nav-empty { display: none; }

/* --------------------------------------------------------------------------
   ブログ・カテゴリ
   -------------------------------------------------------------------------- */
.blog-header { margin-bottom: 2.4em; }
.blog-title {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem);
  letter-spacing: 0.2em;
  margin: 0;
}
.blog-sub { color: var(--muted); font-size: 0.9rem; margin: 0.4em 0 0; }
.blog .more-link { text-align: left; }

/* ブログ側の 2 カラム（本文＋カテゴリのサイドバー）。900px 未満はサイドバーを本文の下に置く */
.blog-layout {
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.blog-layout > .blog-main { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
.blog-side {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
}
.side-head {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--green-900);
  margin: 0 0 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--gold);
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { margin: 0; border-bottom: 1px solid var(--line); }
.cat-list a,
.side-all a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.5;
}
.cat-list a:hover, .side-all a:hover { color: var(--green-700); text-decoration: underline; text-decoration-color: var(--gold); }
.cat-list a[aria-current="page"], .side-all a[aria-current="page"] {
  color: var(--green-900);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold);
  padding-left: 12px;
}
.cat-count { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.side-all { margin: 0.6em 0 0; }

.entry-featured { max-width: none; padding: 0; margin: 0 0 3.2em; }
.entry-featured .entry-header { margin-bottom: 1.2em; }
.entry-featured .entry-title { font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2rem); letter-spacing: 0.08em; }
.entry-featured > .entry-meta { margin-top: 1.4em; }

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 2em 0 0;
  font-size: 0.95rem;
}
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 2px; text-decoration: none; border-bottom: 1px solid var(--gold); }
.pager-prev { justify-self: start; }
.pager-next { justify-self: end; }
.pager-pos { font-family: var(--serif); color: var(--muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   フッター・上へ戻る
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--green-900);
  color: var(--on-dark);
  padding: clamp(30px, 7vw, 70px) var(--gutter) 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.footer-inner { max-width: 1340px; margin: 0 auto; }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.2);
}
.footer-name {
  font-family: var(--serif);
  font-size: clamp(16px, 0.875rem + (1vw - 3.2px) * 0.588, 20px);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 0 0.4em;
}
.footer-office { font-size: 0.875rem; color: var(--on-dark-muted); line-height: 1.8; margin: 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.4em; }
.footer-nav li { margin: 0; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.footer-copy { font-size: 13px; letter-spacing: 0.1em; color: var(--on-dark-muted); margin: 0; padding-top: 20px; }

.to-top {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(244, 241, 234, 0.4);
  border-radius: 50%;
  background: var(--green-900);
  color: var(--on-dark);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.to-top:hover { background: var(--green-700); }
.to-top[hidden] { display: none; }

/* --------------------------------------------------------------------------
   幅による切替
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
  .alignright { float: right; margin: 0.4em 0 1em 1.6em; }

  .post-item { grid-template-columns: 7.5em 1fr; gap: 24px; padding: 20px 8px; }
  .post-item-title { font-size: 1.03rem; }
  .career li { grid-template-columns: 5.5em 1fr; gap: 12px; }

  .post-nav { grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .post-nav a { border: 0; background: transparent; padding: 4px 6px; }
  .post-nav .post-nav-prev { order: 0; justify-content: flex-start; }
  .post-nav .post-nav-index { order: 0; }
  .post-nav .post-nav-next { order: 0; justify-content: flex-end; text-align: right; }
  .post-nav .post-nav-empty { display: block; }
}

@media (min-width: 720px) {
  .services-cols { grid-template-columns: 1fr 1fr; }
  .services-col { padding: 36px 32px; }
  .services-col + .services-col { border-top: 0; border-left: 1px solid var(--line); }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }

  .header-inner { min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
  .brand { flex-shrink: 0; }
  .brand-name { font-size: 1.2rem; overflow: visible; text-overflow: clip; }
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    transform: none;
    visibility: visible;
    overflow: visible;
    transition: none;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 22px; }
  .site-nav li { border: 0; }
  .site-nav a {
    min-height: 44px;
    padding: 0;
    border: 0;
    font-size: 15px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    position: relative;
  }
  .site-nav a:hover { background: transparent; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 7px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-backdrop { display: none !important; }

  /* ヒーロー: 縦書きの標語と紹介文を横に並べる */
  .hero-inner { flex-direction: row; align-items: center; gap: 70px; }
  .motto {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    font-size: 26px;
    letter-spacing: 0.32em;
    border-top: 0;
    border-left: 1px solid var(--gold);
    padding: 0 0 0 28px;
    min-height: 22em;
    flex: none;
  }
  .eyebrow { font-size: 13px; }

  .services-col { padding: 40px 48px; }

  .entry, .blog { padding-top: 100px; padding-bottom: 80px; }
  .blog-layout {
    max-width: calc(var(--content) + 220px + var(--gutter) * 3);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    column-gap: calc(var(--gutter) * 1.5);
    align-items: start;
  }
  .blog-side { border-top: 0; padding: 110px 0 80px; position: sticky; top: 60px; }
  .entry-featured { padding: 0; }   /* ブログ1頁目の全文は .blog の中なので二重の余白を付けない */
  .entry-header { margin-bottom: 3em; }

  .table-scroll::before { display: none; }

  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 32px; }
  .footer-nav { gap: 0 24px; }
}

@media (min-width: 961px) {
  .motto { font-size: 30px; padding-left: 40px; }
}

/* --------------------------------------------------------------------------
   アニメーション抑制
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   印刷
   -------------------------------------------------------------------------- */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.8; }
  body:not(.page-home) main, .home-section-alt { background: #fff; }
  .skip-link, .nav-toggle, .site-nav, .nav-backdrop, .to-top, .post-nav, .pager, .btn-row, .footer-nav { display: none !important; }
  .site-header { position: static; background: #fff; color: #000; border-bottom: 1px solid #999; }
  .brand, .brand:hover { color: #000; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #999; padding: 12pt 0 0; }
  .footer-top { border: 0; padding: 0; }
  .footer-office, .footer-copy { color: #000; }
  .entry, .blog { max-width: none; padding: 12pt 0; }
  h1, h2, h3, h4 { color: #000; break-after: avoid; page-break-after: avoid; }
  a { color: #000; }
  img, figure, tr, pre, blockquote { break-inside: avoid; page-break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .table-scroll::before { display: none; }
  .hero { padding: 12pt 0; }
  .motto { writing-mode: horizontal-tb; border: 0; padding: 0; min-height: 0; }
}
