@charset "utf-8";

/* ============================================================
   TNG横浜国際行政書士オフィス
   事務所HP ＋ ブログ「在留資格の実務メモ」共通スタイル

   色・フォントはこの :root だけで全ページ変わります。
   意匠：Zen Maru Gothic／丸み／パスポートのスタンプ
   ============================================================ */

:root {
  --paper:  #f7f9fa;   /* 背景（清潔感のある淡いグレー） */
  --panel:  #ffffff;
  --ink:    #34302b;   /* 本文 */
  --ink-2:  #6b635a;   /* 副次テキスト */
  --ink-3:  #9a9187;   /* キャプション */
  --navy:   #24537a;   /* 見出し・帯（スタンプの藍） */
  --navy-d: #1b3f5d;
  --stamp:  #c8553d;   /* スタンプの朱。アクセント */
  --line:   #dde4e8;   /* 罫線 */
  --mist:   #edf2f5;   /* 面 */

  --round: 14px;
  --round-s: 8px;

  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", monospace;

  --measure: 34rem;
  --page: 60rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.95;
  font-feature-settings: "palt" 1;
  text-underline-offset: 0.25em;
}

a { color: var(--navy); }
a:hover { color: var(--stamp); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

.section { padding: 4.5rem 0; }
.section.tinted { background: var(--mist); }
.section.tinted + .section { padding-top: 4.5rem; }
.section-head { margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  color: var(--navy); margin: 0 0 0.5rem; letter-spacing: 0.02em;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.section-num {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--stamp); letter-spacing: 0.14em; margin-bottom: 0.6rem;
}
.section-num::after {
  content: ""; width: 2.4rem; height: 1px; background: var(--stamp); opacity: .45;
}

/* ============================================================
   ヘッダー（HP・ブログ共通）
   ============================================================ */

.site-head { background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-head .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: center; justify-content: space-between; padding: 1rem 0;
}
.site-name {
  font-family: var(--display); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.04em; color: var(--navy); text-decoration: none;
}
.site-name span {
  display: block; font-family: var(--body); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 0.2rem;
}
.site-nav { display: flex; align-items: center; gap: 1.2rem; font-size: 0.82rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-family: var(--display); font-weight: 500; }
.site-nav a:hover { color: var(--stamp); }
.site-nav .pill {
  background: var(--navy); color: #fff; border-radius: 999px;
  padding: 0.5rem 1.15rem; transition: background-color 0.18s ease;
}
.site-nav .pill:hover { background: var(--stamp); color: #fff; }

/* 言語切替 */
.lang-switch { display: flex; gap: 0.3rem; }
.lang-switch button {
  font-family: var(--display); font-weight: 500; font-size: 0.74rem;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: 0.28rem 0.72rem; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lang-switch button:hover { border-color: var(--stamp); color: var(--stamp); }
.lang-switch button[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}

/* ============================================================
   HP：ヒーロー
   ============================================================ */

.hero-home { padding: 4rem 0 2.5rem; position: relative; overflow: hidden; }

/* 港のイラスト（独立した帯。文字は重ねない） */
.harbor {
  height: 9rem; margin-top: 1.5rem;
  background-image: url("yokohama.svg");
  background-repeat: no-repeat;
  background-position: bottom -1px center;
  background-size: 1500px auto;
  pointer-events: none;
}
@media (max-width: 62rem) { .harbor { height: 7rem; background-size: 1100px auto; } }
@media (max-width: 40rem) { .harbor { height: 5rem; background-size: 780px auto; margin-top: 1rem; } }
.hero-home .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 17rem; gap: 3rem; align-items: center;
}
.hero-portrait { position: relative; }
.hero-portrait img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
  border-radius: var(--round); border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(28, 59, 74, .12);
}
.hero-portrait figcaption { margin-top: .9rem; text-align: center; }
.hero-portrait .pf-name {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: .9rem; color: var(--navy); margin-bottom: .45rem;
}
.hero-portrait .pf-bio {
  display: block; font-size: .76rem; line-height: 1.85; color: var(--ink-2); text-align: left;
}
@media (max-width: 52rem) {
  .hero-portrait { max-width: 22rem; }
  .hero-portrait img { max-width: 11rem; margin-inline: auto; }
  .hero-portrait .pf-bio { text-align: center; }
}
@media (max-width: 52rem) {
  .hero-home .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-portrait { max-width: 11rem; margin-inline: auto; }
}
.hero-home h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 5.4vw, 2.85rem); line-height: 1.55;
  color: var(--navy); margin: 0 0 1.4rem; max-width: 22em;
}
.hero-home .lead {
  font-size: 1rem; line-height: 2.1; color: var(--ink-2); max-width: 32rem; margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.badges li {
  font-family: var(--display); font-weight: 700; font-size: .76rem;
  color: var(--navy); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem 1rem; white-space: nowrap;
}
.badges li::before { content: "✓ "; color: var(--stamp); }

/* パスポートスタンプ */
.stamp {
  position: absolute; top: 1.6rem; right: 2vw; z-index: 0;
  width: 8.5rem; height: 8.5rem; border-radius: 50%;
  border: 3px solid var(--stamp); color: var(--stamp);
  display: grid; place-content: center; text-align: center;
  transform: rotate(-11deg); opacity: 0.28; pointer-events: none;
  font-family: var(--display); font-weight: 700;
}
.stamp b { display: block; font-size: 0.92rem; letter-spacing: 0.12em; }
.stamp small { display: block; font-size: 0.6rem; letter-spacing: 0.16em; margin-top: 0.25rem; }
.stamp::before {
  content: ""; position: absolute; inset: 0.42rem;
  border: 1px solid currentColor; border-radius: 50%;
}
@media (max-width: 52rem) { .stamp { display: none; } .stamp b { font-size: 0.7rem; } .stamp small { font-size: 0.5rem; } }

.button {
  display: inline-block; background: var(--stamp); color: #fff; text-decoration: none;
  padding: 0.9rem 2.2rem; border-radius: 999px; font-family: var(--display); font-weight: 700;
  font-size: 0.9rem; transition: background-color 0.18s ease, transform 0.18s ease;
  border: 0; cursor: pointer;
}
.button:hover { background: #b0472f; color: #fff; transform: translateY(-2px); }
.button-ghost {
  background: transparent; color: var(--navy); border: 1px solid var(--navy);
}
.button-ghost:hover { background: var(--navy); color: #fff; }

/* ============================================================
   HP：業務内容
   ============================================================ */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--round);
  padding: 1.6rem 1.6rem 1.7rem;
}
.card h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--navy); margin: 0 0 0.6rem;
}
.card p { margin: 0; font-size: 0.88rem; line-height: 1.9; color: var(--ink-2); }
.card .tag {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem;
  color: var(--stamp); letter-spacing: 0.1em; margin-bottom: 0.7rem;
}
.card .icon {
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--mist); display: grid; place-content: center;
  margin-bottom: 1rem; color: var(--navy);
}
.section.tinted .card .icon { background: var(--paper); }
.card .icon svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* ============================================================
   HP：お悩みチェック
   ============================================================ */

.troubles {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--round); padding: 1.8rem 2rem;
}
.trouble-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .9rem 2rem;
}
.trouble-list li {
  position: relative; padding-left: 1.9rem; font-size: .91rem; line-height: 1.85;
}
.trouble-list li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem;
  color: var(--stamp); font-family: var(--display); font-weight: 700; font-size: .95rem;
}
.troubles-note {
  margin: 1.6rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line);
  font-size: .88rem; line-height: 1.9; color: var(--ink-2);
}

/* ============================================================
   HP：ご相談の流れ
   ============================================================ */

.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow li {
  position: relative; counter-increment: step;
  padding: 0 0 1.8rem 3.6rem; border-left: 2px solid var(--line); margin-left: 1.1rem;
}
.flow li:last-child { border-left-color: transparent; padding-bottom: 0; }
.flow li::before {
  content: counter(step); position: absolute; left: -1.15rem; top: -.2rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-content: center;
  font-family: var(--display); font-weight: 700; font-size: .9rem;
}
.flow h3 {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--navy); margin: .2rem 0 .5rem;
}
.flow p { margin: 0; font-size: .88rem; line-height: 1.9; color: var(--ink-2); max-width: 34rem; }

/* ============================================================
   HP：料金
   ============================================================ */

.price-table {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--round);
  padding: 0.5rem 1.4rem; overflow-x: auto;
}
.price-table table { border-collapse: collapse; width: 100%; min-width: 26rem; }
.price-table th, .price-table td {
  text-align: left; padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--line); font-size: 0.9rem; vertical-align: baseline;
}
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 500; color: var(--ink); font-family: var(--display); }
.price-table td.amount {
  text-align: right; white-space: nowrap; font-family: var(--display);
  font-weight: 700; color: var(--navy);
}
.price-table tr:first-child td.amount { color: var(--stamp); }
.price-note { margin: 1rem 0 0; font-size: 0.8rem; color: var(--ink-3); line-height: 1.85; }

/* ============================================================
   HP：代表挨拶
   ============================================================ */

.about { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; align-items: start; }
.about-photo {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--mist); border-radius: var(--round);
  border: 1px solid var(--line); display: block;
}
.about-body p { margin: 0 0 1.3rem; font-size: 0.92rem; line-height: 2; color: var(--ink-2); }
.about-body p:last-child { margin-bottom: 0; }
.about-name {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); display: block; margin-bottom: 1rem;
}
@media (max-width: 40rem) {
  .about { grid-template-columns: 1fr; gap: 1.2rem; }
  .about-photo { max-width: 9rem; }
}

.profile-card {
  margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.profile-card dl {
  margin: 0; display: grid; grid-template-columns: 7rem 1fr;
  gap: .55rem 1.2rem; font-size: .86rem; line-height: 1.8;
}
.profile-card dt { color: var(--ink-3); font-family: var(--display); font-size: .78rem; }
.profile-card dd { margin: 0; }
@media (max-width: 40rem) {
  .profile-card dl { grid-template-columns: 1fr; gap: .1rem; }
  .profile-card dt { margin-top: .7rem; }
  .profile-card dt:first-child { margin-top: 0; }
}

/* ============================================================
   HP：お知らせ
   ============================================================ */

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: grid; grid-template-columns: 7rem 1fr; gap: 0.3rem 1.4rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-date { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.news-body { font-size: 0.92rem; line-height: 1.9; margin: 0; }
@media (max-width: 40rem) {
  .news-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ============================================================
   HP：最新記事
   ============================================================ */

.teaser-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 1rem; }
.teaser-list a {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--round); padding: 1.3rem 1.5rem; text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.teaser-list a:hover {
  border-color: var(--stamp); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52,48,43,.07);
}
.teaser-meta { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }
.teaser-cat {
  font-family: var(--display); font-size: .7rem; color: var(--navy);
  background: var(--mist); border-radius: 999px; padding: .12rem .7rem; margin-left: .7rem;
}
.teaser-title { margin: .55rem 0 0; font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.7; }
.teaser-list a:hover .teaser-title { color: var(--stamp); }
.more-link { font-family: var(--display); font-weight: 700; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* ============================================================
   HP：よくあるご質問
   ============================================================ */

.faq-list { display: grid; gap: .8rem; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--round);
  padding: 0 1.5rem;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2rem 1.2rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: 1.7; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 1.1rem;
  font-family: var(--display); font-weight: 700; color: var(--stamp); font-size: 1.2rem; line-height: 1;
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--stamp); }
.faq-answer {
  margin: 0; padding: 0 0 1.4rem; font-size: .89rem; line-height: 2; color: var(--ink-2);
  border-top: 1px solid var(--line); padding-top: 1.1rem;
}

/* ヘッダーの電話番号 */
.head-tel {
  display: flex; flex-direction: column; line-height: 1.3; text-decoration: none;
}
.head-tel span { font-size: .66rem; color: var(--ink-3); font-family: var(--display); letter-spacing: .06em; }
.head-tel strong {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--navy);
  letter-spacing: .02em;
}
.head-tel:hover strong { color: var(--stamp); }
@media (max-width: 52rem) { .head-tel { display: none; } }

/* ============================================================
   HP：アクセス・お問い合わせ
   ============================================================ */

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.info-block {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--round); padding: 1.5rem 1.6rem;
}
.info-block h3 {
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  color: var(--navy); margin: 0 0 0.8rem;
}
.info-block dl { margin: 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.5rem 1rem; font-size: 0.88rem; }
.info-block dt { color: var(--ink-3); font-family: var(--display); font-size: 0.8rem; }
.info-block dd { margin: 0; }
@media (max-width: 40rem) {
  .info-block dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .info-block dt { margin-top: 0.6rem; }
  .info-block dt:first-child { margin-top: 0; }
}

/* ============================================================
   相談導線（HP・ブログ共通）
   ============================================================ */

.cta { background: var(--navy); color: #eef2f6; padding: 3rem 0; }
.cta.spaced { margin-top: 4rem; }
.cta h2 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin: 0 0 1rem; color: #fff; }
.cta p { margin: 0 0 1.7rem; font-size: 0.92rem; max-width: 32rem; color: #cfdbe5; }

/* ============================================================
   フッター（共通）
   ============================================================ */

.site-foot { border-top: 1px solid var(--line); padding: 2.4rem 0 3.4rem; font-size: 0.78rem; line-height: 1.9; color: var(--ink-3); }
.site-foot .office { color: var(--ink-2); font-family: var(--display); font-weight: 500; margin: 0 0 0.6rem; }
.site-foot p { margin: 0 0 0.4rem; }
.site-foot a { color: var(--ink-2); }
.foot-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-links a { text-decoration: none; font-family: var(--display); font-weight: 500; }
.foot-links a:hover { color: var(--stamp); }

/* ============================================================
   ブログ：一覧
   ============================================================ */

.hero { padding: 4rem 0 2.8rem; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 5.6vw, 2.7rem); line-height: 1.55;
  letter-spacing: 0.02em; margin: 0 0 1.5rem; color: var(--navy);
}
.hero .thesis { font-size: 1rem; line-height: 2.1; color: var(--ink-2); max-width: 31rem; margin: 0; }
.hero .thesis strong {
  font-weight: 700; color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(200, 85, 61, 0.18) 62%);
}

.ledger-head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.4rem; }
.ledger-head h2 {
  font-family: var(--display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.06em; margin: 0; color: var(--navy);
}
.ledger-head .count { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }

.ledger { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; gap: 1rem; }
.entry {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.2rem 1.6rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--round);
  padding: 1.5rem 1.6rem 1.6rem; text-decoration: none; color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.entry:hover {
  border-color: var(--stamp); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 48, 43, 0.07);
}
.entry:hover .entry-title { color: var(--stamp); }
.entry-meta { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3); padding-top: 0.3rem; }
.entry-cat {
  display: inline-block; font-family: var(--display); font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.04em; color: var(--navy);
  background: var(--mist); border-radius: 999px; padding: 0.15rem 0.7rem; margin-top: 0.5rem;
}
.entry-title {
  font-family: var(--display); font-weight: 700; font-size: 1.08rem;
  line-height: 1.7; margin: 0; transition: color 0.18s ease;
}
.entry-lead { grid-column: 2; margin: 0.55rem 0 0; font-size: 0.87rem; line-height: 1.85; color: var(--ink-2); }

/* ============================================================
   ブログ：記事本文
   ============================================================ */

.article { padding: 2.8rem 0 4rem; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 500;
  font-size: 0.74rem; letter-spacing: 0.08em; color: var(--navy);
  background: var(--mist); border-radius: 999px; padding: 0.3rem 0.9rem; margin: 0 0 1.2rem;
}
.article h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 4.8vw, 2rem); line-height: 1.65;
  margin: 0 0 1.2rem; color: var(--navy);
}
.article-dates {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3);
  margin: 0 0 2.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}

/* 署名的要素：根拠印 */
.kyokyo {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--round);
  padding: 1.5rem 1.6rem 1.4rem; margin: 0 0 2.6rem;
}
.kyokyo dl {
  margin: 0; display: grid; grid-template-columns: 5.5rem 1fr;
  gap: 0.45rem 1rem; font-size: 0.84rem; line-height: 1.75;
}
.kyokyo dt { color: var(--ink-3); font-family: var(--display); font-size: 0.76rem; padding-top: 0.12rem; }
.kyokyo dd { margin: 0; color: var(--ink); }
.kyokyo dd .num { font-family: var(--mono); }
.kyokyo::after {
  content: "根 拠"; position: absolute; top: -0.85rem; right: 1.4rem;
  font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.08em;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: var(--round-s);
  padding: 0.3rem 0.55rem; background: var(--paper); line-height: 1;
  transform: rotate(-6deg); opacity: 0.9;
}

.prose { font-size: 1rem; }
.prose > * { max-width: var(--measure); }
.prose p { margin: 0 0 1.7rem; }
.prose h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  line-height: 1.7; color: var(--navy); margin: 3.2rem 0 1.2rem;
  padding-left: 0.9rem; border-left: 4px solid var(--stamp);
}
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 2.3rem 0 0.85rem; }
.prose ul, .prose ol { margin: 0 0 1.7rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.6rem; }
.prose li::marker { color: var(--stamp); }
.prose strong { font-weight: 700; }
.prose a { text-underline-offset: 0.3em; }

.note {
  background: var(--mist); border-radius: var(--round);
  padding: 1.2rem 1.4rem; margin: 0 0 1.9rem; font-size: 0.9rem; line-height: 1.85;
}
.note p:last-child { margin-bottom: 0; }

.table-wrap {
  max-width: 44rem; overflow-x: auto; margin: 0 0 2.2rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--round); padding: 0.4rem 1.2rem;
}
.prose table, .table-wrap table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 0.86rem; }
.table-wrap th, .table-wrap td {
  text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0;
  border-bottom: 1px solid var(--line); line-height: 1.75;
}
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap thead th { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-3); font-weight: 500; }
.table-wrap tbody th { font-weight: 500; width: 8.5rem; color: var(--ink-2); }
.table-wrap td.new { color: var(--navy); font-weight: 700; }

.sources {
  max-width: var(--measure); margin: 3.4rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid var(--line); font-size: 0.82rem; line-height: 1.85; color: var(--ink-2);
}
.sources h2 {
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--ink-3); font-weight: 500; margin: 0 0 0.8rem;
}
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { margin-bottom: 0.5rem; word-break: break-all; }

.byline {
  max-width: var(--measure); margin: 2.6rem 0 0; padding: 1.5rem 1.6rem;
  background: var(--mist); border-radius: var(--round);
  font-size: 0.85rem; line-height: 1.9; color: var(--ink-2);
}
.byline .name {
  font-family: var(--display); font-size: 1rem; font-weight: 700;
  color: var(--ink); display: block; margin-bottom: 0.4rem;
}

.back {
  display: inline-block; font-family: var(--display); font-weight: 500; font-size: 0.85rem;
  color: var(--ink-2); text-decoration: none; margin-top: 2.6rem;
}
.back:hover { color: var(--stamp); }

/* ============================================================
   演出とモバイル
   ============================================================ */

.hero h1, .hero .thesis, .hero-home h1, .hero-home .lead, .hero-actions {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero .thesis, .hero-home .lead { animation-delay: 0.1s; }
.hero-actions { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 40rem) {
  body { font-size: 15.5px; }
  .section { padding: 3.2rem 0; }
  .hero, .hero-home { padding: 2.8rem 0 2rem; }
  .site-nav { gap: 0.9rem; font-size: 0.78rem; }
  .site-nav .pill { padding: 0.45rem 0.95rem; }
  .entry { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.3rem 1.3rem 1.4rem; }
  .entry-meta { display: flex; gap: 0.9rem; align-items: center; padding-top: 0; }
  .entry-cat { margin-top: 0; }
  .entry-lead { grid-column: 1; }
  .kyokyo dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .kyokyo dt { margin-top: 0.6rem; }
  .kyokyo dt:first-child { margin-top: 0; }
  .table-wrap tbody th { width: auto; }
}


/* ============================================================
   スマホ用：下部固定の相談バー
   ============================================================ */

.sticky-cta { display: none; }
@media (max-width: 52rem) {
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    border-top: 1px solid var(--line); background: rgba(255,255,255,.96);
    backdrop-filter: blur(6px);
    padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
    gap: .5rem;
  }
  .sticky-cta a {
    text-align: center; text-decoration: none; border-radius: 999px;
    font-family: var(--display); font-weight: 700; font-size: .86rem; padding: .8rem 0;
  }
  .sticky-cta .tel { background: var(--navy); color: #fff; }
  .sticky-cta .mail { background: var(--stamp); color: #fff; }
  body { padding-bottom: 4.6rem; }
}

/* 業務内容カード：関連記事 */
.card-rel { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.card-rel-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: 0.4rem; }
.card-rel ul { list-style: none; margin: 0; padding: 0; }
.card-rel li { margin: 0.25rem 0; font-size: 0.84rem; line-height: 1.6; }
.card-rel li::before { content: "→ "; color: var(--navy); }
.card-rel a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; }
.card-rel a:hover { text-decoration: none; }

/* 記事末尾：料金の案内枠 */
.fee-box { margin: 2rem 0 1.2rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--round); background: var(--panel); }
.fee-box-title { margin: 0 0 0.6rem; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.fee-box-list { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.fee-box-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.fee-box-list li:last-child { border-bottom: none; }
.fee-box-list strong { white-space: nowrap; color: var(--navy); }
.fee-box-note { margin: 0 0 0.5rem; font-size: 0.8rem; line-height: 1.8; color: var(--ink-2); }
.fee-box-link { margin: 0; font-size: 0.85rem; }
.fee-box-link a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; }
