/*
Theme Name: 実家と相続、ひとつずつ。クラシック
Theme URI: https://oyatoie.com/
Author: oyatoie.com
Description: クラシックエディタと通常HTMLで運用する、相続と親の家の案内サイト用テーマです。
Version: 3.2.2
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: oyatoie-classic
*/

:root {
  /* 配色B「藍と生成り」(2026-08-16)。--oya-red は歴史的な名前で、現在はアクセントの藍 */
  --oya-ink: #26344c;
  --oya-ink-soft: #46536a;
  --oya-paper: #f8f6f0;
  --oya-white: #fffef9;
  --oya-red: #33517e;
  --oya-ochre: #8a6f3c;
  --oya-sage: #e2e6ec;
  --oya-line: #d5d2c8;
  --oya-muted: #5c6470;
  --oya-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --oya-sans: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --oya-content: 720px;
  --oya-wide: 1120px;
  --oya-page-padding: clamp(20px, 5vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--oya-paper);
  color: var(--oya-ink);
  font-family: var(--oya-sans);
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--oya-ink);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--oya-red);
}

:focus-visible {
  outline: 3px solid var(--oya-ochre);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.7em;
  font-family: var(--oya-serif);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); }

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1.4em;
}

li + li {
  margin-top: 0.45em;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--oya-white);
}

.site-header {
  border-bottom: 1px solid rgba(38, 52, 76, 0.1);
  background: var(--oya-paper);
}

.site-header__inner,
.site-footer__inner {
  width: min(100% - (var(--oya-page-padding) * 2), var(--oya-wide));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--oya-ink);
  text-decoration: none;
}

.site-brand__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
  border-radius: 10px;
}

.site-brand__name {
  display: block;
  font: 600 18px/1.4 var(--oya-serif);
  letter-spacing: 0.04em;
}

.site-brand__url {
  display: block;
  margin-top: 2px;
  color: var(--oya-muted);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.site-navigation ul,
.footer-navigation ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
}

.site-navigation a,
.footer-navigation a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.site-navigation li + li,
.footer-navigation li + li {
  margin-top: 0;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px 10px;
  border: 0;
  background: transparent;
  color: var(--oya-ink);
  cursor: pointer;
}

.menu-toggle__line {
  width: 27px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle__line + .menu-toggle__line {
  margin-top: 6px;
}

.site-main {
  min-height: 60vh;
}

.entry-shell {
  width: min(100% - (var(--oya-page-padding) * 2), var(--oya-content));
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 96px);
}

.entry-shell--archive {
  width: min(100% - (var(--oya-page-padding) * 2), 860px);
}

.entry-header {
  margin-bottom: 42px;
}

.entry-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
  /* 長い日本語見出しで末尾1文字だけが次行へ残るのを防ぐ(UT 2026-08-25 RI-1) */
  text-wrap: balance;
}

.entry-meta,
.small-text {
  color: var(--oya-muted);
  font-size: 15px;
}

.entry-meta a,
.entry-taxonomy a,
.article-card__meta a {
  color: inherit;
}

.archive-intro {
  max-width: 42em;
  color: var(--oya-ink-soft);
}

.archive-intro > *:last-child {
  margin-bottom: 0;
}

/* 記事一覧の後ろに置く注意書き。本文は固定ページ側にあり、置き場所だけ home.php で移している */
.archive-note {
  margin-top: 40px;
  max-width: 42em;
}

.archive-note > *:last-child {
  margin-bottom: 0;
}

.article-list {
  border-top: 2px solid var(--oya-ink);
}

.article-card {
  padding: clamp(28px, 5vw, 44px) 0;
  border-bottom: 1px solid var(--oya-line);
}

/* アイキャッチ。記事一覧で「ここから記事」を面で示す */
.article-card__thumb {
  display: block;
  margin-bottom: 18px;
  border: 1px solid var(--oya-line);
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.article-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card__meta {
  margin-bottom: 10px;
  color: var(--oya-muted);
  font-size: 15px;
}

.article-card__title {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
}

.article-card__title a {
  text-decoration-thickness: 1px;
}

.article-card__excerpt {
  color: var(--oya-ink-soft);
}

.article-card__excerpt > *:last-child,
.article-card__link {
  margin-bottom: 0;
}

.article-card__link {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
}

.entry-taxonomy {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--oya-line);
  color: var(--oya-muted);
  font-size: 15px;
}

.empty-message {
  padding: 24px;
  border: 1px solid var(--oya-line);
  background: var(--oya-white);
}

.post-navigation {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--oya-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-navigation a {
  min-height: 100%;
  padding: 18px;
  display: block;
  border: 1px solid var(--oya-line);
  background: var(--oya-white);
  font-weight: 700;
  text-decoration: none;
}

.post-navigation a span {
  display: block;
  color: var(--oya-muted);
  font-size: 14px;
  font-weight: 400;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2 {
  margin-top: 2.2em;
  padding-bottom: 0.2em;
  border-bottom: 2px solid var(--oya-red);
}

.entry-content h3 {
  margin-top: 1.8em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.page-label,
.section-label {
  margin-bottom: 16px;
  color: var(--oya-red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero {
  padding: clamp(48px, 7vw, 84px) var(--oya-page-padding);
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 47px, rgba(38, 52, 76, 0.04) 48px),
    var(--oya-paper);
}

.hero__inner {
  width: min(100%, var(--oya-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: clamp(48px, 7vw, 88px);
}

/* 左のラベル行とカード内の「段取り帖」見出し行を揃える。
   カードの上パディング分だけ左カラムを下げる */
.hero__copy {
  padding-top: clamp(20px, 2.6vw, 26px);
}

.hero__title {
  max-width: 8.5em;
  margin-bottom: 28px;
}

.hero__title em {
  color: var(--oya-red);
  font-style: normal;
  border-bottom: 7px solid #ccd6e6;
}

.hero__lead {
  max-width: 35em;
  margin-bottom: 30px;
  color: var(--oya-ink-soft);
  font-size: 19px;
  line-height: 1.95;
}

.button-link {
  min-height: 52px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--oya-red);
  border-radius: 2px;
  background: var(--oya-red);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--oya-ink);
  border-color: var(--oya-ink);
  color: #fff;
}

.hero__note {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--oya-muted);
  font-size: 14px;
}

.hero__copy > p:last-child {
  margin-bottom: 0;
}

/* 段取り帖。ヒーロー右カラムのカードとして画像を内包する。
   デスクトップでは画像を16:10に刈り込んで縦長化を防ぎ、
   モバイル（900px以下）では4:3のフル構図に戻す。 */
.hero__steps {
  padding: clamp(20px, 2.6vw, 26px) clamp(22px, 3vw, 28px);
  background: var(--oya-white);
  border: 1px solid var(--oya-line);
  box-shadow: 0 12px 32px rgba(50, 53, 44, 0.1);
}

.hero__steps-header {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--oya-ink);
}

.hero__steps-heading {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.hero__steps-label {
  padding: 4px 10px;
  background: var(--oya-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.hero__steps-title {
  font-size: 17px;
  font-weight: 700;
}

.hero__card-figure {
  margin: 16px 0 4px;
}

.hero__card-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  border: 1px solid var(--oya-line);
}

.step-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-grid li {
  padding: 12px 0 13px;
  border-top: 1px dashed #cfc6b4;
}

.step-grid li:first-child {
  padding-top: 14px;
  border-top: 0;
}

.step-grid strong {
  display: block;
  margin-bottom: 2px;
  font: 600 19px/1.4 var(--oya-serif);
}

.step-grid strong::before {
  counter-increment: step;
  content: counter(step) ".";
  margin-right: 8px;
  color: var(--oya-red);
}

.step-grid span {
  color: var(--oya-muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero__steps-message {
  margin: 4px 0 0;
  padding: 6px 14px;
  background: var(--oya-sage);
  font-size: 15px;
  font-weight: 700;
}

.principles {
  padding: 26px var(--oya-page-padding);
  background: var(--oya-ink);
  color: #fff;
}

.principles__inner {
  width: min(100%, var(--oya-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 36px;
}

.principles p {
  margin: 0;
  font-size: 16px;
}

.principles strong {
  color: #aac2e0;
}

.principles span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.content-section {
  padding: clamp(72px, 10vw, 112px) var(--oya-page-padding);
  scroll-margin-top: 20px;
}

.content-section--muted {
  background: #e9e9e2;
}

.content-section--dark {
  background: var(--oya-ink);
  color: #fff;
}

.content-section--red {
  background: var(--oya-red);
  color: #fff;
}

.section-inner,
.section-inner--wide {
  width: min(100%, var(--oya-content));
  margin-inline: auto;
}

.section-inner--wide {
  width: min(100%, var(--oya-wide));
}

.section-heading {
  max-width: 18em;
}

.section-lead {
  max-width: 42em;
  color: var(--oya-muted);
}

.route-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.route-card {
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--oya-line);
  border-top: 7px solid var(--oya-red);
  background: var(--oya-white);
}

.route-card--green { border-top-color: var(--oya-ink); }
.route-card--ochre { border-top-color: var(--oya-ochre); }

.route-card__number {
  margin-bottom: 20px;
  color: #a69d8d;
  font: 500 42px/1 var(--oya-serif);
}

.route-card__label {
  margin-bottom: 8px;
  color: var(--oya-red);
  font-size: 14px;
  font-weight: 800;
}

.route-card h3 {
  font-size: 24px;
}

.route-card__text {
  color: var(--oya-muted);
  font-size: 17px;
}

.route-card__link {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--oya-line);
  font-size: 16px;
  font-weight: 800;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 7vw, 80px);
}

.order-list {
  margin: 0;
  padding-left: 2.4em;
  border-top: 2px solid var(--oya-ink);
}

.order-list li {
  padding: 18px 0 18px 8px;
  border-bottom: 1px solid #c9c2b3;
}

.order-list li::marker {
  color: var(--oya-red);
  font-family: var(--oya-serif);
}

.order-list strong {
  display: inline-block;
  min-width: 5em;
  font: 600 20px var(--oya-serif);
}

.desk-grid {
  margin-top: 48px;
  display: grid;
  gap: 24px;
}

.desk-card {
  padding: clamp(24px, 5vw, 42px);
  scroll-margin-top: 20px;
  border: 1px solid var(--oya-line);
  background: var(--oya-paper);
}

.desk-card__index {
  color: var(--oya-red);
  font-size: 15px;
  font-weight: 800;
}

.desk-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.caution {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--oya-red);
  background: #e8ecf3;
  color: var(--oya-ink-soft);
  font-size: 16px;
}

.record-intro {
  max-width: 46em;
}

.record-cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.record-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 24px;
  border-top: 5px solid var(--oya-red);
  background: var(--oya-paper);
  color: var(--oya-ink);
  text-decoration: none;
}

.record-card__meta {
  color: var(--oya-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.record-card__title {
  font: 600 clamp(1.15rem, 2.4vw, 1.4rem) / 1.55 var(--oya-serif);
}

.record-card__more {
  margin-top: auto;
  padding-top: 14px;
  color: var(--oya-red);
  font-size: 15px;
  font-weight: 800;
}

.record-card:hover .record-card__title,
.record-card:focus-visible .record-card__title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.record-cards + p {
  margin-top: 36px;
}

.source-links {
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
}

.source-links a {
  min-height: 52px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--oya-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.closing-copy {
  max-width: 720px;
}

.closing-copy .button-link {
  background: #fff;
  border-color: #fff;
  color: var(--oya-red);
}

.site-footer {
  padding: 56px var(--oya-page-padding) 32px;
  background: #1b2537;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
  color: #fff;
}

.footer-navigation {
  margin-block: 24px;
  padding-block: 20px;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer__note,
.site-footer__copyright {
  max-width: 760px;
  font-size: 15px;
}

.pagination {
  margin-top: 48px;
}

@media (max-width: 900px) {
  .hero__inner,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    gap: 48px;
  }

  /* 縦積みでは左カラムを下げる必要がない */
  .hero__copy {
    padding-top: 0;
  }

  .hero__card-figure img {
    aspect-ratio: 4 / 3;
    object-position: center;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 0;
  }
}

@media (max-width: 781px) {
  body {
    font-size: 18px;
    line-height: 1.85;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .site-brand__name {
    font-size: 15px;
  }

  .site-brand__url {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-navigation {
    display: none;
    position: absolute;
    z-index: 100;
    top: 72px;
    left: 0;
    right: 0;
    padding: 20px var(--oya-page-padding);
    border-bottom: 1px solid var(--oya-line);
    background: var(--oya-white);
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation ul {
    display: grid;
    gap: 8px;
  }

  .site-navigation a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .hero,
  .content-section,
  .closing-copy,
  .entry-shell {
    text-align: left;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }

  .hero__lead {
    font-size: 18px;
    line-height: 1.85;
  }

  .hero__note {
    font-size: 14px;
  }

  .principles__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .principles p {
    padding-block: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .principles p:last-child {
    border-bottom: 0;
  }

  .section-heading {
    max-width: none;
  }

  .route-card {
    padding: 24px;
  }

  .route-card__text {
    font-size: 17px;
  }

  .record-cards {
    grid-template-columns: 1fr;
  }

  .source-links {
    display: grid;
  }

  .source-links a {
    width: 100%;
  }

  .footer-navigation ul {
    display: grid;
    gap: 4px;
  }

  .footer-navigation a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .site-brand__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .hero__title {
    font-size: 2.65rem;
  }

  .button-link {
    width: 100%;
  }

  .order-list strong {
    display: block;
    margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 記事内吹き出し（2.5.0）
   記事側スニペット（1行で貼る）:
   <div class="balloon"><div class="balloon-figure"><p><img class="balloon-icon" src="/wp2026/wp-content/themes/oyatoie-classic/assets/images/icon-smile-160.png" alt="" width="64" height="64"><span class="balloon-name">Ichi</span></p></div><div class="balloon-body"><p>本文</p></div></div>

   アイコンは4種を場面で使い分ける。地色は全て同じで、違いはアイコンだけである。
     icon-smile-160.png      笑顔が似合う場面。プロフィールの顔写真も同じ原本
     icon-important-160.png  その記事で一番強調したい点
     icon-thinking-160.png   困っていた点、迷っていた点の説明
     icon-searching-160.png  「もう一歩、調べてみました」ブロック専用（吹き出しには使わない）

   wpautop対策が2つある。どちらも外すと表示が崩れる。
   1. タグ間に改行を入れずに送る（単一の改行にも反応するため）。
   2. div の直下にインライン要素を裸で置かない。置くと直後に空の <p></p> が挿入される。
      そのため画像と名前は <p> で包む。
   パスの /wp2026/ はサイトの設置場所。外すと画像が404になる。 */
.balloon {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 2em 0;
}

.balloon-figure {
  flex: 0 0 64px;
  text-align: center;
}

/* wpautop対策で画像と名前を包んでいる <p>。本文用の余白を打ち消す */
.balloon-figure p {
  margin: 0;
}

.balloon-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--oya-line);
  background: var(--oya-white);
}

.balloon-name {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--oya-muted);
}

.balloon-body {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: var(--oya-sage);
  border: 1px solid #b8c4d4;
  border-radius: 12px;
}

.balloon-body::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -9px;
  width: 16px;
  height: 16px;
  background: var(--oya-sage);
  border-left: 1px solid #b8c4d4;
  border-bottom: 1px solid #b8c4d4;
  transform: rotate(45deg);
}

.balloon-body p {
  margin: 0;
  font-size: 0.98rem;
}

.balloon-body p + p {
  margin-top: 0.8em;
}

@media (max-width: 640px) {
  .balloon {
    gap: 10px;
  }

  .balloon-figure {
    flex-basis: 52px;
  }

  .balloon-icon {
    width: 52px;
    height: 52px;
  }

  .balloon-body::before {
    top: 16px;
  }
}

/* 記事末尾「制度と確認先」（2.5.1）
   出典の一覧は読み物ではなく確認先の控えなので、本文より小さく落ち着いた扱いにする。

   記事側:
   <h2 class="sources-heading">制度と確認先</h2>
   <ul class="sources"> … </ul> */
.entry-content h2.sources-heading {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--oya-muted);
  border-bottom-width: 1px;
  border-bottom-color: var(--oya-line);
}

.entry-content ul.sources {
  /* サイトの補足テキスト（.small-text）と同じ15px。本文18pxより一段下げる */
  font-size: 15px;
  line-height: 1.8;
  color: var(--oya-muted);
}

.entry-content ul.sources li + li {
  margin-top: 0.5em;
}

/* 「もう一歩、調べてみました」ブロック（2.5.0）
   実体験の語りと、調べて分かったことを読み分けるための囲み。
   吹き出し（＝私の声、藍地に尻尾つき）とは別物として、生成り地に藍の縦罫で出す。
   出典リンクはこの中に置かず、記事末尾の「制度と確認先」へまとめる。

   記事側スニペット（1行で貼る）:
   <div class="research"><p class="research-label"><img class="research-icon" src="/wp2026/wp-content/themes/oyatoie-classic/assets/images/icon-searching-160.png" alt="" width="64" height="64"><span>もう一歩、調べてみました</span></p><p>本文</p></div>

   吹き出しと同じwpautop対策が要る。ラベルの画像と文字は <p> の中に置き、
   文字側は <span> で包む（div直下に裸のインライン要素を置かない）。 */
.research {
  margin: 2.4em 0;
  padding: 18px 20px;
  background: var(--oya-white);
  border: 1px solid var(--oya-line);
  border-left: 4px solid var(--oya-red);
  border-radius: 10px;
}

.research-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--oya-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--oya-red);
}

.research-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--oya-line);
  background: var(--oya-white);
}

.research p {
  margin: 0;
  font-size: 0.98rem;
}

.research p + p {
  margin-top: 0.8em;
}

@media (max-width: 640px) {
  .research {
    padding: 16px;
  }

  .research-label {
    gap: 10px;
    font-size: 1rem;
  }

  .research-icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }
}

/* プロフィールページの丸いアイコン（2.4.2）
   <p class="profile-icon"><img src="/wp2026/wp-content/themes/oyatoie-classic/assets/images/icon-smile-320.png" alt="運営者Ichiの似顔絵" width="120" height="120"></p>
   img は wpautop 対策で <p> に入れる（div 直下に裸で置くと空段落が入る）。 */
.profile-icon {
  margin-bottom: 1.4em;
}

.profile-icon img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--oya-line);
  background: var(--oya-white);
}

@media (max-width: 640px) {
  .profile-icon img {
    width: 96px;
    height: 96px;
  }
}

/* 広告表記とCTA(2026-08-25)
   A8.net は「広告と分かる表示」をファーストビュー等の位置に求めている。
   表記が無い場合、提携を解除される可能性がある。 */

.ad-disclosure {
  margin: 0 0 32px;
  padding: 10px 14px;
  border: 1px solid var(--oya-line);
  border-radius: 2px;
  background: var(--oya-white);
  color: var(--oya-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ad-disclosure a {
  color: var(--oya-red);
}

.ad-cta {
  margin: 40px 0;
  padding: 22px 24px;
  border: 1px solid var(--oya-line);
  border-radius: 2px;
  background: var(--oya-white);
}

/* 「広告」の札。CTA直近にも広告であることを示す。 */
.ad-cta__label {
  margin: 0 0 12px;
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--oya-line);
  border-radius: 2px;
  background: var(--oya-sage);
  color: var(--oya-muted);
  font-family: var(--oya-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ad-cta__note {
  margin: 0 0 16px;
  color: var(--oya-ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.ad-cta__action {
  margin: 0;
}

/* 計測用の1x1画像。読み上げと本文の流れから外す。 */
.ad-cta__pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  .ad-cta {
    padding: 20px;
  }

  .ad-cta__action .button-link {
    width: 100%;
  }
}

/* トップページ再設計（3.0.0、wpautop対策を3.0.1〜3.0.2で追加）
   実体験 → 状況選択 → 記事 → ガイドの順で、広告へ急がず判断材料を渡す。 */
.home-hero {
  min-height: 620px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--oya-ink);
}

.home-hero__image,
.home-hero__shade {
  position: absolute;
  inset: 0;
}

.home-hero__media {
  margin: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-hero__image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.home-hero__shade {
  background: linear-gradient(90deg, rgba(38, 52, 76, 0.94) 0%, rgba(38, 52, 76, 0.82) 42%, rgba(38, 52, 76, 0.2) 76%, rgba(38, 52, 76, 0.05) 100%);
}

.home-hero__copy {
  width: min(780px, 88%);
  position: relative;
  z-index: 2;
  padding: 76px clamp(24px, 7vw, 110px);
  color: var(--oya-white);
}

.home-eyebrow {
  width: fit-content;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.home-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.home-hero__copy > p:not(.home-eyebrow) {
  max-width: 580px;
  line-height: 2;
}

.home-primary-action {
  min-height: 56px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: var(--oya-red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.home-primary-action:hover,
.home-primary-action:focus-visible {
  background: var(--oya-white);
  color: var(--oya-ink);
}

.home-writer {
  width: min(920px, calc(100% - 36px));
  margin: -54px auto 0;
  padding-bottom: 84px;
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
}

.home-writer__portrait {
  width: 116px;
  height: 116px;
  margin: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 7px solid var(--oya-paper);
  border-radius: 50%;
  background: var(--oya-paper);
  box-shadow: 0 8px 22px rgba(38, 52, 76, 0.18);
}

.home-writer__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-writer__body {
  margin-top: -16px;
  padding: 62px clamp(24px, 6vw, 76px) 42px;
  border: 1px solid var(--oya-line);
  background: var(--oya-white);
  box-shadow: 0 22px 44px rgba(38, 52, 76, 0.06);
  text-align: center;
}

.home-section-label {
  margin-bottom: 12px;
  color: var(--oya-red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.home-writer h2,
.home-section-heading h2 {
  font-weight: 500;
}

.home-writer__body > p:not(.home-section-label) {
  max-width: 690px;
  margin-inline: auto;
  text-align: left;
}

.home-writer__promise {
  color: var(--oya-ink);
  font-weight: 700;
}

.home-writer__body a {
  color: var(--oya-red);
}

.home-routes,
.home-stories {
  padding: clamp(72px, 9vw, 96px) var(--oya-page-padding);
  scroll-margin-top: 20px;
}

.home-section-heading,
.home-route-grid,
.home-story-grid,
.home-stories__more {
  width: min(100%, var(--oya-wide));
  margin-inline: auto;
}

.home-section-heading {
  margin-bottom: 38px;
}

.home-section-heading h2 {
  max-width: 18em;
}

.home-section-heading__note {
  color: var(--oya-muted);
}

.home-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-route {
  display: flex;
  flex-direction: column;
  min-height: 204px;
  padding: 24px;
  border: 1px solid var(--oya-line);
  background: var(--oya-white);
  color: var(--oya-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.home-route:hover,
.home-route:focus-visible {
  border-color: var(--oya-ink);
}

.home-route__number,
.home-route strong,
.home-route small {
  display: block;
}

.home-route__number {
  margin-bottom: 30px;
  color: var(--oya-red);
  font-size: 14px;
  font-weight: 700;
}

.home-route strong {
  font-size: 18px;
  line-height: 1.6;
}

.home-route small {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
}

.home-route__action {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--oya-ink);
  font-size: 15px;
  font-weight: 700;
}

.home-route:hover .home-route__action,
.home-route:focus-visible .home-route__action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-stories {
  background: var(--oya-ink);
  color: var(--oya-white);
}

.home-section-heading--light .home-section-label {
  color: #c8d5e8;
}

.home-section-heading--light .home-section-heading__note {
  color: rgba(255, 255, 255, 0.74);
}

.home-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-story {
  position: relative;
  background: var(--oya-white);
  color: var(--oya-ink);
}

.home-story h3 a {
  color: inherit;
  text-decoration: none;
}

.home-story h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-story img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  filter: saturate(0.82);
}

.home-story__figure {
  margin: 0;
  overflow: hidden;
}

.home-story:hover img,
.home-story:focus-within img {
  filter: saturate(1);
}

.home-story div {
  padding: 22px;
}

.home-story__label {
  margin-bottom: 0;
  color: var(--oya-red);
  font-size: 14px;
  font-weight: 700;
}

.home-story h3 {
  margin: 10px 0 18px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
}

.home-story p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--oya-line);
  color: var(--oya-muted);
  font-size: 14px;
}

.home-stories__more {
  margin-top: 32px;
  margin-bottom: 0;
  text-align: right;
}

.home-stories__more a {
  color: #fff;
  font-weight: 700;
}

/* wpautopがグリッド直下の改行から生成するbrは、空のグリッドセルになり配置を崩す */
.home-route-grid > br,
.home-story-grid > br {
  display: none;
}

@media (max-width: 781px) {
  .home-hero {
    min-height: 590px;
    align-items: end;
  }

  .home-hero__image {
    object-position: 56% center;
  }

  .home-hero__shade {
    background: linear-gradient(0deg, rgba(38, 52, 76, 0.96) 4%, rgba(38, 52, 76, 0.7) 62%, rgba(38, 52, 76, 0.18) 100%);
  }

  .home-hero__copy {
    width: 100%;
    padding: 190px var(--oya-page-padding) 48px;
  }

  .home-hero h1 {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .home-writer {
    padding-bottom: 58px;
  }

  .home-writer__portrait {
    width: 96px;
    height: 96px;
  }

  .home-writer__body {
    padding: 52px 22px 30px;
    text-align: left;
  }

  .home-route-grid,
  .home-story-grid {
    grid-template-columns: 1fr;
  }

  .home-route {
    min-height: 0;
    padding: 20px;
  }

  .home-route__number {
    margin-bottom: 14px;
  }

  .home-route__action {
    padding-top: 14px;
  }

  .home-story-grid {
    gap: 14px;
  }

  .home-story {
    display: grid;
    grid-template-columns: 124px 1fr;
  }

  .home-story img {
    height: 100%;
    aspect-ratio: auto;
  }

  .home-story div {
    padding: 16px;
  }

  .home-story h3 {
    margin: 7px 0 12px;
    font-size: 17px;
  }

}

@media (max-width: 420px) {
  .home-story {
    grid-template-columns: 108px 1fr;
  }

  .home-story p {
    display: none;
  }
}

/* お問い合わせフォーム(Contact Form 7)。
   UT 2026-08-25 RI-2: 320px幅で入力欄の既定サイズ(size=40 / cols=40)が
   コンテナを8px超えていた。幅を100%へ揃え、操作部の高さも確保する。 */

.entry-content form {
  max-width: 100%;
}

.entry-content .wpcf7-form-control-wrap {
  display: block;
}

.entry-content label {
  display: block;
  font-weight: 600;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content select,
.entry-content textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid var(--oya-line);
  border-radius: 6px;
  background: var(--oya-white);
  color: inherit;
  font: inherit;
  line-height: 1.6;
}

.entry-content textarea {
  min-height: 180px;
  resize: vertical;
}

.entry-content input[type="submit"],
.entry-content button[type="submit"] {
  box-sizing: border-box;
  min-height: 52px;
  max-width: 100%;
  padding: 14px 32px;
  border: 0;
  border-radius: 6px;
  background: var(--oya-red);
  color: var(--oya-white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.entry-content input[type="submit"]:hover,
.entry-content button[type="submit"]:hover {
  background: var(--oya-ink);
}

.entry-content .wpcf7-spinner {
  max-width: 100%;
}

.entry-content .wpcf7 .wpcf7-response-output {
  box-sizing: border-box;
  max-width: 100%;
  margin: 18px 0 0;
}
