@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) {
  /* SPのセクション余白は上下40pxで統一する。
     背景の弧や装飾が上下のセクションに食い込むところだけ、個別に多めに取る */
  section .inner {
    padding: 40px 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-size: 220%;
}

.top_title .eng {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--main-color);
  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: 835px;
  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: 38%;
  left: 0;
  z-index: 3;
  width: 100%;
  transform: translateY(-50%);
}

/* キャッチコピーはACFのテキストフィールドのため <p> で囲まれず
   .inner の直下にテキストが出力される。スタイルは .inner に当てること */
.mvCatch .inner {
  position: relative;
  z-index: 1;
  font-family: var(--font-jp);
  color: #ffffff;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  /*text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);*/
text-shadow: 2px 3px 6px rgba(60, 60, 60, 0.85);
filter: drop-shadow(3px 3px 6px rgba(60, 60, 60, 0.85));
}

/* WYSIWYGに変更された場合の保険 */
.mvCatch .inner p {
  font-size: inherit;
  line-height: inherit;
}

/* ----- MV下部バナー ----- */
.mv_bnr {
  position: absolute;
  left: 0;
  bottom: 76px;
  z-index: 4;
  width: 100%;
}

.mv_bnr ul {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.mv_bnr li {
  flex-shrink: 0;
}

.mv_bnr a {
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s, opacity 0.3s;
}

.mv_bnr a:hover {
  opacity: 0.85;
  transform: translateY(-6px);
}

.mv_bnr img {
  display: block;
  width: 189px;
  height: auto;
}

/* ----- コンテンツ ----- */
.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);
}

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

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* バナーが2列になったぶん（約260px）背を高くして、キャッチと重ならないようにする */
  .mainvisual {
/*     height: 460px; */
	  height: 290px;
  }

  /* ----- スライダーの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: 30%;
/*     bottom: 290px; */
    display: none;
  }

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

  .mvCatch .inner {
    font-size: 20px;
    line-height: 1.75;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }

  /* ----- MV下部バナー ※SPデザイン確定後に要調整 ----- */
/*  .mv_bnr {
    bottom: 15px;
  }*/

  /* 4つ横並びだと1つが小さすぎるので2列に。1つあたり画面幅の1/3 */
/*  .mv_bnr ul {
    flex-flow: wrap;
    justify-content: center;
    gap: 3vw;
  }

  .mv_bnr img {
    width: 33vw;
    max-width: 150px;
  }*/
	
/* ----- MV下部バナー スマホ ----- */
	
.mv_bnr {
  position: inherit;
  left: inherit;
  bottom: inherit;
  z-index: inherit;
  width: inherit;
}
.mv_bnr {
   padding: 15px 0;
  }

.mv_bnr ul {
  display: flex;
  align-items: center;
  flex-flow: wrap;
  justify-content: center;
  gap: 3vw;
}

.mv_bnr li {
  flex-shrink: 0;
}

.mv_bnr a {
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s, opacity 0.3s;
}

.mv_bnr a:hover {
  opacity: 0.85;
  transform: translateY(-6px);
}

.mv_bnr img {
  display: block;
  width: 33vw;
  max-width: 150px;
  height: auto;
}
	
  /* ----- コンテンツ ----- */
  .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;
	      background: url(../images/front/mv_under_bg.jpg) no-repeat center center;
  }

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

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

  *バナーエリア

  ※ 管理画面「バナーエリア」の表示タイプで grid（3カラム）/ slider（スライダー）が切り替わる。
     カードの中身（.banner_slide 以下）は両タイプ共通。

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* ----- 共通設定 ----- */
.top_banner .banner_slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--text-color);
}

/* 画像のみのバナー */
.top_banner .onlyimg .banner_slide {
  height: fit-content;
  padding: 0;
}

.top_banner .onlyimg .banner_slide img {
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.top_banner .onlyimg a.banner_slide:hover img {
  opacity: 0.5;
}

/* インプットバナー */
.top_banner .input .banner_slide {
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 15px;
  background: var(--bg-color);
}

.top_banner .input .banner_slide .slide_img {
  flex-shrink: 0;
  width: calc(30% - 10px);
  height: 100%;
}

.top_banner .input .banner_slide .slide_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top_banner .input .banner_slide .slide_inner {
  width: 100%;
  height: 100%;
  padding: 0 0 10px;
}

.top_banner .input .banner_slide .slide_title {
  margin: 0 auto 10px;
  padding: 5px;
  border-bottom: 1px solid var(--line-color);
  color: var(--main-color);
  font-size: 110%;
  line-height: 1.5;
}

.top_banner .input .banner_slide .slide_content {
  font-size: 90%;
}

.top_banner .input a.banner_slide:hover {
  opacity: 0.6;
}

/* ----- グリッドバナー ----- */
.banner_grid ul {
  display: flex;
  flex-flow: wrap;
  gap: 20px;
}

.banner_grid li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(33.3333333333% - 13.3333333333px);
}

/* ----- スライダーバナー ----- */
#bannerSlider .splide {
  position: relative;
  z-index: 1;
}

#bannerSlider .splide__inner {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

/* スライドの設定  */
#bannerSlider .splide__slide {
  display: flex;
  align-items: center;
  min-height: 200px;
}

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

#bannerSlider .bannerSlider_arrow i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 0 1px 0;
  background: var(--main-color);
  border-radius: 50%;
  font-size: 80%;
  transition: background 0.2s;
}

#bannerSlider .bannerSlider_arrow:hover i {
  background: var(--sub-color);
}

#bannerSlider .bannerSlider_arrow_prev {
  left: 0;
}

#bannerSlider .bannerSlider_arrow_next {
  right: 0;
}

/* ページネーション */
#bannerSlider .bannerSlider_pagination {
  z-index: 1;
  display: flex;
  gap: 15px;
  margin: 30px auto 0;
}

#bannerSlider .bannerSlider_page {
  width: 10px;
  height: 10px;
  background-color: #e8e8e8;
  border-radius: 50%;
  transition: background 0.2s;
}

#bannerSlider .bannerSlider_page.is-active {
  background: var(--main-color);
}

/* ----------------------------------------------------------------------
  ▼ デザイン対応（しもむら耳鼻咽喉科）
---------------------------------------------------------------------- */
.top_banner {
  position: relative;
  z-index: 1;
  background: url(../images/front/mv_under_bg.jpg) no-repeat center center;
  background-size: cover;
}

.top_banner .inner {
  padding: 80px 0 184px;
}

/* 風船の装飾 */
.top_banner::after {
  content: "";
  position: absolute;
  top: -110px;
  right: calc(50% - 952px);
  z-index: 2;
  width: 227px;
  height: 317px;
  background: url(../images/front/mv_under_bnr_husen.png) no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

/* 画像バナーは角丸 */
.top_banner .onlyimg .banner_slide img {
  border-radius: 10px;
}

.top_banner .onlyimg a.banner_slide:hover img {
  opacity: 0.75;
}

/* Arrowボタンを画像に差し替え */
#bannerSlider .bannerSlider_arrow {
  width: 35px;
  height: 35px;
  padding: 0;
  background: none;
  border-radius: 0;
  transition: opacity 0.2s;
}

#bannerSlider .bannerSlider_arrow i {
  display: none;
}

#bannerSlider .bannerSlider_arrow_prev {
  left: 0;
  background: url(../images/front/icon_mv_under_left.png) no-repeat center center;
  background-size: contain;
}

#bannerSlider .bannerSlider_arrow_next {
  right: 0;
  background: url(../images/front/icon_mv_under_right.png) no-repeat center center;
  background-size: contain;
}

#bannerSlider .bannerSlider_arrow:hover {
  opacity: 0.75;
}

/* ページネーション */
#bannerSlider .bannerSlider_page {
  background-color: #ffffff;
}

#bannerSlider .bannerSlider_page.is-active {
  background: var(--sub-color);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* ----- グリッドバナー ----- */
  .banner_grid li {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* ----- スライダーバナー ----- */
  #bannerSlider .splide__inner {
    position: relative;
    z-index: 1;
    padding: 0 15px;
  }

  /* スライダーのArrowボタン */
  #bannerSlider .bannerSlider_arrow {
    width: 30px;
    height: 30px;
  }

  /* ページネーション */
  #bannerSlider .bannerSlider_pagination {
    gap: 12px;
    margin: 20px auto 0;
  }

  #bannerSlider .bannerSlider_page {
    width: 8px;
    height: 8px;
  }

  /* ----- デザイン対応 ----- */
  /* 雲と風船の分だけ上を空ける。PCのように上のセクションへはみ出させると、
     SPは上が白地なので白い雲が消えてしまうため、セクションの中に収める */
  .top_banner .inner {
    padding: 40px 20px 40px;
  }

  .top_banner::after {
    top: 0;
    right: -16px;
    width: 86px;
    height: 120px;
  }
}

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

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

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.clinic {
  position: relative;
  z-index: 1;
  background: var(--bg-color);
}

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

.clinic .news .inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  padding: 100px 0 70px;
}

.clinic .news .news_left {
  flex-shrink: 0;
}

.clinic .news .top_title {
  margin: 0 0 30px;
}

.clinic .news .btn01 {
  margin-top: 30px;
  text-align: center;
}

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

.clinic .info .inner > * {
  width: calc(50% - 20px);
}

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

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

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

.clinic .info address > *::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 0 2px;
  background: var(--main-color);
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ffffff;
  font-size: 16px;
}

.clinic .info address .location {
  padding: 5px 0 5px 50px;
}

.clinic .info address .location::before {
  content: "\f3c5";
}

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

.clinic .info address .tel {
  margin-top: 15px;
  padding: 3px 0 7px 50px;
  font-size: 30px;
  line-height: 1;
}

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

.clinic .info address .fax {
  margin-top: 15px;
  padding: 5px 0 5px 50px;
  font-size: 30px;
  line-height: 1;
}

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

.clinic .info .note {
  margin-top: 20px;
  padding-left: 12px;
  font-size: 90%;
}

.clinic .info .speciality {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px auto 0;
  padding: 20px;
  background: #ffffff;
}

.clinic .info .speciality .title {
  flex-shrink: 0;
  width: fit-content;
  padding: 10px 30px;
  background: var(--main-color);
  color: #ffffff;
  text-align: center;
}

.clinic .info .googlemap iframe {
  height: 350px;
}

.clinic .info .list_access {
  margin-top: 5px;
}

.btnflex.type1 {
  justify-content: center;
}

@media screen and (max-width: 480px) {

  .btnflex.type1 .btn01 {
    margin-top: 15px !important;
  }
}

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

.clinic .info .btn01 {
  margin-top: 30px;
  text-align: center;
}

/* ----------------------------------------------------------------------
  ▼ デザイン対応（しもむら耳鼻咽喉科）

  カンプ上の座標（1920px幅・ページ最上部を0とする）
    お知らせ白枠 1400〜1815 ／ 背面のクリーム色 1386〜1829
    インフォ     1899〜2500（地図 1899〜2313）
  上のバナーエリアは 1514 で終わるため、お知らせを -114px 引き上げて重ねている
---------------------------------------------------------------------- */
.clinic {
  /* バナーエリア(.top_banner)と重なるため上に乗せる */
  z-index: 2;

  /* お知らせ枠のマイナスマージンが .clinic まで相殺で突き抜けると、
     セクション（＝背景の波）まで一緒に上がってしまう。
     flow-root で相殺を止めることで、枠だけが波の上に食い込む */
  display: flow-root;

  /* 背景。画像の上端に波があるので、position を center top にして上端を固定する。
     cover でも起点が top なので切れるのは下か左右だけで、波は必ず残る。
     （100% auto にすると幅を狭めたとき画像が縮んでセクション下部に余白ができる） */
  background: #fff9cf url(../images/front/top_info_bg.jpg) no-repeat center top;
  background-size: cover;
}

/* ===== お知らせ ===== */
/* 左上の丸（お知らせ枠の後ろに敷く） */
.clinic .news::before {
  content: "";
  position: absolute;
  top: -70px;
  left: calc(50% - 775px);
  z-index: -1;
  width: 237px;
  height: 229px;
  background: url(../images/front/top_news_maru_left.png) no-repeat center center;
  background-size: contain;
  pointer-events: none;
}
/* .inner をそのまま白い枠にする（max-width:1200px がカンプの枠幅と一致） */
.clinic .news .inner {
  z-index: auto;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  min-height: 415px;
  margin-top: -59px;
  padding: 35px 0 70px;
  background: #ffffff;
  border-radius: 10px;
}
/* 背面のクリーム色（白枠と同じ大きさで、時計回りにわずかに傾ける）
   カンプ実測：左上と右下に約12〜15px出て、左下・右上は出ない＝平行移動ではなく回転
   傾きを強める／弱める場合は rotate() の角度だけ調整すること */
.clinic .news .inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: #f8de84;
  border-radius: 10px;
  transform: rotate(1.3deg);
}

/* 内側の点線 */
.clinic .news .inner::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border: 3px dotted #f8de84;
  border-radius: 10px;
  pointer-events: none;
}

/* ----- 左側（見出し＋ボタン） ----- */
.clinic .news .news_left {
  width: 368px;
  text-align: center;
  padding-top: 26px;
}

.clinic .news .top_title {
  margin: 0;
}

/* 木のアイコン */
.clinic .news .top_title::before {
  content: "";
  display: block;
  width: 47px;
  height: 68px;
  margin: 0 auto 10px;
  background: url(../images/front/icon_tit_h2_news.png) no-repeat center center;
  background-size: contain;
}

.clinic .news .top_title .eng {
  margin: 0;
  font-family: var(--font-en);
  color: var(--main-color);
  font-size: 65px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.clinic .news .top_title h2 {
  font-family: var(--font-jp);
  color: var(--text-color);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.15em;
}

.clinic .news .btn01 {
  margin-top: 42px;
}

/* ----- 右側（記事リスト） ----- */
.clinic .news #mp-title {
  width: 748px;
  margin-top: 36px;
}

.clinic .news .news_item {
  border-top: 1px solid #f7ecda;
}

.clinic .news .news_item:last-child {
  border-bottom: 1px solid #f7ecda;
}

.clinic .news .news_item > a {
  display: flex;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  min-height: 90px;
  padding: 10px 0;
  color: var(--text-color);
  transition: opacity 0.2s;
}

.clinic .news .news_item > a:hover {
  opacity: 0.6;
}

.clinic .news .news_info {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 29px;
  width: 211px;
}

.clinic .news .news_info .date {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.clinic .news .news_info .cate {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 110px;
  height: 30px;
  padding: 0 5px;
  background: var(--main-color);
  border-radius: 5px;
  color: #ffffff;
  font-size: 15px;
  font-style: normal;
  line-height: 1.2;
  text-align: center;
}

.clinic .news .news_title {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.clinic .news .news_empty {
  padding: 30px 0;
  font-size: 16px;
}

/* ===== インフォ ===== */
.clinic .info .inner {
  padding: 102px 0 240px;
}

.clinic .info .btn01 {
  margin-top: 32px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* ----- 背景（SPは専用画像に差し替え） ----- */
  /* PCの1枚絵（top_info_bg.jpg・1920×1297）を cover のままSPで使うと、
     縦長のセクションを覆うために画像が5倍以上に拡大されて水彩がぼやける。
     SPは 上端の波（top_news_wave_sp.jpg・1920×22）と
     地の黄色（top_news_bg_sp.jpg）に分けて、どちらも拡大せずに敷く。
       波   … 原寸のまま repeat-x（波1山が240pxでPCと同じ大きさになる）
       黄色 … 幅だけ画面に合わせて repeat-y（上端と下端がほぼ同色なので継ぎ目が出ない） */

       .clinic {
        background: url(../images/front/top_news_wave_sp.png) repeat-x center top,
          url(../images/front/top_news_bg_sp.jpg) repeat-y center top;
        background-color: #fff9cf;
        background-size: 100%, 100% auto;
    }

  /* ----- お知らせ ----- */
  /* PCは白枠を上のセクションに食い込ませているが、SPは上端の波を隠してしまうので
     引き上げをやめて、セクション側に上余白を持たせる */
  .clinic .news {
    padding: 40px 15px;
  }

  .clinic .news .inner {
    flex-flow: column;
    align-items: center;
    gap: 0;
    min-height: 0;
    margin-top: 0;
    padding: 40px 20px;
  }

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

  .clinic .news .top_title::before {
    width: 36px;
    height: 52px;
  }

  .clinic .news .top_title .eng {
    font-size: 42px;
  }

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

  .clinic .news #mp-title {
    width: 100%;
    margin-top: 25px;
  }

  .clinic .news .news_item > a {
    flex-flow: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 0;
    padding: 18px 0;
  }

  .clinic .news .news_title {
    font-size: 14px;
    white-space: normal;
  }

  .clinic .news .news_empty {
    font-size: 14px;
  }

  .clinic .news .news_info .date,
  .clinic .news .news_info .cate {
    font-size: 13px;
  }

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

  .clinic .info .inner > * {
    width: 100%;
  }

  .clinic .info .speciality {
    flex-flow: column;
    gap: 10px;
    height: auto;
    padding: 10px;
  }

  .clinic .info .speciality .title {
    width: 100%;
  }
}

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

  *ご挨拶（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.greeting {
  position: relative;
  z-index: 2;
  margin-top: -119px;
  padding-top: 20px;
  background: url(../images/front/top_feature_under.png) repeat-x center bottom -282px,
  url(../images/front/top_greeting_bg.png) no-repeat center top;
}

.greeting .inner {
  padding: 100px 0 240px;
}
.greeting_box {
  position: relative;
  z-index: 1;
}

.greeting_flex {
  display: flex;
  gap: 50px;
}

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

.greeting_left {
  flex-shrink: 0;
  width: 60%;
}

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

.greeting_profile {
  padding: 20px;
  background: var(--main-color);
  color: #ffffff;
  line-height: 1.75;
  text-align: center;
}

.greeting_profile .position {
  font-size: 130%;
}

.greeting_profile .name {
  font-size: 150%;
}

.greeting_btn {
  margin-top: 50px;
  text-align: center;
}

/* ----------------------------------------------------------------------
  ▼ デザイン対応（しもむら耳鼻咽喉科）

  カンプ上の座標（1920px幅・ページ最上部を0とする）
    太陽アイコン 2745〜2817 ／ GREETING 2822〜2900 ／ ご挨拶 2949〜2975
    本文    3043〜3513（18px・行間2 ＝ 36px/行、左カラム 360〜1060）
    写真枠  2985〜3399（414×414、右カラム 1100〜1560 の右寄せ）
    肩書き  3447〜3533 ／ ボタン 3550〜3610（本文カラムの中央 x=710）
  ※セクションの上下位置（上のセクションへの被り）は背景を敷くときに調整する
---------------------------------------------------------------------- */
/* ===== セクション背景 ===== */
/* ===== 見出し ===== */
.greeting .top_title {
  margin: 0 0 10px;
}

/* 太陽アイコン */
.greeting .top_title::before {
  content: "";
  display: block;
  width: 74px;
  height: 72px;
  margin: 0 auto 5px;
  background: url(../images/front/icon_tit_h2_greeting.png) no-repeat center center;
  background-size: contain;
}

.greeting .top_title .eng {
  margin: 0;
  font-family: var(--font-en);
  color: #ffffff;
  font-size: 65px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.greeting .top_title h2 {
  margin-top: 6px;
  font-family: var(--font-jp);
  color: var(--text-color);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.15em;
}

/* ===== 本文＋写真 ===== */
.greeting .greeting_flex {
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.greeting .greeting_left {
  flex-shrink: 0;
  width: 700px;
  margin-top: 58px;
}

.greeting .greeting_text {
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: justify;
}

.greeting .greeting_right {
  flex-shrink: 0;
  width: 460px;
  padding-top: 66px;
  padding-right: 24px;
}

/* ===== ドクター写真（丸枠＋ひまわり） ===== */
.greeting .greeting_img {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 414px;
  height: 414px;
  margin-left: auto;
}

/* 囲みの枠 */
.greeting .greeting_img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: url(../images/front/top_doctor_img_waku.png) no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

/* ひまわり */
.greeting .greeting_img::after {
  content: "";
  position: absolute;
  top: 249px;
  left: 304px;
  z-index: 3;
  width: 133px;
  height: 179px;
  background: url(../images/front/top_doctor_img_himawari.png) no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

.greeting .greeting_img img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== 肩書き・氏名 ===== */
.greeting .greeting_profile {
  margin-top: 24px;
  padding: 0;
  background: none;
  color: var(--text-color);
  font-family: var(--font-jp);
  line-height: 1.8;
  text-align: center;
}

.greeting .greeting_profile .position {
  font-size: 20px;
  letter-spacing: 0.1em;
}

.greeting .greeting_profile .name {
  font-size: 25px;
  letter-spacing: 0.1em;
}

/* 「院長」だけ小さく */
.greeting .greeting_profile .name span {
  margin-right: 18px;
  font-size: 20px;
}

/* ===== ボタン（本文カラムの中央に置く） ===== */
.greeting .greeting_btn {
  width: 700px;
  margin-top: 28px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* ----- 背景（SPは専用画像に差し替え） ----- */
  /* PCの空（top_greeting_bg.png・1920幅）は原寸のままだとSPで中央だけ切り取られ、
     雲がほとんど見えない。SP用の640幅の画像に差し替えて画面幅に合わせる。
     下端の草はPCと同じ素材を原寸で敷いて、はみ出す分は下に逃がす */
     .greeting {
      margin-top: -30px;
      padding-top: 0;
      background: url(../images/front/top_feature_under.png) repeat-x center bottom -70px,
            url(../images/front/top_greeting_up_sp.png) no-repeat center top;
      background-size: 640px,100%;
  }

  /* 下端の草（92px）にボタンが乗らないよう下だけ多めに取る */
  .greeting .inner {
    padding: 40px 20px 120px;
  }

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

  .greeting_left {
    width: 100%;
  }

  .greeting_btn {
    margin-top: 40px;
  }
  .greeting .greeting_profile .position {
    font-size: 15px;
    letter-spacing: 0;
}
.greeting .greeting_profile .name {
  font-size: 18px;
  letter-spacing: 0;
}
.greeting .greeting_profile .name span {
  margin-right: 12px;
  font-size: 15px;
}

  /* ----- デザイン対応 ----- */
  /* PC用に固定幅（700px / 460px / 414px）を入れてあり、ベースのSP指定より
     詳細度が高くて効いてしまう。SPでは画面幅に収まるよう打ち消す */
  .greeting .greeting_left,
  .greeting .greeting_right,
  .greeting .greeting_btn {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    padding-right: 0;
  }

  .greeting .greeting_text {
    font-size: 14px;
  }

  /* ドクター写真。ひまわりも写真の大きさに合わせて縮める */
  .greeting .greeting_img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .greeting .greeting_img img {
    width: 96.6%;
    height: 96.6%;
  }

  .greeting .greeting_img::after {
    top: 60%;
    left: 73%;
    width: 32%;
    height: 43%;
  }

  .greeting .greeting_btn {
    margin-top: 30px;
  }
}

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

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

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.medical {
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url(../images/common/dmy.jpg) no-repeat center/cover;
}

.medical .top_title {
  color: #ffffff;
}

.medical .top_title span {
  color: var(--main-color);
}

.medical_list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 20px;
}

.medical_item {
  position: relative;
  z-index: 1;
  width: calc(25% - 15px);
  height: auto;
}

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

.medical_img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}

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

.medical_inner {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 270px;
  padding: 30px 20px 40px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

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

.medical_icon {
  width: 70%;
  max-width: 80px;
  margin: 0 auto 15px !important;
}

.medical_title h3 {
  color: var(--text-color);
  font-size: 120%;
}

.medical_title_eng {
  margin-top: 5px;
  color: var(--main-color);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
}

.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);
}

/* ----- 先頭2つの設定----- */
.medical_item:nth-of-type(-n + 2) {
  width: calc(50% - 10px);
  min-height: 350px;
}

.medical_item:nth-of-type(-n + 2) .medical_inner {
  padding: 20px 20px 40px;
}

.medical_item:nth-of-type(-n + 2) .medical_icon {
  max-width: 100px;
  margin: 0 auto 5px !important;
}

.medical_item:nth-of-type(-n + 2) .medical_title h3 {
  font-size: 150%;
}

/* ----------------------------------------------------------------------
  ▼ デザイン対応（しもむら耳鼻咽喉科）

  カンプ上の座標（1920px幅・ページ最上部を0とする）
    チューリップ 3980〜4053 ／ MEDICAL 4071〜4149 ／ 診療案内 4149〜4175
    上段の丸 4240〜4561（332×321・3個・間隔30px）
    下段の丸 4610〜4833（231×223・5個・間隔8px）／ 段間 49px
  ※日本語・英語タイトルはACFのテキスト。丸の画像には焼き込まれていないので重ねて配置する
  ※背景（top_medical_bg.png）は後で敷く
---------------------------------------------------------------------- */
.medical {
  position: relative;
  z-index: 2;
  margin-top: -118px;
  background: url(../images/front/top_medical_bg.png) no-repeat center top;
  padding-top: 117px;
}
.medical .inner {
  padding: 110px 0 180px;
}
/* ===== 見出し ===== */
.medical .top_title {
  margin: 0 0 65px;
  color: var(--text-color);
}

/* チューリップのアイコン */
.medical .top_title::before {
  content: "";
  display: block;
  width: 67px;
  height: 73px;
  margin: 0 auto 18px;
  background: url(../images/front/icon_tit_h2_medical.png) no-repeat center center;
  background-size: contain;
}

.medical .top_title .eng {
  margin: 0;
  font-family: var(--font-en);
  color: var(--main-color);
  font-size: 65px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.medical .top_title h2 {
  font-family: var(--font-jp);
  color: var(--text-color);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.15em;
}

/* ===== 一覧 ===== */
.medical .medical_list {
  justify-content: center;
  gap: 49px 8px;
}

/* .medical_inner を絶対配置にすると、a の中の改行（空白テキスト）が行ボックスを作り、
   本文の行送り分だけ余計に背が高くなる。flex にすると空白が無視されるので防げる */
.medical .medical_item {
  display: flex;
  flex-flow: column;
  /* ベースの「先頭2つの設定」(.medical_item:nth-of-type(-n+2)) の min-height を打ち消す */
  min-height: 0;
}

/* 上段（大きい丸・3個）
   列の間隔を30pxにしたいので、gapの8pxに左右11pxずつ足している */
.medical .medical_item:nth-child(-n+3) {
  width: 332px;
  margin: 0 11px;
}

/* 下段（小さい丸・5個） */
.medical .medical_item:nth-child(n+4) {
  width: 231px;
}

/* 丸の画像（ベースでは背景扱いの絶対配置なので、通常の画像に戻す） */
.medical .medical_img {
  position: static;
  width: 100%;
  height: auto;
  transform: none;
}

.medical .medical_img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
}

/* ===== 文字（丸の上に重ねる） =====
   セレクタを .medical_item 経由にしているのは、ベースの
   .medical_item:nth-of-type(-n+2) .medical_inner（padding指定）に競り勝つため */
.medical .medical_item .medical_inner {
  position: absolute;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  background: none;
  text-align: center;
}

.medical .medical_item:nth-child(-n+3) .medical_inner {
  top: 191px;
}

.medical .medical_item:nth-child(n+4) .medical_inner {
  top: 120px;
}

.medical .medical_title h3 {
  font-family: var(--font-jp);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.medical .medical_title_eng {
  margin-top: 5px;
  font-family: var(--font-en);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.medical .medical_item:nth-child(-n+3) .medical_title h3 {
  font-size: 22px;
}

.medical .medical_item:nth-child(-n+3) .medical_title_eng {
  font-size: 16px;
}

.medical .medical_item:nth-child(n+4) .medical_title h3 {
  font-size: 18px;
}

.medical .medical_item:nth-child(n+4) .medical_title_eng {
  font-size: 12px;
}

/* ===== 矢印 =====
   白丸＋丸と同じ色のシェブロン。丸の画像には焼き込まれていないのでここで重ねる。
   素材は白丸込みなので、CSSで丸を作る必要はない */
.medical .medical_item::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 3;
  width: 24px;
  height: 24px;
  margin-left: -13px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.medical .medical_item:nth-child(-n+3)::after {
  top: 261px;
}

.medical .medical_item:nth-child(n+4)::after {
  top: 175px;
}
/* 丸の色に合わせて 緑 → オレンジ → 黄 の順に繰り返す */
.medical .medical_item:nth-child(3n+1)::after {
  background-image: url(../images/front/icon_arrow_medical.png);
}

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

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

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* ベースはSPで背景を写真（dmy.jpg）に戻してしまうので、PCと同じ弧の画像に敷き直す。
     画像は1920×1329。幅を画面に合わせると高さ約260pxで足りないため、
     画像下端と同じ色（#f3fed4）を地色に置いて下を埋める。
     弧の落ち込みは中央118px（1920幅換算）＝SPでは約23pxなので、その分だけ上に重ねる */
     .medical {
      margin-top: -109px;
      padding-top: 123px;
      background: url(../images/front/top_medical_bg.png) no-repeat center top;
      background-size: 960px 100%;
  }
  .medical .inner {
    padding: 20px 0 40px;
}
  .medical_list {
    gap: 15px 10px;
  }

  .medical_item {
    width: calc(50% - 5px);
  }

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

  .medical_inner {
    min-height: auto;
    padding: 20px 10px;
  }

  .medical_icon {
    width: 50%;
  }

  .medical_title h3 {
    font-size: 110%;
  }

  /* ----- 先頭2つの設定----- */
  .medical_item:nth-of-type(-n + 2) {
    width: 100%;
    min-height: auto;
  }

  .medical_item:nth-of-type(-n + 2) .medical_inner {
    padding: 15px 20px 30px;
  }

  .medical_item:nth-of-type(-n + 2) .medical_icon {
    width: 30%;
  }

  .medical_item:nth-of-type(-n + 2) .medical_title h3 {
    font-size: 140%;
  }
}

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

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

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

.feature_list {
  display: flex;
  flex-flow: wrap;
  gap: 50px 30px;
}

.feature_item {
  display: flex;
  flex-flow: column;
  width: calc(33.3333333333% - 20px);
  height: auto;
}

.feature_num {
  margin: 0 0 0 !important;
  font-size: 150%;
}

.feature_num span {
  color: var(--main-color);
  font-size: 140%;
}

.feature_inner {
  display: flex;
  flex-flow: column;
  height: 100%;
  padding: 25px 20px 30px;
  background: #ffffff;
}

.feature_title {
  display: flex;
  flex-flow: column;
  justify-content: center;
  min-height: 70px;
  margin-bottom: 15px;
}

.feature_title h3 {
  color: var(--main-color);
  font-size: 130%;
  line-height: 1.75;
  text-align: center;
}

.feature_button {
  display: flex;
  flex-flow: column;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 25px;
}

.feature_button .btn01 {
  text-align: center;
}

/* ----------------------------------------------------------------------
  ▼ デザイン対応（しもむら耳鼻咽喉科）

  カンプ上の座標（1920px幅・ページ最上部を0とする）
    虹 5140〜5213 ／ FEATURE 5219〜5297 ／ 当院の特徴 5302〜5328
    白カード 338×588（上段 5443〜6031 ／ 下段 6143〜6731）
    背面の色タブ 300×350（カードの左に30px・上に60px はみ出す）
    カードのピッチ 415px（＝カード338 + 余白48 + タブのはみ出し30）
  ※背景（top_feature_bg.png / top_feature_under.png）は後で敷く
---------------------------------------------------------------------- */
.feature {
  position: relative;
  z-index: 2;

  /* 背景は2枚重ね。どちらも原寸のまま（background-size なし）なので、
     ウィンドウ幅が変わっても上下には動かない。横だけ中央寄せ。
     ・雲・ヘリコプター・紙飛行機（top_feature_bg.png）… 塗りは無く装飾だけの画像。上端に固定
     ・草原（top_feature_under.png）… 下端に固定。横は repeat-x で1920px超の画面でも途切れない
     セクション自体の地色は白（＝ページの地）のまま */
  background:
    url(../images/front/top_feature_under.png) repeat-x center bottom,
    url(../images/front/top_feature_bg.png) no-repeat center top;
}

/* 上端の波（白）。セクションの外に出して、上のセクションに少しだけ被せる。
   1920pxより広い画面でも途切れないよう repeat-x、位相は中央基準 */
.feature::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 8px;
  background: url(../images/front/top_feature_bg_wave.png) repeat-x center top;
  pointer-events: none;
}

.feature .inner {
  padding: 125px 0 184px;
}
/* ===== 見出し ===== */
.feature .top_title {
  margin: 0 0 115px;
  color: var(--text-color);
}

/* 虹のアイコン */
.feature .top_title::before {
  content: "";
  display: block;
  width: 108px;
  height: 73px;
  margin: 0 auto 6px;
  background: url(../images/front/icon_tit_h2_feature.png) no-repeat center center;
  background-size: contain;
}

.feature .top_title .eng {
  margin: 0 0 5px;
  font-family: var(--font-en);
  color: var(--sub-color);
  font-size: 65px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.feature .top_title h2 {
  font-family: var(--font-jp);
  color: var(--text-color);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.15em;
}

/* ===== カード一覧 =====
   カードは338px。左に30pxはみ出す色タブぶんを margin-left で確保し、
   カード同士の間隔は gap 48px。合計 338+48+30 = 416px ピッチになる */
   .feature .feature_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 120px 48px;
}

.feature .feature_item {
  position: relative;
  /* z-index を持たせるとスタッキングコンテキストが作られ、
     背面の色タブ(::before / z-index:-1)が白カードの背景より後ろに回れなくなる */
  z-index: auto;
  box-sizing: border-box;
  display: flex;
  flex-flow: column;
  width: 338px;
  /* 高さは固定しない。本文が増えても伸びるように min-height にする。
     同じ行のカード同士は align-items:stretch（既定）で自動的に高さが揃う */
  min-height: 588px;
  margin-left: 30px;
  padding: 30px 18px 27px;
  background: #ffffff;
  border: 1px solid var(--sub-color);
  border-radius: 10px;
}

/* 背面の色タブ（カードの左上にはみ出す） */
.feature .feature_item::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -30px;
  z-index: -1;
  width: 300px;
  height: 350px;
  background: var(--sub-color);
  /* 左上のみ40px、他は20px（Illustratorの角丸設定より） */
  border-radius: 40px 20px 20px 20px;
}

/* ===== Feature 01 ===== */
.feature .feature_num {
  position: absolute;
  top: -55px;
  left: -4px;
  z-index: 1;
  margin: 0;
  font-family: var(--font-en);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  line-height: 48px;
  letter-spacing: 0.02em;
}

.feature .feature_num span {
  margin-left: 2px;
  color: #ffffff;
  font-size: 40px;
}

/* ===== 写真 ===== */
.feature .feature_img {
  flex-shrink: 0;
  width: 300px;
  margin: 0 auto;
}

.feature .feature_img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== 見出し・本文・ボタン ===== */
.feature .feature_inner {
  display: flex;
  flex-flow: column;
  flex-grow: 1;
  margin: 0;
  padding: 0;
  background: none;
}

/* ベースの min-height:70px を打ち消す（カンプは1行41px、5枚目だけ2行） */
.feature .feature_title {
  min-height: 0;
  margin: 15px 0 0;
  padding: 0;
  background: none;
}

.feature .feature_title h3 {
  font-family: var(--font-jp);
  color: var(--sub-color);
  font-size: 22px;
  line-height: 1.85;
  letter-spacing: 0.08em;
  text-align: center;
}

/* 下段はタイトルが1行と2行で混在するので、高さを2行ぶんに固定して中央寄せにし、
   本文の開始位置を揃える。上段は全て1行なので、この指定は入れない */
.feature .feature_item:nth-child(n+4) .feature_title h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 81px;
}

/* 下段はタイトルが1行ぶん高いので、下限もその分だけ上げる。
   これも固定ではなく下限なので、本文が増えればさらに伸びる */
.feature .feature_item:nth-child(n+4) {
  min-height: 628px;
}

.feature .feature_text {
  margin-top: 7px;
  padding: 0 10px;
  font-size: 17px;
  line-height: 1.882;
  letter-spacing: 0.05em;
  text-align: justify;
}

/* ボタンはカードの下端に固定（本文の長さに関係なく高さを揃える） */
.feature .feature_button {
  margin-top: auto;
  padding: 0;
}

/* ===== 偶数枚目は緑 ===== */
.feature .feature_item:nth-child(even) {
  border-color: var(--main-color);
}

.feature .feature_item:nth-child(even)::before {
  background: var(--main-color);
}

.feature .feature_item:nth-child(even) .feature_title h3 {
  color: var(--main-color);
}

.feature .feature_item:nth-child(even) .btn01 a {
  background: var(--main-color);
  border-color: #cfe79d;
}

.feature .feature_item:nth-child(even) .btn01 a::after {
  background-image: url(../images/front/icon_arrow_btn_green.png);
}

/* ===== 装飾のコアラ ===== */
/* 3枚目の右上 */
.feature .feature_item:nth-child(3)::after {
  content: "";
  position: absolute;
  top: -86px;
  left: 192px;
  width: 129px;
  height: 121px;
  background: url(../images/front/feature_koara.png) no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: -1;
}

/* 4枚目の左（草むらから覗く） */
.feature .feature_item:nth-child(4)::after {
  content: "";
  position: absolute;
  top: 388px;
  left: -65px;
  z-index: 2;
  width: 85px;
  height: 67px;
  background: url(../images/front/top_feature_koara_under.png) no-repeat center center;
  background-size: contain;
  pointer-events: none;
}

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

  .feature_item {
    width: 100%;
  }

  .feature .feature_text {
    font-size: 14px;
  }

  .feature_title {
    min-height: auto;
    margin-bottom: 15px !important;
  }
}

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

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

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.search {
  position: relative;
}

.search .tab_list {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}

.search .tab_list li {
  display: flex;
  flex: 1;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 10px 20px;
  background: #a9a9a9;
  color: #ffffff;
  font-size: 140%;
  cursor: pointer;
  transition: transform 0.2s, padding 0.2s;
}

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

/* ----- パネル ----- */
.search .panel {
  display: none;
  margin: 0 !important;
  padding: 20px;
  background: var(--bg-color);
}

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

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

.search_list a {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 60px;
  padding: 10px 30px;
  background: #ffffff;
  color: var(--text-color);
  font-size: 110%;
}

/* ----- 画像あり ----- */
.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);
}

/* ----------------------------------------------------------------------
  ▼ デザイン対応（しもむら耳鼻咽喉科）

  カンプ上の座標（1920px幅・ページ最上部を0とする）
    花 7100〜7173 ／ SEARCH 7172〜7250 ／ 症状から探す 7249〜7275
    タブ 7355〜7445（380×90・3個・間隔30px）／ 吹き出しの三角 22×21
    白パネル 7450〜（1200幅・角丸20）
    画像 550×412 ／ 項目ボタン 245×80（角丸7・2列）
  ※背景（top_search_bg.png）は後で敷く
---------------------------------------------------------------------- */
.search {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  background: url(../images/front/top_search_bg.png) no-repeat center top;
}

.search .inner {
  padding: 253px 0 300px;
}
/* ===== 見出し ===== */
.search .top_title {
  margin: 0 0 80px;
  color: var(--text-color);
}

/* 花のアイコン */
.search .top_title::before {
  position: relative;
  content: "";
  display: block;
  width: 60px;
  height: 73px;
  margin: 0 auto;
  background: url(../images/front/icon_tit_h2_search.png) no-repeat center center;
  background-size: contain;
  top: -20px;
}
.search .top_title .eng {
  margin: 0;
  font-family: var(--font-en);
  color: var(--main-color);
  font-size: 65px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.search .top_title h2 {
  font-family: var(--font-jp);
  color: var(--text-color);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.15em;
}

/* ===== タブ ===== */
.search .tab_list {
  gap: 30px;
}

.search .tab_list li {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  flex-flow: row;
  height: 90px;
  /* 左右同じ余白にして文字をタブの中央に置く。アイコンは絶対配置で重ねる */
  padding: 0 84px;
  background: #b5bca5;
  border-radius: 45px;
  /* 内側の点線。疑似要素を使わず outline + マイナスオフセットで内側に引く */
  outline: 2px dotted #ffffff;
  outline-offset: -5px;
  font-family: var(--font-jp);
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
  transition: background 0.2s;
}

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

/* ===== タブのアイコン ===== */
.search .tab_list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 29px;
  width: 55px;
  height: 55px;
  margin-top: -27px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  pointer-events: none;
}

.search .tab_list li:nth-child(1)::before {
  background-image: url(../images/front/icon_search01.png);
}

.search .tab_list li:nth-child(2)::before {
  background-image: url(../images/front/icon_search02.png);
}

.search .tab_list li:nth-child(3)::before {
  background-image: url(../images/front/icon_search03.png);
}

/* icon_search02/03 は記号がくり抜かれているのでタブの地色がそのまま記号の色になるが、
   icon_search01（耳）だけ緑のインクで描かれていて非選択時も緑のまま残る。
   そのため非選択のタブはアイコン自体をグレースケールにする */
.search .tab_list li:not(.is-active)::before {
  filter: grayscale(1);
}

/* 選択中のタブから下に出る吹き出しの三角 */
.search .tab_list li.is-active::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 2;
  margin-left: -11px;
  border-style: solid;
  border-width: 21px 11px 0;
  border-color: var(--main-color) transparent transparent;
}

/* ===== パネル ===== */
/* タブとの間に10pxの隙間を空ける */
.search .panel_wrapper {
  margin-top: 10px;
}

.search .panel {
  padding: 45px 50px;
  background: #ffffff;
  border-radius: 20px;
}

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

.search .panel_flex.is-active {
  flex-flow: nowrap;
  align-items: flex-start;
  gap: 27px;
}

.search .panel_flex .search_img {
  flex-shrink: 0;
  width: 550px;
}

.search .panel_flex .search_img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 項目のボタン ===== */
.search .panel_flex .search_list {
  flex: 1;
  width: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 25px;
}

.search .search_list a {
  box-sizing: border-box;
  min-height: 80px;
  padding: 10px 26px 10px 15px;
  background: var(--main-color);
  border-radius: 7px;
  color: #ffffff;
  font-family: var(--font-jp);
  font-size: 18px;
  line-height: 1.556;
  letter-spacing: 0.05em;
  text-align: center;
  transition: background 0.2s;
}

/* ボタンの4px外側に出る1pxの線。カンプをピクセル単位で確認したところ、
   ボタン本体との間に白い隙間があり、その外に細い線が回っている */
.search .search_list a::before {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  border: 1px solid var(--main-color);
  border-radius: 11px;
  pointer-events: none;
  transition: border-color 0.2s;
}

.search .search_list a:hover::before {
  border-color: var(--sub-color);
}

/* 右端の矢印（素材が無いのでCSSで作成） */
.search .search_list a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
}

.search .search_list a:hover {
  background: var(--sub-color);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .search .inner {
    padding: 173px 10px 150px;
  }

  .search .top_title {
    margin: 0 0 40px;
  }

  /* 花のアイコン（PCは60×73） */
  .search .top_title::before {
    position: relative;
    top: -20px;
    width: 50px;
    height: 63px;
    margin: 0 auto;
  }

  .search .tab_list {
    flex-flow: column;
    gap: 7px;
    margin: 0 0 15px;
  }

  .search .tab_list .tab {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 14px 15px 14px 60px !important;
    background-position: 15px center;
    background-size: 36px 36px;
    border-radius: 30px;
    font-size: 18px;
    transform: translate(0, 0) !important;
  }

  /* タブのアイコン。PCは55×55でタブ高さ90px前提。SPはタブが約50pxになるので
     はみ出す。アイコンも縮めて左に寄せる */
  .search .tab_list li::before {
    left: 14px;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 26px;
  }

  /* SPは縦並びなので吹き出しの三角は出さない */
  .search .tab_list li.is-active::after {
    display: none;
  }

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

  /* ----- 項目 ----- */
  /* PCは min-height 80px。SPは1列なので縦に伸びてスクロールが増える。
     高さを詰めて、行間（ボタンの4px外側の線ぶんを含む）も狭くする */
  .search .search_list a {
    min-height: 44px;
    padding: 8px 26px 8px 14px;
    font-size: 14px;
    line-height: 1.4;
  }

  .search .panel_flex .search_list {
    gap: 14px;
  }

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

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

  .search .panel_flex .search_img {
    width: 100%;
  }

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

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

  *医療コラム（パターン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;
}

/* ----------------------------------------------------------------------
  ▼ デザイン対応（しもむら耳鼻咽喉科）

  カンプ上の座標（1920px幅・ページ最上部を0とする）
    スライド 520×380 ／ 間隔25px ／ 1枚おきに57px下げる
    上段のスライド 8120〜8500 ／ 下段のスライド 8177〜8557
---------------------------------------------------------------------- */
#infinitySlider {
  position: relative;
  z-index: 2;
  padding: 0 0 50px;
  background: url(../images/front/top_slider_bg.png) no-repeat 131% 93%;
  margin-top: -116px;
}

#infinitySlider .splide__list {
  position: relative;
  align-items: flex-start;
  gap: 25px;
  z-index: 2;
}

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

/* 1枚おきに下げて段差をつける。
   Splideのクローンは要素ごと複製されるので、nth-child ではなく
   PHP側で付けたクラスで持たせないとループ時に段差の並びが崩れる */
#infinitySlider .splide__slide.slide_lower {
  margin-top: 57px;
}

#infinitySlider .splide__slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  #infinitySlider {
    padding: 0 0 25px;
  }

  #infinitySlider .splide__list {
    gap: 12px;
  }

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

  #infinitySlider .splide__slide.slide_lower {
    margin-top: 28px;
  }
}

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

  *セクション見出し（SP・デザイン対応）

  各セクションのデザイン対応で英語65px・日本語22pxを直接指定しており、
  共通の SP 指定（.top_title .eng）では詳細度で負けて効かない。
  同じ詳細度で後から当てる必要があるので、ファイルの最後にまとめている。
  65pxのままだと「GREETING」が画面幅に収まらず2行に折れる。

================================================================================================================================== */
@media screen and (max-width: 640px) {
  .clinic .news .top_title .eng,
  .greeting .top_title .eng,
  .medical .top_title .eng,
  .feature .top_title .eng,
  .search .top_title .eng {
    font-size: 42px;
  }

  .clinic .news .top_title h2,
  .greeting .top_title h2,
  .medical .top_title h2,
  .feature .top_title h2,
  .search .top_title h2 {
    font-size: 18px;
  }
}

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

  *診療案内の一覧（SP・デザイン対応）

  デザイン対応でPCの固定幅（上段332px・下段231px）を入れており、
  ベースのSP指定（.medical_item { width: calc(50% - 5px) }）では詳細度で負ける。
  同じ詳細度で後から当てる必要があるので、ここにまとめている。
  ベースは先頭2つだけ1列（width:100%）にする作りだが、全部2列で揃える。

================================================================================================================================== */
@media screen and (max-width: 640px) {
  .medical .medical_list {
    justify-content: center;
    gap: 24px 10px;
  }

  /* min-width を 0 にしないと、丸画像の実寸（332px）が下限になって
     2つ目が次の行に落ちる（フレックスアイテムの min-width: auto） */
  .medical .medical_item:nth-child(-n+3),
  .medical .medical_item:nth-child(n+4),
  .medical .medical_item:nth-of-type(-n+2) {
    width: calc(50% - 5px);
    max-width: 200px;
    min-width: 0;
    /* 上段3つはPCで左右11pxのマージンが付いており、
       付いたままだと2つ並ばず1列に落ちる */
    margin: 0;
  }

  /* 文字は丸の上に絶対配置で、PCは top を px 決め打ち（上段191px・下段120px）。
     SPは丸が小さくなるので、同じ比率になるよう % に置き換える */
  .medical .medical_item:nth-child(-n+3) .medical_inner {
    top: 57%;
    padding: 0 10px;
  }

  .medical .medical_item:nth-child(n+4) .medical_inner {
    top: 52%;
    padding: 0 10px;
  }

  .medical .medical_item:nth-child(-n+3) .medical_title h3, .medical .medical_item:nth-child(n+4) .medical_title h3 {
    font-size: 14px;
    letter-spacing: 0;
}

.medical .medical_item:nth-child(-n+3) .medical_title_eng, .medical .medical_item:nth-child(n+4) .medical_title_eng {
  font-size: 10px;
  letter-spacing: 0;
}

  /* 矢印はSPでは非表示。丸が小さく文字とぶつかるため（丸ごとリンクなので機能は変わらない） */
  .medical .medical_item::after {
    display: none;
  }

  /* セクション見出しのチューリップも一回り小さく（PCは67×73） */
  .medical .top_title::before {
    width: 57px;
    height: 63px;
  }

  .medical .top_title {
    margin: 0 0 25px;
  }

  /* PCの .medical .inner（110px 0 180px）が section .inner より詳細度が高く、
     SPでも残ってしまうのでここで上書きする */
  .medical .inner {
    padding: 20px 10px 40px;
  }
}

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

  *当院の特徴（SP・デザイン対応）

  デザイン対応で入れたPC用の指定（背景・余白・カードの間隔）が
  共通のSP指定より詳細度が高くて残るので、ここでまとめて上書きする。

================================================================================================================================== */
@media screen and (max-width: 640px) {
  /* 背景。PCの雲・ヘリコプター（1920px）を原寸で敷くと中央しか見えないので、
     画面幅に合わせて全体を入れる。下端の草はSP用の画像（640×81）に差し替え */
  .feature {
    background:
      url(../images/front/top_feature_bg_under_sp.png) no-repeat center bottom,
      url(../images/front/top_feature_bg.png) no-repeat center top;
    background-size: 100% auto, 100% auto;
  }

  /* 下は草（約47px）に文字が乗らないぶんだけ多めに取る */
  .feature .inner {
    padding: 40px 20px 90px;
  }

  /* カード左上の色タブは上に60pxはみ出す（.feature_item::before の top: -60px）。
     見出しの下余白はその60pxを見込んで取らないと、タブと重なる */
  .feature .top_title {
    margin: 0 0 85px;
  }

  /* 虹のアイコン（PCは108×73） */
  .feature .top_title::before {
    width: 88px;
    height: 60px;
  }

  /* カードは1列。カード同士の間隔もタブのはみ出し60pxを見込む */
  .feature .feature_list {
    gap: 80px;
  }

  /* 画像はPCで300px固定。カードが画面幅に縮むとはみ出すので追従させる */
  .feature .feature_img {
    width: 100%;
  }

  .feature .feature_item,
  .feature .feature_item:nth-child(n+4) {
    width: 100%;
    max-width: 350px;
    min-height: 100%;
  }

  .feature .feature_title h3 {
    font-size: 19px;
    line-height: 1.85;
    letter-spacing: 0;
  }

  .feature .feature_item:nth-child(n+4) .feature_title h3 {
    min-height: 61px;
  }

  .feature .feature_button {
    margin-top: 20px;
    padding: 0;
  }

  /* コアラも一回り小さく（PCは129×121 / 85×67） */
  .feature .feature_item:nth-child(3)::after {
    top: -46px;
    width: 79px;
    height: 71px;
  }

  .feature .feature_item:nth-child(4)::after {
    left: -33px;
    width: 45px;
    height: 37px;
  }
}
