@charset "UTF-8";

/* ---------------------
  - *基本設定
  - *アニメーション
  - *タイトル
  - *メインビジュアル
  - *医院概要
  - *がんの死亡数グラフ
  - *内視鏡検査
  - *ご挨拶
  - *診療案内
  - *病状、症状から探す
  - *当院の特徴
  - *医療コラム
--------------------- */
/* ==================================================================================================================================

  *基本設定

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.front {
  overflow: hidden;
}

section .inner {
  padding: 100px 0;
}

.text > *:not(:last-child) {
  margin-bottom: 2em;
}

/* ----- パララックス ----- */
.parallax {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
}

/* 切り抜く範囲 */
.parallax_img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  clip-path: inset(0);
}

/* 固定する画像 */
.parallax_img::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  section .inner {
    padding: 70px 20px;
  }

  /* ----- パララックス ----- */
  .parallax {
    height: 300px;
  }
}

/* ==================================================================================================================================

  *アニメーション

================================================================================================================================== */
@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeRightAnime {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeLeftAnime {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes zoomInAnime {
  from {
    pointer-events: none;
    transform: scale(0.5);
  }

  to {
    pointer-events: auto;
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes zoomOutAnime {
  from {
    pointer-events: none;
    transform: scale(1);
  }

  to {
    pointer-events: auto;
    opacity: 1;
    transform: scale(1.5);
  }
}
@keyframes scrolldown {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.fadeUp,
.zoomOut,
.zoomIn,
.fadeRight,
.fadeLeft {
  opacity: 0;
}

.fadeUp.is-active {
  animation: fadeUpAnime 1s forwards;
}

.fadeRight.is-active {
  animation: fadeRightAnime 1s forwards;
}

.fadeLeft.is-active {
  animation: fadeLeftAnime 1s forwards;
}

.zoomIn.is-active {
  animation: zoomInAnime 0.8s forwards;
}

.zoomOut.is-active {
  animation: zoomOutAnime 1s forwards;
}

/* ==================================================================================================================================

  *タイトル

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.top_title {
  margin-bottom: 50px;
  line-height: 1.5;
  text-align: center;

  /* 左寄せ */
}

.top_title.title_left {
  text-align: start;
}

.top_title h2 {
  font-family: var(--font-jp);
  font-size: 220%;
}

.top_title .eng {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--main-color);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 150%;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .top_title {
    margin-bottom: 40px;
  }

  .top_title h2 {
    margin: 5px 0 0;
    font-size: 26px;
  }

  .top_title .eng {
    font-size: 18px;
  }
}

/* ==================================================================================================================================

  *メインビジュアル

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.mainvisual {
  position: relative;
  z-index: 1;
  height: 1080px;
  overflow: hidden;
}

.mvSlider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* ----- スライダーのArrowボタン ----- */
.mvSlider .sliderBtn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}

.mvSlider .sliderBtn#mv_btnPrev {
  left: 20px;
}

.mvSlider .sliderBtn#mv_btnNext {
  right: 20px;
}

.mvSlider .sliderBtn span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  border-radius: 50%;
  transition: background 0.2s;
}

.mvSlider .sliderBtn span:hover {
  background: var(--text-color);
}

.mvSlider .sliderBtn span::before {
  padding: 0 0 1px 0;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  color: #ffffff;
  font-size: 15px;
  transition: color 0.2s;
}

.mvSlider .sliderBtn#mv_btnPrev span::before {
  content: "\f060";
}

.mvSlider .sliderBtn#mv_btnNext span::before {
  content: "\f061";
}

/* 各スライダーのボタンは非表示に */
.mvSlider .splide__arrows {
  display: none;
}

/* ----- MVの画像 ----- */
.mvImg {
  width: 100%;
  height: 100%;
}

.mvImg .splide__track {
  width: 100%;
  height: 100%;
}

.mvImg .splide__slide {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

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

/* フェードの専用スタイル */
.fade .mvImg .splide__slide img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: calc(100% + 50px);
  pointer-events: none;
}

/* アニメーションを実行 */
.fade.move .mvImg .splide__slide img {
  animation: hideTranslate 8s ease-out forwards;
}

.fade.move .mvImg .splide__slide.is-active img {
  animation: showTranslate 8s ease-out forwards;
}

/* MVのアニメーション  */
@keyframes showTranslate {
  0% {
    transform: translate3d(0, 0px, 0);
  }

  100% {
    transform: translate3d(0, -30px, 0);
  }
}
@keyframes hideTranslate {
  0% {
    transform: translate3d(0, -30px, 0);
  }

  100% {
    transform: translate3d(0, 0px, 0);
  }
}

/* ----- キャッチコピー ----- */
.mvCatch {
  position: absolute !important;
  top: 40%;
  left: 0;
  z-index: 3;
  width: 100%;
  transform: translateY(-50%);
}

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

.mvCatch p {
  font-size: 220%;
  filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff);
}

/* ----- コンテンツ ----- */
.mvContents {
  position: absolute !important;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.mvContents .inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.mvContents .splide__track {
  width: 100%;
  height: 100%;
}

/* ----- 開院バナー ----- */
.open_bnr {
  position: absolute;
  bottom: 50px;
  display: inline-block;
  padding: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.open_bnr > * {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 280px;
  padding: 15px;
  background: var(--main-color);
  border-radius: 50%;
  color: #ffffff;
  font-size: 110%;
  line-height: 1.5;
  text-align: center;
}

.open_bnr .date {
  font-size: 110%;
}

.open_bnr .open_text {
  margin: 0 0 10px;
  font-size: 180%;
}

.open_bnr .nairankai_tit {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 5px 10px;
  background: #ffffff;
  border-radius: 300px;
  color: var(--main-color);
  font-size: 90%;
  text-align: center;
}

/* サブカラー */
.open_bnr.subcolor > * {
  background: var(--sub-color);
}

.open_bnr.subcolor > * .nairankai_tit {
  color: var(--sub-color);
}

/* ----- MV内コンテンツ（直書き） ----- */
.mv_static {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mv_static .inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1500px;
  min-width: 1200px;
}

.mv_static a {
  display: block;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.mv_static a:hover {
  opacity: 0.7;
}

/* キャッチコピー */
.mv_static .mv_catch {
  position: absolute;
  top: 284px;
  left: calc(50% - 600px);
  z-index: 2;
  width: 447px;
}

/* 新規開院 */
.mv_static .mv_open {
  position: absolute;
  top: 727px;
  left: calc(50% - 600px);
  z-index: 2;
  width: 305px;
}

/* オープニングスタッフ募集 */
.mv_static .mv_recruit {
  position: absolute;
  right: 0;
  bottom: 256px;
  z-index: 2;
  width: 410px;
}

/* 特徴バナー */
.mv_static .mv_bnr_list {
  position: absolute;
  right: 0;
  bottom: 51px;
  z-index: 2;
  display: flex;
  gap: 16px;
}

.mv_static .mv_bnr_list li {
  flex-shrink: 0;
  width: 260px;
}

/* ----- スマホ専用エリア ----- */
.sp_only {
  display: none;
}

/* ===================================================
   トップページ 中間バナー
=================================================== */
.top_middle_banner {
  margin: 40px auto 0;
  text-align: center;
}

.top_middle_banner .inner {
  max-width: 1200px;
  margin: 0 auto;
}

.top_middle_banner a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.top_middle_banner a:hover {
  opacity: 0.8;
}

.top_middle_banner img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* キャッチコピー＋開院バッジ＋募集バナーが収まる高さ */
  .mainvisual {
    height: 460px;
  }

  /* ----- MV内コンテンツ（直書き） ----- */
  /* PCの min-width: 1200px が残るとインナーが画面外まで広がるので解除する */
  .mv_static .inner {
    min-width: 0;
    max-width: none;
    padding: 0 20px;
  }

  .mv_static img {
    width: 100%;
    height: auto;
  }

  /* キャッチコピーは上部中央に小さめで */
	.mv_static .mv_catch {
	    top: 60px;
        right: auto;
        left: 32%;
    width: 52%;
    transform: translateX(-50%);
  }

  /* 新規開院バッジと募集バナーはMV下部に */
  .mv_static .mv_open {
    top: auto;
    right: auto;
    bottom: 95px;
    left: 50%;
    width: 115px;
    transform: translateX(-50%);
  }

  .mv_static .mv_recruit {
    right: auto;
    bottom: 20px;
    left: 50%;
    width: 72%;
    max-width: 280px;
    transform: translateX(-50%);
  }

  /* 特徴バナーはMVの外（.sp_only）に出すのでこちらは非表示 */
  .mv_static .mv_bnr_list {
    display: none;
  }

  /* ----- 特徴バナー（H1の下・縦並び） ----- */
  .sp_bnr_list {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 12px;
    width: 100%;
        max-width: 200px;
	  max-width: 300px;
        margin: 0 auto 10px;
  }

  .sp_bnr_list li {
    width: 100%;
  }

  .sp_bnr_list img {
    width: 100%;
    height: auto;
  }

  /* ----- スライダーのArrowボタン ----- */
  .mvSlider .sliderBtn {
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 2px;
    font-size: 12px;
  }

  .mvSlider .sliderBtn#mv_btnPrev {
    left: 10px;
  }

  .mvSlider .sliderBtn#mv_btnNext {
    right: 10px;
  }

  .mvSlider .sliderBtn span::before {
    font-size: 11px;
  }

  /* ----- キャッチコピー ----- */
  .mvCatch {
    top: auto;
    bottom: 20px;
    display: none;
  }

  .mvCatch.is-active {
    display: block;
  }

  .mvCatch p {
    font-size: 130%;
    line-height: 1.75;
    filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 3px #ffffff);
  }

  /* ----- コンテンツ ----- */
  .mvContents {
    display: none;
  }

  /* ----- 開院バナー ----- */
  .open_bnr {
    position: static;
    width: 100%;
    max-width: 350px;
    border-radius: 0;
  }

  .open_bnr > * {
    width: 100%;
    height: auto;
    padding: 15px 20px;
    border-radius: 0;
  }

  /* ----- スマホ専用エリア ----- */
  .sp_only {
    display: block;
    background: none !important;
  }

  .sp_only .inner {
    padding: 0 20px;
  }

  .sp_only_contents {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
	
  .top_middle_banner {
    margin: 24px auto 0;
  }
}

/* ==================================================================================================================================

  *医院概要（パターン02）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.clinic {
  position: relative;
  z-index: 1;
  padding-bottom: 230px;
  background: url("../images/front/top_news_info_bg.png") no-repeat center bottom;
}

/* ----- お知らせ ----- */
.clinic .news {
  position: relative;
  z-index: 1;
}

.clinic .news {
  padding: 70px 0 158px;
}

/* ベージュのボックス */
.clinic .news .inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 42px;
  padding: 32px 60px;
  background: var(--bg-beige);
}

.clinic .news .news_left {
  flex-shrink: 0;
  width: 300px;
  text-align: center;
}

.clinic .news .top_title {
  position: relative;
  z-index: 1;
  margin: 0 0 45px;
  text-align: center;
}

/* NEWS（背面の白抜き文字） */
.clinic .news .top_title .eng {
  display: block;
  margin: 0 0 -24px;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 100px;
  line-height: 0.67;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: "new-atten", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.clinic .news .top_title h2 {
  position: relative;
  z-index: 2;
  font-family: var(--font-jp);
  font-size: 26px;
  line-height: 1.5;
  padding-top: 9px;
}

/* 3点の飾り */
.clinic .news .top_title .title_circle {
  position: relative;
  z-index: 2;
  margin: 0px 0 0;
  line-height: 1;
}

.clinic .news .btn01 {
  text-align: center;
}

/* ----- お知らせ一覧（MPクラウド） ----- */
.clinic .news #mp-title .news_item a {
  padding: 30px 0;
  border-top: none;
  border-bottom: 1px dashed var(--sub-color);
}

.clinic .news #mp-title .news_item:last-of-type a {
  border-bottom: none;
}

.clinic .news #mp-title .news_info {
  gap: 20px;
  margin-right: 25px;
}

.clinic .news #mp-title .news_info .date {
  font-size: 16px;
}

.clinic .news #mp-title .news_info .cate {
  min-width: 160px;
  padding: 9px 10px;
  font-size: 16px;
}

.clinic .news #mp-title .news_title span {
  font-size: 16px;
}

/* ----- 医院概要 ----- */
.clinic .info .inner {
  display: flex;
  justify-content: space-between;
  gap: 90px;
  padding: 0;
}

.clinic .info .info_left {
  flex-shrink: 0;
  width: 555px;
  padding-left: 45px;
}

.clinic .info .info_right {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
}

/* ----- 住所・電話 ----- */
.clinic .info address {
  text-align: center;
}

.clinic .info address > * {
  position: relative;
  z-index: 1;
}

.clinic .info address .location {
  font-size: 16px;
}

.clinic .info address .location .zipcode {
  margin-right: 20px;
}

.clinic .info address .tel, .clinic .info address .fax {
  margin-top: 5px;
  color: var(--main-color);
  font-family: var(--font-en);
  font-size: 38px;
  line-height: 1.4;
}

.clinic .info address .tel::before, .clinic .info address .fax::before {
  display: inline-block;
  margin-right: 12px;
  color: var(--main-color);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 26px;
  vertical-align: 4px;
}

.clinic .info address .tel::before {
  content: "\f3cd";
}

.clinic .info address .fax::before {
  content: "\f249";
}

.clinic .info .note {
  margin-top: 15px;
  font-size: 90%;
}

/* ----- 診療科目 ----- */
.clinic .info .speciality {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  margin: 22px 0 0;
  padding: 10px 20px 10px 141px;
  background: #ffffff;
}

.clinic .info .speciality .title {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 121px;
  height: 100%;
  padding: 5px;
  background: var(--main-dark);
  color: #ffffff;
  font-size: 16px;
  text-align: center;
}

/* ----- 診療時間 ----- */
.clinic .info .office_hour {
  margin-top: 30px;
}

.clinic .info .office_hour .title {
  background: #ffffff;
}

/* 見出し行と時間行の隙間を見せるため、白背景はセル側に持たせる */
.clinic .info .office_hour .table_wrapper {
  padding: 0;
  background: none;
}

.clinic .info .office_hour table {
  border-collapse: separate;
  border-spacing: 0;
}

.clinic .info .office_hour th, .clinic .info .office_hour td {
  padding: 13px 10px;
    font-size: 12px;
    line-height: 1.6;
}

/* 見出し行 */
.clinic .info .office_hour tr:first-child th, .clinic .info .office_hour tr:first-child td {
  height: 60px;
  background: var(--main-color);
  color: #ffffff;
}

/* 時間行 */
.clinic .info .office_hour tr:not(:first-child) th, .clinic .info .office_hour tr:not(:first-child) td {
  padding: 21px 6px;
  background: #ffffff;
  background-clip: padding-box;
}

.clinic .info .office_hour tr:not(:first-child) td {
  color: var(--main-color);
}

/* 見出し行と時間行の間の余白（4px） */
.clinic .info .office_hour tr:nth-child(2) th, .clinic .info .office_hour tr:nth-child(2) td {
  border-top: 4px solid transparent;
}

/* 時間行の区切り線（左右に余白をとる） */
.clinic .info .office_hour tr:not(:first-child):not(:last-child) th,
.clinic .info .office_hour tr:not(:first-child):not(:last-child) td {
  background-image: linear-gradient(var(--line-blue), var(--line-blue));
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 1px;
}

.clinic .info .office_hour tr:not(:first-child):not(:last-child) th {
  background-position: bottom right;
  background-size: calc(100% - 20px) 1px;
}

.clinic .info .office_hour tr:not(:first-child):not(:last-child) td:last-child {
  background-position: bottom left;
  background-size: calc(100% - 20px) 1px;
}

.clinic .info .office_hour .note {
  margin-top: 15px;
}

.clinic .info .office_hour .closed {
  color: var(--text-color);
  font-size: 16px;
}

/* ----- マップ ----- */
.clinic .info .googlemap iframe {
  height: 350px;
}

.clinic .info .illustmap img {
  width: 100%;
  height: auto;
}

/* ----- アクセス ----- */
.clinic .info .list_access {
  margin-top: 20px;
}

.clinic .info .list_access li {
  position: relative;
  z-index: 1;
  padding: 0 0 0 20px;
  border-bottom: none;
  font-size: 16px;
}

.clinic .info .list_access li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
}

.clinic .info .calendar_text {
  margin-top: 20px;
}

.clinic .info .btn01 {
  margin-top: 20px;
  text-align: center;
}
.clinic .info .btn01 a{
  min-width: 250px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {

  /* SP専用の背景に差し替え（1920×995px） */
  .clinic {
    padding-bottom: 0;
    background-image: url("../images/front/sp_top_news_info_bg.png");
    background-position: center bottom;
    background-size: cover;
  }

  /* ----- お知らせ ----- */
  .clinic .news {
    padding: 40px 20px 40px;
}

  .clinic .news .inner {
    flex-flow: column;
    gap: 30px;
    padding: 35px 20px;
  }

  .clinic .news .news_left {
    width: 100%;
  }

  .clinic .news .top_title .eng {
    margin: 0 0 -28px;
    font-size: 60px;
  }

  .clinic .news .top_title h2 {
    font-size: 22px;
  }

  .clinic .news #mp-title .news_item a {
    padding: 15px 0;
  }

  .clinic .news #mp-title .news_info .cate {
    min-width: 100px;
  }

  /* ----- 医院概要 ----- */
  .clinic .info .inner {
    flex-flow: column;
    gap: 40px;
    padding: 0 10px 40px;
  }

  .clinic .info address .location .zipcode {
    display: block;
    margin-right: 0;
  }

  .clinic .info .info_left {
    width: 100%;
    padding: 0;
}

  .clinic .info address .tel, .clinic .info address .fax {
    font-size: 30px;
  }

  .clinic .info address .tel::before, .clinic .info address .fax::before {
    margin-right: 8px;
    font-size: 20px;
  }

  .clinic .info .speciality {
    padding: 10px 10px 10px 105px;
  }

  .clinic .info .speciality .title {
    width: 90px;
  }

  .clinic .info .office_hour th, .clinic .info .office_hour td {
    padding: 10px 3px;
    font-size: 12px;
  }

  .clinic .info .office_hour tr:not(:first-child) th,
  .clinic .info .office_hour tr:not(:first-child) td {
    padding: 8px 0;
    font-size: 10px;
    letter-spacing: initial;
  }
}

/* ==================================================================================================================================

  *がんの死亡数グラフ

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.graph {
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

.graph .inner {
  padding: 94px 0 120px;
}

/* ----- 背景の装飾（左右の円） -----
   位置は画面中央基準の calc(50% ± XXX) なので、ウィンドウ幅が変わっても
   コンテンツとの相対位置が変わりません */
.graph_circle_right, .graph_circle_left {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

/* 右の円（上のセクションに被せる） */
.graph_circle_right {
  top: -390px;
  left: calc(50% + 415px);
  width: 545px;
  height: 1126px;
  background: url("../images/front/top_graph_right_circle_bg.png") no-repeat center center / contain;
}

/* 左の円（セクション内） */
.graph_circle_left {
  top: 310px;
  left: calc(50% - 960px);
  width: 478px;
  height: 993px;
  background: url("../images/front/top_graph_left_circle_bg.png") no-repeat center center / contain;
}

/* ----- 見出し ----- */
.graph_title {
  position: relative;
  z-index: 1;
  text-align: center;
}

.graph_title_icon {
  position: absolute;
  top: -52px;
  left: 44%;
  z-index: -1;
  margin-left: -290px;
  line-height: 1;
}

.graph_title h2 {
  font-family: var(--font-jp);
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.graph_title h2 > span {
  display: block;
}

.graph_title .line01 {
  font-size: 42px;
}

.graph_title .line02 {
  margin-top: 5px;
  font-size: 52px;
}

.graph_title .line03 {
  margin-top: 5px;
  font-size: 35px;
}

/* 助詞（で・の）は35px */
.graph_title .small {
  font-size: 35px;
}

.graph_title .blue {
  color: var(--main-dark);
}

.graph_title .gold {
  color: var(--sub-color);
}

.graph_title .title_circle {
  margin: 22px 0 0;
  line-height: 1;
}

/* ----- リード文 ----- */
.graph_lead {
  margin: 49px 0 0;
  font-family: var(--font-jp);
  font-size: 18px;
  text-align: center;
}

/* 「」も含めて150％拡大 */
.graph_lead .big {
  font-size: 150%;
}

.graph_lead .gold {
  color: var(--sub-color);
}

/* ----- 二重ボックス ----- */
.graph_box {
  padding: 11px 10px;
  background: #f6efe2;
  border-radius: 10px;
}

/* 上下の余白はボックスごとに調整（1つ目：部位別 がんの死亡数） */
.graph_box01 {
  margin-top: 56px;
  margin-bottom: 0;
}

/* 2つ目：がんの死亡の原因 */
.graph_box02 {
  position: relative;
  margin-top: 45px;
  margin-bottom: 0;
}

/* 和紙の帯（このボックスのちょうど中央から下に敷く）
   幅は 85vw で可変。狭くなると1200pxで止まり、広くても画像の実寸1600pxまで */
.graph_box02::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 85vw;
  min-width: 1200px;
  max-width: 1600px;
  height: 645px;
  background: url("../images/front/top_graph_under_box_bg.png") no-repeat center center / cover;
  transform: translateX(-50%);
}

.graph_box_inner {
  box-shadow: 3px 3px 3px #dcd0b9, -3px -3px 3px #dcd0b9;
  padding: 47px 59px 13px;
  border: 1px solid var(--sub-color);
  border-radius: 5px;
}

/* ボックス見出し（左右に3点飾り） */
.graph_box_title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: var(--font-jp);
  font-size: 26px;
  line-height: 1.5;
  text-align: center;
}

.graph_box_title::before, .graph_box_title::after {
  content: "";
  flex-shrink: 0;
  width: 47px;
  height: 7px;
  background: url("../images/front/tit_h2_news_circle.png") no-repeat center center / contain;
}

.graph_source {
  position: relative;
  font-size: 14px;
  text-align: right;
  letter-spacing: 0.05em;
}

/* 出典の位置はボックスごとに調整（1つ目：部位別 がんの死亡数） */
.graph_box01 .graph_source {
  margin-top: 57px;
  left: 51px;
}

/* 2つ目：がんの死亡の原因 */
.graph_box02 .graph_source {
  margin-top: 37px;
  left: 51px;
}

/* ----- グラフ ----- */
.graph_wrap {
  display: flex;
  gap: 60px;
  margin: 30px 0 0;
}

.graph_panel {
  width: calc(50% - 30px);
}

.graph_panel_head {
  padding: 15px 10px;
  color: #ffffff;
  font-family: var(--font-jp);
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
}

.graph_panel.male .graph_panel_head {
  background: var(--main-dark);
}

.graph_panel.female .graph_panel_head {
  background: var(--orange-color);
}

/* 帯とグラフの間に隙間をとる（下の余白は部位名が入る分） */
.graph_panel_body {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding: 40px 25px 45px;
  background: #ffffff;
}

/* 目盛り */
.graph_scale {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 45px;
  height: 260px;
}

.graph_scale li {
  position: absolute;
  right: 0;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
}

.graph_scale li:nth-child(1) { top: 0; }
.graph_scale li:nth-child(2) { top: 16.667%; }
.graph_scale li:nth-child(3) { top: 33.333%; }
.graph_scale li:nth-child(4) { top: 50%; }
.graph_scale li:nth-child(5) { top: 66.667%; }
.graph_scale li:nth-child(6) { top: 83.333%; }
.graph_scale li:nth-child(7) { top: 100%; }

/* 棒グラフ（横ラインは破線を6本重ねて描画） */
.graph_bars {
  --grid: repeating-linear-gradient(to right, #c3ccd0 0 4px, transparent 4px 8px);
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  justify-content: space-around;
  align-items: flex-end;
  height: 260px;
  background-image: var(--grid), var(--grid), var(--grid), var(--grid), var(--grid), var(--grid);
  background-repeat: repeat-x;
  background-size: 100% 1px;
  background-position: 0 0, 0 16.667%, 0 33.333%, 0 50%, 0 66.667%, 0 83.333%;
  border-bottom: 1px solid #b5bcbe;
}

.graph_bars > li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  align-items: center;
  width: 40px;
  height: 100%;
}

/* 単位（人）の表示位置 */
.graph_scale .graph_unit {
  top: calc(100% + 18px); /* 「0」の下からの距離 */
  right: -10px;
  font-size: 12px;
  color: #666666;
  white-space: nowrap;
  transform: none; /* 通常のliにかかっているtranslateY(-50%)を解除 */
}

/* 男性は棒4本なので、左右10px詰めて棒同士の間隔を5px狭める */
/* 棒同士の間隔の微調整用
   縮まる幅 = padding値 × 2 ÷ 棒の本数（男性4本／女性5本）
   例）30px なら 男性は15px、女性は12px 間隔が狭まる */
.graph_panel.male .graph_bars {
  padding: 0 30px;
}

.graph_panel.female .graph_bars {
  padding: 0 30px;
}

.graph_bar {
  flex-shrink: 0;
  display: block;
  width: 100%;
  height: var(--bar);
  background: var(--gray-color);
}

.graph_panel.male .is_focus .graph_bar {
  background: var(--main-dark);
}

.graph_panel.female .is_focus .graph_bar {
  background: var(--orange-color);
}

/* 部位名 */
.graph_name {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 8px;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.graph_panel.male .is_focus .graph_name {
  color: var(--main-dark);
}

.graph_panel.female .is_focus .graph_name {
  color: var(--orange-color);
}

/* 吹き出し */
.graph_balloon {
  position: absolute;
  bottom: calc(var(--bar) + 12px);
  left: 50%;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.4;
  white-space: nowrap;
  transform: translateX(-50%);
}

.graph_balloon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 5px solid transparent;
  border-top-width: 6px;
  transform: translateX(-50%);
}

.graph_panel.male .graph_balloon {
  background: var(--main-color);
}

.graph_panel.male .graph_balloon::after {
  border-top-color: var(--main-color);
}

.graph_panel.female .graph_balloon {
  background: var(--sub-color);
}

.graph_panel.female .graph_balloon::after {
  border-top-color: var(--sub-color);
}

/* ----- スクロールアニメーション ----- */
.graph_wrap .graph_bar {
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.graph_wrap.is-active .graph_bar {
  transform: scaleY(1);
}

.graph_bars > li:nth-child(1) .graph_bar { transition-delay: 0s; }
.graph_bars > li:nth-child(2) .graph_bar { transition-delay: 0.12s; }
.graph_bars > li:nth-child(3) .graph_bar { transition-delay: 0.24s; }
.graph_bars > li:nth-child(4) .graph_bar { transition-delay: 0.36s; }
.graph_bars > li:nth-child(5) .graph_bar { transition-delay: 0.48s; }

/* 棒が出そろってから吹き出しを出す */
.graph_wrap .graph_balloon {
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.5s ease-out 1.4s, transform 0.5s ease-out 1.4s;
}

.graph_wrap.is-active .graph_balloon {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* OS側でアニメーションOFFの場合は即座に完成形を表示 */
@media (prefers-reduced-motion: reduce) {
  .graph_wrap .graph_bar, .graph_wrap .graph_balloon {
    transition: none;
  }

  .graph_wrap .graph_bar {
    transform: scaleY(1);
  }

  .graph_wrap .graph_balloon {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ----- 死亡の原因ランキング ----- */
.rank_list {
  margin: 33px 0 0;
}

.rank_list > li {
  display: flex;
  align-items: center;
  gap: 21px;
}

.rank_list > li:not(:last-child) {
  margin-bottom: 40px;
}

.rank_label {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 155px;
  height: 60px;
  color: #ffffff;
  font-family: var(--font-jp);
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
}

.rank_label.male {
  background: var(--main-dark);
}

.rank_label.female {
  background: var(--orange-color);
}

.rank_items {
  display: flex;
  gap: 35px;
}

.rank_items > li {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 165px;
  padding: 0 0 8px 0px;
  border-bottom: 1px solid #aca598;
  font-family: var(--font-jp);
  font-size: 18px;
  line-height: 1.5;
}

.rank_items .num {
  font-size: 150%;
  line-height: 1;
}

.rank_items .name {
  margin-left: 15px;
  font-weight: 500;
  font-size: 22px;
}

/* 色付き（大腸がん・胃がん）だけ30px */
.rank_items .blue {
  color: var(--main-dark);
  font-size: 30px;
  font-weight: 600;
}

.rank_items .orange {
  color: var(--orange-color);
  font-size: 30px;
  font-weight: 600;
}

.rank_supplement {
  flex-shrink: 0;
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: bold;
  padding-left: 33px;
}

.rank_supplement .orange {
  color: var(--orange-color);
}

/* ----- まとめ ----- */
.graph_summary {
  margin: 76px 0 0;
  color: var(--text-color);
  font-family: var(--font-jp);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 2;
  text-align: center;
}

.graph_summary .small {
  font-size: 18px;
  font-weight: 500;
}

.graph_summary .orange {
  color: var(--orange-color);
}

.graph_conclusion {
  margin: 55px 0 0;
  color: var(--orange-dark);
  font-family: var(--font-jp);
  font-size: 28px;
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-align: center;
}

/* 胃カメラ・大腸カメラ */
.graph_conclusion .big {
  font-size: 33px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .graph .inner {
    padding: 0 15px;
}

  /* PC用の円はSPでは出さない ※SPデザイン確定後に差し替え */
  .graph_circle_right, .graph_circle_left {
    display: none;
  }

  .graph_box02::after {
    width: 100%;
    min-width: 0;
    height: 100%;
  }

  /* ----- 見出し ----- */
  .graph_title_icon {
    margin-left: -140px;
  }

  .graph_title_icon img {
    width: 120px;
  }

  .graph_title .line01 {
    font-size: 22px;
  }

  .graph_title .line02 {
    font-size: 27px;
  }

  .graph_title .line03 {
    font-size: 19px;
  }

  .graph_title .small {
    font-size: 19px;
  }

  .graph_lead {
    margin: 30px 0 0;
    font-size: 14px;
    text-align: left;
  }

  /* ----- 二重ボックス ----- */
  .graph_box {
    margin: 35px 0 0;
    padding: 8px 7px;
  }

  .graph_box_inner {
    padding: 20px 15px 15px;
  }

  /* 3点飾りを消して見出しが折り返さないようにする */
  .graph_box_title {
    gap: 0;
    font-size: 16px;
    white-space: nowrap;
  }

  .graph_box_title::before, .graph_box_title::after {
    display: none;
  }

  /* PCの left: 51px が残るとボックスからはみ出すので解除 */
  .graph_box01 .graph_source, .graph_box02 .graph_source {
    left: 0;
    margin-top: 15px;
    font-size: 11px;
  }

  /* ----- グラフ ----- */
  .graph_wrap {
    flex-flow: column;
    gap: 30px;
  }

  .graph_panel {
    width: 100%;
  }

  .graph_panel_head {
    padding: 10px;
    font-size: 17px;
  }

  .graph_panel_body {
    gap: 8px;
    padding: 30px 15px 40px;
  }

  .graph_scale, .graph_bars {
    height: 200px;
  }

  .graph_scale {
    width: 38px;
  }

  .graph_scale li {
    font-size: 9px;
  }

  .graph_bars > li {
    width: 24px;
  }

  .graph_balloon {
    padding: 2px 6px;
    font-size: 11px;
  }

  /* 隣り合う吹き出しが重ならないよう、偶数番目を一段上げる */
  .graph_bars > li:nth-child(even) .graph_balloon {
    bottom: calc(var(--bar) + 32px);
  }

  .graph_name {
    font-size: 11px;
  }

  /* ----- 死亡の原因ランキング ----- */
  .rank_list > li {
    flex-flow: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rank_list > li:not(:last-child) {
    margin-bottom: 25px;
  }

  .rank_label {
    width: 100px;
    height: 40px;
    font-size: 16px;
  }

  .rank_items {
    flex-flow: column;
    gap: 10px;
    width: 100%;
  }

  .rank_items > li {
    min-width: 0;
    width: 100%;
    font-size: 15px;
  }

  .rank_items .name {
    font-size: 17px;
  }

  .rank_items .blue, .rank_items .orange {
    font-size: 19px;
  }

  .rank_supplement {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 13px;
    text-align: left;
  }

  /* ----- まとめ ----- */
  .graph_summary {
    margin: 50px 0 0;
    font-size: 19px;
    line-height: 1.8;
  }

  .graph_summary .small {
    font-size: 14px;
  }

  .graph_conclusion {
    margin: 30px 0 0;
    font-size: 19px;
  }

  .graph_conclusion .big {
    font-size: 22px;
  }
	
.graph_scale .graph_unit {
    top: calc(100% + 14px);
    font-size: 9px;
  }
}

/* ==================================================================================================================================

  *内視鏡検査

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* z-index を2にして、上下のセクション（.graph / .greeting）より後ろに描画されるようにする。
   これで左の円が和紙とご挨拶の背景の上に乗りつつ、写真だけが円の上に来ます */
.endoscope {
  position: relative;
  z-index: 2;
}

/* グラフ〜ご挨拶にまたがる左の円。
   セクション内で z-index: -1 なので、写真より後ろ・他セクションの背景より前になります */
   .endoscope_circle_left {
    position: absolute;
    top: -434px;
    left: calc(50% - 955px);
    z-index: -1;
    width: 482px;
    height: 1192px;
    background: url("../images/front/top_graph_under_left_circle_bg.png") no-repeat center center / contain;
    pointer-events: none;
}

/* 左の写真は画面左端から中央まで、右のテキストは1200pxインナーの右端に揃える。
   右パディングをインナーの余白と同じにすることで、
   ウィンドウ幅が変わっても写真とテキストの間隔が一定になります */
   .endoscope_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px max(0px, calc(49.5vw - 600px)) 0px 0;
}

.endoscope_img {
  flex-shrink: 0;
  width: 50vw;
}

/* 高さは固定して、幅の変化ぶんは左右をトリミングする */
.endoscope_img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center center;
}

.endoscope_contents {
  flex-shrink: 0;
  width: 557px;
}

.endoscope_text {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
}

.endoscope_text .strong {
  font-weight: bold;
  font-size: 130%;
}

.endoscope .btn02_list {
  display: flex;
  gap: 36px;
  margin-top: 40px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* PC用の円はSPでは出さない ※SPデザイン確定後に差し替え */
  .endoscope_circle_left {
    display: none;
  }

  .endoscope_wrap {
    flex-flow: column;
    gap: 30px;
    padding: 40px 0;
}

  .endoscope_img {
    width: 100%;
  }

  .endoscope_img img {
    height: 240px;
  }

  .endoscope_contents {
    width: 100%;
    padding: 0 20px;
  }

  .endoscope_text {
    font-size: 14px;
  }
  .endoscope_text br{
    display: none;
  }

  .endoscope .btn02_list {
    flex-flow: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
  }
}

/* ==================================================================================================================================

  *ご挨拶（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* 上端・下端は波の画像（1920×356px）、地色はその内側だけを塗る。
   波の高さを356px固定にしているので、ウィンドウ幅が変わっても
   波と地色の継ぎ目がズレません（1px重ねて隙間対策） */
.greeting {
  position: relative;
  z-index: 1;
  padding-top: 225px;
  padding-bottom: 350px;
  background-color: var(--bg-blue);
}

/* 上下の波。実寸（1920×356px）のまま拡大縮小せず、
   ウィンドウ幅が狭くなると中央基準で左右が切れていきます。
   波のPNGは「水色の波＋透過」なので、白背景を敷いて透過部分を白く見せています */
.greeting::before, .greeting::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 356px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto;
}

.greeting::before {
  top: 0;
  background-image: url("../images/front/top_greeting_up_wave_bg.png");
}

.greeting::after {
  bottom: 0;
  background-image: url("../images/front/top_greeting_under_wave_bg.png");
}

.greeting_box {
  position: relative;
  z-index: 1;
}

.greeting_flex {
  display: flex;
  justify-content: space-between;
  gap: 99px;
}

.greeting_box:not(:last-child) {
  margin-bottom: 70px;
}

/* ----- 見出し ----- */
.greeting .top_title {
  position: relative;
  z-index: 1;
  margin-bottom: 84px;
}

/* GREETING（背面の白抜き文字） */
.greeting .top_title .eng {
  display: block;
  margin: 0 0 -30px;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 120px;
  line-height: 0.558;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.greeting .top_title h2 {
  position: relative;
  z-index: 2;
  font-family: var(--font-jp);
  font-size: 26px;
  line-height: 1.5;
}

.greeting .top_title .title_circle {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  line-height: 1;
}

/* ----- 左（本文） ----- */
.greeting_left {
  flex-shrink: 0;
  width: 701px;
}

.greeting_text {
  font-size: 16px;
  line-height: 2.125;
  letter-spacing: 0.05em;
}

.greeting_text > *:not(:last-child) {
  margin-bottom: 2em;
}

/* 小見出し（ACFの本文内で使用） */
.greeting_text > .greeting_lead {
  margin-bottom: 35px;
  color: var(--main-dark);
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: bold;
  line-height: 1.6;
}

/* ----- 右（写真・院長名） ----- */
.greeting_right {
  flex-shrink: 0;
  width: 400px;
  padding-top: 10px;
}

.greeting_img {
  position: relative;
  z-index: 1;
  width: 400px;
}

/* 青いテクスチャ背景（写真から右上にずらす） */
.greeting_img::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -48px;
  z-index: -1;
  width: 400px;
  height: 499px;
  background: url("../images/front/top_greeting_doctor_img_bg.jpg") no-repeat center center / cover;
}

.greeting_img img {
  width: 100%;
  height: auto;
}

.greeting_profile {
  margin-top: 30px;
  padding: 0;
  background: none;
  color: var(--text-color);
  font-family: var(--font-jp);
  line-height: 1.5;
  text-align: center;
}

.greeting_profile .greeting_logo {
  margin: 0 0 15px;
  line-height: 1;
}

.greeting_profile .greeting_logo::after {
    content: "(仮称)";
    position: relative;
    bottom: 9px;
    left: 5px;
    color: #626060;
    font-family: var(--font-jp);
    font-size: 12px;
}

.greeting_profile .position {
  display: inline-block;
  margin-right: 18px;
  font-size: 18px;
  padding-left: 25px;
}

.greeting_profile .name {
  display: inline-block;
  font-size: 26px;
}

/* ふりがな（ACFの「名前」欄で <span class="kana"> を使用） */
.greeting_profile .name .kana {
  font-size: 18px;
}

/* ----- ボタン（本文カラムの右端に揃える） ----- */
.greeting_btn {
  position: relative;
  width: 701px;
  margin-top: 0;
  text-align: right;
  top: -25px;
}
.greeting_btn a{
  min-width: 250px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .greeting {
    padding-top: 115px;
    padding-bottom: 110px;
  }

  .greeting::before, .greeting::after {
    height: 226px;
  }

  .greeting .top_title {
    margin-bottom: 40px;
  }

  .greeting .top_title .eng {
    margin: 0 0 -18px;
    font-size: 62px;
  }

  .greeting .top_title h2 {
    font-size: 22px;
  }

  .greeting_flex {
    flex-flow: column-reverse;
    gap: 35px;
  }

  .greeting_left {
    width: 100%;
  }

  .greeting_text {
    font-size: 14px;
  }

  .greeting_text > .greeting_lead {
    font-size: 18px;
  }

  .greeting_right {
    width: 100%;
  }

  .greeting_img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .greeting_img::before {
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
  }

  .greeting_profile .greeting_logo img {
    width: 260px;
  }

  .greeting_profile .position {
    margin-right: 12px;
    font-size: 15px;
  }

  .greeting_profile .name {
    font-size: 21px;
  }

  .greeting_profile .name .kana {
    font-size: 15px;
  }

  .greeting_btn {
    width: 100%;
    margin-top: 40px;
    text-align: center;
  }

.greeting_profile .greeting_logo::after {
    bottom: 6px;
    font-size: 8px;
}
}

/* ==================================================================================================================================

  *診療案内（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* 上下に波の画像が入るので、その高さ分の余白を確保しておく（上489px／下356px） */
.medical {
  position: relative;
  z-index: 1;
  padding-top: 439px;
  padding-bottom: 420px;
  margin-top: -380px;
}

.medical .inner {
  padding: 0;
}

/* ----- 背景 -----
   波のPNGは「テクスチャ＋透過」なので、地色を全面に敷くことはできません
   （上の波より上は前のセクションが透けて見える必要があるため）。
   上の波は実測で y=443 まで不透明・下45pxは透過なので、テクスチャは442pxから始めます */
.medical_bg {
  position: absolute;
  top: 442px;
  right: 0;
  bottom: 355px;
  left: 0;
  z-index: -1;
  background: url("../images/front/top_medical_bg.jpg") repeat-y center top / cover;
}

/* 上下の波。実寸のまま拡縮せず、幅が狭くなると中央基準で左右が切れます */
.medical::before, .medical::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: -1;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto;
}

.medical::before {
  top: 0;
  height: 489px;
  background-image: url("../images/front/top_medical_up_wave_bg.png");
  z-index: 2;
}

.medical::after {
  bottom: 0;
  height: 356px;
  background-image: url("../images/front/top_medical_under_wave_bg.png");
}

/* ----- 見出し ----- */
/* 上の波（::before）が z-index: 2 なので、見出しはそれより上の3にする */
.medical .top_title {
  position: relative;
  z-index: 3;
  margin-bottom: 94px;
  color: var(--text-color);
}

/* MEDICAL（背面の白抜き文字） */
.medical .top_title .eng {
  display: block;
  margin: 0 0 -16px;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 120px;
  line-height: 0.558;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.medical .top_title h2 {
  position: relative;
  z-index: 2;
  font-family: var(--font-jp);
  font-size: 26px;
  line-height: 1.5;
}

.medical .top_title .title_circle {
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  line-height: 1;
}

/* ----- カード ----- */
.medical_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.medical_item {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 280px;
}

/* ホバーで少し上に移動 */
.medical_item:hover {
  transform: translateY(-10px);
}

/* 背景色は 水色 → 青 → 茶 の繰り返し */
.medical_item:nth-child(3n+1) {
  background: rgba(0, 173, 225, 0.702);
}

.medical_item:nth-child(3n+2) {
  background: rgba(43, 130, 185, 0.702);
}

.medical_item:nth-child(3n) {
  background: rgba(199, 171, 116, 0.8);
}

/* 右下の三角アイコン（カラーごとに3種類） */
.medical_item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
}

.medical_item:nth-child(3n+1)::after {
  background-image: url("../images/front/icon_medical_sankaku01.png");
}

.medical_item:nth-child(3n+2)::after {
  background-image: url("../images/front/icon_medical_sankaku02.png");
}

.medical_item:nth-child(3n)::after {
  background-image: url("../images/front/icon_medical_sankaku03.png");
}

.medical_img {
  display: none;
}

.medical_inner {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 36px 15px 25px;
  background: none;
  text-align: center;
}

.medical_inner > *:not(:last-child) {
  margin-bottom: 0;
}

/* アイコン（白い丸） */
.medical_icon {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 116px;
  height: 116px;
  max-width: none;
  margin: 0 auto 22px !important;
  padding: 24px;
  background: #ffffff;
  border-radius: 50%;
}

.medical_icon img {
  width: 100%;
  height: auto;
}

.medical_title h3 {
  color: #ffffff;
  font-family: var(--font-jp);
  font-size: 18px;
  line-height: 1.556;
}

/* 見出しの上の小さい丸（カラーごとに濃い色） */
.medical_title h3::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto 18px;
  border-radius: 50%;
}

.medical_item:nth-child(3n+1) .medical_title h3::before {
  background: #0c96c3;
}

.medical_item:nth-child(3n+2) .medical_title h3::before {
  background: #2175aa;
}

.medical_item:nth-child(3n) .medical_title h3::before {
  background: #aa915f;
}

/* 縦組みの英語ラベル */
.medical_title_eng {
  position: absolute;
  top: 22px;
  left: 14px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.702);
  font-family: var(--font-en);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: left;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.medical_text {
  color: var(--text-color);
}

.medical_btn span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 auto;
  padding: 7px 25px 7px 15px;
  background: var(--main-color);
  border: 1px solid var(--main-color);
  color: #ffffff;
  letter-spacing: 1px;
  text-align: center;
  transition: padding 0.2s, color 0.2s, background 0.2s;
}

.medical_btn span::after {
  content: "\f105";
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
  transform: translateY(-50%);
}

.medical_item:hover .medical_btn span {
  background: #ffffff;
  color: var(--main-color);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .medical {
    margin-top: -80px;
    padding-top: 130px;
    padding-bottom: 90px;
}

  /* PC実寸の波はSPでは合わないので、テクスチャのみ ※SPデザイン確定後に差し替え */
  .medical_bg {
    top: 120px;
    bottom: 60px;
  }

  .medical::before {
    height: 130px;
    background-size: 200% auto;
  }

  .medical::after {
    height: 90px;
    background-size: 200% auto;
  }

  .medical .top_title {
    margin-bottom: 35px;
  }

  .medical .top_title .eng {
    margin: 0 0 -18px;
    font-size: 60px;
  }

  .medical .top_title h2 {
    font-size: 22px;
  }

  .medical_list {
    gap: 0;
  }

  .medical_item {
    width: 50%;
    height: 200px;
  }

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

  .medical_item::after {
    width: 22px;
    height: 22px;
  }

  .medical_inner {
    padding: 0 10px 18px;
  }

  .medical_icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px !important;
    padding: 16px;
  }

  .medical .inner {
    padding: 0 10px;
  }

  .medical_title h3 {
    font-size: 12px;
    letter-spacing: 0;
  }

  .medical_title h3::before {
    margin: 0 auto 10px;
  }

  .medical_title_eng {
    top: 10px;
    left: 8px;
    font-size: 10px;
    letter-spacing: 0;
  }
}

/* ==================================================================================================================================

  *病状、症状から探す（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* z-indexを0にして、上の診療案内セクション（z-index: 1）より後ろに回す。
   これで上の弧が診療案内の背後にもぐります */
   .search {
    position: relative;
    padding-top: 238px;
    z-index: 0;
    margin-top: -280px;
    padding-bottom: 79px;
}

/* ----- 背景の装飾 ----- */
/* 上の弧（1920pxの全幅キャンバス。上のセクションに食い込ませる） */
.search_bg_up {
  position: absolute;
  top: -338px;
  left: 50%;
  z-index: -1;
  width: 1920px;
  height: 933px;
  background: url("../images/front/top_search_up_bg.png") no-repeat center center / contain;
  transform: translateX(-50%);
  pointer-events: none;
}

/* 左の弧 */
.search_bg_left {
  position: absolute;
  bottom: -333px;
  right: calc(50% + 405px);
  z-index: -1;
  width: 555px;
  height: 894px;
  background: url("../images/front/top_search_left_bg.png") no-repeat center center / contain;
  pointer-events: none;
}

/* ----- 見出し ----- */
.search .top_title {
  position: relative;
  z-index: 1;
  margin-bottom: 95px;
}

/* SEARCH（背面のベージュ文字） */
.search .top_title .eng {
  display: block;
  margin: 15px 0 -34px;
  color: var(--bg-beige);
  font-family: var(--font-en);
  font-size: 120px;
  line-height: 0.558;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.search .top_title h2 {
  position: relative;
  z-index: 2;
  font-family: var(--font-jp);
  font-size: 26px;
  line-height: 1.5;
}

.search .top_title .title_circle {
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  line-height: 1;
}

/* ----- タブ（上の左右だけ角丸） ----- */
.search .tab_list {
  display: flex;
  flex-flow: wrap;
  gap: 20px;
  margin-bottom: 7px;
}

.search .tab_list li {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-height: 80px;
  padding: 10px 20px;
  background: #beb8ad;
  border-radius: 8px 8px 0 0;
  color: #ffffff;
  font-family: var(--font-jp);
  font-size: 22px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s;
}

.search .tab_list li::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 26px;
  background: url("../images/front/icon_search.png") no-repeat center center / contain;
}

.search .tab_list li.is-active {
  background: var(--sub-color);
}

/* ----- パネル ----- */
.search .panel {
  display: none;
  margin: 0 !important;
  padding: 50px;
  background: url("../images/front/top_search_box_bg.jpg") repeat center top;
}

.search .panel > *:not(:last-child) {
  margin-bottom: 2em;
}

/* ----- 項目 ----- */
.search_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  height: fit-content;
}

.search_list a {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 101px;
  padding: 12px 20px;
  background: #ffffff;
  color: var(--sub-color);
  font-family: var(--font-jp);
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  transition: opacity 0.2s;
}

.search_list a:hover {
  opacity: 0.75;
}

/* 内側の枠 */
.search_list a::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border: 1px solid var(--bg-beige);
}

/* 右下の三角（内枠の角に合わせる） */
.search_list a::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 10px;
  height: 11px;
  background: url("../images/front/icon_search_sankaku.png") no-repeat right bottom / contain;
}

/* ----- 画像あり ----- */
.panel_flex.is-active {
  display: flex;
  flex-flow: wrap;
  gap: 20px;
}

.panel_flex .search_img {
  width: calc(50% - 10px);
  margin: 0 !important;
}

.panel_flex .search_list {
  grid-template-columns: repeat(2, 1fr);
  width: calc(50% - 10px);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* PC実寸の装飾はSPでは出さない ※SPデザイン確定後に差し替え */
  .search_bg_up, .search_bg_left {
    display: none;
  }

  .search {
    padding-bottom: 0;
  }

  .search .top_title {
    margin-bottom: 35px;
  }

  .search .top_title .eng {
    margin: 0 0 -25px;
    font-size: 60px;
  }

  .search .top_title h2 {
    font-size: 22px;
  }

  .search .tab_list {
    flex-flow: wrap;
    gap: 8px;
    margin: 0 0 7px;
  }

  .search .tab_list li {
    gap: 8px;
    min-height: 56px;
    padding: 10px !important;
    font-size: 15px;
    transform: translate(0, 0) !important;
  }

  .search .tab_list li::before {
    width: 20px;
    height: 19px;
  }

  /* ----- パネル ----- */
  .search .panel {
    padding: 20px 15px;
  }

  /* ----- 項目（SPは1列） ----- */
  .search_list {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }

  .search_list a {
    min-height: 56px;
    padding: 10px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .search_list a::before {
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
  }

  .search_list a::after {
    right: 5px;
    bottom: 5px;
  }

  /* ----- 画像あり ----- */
  .panel_flex.is-active {
    gap: 20px;
  }

  .panel_flex .search_img {
    width: 100%;
  }

  .panel_flex .search_list {
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
  }
}

/* ==================================================================================================================================

  *当院の特徴（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* 上の余白 = 院内写真の高さ(599px) + 写真とH2の間隔(150px)。
   その余白の中に写真を絶対配置し、セクションごとマイナスマージンで上へ引き上げます */
   .feature {
    position: relative;
    z-index: 1;
    margin-top: -277px;
    padding-top: 812px;
    padding-bottom: 280px;
}

.feature .inner {
  padding-top: 0;
}

/* 右端にぴったり付け、左の余白は222px固定（1920px時に画像が実寸1698pxで収まる幅）。
   ウィンドウが狭くなると拡縮せず左から見切れます */
.feature_mainimg {
  position: absolute;
  top: 0;
  right: 0;
  left: 222px;
  z-index: -1;
  height: 599px;
  line-height: 1;
}

.feature_mainimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* ----- 背景の装飾 -----
   重なり順： 左の四角／和紙（-1） → 院内写真（-1） → 透過の縦棒（0） → カード（1）
   横位置はすべて画面中央基準の calc() なので、幅が変わっても相対位置が動きません */

/* 左：茶色い四角（途中から始まる） */
.feature_bg_left {
  position: absolute;
  top: 1190px;
  right: calc(50% + 380px);
  z-index: -1;
  width: 580px;
  height: 957px;
  background: url("../images/front/top_endo_left_bg.jpg") no-repeat center center / cover;
}

/* 右：和紙の縦棒（院内写真の下端からスタート） */
.feature_bg_washi {
  position: absolute;
  top: 599px;
  left: calc(50% + 405px);
  z-index: -1;
  width: 555px;
  height: 2204px;
  background: url("../images/front/top_endo_right_bg_short.jpg") no-repeat center top / 100% auto;
}

/* 右：透過の縦棒（写真の上に重なり、セクション最下部まで） */
.feature_bg_line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
  width: 200px;
  background: url("../images/front/top_endo_right_bg_long.png") no-repeat center center / 100% 100%;
  pointer-events: none;
}

/* ----- 見出し ----- */
.feature .top_title {
  position: relative;
  z-index: 1;
  margin-bottom: 94px;
}

/* ENDOSCOPY（背面のベージュ文字） */
.feature .top_title .eng {
  display: block;
  margin: 0 0 -17px;
  color: var(--bg-beige);
  font-family: var(--font-en);
  font-size: 120px;
  line-height: 0.558;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.feature .top_title h2 {
  position: relative;
  z-index: 2;
  font-family: var(--font-jp);
  font-size: 26px;
  line-height: 1.5;
}

.feature .top_title .title_circle {
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  line-height: 1;
}

/* ----- カード ----- */
.feature_list {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 60px 71px;
  padding-right: 30px;
}

.feature_item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: column;
  width: 480px;
  height: auto;
  background: none;
}

/* 白背景はカードの背景ではなく、コンテンツから左右にずらした別レイヤー。
   左カラムは左へ40px、右カラムは右へ40pxずれます */
   .feature_item::before {
    content: "";
    position: absolute;
    top: 135px;
    z-index: -1;
    width: 480px;
    height: calc(100% - 120px);
    background: #ffffff;
}

.feature_item:nth-child(odd)::before {
  left: -39px;
}

.feature_item:nth-child(even)::before {
  right: -39px;
}

/* 縦組みの英語ラベル。白背景の左端がラベルの中央にくる位置に置く */
.feature_num {
  position: absolute;
  top: 36px;
  z-index: 2;
  margin: 0 !important;
  color: rgba(199, 171, 116, 0.6);
  font-family: var(--font-en);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.feature_item:nth-child(odd) .feature_num {
  left: -24px;
}

.feature_item:nth-child(even) .feature_num {
  left: -25px;
}

.feature_num span {
  color: inherit;
  font-size: inherit;
}

.feature_img {
  line-height: 1;
}

.feature_img img {
  width: 100%;
  height: auto;
}

.feature_inner {
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: 0 0 40px;
  background: none;
}

/* 見出しは380×100pxの白囲み。画像の下端に重ねる */
.feature_title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-flow: column;
  justify-content: center;
  width: 380px;
  min-height: 100px;
  margin: -50px auto 0;
  padding: 10px 15px;
  background: #ffffff;
}

.feature_title h3 {
  color: var(--main-dark);
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.7;
  text-align: center;
}

/* 見出し下の丸。白囲みの外側・下に配置 */
.feature_title::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-top: 16px;
  background: var(--main-dark);
  border-radius: 50%;
  transform: translateX(-50%);
}

.feature_text {
  margin-top: 45px;
  font-size: 16px;
  line-height: 2.125;
  padding: 0 3px 0 28px;
  letter-spacing: 0.05em;
}

.feature_button {
  display: flex;
  flex-flow: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 43px;
}
.feature_button a{
  min-width: 250px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .feature {
    margin-top: -130px;
    padding-top: 270px;
    padding-bottom: 0;
  }

  .feature_mainimg {
    left: 0;
    height: 220px;
  }

  /* PC用の背景装飾はSPでは出さない ※SPデザイン確定後に差し替え */
  .feature_bg_left, .feature_bg_washi, .feature_bg_line {
    display: none;
  }

  .feature .top_title {
    margin-bottom: 40px;
  }

  .feature .top_title .eng {
    margin: 0 0 -18px;
    font-size: 42px;
  }

  .feature .top_title h2 {
    font-size: 22px;
  }

  .feature_list {
    gap: 30px;
    padding: 0;
  }

  .feature_item {
    width: 100%;
  }

  /* 白背景のずらしレイヤーはSPでは使わない */
  .feature_item::before {
    display: none;
  }

  .feature_num {
    top: 15px;
    left: 10px;
    font-size: 11px;
  }

  .feature_item:nth-child(odd) .feature_num, .feature_item:nth-child(even) .feature_num {
    left: 0;
  }

  .feature_img {
    margin: 0 0 0 15px;
  }

  .feature_inner {
    padding: 15px;
  }

  .feature_title {
    width: 100%;
    min-height: auto;
    margin: -20px 0 0;
  }

  .feature_title::after {
    margin-top: 0;
  }

  .feature_title h3 {
    font-size: 15px;
    letter-spacing: 0;
}

  .feature_text {
    margin-top: 18px;
    font-size: 14px;
  }

  .feature_button {
    align-items: center;
    padding-top: 25px;
  }
}

/* ==================================================================================================================================

  *医療コラム（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.column {
  background: var(--bg-color);
}

.column .column_list {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 50px 25px;
  padding: 30px;
  background: #ffffff;
}

.column .column_box {
  width: calc(25% - 18.75px);
}

.column .column_box dt a {
  display: block;
  padding: 15px 10px;
  background: var(--main-color);
  color: #ffffff;
  font-size: 110%;
  text-align: center;
}

.column .column_box dd {
  padding: 10px 10px;
  border-bottom: 1px dashed var(--line-color);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .column .column_list {
    gap: 40px;
  }

  .column .column_box {
    width: 100%;
  }
}

/* ==================================================================================================================================

  *無限スライダー

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
#infinitySlider {
  padding: 10px 0;
}

#infinitySlider .splide__list {
  gap: 10px;
}

#infinitySlider .splide__slide {
  width: 400px !important;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  #infinitySlider .splide__slide {
    width: 300px !important;
  }
}
