:root {
  /* 信頼・清潔感の医療系ブルーパレット */
  --bg-main: #f5f8fc; /* Clean blue-tinted off-white */
  --bg-panel: rgba(255, 255, 255, 0.78); /* Light panel */
  --bg-panel-hover: rgba(255, 255, 255, 1);

  --text-primary: #16202e; /* Deep navy ink */
  --text-secondary: #4b5563; /* Mid Gray */
  --text-muted: #7a8699;

  /* Accents — semantic */
  --accent: #1f5fa8;          /* Primary medical blue */
  --accent-deep: #0f3d6e;     /* Deep navy blue */
  --accent-soft: #2ba3a0;     /* Teal accent */
  --accent-tint: #eaf2fb;     /* Pale blue tint */

  /* 後方互換: 既存の var(--accent-gold) 参照をブルーへ再ポイント */
  --accent-gold: #1f5fa8;
  --accent-gold-dim: rgba(31, 95, 168, 0.08);
  --accent-glow: 0 4px 15px rgba(31, 95, 168, 0.18);
  --accent-blue: #1f5fa8;

  --success: #1e8e5a;
  --error: #c0392b;

  /* Borders / Lines */
  --border-subtle: rgba(15, 61, 110, 0.10);
  --border-strong: rgba(15, 61, 110, 0.20);

  /* Geometry & Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --ds-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
  --ds-shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
  --ds-blur: blur(16px);
  --nav-height: 80px;

  --content-w: 1200px;
  --content-padding: 24px;
}

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

html {
  font-family: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(31, 95, 168, 0.04), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(43, 163, 160, 0.04), transparent 25%);
  background-attachment: fixed;
}



h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

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

/* =========================================
   Layout Containers
   ========================================= */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-narrow {
  padding: 80px 0;
}

.section-gray {
  background: rgba(0,0,0,0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* =========================================
   Typography
   ========================================= */
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.tagline {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.display-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.lead-text {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

/* =========================================
   Navigation / Glass Navbar
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--ds-blur);
  -webkit-backdrop-filter: var(--ds-blur);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* =========================================
   Brand Logo (Abstract Visual Mark)
   ========================================= */
.brand-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-right: 4px;
}

/* 2つのシェイプが重なり合うM&A・結合・シナジーを表現するデザイン */
.brand-icon::before,
.brand-icon::after {
  content: '';
  position: absolute;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* 背面のシェイプ（ゴールドグラデーション・G3：重厚） */
.brand-icon::before {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #c9a02b, #7d5d0a);
  top: 2px;
  left: 2px;
  box-shadow: 1px 1px 3px rgba(125, 93, 10, 0.35);
}

/* 前面のシェイプ（ゴールドグラデーション） */
.brand-icon::after {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #3f86c9, #0f3d6e);
  bottom: 2px;
  right: 2px;
  box-shadow: -2px -2px 6px rgba(255,255,255,0.8), 2px 2px 8px rgba(31, 95, 168, 0.3);
}

.brand:hover .brand-icon::before {
  transform: translate(2px, 2px);
}
.brand:hover .brand-icon::after {
  transform: translate(-2px, -2px);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* =========================================
   Buttons & Links
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-transform: uppercase;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--text-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #1b3a5b;
}

.btn-ghost {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  top: 40%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(63, 134, 201, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  filter: blur(60px);
}

/* =========================================
   Glass Panels / Cards (Light Mode)
   ========================================= */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: var(--ds-blur);
  -webkit-backdrop-filter: var(--ds-blur);
  box-shadow: var(--ds-shadow-glass);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    pointer-events: none;
}

.glass-panel:hover {
  background: var(--bg-panel-hover);
  box-shadow: var(--ds-shadow-hover);
  transform: translateY(-2px);
}

.panel-dark {
  background: linear-gradient(135deg, #16202e, #1b3a5b);
  color: #fff;
  border: none;
}
.glass-panel.panel-dark:hover {
  background: linear-gradient(135deg, #1b3a5b, #274d72);
}
.panel-dark::after {
  display: none;
}
.panel-dark .text-secondary {
  color: #9ca3af;
}
.panel-dark .section-title, .panel-dark h3 {
  color: #fff;
}

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

/* =========================================
   Article Cards
   ========================================= */
.article-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(31,95,168,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 95, 168, 0.3);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.article-card:hover::before { opacity: 1; }

.article-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge {
  padding: 6px 12px;
  border-radius: 100px;
  background: #f3f4f6;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
}

.badge-gold {
  background: rgba(31, 95, 168, 0.1);
  border-color: rgba(31, 95, 168, 0.2);
  color: var(--accent-gold);
}

.badge-series {
  background: rgba(63, 134, 201, 0.15);
  border-color: rgba(31, 95, 168, 0.2);
  color: var(--accent-gold);
}

.article-meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.article-meta-date {
  color: var(--text-secondary);
  font-weight: 500;
}

.article-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  line-height: 1.5;
  font-family: 'Noto Serif JP', serif;
}

.article-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
  flex: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: auto;
}

/* =========================================
   Home Latest Columns
   ========================================= */
.home-columns-section {
  padding: 88px 0 72px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(234,242,251,0.42));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.home-columns-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.home-columns-head .section-title {
  margin-bottom: 0;
}

.home-columns-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.home-columns-feature,
.home-columns-list-item,
.home-columns-empty {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 61, 110, 0.06);
}

.home-columns-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  padding: 18px;
  min-height: 310px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-columns-feature:hover,
.home-columns-list-item:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 95, 168, 0.32);
  box-shadow: 0 16px 38px rgba(15, 61, 110, 0.10);
}

.home-columns-image {
  width: 100%;
  min-width: 0;
  min-height: 250px;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  background: var(--accent-tint);
}

.home-columns-image img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

.home-columns-feature-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 10px 18px 0;
}

.home-columns-list-content {
  min-width: 0;
}

.home-columns-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.home-columns-feature h3,
.home-columns-list-item h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-columns-feature h3 {
  -webkit-line-clamp: 2;
}

.home-columns-list-item h3 {
  -webkit-line-clamp: 1;
}

.home-columns-feature p,
.home-columns-list-item p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-columns-feature p {
  -webkit-line-clamp: 4;
}

.home-columns-list-item p {
  -webkit-line-clamp: 2;
}

.home-columns-feature-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-columns-read {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.home-columns-read span,
.home-columns-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.home-columns-feature:hover .home-columns-read span,
.home-columns-list-item:hover .home-columns-arrow {
  transform: translateX(4px);
}

.home-columns-list {
  display: grid;
  gap: 18px;
}

.home-columns-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  min-height: 146px;
  padding: 28px 28px 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-columns-list-item h3 {
  font-size: 1.25rem;
}

.home-columns-list-item .home-columns-meta {
  margin-bottom: 14px;
}

.home-columns-arrow {
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  justify-self: end;
}

.home-columns-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .home-columns-layout {
    grid-template-columns: 1fr;
  }

  .home-columns-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-columns-section {
    padding: 72px 0 64px;
  }

  .home-columns-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-columns-feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-columns-image {
    min-height: 210px;
  }

  .home-columns-feature-body {
    padding: 4px 4px 14px;
  }

  .home-columns-feature-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 22px;
  }

  .home-columns-list {
    grid-template-columns: 1fr;
  }

  .home-columns-list-item {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .home-columns-list-item h3 {
    -webkit-line-clamp: 2;
  }

  .home-columns-arrow {
    display: none;
  }
}

/* =========================================
   Stats / Metrics
   ========================================= */
.metric-box {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.metric-value {
  font-size: 2.5rem;
  font-family: 'Outfit', serif;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.metric-desc {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =========================================
   Newsletter / Form
   ========================================= */
.form-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.newsletter-form {
  position: relative;
  flex-wrap: wrap;
}

.input-glass {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 16px 24px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-glass:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.1);
}

.input-glass::placeholder {
  color: var(--text-muted);
}

.newsletter-feedback {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #9ca3af;
}

.newsletter-feedback.is-success {
  color: #86efac;
}

.newsletter-feedback.is-error {
  color: #fda4af;
}

.newsletter-feedback.is-info {
  color: #d1d5db;
}

.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   Contact Form
   ========================================= */
.contact-field {
  margin-bottom: 24px;
}

.contact-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.contact-required {
  color: #e53e3e;
  font-weight: 700;
}

.contact-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.contact-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.1);
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}

.contact-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 44px;
  cursor: pointer;
}

.contact-feedback {
  min-height: 1.5em;
  margin-top: 20px;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted);
}

.contact-feedback.is-success {
  color: #16a34a;
}

.contact-feedback.is-error {
  color: #dc2626;
}

.contact-feedback.is-info {
  color: var(--text-secondary);
}

/* =========================================
   Footer
   ========================================= */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 80px;
  background: #eceef2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: inline-block;
  font-weight: 600;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-strong);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================
   Animations & Reveals
   ========================================= */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* =========================================
   Admin Page
   ========================================= */
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: end;
}

.admin-tagline {
  color: rgba(63, 134, 201, 0.9);
}

.admin-display-title {
  background: none;
  -webkit-text-fill-color: initial;
  color: #fff;
  margin-bottom: 20px;
}

.admin-hero-text {
  color: #d1d5db;
  max-width: 720px;
}

.admin-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.admin-btn-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-btn-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.admin-storage-note {
  color: #9ca3af;
  line-height: 1.7;
  font-size: 0.95rem;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.admin-metric-card {
  min-height: 180px;
}

.admin-stack {
  display: grid;
  gap: 30px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 30px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  align-items: end;
}

.admin-panel-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.admin-panel-copy {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.admin-checklist {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.admin-check-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.85);
}

.admin-check-item input {
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--accent-gold);
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.admin-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-primary);
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.admin-input:focus {
  border-color: rgba(31, 95, 168, 0.7);
  box-shadow: 0 0 0 4px rgba(31, 95, 168, 0.08);
}

.admin-select {
  appearance: none;
  cursor: pointer;
}

.admin-textarea {
  resize: vertical;
  min-height: 140px;
}

.admin-textarea-sm {
  min-height: 110px;
}

.admin-action-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.admin-storage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.admin-storage-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.8);
  padding: 18px;
}

.admin-storage-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.admin-storage-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-idea-form {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-idea-list {
  display: grid;
  gap: 14px;
}

.admin-idea-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.admin-idea-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.admin-idea-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.admin-idea-top h3 {
  font-size: 1.05rem;
}

.admin-idea-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-inline-btn,
.admin-inline-link {
  border: none;
  background: rgba(31, 95, 168, 0.08);
  color: var(--accent-gold);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.admin-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-inline-btn:hover,
.admin-inline-link:hover {
  background: rgba(31, 95, 168, 0.14);
  transform: translateY(-1px);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.admin-toolbar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 26px 0 22px;
}

.admin-visible-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.admin-reset-btn {
  min-width: 220px;
}

.admin-article-list {
  display: grid;
  gap: 20px;
}

.admin-article-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.03);
}

.admin-article-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.admin-article-side {
  min-width: 100px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: grid;
  gap: 8px;
}

.admin-article-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.admin-article-summary {
  color: var(--text-secondary);
  line-height: 1.75;
}

.admin-article-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-article-controls {
  display: grid;
  grid-template-columns: 160px 140px minmax(0, 1fr) 130px;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.admin-pin-btn {
  min-height: 50px;
  padding-inline: 0;
}

.admin-pin-btn.is-active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.admin-card-textarea {
  min-height: 96px;
}

.admin-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 14px;
}

.admin-empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.6);
}

.admin-template-form {
  display: grid;
  gap: 20px;
}

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

.admin-audience-select {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.admin-checkbox-field {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.admin-checkbox-field input {
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--accent-gold);
}

.admin-code-output {
  min-height: 520px;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.88rem;
  background: #16202e;
  color: #e5e7eb;
}

.admin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #16202e;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.25);
  z-index: 1400;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.admin-auth-card {
  width: min(560px, 100%);
}

.admin-login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.admin-auth-summary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: #fff;
  display: grid;
  gap: 6px;
}

.admin-auth-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-error-banner {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.18);
  color: #991b1b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.admin-error-banner.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.85fr);
  gap: 30px;
}

.admin-editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-status-published {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.admin-status-draft {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.admin-status-static {
  background: rgba(107, 114, 128, 0.12);
  color: #274d72;
}

.admin-status-db {
  background: rgba(31, 95, 168, 0.12);
  color: var(--accent-gold);
}

.admin-section-head,
.admin-section-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-section-head {
  margin-top: 8px;
}

.admin-section-list {
  display: grid;
  gap: 18px;
}

.admin-section-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.admin-section-card-head h4 {
  font-size: 1rem;
}

.admin-small-btn {
  min-width: 140px;
}

.admin-form-actions {
  margin-top: 6px;
}

.admin-delete-btn {
  border-color: rgba(185, 28, 28, 0.2);
  color: #991b1b;
}

.admin-delete-btn:hover {
  background: rgba(185, 28, 28, 0.06);
  border-color: rgba(185, 28, 28, 0.25);
}

.admin-toolbar-compact {
  grid-template-columns: minmax(0, 1fr) 200px 160px;
  margin-bottom: 18px;
}

.admin-newsletter-toolbar {
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 18px;
}

.admin-inline-note {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--text-secondary);
}

.admin-article-card.is-selected {
  border-color: rgba(31, 95, 168, 0.35);
  box-shadow: 0 12px 28px rgba(31, 95, 168, 0.08);
}

.admin-subscriber-list {
  display: grid;
  gap: 18px;
}

.admin-subscriber-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  display: grid;
  gap: 18px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.03);
}

.admin-subscriber-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.admin-subscriber-side {
  min-width: 180px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: grid;
  gap: 8px;
}

.admin-subscriber-email {
  font-size: 1.2rem;
  line-height: 1.4;
  word-break: break-word;
}

.admin-subscriber-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-subscriber-meta div {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.65);
  padding: 14px 16px;
}

.admin-subscriber-meta dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 700;
}

.admin-subscriber-meta dd {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
  word-break: break-word;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .display-title { font-size: 3.5rem; }
  .admin-hero,
  .admin-layout,
  .admin-editor-layout,
  .admin-toolbar,
  .admin-template-grid,
  .admin-article-controls {
    grid-template-columns: 1fr 1fr;
  }
  .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-panel-head,
  .admin-article-header,
  .admin-subscriber-head,
  .admin-toolbar-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-article-side,
  .admin-subscriber-side {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 40px; }
  .section { padding: 80px 0; }
  .display-title { font-size: 2.5rem; }
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px;
  }
  .hero-content {
    max-width: none;
  }
  .form-group { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .admin-hero,
  .admin-layout,
  .admin-editor-layout,
  .admin-metrics,
  .admin-toolbar,
  .admin-template-grid,
  .admin-article-controls,
  .admin-storage-summary {
    grid-template-columns: 1fr;
  }
  .admin-action-group,
  .admin-audience-select,
  .admin-article-links,
  .admin-visible-summary,
  .admin-section-head,
  .admin-section-card-head,
  .admin-card-footer,
  .admin-subscriber-head {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-subscriber-meta {
    grid-template-columns: 1fr;
  }
  .admin-inline-btn,
  .admin-inline-link {
    width: 100%;
  }
  .admin-code-output {
    min-height: 420px;
  }
}

/* =========================================
   Article Page Design (Story Layout)
   ========================================= */
.story-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.story-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  margin-bottom: 48px;
}

.story-meta {
  margin-bottom: 24px;
}

.story-body p {
  line-height: 2.0;
  margin-bottom: 32px;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.story-section {
  margin-bottom: 64px;
}

.story-section h2 {
  font-size: 1.6rem;
  margin-top: 64px;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-gold);
}

.story-section ul {
  margin-bottom: 32px;
  padding-left: 24px;
}
.story-section ul li {
  line-height: 2.0;
  margin-bottom: 12px;
  position: relative;
  font-size: 1.05rem;
}
.story-section ul li::before {
  content: '・';
  position: absolute;
  left: -20px;
  color: var(--accent-gold);
}

.story-table-wrap {
  margin: 0 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.story-table {
  width: 100%;
  min-width: 480px;
  table-layout: fixed; /* 列幅を等分し、同一セクション内の複数表で列位置を揃える */
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.7;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
}
.story-table thead {
  background: var(--bg-panel, rgba(0,0,0,0.04));
}
.story-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  padding: 12px 16px;
  border-bottom: 2px solid var(--accent-gold);
  word-break: break-word;
}
.story-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  word-break: break-word;
}
.story-table tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 720px) {
  .story-table {
    font-size: 0.9rem;
    min-width: 360px;
  }
  .story-table th, .story-table td {
    padding: 10px 12px;
  }
}

.story-summary-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 64px;
  backdrop-filter: var(--ds-blur);
  -webkit-backdrop-filter: var(--ds-blur);
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.story-summary-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: var(--accent-gold);
}

.story-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.story-summary-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  border: none;
  padding: 0;
  color: var(--text-primary);
}

.story-summary-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-summary-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.story-next-panel {
  background: linear-gradient(135deg, rgba(31, 95, 168, 0.05) 0%, rgba(31, 95, 168, 0.01) 100%);
  border: 1px solid rgba(31, 95, 168, 0.2);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: block;
}

.story-next-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(31,95,168,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.story-next-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(31, 95, 168, 0.1);
  border-color: rgba(31, 95, 168, 0.4);
}

.story-next-panel:hover::after {
  opacity: 1;
}

.story-next-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
  font-weight: 600;
}

.story-next-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  font-family: 'Noto Serif JP', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.story-next-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
}
.story-next-panel:hover .story-next-title svg {
  transform: translateX(6px);
}

/* 連載の前後ナビ（内部リンク） */
.story-series-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  margin-bottom: 8px;
}

.story-series-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  border: 1px solid rgba(31, 95, 168, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(31, 95, 168, 0.05) 0%, rgba(31, 95, 168, 0.01) 100%);
  text-decoration: none;
  transition: all 0.3s ease;
}

.story-series-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(31, 95, 168, 0.1);
  border-color: rgba(31, 95, 168, 0.4);
}

.story-series-next {
  text-align: right;
}

.story-series-dir {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.story-series-name {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  font-family: 'Noto Serif JP', serif;
}

@media (max-width: 640px) {
  .story-series-nav {
    grid-template-columns: 1fr;
  }
  .story-series-next {
    text-align: left;
  }
  .story-series-empty {
    display: none;
  }
}

/* =========================================
   医科歯科会計事務所 — 追加コンポーネント
   ========================================= */

/* Primary CTA をアクセントブルーに */
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 95, 168, 0.25);
}
.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 10px 26px rgba(15, 61, 110, 0.28);
}
.btn-accent-soft {
  background: var(--accent-soft);
  color: #fff;
}
.btn-accent-soft:hover { background: #228f8c; transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-block { width: 100%; }

.text-accent { color: var(--accent); }
.section-sm { padding: 72px 0; }
section[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* リード文の中央寄せ補助 */
.lead-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ヒーロー直下の安心マイクロコピー / NAP */
.hero-nap {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.hero-nap strong { color: var(--accent); font-weight: 700; }

/* 強み・サービスカード（.glass-panel を内包して使用） */
.feature-card { height: 100%; display: flex; flex-direction: column; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); line-height: 1.85; flex: 1; }
.feature-num {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  color: var(--accent); font-size: 0.85rem; letter-spacing: 0.18em;
  display: block; margin-bottom: 10px;
}
a.feature-card-link { display: block; height: 100%; }
a.feature-card-link .glass-panel { height: 100%; }
.card-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 700; font-size: 0.92rem;
  margin-top: 18px;
}
a.feature-card-link:hover .card-more { gap: 10px; }

/* チェックリスト */
.check-list { display: grid; gap: 14px; margin: 24px 0; }
.check-list li {
  position: relative; padding-left: 34px;
  line-height: 1.85; color: var(--text-secondary);
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fa8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'/%3e%3c/svg%3e") center / 14px no-repeat;
}
.check-list li strong { color: var(--text-primary); }

/* 課題→解決 などの番号付きステップ */
.steps { display: grid; gap: 20px; counter-reset: step; margin-top: 32px; }
.step {
  position: relative; padding: 26px 26px 26px 76px;
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-secondary); line-height: 1.8; }

/* 代表プロフィール */
.profile-card { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.profile-photo {
  width: 220px; height: 260px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-tint), #dbe9f8);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-body h3 { font-size: 1.5rem; margin-bottom: 6px; }
.profile-role { color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.profile-body p { color: var(--text-secondary); line-height: 1.9; margin-bottom: 14px; }

/* 料金表 */
.pricing-table {
  width: 100%; border-collapse: collapse; margin-top: 32px;
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--ds-shadow-glass); border: 1px solid var(--border-subtle);
}
.pricing-table thead th {
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 18px 20px; text-align: left; font-size: 0.98rem;
}
.pricing-table td, .pricing-table th { padding: 18px 20px; vertical-align: top; }
.pricing-table tbody tr { border-top: 1px solid var(--border-subtle); }
.pricing-table tbody tr:nth-child(even) { background: var(--accent-tint); }
.pricing-table .plan-name { font-weight: 700; color: var(--text-primary); }
.pricing-table .plan-price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.pricing-table .plan-desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }
.pricing-note { color: var(--text-muted); font-size: 0.88rem; margin-top: 16px; line-height: 1.8; }

/* FAQ アコーディオン（ネイティブ details） */
.faq-list { display: grid; gap: 14px; margin-top: 32px; }
.faq-item {
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 24px;
  font-weight: 700; color: var(--text-primary); position: relative;
  line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q'; color: var(--accent); font-family: 'Outfit', sans-serif;
  font-weight: 700; margin-right: 12px;
}
.faq-item summary::after {
  content: ''; position: absolute; right: 24px; top: 24px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fa8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") center / contain no-repeat;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px 24px 48px; color: var(--text-secondary);
  line-height: 1.9;
}

/* フッター直前 CTA バンド */
.cta-band {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto 30px; line-height: 1.85; }
.cta-band .btn-primary { background: #fff; color: var(--accent-deep); }
.cta-band .btn-primary:hover { background: #eaf2fb; color: var(--accent-deep); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-tel { margin-top: 22px; font-size: 1.05rem; color: rgba(255,255,255,0.95); }
.cta-tel strong { font-size: 1.5rem; font-family: 'Outfit', sans-serif; letter-spacing: 0.04em; }

/* パンくず */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* フッター NAP */
.footer-nap { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.9; font-style: normal; }
.footer-nap strong { color: var(--text-primary); display: block; margin-bottom: 6px; font-size: 1rem; }

/* モバイル固定 CTA バー */
.mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 1200; background: #fff;
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -4px 18px rgba(15, 61, 110, 0.12);
  }
  .mobile-cta-bar a {
    flex: 1; text-align: center; padding: 14px 8px;
    font-weight: 700; font-size: 0.92rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .mobile-cta-bar .mc-tel { color: var(--accent); }
  .mobile-cta-bar .mc-form { background: var(--accent); color: #fff; }
  body { padding-bottom: 60px; }
}

/* レスポンシブ追補 */
@media (max-width: 768px) {
  .profile-card { grid-template-columns: 1fr; }
  .profile-photo { width: 100%; height: 220px; }
  .pricing-table, .pricing-table thead, .pricing-table tbody,
  .pricing-table th, .pricing-table td, .pricing-table tr { display: block; }
  .pricing-table thead { display: none; }
  .pricing-table tbody tr { border-top: none; border-bottom: 1px solid var(--border-subtle); padding: 8px 0; }
  .pricing-table tbody tr:nth-child(even) { background: transparent; }
  .pricing-table td { padding: 8px 16px; }
  .pricing-table td::before {
    content: attr(data-label); display: block;
    font-size: 0.78rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
  }
  .cta-actions { flex-direction: column; }
  .cta-band .btn { width: 100%; }
}

/* =========================================
   トップページ ヒーロー見出し
   どの画面幅でも意図した2行で表示し、日本語が
   途中で折れない／はみ出さないようにする
   ========================================= */
.hero .hero-h1 {
  font-size: clamp(1.35rem, 7vw, 4rem);
  line-height: 1.18;
}
.hero .hero-h1 span {
  display: block;
  white-space: nowrap;
}

/* =========================================
   モバイル ハンバーガーメニュー
   ========================================= */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  body.nav-locked { overflow: hidden; }

  .navbar .nav-links {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 14px 28px rgba(15, 61, 110, 0.12);
    padding: 8px 0;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .navbar.nav-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .navbar .nav-links .nav-link {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    text-transform: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .navbar .nav-links .nav-link::after { display: none; }
  .navbar .nav-links .nav-link:last-child { border-bottom: 0; }
  .navbar .nav-links .nav-cta {
    color: var(--accent);
    font-weight: 700;
  }
}

/* =========================================
   事務所概要などの定義リスト（項目／内容）
   ========================================= */
.office-info {
  display: grid;
  margin: 0;
}
.office-info > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.office-info > div:last-child { border-bottom: 0; }
.office-info dt {
  font-weight: 700;
  color: var(--text-primary);
}
.office-info dd {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.85;
}
@media (max-width: 768px) {
  .office-info > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 4px;
  }
}
