:root {
  /* Neve基調カラー */
  --bg-main: #f8fafc;         /* 全体背景（白系） */
  --bg-card: #ffffff;        /* カード背景 */
  --text-main: #1e293b;      /* 基本文字色（濃いネイビーグレー） */
  --text-sub: #324969;       /* 補助文字色 */
  --text-muted: #94a3b8;     /* 注釈・非アクティブ */
  --border-light: #e2e8f0;   /* 薄い罫線 */

  --accent-main: #2a76ef;    /* Neveブルー */
  --accent-main-soft: #eaf2ff;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --accent-yellow: #eab308;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --accent-dark: #64748b;

  --dimmed: 0.08;
}

/* ---------------- 全体 ---------------- */
body, .custom-clinic-page {
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* ---------------- ヒーロー --------------- */
.hero {
  position: relative;
  min-height: 500px;
  padding: 80px 20px 60px;
  
  display: flex;
  
  align-items: center;
  
  justify-content: center;
  text-align: center;
  color: white;

  background: linear-gradient(135deg, 
    var(--accent-blue) 0%, 
    #2a76ef 30%,
    #1e40af 70%, 
    #1e3a8a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

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

.hero .lightbulb {
  font-size: 7rem;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 25px rgba(255, 240, 150, 0.9));
  animation: gentle-pulse 5s ease-in-out infinite;
}
@keyframes gentle-pulse {
  0%, 100% {
    
    transform: scale(1);
    opacity: 1;
  }
  50% {
    
    transform: scale(1.08);
    opacity: 0.92;
  }
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.typing-dots {
  display: inline-block;
  letter-spacing: 2px;
  
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0%, 20%   { content: '.'; }
  40%       { content: '..'; }
  60%       { content: '...'; }
  80%, 100% { content: ''; }
}

/* メディアクエリ */
@media (max-width: 640px) {
  .hero {
    min-height: 400px;
    padding: 60px 20px 40px;
  }
  .hero .lightbulb {
    font-size: 5.5rem;
    margin-bottom: 2rem;
  }
  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}

/* WordPressの絵文字SVGを大きくする強制上書き */
.hero .lightbulb img.emoji,
.hero .lightbulb img.wp-smiley {
  width: 7rem !important;
  height: 7rem !important;
  margin: 0 auto 2.5rem auto !important;
  display: block !important;
  vertical-align: middle !important;
  filter: drop-shadow(0 0 25px rgba(255, 240, 150, 0.9)) !important;
  
}

/* アニメーションもimgに適用 */
.hero .lightbulb img.emoji,
.hero .lightbulb img.wp-smiley {
  
  animation: gentle-pulse 5s ease-in-out infinite !important;
}

/* スマホ対応 */
@media (max-width: 640px) {
  .hero .lightbulb img.emoji,
  .hero .lightbulb img.wp-smiley {
    width: 5.5rem !important;
    height: 5.5rem !important;
    margin-bottom: 2rem !important;
  }
}

/* ---------------- コンテナ ---------------- */
.entry-content .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
  overflow: visible;
}

/* ---------------- 問題アコーディオン ---------------- */
.prob-wrap {
  padding: 36px 22px;
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.prob-title {
  font-size: 24px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 6px;
  color: var(--text-main);
}

.prob-sub {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.accordion .acc-item {
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #f9fbff;
}

.acc-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-size: 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
}

.acc-btn::after {
  content: '＋';
  float: right;
  font-size: 20px;
  color: var(--text-muted);
}

.acc-btn.active::after {
  content: '－';
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  
  transition: max-height .3s ease;
  background: var(--bg-card);
}

.acc-content ul {
  margin: 0;
  padding: 10px 24px 18px;
}

.acc-content li {
  margin: 6px 0;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ---------------- メトロマップ ---------------- */
.metro-wrap {
  margin-top: 24px;
  overflow: visible;
}

.metro-title {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.metro-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.metro-map {
  position: relative;
  width: 100%;
  
  display: flex;
  
  flex-direction: column;
  gap: 12px;
  padding-bottom: 10px;
}

.metro-line-container {
  
  display: flex;
  
  align-items: center;
  padding: 10px 8px;
  border-radius: 8px;
  
  transition: opacity .3s ease, transform .2s ease;
  background: #f1f5f9;
}

.metro-map.filtering .metro-line-container {
  opacity: var(--dimmed);
  filter: grayscale(85%);
  
}

.metro-map.filtering .metro-line-container.highlight {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.012);
  background: var(--accent-main-soft);
}

.line-label-box {
  width: 260px;
  text-align: left;
  font-size: 0.86em;
  color: var(--text-sub);
  line-height: 1.35;
  padding-left: 10px;
}

.line-label-title {
  font-weight: 800;
  font-size: 1.02em;
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.line-label-sub {
  font-size: 0.80em;
  color: var(--text-muted);
}

.line-track {
  height: 10px;
  
  flex-grow: 1;
  border-radius: 6px;
  position: relative;
  
  display: flex;
  
  align-items: center;
  
  justify-content: space-between;
  padding: 0 28px;
  margin-left: 16px;
}

.station {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 4px solid var(--border-light);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.station-name {
  position: absolute;
  top: 28px;
  left: 50%;
  
  transform: translateX(-50%);
  font-size: 0.74em;
  color: var(--text-muted);
  
  transition: color 0.25s;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: center;
  inline-size: 120px;
  line-height: 1.3;
}

.metro-line-container.highlight .station-name {
  color: var(--text-main);
  font-weight: 700;
}

/* 路線カラー */
.line-red    .line-track { background: var(--accent-red); }
.line-red    .station    { border-color: var(--accent-red); }
.line-blue   .line-track { background: var(--accent-blue); }
.line-blue   .station    { border-color: var(--accent-blue); }
.line-green  .line-track { background: var(--accent-green); }
.line-green  .station    { border-color: var(--accent-green); }
.line-yellow .line-track { background: var(--accent-yellow); }
.line-yellow .station    { border-color: var(--accent-yellow); }
.line-purple .line-track { background: var(--accent-purple); }
.line-purple .station    { border-color: var(--accent-purple); }
.line-orange .line-track { background: var(--accent-orange); }
.line-orange .station    { border-color: var(--accent-orange); }
.line-dark   .line-track { background: var(--accent-dark); }
.line-dark   .station    { border-color: var(--accent-dark); }

@media (max-width: 900px) {
  .line-track {
    
    flex-direction: row;
    height: 10px;
    width: auto;
    margin-left: 16px;
    padding: 0 28px;
    
    align-items: center;
    
    justify-content: space-between;
  }
  .station { margin: 0; }
  .station-name {
    top: 28px;
    left: 50%;
    
    transform: translateX(-50%);
    text-align: center;
  }
  .line-label-box { width: 220px; margin-bottom: 0; }
}

/* ---------------- コース＆処方箋 ---------------- */
.clinic-wrapper {
  
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 30px;
  
  flex-direction: row;
  
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .clinic-wrapper {
    
    flex-direction: column;
  }
}

.symptom-area {
  
  flex: 1;
}

.symptom-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--text-main);
  text-align: left;
}

.bubble-container {
  
  display: flex;
  
  flex-direction: column;
  gap: 10px;
}

.bubble {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95em;
  color: var(--text-sub);
  
  transition: all 0.2s;
  
  -moz-user-select: none;
  user-select: none;
}

.bubble:hover {
  border-color: var(--accent-main);
  color: var(--accent-main);
  
  transform: translateX(3px);
}

.bubble.active {
  background: var(--accent-main);
  color: #ffffff;
  border-color: var(--accent-main);
  box-shadow: 0 4px 10px rgba(42, 118, 239, 0.25);
}

.prescription-area {
  
  flex: 1;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  min-height: 400px;
  
  display: flex;
  
  flex-direction: column;
  
  align-items: flex-start;
  
  justify-content: flex-start;
  text-align: left;
  border: 4px solid var(--border-light);
  position: relative;
}

.prescription-area::before {
  content: '処方箋';
  position: absolute;
  top: -15px;
  left: 50%;
  
  transform: translateX(-50%);
  background: var(--accent-main);
  color: #ffffff;
  padding: 5px 20px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 10;
}

.result-content {
  
  animation: fadeIn 0.25s ease;
  text-align: left;
  width: 100%;
}

.result-header {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.result-course {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--accent-main);
  margin-bottom: 15px;
  padding: 10px;
  background: var(--accent-main-soft);
  border-radius: 8px;
  border-left: 4px solid var(--accent-main);
}

.result-desc {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.result-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
  background: var(--accent-main-soft);
  color: var(--accent-main);
}

.result-empty {
  color: var(--text-muted);
  font-size: 0.9em;
  text-align: center;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    
    transform: translateY(0);
  }
}

.metro-map.concentration .metro-line-container {
  display: none;
}

.metro-map.concentration .metro-line-container.highlight {
  
  display: flex;
}

.back-btn {
  margin: 12px auto;
  display: block;
  padding: 8px 16px;
  border-radius: 6px;
  background: #334155;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.back-btn:hover {
  background: #475569;
}

/* ========================================
   商品カード関連スタイル（ここから追加）
   ======================================== */

/* 処方箋セクション */
.prescription-section {
  width: 100%;
  padding: 25px;
  background: #edf2f7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.prescription-title {
  color: #667eea;
  font-size: 1.3em;
  margin-bottom: 20px;
  font-weight: bold;
}

/* 商品カード */
.product-card {
  background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  
  transition: all 0.3s ease;
}

.product-card:hover {
  
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.product-tag {
  background: #fed7d7;
  color: #c53030;
  padding: 5px 15px;
  border-radius: 15px;
  display: inline-block;
  font-size: 0.85em;
  margin-bottom: 10px;
  font-weight: bold;
}

.product-title {
  font-size: 1.4em;
  color: #2d3748;
  margin: 10px 0;
  font-weight: bold;
  line-height: 1.4;
}

.product-summary {
  color: #4a5568;
  margin: 15px 0;
  line-height: 1.6;
}

.product-reason {
  background: #fffaf0;
  border-left: 4px solid #ed8936;
  padding: 15px;
  margin: 15px 0;
  font-size: 0.95em;
  border-radius: 4px;
}

.product-reason strong {
  color: #c05621;
  display: block;
  margin-bottom: 8px;
}

.product-meta {
  
  display: flex;
  gap: 15px;
  margin: 15px 0;
  font-size: 0.9em;
  
  flex-wrap: wrap;
}

.product-category {
  background: #e6fffa;
  color: #2c7a7b;
  padding: 5px 12px;
  border-radius: 15px;
  font-weight: 500;
}

.product-price {
  background: #fed7d7;
  color: #c53030;
  padding: 5px 12px;
  border-radius: 15px;
  font-weight: bold;
}

/* ボタングループ */
.button-group {
  
  display: flex;
  gap: 10px;
  margin-top: 20px;
  
  flex-wrap: wrap;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #f7fafc;
  text-decoration: none;
  color: #667eea;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9em;
}

/* 商品一覧セクション */
.product-list-section {
  width: 100%;
  padding: 25px;
  background: #f7fafc;
  border-radius: 12px;
  margin-bottom: 20px;
}

.product-list-title {
  color: #2d3748;
  font-size: 1.3em;
  margin-bottom: 20px;
  font-weight: bold;
}

.list-category {
  margin: 25px 0;
}

.category-title {
  font-size: 1.2em;
  color: #2d3748;
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 4px solid #48bb78;
  font-weight: bold;
}

.product-mini-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  
  display: flex;
  
  align-items: center;
  
  transition: all 0.3s ease;
  gap: 15px;
}

.product-mini-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  
  transform: translateY(-2px);
}

.product-mini-icon {
  font-size: 2em;
  
  flex-shrink: 0;
}

.product-mini-content {
  
  flex: 1;
  min-width: 0;
}

.product-mini-title {
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 5px;
  font-size: 1.05em;
}

.product-mini-desc {
  font-size: 0.9em;
  color: #718096;
  line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .prescription-section,
  .product-list-section {
    padding: 20px;
  }
  
  .prescription-title,
  .product-list-title {
    font-size: 1.1em;
  }
  
  .product-card {
    padding: 20px;
  }
  
  .product-title {
    font-size: 1.2em;
  }
  
  .button-group {
    
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .product-meta {
    
    flex-direction: column;
    gap: 8px;
  }
  
  .product-mini-card {
    
    flex-direction: column;
    
    align-items: flex-start;
  }
  
  .product-mini-icon {
    font-size: 1.5em;
  }
  
  .btn-small {
    width: 100%;
  }
}

/* ---------------- 講師プロフィール ---------------- */
.profile-section {
  padding: 40px 20px 60px;
  margin-top: 50px;
  background: #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.profile-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-light);
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--accent-main);
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 0 15px rgba(42, 118, 239, 0.25);
}

.profile-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 5px;
}

.profile-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.profile-header h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.profile-intro {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.trust-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(280px, 1fr))[auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.trust-point {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  
  transition: transform 0.3s;
  box-shadow: 0 8px 15px rgba(15, 23, 42, 0.08);
  border-left: 5px solid var(--accent-main);
}

.trust-point:hover {
  
  transform: translateY(-5px);
}

.trust-icon {
  font-size: 24px;
  color: var(--text-muted);
  margin-right: 10px;
}

.trust-point h3 {
  font-size: 17px;
  font-weight: bold;
  color: var(--text-main);
  
  display: flex;
  
  align-items: center;
  margin-top: 0;
  margin-bottom: 8px;
}

.trust-point span.period {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 5px;
}

.trust-point p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--text-sub);
}

.trust-point strong {
  color: var(--accent-red);
  font-weight: 700;
}

.catchphrase-box {
  background: var(--accent-main);
  color: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 40px;
  box-shadow: 0 5px 20px rgba(42, 118, 239, 0.25);
}

@media (max-width: 600px) {
  .trust-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}

/* ---------------- フッター ---------------- */
.footer {
  background-color: #f1f5f9;
  color: var(--text-muted);
  padding: 32px;
  text-align: center;
}