/* ============================================================
   借地売却ドットコム - メインスタイルシート
   Color Palette:
   --gold:        #B8860B  (ゴールド / CTA ボタン)
   --gold-dark:   #9A7109  (ゴールド hover)
   --brown:       #4A2512  (ダークブラウン / テキスト・ボタン)
   --brown-dark:  #3A1D0E  (ダークブラウン hover)
   --brown-light: #F2E8E5  (ライトブラウン / アイコン背景)
   --brown-bg:    #FDF8F6  (セクション背景)
   --brown-100:   #F2E8E5
   --brown-border:#E8D5CF  (ボーダー)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:         #B8860B;
  --gold-dark:    #9A7109;
  --brown:        #4A2512;
  --brown-dark:   #3A1D0E;
  --brown-light:  #F2E8E5;
  --brown-bg:     #FDF8F6;
  --brown-border: #E8D5CF;
  --brown-100:    #F2E8E5;
  --text-main:    #1A1A1A;
  --text-muted:   #6B5B55;
  --white:        #FFFFFF;
  --radius:       0.75rem;
  --shadow:       0 1px 3px rgba(74,37,18,.08);
  --shadow-md:    0 4px 12px rgba(74,37,18,.12);
  --container:    1200px;
  --font:         'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .85; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--brown);
  text-align: center;
  margin-bottom: .75rem;
}
.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 2.5rem;
}
.section-pad { padding: 5rem 0; }
.section-bg  { background: var(--brown-bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, transform .15s;
  border: none;
  text-decoration: none;
  font-family: var(--font);
  line-height: 1.4;
}
.btn svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  padding: .5rem 1.25rem;
}
.btn-gold:hover { background: var(--gold-dark); opacity: 1; }

.btn-gold-lg {
  background: var(--gold);
  color: var(--white);
  padding: .65rem 1.5rem;
  font-size: .95rem;
}
.btn-gold-lg:hover { background: var(--gold-dark); opacity: 1; }

.btn-brown {
  background: var(--brown);
  color: var(--white);
  padding: .6rem 1.5rem;
}
.btn-brown:hover { background: var(--brown-dark); opacity: 1; }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: .6rem 1.5rem;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); opacity: 1; }

.btn-line {
  background: #06C755;
  color: var(--white);
  padding: .6rem 1.5rem;
  border-radius: var(--radius);
}
.btn-line:hover { background: #05A847; opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  color: var(--brown);
}
.site-logo .logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brown);
  white-space: nowrap;
}
.site-logo .logo-tagline {
  font-size: .65rem;
  color: var(--text-muted);
  margin-left: .25rem;
  display: none;
}
@media (min-width: 768px) {
  .site-logo .logo-tagline { display: inline; }
}

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { list-style: none; margin: 0; padding: 0; }
.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
  }
  .site-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
  }
  .site-nav .nav-list li { flex-shrink: 0; }
  .site-nav a {
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 500;
    color: var(--brown);
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
  }
  .site-nav a:hover,
  .site-nav a.current-menu-item {
    border-bottom-color: var(--gold);
    color: var(--gold-dark);
    opacity: 1;
  }
}

.header-cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Mobile menu */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--brown-border);
  padding: 1rem 0 1.5rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brown);
  border-bottom: 1px solid var(--brown-bg);
}
.mobile-nav .mobile-cta {
  margin: 1rem 1.5rem 0;
  text-align: center;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--brown-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #2c1810, rgba(74,37,18,.9), #2c1810);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  width: 100%;
}
.hero-content .container { max-width: var(--container); }
.hero-eyebrow {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-buttons .btn {
  flex-shrink: 0;
}

/* ---------- Problems Section ---------- */
.problems-card {
  background: var(--brown-bg);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) { .problems-grid { grid-template-columns: 1fr; } }

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .95rem;
  color: var(--brown);
}
.problem-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-dark);
}
.problems-solution {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.5rem;
}
.solution-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Strengths Section ---------- */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.strength-card {
  background: var(--white);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.strength-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.strength-icon {
  width: 48px;
  height: 48px;
  background: var(--brown-light);
  color: var(--brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.strength-icon svg { width: 24px; height: 24px; }
.strength-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .5rem;
}
.strength-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Knowledge Section ---------- */
.knowledge-info {
  background: var(--brown-bg);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.knowledge-info-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--brown);
}
.info-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .875rem;
}
.knowledge-info ul { padding-left: 0; }
.knowledge-info li {
  color: var(--text-muted);
  font-size: .95rem;
  padding: .3rem 0 .3rem 1rem;
  position: relative;
}
.knowledge-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.merit-demerit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) { .merit-demerit { grid-template-columns: 1fr; } }

.merit-box, .demerit-box {
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
}
.merit-header, .demerit-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.merit-header svg, .demerit-header svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.merit-box li, .demerit-box li {
  font-size: .9rem;
  color: var(--text-muted);
  padding: .3rem 0 .3rem 1rem;
  position: relative;
}
.merit-box li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.demerit-box li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #999;
  font-weight: 700;
}

.knowledge-cta { text-align: center; margin-top: 1.5rem; }

/* ---------- Flow Section ---------- */
.flow-steps { position: relative; }
.flow-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--brown-light);
}
.flow-step:last-child::before { display: none; }

.flow-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.flow-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .4rem;
  padding-top: .75rem;
}
.flow-body p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.flow-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- FAQ Section ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--brown);
  transition: background .2s;
}
.faq-question:hover { background: var(--brown-bg); }
.faq-q-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .875rem;
}
.faq-question-text { flex: 1; }
.faq-arrow {
  width: 20px;
  height: 20px;
  color: var(--brown);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.is-open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem 3.75rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.is-open .faq-answer { display: block; }
.faq-cta { text-align: center; margin-top: 2rem; }

/* ---------- Contact Section ---------- */
.contact-section {
  background: var(--brown);
  color: var(--white);
  padding: 5rem 0;
}
.contact-section .section-title { color: var(--white); }
.contact-section .section-lead { color: rgba(255,255,255,.75); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background .2s;
}
.contact-card:hover { background: rgba(255,255,255,.12); }

/* --- Light Theme Contact Card (For Page Content) --- */
.contact-grid.contact-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.contact-grid.contact-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 767px) {
  .contact-grid.contact-grid-2 { grid-template-columns: 1fr; }
  .contact-grid.contact-grid-3 { grid-template-columns: 1fr; }
}

.contact-card.light {
  background: var(--white);
  border: 1px solid var(--brown-border);
  box-shadow: var(--shadow);
  color: var(--brown);
}
.contact-card.light:hover { background: var(--brown-bg); }
.contact-card.light .contact-hours { color: var(--text-muted); }
.contact-card.light .contact-badge {
  background: var(--brown-light);
  color: var(--brown);
}
/* ---------------------------------------------------- */

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.contact-card-icon svg { width: 24px; height: 24px; color: var(--white); }
.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.contact-phone {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--gold);
  display: block;
  margin-bottom: .25rem;
}
.contact-hours {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.btn + .contact-hours {
  margin-top: .5rem;
}
.contact-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border-radius: 2rem;
  padding: .3rem .9rem;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0 1.5rem;
  font-size: .875rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-weight: 700;
}
.footer-logo svg { width: 24px; height: 24px; color: var(--gold); }
.footer-nav, .footer-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.footer-nav a { color: rgba(255,255,255,.6); font-size: .875rem; }
.footer-nav a:hover { color: var(--white); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-info {
  margin-bottom: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Inner Page ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
}
.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: .4rem;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: .9rem; }
.hero-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .25rem;
}
.hero-cat-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: .1rem 1.2rem;
  border-radius: 2rem;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
.page-breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .6rem;
}
.page-breadcrumb a { color: rgba(255,255,255,.7); }
.page-breadcrumb a:hover { color: var(--white); opacity: 1; }
.page-breadcrumb span { margin: 0 .4rem; }

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* 見出し */
.page-content h2,
.page-content .wp-block-heading:is(h2) {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
  margin: 2.5rem 0 1rem;
  padding: .6rem .9rem;
  background: var(--brown-bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.page-content h2:first-child,
.page-content .wp-block-heading:is(h2):first-child { margin-top: 0; }

.page-content h3,
.page-content .wp-block-heading:is(h3) {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin: 1.75rem 0 .5rem;
  padding-left: .75rem;
  border-left: 3px solid var(--brown-border);
}

/* 本文 */
.page-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: .9rem;
  font-size: .95rem;
}

/* リスト（WordPress の .wp-block-list 含む） */
.page-content ul,
.page-content ol,
.page-content .wp-block-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.page-content ul li,
.page-content .wp-block-list li { list-style: disc; line-height: 1.8; margin-bottom: .35rem; }
.page-content ol li { list-style: decimal; line-height: 1.8; margin-bottom: .35rem; }

/* テーブル（WordPress の figure.wp-block-table 含む） */
.page-content figure.wp-block-table {
  margin: 0 0 1.75rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--brown-border);
  box-shadow: var(--shadow-md);
}
.page-content figure.wp-block-table figcaption { display: none; }
.page-content table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: .9rem;
}
.page-content thead tr {
  background: var(--brown);
}
.page-content th,
.page-content .wp-block-table th {
  color: var(--white) !important;
  padding: .8rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  border: none !important;
  background: var(--brown) !important;
}
.page-content tbody tr {
  transition: background .15s;
}
.page-content tbody tr:first-child td {
  border-top: none !important;
}
.page-content td,
.page-content .wp-block-table td {
  padding: .8rem 1.1rem;
  border: none !important;
  border-bottom: 1px solid var(--brown-border) !important;
  color: var(--text-muted);
  line-height: 1.6;
}
.page-content td:first-child {
  font-weight: 500;
  color: var(--brown);
  border-right: 1px solid var(--brown-border) !important;
  white-space: nowrap;
}
.page-content tr:last-child td { border-bottom: none !important; }
.page-content tr:nth-child(even) td { background: var(--brown-bg); }
.page-content tbody tr:hover td { background: #f5ede9; }

/* 「無料」などの強調バッジ */
.page-content td strong {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .75rem;
  border-radius: 2rem;
  letter-spacing: .02em;
}

/* callout ボックス */
.page-content .callout {
  background: var(--brown-bg);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.page-content .callout p:last-child { margin-bottom: 0; }

/* CTA ブロック */
.page-content .page-cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--brown-bg);
  border-radius: var(--radius);
  margin-top: 2.5rem;
}
.page-content .page-cta p { margin-bottom: 1.25rem; }

/* page-content 内のコンポーネント見出しリセット */
.page-content .flow-timeline h3,
.page-content .strength-card h3,
.page-content .flow-body h3 {
  border-left: none;
  padding-left: 0;
  margin: 0;
}
.page-content .flow-timeline p,
.page-content .strength-card p,
.page-content .flow-body p,
.page-content .problems-card p {
  color: inherit;
}

/* フロータイムライン：縦線 */
.flow-timeline-item {
  position: relative;
  margin-bottom: 1rem;
}
.flow-timeline-item:last-child {
  margin-bottom: 0;
}
.flow-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: -1rem;
  width: 2px;
  background: var(--gold);
  opacity: .25;
}
.flow-timeline-item:last-child {
  padding-bottom: 0;
}
.flow-timeline-item > div:last-child {
  align-self: flex-start;
}

/* ---------- FAQ Page ---------- */
.faq-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.faq-page-content .container {
  max-width: 800px;
  padding: 0;
}
.faq-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.faq-card {
  background: var(--white);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-card-q {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.25rem 1.5rem;
  background: var(--brown-bg);
  border-bottom: 1px solid var(--brown-border);
}
.faq-badge-q {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gold);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: .05rem;
}
.faq-card-q p {
  margin: 0;
  font-weight: 600;
  color: var(--brown);
  font-size: .975rem;
  line-height: 1.65;
}
.faq-card-a {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.25rem 1.5rem;
}
.faq-badge-a {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--brown);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: .05rem;
}
.faq-card-a p {
  margin: 0;
  color: var(--text-muted);
  font-size: .925rem;
  line-height: 1.8;
}
@media (max-width: 767px) {
  .faq-page-content { padding: 2rem 1rem 4rem; }
  .faq-card-q, .faq-card-a { padding: 1rem 1.1rem; gap: .7rem; }
}

/* ---------- Contact Page Form ---------- */
.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: .4rem;
}
.form-group label .required {
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  padding: .1rem .4rem;
  border-radius: .25rem;
  margin-left: .4rem;
  font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--brown-border);
  border-radius: .5rem;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text-main);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* CF7 tweaks */
.cf7-input, .cf7-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--brown-border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: var(--font);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.cf7-input:focus, .cf7-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,.15);
}
.cf7-textarea {
  resize: vertical;
  min-height: 120px;
}

.wpcf7 input[type="submit"],
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--white);
  padding: .9rem 3rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.wpcf7-submit:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* ---------- 404 ---------- */
.error-page {
  text-align: center;
  padding: 8rem 1.5rem;
}
.error-page h1 {
  font-size: 6rem;
  font-weight: 900;
  color: var(--brown-light);
  line-height: 1;
  margin-bottom: 0;
}
.error-page h2 { font-size: 1.5rem; color: var(--brown); margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- Contact Page ---------- */
.contact-page {
  max-width: 100%;
  padding: 0 0 5rem;
}
.contact-page .section-title { margin-top: 0; border: none; background: none; padding: 0; border-left: none; border-radius: 0; }
.contact-page .section-lead { margin-bottom: 2rem; }
.contact-page .contact-card-icon svg { width: 24px; height: 24px; }
.contact-page .contact-card h3 { border-left: none; padding-left: 0; margin: 0 0 .5rem; }
.contact-page .contact-card p { color: inherit; }
.contact-page .contact-response-badge svg { width: 18px; height: 18px; }

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 1rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1px solid var(--brown-border);
  border-radius: 2rem;
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brown);
}
.trust-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--gold);
}
.trust-badge-icon svg { width: 18px; height: 18px; }

/* Response Badge */
.contact-response-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  max-width: 680px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
}
.contact-response-badge svg { width: 18px; height: 18px; color: var(--gold); }

/* Inquiry Type Radio */
.contact-inquiry-type {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.inquiry-radio {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  background: var(--brown-bg);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.inquiry-radio:hover { border-color: var(--gold); }
.inquiry-radio input[type="radio"] { accent-color: var(--gold); }
.inquiry-radio:has(input:checked) {
  border-color: var(--gold);
  background: rgba(184,134,11,.08);
}

/* Submit Button (disabled/enabled) */
.contact-submit-btn {
  background: #ccc;
  color: var(--white);
  padding: .65rem 1.5rem;
  font-size: .95rem;
  cursor: not-allowed;
  transition: background .3s, transform .15s;
}
.contact-submit-btn.is-active {
  background: var(--gold);
  cursor: pointer;
}
.contact-submit-btn.is-active:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  opacity: 1;
}

/* CF7 acceptance → submit toggle */
.wpcf7-submit {
  background: #ccc !important;
  cursor: not-allowed;
  transition: background .3s, transform .15s;
}
.wpcf7-submit.is-active {
  background: var(--gold) !important;
  cursor: pointer;
}
.wpcf7-submit.is-active:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}
.wpcf7 .wpcf7-acceptance input { width: 18px; height: 18px; accent-color: var(--gold); }

/* CF7 radio inline layout fix */
.wpcf7 .wpcf7-radio { display: flex; flex-wrap: wrap; gap: .75rem; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  background: var(--brown-bg);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.wpcf7 .wpcf7-list-item label:hover { border-color: var(--gold); }
.wpcf7 .wpcf7-list-item input[type="radio"] { accent-color: var(--gold); }
.wpcf7 .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label { color: var(--brown); }

@media (max-width: 767px) {
  .trust-badges { gap: .5rem; padding: 1rem .75rem; }
  .trust-badge { padding: .4rem .9rem; font-size: .8rem; }
  .contact-inquiry-type { flex-direction: column; }
}

/* ---------- Column Archive ---------- */
.column-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.column-filter-tag {
  display: inline-block;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid var(--brown-border);
  border-radius: 2rem;
  color: var(--brown);
  background: var(--white);
  transition: background .2s, border-color .2s;
}
.column-filter-tag:hover { border-color: var(--gold); opacity: 1; }
.column-filter-tag.is-active {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover {
  box-shadow: 0 4px 16px rgba(74,37,18,.1);
  transform: translateY(-2px);
}
.post-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brown-bg);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-border);
}
.post-card-thumb-placeholder svg { width: 48px; height: 48px; }
.post-card-body {
  padding: 1rem 1.25rem 1.25rem;
}
.post-card-date {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.post-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .5rem;
}
.post-card-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 2rem;
  background: var(--brown-light);
  color: var(--brown);
}
.post-card-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
  border: none;
  padding: 0;
  background: none;
  border-left: none;
  border-radius: 0;
}
.post-card-title a { color: var(--brown); }
.post-card-title a:hover { color: var(--gold-dark); }

.no-posts {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

/* Pagination */
.nav-links {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}
.nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--brown);
}
.nav-links a:hover { border-color: var(--gold); opacity: 1; }
.nav-links .current {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}

/* ---------- Single Post ---------- */
.single-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.single-date {
  font-size: .9rem;
  color: var(--text-muted);
}
.single-cats {
  display: flex;
  gap: .35rem;
}
.single-thumbnail {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.single-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
.single-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--brown);
}
.single-content h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
}
.single-content h3 {
  font-size: 1.15rem;
  margin: 2rem 0 .75rem;
  border-left: none;
  padding-left: 0;
  background: none;
}
.single-content p { margin-bottom: 1.25rem; }
.single-content ul, .single-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}
.single-content li { margin-bottom: .4rem; }
.single-content a { color: var(--gold-dark); text-decoration: underline; }
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}

/* Post Navigation */
.post-navigation {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--brown-border);
}
.post-nav-link {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--brown-border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.post-nav-link:hover { border-color: var(--gold); opacity: 1; }
.post-nav-next { text-align: right; }
.post-nav-label {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.post-nav-title {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.5;
}
.single-back {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-navigation { flex-direction: column; }
  .post-nav-next { text-align: left; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- News (お知らせ) ---------- */
.news-list {
  max-width: 780px;
  margin: 0 auto;
}
.news-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--brown-border);
}
.news-date {
  flex-shrink: 0;
  font-size: .85rem;
  color: var(--text-muted);
  min-width: 6rem;
}
.news-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  border: none;
  padding: 0;
  background: none;
  border-left: none;
  border-radius: 0;
}
.news-title a { color: var(--brown); }
.news-title a:hover { color: var(--gold-dark); }

@media (max-width: 767px) {
  .news-item { flex-direction: column; gap: .25rem; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .section-pad { padding: 3.5rem 0; }
  .hero { min-height: 60vh; }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons .btn {
    justify-content: center;
    text-align: center;
  }
  .flow-step::before { left: 24px; }
  .flow-number { width: 48px; height: 48px; font-size: 1.1rem; }
}
