/* ==========================================================================
   医療ITサポートページ専用スタイル
   Style_MedicalIT.css
   ========================================================================== */

/* ==========================================================================
   横スクロール完全防止
   ========================================================================== */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   親要素のリセット - フルワイド対応
   ========================================================================== */
#page,
.site,
.site-content,
#content,
.content-area,
.inside-article,
article,
.entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* メインコンテンツのみ overflow を制御 */
.medical-it-page {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   モバイルメニュー修正
   ========================================================================== */
.main-navigation.toggled,
.main-navigation.toggled .main-nav,
.main-navigation.toggled ul,
#site-navigation.toggled,
#site-navigation.toggled .main-nav,
#site-navigation.toggled ul {
  overflow: visible !important;
}

.has-inline-mobile-toggle #site-navigation.toggled .main-nav > ul {
  max-height: none !important;
  overflow: visible !important;
}

/* ==========================================================================
   ヘッダー調整
   ========================================================================== */
.inside-header {
  padding: 20px 40px !important;
}

.site-header {
  position: relative;
  z-index: 100;
}

.med-hero {
  z-index: 1;
}

/* site-contentの下の余白を削除 */
.site-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* 記事コンテンツの下の余白を削除 */
.inside-article,
article,
.entry-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* GeneratePressのデフォルト余白を削除 */
#primary,
.content-area,
.inside-page,
.hentry,
.grid-container:not(.inside-header) {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* フッター上の余白を削除 */
.site-footer,
footer.footer,
.footer {
  margin-top: 0 !important;
}

/* ==========================================================================
   CSS変数定義
   ========================================================================== */
.medical-it-page {
  --med-primary: #1C5B99;
  --med-primary-light: #2A7BC8;
  --med-primary-dark: #134470;
  --med-cyan: #00B4D8;
  --med-teal: #0D9488;
  --med-mint: #6EE7B7;
  --med-green: #10B981;
  --med-bg-white: #FFFFFF;
  --med-bg-light: #F0F9FF;
  --med-bg-soft: #E0F2FE;
  --med-bg-mint: #ECFDF5;
  --med-text-dark: #1E293B;
  --med-text-body: #475569;
  --med-text-muted: #64748B;
  --med-text-light: #94A3B8;
  --med-border-light: #E2E8F0;
  --med-border-soft: #CBD5E1;
  --med-font-en: 'Outfit', sans-serif;
  --med-duration: 0.4s;
  --med-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* コンテナ - コンテンツを中央配置 */
.medical-it-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   SCROLL ANIMATIONS - スクロールアニメーション
   ========================================================================== */

/* 基本アニメーション状態（非表示） */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左からスライドイン */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 右からスライドイン */
.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* スケールイン */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* スタガーアニメーション用（子要素） */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-container.is-visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

/* スタガー遅延 */
.stagger-container.is-visible .stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-container.is-visible .stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-container.is-visible .stagger-item:nth-child(3) { transition-delay: 0.2s; }
.stagger-container.is-visible .stagger-item:nth-child(4) { transition-delay: 0.3s; }
.stagger-container.is-visible .stagger-item:nth-child(5) { transition-delay: 0.4s; }
.stagger-container.is-visible .stagger-item:nth-child(6) { transition-delay: 0.5s; }
.stagger-container.is-visible .stagger-item:nth-child(7) { transition-delay: 0.6s; }

/* カウントアップアニメーション用 */
.count-up {
  display: inline-block;
}

/* ライン伸びるアニメーション */
.line-grow {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-grow.is-visible {
  transform: scaleX(1);
}

/* カード出現アニメーション（ホバー時も連携） */
.card-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.card-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* セクションタイトルのアンダーラインアニメーション */
.title-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--med-cyan), var(--med-green));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-underline.is-visible::after {
  width: 80px;
}

/* パルスアニメーション（CTA等） */
.pulse-on-visible {
  animation: none;
}

.pulse-on-visible.is-visible {
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { 
    box-shadow: 0 8px 24px rgba(28, 91, 153, 0.25);
  }
  50% { 
    box-shadow: 0 8px 40px rgba(28, 91, 153, 0.4);
  }
}

/* 回転しながら出現 */
.rotate-in {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotate-in.is-visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* プログレスバー */
.progress-bar {
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar.is-visible {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.med-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--med-bg-light) 0%, var(--med-bg-white) 50%, var(--med-bg-mint) 100%);
  overflow: hidden;
  width: 100%;
}

.med-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.med-hero__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(28, 91, 153, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 91, 153, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ビジュアル - SVG線画 */
.med-hero__visual {
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 580px;
  height: 580px;
  z-index: 1;
}

.med-hero__visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* SVG線のスタイル */
.med-hero__visual .line-main {
  fill: none;
  stroke: var(--med-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.med-hero__visual .line-accent {
  fill: none;
  stroke: var(--med-cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.med-hero__visual .line-light {
  fill: none;
  stroke: var(--med-primary);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.3;
}

.med-hero__visual .line-dashed {
  fill: none;
  stroke: var(--med-cyan);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.5;
}

.med-hero__visual .node {
  fill: var(--med-bg-white);
  stroke: var(--med-primary);
  stroke-width: 1.5;
}

.med-hero__visual .node-accent {
  fill: var(--med-cyan);
  stroke: none;
}

.med-hero__visual .node-hollow {
  fill: none;
  stroke: var(--med-cyan);
  stroke-width: 1.5;
}

.med-hero__visual .pulse-dot {
  fill: var(--med-cyan);
  animation: medPulseDot 3s ease-in-out infinite;
}

@keyframes medPulseDot {
  0%, 100% { opacity: 0.4; r: 3; }
  50% { opacity: 1; r: 5; }
}

.med-hero__visual .dna-strand {
  animation: medDnaRotate 30s linear infinite;
  transform-origin: center;
}

@keyframes medDnaRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* メインコンテンツ */
.med-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.med-hero__text {
  max-width: 580px;
}

/* バッジ */
.med-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--med-bg-white);
  border: 1px solid var(--med-border-light);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.med-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--med-green);
  border-radius: 50%;
  animation: medPulse 2s ease-in-out infinite;
}

@keyframes medPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.med-hero__badge-text {
  font-family: var(--med-font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--med-primary);
  letter-spacing: 0.08em;
}

/* タイトル */
.med-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--med-text-dark);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  text-align: left;
}

.med-hero__title .highlight {
  position: relative;
  display: inline-block;
  color: var(--med-primary);
}

.med-hero__title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, rgba(0, 180, 216, 0.2), rgba(16, 185, 129, 0.2));
  border-radius: 4px;
  z-index: -1;
}

.med-hero__subtitle {
  font-size: 1rem;
  color: var(--med-text-body);
  line-height: 2;
  margin-bottom: 2rem;
  text-align: left;
}

/* タグ */
.med-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.med-hero__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--med-bg-white);
  border: 1px solid var(--med-border-light);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all var(--med-duration) var(--med-ease);
}

.med-hero__tag:hover {
  border-color: var(--med-cyan);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.12);
  transform: translateY(-2px);
}

.med-hero__tag-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--med-bg-soft), var(--med-bg-mint));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.med-hero__tag-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--med-primary);
  fill: none;
}

.med-hero__tag span {
  font-size: 14px;
  font-weight: 600;
  color: var(--med-text-dark);
}

/* CTA */
.med-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ボタン */
.med-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--med-duration) var(--med-ease);
  cursor: pointer;
  border: none;
}

.med-btn--primary {
  background: linear-gradient(135deg, var(--med-primary), var(--med-primary-light));
  color: white;
  box-shadow: 0 8px 24px rgba(28, 91, 153, 0.25);
}

.med-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28, 91, 153, 0.35);
  color: white;
}

.med-btn--outline {
  background: var(--med-bg-white);
  border: 2px solid var(--med-border-light);
  color: var(--med-text-dark);
}

.med-btn--outline:hover {
  border-color: var(--med-primary);
  color: var(--med-primary);
}

.med-btn .arrow {
  transition: transform var(--med-duration) var(--med-ease);
}

.med-btn:hover .arrow {
  transform: translateX(4px);
}

/* スクロールインジケーター */
.med-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.med-hero__scroll span {
  font-family: var(--med-font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--med-text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.med-hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--med-primary), transparent);
  animation: medScrollBounce 2s ease-in-out infinite;
}

@keyframes medScrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ==========================================================================
   共通セクションヘッダー
   ========================================================================== */
.med-section-header {
  text-align: left;
  margin-bottom: 3rem;
}

.med-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--med-font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--med-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.med-section-tag::after {
  content: '';
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--med-cyan), transparent);
  border-radius: 1px;
}

/* セクションタグのラインアニメーション */
.med-section-tag::after {
  width: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.med-section-header.is-visible .med-section-tag::after {
  width: 40px;
}

.med-section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--med-text-dark);
  line-height: 1.3;
  text-align: left;
}

/* ==========================================================================
   PROBLEMS SECTION
   ========================================================================== */
.med-problems {
  position: relative;
  padding: 100px 0;
  background: var(--med-bg-white);
  width: 100%;
}

.med-problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.med-problems__card {
  position: relative;
  background: var(--med-bg-white);
  border: 1px solid var(--med-border-light);
  border-radius: 20px;
  padding: 28px;
  transition: all var(--med-duration) var(--med-ease);
  overflow: hidden;
}

.med-problems__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--med-cyan), var(--med-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med-duration) var(--med-ease);
}

.med-problems__card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 20px 50px rgba(0, 180, 216, 0.1);
  transform: translateY(-6px);
}

.med-problems__card:hover::before {
  transform: scaleX(1);
}

/* カード出現時のトップラインアニメーション */
.med-problems__card.is-visible::before {
  transform: scaleX(1);
  transition-delay: 0.4s;
}

.med-problems__card.is-visible:hover::before {
  transition-delay: 0s;
}

.med-problems__number {
  font-family: var(--med-font-en);
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--med-cyan), var(--med-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.med-problems__card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--med-text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: left;
}

.med-problems__card p {
  font-size: 14px;
  color: var(--med-text-muted);
  line-height: 1.8;
  text-align: left;
}

/* ==========================================================================
   WARNING SECTION - 実際の被害事例
   ========================================================================== */
.med-warning {
  position: relative;
  padding: 0;
  width: 100%;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  overflow: hidden;
}

.med-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.med-warning__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}

.med-warning__content {
  text-align: center;
}

.med-warning__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.35);
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.35); }
  50% { box-shadow: 0 0 70px rgba(239, 68, 68, 0.5); }
}

.med-warning__icon svg {
  width: 36px;
  height: 36px;
  stroke: white;
}

.med-warning__label {
  display: block;
  font-family: var(--med-font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #EF4444;
  margin-bottom: 0.5rem;
}

.med-warning__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.med-warning__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.9;
  margin-bottom: 3rem;
}

/* 事例カード */
.med-warning__cases {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 3rem;
}

.med-warning__case {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  transition: all 0.4s ease;
}

.med-warning__case:hover {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.med-warning__case-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(239, 68, 68, 0.08);
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.med-warning__case-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #EF4444;
  border-radius: 6px;
  font-family: var(--med-font-en);
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.med-warning__case-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.med-warning__case-body {
  padding: 24px;
}

.med-warning__case-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 20px;
}

.med-warning__case-desc strong {
  color: #EF4444;
  font-weight: 700;
}

.med-warning__case-damage {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.med-warning__case-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.med-warning__case-number {
  font-family: var(--med-font-en);
  font-size: 24px;
  font-weight: 800;
  color: #EF4444;
}

.med-warning__case-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.med-warning__case-source {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* 統計 */
.med-warning__stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  padding: 36px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 2.5rem;
}

.med-warning__stat {
  text-align: center;
  flex: 1;
}

.med-warning__stat-number {
  display: block;
  font-family: var(--med-font-en);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 8px;
}

.med-warning__stat-text {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 8px;
}

.med-warning__stat-source {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.med-warning__stat-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* アラートボックス */
.med-warning__alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  margin-bottom: 2.5rem;
  text-align: left;
}

.med-warning__alert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.med-warning__alert-icon svg {
  width: 20px;
  height: 20px;
  stroke: #EF4444;
  fill: none;
}

.med-warning__alert-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin: 0;
}

.med-warning__alert-text p:first-child {
  margin-bottom: 6px;
}

.med-warning__alert-text strong {
  color: #FFFFFF;
  font-weight: 700;
}

.med-warning__message {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.med-warning__message strong {
  color: #FFFFFF;
  font-weight: 700;
}

.sp-only {
  display: none;
}

/* ==========================================================================
   SOLUTIONS SECTION
   ========================================================================== */
.med-solutions {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--med-bg-light), var(--med-bg-white));
  width: 100%;
}

.med-solutions__intro {
  max-width: 800px;
  margin: 0 0 3rem;
  text-align: left;
}

.med-solutions__intro p {
  font-size: 1rem;
  color: var(--med-text-body);
  line-height: 2;
}

.med-solutions__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.med-solutions__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: var(--med-bg-white);
  border: 1px solid var(--med-border-light);
  border-radius: 18px;
  transition: all var(--med-duration) var(--med-ease);
}

.med-solutions__item:hover {
  border-color: var(--med-cyan);
  box-shadow: 0 16px 48px rgba(0, 180, 216, 0.1);
  transform: translateX(8px);
}

.med-solutions__number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--med-bg-soft), var(--med-bg-mint));
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--med-font-en);
  font-size: 24px;
  font-weight: 900;
  color: var(--med-primary);
  transition: all var(--med-duration) var(--med-ease);
}

.med-solutions__item:hover .med-solutions__number {
  background: linear-gradient(135deg, var(--med-primary), var(--med-primary-light));
  color: white;
  border-color: transparent;
}

.med-solutions__content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--med-text-dark);
  margin-bottom: 4px;
  text-align: left;
  margin-top: 0;
}

.med-solutions__content p {
  font-size: 14px;
  color: var(--med-text-muted);
  line-height: 1.7;
  text-align: left;
  margin-top: 16px;
}

/* ==========================================================================
   ISMS SECTION
   ========================================================================== */
.med-isms {
  position: relative;
  padding: 70px 0;
  background: linear-gradient(135deg, var(--med-bg-soft), var(--med-bg-mint));
  width: 100%;
}

.med-isms__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.med-isms__text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--med-text-dark);
  margin-bottom: 12px;
  text-align: left;
}

.med-isms__text h2 span {
  display: block;
  font-family: var(--med-font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--med-cyan);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.med-isms__text p {
  font-size: 14px;
  color: var(--med-text-body);
  line-height: 1.9;
  max-width: 600px;
  text-align: left;
}

.med-isms__badge {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: var(--med-bg-white);
  border: 2px solid rgba(0, 180, 216, 0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0, 180, 216, 0.1);
}

.med-isms__badge-icon {
  width: 44px;
  height: 44px;
}

.med-isms__badge-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--med-primary);
  fill: none;
}

.med-isms__badge span {
  font-family: var(--med-font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--med-primary);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   SUPPORT SECTION
   ========================================================================== */
.med-support {
  position: relative;
  padding: 100px 0;
  background: var(--med-bg-white);
  width: 100%;
}

.med-support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.med-support__card {
  position: relative;
  padding: 32px 24px;
  background: var(--med-bg-white);
  border: 1px solid var(--med-border-light);
  border-radius: 18px;
  text-align: left;
  transition: all var(--med-duration) var(--med-ease);
}

.med-support__card:hover {
  border-color: var(--med-cyan);
  box-shadow: 0 16px 48px rgba(0, 180, 216, 0.1);
  transform: translateY(-6px);
}

.med-support__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--med-bg-soft), var(--med-bg-mint));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--med-duration) var(--med-ease);
}


.med-support__card:hover .med-support__icon {
  background: linear-gradient(135deg, var(--med-primary), var(--med-primary-light));
}

.med-support__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--med-primary);
  fill: none;
  transition: stroke var(--med-duration);
}

.med-support__card:hover .med-support__icon svg {
  stroke: white;
}

.med-support__card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--med-text-dark);
  margin-bottom: 8px;
  text-align: left;
}

.med-support__card p {
  font-size: 14px;
  color: var(--med-text-muted);
  line-height: 1.8;
  text-align: left;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.med-faq {
  position: relative;
  padding: 100px 0;
  background: var(--med-bg-light);
  width: 100%;
}

.med-faq__list {
  max-width: 100%;
  margin: 0 auto;
}

.med-faq__item {
  background: var(--med-bg-white);
  border: 1px solid var(--med-border-light);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all var(--med-duration) var(--med-ease);
}

.med-faq__item:hover {
  border-color: rgba(0, 180, 216, 0.3);
}

.med-faq__item.active {
  border-color: var(--med-cyan);
  box-shadow: 0 8px 32px rgba(0, 180, 216, 0.1);
}

.med-faq__question {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 24px;
  background: var(--med-bg-white);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--med-duration) var(--med-ease);
}

.med-faq__question:hover {
  background: var(--med-bg-light);
}

.med-faq__question:focus {
  outline: none;
  background: var(--med-bg-light);
}

.med-faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--med-primary), var(--med-primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--med-font-en);
  font-size: 13px;
  font-weight: 800;
  color: white;
}

.med-faq__question h3 {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--med-text-dark);
  margin: 0;
  text-align: left;
}

.med-faq__toggle {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.med-faq__toggle::before,
.med-faq__toggle::after {
  content: '';
  position: absolute;
  background: var(--med-primary);
  border-radius: 2px;
  transition: all var(--med-duration) var(--med-ease);
}

.med-faq__toggle::before {
  top: 50%;
  left: 5px;
  right: 5px;
  height: 2px;
  transform: translateY(-50%);
}

.med-faq__toggle::after {
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 2px;
  transform: translateX(-50%);
}

.med-faq__item.active .med-faq__toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.med-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.med-faq__item.active .med-faq__answer {
  max-height: 500px;
}

.med-faq__answer-inner {
  padding: 0 24px 20px 70px;
}

.med-faq__answer p {
  font-size: 14px;
  color: var(--med-text-body);
  line-height: 1.9;
  margin: 0;
  text-align: left;
  margin-top: 16px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.med-cta {
  position: relative;
  padding: 100px 0;
  background: var(--med-bg-white);
  text-align: center;
  width: 100%;
}

.med-cta__inner {
  max-width: 900px;
  margin: 0 auto;
}

.med-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--med-text-dark);
  margin-bottom: 12px;
}

.med-cta__inner > p {
  font-size: 16px;
  color: var(--med-text-muted);
  margin-bottom: 40px;
}

.med-cta__box {
  background: linear-gradient(135deg, var(--med-bg-soft), var(--med-bg-mint));
  border: 1px solid var(--med-border-light);
  border-radius: 24px;
  padding: 40px;
}

.med-cta__contact {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.med-cta__phone {
  text-align: center;
}

.med-cta__phone-label {
  font-size: 13px;
  color: var(--med-text-muted);
  margin-bottom: 10px;
}

.med-cta__phone-number {
  display: block;
  font-family: var(--med-font-en);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--med-primary);
  text-decoration: none;
  transition: color var(--med-duration);
}

.med-cta__phone-number:hover {
  color: var(--med-primary-light);
}

.med-cta__phone-time {
  font-size: 13px;
  color: var(--med-text-muted);
  margin-top: 6px;
}

.med-cta__divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--med-border-soft), transparent);
}

.med-cta__form {
  text-align: center;
}

.med-cta__form p {
  font-size: 13px;
  color: var(--med-text-muted);
  margin-bottom: 14px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .med-hero__visual {
    width: 480px;
    height: 480px;
    right: 2%;
  }
}

@media (max-width: 1024px) {
  .med-hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  
  .med-hero__content {
    padding: 0 40px;
  }
  
  .med-hero__visual {
    display: none;
  }
  
  .med-hero__text {
    max-width: 100%;
  }
  
  .med-warning__stats {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .med-warning__stat-divider {
    display: none;
  }
  
  .med-problems__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .med-solutions__item {
    grid-template-columns: 56px 1fr;
    padding: 24px;
    gap: 20px;
  }
  
  .med-solutions__number {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  
  .med-support__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .med-isms__content {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
  
  .med-isms__badge {
    order: -1;
    flex-shrink: 0;
  }
  
  .med-isms__text {
    flex: 1;
    text-align: left;
  }
  
  .med-hero__scroll {
    display: none;
  }
}

@media (max-width: 768px) {
  .med-hero {
    padding: 100px 0 60px;
  }
  
  .med-hero__content {
    padding: 0 20px;
  }
  
  .med-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  
  .med-hero__subtitle {
    font-size: 0.95rem;
  }
  
  .med-warning__inner {
    padding: 70px 20px;
  }
  
  .med-warning__icon {
    width: 60px;
    height: 60px;
  }
  
  .med-warning__icon svg {
    width: 28px;
    height: 28px;
  }
  
  .med-warning__title {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 1rem;
  }
  
  .med-warning__lead {
    font-size: 14px;
    margin-bottom: 2rem;
  }
  
  .med-warning__case-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
  }
  
  .med-warning__case-header h3 {
    font-size: 16px;
  }
  
  .med-warning__case-body {
    padding: 20px;
  }
  
  .med-warning__case-desc {
    font-size: 14px;
  }
  
  .med-warning__case-damage {
    gap: 20px;
  }
  
  .med-warning__case-number {
    font-size: 20px;
  }
  
  .med-warning__stats {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }
  
  .med-warning__stat-number {
    font-size: 32px;
  }
  
  .med-warning__stat-divider {
    width: 100%;
    height: 1px;
  }
  
  .med-warning__alert {
    flex-direction: column;
    padding: 20px;
  }
  
  .med-warning__alert-text p {
    font-size: 13px;
  }
  
  .med-warning__message {
    font-size: 15px;
  }
  
  .sp-only {
    display: inline;
  }
  
  .med-hero__tags {
    gap: 10px;
  }
  
  .med-hero__tag {
    padding: 10px 14px;
  }
  
  .med-hero__tag-icon {
    width: 32px;
    height: 32px;
  }
  
  .med-hero__tag-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .med-hero__tag span {
    font-size: 13px;
  }
  
  .med-btn {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  
  .med-hero__cta {
    flex-direction: column;
    gap: 12px;
  }
  
  .med-problems,
  .med-solutions,
  .med-support,
  .med-faq,
  .med-cta {
    padding: 70px 0;
  }
  
  .med-section-title {
    font-size: clamp(24px, 6vw, 32px);
  }
  
  .med-problems__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .med-problems__card {
    padding: 24px;
  }
  
  .med-problems__number {
    font-size: 36px;
  }
  
  .med-solutions__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 20px;
  }
  
  .med-solutions__number {
    width: 44px;
    height: 44px;
    font-size: 16px;
    grid-row: 1;
    grid-column: 1;
  }
  
  .med-solutions__content {
    display: contents;
  }
  
  .med-solutions__content h3 {
    font-size: 15px;
    margin-bottom: 0;
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }
  
  .med-solutions__content p {
    font-size: 13px;
    grid-row: 2;
    grid-column: 1 / -1;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--med-border-light);
  }
  
  .med-support__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .med-support__card {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 14px;
    padding: 20px;
  }
  
  .med-support__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    grid-row: 1;
    grid-column: 1;
  }
  
  .med-support__card h3 {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin-bottom: 0;
    font-size: 15px;
    margin-top: 0;
  }
  
  .med-support__card p {
    grid-row: 2;
    grid-column: 1 / -1;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--med-border-light);
  }
  
  .med-isms {
    padding: 50px 0;
  }
  
  .med-isms__content {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
  
  .med-isms__badge {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    order: -1;
  }
  
  .med-isms__badge-icon {
    width: 32px;
    height: 32px;
  }
  
  .med-isms__badge span {
    font-size: 10px;
  }
  
  .med-isms__text {
    flex: 1;
  }
  
  .med-isms__text h2 {
    font-size: 20px;
  }
  
  .med-isms__text p {
    font-size: 13px;
  }
  
  .med-faq__question {
    padding: 18px 20px;
    gap: 12px;
  }
  
  .med-faq__icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .med-faq__question h3 {
    font-size: 14px;
  }
  
  .med-faq__answer-inner {
    padding: 0 20px 18px 60px;
  }
  
  .med-faq__answer p {
    font-size: 13px;
  }
  
  .med-cta__contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .med-cta__divider {
    width: 100%;
    height: 1px;
  }
  
  .med-cta__box {
    padding: 30px 24px;
  }
  
  .med-cta__phone-number {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .med-hero {
    padding: 90px 0 50px;
  }
  
  .med-hero__content {
    padding: 0 16px;
  }
  
  .med-hero__badge {
    padding: 8px 16px;
    margin-bottom: 1.25rem;
  }
  
  .med-hero__badge-text {
    font-size: 11px;
  }
  
  .med-hero__title {
    font-size: 1.7rem;
    margin-bottom: 1.25rem;
  }
  
  .med-hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
  }
  
  .med-hero__tags {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
  }
  
  .med-hero__tag {
    width: 100%;
  }
  
  .med-section-header {
    margin-bottom: 2rem;
  }
  
  .med-problems,
  .med-solutions,
  .med-support,
  .med-faq,
  .med-cta {
    padding: 60px 0;
  }
  
  .med-solutions__intro {
    margin-bottom: 2rem;
  }
  
  .med-solutions__item {
    padding: 18px;
  }
  
  .med-faq__item {
    margin-bottom: 10px;
  }
  
  .med-cta h2 {
    font-size: 24px;
  }
  
  .med-cta__box {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   prefers-reduced-motion対応（アクセシビリティ）
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .slide-left,
  .slide-right,
  .scale-in,
  .stagger-item,
  .card-reveal,
  .line-grow,
  .rotate-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  .med-hero__visual .dna-strand {
    animation: none;
  }
  
  .med-hero__visual .pulse-dot {
    animation: none;
  }
  
  .med-hero__badge-dot {
    animation: none;
  }
  
  .med-warning__icon {
    animation: none;
  }
  
  .med-hero__scroll-line {
    animation: none;
  }
}