/*
Theme Name: 実家どうする v2
Theme URI: https://akiya-dousuru.com/
Author: 実家どうする編集部
Description: 実家・空き家の意思決定支援メディア向けテーマ。安心感、読みやすさ、相談導線、SEO記事回遊を重視した設計です。
Version: 2.3.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: akiya-dousuru-v2
*/

:root {
  --ink: #26312d;
  --muted: #64716c;
  --green: #2f6254;
  --green-dark: #21483e;
  --green-pale: #e9f1ed;
  --orange: #c97242;
  --orange-dark: #a85229;
  --orange-pale: #faeee6;
  --ivory: #f7f4ed;
  --paper: #fffdfa;
  --line: #dfe4df;
  --white: #fff;
  --shadow-sm: 0 8px 24px rgba(35, 53, 46, .07);
  --shadow-md: 0 18px 50px rgba(35, 53, 46, .11);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --content: 1120px;
  --reading: 760px;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.reading-container {
  width: min(calc(100% - 40px), var(--reading));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(47, 98, 84, .12);
  background: rgba(255, 253, 250, .94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand .custom-logo {
  width: auto;
  max-width: 180px;
  max-height: 42px;
  object-fit: contain;
}

.brand-mark {
  position: relative;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: var(--green);
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 15px;
  left: 11px;
  top: 14px;
  border-radius: 2px;
  background: var(--white);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 12px;
  top: 8px;
  background: var(--white);
  transform: rotate(45deg);
  border-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-tagline {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.global-nav {
  margin-left: auto;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  position: relative;
  display: block;
  padding: 26px 0 23px;
  color: #3f4b47;
  font-size: 13px;
  font-weight: 700;
}

.global-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.global-nav a:hover::after,
.global-nav .current-menu-item a::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 7px 20px rgba(201, 114, 66, .22);
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.header-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.header-search {
  display: flex;
  width: 150px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 3px 9px 13px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}

.header-search button {
  width: 36px;
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  margin-left: auto;
}

.mobile-menu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-pale);
  cursor: pointer;
  list-style: none;
  font-size: 21px;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-panel {
  position: absolute;
  top: 78px;
  right: 0;
  left: 0;
  padding: 15px 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.mobile-menu-panel ul {
  margin: 0 0 15px;
  padding: 0;
  list-style: none;
}

.mobile-menu-panel a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.mobile-menu-panel .header-cta {
  display: flex;
  color: var(--white);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 80px;
  background:
    radial-gradient(circle at 8% 20%, rgba(201, 114, 66, .09), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(47, 98, 84, .13), transparent 32%),
    var(--ivory);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(47, 98, 84, .11);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.eyebrow::before {
  content: "";
  width: 27px;
  height: 2px;
  background: var(--orange);
}

.home-hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(40px, 5.3vw, 67px);
  line-height: 1.28;
  letter-spacing: .035em;
}

.home-hero h1 span {
  position: relative;
  color: var(--green);
  white-space: nowrap;
}

.home-hero h1 span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 8px;
  border-radius: 99px;
  background: rgba(201, 114, 66, .25);
  z-index: -1;
}

.hero-copy {
  max-width: 610px;
  margin: 25px 0 0;
  color: #52605b;
  font-size: 17px;
  line-height: 2;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 11px 25px rgba(201, 114, 66, .24);
}

.button-primary:hover {
  background: var(--orange-dark);
}

.button-secondary {
  border-color: rgba(47, 98, 84, .24);
  color: var(--green);
  background: rgba(255, 255, 255, .66);
}

.button-secondary:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.hero-points {
  display: flex;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex-wrap: wrap;
}

.hero-points li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--green);
  font-weight: 900;
}

.decision-board {
  position: relative;
  padding: 33px;
  border: 1px solid rgba(47, 98, 84, .12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-md);
}

.decision-board::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 40px;
  width: 74px;
  height: 28px;
  background: rgba(217, 199, 169, .62);
  transform: rotate(-3deg);
}

.board-label {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.decision-board h2 {
  margin: 0 0 24px;
  font-size: 22px;
  line-height: 1.55;
}

.decision-list {
  display: grid;
  gap: 10px;
}

.decision-item {
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.decision-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-pale);
  font-weight: 900;
}

.decision-item:nth-child(2) .decision-icon,
.decision-item:nth-child(4) .decision-icon {
  color: var(--orange-dark);
  background: var(--orange-pale);
}

.decision-name {
  font-weight: 800;
}

.decision-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.decision-arrow {
  color: #9aa49f;
  font-size: 20px;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--ivory);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 35px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 3.3vw, 39px);
  line-height: 1.4;
}

.section-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform .2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.choice-card {
  position: relative;
  min-height: 245px;
  padding: 27px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.choice-card:hover {
  border-color: rgba(47, 98, 84, .35);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.choice-number {
  display: block;
  color: rgba(47, 98, 84, .25);
  font-family: Georgia, serif;
  font-size: 41px;
  font-style: italic;
  line-height: 1;
}

.choice-card h3 {
  margin: 22px 0 10px;
  font-size: 21px;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.choice-card .card-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-pale);
  transition: background .2s ease, color .2s ease;
}

.choice-card:hover .card-arrow {
  color: var(--white);
  background: var(--green);
}

.situation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.situation-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 17px;
  padding: 22px 24px;
  border: 1px solid rgba(47, 98, 84, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  transition: background .2s ease, transform .2s ease;
}

.situation-card:hover {
  background: var(--white);
  transform: translateX(3px);
}

.situation-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--orange-dark);
  background: var(--orange-pale);
  font-size: 19px;
  font-weight: 900;
}

.situation-card strong {
  display: block;
  margin-bottom: 2px;
}

.situation-card small {
  color: var(--muted);
  font-size: 11px;
}

.situation-card > span:last-child {
  color: var(--green);
  font-size: 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.article-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 98, 84, .86), rgba(58, 112, 94, .68)),
    var(--green);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.035);
}

.article-thumb.no-image {
  display: grid;
  place-items: center;
}

.article-thumb.no-image::before {
  content: "実家どうする？";
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: var(--white);
  font-family: "Yu Mincho", serif;
  font-size: 15px;
}

.article-category {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, .94);
  font-size: 10px;
  font-weight: 900;
}

.article-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.article-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
}

.article-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: #87918d;
  font-size: 10px;
}

.article-meta .read-more {
  color: var(--green);
  font-weight: 800;
}

.empty-posts {
  grid-column: 1 / -1;
  padding: 35px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: flow;
}

.flow-item {
  position: relative;
  padding: 31px 27px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  counter-increment: flow;
}

.flow-item::before {
  content: "0" counter(flow);
  display: block;
  margin-bottom: 19px;
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}

.flow-item:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  color: #afbbb6;
  font-size: 21px;
}

.flow-item h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.trust-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 55px;
  padding: 52px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--green-dark);
  box-shadow: var(--shadow-md);
}

.trust-panel h2 {
  margin: 0;
  font-family: "Yu Mincho", serif;
  font-size: clamp(27px, 3vw, 37px);
  line-height: 1.55;
}

.trust-panel h2 span {
  color: #efb28d;
}

.trust-panel p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding-left: 29px;
  position: relative;
  font-size: 13px;
  font-weight: 700;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--green-dark);
  background: #b9d5ca;
  font-size: 11px;
}

.cta-section {
  padding: 78px 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .18), transparent 22%),
    var(--orange);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  color: var(--white);
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-family: "Yu Mincho", serif;
  font-size: clamp(28px, 3.5vw, 40px);
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
}

.cta-inner .button {
  flex: 0 0 auto;
  color: var(--green-dark);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(85, 38, 15, .18);
}

.breadcrumbs {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #fbfaf7;
  font-size: 11px;
}

.breadcrumbs a {
  color: var(--green);
}

.breadcrumbs .separator {
  margin: 0 8px;
  color: #a7afab;
}

.page-hero {
  padding: 58px 0 50px;
  background: var(--ivory);
}

.page-hero .page-label {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}

.page-hero h1 {
  margin: 0;
  font-family: "Yu Mincho", serif;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.45;
}

.page-hero p {
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 55px;
  padding: 60px 0 90px;
}

.content-main {
  min-width: 0;
}

.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  margin: 13px 0 17px;
  font-family: "Yu Mincho", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.5;
}

.post-category {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 10px;
  font-weight: 900;
}

.post-date {
  color: var(--muted);
  font-size: 11px;
}

.featured-image {
  margin-bottom: 34px;
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-content {
  color: #36413d;
  font-size: 16px;
  line-height: 2;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin: 2.7em 0 1em;
  padding: 18px 20px;
  border-left: 5px solid var(--orange);
  border-radius: 0 10px 10px 0;
  background: var(--ivory);
  color: var(--ink);
  font-size: 25px;
  line-height: 1.55;
}

.entry-content h3 {
  margin: 2.3em 0 .8em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
  color: var(--ink);
  font-size: 21px;
  line-height: 1.6;
}

.entry-content h4 {
  margin: 2em 0 .7em;
  color: var(--green-dark);
  font-size: 18px;
}

.entry-content p {
  margin: 0 0 1.6em;
}

.entry-content .article-inline-image {
  margin: 2.3em 0;
}

.entry-content .article-inline-image img {
  width: 100%;
  border-radius: 12px;
}

.entry-content .article-inline-image figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.entry-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.entry-content ul,
.entry-content ol {
  margin: 1.5em 0;
  padding: 22px 25px 22px 46px;
  border-radius: 12px;
  background: var(--ivory);
}

.entry-content li + li {
  margin-top: .45em;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 22px 25px;
  border-left: 4px solid var(--green);
  background: var(--green-pale);
}

.entry-content .article-dialogue {
  margin: 1.7em 0 2.1em;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfaf7;
}

.entry-content .article-dialogue-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.entry-content .article-dialogue-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.entry-content .article-dialogue-row + .article-dialogue-row {
  margin-top: 15px;
}

.entry-content .article-dialogue-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-dark);
  background: var(--orange-pale);
  font-size: 11px;
  font-weight: 800;
}

.entry-content .article-dialogue-row--editor .article-dialogue-avatar {
  color: var(--white);
  background: var(--green);
}

.entry-content .article-dialogue-speaker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.entry-content .article-dialogue-bubble {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e2ded5;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

.entry-content .article-dialogue-row--editor .article-dialogue-bubble {
  border-color: #cddbd5;
  background: var(--green-pale);
}

.entry-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 13px;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  background: var(--green-pale);
}

.article-cta {
  margin: 45px 0;
  padding: 31px;
  border: 1px solid rgba(201, 114, 66, .22);
  border-radius: var(--radius);
  background: var(--orange-pale);
}

.supervisor-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 45px 0 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: var(--white);
}

.supervisor-badge {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.supervisor-label {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.supervisor-card h2 {
  margin: 3px 0 0;
  font-size: 21px;
  line-height: 1.5;
}

.supervisor-card h2 a:hover,
.supervisor-link:hover {
  color: var(--green);
}

.supervisor-qualification {
  margin: 0 0 9px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.supervisor-card p:not(.supervisor-qualification) {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.supervisor-link {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.article-cta h2,
.article-cta h3 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 22px;
}

.article-cta p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.sidebar {
  position: sticky;
  top: 105px;
}

.sidebar-block {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.sidebar-title,
.sidebar-block h2 {
  margin: 0 0 15px;
  font-size: 15px;
}

.sidebar-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fbfaf7;
}

.sidebar-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 5px 10px 15px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.sidebar-search button {
  width: 43px;
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
}

.sidebar-list,
.sidebar-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list li,
.sidebar-block li {
  border-bottom: 1px solid var(--line);
}

.sidebar-list li:last-child,
.sidebar-block li:last-child {
  border-bottom: 0;
}

.sidebar-list a,
.sidebar-block li a {
  display: block;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-cta {
  color: var(--white);
  background: var(--green-dark);
}

.sidebar-cta .sidebar-title {
  font-size: 18px;
  line-height: 1.55;
}

.sidebar-cta p {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
}

.sidebar-cta .button {
  width: 100%;
  min-height: 45px;
  padding: 0 15px;
  color: var(--green-dark);
  background: var(--white);
  font-size: 12px;
}

.archive-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 45px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.pagination .current {
  color: var(--white);
  background: var(--green);
}

.contact-intro {
  margin-bottom: 28px;
  padding: 24px 27px;
  border-radius: var(--radius);
  background: var(--green-pale);
}

.contact-intro h2 {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 21px;
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.wpcf7 {
  margin-top: 25px;
}

.wpcf7 p {
  margin-bottom: 22px;
}

.wpcf7 label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 15px;
  border: 1px solid #ccd4cf;
  border-radius: 9px;
  outline: 0;
  background: var(--white);
  transition: border .2s ease, box-shadow .2s ease;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 98, 84, .1);
}

.wpcf7 input[type="submit"] {
  min-width: 240px;
  min-height: 53px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  cursor: pointer;
  font-weight: 800;
}

.wpcf7-response-output {
  border-radius: 10px;
}

.site-footer {
  padding: 60px 0 25px;
  color: rgba(255, 255, 255, .8);
  background: #1f302a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  gap: 55px;
  padding-bottom: 40px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, .54);
}

.footer-description {
  max-width: 420px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .61);
  font-size: 12px;
}

.footer-title {
  margin: 0 0 13px;
  color: var(--white);
  font-size: 13px;
}

.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, .66);
  font-size: 11px;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .43);
  font-size: 10px;
}

.not-found {
  padding: 100px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 13px;
  font-family: "Yu Mincho", serif;
  font-size: 40px;
}

.not-found p {
  margin: 0 0 25px;
  color: var(--muted);
}

/* ===== オウンドメディア型トップページ ===== */
.media-home {
  background: var(--paper);
}

.media-masthead {
  padding: 55px 0 50px;
  border-bottom: 1px solid var(--line);
  background: #f1f3f1;
}

.media-masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 70px;
}

.media-label,
.panel-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.media-masthead h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.45;
}

.media-masthead p:not(.media-label) {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.media-masthead .media-source-note {
  margin-top: 11px;
  padding-left: 16px;
  border-left: 3px solid #b6a16a;
  color: #65706b;
  font-size: 11px;
}

.media-search {
  padding: 22px;
  border: 1px solid #bfc8c3;
  border-radius: 2px;
  background: var(--white);
}

.media-search label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
}

.media-search > div {
  display: flex;
  border: 1px solid #cbd4cf;
  border-radius: 0;
  overflow: hidden;
  background: var(--white);
}

.media-search input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.media-search button {
  min-width: 65px;
  border: 0;
  color: var(--white);
  background: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.topic-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.topic-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.topic-strip-inner::-webkit-scrollbar {
  display: none;
}

.topic-strip strong {
  padding-right: 20px;
  border-right: 1px solid var(--line);
  color: var(--green);
  font-size: 11px;
}

.topic-strip a {
  color: #53605b;
  font-size: 11px;
  font-weight: 700;
}

.topic-strip a::before {
  content: "#";
  margin-right: 3px;
  color: var(--orange);
}

.media-section {
  padding: 72px 0;
}

.media-section-tint {
  background: var(--ivory);
}

.media-section-heading {
  margin-bottom: 25px;
}

.media-section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.media-section-heading span {
  display: block;
  margin-bottom: 5px;
  color: #6c746f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.media-section-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.45;
}

.media-section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.media-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 38px;
}

.featured-story {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  min-height: 380px;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  box-shadow: none;
  transition: border-color .2s ease;
}

.featured-story:hover {
  border-color: var(--green);
}

.featured-story-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--green-dark);
}

.featured-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}

.photo-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 4px 7px;
  color: var(--white);
  background: rgba(0, 0, 0, .64);
  font-size: 9px;
}

.featured-story-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 35px 31px;
}

.story-category {
  align-self: flex-start;
  padding: 4px 7px;
  border-radius: 2px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 9px;
  font-weight: 900;
}

.featured-story h3 {
  margin: 17px 0 12px;
  font-family: inherit;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.6;
}

.featured-story-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #87918d;
  font-size: 10px;
}

.story-meta span {
  color: var(--green);
  font-weight: 800;
}

.media-topic-panel {
  padding: 27px;
  border: 1px solid #cdd3cf;
  border-top: 4px solid var(--green);
  background: #f5f5f2;
}

.media-topic-panel h2 {
  margin: 0 0 17px;
  font-size: 21px;
}

.media-topic-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.media-topic-panel li {
  border-top: 1px solid #d9ded9;
}

.media-topic-panel a {
  display: grid;
  padding: 14px 0;
}

.media-topic-panel strong {
  position: relative;
  padding-right: 20px;
  font-size: 13px;
}

.media-topic-panel strong::after {
  content: "›";
  position: absolute;
  right: 2px;
  color: #77817c;
  font-size: 17px;
  font-weight: 400;
}

.media-topic-panel small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.media-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 35px;
}

.media-article-grid {
  grid-template-columns: repeat(2, 1fr);
}

.media-article-grid .article-card {
  border-radius: 2px;
  box-shadow: none;
}

.media-article-grid .article-card:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--green);
}

.media-coming-soon {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-content: center;
  padding: 35px;
  border: 1px dashed #bdc7c1;
  background: rgba(255, 255, 255, .55);
  text-align: center;
}

.media-coming-soon strong {
  font-family: inherit;
  font-size: 22px;
}

.media-coming-soon p {
  max-width: 520px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.media-side {
  display: grid;
  gap: 20px;
}

.media-side-block {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.media-side-block h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
}

.media-side-block > p:not(.panel-label) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.media-policy-list {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.media-policy-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 10px;
  font-weight: 700;
}

.media-policy-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

.media-newsletter-block {
  color: var(--white);
  background: var(--green-dark);
}

.media-newsletter-block h2 {
  color: var(--white);
}

.media-newsletter-block > p:not(.panel-label) {
  color: rgba(255, 255, 255, .68);
}

.media-newsletter-block a {
  display: inline-block;
  margin-top: 17px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.media-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.media-guide-grid a {
  min-height: 145px;
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background .2s ease;
}

.media-guide-grid a:hover {
  background: var(--green-pale);
}

.media-guide-grid h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.55;
}

.media-guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 980px) {
  .global-nav,
  .site-header > .container > .header-cta,
  .header-search {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .decision-board {
    max-width: 620px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sidebar-block {
    margin: 0;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .media-masthead-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .media-search {
    max-width: 600px;
  }

  .media-lead-grid {
    grid-template-columns: 1fr;
  }

  .media-topic-panel ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 25px;
  }

  .media-content-grid {
    grid-template-columns: 1fr;
  }

  .media-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 700px) {
  .container,
  .reading-container {
    width: min(calc(100% - 30px), var(--content));
  }

  .header-inner {
    min-height: 67px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-mark::before {
    left: 10px;
    top: 13px;
    width: 15px;
    height: 14px;
  }

  .brand-mark::after {
    left: 11px;
    top: 8px;
    width: 13px;
    height: 13px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    display: none;
  }

  .mobile-menu-panel {
    top: 67px;
  }

  .home-hero {
    padding: 57px 0 55px;
  }

  .home-hero h1 {
    font-size: clamp(37px, 12vw, 50px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .button {
    width: 100%;
  }

  .hero-points {
    display: grid;
    gap: 5px;
  }

  .decision-board {
    padding: 27px 19px 21px;
  }

  .decision-item {
    grid-template-columns: 36px 1fr auto;
    padding: 9px 11px;
  }

  .decision-icon {
    width: 36px;
    height: 36px;
  }

  .section {
    padding: 65px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p,
  .section-heading .text-link {
    margin-top: 14px;
  }

  .choice-grid,
  .situation-grid,
  .article-grid,
  .archive-posts,
  .flow-grid,
  .sidebar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 205px;
  }

  .situation-card {
    grid-template-columns: 43px 1fr auto;
    padding: 18px;
  }

  .situation-icon {
    width: 43px;
    height: 43px;
  }

  .flow-item:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -25px;
  }

  .trust-panel {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 35px 25px;
  }

  .cta-inner {
    display: block;
  }

  .cta-inner .button {
    margin-top: 25px;
  }

  .page-hero {
    padding: 43px 0 38px;
  }

  .content-layout {
    padding: 42px 0 70px;
  }

  .entry-content {
    font-size: 15px;
  }

  .entry-content h2 {
    font-size: 21px;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .entry-content .article-dialogue {
    padding: 17px 14px;
  }

  .entry-content .article-dialogue-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .entry-content .article-dialogue-avatar {
    width: 40px;
    height: 40px;
    font-size: 10px;
  }

  .entry-content .article-dialogue-bubble {
    padding: 11px 12px;
    font-size: 13px;
  }

  .supervisor-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 15px;
    padding: 21px 18px;
  }

  .supervisor-badge {
    width: 56px;
    height: 56px;
    font-size: 11px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 5px;
  }

  .media-masthead {
    padding: 40px 0 35px;
  }

  .media-masthead h1 {
    font-size: 32px;
  }

  .media-masthead h1 br {
    display: none;
  }

  .media-search {
    padding: 16px;
  }

  .topic-strip-inner {
    gap: 17px;
    padding-top: 11px;
    padding-bottom: 11px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .topic-strip strong {
    width: 100%;
    padding-right: 0;
    border-right: 0;
  }

  .media-section {
    padding: 55px 0;
  }

  .media-section-heading-row {
    display: block;
  }

  .media-section-heading > p {
    margin-top: 10px;
  }

  .featured-story {
    grid-template-columns: 1fr;
  }

  .featured-story-image {
    min-height: 210px;
    aspect-ratio: 16 / 9;
  }

  .featured-story-body {
    padding: 25px 21px;
  }

  .media-topic-panel {
    padding: 23px 20px;
  }

  .media-topic-panel ul,
  .media-side,
  .media-guide-grid {
    grid-template-columns: 1fr;
  }

  .media-article-grid {
    grid-template-columns: 1fr;
  }

  .media-guide-grid a {
    min-height: 165px;
  }

  .media-guide-grid h3 {
    margin-top: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
