@charset "utf-8";

/* --- 1. 基本レイアウト：京都の%比率を強制適用 --- */

@media (min-width: 769px) {
  /* 左コンテンツ：京都の 65.7% を再現 */
  .m3-hospi-contents-main {
    display: inline-block !important;
    vertical-align: top !important;
    width: 65.7% !important; /* 京都の指定通り */
    margin-right: 2% !important;  /* 京都の指定通り（これが中央の空白になります） */
    float: none !important;      /* inline-blockを使うためfloatは解除 */
    box-sizing: border-box !important;
    padding-right: 0 !important;   /* 余計なパディングをリセット */
  }

  /* 右サイドバー：京都の 31% を再現 */
  .m3-hospi-articles-sidebar {
    display: inline-block !important;
    vertical-align: top !important;
    width: 31% !important;   /* 京都の指定通り */
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;  /* inline-blockを使うためfloatは解除 */
    box-sizing: border-box !important;
  }
}

/* スマホ表示：100%に広げる */
@media (max-width: 768px) {
  .m3-hospi-contents-main, 
  .m3-hospi-articles-sidebar {
    width: 100% !important;
    margin-right: 0 !important;
    display: block !important;
  }
}

.layout-clearfix { clear: both !important; }

/* --- 2. ★サイドバー：京都大原・共通デザイン (深い青) --- */
.m3-hospi-contents-sidebar-heading2 {
  background: #40509e no-repeat 10px 50%; !important; color: #fff !important; padding: .25em 10px !important; margin: 0 -10px !important; font-size: 115% !important; font-weight: bold;
}
.m3-hospi-contents-sidebar-section {
  padding: 0 10px 15px;border: 1px solid #ccc !important; background: #fff !important; margin-top: 10px !important; border-radius: 3px !important; overflow: hidden;
}

/* --- 3. 波紋 (拡大900px・3重復元) --- */
.saijo-ripple-section { position: relative; overflow: hidden; background-color: #fff; padding: 60px 0 80px; }
.saijo-ripple-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; pointer-events: none; }
.saijo-ripple-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0.8px solid rgba(0, 196, 204, 0.25); border-radius: 50%; animation: saijo-ripple-ani 8s linear infinite; opacity: 0; }
.ripple2 { animation-delay: 2.6s !important; }
.ripple3 { animation-delay: 5.3s !important; }
@keyframes saijo-ripple-ani { 0% { width: 0; height: 0; opacity: 0; } 10% { opacity: 1; } 100% { width: 900px; height: 900px; opacity: 0; } }
.saijo-main-lead-text { font-size: 15px; line-height: 2.2; color: #444; text-align: center; padding-top: 25px; position: relative; z-index: 2; }

/* ==========================================
   西条市 地図エリア（文章のすぐ下・右寄せ）
   ========================================== */
.saijo-title-map-badge {
  display: block;
  margin: 25px 20px 0 auto; /* 上に隙間を作り、右端に自動で寄せます */
  width: 260px;          /* 画面外には絶対にはみ出ません */
  z-index: 10;
}
.saijo-title-map-badge .saijo-map-inner-box {
  position: relative;    /* ピンを重ねるための基準点 */
  width: 260px;
  height: 180px;
  background: #ffffff;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid #e0f2f2;
}

/* --- ピン・文字の位置制御 --- */
/* 1. 松山市 */
/* 1. 松山市（●と文字をセットで、もう少し右へ！） */
.saijo-map-matsuyama {
  position: absolute;
  top: 22%;    
  left: 47%;   /* 45% → 47%（セットでさらに右へスライド） */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.matsuyama-dot {
  position: relative; 
  width: 8px;
  height: 8px;
  background: #666;
  border-radius: 50%;
}
.matsuyama-text {
  position: absolute;
  right: 12px;       /* ●との距離は黄金比の12pxをキープ */
  top: 50%;
  transform: translateY(-50%); 
  font-size: 11px;
  color: #555;
  font-weight: bold;
  white-space: nowrap;
}

/* 3. 主役：西条市（高さはキープで、もう少し左に！） */
.saijo-map-marker {
  position: absolute;
  top: 15%;    
  left: 49%;   /* 54% → 49%（もう少し左へ寄せました） */
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.saijo-marker-pin {
  font-size: 22px;
  line-height: 1;
}
.saijo-marker-text {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: #00A3A8;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: -1px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* ▼ スマホ時（768px以下）：自動で真ん中に配置 */
@media screen and (max-width: 768px) {
  .saijo-title-map-badge {
    margin: 25px auto 0; /* スマホの時は中央寄せ */
  }
}

/* --- 4. INDEX復元 (枠・矢印) --- */
.saijo-index-area { background-color: #f9fdfd; padding: 40px 20px; border-top: 1px solid #e0f2f2; }
.saijo-index-title { text-align: center; font-size: 14px; letter-spacing: 0.2em; color: #00A3A8; margin-bottom: 25px; font-weight: bold; }
.saijo-index-list { max-width: 500px; margin: 0 auto; list-style: none; padding: 0; }
.saijo-index-item { margin-bottom: 12px; background: #fff; border: 1px solid #e0f2f2; border-radius: 4px; transition: 0.3s; }
.saijo-index-item:hover { border-color: #00C4CC; transform: translateX(5px); }
.saijo-index-link { display: flex; align-items: center; padding: 15px 20px; text-decoration: none; color: #444; font-size: 15px; }
.saijo-index-number { color: #00C4CC; margin-right: 15px; font-weight: bold; }
.saijo-index-arrow { margin-left: auto; border-right: 2px solid #00C4CC; border-bottom: 2px solid #00C4CC; width: 8px; height: 8px; transform: rotate(-45deg); }
.saijo-active { background: #e6f7f8; border-color: #00C4CC; }

/* --- 5. 医師の声 (サイズ・デザイン完全復元 ＋ SPレスポンシブ対応) --- */
.saijo-interview-card-full { 
  display: flex; 
  gap: 40px; 
  background: #fdfdfd; 
  border: 1px solid #e0f2f2; 
  border-radius: 16px; 
  padding: 40px; 
  align-items: center; 
}

.saijo-dr-aside { 
  flex: 0 0 200px; 
  text-align: center; 
}

.saijo-dr-photo-big { 
  width: 180px !important; 
  height: 180px !important; 
  border-radius: 50%; 
  border: 5px solid #fff; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.1); 
  object-fit: cover; /* 写真が歪まないように追加 */
}

.saijo-dr-name { font-size: 18px; font-weight: bold; margin-top: 10px; color: #333; }

.saijo-quote-text { 
  font-size: 22px; 
  color: #00A3A8; 
  font-weight: bold; 
  margin-bottom: 20px; 
  position: relative; 
  padding-left: 20px; 
  line-height: 1.4;
}

.saijo-quote-text::before { content: "“"; position: absolute; left: -10px; top: -10px; font-size: 50px; opacity: 0.15; }

/* ★ここから下が「スマホ用」の追加設定です */
@media (max-width: 768px) {
  .saijo-interview-card-full {
    flex-direction: column !important; /* 強制的に縦並びに変更 */
    gap: 25px;
    padding: 30px 20px;
    text-align: center;
  }
  
  .saijo-dr-aside {
    flex: 0 0 auto; /* 横幅固定を解除 */
    width: 100%;
  }

  .saijo-dr-photo-big {
    width: 140px !important; /* スマホでは少し小さく */
    height: 140px !important;
  }

  .saijo-quote-text {
    font-size: 18px !important;
    padding-left: 0;
    text-align: center;
  }

  .saijo-quote-text::before {
    display: none; /* スマホでは引用符を消してスッキリさせる */
  }
}

/* 親要素のクラス名(.saijo-data-card)を頭につけて、詳細度を少し上げています */
.saijo-data-card .saijo-data-label { 
  /* 0人の位置を揃えるための設定 */
  height: 44px;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  
  /* その他デザイン */
  font-size: 13px; 
  color: #666; 
  font-weight: bold; 
  line-height: 1.4;
  text-align: center;
  margin: 0 auto;
}

/* ついでに数字の箱も高さを少し意識するとより綺麗に揃います */
.saijo-data-card .saijo-data-value {
  margin-top: 10px;
  line-height: 1.2;
}


/* --- 6. 施設案内 & その他 --- */
.saijo-hospital-item { display: block; padding: 25px; border-bottom: 1px solid #f0f0f0; text-decoration: none !important; transition: 0.3s; background: #fff; }
.saijo-hospital-item:hover { background-color: #f9fdfd; transform: translateX(10px); }
.saijo-hosp-header { display: flex; align-items: center; margin-bottom: 10px; }
.saijo-hosp-type { font-size: 11px; background: #e6f7f8; color: #00A3A8; padding: 3px 8px; border-radius: 3px; margin-right: 10px; font-weight: bold; }
.saijo-hosp-name { font-weight: bold; font-size: 18px; color: #333; }
.saijo-hosp-tags span { font-size: 11px; background: #f2f2f2; color: #777; padding: 2px 8px; border-radius: 2px; margin-right: 5px; }

.saijo-sec-title { font-size: 24px; color: #333; position: relative; display: inline-block; padding-bottom: 15px; margin: 0; }
.saijo-sec-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: #00C4CC; }
.saijo-data-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 600px; margin: 0 auto; }
.saijo-data-card { background: #fdfdfd; border: 1px solid #e0f2f2; border-radius: 12px; padding: 25px; text-align: center; }
.saijo-data-value { color: #00A3A8; font-size: 32px; font-weight: bold; }
.saijo-data-sub { font-size: 11px; color: #999; margin-top: 15px; line-height: 1.4; }

.saijo-support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.saijo-support-card { background: #fff; border-top: 4px solid #00C4CC; box-shadow: 0 4px 20px rgba(0,0,0,0.05); padding: 25px; border-radius: 0 0 12px 12px; }

.saijo-contact-container { background: #f0fafa; padding: 80px 0 !important; }
.saijo-contact-card-premium { background: #fff; border-radius: 16px; padding: 50px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; max-width: 760px; margin: 0 auto; }
.saijo-btn-premium { display: inline-block; background: #00A3A8; color: #fff !important; padding: 22px 60px; border-radius: 50px; text-decoration: none !important; font-weight: bold; font-size: 18px; box-shadow: 0 6px 20px rgba(0,163,168,0.3); }