/* ============================================================
   Karaushi Office — Main Stylesheet
   ============================================================ */

/* ── Variables (DS aligned) ─────────────────────────────── */
:root {
  /* Brand core (3色) */
  --navy:        #0D1B3D;
  --teal:        #00A6B8;
  --amber:       #E8944A;

  /* Navy scale */
  --navy-900:    #08112A;
  --navy-800:    #0D1B3D;
  --navy-700:    #18274D;
  --navy-600:    #2B3A63;
  --navy-dark:   #08112A;       /* legacy alias */

  /* Neutrals */
  --ink:         #1A1F2E;
  --ink-muted:   #4A5268;
  --rule:        #C9CFDB;
  --mist:        #E8ECF2;
  --paper:       #F6F7F9;
  --white:       #FFFFFF;
  --fg-on-dark:  #F6F7F9;       /* DS semantic: 暗背景上の前景 */

  /* Teal / Amber scale */
  --teal-700:    #007B89;
  --teal-600:    #00A6B8;
  --teal-050:    #E6F6F8;
  --teal-pale:   #E6F6F8;       /* legacy alias */
  --amber-700:   #B96F2E;
  --amber-600:   #E8944A;
  --amber-050:   #FDF1E5;

  /* Legacy aliases (do not remove — used across main.css) */
  --bg:          #FFFFFF;
  --bg-alt:      #F6F7F9;
  --text:        #1A1F2E;
  --text-muted:  #4A5268;
  --border:      #C9CFDB;

  /* Typography (DS) */
  --font-serif:  'Zen Old Mincho', 'Noto Serif JP', 'Yu Mincho', serif;
  --font-sans:   'IBM Plex Sans JP', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-num:    'Inter', 'IBM Plex Sans JP', sans-serif;

  /* Layout */
  --max-w:       1120px;
  --section-py:  120px;          /* DS sp-10 */
  --section-py-sm: 96px;          /* mobile */
  --radius:      6px;             /* DS radius-md */
  --radius-sm:   4px;
  --radius-lg:   10px;

  /* Shadow / Motion */
  --shadow-1:    0 1px 2px rgba(13,27,61,0.06), 0 1px 1px rgba(13,27,61,0.04);
  --shadow-2:    0 2px 8px rgba(13,27,61,0.08), 0 1px 2px rgba(13,27,61,0.05);
  --ease:        cubic-bezier(0.2, 0.6, 0.2, 1);
  --transition:  200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); opacity: 1; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Typography ─────────────────────────────────────────── */
/* 数値・金額・日付：Inter で強調（DS 規約） */
.num, .kpi, time, [data-num] {
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-wrap: balance;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 8px;
}

.section-title {
  font-size: 30px;
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 40px;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 560px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius);    /* 6px */
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: none;
  min-height: 44px;                /* DS タップターゲット */
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-700);
  color: var(--white);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  opacity: 1;
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--teal-050);
  opacity: 1;
  color: var(--teal-700);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--transition);
  overflow: visible;
}

.site-header.scrolled {
  box-shadow: var(--shadow-1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo a {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.site-logo .logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width var(--transition);
}

.site-nav a:hover::after,
.site-nav a.current::after { width: 100%; }
.site-nav a:hover { opacity: 1; color: var(--teal); }

.btn-primary.nav-cta,
.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  outline: none;
  margin-left: 8px;
}

.btn-primary.nav-cta:hover {
  background: var(--navy-dark);
  color: var(--white);
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: all var(--transition);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(170deg, var(--navy) 60%, #2A3F5F);
  color: #fff;
  padding-top: 80px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 0 96px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text { flex: 1; }

.hero-tag {
  font-size: 14px;
  background: rgba(42,125,138,0.3);
  border: 1px solid rgba(42,125,138,0.6);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  color: #7DD3D8;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.5;
  margin-bottom: 22px;
  color: #fff;
}

.hero-accent { font-style: normal; color: #5CC8D4; }

.hero-desc {
  font-size: 17px;
  line-height: 1.9;
  color: #C9D1D9;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; }

.hero-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-assurance li {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}

.hero-assurance strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 2px;
}

.hero-assurance span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  line-height: 1.55;
}

.btn-outline-white {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
}

.hero-image {
  flex: 0 0 500px;
  height: 380px;
  border-radius: 10px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.hero-image-placeholder {
  text-align: center;
  color: #5A7A9A;
  font-size: 14px;
  line-height: 1.8;
}

.hero-image-icons {
  display: flex;
  gap: 16px;
  font-size: 48px;
  justify-content: center;
  margin-bottom: 8px;
}

/* ── Numbers ───────────────────────────────────────── */
.numbers {
  background: var(--bg-alt);
  padding: 64px 0;
}

.numbers-inner {
  display: flex;
  justify-content: center;
  gap: 80px;
  text-align: center;
}

.num-big {
  font-size: 48px;
  font-weight: 700;
  color: var(--teal-700);
  font-family: var(--font-serif);
}

.num-big span { font-size: 20px; }

.num-item p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Problem ───────────────────────────────────────── */
.problem { padding: var(--section-py) 0; }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.problem-grid-asym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.problem-card-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border-left: 3px solid var(--teal);
}

.problem-card-main h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.problem-card-main p {
  font-size: 0.95rem;
  line-height: 1.85;
}

.problem-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* DS番号ラベル（絵文字代替） */
.problem-num {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: -0.01em;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 4px;
  align-self: flex-start;
}

.problem-card-main .problem-num {
  font-size: 28px;
  width: auto;
  height: auto;
  border-bottom: none;
  border-left: 3px solid var(--teal);
  padding: 0 0 0 12px;
  margin-bottom: 8px;
}

.problem-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Services (TOP) ────────────────────────────────── */
.services {
  background: var(--bg-alt);
  padding: var(--section-py) 0;
}

.services-header {
  margin-bottom: 36px;
}

/* page-header直後のservicesは上余白を詰める */
.page-header + .services,
.page-quick-cta + .services {
  padding-top: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);    /* 10px */
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-1);
}

.service-card-img {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ── Scope Notice (accordion) ──────────────────────── */
.scope-notice {
  margin-top: 60px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.scope-notice summary {
  padding: 20px 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scope-notice summary::-webkit-details-marker { display: none; }

.scope-notice summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.scope-notice[open] summary::after {
  content: '−';
}

.scope-notice p {
  padding: 0 32px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.service-tag {
  font-size: 13px;
  color: var(--teal-700);
  background: var(--teal-pale);
  padding: 3px 10px;
  border-radius: 3px;
}

.service-card-sub {
  margin-top: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Trust (TOP) ───────────────────────────────────── */
.trust {
  padding: var(--section-py) 0;
  background: var(--white);
}

.section-lead {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin: -12px 0 40px;
}

.trust-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.trust-flow-step,
.trust-detail-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-flow-step {
  padding: 24px 20px;
}

.trust-num {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 600;
  color: var(--teal-700);
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 14px;
}

.trust-flow-step h3,
.trust-detail-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.trust-flow-step p,
.trust-detail-card p,
.trust-detail-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.trust-details {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.trust-detail-card {
  padding: 24px;
}

.trust-detail-card ul {
  display: grid;
  gap: 6px;
  list-style: disc;
  padding-left: 1.2em;
}

/* ── About (TOP) ───────────────────────────────────── */
.about { padding: var(--section-py) 0; }

.about-content { max-width: 800px; }

.about-name {
  font-size: 24px;
  margin-bottom: 14px;
  font-family: var(--font-serif);
}

.about-bio {
  font-size: 16px;
  line-height: 1.9;
  color: #4B5563;
  margin-bottom: 12px;
}

.about-address {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-strengths {
  display: flex;
  gap: 16px;
}

.about-strength {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1;
  text-align: left;
}

.strength-num {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: -0.01em;
  display: inline-block;
  min-width: 32px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 12px;
}

.about-strength p {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

/* ── CTA Section ───────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: var(--section-py) 0;
}

.cta-inner {
  text-align: center;
  color: #fff;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.45;
  margin-bottom: 18px;
  color: #fff;
}

.cta-inner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 17px;
  display: inline-block;
}

/* ── Blog (TOP) ────────────────────────────────────── */
.blog-section {
  background: var(--bg-alt);
  padding: var(--section-py) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

.blog-section-cta {
  text-align: center;
  margin-top: 48px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-1);
}

.blog-card-img { height: 180px; overflow: hidden; }

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.blog-card-body { padding: 20px; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.blog-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--teal-pale);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.blog-card-date {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

.blog-card-body h4 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.blog-card-body h4 a {
  color: var(--text);
  text-decoration: none;
}

.blog-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .site-logo a {
  color: var(--white);
  font-size: 1.15rem;
}

.footer-brand .logo-sub {
  color: var(--teal);
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
  margin-top: 16px;
  max-width: 420px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
}

.footer-col ul li a:hover {
  color: var(--white);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.58);
}

.footer-disclaimer {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
}

/* ── Single Post / Page ─────────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(23,122,107,0.15) 0%, transparent 60%);
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.75);
}

.page-header .breadcrumb .breadcrumb-sep {
  color: rgba(255,255,255,0.5);
}

.page-header .breadcrumb span::before {
  display: none;
}

.page-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  font-family: var(--font-serif);
  padding-left: 0;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.page-header h1::before { display: none; }

.page-header-desc {
  font-size: 17px;
  color: var(--fg-on-dark);
  line-height: 1.85;
  max-width: 720px;
}

.page-header .post-meta {
  margin-top: 16px;
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ── Page Quick CTA ─────────────────────────────────────── */
.page-quick-cta {
  background: var(--bg-alt);
  padding: 32px 0 0;
}

.page-quick-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-1);
}

.page-quick-cta-copy {
  max-width: 680px;
}

.page-quick-cta-kicker {
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.page-quick-cta h2 {
  color: var(--navy);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-family: var(--font-serif);
  line-height: 1.55;
  margin-bottom: 8px;
}

.page-quick-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.page-quick-cta-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  align-items: center;
}

/* ── Content Area ───────────────────────────────────────── */
.content-area {
  padding: 64px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.entry-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
  padding-left: 16px;
}

.entry-content h3 {
  font-size: 1.1rem;
  margin: 32px 0 12px;
  color: var(--navy);
}

.entry-content p {
  font-size: 0.9rem;
  line-height: 1.95;
  margin-bottom: 20px;
  color: var(--text);
}

.entry-content ul,
.entry-content ol {
  margin: 16px 0 24px 20px;
}

.entry-content li {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

.entry-content strong {
  font-weight: 700;
  color: var(--navy);
}

.entry-content a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-color: rgba(23,122,107,0.3);
}

.entry-content a.btn {
  color: var(--white);
  text-decoration: none;
}

.entry-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  background: var(--teal-pale);
  border-radius: 0 4px 4px 0;
  margin: 24px 0;
}

.entry-content blockquote p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Article Decoration Components ─────────────────────── */

/* TOC / この記事で分かること */
.article-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0 0 40px;
}

.article-toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc ul { margin: 0; padding: 0; }

.article-toc li {
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.8;
  padding: 3px 0 3px 22px;
  position: relative;
  color: var(--text);
  margin-bottom: 0;
}

.article-toc li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal-700);
  font-weight: 700;
  font-size: 0.8rem;
}

.article-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--teal-050);
  border: 1px solid rgba(0,166,184,0.24);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  margin: 28px 0 36px;
  padding: 24px 26px;
}

.article-inline-cta--mid {
  background: var(--bg-alt);
  border-color: var(--border);
  border-left-color: var(--amber);
}

.article-inline-cta-copy {
  flex: 1 1 auto;
}

.article-inline-cta-kicker {
  color: var(--teal-700);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 4px !important;
}

.entry-content .article-inline-cta .article-inline-cta-title {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 0 6px;
  padding-left: 0;
  font-weight: 700;
}

.entry-content .article-inline-cta p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.article-inline-cta-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  align-items: center;
}

.article-inline-cta .btn {
  padding: 12px 18px;
  font-size: 0.82rem;
  text-decoration: none;
}

.entry-content .article-inline-cta .btn-outline {
  color: var(--navy);
}

.entry-content .article-inline-cta .btn-outline:hover {
  color: var(--white);
}

/* Info / Warning / Note Boxes */
.article-box {
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}

.article-box-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-box p {
  font-size: 0.87rem;
  line-height: 1.85;
  margin-bottom: 8px;
}

.article-box p:last-child { margin-bottom: 0; }

.article-box ul { margin: 8px 0 0 18px; }
.article-box li {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 4px;
  list-style: disc;
}

.article-box--point {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
}
.article-box--point .article-box-title { color: var(--teal-700); }

.article-box--warning {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
}
.article-box--warning .article-box-title { color: #B45309; }

.article-box--note {
  background: var(--bg-alt);
  border-left: 4px solid var(--border);
}
.article-box--note .article-box-title { color: var(--text-muted); }

/* Styled Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.87rem;
}

.entry-content table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 11px 16px;
  text-align: left;
  font-size: 0.84rem;
}

.entry-content table th:first-child { border-radius: var(--radius) 0 0 0; }
.entry-content table th:last-child  { border-radius: 0 var(--radius) 0 0; }

.entry-content table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
  vertical-align: top;
}

.entry-content table tr:nth-child(even) td {
  background: var(--bg-alt);
}

/* Step Cards */
.article-steps {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-step-num {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.article-step-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: var(--font-sans);
}

.article-step-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* CTA Box (in-article) */
.article-cta {
  background: var(--teal-pale);
  border: 1px solid rgba(42,125,138,0.15);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.article-cta-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--text);
}

.article-cta .btn { font-size: 0.88rem; }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-cta {
  background: var(--navy);
  border-color: var(--navy);
  text-align: center;
}

.sidebar-cta h4 {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.14);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.sidebar-cta p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.9;
  font-weight: 500;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .sidebar-cta h4 {
    font-size: 1rem;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .sidebar-cta p {
    font-size: 0.88rem;
    line-height: 1.85;
    margin-bottom: 18px;
  }
}

/* ── Archive ────────────────────────────────────────────── */
.archive-section {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
}

.archive-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.archive-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

.archive-filter-btn:hover {
  color: var(--teal-700);
  border-color: var(--teal);
  opacity: 1;
}

.archive-filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.archive-filter-btn.active:hover { opacity: 1; }

.filter-count {
  font-size: 0.7rem;
  background: rgba(0,0,0,0.08);
  padding: 1px 7px;
  border-radius: 10px;
}

.archive-filter-btn.active .filter-count {
  background: rgba(255,255,255,0.2);
}

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

.archive-inline-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border: 1px solid rgba(0,166,184,0.28);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-1);
}

.archive-inline-cta-copy {
  flex: 1 1 auto;
}

.archive-inline-cta-kicker {
  color: var(--teal-700);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}

.archive-inline-cta h2 {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
  margin-bottom: 6px;
}

.archive-inline-cta p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.archive-inline-cta-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.archive-inline-cta .btn {
  padding: 12px 18px;
  font-size: 0.82rem;
}

.archive-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.archive-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-1);
}

.archive-card-img-link {
  display: block;
  overflow: hidden;
}

.archive-card-img {
  height: 200px;
  overflow: hidden;
}

.archive-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, #2A3F5F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-card-img-placeholder span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.2);
}

.archive-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.archive-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--teal-pale);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.archive-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.archive-card-title {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
}

.archive-card-title a {
  color: var(--navy);
  transition: color var(--transition);
}

.archive-card-title a:hover {
  color: var(--teal-700);
  opacity: 1;
}

.archive-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
}

.archive-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-top: 16px;
  transition: gap var(--transition);
}

.archive-card-readmore:hover {
  gap: 8px;
  opacity: 1;
}

.archive-pagination {
  margin-top: 48px;
  text-align: center;
}

.archive-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 60px 0;
  text-align: center;
}

/* Sidebar download widget */
.sidebar-download {
  background: var(--teal-pale);
  border-color: rgba(42,125,138,0.15);
}

.sidebar-download h4 {
  color: var(--teal-700);
  border-color: rgba(42,125,138,0.15);
}

.sidebar-download-desc {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Sidebar category list */
.sidebar-cat-list li {
  border-bottom: 1px solid var(--border);
}

.sidebar-cat-list li:last-child {
  border-bottom: none;
}

.sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color var(--transition);
}

.sidebar-cat-list li a:hover {
  color: var(--teal-700);
  opacity: 1;
}

.sidebar-cat-count {
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Contact Page ───────────────────────────────────────── */
/* ── Contact Page ──────────────────────────────────── */
.contact-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.contact-intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.contact-intro-inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact-intro h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-intro-line {
  display: block;
}

.contact-intro p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-points {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.contact-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: 1;
  max-width: 260px;
  min-width: 0;
}

.contact-point-num,
.contact-topic-num {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 18px;
  color: var(--teal-700);
  letter-spacing: -0.01em;
  display: inline-block;
  min-width: 32px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--rule);
  margin-right: 12px;
  flex-shrink: 0;
}

.contact-point strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-point > div span {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-phone-banner {
  max-width: 680px;
  margin: 0 auto 48px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px 36px;
  text-align: center;
}

.contact-phone-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-phone-label {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}

.contact-phone-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.contact-phone-number:hover {
  opacity: 0.9;
}

.contact-phone-number .num {
  color: inherit;
}

.contact-form-section {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}

.contact-form-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

.contact-form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form-wrap .wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-sans);
  background: var(--white);
  transition: border-color var(--transition);
}

.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form select:focus,
.contact-form-wrap .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,125,138,0.1);
}

.contact-form-wrap .wpcf7-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-wrap .wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}

.contact-form-wrap .wpcf7-form input[type="submit"]:hover {
  background: var(--navy-dark);
}


.contact-form-wrap .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.contact-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.spam .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.aborted .wpcf7-response-output,
.contact-form-wrap .wpcf7 form.failed .wpcf7-response-output {
  border: 2px solid #DC2626;
  background: #FEF2F2;
  color: #991B1B;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}


.contact-form-wrap .wpcf7 form.sent .wpcf7-response-output {
  border: 2px solid #15803D;
  background: #F0FDF4;
  color: #166534;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.12);
  font-size: 16px;
}

.contact-form-wrap .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #DC2626;
  font-size: 14px;
  font-weight: 700;
}

.contact-notice {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}

/* ── Contact Topics ──────────────────────────────────── */
.contact-topics {
  max-width: 760px;
  margin: 0 auto 48px;
}

.contact-topics-heading {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 20px;
}

.contact-topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-topic-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-topic-item p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* ── Contact Flow ────────────────────────────────────── */
.contact-flow {
  max-width: 760px;
  margin: 0 auto 48px;
}

.contact-flow-heading {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 28px;
}

.contact-flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.contact-flow-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.contact-flow-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.contact-flow-step h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-flow-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-flow-arrow {
  flex-shrink: 0;
  color: var(--border);
  margin-top: 8px;
  display: flex;
  align-items: center;
}

/* ── Contact Alt CTA ─────────────────────────────────── */
.contact-alt-cta {
  max-width: 760px;
  margin: 48px auto;
}

.contact-alt-cta-inner {
  text-align: center;
  padding: 36px 32px;
  background: var(--teal-pale);
  border: 1px solid rgba(42,125,138,0.15);
  border-radius: var(--radius);
}

.contact-alt-cta-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.contact-alt-cta-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 20px;
}

.contact-fallback {
  padding: 40px;
  text-align: center;
}

.contact-fallback p {
  margin-bottom: 12px;
  color: var(--text-muted);
}

/* ── Utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  /* DS: タブレット帯では section 余白を sp-9 (96px) に縮小 */
  :root { --section-py: var(--section-py-sm); }
  .hero-inner {
    flex-direction: column;
    padding: 64px 0 48px;
    gap: 32px;
  }
  .hero-image {
    flex: none;
    width: 100%;
    height: 200px;
  }
  .numbers-inner { gap: 40px; }
  .problem-grid,
  .problem-grid-asym,
  .services-grid,
  .trust-flow,
  .trust-details {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-strengths {
    flex-direction: column;
  }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .page-quick-cta-inner,
  .archive-inline-cta,
  .article-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-quick-cta-actions,
  .archive-inline-cta-actions,
  .article-inline-cta-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .contact-points { flex-direction: column; align-items: center; }
  .contact-point { max-width: 100%; width: 100%; }
  .contact-topics-grid { grid-template-columns: 1fr; }
  .contact-flow-steps { flex-direction: column; align-items: center; gap: 16px; }
  .contact-flow-arrow { transform: rotate(90deg); }
  .contact-form-wrap { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card-img { height: 180px; }
}

@media (max-width: 640px) {
  /* DS: モバイルではセクション余白を sp-9 (96px) より少し詰めて 80px に */
  :root { --section-py: 80px; }

  .container { padding: 0 20px; }

  .page-quick-cta {
    padding-top: 24px;
  }
  .page-quick-cta-inner,
  .archive-inline-cta,
  .article-inline-cta {
    padding: 22px 20px;
  }
  .page-quick-cta-actions,
  .archive-inline-cta-actions,
  .article-inline-cta-actions {
    flex-direction: column;
  }
  .page-quick-cta-actions .btn,
  .archive-inline-cta-actions .btn,
  .article-inline-cta-actions .btn {
    width: 100%;
    text-align: center;
  }

  .article-toc { padding: 20px; }
  .article-box { padding: 18px 20px; }
  .article-step { padding: 16px; gap: 12px; }
  .article-cta { padding: 24px 20px; }
  .entry-content table { font-size: 0.82rem; }
  .entry-content table th,
  .entry-content table td { padding: 9px 12px; }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 0;
    background: var(--navy);
    align-items: stretch;
    justify-content: flex-start;
    padding: 96px 24px 32px;
    gap: 0;
    z-index: 200;
    overflow-y: auto;
  }
  .site-nav.open a {
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .site-nav.open a::after { display: none; }
  .site-nav.open .nav-cta,
  .site-nav.open .btn-primary.nav-cta {
    margin: 20px 0 0;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--white);
  }
  .hamburger { display: flex; z-index: 201; position: relative; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header {
    height: 100dvh;
    background: var(--navy);
    backdrop-filter: none;
    border-bottom: none;
  }
  body.nav-open .header-inner {
    height: 72px;
  }
  body.nav-open .site-logo {
    opacity: 0;
    pointer-events: none;
  }

  .site-header,
  .header-inner {
    height: 72px;
  }
  .site-logo a { font-size: 18px; }
  .site-logo .logo-sub {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .page-header {
    padding: 88px 0 48px;
  }
  .page-header .breadcrumb {
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 8px;
    margin-bottom: 18px;
    font-size: 0.8rem;
  }
  .page-header .breadcrumb a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .page-header .breadcrumb span {
    display: none;
  }
  .page-header h1 {
    font-size: 2rem;
    line-height: 1.35;
  }
  .page-header .post-meta {
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.76rem;
  }

  .contact-section {
    padding: 56px 0;
  }
  .contact-intro {
    margin-bottom: 48px;
  }
  .contact-intro h2 {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  .contact-intro p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 28px;
  }
  .contact-point {
    padding: 18px 18px;
  }
  .contact-point strong {
    font-size: 15px;
  }
  .contact-point > div span {
    font-size: 13px;
    line-height: 1.6;
  }
  .contact-topic-item {
    padding: 16px;
  }
  .contact-flow-step {
    width: 100%;
    max-width: 420px;
    padding: 0;
  }
  .contact-phone-banner {
    padding: 24px 20px;
    margin-bottom: 40px;
  }
  .contact-phone-number {
    font-size: 24px;
  }
  .contact-form-section,
  .contact-topics,
  .contact-flow,
  .contact-alt-cta,
  .contact-notice {
    max-width: 100%;
  }
  .contact-alt-cta-inner {
    padding: 28px 20px;
  }
  .contact-notice {
    padding: 18px 20px;
    font-size: 13px;
  }

  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-assurance { grid-template-columns: 1fr; }
  .hero-assurance li { padding: 11px 12px; }
  .btn-white, .btn-outline-white {
    width: 100%;
    text-align: center;
  }
  .cta-inner h2 {
    font-size: 26px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .cta-inner p {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 28px;
  }
  .numbers-inner {
    flex-direction: column;
    gap: 24px;
  }
  .blog-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }

  .site-footer {
    padding: 48px 0 24px;
  }
  .footer-grid {
    gap: 32px;
    padding-bottom: 32px;
    margin-bottom: 24px;
  }
  .footer-brand .site-logo a {
    font-size: 1.3rem;
  }
  .footer-brand p {
    font-size: 0.98rem;
    line-height: 1.85;
    max-width: none;
  }
  .footer-col h4 {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }
  .footer-col ul li {
    margin-bottom: 8px;
  }
  .footer-col ul li a {
    font-size: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
  }
  .footer-disclaimer {
    font-size: 0.8rem;
  }
}

/* ── Accessibility / Motion ─────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(232,148,74,0.22);
}

.site-nav.open a:focus-visible,
.hamburger:focus-visible,
.hero a:focus-visible,
.cta-section a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--amber);
  box-shadow: 0 0 0 6px rgba(232,148,74,0.32);
}

.contact-form-wrap .wpcf7-form input:focus-visible,
.contact-form-wrap .wpcf7-form select:focus-visible,
.contact-form-wrap .wpcf7-form textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ── Fade In Animation ──────────────────────────────────── */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-observed {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.is-observed.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in,
  .fade-in.is-observed {
    opacity: 1;
    transform: none;
  }
}

/* ── 404 Page ──────────────────────────────────────────── */
.error-404 {
  padding: var(--section-py) 0;
  text-align: center;
}

.error-404-inner {
  max-width: 560px;
  margin: 0 auto;
}

.error-404 .page-header h1 {
  font-size: 4rem;
}

.error-404-message {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 600px) {
  .error-404-actions {
    flex-direction: column;
    align-items: center;
  }
  .error-404-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}
