/*------------------------------------- 見出し --------------------------------------*/
.sec-head {
    width: 100%;
    padding: 40px 20px 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto 30px;
}

.sec-heading-en {
    font-size: 4.5rem;
    letter-spacing: 0.2em;
    font-family: "Noto Serif JP", serif;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(
    to bottom,
    #003f78,
    #005bac,
    #4b91d1
  );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sec-heading-ja {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .sec-heading-en {
        font-size: 2rem;
    }

    .sec-head {
        padding: 30px 0px 10px;
        margin-bottom: 20px;
    }
}

/*------------------------------------- ボタン --------------------------------------*/
.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(to right, #00417d, #005bac, #4b91d1);
  border: 1px solid transparent;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.more-btn::after {
  content: "→";
  margin-left: 10px;
  font-size: 0.9rem;
}

.more-btn:hover {
  background: #ffffff;
  color: #005bac;
  border-color: #005bac;
}

.more-btn:hover::after {
  color: #005bac;
}

/*------------------------------------- ファーストビュー --------------------------------------*/
.main-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: #f1f7fc;
}

/*------------------------------------- お知らせ --------------------------------------*/
.top-news {
    background: #fff;
    padding: 60px 0;
}

.news-heading-en {
  font-size: 3rem;
  letter-spacing: 0.2em;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(
    to bottom,
    #003f78,
    #005bac,
    #4b91d1
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-heading-ja {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .news-heading-en {
        font-size: 2rem;
    }

    .news-head {
        padding: 30px 20px 10px;
        margin-bottom: 20px;
    }
}

.top-news__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
}

.top-news__head {
    width: 32%;
    padding: 50px 40px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.top-news__list {
    width: 68%;
}

.top-news__item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 40px;
    border-bottom: 1px solid #eeeeee;
    text-decoration: none;
    color: #333333;
    transition: background 0.2s ease;
}

.top-news__item:first-child {
    border-top: 1px solid #eeeeee;
}

.top-news__item:hover {
    background: #fafafa;
}

.top-news__date {
    font-size: 0.9rem;
    white-space: nowrap;
    color: #999999;
}

.top-news__title {
    font-size: 0.95rem;
    flex: 1;
}

@media (max-width: 768px) {
    .top-news {
        padding: 40px 0;
    }

    .top-news__inner {
        flex-direction: column;
    }

    .top-news__head {
        width: 100%;
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .top-news__list {
        width: 100%;
    }

    .top-news__item {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .top-news__date {
        width: auto;
        margin-bottom: 0;
    }
}

/*------------------------------------- 担当医表／診療カレンダー --------------------------------------*/
.schedule {
  padding: 80px 0;
  background: linear-gradient(
    to bottom,
    #f1f7fc 0%,
    #fff 40%,
    #f1f7fc 100%
  );
}

.schedule__inner {
  width: calc(100% - 40px);
  max-width: 1100px;
  margin: 0 auto;
}

.schedule-section-title {
  box-sizing: border-box;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 10px;
  padding-left: 20px;
  color: #333;
  text-align: left;
  border-left: 4px solid #005bac;
}

.schedule__table-wrap {
  width: 100%;
  overflow: visible;
}

.schedule-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ScrollHintの背景色 */
.schedule-scroll-hint-icon {
  background-color: #005bac;
}

.schedule-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* 担当医表の寸法（2026-09-29）
   --sched-pad-x : 平日セルの左右padding
   --sched-side  : 土曜セルの左右padding＝「名前＋第〇のかたまり(schedule-person)→枠線」の距離。
                   平日セルの「名前ボタン→枠線」の距離(=(平日セル幅-ボタン幅)/2)と同じになる値。
                   表幅1100px(PC)/800px(SP)で平日と土曜が一致するよう算出済み。
   --sat-col     : 土曜1列分の幅＝名前ボタン＋週表記「第1・3・5」が横に収まる幅
   --sat-gap     : 土曜2列の間隔
   土曜の列幅は上記から算出し、平日は残り幅を均等に分ける（table-layout:fixedでwidth未指定の列は均等割） */
.schedule-table {
  --sched-pad-x: 12px;
  --sched-side: 34px;
  --sat-col: 7.6rem;
  --sat-gap: 12px;
}

.schedule-col-time {
  width: 14%;
}

.schedule-col-weekday {
  width: auto;
}

.schedule-col-saturday {
  width: calc(var(--sat-col) * 2 + var(--sat-gap) + var(--sched-side) * 2 + 2px);
}

/* 皮膚科の表は土曜が1人だけなので、土曜も平日と同じ幅（全列均等） */
.schedule-table--even .schedule-col-saturday {
  width: auto;
}

.schedule-table th,
.schedule-table td {
  padding: 10px var(--sched-pad-x);
  vertical-align: middle;
  border: 1px solid #c7d8e5;
  word-break: normal;
  overflow-wrap: anywhere;
}

.schedule-table td {
  background: #fff;
  text-align: center;
}

.schedule-table thead th {
  padding: 12px 8px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(
    to bottom,
    #4b91d1,
    #005bac,
    #00417d
  );
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.schedule-table td.closed {
  color: #61a43d;
  font-weight: 500;
  background-color: #f3f8f0;
}

.schedule-table__time,
.schedule-table__slot {
  width: auto;
  white-space: nowrap;
  color: #333;
  text-align: center;
  background-image: linear-gradient(
    to bottom,
    #f5f9fc,
    #e5eff7
  );
}

.doc {
  display: inline-block;
  margin: 2px;
  padding: 5px 10px;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  background-color: #f1f4f6;
  border: 1px solid #c5d0d8;
  border-radius: 4px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.doc:hover {
  color: #fff;
  background-color: #005bac;
  border-color: #005bac;
  cursor: pointer;
}

/* 平日セルの担当医名も1人1行で縦に並べる（名前が短いと横並びになるのを防ぐ） */
.schedule-table td > .doc {
  display: block;
  width: fit-content;
  margin: 2px auto;
}

/* 医師名ボタンの最小幅を2文字分に揃える（「近」など1文字の医師も他と同じ幅にする 2026-09-28） */
.schedule-table .doc {
  box-sizing: content-box;
  min-width: 2em;
  text-align: center;
}

.schedule-cell-note {
  display: block;
  margin-top: 2px;
  color: #777;
  font-size: 0.72rem;
  line-height: 1.35;
}

/* 土曜日の担当医は横2列。左右paddingは平日の「ボタン→枠線」距離に合わせる */
.schedule-saturday {
  padding: 10px var(--sched-side);
}

.schedule-saturday-grid {
  display: grid;
  grid-template-columns: repeat(2, var(--sat-col)); /* 2列とも「第1・3・5」が入る前提の固定幅 */
  justify-content: center;
  align-items: start;
  gap: 4px var(--sat-gap); /* 行間は平日セルのボタン間隔(2px+2px)に合わせ、土曜が行を縦に伸ばさないようにする */
}

.schedule-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.schedule-saturday .schedule-person__head {
  justify-content: flex-start;
}

/* 1人だけのとき（皮膚科の土曜）は2列分を使い中央に置く */
.schedule-saturday .schedule-person:only-child {
  grid-column: 1 / -1;
  align-items: center;
}

.schedule-saturday .schedule-person:only-child .schedule-person__head {
  justify-content: center;
}

.schedule-person .doc {
  margin: 0;
}

.schedule-person .schedule-cell-note {
  margin-top: 2px;
}

/* 医師名ボタン＋週表記（第2・毎週など）を横並びにする（週表記は名前の右側） */
.schedule-person__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
  margin: 0;
}

.schedule-cell-week {
  color: #555;
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: nowrap;
}

/* 土曜セルでは週表記の箱の幅を「第1・3・5」が入る幅で固定し、
   名前ボタン＋週表記のまとまりの幅を全員同じにする（＝名前の位置が列内で揃う） */
.schedule-saturday .schedule-cell-week {
  min-width: 5em;
  text-align: left;
}

.schedule__note {
  margin-top: 12px;
  color: #333;
  font-size: 0.8rem;
  line-height: 1.7;
}

.schedule-ok {
  color: #005bac;
  font-size: 18px;
  text-align: center;
}

@media (max-width: 768px) {
  .schedule {
    padding: 5px 0 30px;
  }

  .schedule__inner {
    width: 100%;
  }

  .schedule__table-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .schedule-table-scroll {
    width: calc(100% - 20px);
    margin: 5px 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 内科・皮膚科の見出しを表の左端に揃える */
  .schedule-section-title {
    width: calc(100% - 20px);
    margin: 30px 10px 10px;
    padding-left: 12px;
    font-size: 1.05rem;
  }

  .schedule-table {
    --sched-pad-x: 8px;
    --sched-side: 20px;
    --sat-col: 6.6rem;
    --sat-gap: 8px;
    min-width: 800px;
    font-size: 0.82rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px var(--sched-pad-x);
  }

  .schedule-table thead th {
    padding: 10px 6px;
  }

  .doc {
    padding: 4px 7px;
    font-size: 0.8rem;
  }

  .schedule-cell-note {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .schedule-saturday {
    padding: 8px var(--sched-side);
  }

  .schedule-saturday-grid {
    gap: 3px var(--sat-gap);
  }

  .schedule-cell-week {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .schedule__note {
    padding: 0 15px;
  }

  .schedule__scroll {
    margin: 0 10px 8px;
    color: #c62828;
    font-size: 0.9rem;
  }
}

/*------------------------------------- メニュー一覧ブロック --------------------------------------*/
/* 全体 */
.menu-grid {
    background: #fff;
    padding: 60px 16px;
}

.menu-grid__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 3列グリッド */
.menu-grid__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* カード */
.menu-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.1);
    /* うっすら影 */
    transition: box-shadow 0.3s ease;
    /* ホバー時に影が強くなる */
}

/* ホバー時に影を強める */
.menu-card:hover {
    box-shadow: 0 4px 16px rgba(51, 51, 51, 0.2);
    /* 少し強めの影 */
}

.menu-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* 画像 */
.menu-card__media {
    margin: 0;
    aspect-ratio: 16 / 7;
    /* だいたいスクショの比率 */
    overflow: hidden;
    background: #f2f2f2;
}

.menu-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 本文 */
.menu-card__body {
  padding: 18px 18px 20px;
  text-align: center;
}

.menu-card__title {
  margin: 6px 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  font-family: "Noto Serif JP", serif;
  color: #005bac;
}

.menu-card__text {
  margin: 0 auto 16px;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.9;
  color: #444;
  text-align: left;
}

/* ボタン */
.menu-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    to right,
    #00417d,
    #005bac,
    #4b91d1
  );
  border: 1px solid transparent;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 右に矢印を追加 */
.menu-card__btn::after {
  content: "→";
  margin-left: 10px;
  font-size: 0.9rem;
}

/* ホバー時 */
.menu-card__btn:hover {
  background: #fff;
  color: #005bac;
  border-color: #005bac;
}

/* ホバー時の矢印 */
.menu-card__btn:hover::after {
  color: #005bac;
}

.menu-card__link:hover .menu-card__media img {
  transform: scale(1.02);
}

.menu-card__media img {
  transition: transform .25s ease;
}

/* =========================
   Mobile：画像＋タイトル＋矢印のリスト表示
   ========================= */
@media (max-width: 640px) {
    .menu-grid {
        padding: 24px 16px;
    }

    /* 1列にする */
    .menu-grid__items {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* クリック領域を横並びに */
    .menu-card__link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 0;
        /* body側で調整 */
    }

    /* 画像を左に固定サイズで */
    .menu-card__media {
        width: 42%;
        aspect-ratio: 16 / 9;
        flex: 0 0 auto;
    }

    /* 右側の本文エリア */
    .menu-card__body {
        text-align: left;
        padding: 14px 40px 14px 0;
        /* 右の矢印ぶん空ける */
        flex: 1;
        position: relative;
    }

    /* タイトルだけ見せる（本文/ボタンは非表示） */
    .menu-card__text,
    .menu-card__btn {
        display: none;
    }

    .menu-card__title {
        margin: 0;
        font-size: 16px;
        line-height: 1.4;
    }

    /* 右側の「＞」 */
    .menu-card__body::after {
        content: "›";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 26px;
        color: #777;
        line-height: 1;
    }
}


/*------------------------------------- section背景 --------------------------------------*/

.section-background {
    background-image: url('../images/top/section-background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* ←これ */
    height: 380px;
}
/* PCだけ fixed */
@media (min-width: 769px) {
    .section-background {
        background-attachment: fixed;
    }
}

/* モバイル */
@media (max-width: 768px) {
    .section-background {
        height: 160px;
        background-attachment: scroll; /* 明示的に */
    }
}

/*------------------------------------- 選ばれる理由ブロック --------------------------------------*/
/* 選ばれる理由セクション */
.feature-section {
    padding: 40px 20px;
    margin: 0 auto;
    background: url('../images/top/pickup-background.png') no-repeat center center;
    background-size: cover;
    background-position: center;
}

.feature__inner {
    max-width: 1300px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    margin-bottom: 80px;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.feature-media {
    width: 45%;
}

.feature-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.feature-text {
  width: 45%;
  padding: 40px;
  background-image: url("../images/top/feature-background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid #d9e2e8;
  box-shadow: 0 2px 8px rgba(0, 91, 172, 0.1);
}

.feature-number {
  font-size: 18px;
  color: #61a43d;
  font-family: "Noto Serif JP", serif;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.feature-title-accent {
  color: #005bac;
  font-weight: 700;
  font-size: 30px;
  background: linear-gradient(
    transparent 80%,
    rgba(0, 91, 172, 0.18) 0
  );
}


.feature-description {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.feature-list li {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start; /* 変更 */
}

.feature-list li::before {
  content: "●";
  margin-right: 10px;
  background: linear-gradient(
    45deg,
    #9dcb82,
    #61a43d,
    #427c27
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    #9dcb82,
    #61a43d
  );
}

@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        margin-bottom: 20px;
    }

    .feature-number {
        text-align: center;
    }

    .feature-text {
        padding: 20px;
    }

    .feature-media,
    .feature-text {
        width: 100%;
    }

    .feature-item:nth-child(odd) {
        flex-direction: column-reverse;
    }

    .feature-title {
        font-size: 20px;
        text-align: center;
    }

    .feature-title-accent {
        font-size: 25px;
        background: linear-gradient(transparent 88%, rgba(28, 52, 125, .18) 0);
    }

    .feature-description {
        font-size: 15px;
    }

    .feature-list li {
        display: block;
        padding-left: 1.2em; 
        position: relative;
		font-size: 13px;
    }

    .feature-list li::before {
        position: absolute;
        left: 0;
        margin-right: 0;
    }
}
/*------------------- 選ばれる理由ボタン -------------------*/
.feature-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    45deg,
    #9dcb82,
    #61a43d,
    #427c27
  );
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-btn::after {
  content: "→";
  margin-left: 10px;
  font-size: 0.9rem;
}

.feature-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 10%,
    transparent 70%
  );
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.feature-btn:hover {
  background: linear-gradient(
    45deg,
    #9dcb82,
    #61a43d,
    #427c27
  );
  transform: translateY(-2px);
  color: #fff;
}

.feature-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}



/*------------------------------------- ピックアップブロック --------------------------------------*/
.pickup {
    padding: 50px 0;
    background-image: url('../images/top/reason-bg.png');
    background-size: cover;
    background-position: center center;
}


.pickup-head {
    padding: 40px 20px;
    text-align: center;
}

.pickup-head h2 {
  font-size: 2.5rem;
  margin-bottom: 70px;
  color: #1F2933;
}

.pickup-head .sen {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.pickup-head .sen::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    45deg,
    #9dcb82,
    #61a43d,
    #427c27
  );
  z-index: -1;
}

.pickup-head p {
  color: #1F2933;
  line-height: 1.6;
  margin-top: 0;
}

@media (max-width: 768px) {

    .pickup {
    padding: 5px 0;
}

    .pickup-head h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .pickup-head .sen::after {
  height: 2px;

}

    .pickup-head p {
        text-align: left;
    }
}

/*-------------- ピックアップボックス --------------*/
.pickup-box {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pickup-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
}

.pickup-item:nth-child(odd) {
    flex-direction: row;
    color: white;
}

.pickup-item:nth-child(odd) .pickup-text {
    margin-right: -30px;
}

.pickup-item:nth-child(even) {
    flex-direction: row-reverse;
    color: white;
}

.pickup-item:nth-child(even) .pickup-text {
    margin-left: -30px;
}

.pickup-image {
    flex: 0 0 45%;
    position: relative;
    z-index: 0;
}

.pickup-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.pickup-text {
    flex: 0 0 50%;
    padding: 100px;
    position: relative;
    z-index: 1;
}

.pickup-subtitle {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.12em;
    line-height: 1.7;
    font-family: "Noto Serif JP", serif;
}

.pickup-text h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.pickup-text p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
}

.pickup-item:nth-child(odd) .pickup-text {
  background-color: rgba(0, 91, 172, 0.9);
}

.pickup-item:nth-child(even) .pickup-text {
  background-color: rgba(82, 101, 119, 0.9);
}


@media (max-width: 768px) {
    .pickup-box {
        padding: 30px 10px;
    }

    .pickup-item {
        flex-direction: column !important;
        text-align: center;
    }

    .pickup-image {
        flex: 1 1 100%;
        order: -1;
    }

    .pickup-image img {
        height: auto;
        height: 250px;
        object-fit: cover;
    }

    .pickup-text {
        padding: 40px;
        width: 100%;
    }

    .pickup-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 5px;
    }

    .pickup-text h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        text-align: center;
    }

    .pickup-text p {
        font-size: 0.9rem;
        text-align: left;
    }

    .pickup-item:nth-child(odd) .pickup-text,
    .pickup-item:nth-child(even) .pickup-text {
        margin-left: 0;
        margin-right: 0;
    }
}

/*------------------- ピックアップボタン -------------------*/
/* 奇数デザイン */
.pickup-btn01 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: #1C347D;
    background: #ffffff;
    border-radius: 2px;
    position: relative;
    border: 1px solid #1C347D;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pickup-btn01::after {
    content: "→";
    margin-left: 10px;
    font-size: 0.9rem;
}

.pickup-btn01:hover {
    background: #1C347D;
    color: #ffffff;
    border-color: #1C347D;
}

.pickup-btn01:hover::after {
    color: #ffffff;
}

/* 偶数デザイン */
.pickup-btn02 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: #464555;
    background: #ffffff;
    border-radius: 2px;
    position: relative;
    border: 1px solid #464555;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pickup-btn02::after {
    content: "→";
    margin-left: 10px;
    font-size: 0.9rem;
}

.pickup-btn02:hover {
    background: #464555;
    color: #ffffff;
    border-color: #464555;
}

.pickup-btn02:hover::after {
    color: #ffffff;
}

/*------------------------------------- 診療項目ブロック --------------------------------------*/
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-image:
        linear-gradient(rgba(60, 62, 68, 0.6),
            rgba(60, 62, 68, 0.7)),
        url('../images/top/section-servicesbg.jpg');
    background-size: cover;
    padding: 40px 0px 60px 0px;
}

/*----------------- 見出し -----------------*/
.medical-head {
  width: 100%;
  padding: 40px 20px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.medical-heading-en {
  font-size: 4.5rem;
  letter-spacing: 0.2em;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(
    to bottom,
    #9dcb82,
    #61a43d,
    #427c27
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.medical-heading-ja {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  margin-bottom: 30px;
  color: #fff;
}


@media (max-width: 768px) {
    .medical-heading-en {
        font-size: 2rem;
    }

    .medical-head {
        padding: 30px 20px 10px;
        margin-bottom: 20px;
    }
}

/*----------------- 各ブロック -----------------*/
.service-item {
  display: block;
  width: 18%;
  margin: 10px;
  position: relative;
  font-family: "Noto Serif JP", serif;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.item-wrapper {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  clip-path: polygon(
    50% 2%,
    98% 2%,
    100% 5%,
    100% 95%,
    98% 98%,
    50% 98%,
    2% 98%,
    0 95%,
    0 5%,
    2% 2%
  );
  transition: background-color 0.3s ease;
}

.service-item:hover .item-wrapper {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
  cursor: pointer;
}

.icon {
  background: linear-gradient(
    45deg,
    #9dcb82,
    #61a43d,
    #427c27
  );
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: background 0.3s ease;
}

.icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.service-item:hover .icon img {
  transform: scale(1.1);
}

.service-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-shadow:
    0 0 5px #fff,
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 10px #fff,
    0 0 15px #fff,
    0 0 15px #fff;
}

.label {
  position: absolute;
  top: 10px;
  right: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: none;
  transform-origin: unset;
  font-size: 12px;
  font-weight: bold;
  color: #61a43d;
  white-space: nowrap;
}

.service-item .item-wrapper::before {
  content: none;
}

/* モバイル */
@media (max-width: 768px) {
    .services {
        padding: 24px 16px;
        justify-content: space-between;
    }

    .service-item {
        width: calc(50% - 10px);
        margin: 8px 0;
    }

    .item-wrapper {
        padding: 16px;
    }

    .icon {
        width: 64px;
        height: 64px;
        margin-bottom: 10px;
    }

    .icon img {
        width: 38px;
        height: 38px;
    }

    .service-name {
        font-size: 16px;
    }

    .label {
        top: 8px;
        right: 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 16px 12px;
    }

    .service-item {
        width: 100%;
        margin: 5px 0;
    }

    .item-wrapper {
        padding: 10px 16px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    .icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .icon img {
        width: 30px;
        height: 30px;
    }

    .service-name {
        font-size: 16px;
        text-align: left;
    }

    .label {
        writing-mode: horizontal-tb;
        text-orientation: unset;
        top: 10px;
        right: 12px;
        font-size: 11px;
    }
}

/*------------------------------------- 症状疾患から探すブロック --------------------------------------*/
.finder {
  background:
    radial-gradient(
      circle at 25px 25px,
      rgba(97, 164, 61, 0.16) 2px,
      transparent 3px
    ) 0 0 / 50px 50px,
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.65)
    );
  padding: 28px 14px 120px 14px;
  /* グローバルナビ「症状で探す／疾患で探す」から飛んだ際に見出しが隠れないように */
  scroll-margin-top: 20px;
}

/* スマホはヘッダーが追従（約69px）するため、その分だけ余計に空ける */
@media (max-width: 768px) {
  .finder {
    scroll-margin-top: 85px;
  }
}

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

.finder__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.finder__tab {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 20px 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: #8a9aa8;
  font-family: "Noto Serif JP", serif;
}

.finder__tab.is-active {
  background: #005bac;
}

.finder__tab:focus-visible {
  outline: 3px solid rgba(0, 91, 172, 0.45);
  outline-offset: 3px;
}

.finder__panel {
  background: linear-gradient(
    to bottom,
    #005bac 0%,
    #00427f 100%
  );
  padding: 25px;
}

.finder__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finder__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px;
  background: #fff;
  text-decoration: none;
  min-height: 64px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.finder__text {
  font-size: 15px;
  line-height: 1.5;
}

.finder__arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #61a43d;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.finder__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

.finder__btn:active {
  transform: translateY(0);
}

/* Responsive: 3列〜2列〜1列 */
@media (max-width: 980px) {
    .finder__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .finder__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finder {
        padding: 28px 14px 28px 14px;
    }

    .finder__tab {
        font-size: 16px;
        padding: 14px 12px;
    }

    .finder__panel {
        padding: 14px;
    }

    .finder__btn {
        padding: 14px 14px;
        min-height: 60px;
    }
}

@media (max-width: 420px) {
    .finder__grid {
        grid-template-columns: 1fr;
    }
}

/*------------------------------------- 院長紹介ブロック --------------------------------------*/
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url("../images/top/about-bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
    padding: 70px;
}

/*------------------------------------- 見出し --------------------------------------*/
.about-head {
  width: 100%;
}

.about-heading-en {
  font-size: 4.5rem;
  letter-spacing: 0.2em;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  margin-bottom: 10px;
  background: linear-gradient(
    to bottom,
    #003f78,
    #005bac,
    #4b91d1
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-heading-ja {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
    .about-heading-en {
        font-size: 2rem;
    }

    .about-head {
        padding: 30px 0px 10px;
    }
}

.about-text {
  width: 50%;
  padding: 30px 0 0 30px;
}

.about-subtitle {
  font-size: 24px;
  color: #005bac;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "Noto Serif JP", serif;
}

.about-description {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.info-blocks {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

.about-block {
  width: 48%;
}

.about-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #005bac;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  font-family: "Noto Serif JP", serif;
}

.about-heading::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    #9dcb82,
    #61a43d
  );
}

.about-list {
  list-style-type: none;
  padding-left: 0;
}

.about-list li {
  font-size: 13px;
  margin-bottom: 4px;
}

.about-image {
  width: 45%;
  text-align: center;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.doctor-info {
  font-family: "Noto Serif JP", serif;
  margin-top: 15px;
}

.hospital-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.doctor-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.doctor-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #526577;
}

.doctor-name {
  font-size: 2rem;
  font-weight: 700;
  color: #005bac;
}


@media (max-width: 768px) {
    .about-section {
        padding: 40px 20px;
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        width: 100%;
        padding: 0px;
    }

    .about-subtitle {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .about-description {
        font-size: 15px;
        text-align: left;
    }

    .info-blocks {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .about-block {
        width: 100%;
        margin-bottom: 30px;
    }

    .about-heading {
        font-size: 20px;
    }

    .about-list li {
        font-size: 14px;
        text-align: left;
    }

    .about-image {
        width: 80%;
        margin-top: 20px;
    }

    .doctor-info {
        margin-top: 15px;
    }

    .hospital-name {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .doctor-title {
        font-size: 1.2rem;
    }

    .doctor-name {
        font-size: 1.4rem;
    }
}

/*------------------------------------- オンライン診療ブロック --------------------------------------*/
.online-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  background: url("../images/top/section-onlinebg.jpg");
  background-size: cover;
  position: relative;
}

.online-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.online-content {
  text-align: center;
  background-color: #fff;
  padding: 60px;
  box-shadow: 0 4px 8px rgba(0, 91, 172, 0.18);
  max-width: 1000px;
  width: 100%;
  z-index: 2;
}

.online-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: transparent;
  background: linear-gradient(
    45deg,
    #00417d,
    #005bac,
    #4b91d1
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 2px 2px 5px rgba(0, 91, 172, 0.15);
}

.online-description {
  margin-bottom: 20px;
}

/*------------------------------------- アイコンの枠スタイル --------------------------------------*/
.icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    45deg,
    #00417d,
    #005bac,
    #4b91d1
  );
  border-radius: 50%;
}

.online-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/*------------------------------------- モバイル対応 --------------------------------------*/
@media screen and (max-width: 768px) {
    .online-section {
        padding: 40px 0;
        /* モバイルではパディングを小さく */
        background-size: contain;
        /* 画像を画面に収める */
    }

    .online-content {
        padding: 30px;
        /* モバイル版でパディングを調整 */
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
        /* 少し透明度を調整 */
    }

    .online-title {
        font-size: 1.2rem;
        /* モバイルではフォントサイズを小さく */
        margin-bottom: 10px;
    }

    .online-description {
        font-size: 0.9rem;
        /* モバイルでは文字サイズを小さく */
        margin-bottom: 15px;
    }

    .icon-container {
        width: 60px;
        /* モバイルでアイコンを小さく */
        height: 60px;
    }

    .online-icon {
        width: 40px;
        /* アイコンサイズ調整 */
        height: 40px;
    }
}
/*------------------------------------- 採用情報 --------------------------------------*/

.recruit-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: url("../images/top/recruit-bg.png") no-repeat center center;
  background-size: contain;
  background-position: center center;
  width: 100%;
  max-width: 1200px;
  height: 800px;
  position: relative;
  text-align: center;
  margin: 0 auto;
  background-color: #fff;
}

.recruit-content {
  padding: 40px;
  max-width: 700px;
  width: 100%;
  color: #fff;
  position: absolute;
  text-align: center;
  z-index: 2;
}

.recruit-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(
    to bottom,
    #9dcb82,
    #61a43d,
    #427c27
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.3);
}

.recruit-subtitle-container {
  display: inline-block;
  background-color: #fff;
  padding: 10px 30px;
  margin: 50px auto;
  text-align: center;
  box-shadow:
    0 8px 16px rgba(0, 91, 172, 0.1),
    0 4px 6px rgba(0, 91, 172, 0.07);
}

.recruit-subtitle {
  font-size: 1.6rem;
  font-family: "Noto Serif JP", serif;
  background: linear-gradient(
    to bottom,
    #9dcb82,
    #61a43d,
    #427c27
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(97, 164, 61, 0.15);
}

.recruit-description {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 30px;
  text-shadow:
    0 0 5px #fff,
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 10px #fff,
    0 0 15px #fff,
    0 0 15px #fff;
}

@media screen and (max-width: 768px) {
    .recruit-section {
        padding: 20px;
        background: url('../images/top/recruit-mbbg.png') no-repeat center center;
        background-size: contain;
        background-position: center center;
        height: 500px;
        text-align: left;
    }

    .recruit-content {
        padding: 20px;
        text-align: left;
    }

    .recruit-title {
        font-size: 1.8rem;
    }

    .recruit-subtitle-container {
        display: inline-block;
        background-color: #ffffff;
        padding: 5px 10px;
        margin: 20px auto;
    }

    .recruit-subtitle {
        font-size: 0.8rem;
    }

    .recruit-description {
        font-size: 0.9rem;
    }
}

/*------------------------------------- ボタン --------------------------------------*/
.recruit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    to right,
    #427c27,
    #61a43d,
    #9dcb82
  );
  border: 1px solid transparent;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.recruit-btn::after {
  content: "→";
  margin-left: 10px;
  font-size: 0.9rem;
}

.recruit-btn:hover {
  background: #fff;
  color: #61a43d;
  border-color: #61a43d;
}

.recruit-btn:hover::after {
  color: #61a43d;
}

/*------------------------------------- フッダー --------------------------------------*/
.site-footer {
  position: relative;
  padding: 56px 16px 5px;
  color: #005bac;
  overflow: hidden;
  background-image:
    linear-gradient(
      135deg,
      rgba(238, 247, 252, 0.95) 0%,
      rgba(243, 249, 236, 0.95) 100%
    ),
    url("../images/top/footerbg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.footer-brand-logo {
    width: 500px;
    max-width: 70vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

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

.copyright p {
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
    color: #28465f;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-card {
    padding: 10px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hours-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-name {
    font-size: 18px;
    margin-bottom: 10px;
    color: #28465f;
}

.site-footer .schedule-table {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.site-footer .schedule-table th,
.site-footer .schedule-table td {
    white-space: normal;
    word-break: break-word;
}

/* =========================
   診療時間表｜モバイル専用
   ========================= */
@media (max-width: 768px) {

    .site-footer .schedule-table {
        table-layout: fixed;
        width: 100%;
    }

    .site-footer .schedule-table__time,
    .site-footer .schedule-table__slot {
        width: 56px;
        min-width: 56px;
        max-width: 56px;
        padding: 6px 4px;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
    }

    .site-footer .schedule-table thead th {
        padding: 6px 0;
        font-size: 12px;
        text-align: center;
    }

    .site-footer .schedule-table tbody td {
        padding: 6px 0;
        text-align: center;
        font-size: 13px;
    }

    .site-footer .schedule-table .closed {
        white-space: nowrap;
        font-size: 12px;
    }
}

.footer-note p {
    margin: 10px 0;
    color: #28465f;
    font-size: 14px;
}

.footer-divider {
    margin: 16px 0;
    border-top: 1px dashed rgba(0, 91, 172, 0.28);
}

.footer-address {
    margin: 0 0 10px;
    color: #28465f;
    font-size: 14px;
    line-height: 1.65;
}

.footer-tel {
    margin: 0 0 14px;
    color: #005bac;
    font-size: 24px;
    font-weight: 600;
}

.footer-tel a {
    color: #005bac;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 91, 172, 0.3);
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.footer-tel a:hover {
    color: #00437f;
    border-color: #00437f;
}

.footer-map .map-frame {
    height: 360px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 91, 172, 0.18);
    border-radius: 8px;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-text {
    margin: 0;
    padding: 2px 0;
    color: #28465f;
    font-size: 14px;
    line-height: 1.65;
}

.map-text:last-child {
    border-bottom: none;
}

/* フッターメニュー */
.footer-nav {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding: 24px 0px 8px;
    color: #28465f;
    border-top: 1px solid rgba(0, 91, 172, 0.18);
    border-bottom: 1px solid rgba(0, 91, 172, 0.18);
}

.footer-nav-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-nav-col {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-col li {
    margin: 6px 0;
    color: #28465f;
}

.footer-nav-col li::before {
    margin-right: 4px;
    color: #005bac;
    content: "・";
}

.footer-nav a {
    color: #28465f;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.footer-nav a:hover {
    color: #005bac;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .footer-nav-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-nav a {
        font-size: 11px;
    }
}

/*------------------------------------- 追跡バー --------------------------------------*/
.mobile-tracking-bar {
  display: none;
}

/* 採用ページなど固定フッターナビを非表示にするページ用 */
.tracking-bar.is-hidden,
.mobile-tracking-bar.is-hidden {
  display: none !important;
}

.tracking-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  width: 800px;
  height: 80px;
  font-family: "Noto Serif JP", serif;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.18);
}

.tracking-button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;

  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.65),
    0 2px 4px rgba(0, 0, 0, 0.45);

  border-top: 2px solid rgba(255, 255, 255, 0.38);
  border-right: 1px solid rgba(255, 255, 255, 0.2);

  transition:
    filter 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tracking-button:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

/* 電話：ブルー */
.phone-btn {
  background: linear-gradient(
    90deg,
    rgba(32, 116, 201, 0.96) 0%,
    rgba(0, 91, 172, 0.96) 55%,
    rgba(0, 66, 128, 0.98) 100%
  );
}

.phone-btn:hover {
  background: linear-gradient(
    90deg,
    rgba(0, 105, 198, 0.98) 0%,
    rgba(0, 79, 153, 0.98) 55%,
    rgba(0, 57, 111, 1) 100%
  );
}

/* WEB予約：グリーン */
.web-btn {
  background: linear-gradient(
    90deg,
    rgba(117, 180, 75, 0.96) 0%,
    rgba(97, 164, 61, 0.96) 55%,
    rgba(65, 124, 37, 0.98) 100%
  );
}

.web-btn:hover {
  background: linear-gradient(
    90deg,
    rgba(102, 174, 61, 0.98) 0%,
    rgba(79, 146, 42, 0.98) 55%,
    rgba(53, 109, 28, 1) 100%
  );
}

/* お問い合わせ：ブルーグレー */
.contact-btn {
  background: linear-gradient(
    90deg,
    rgba(119, 132, 145, 0.96) 0%,
    rgba(92, 106, 120, 0.96) 55%,
    rgba(66, 79, 92, 0.98) 100%
  );
}

.contact-btn:hover {
  background: linear-gradient(
    90deg,
    rgba(100, 115, 130, 0.98) 0%,
    rgba(75, 89, 103, 0.98) 55%,
    rgba(50, 63, 76, 1) 100%
  );
}

/* TOP */
.top-btn {
  flex: none;
  flex-direction: column;
  width: 80px;
  background: #005bac;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-right: none;
}

.top-arrow {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.top-text {
  display: inline-block;
  line-height: 1;
}

/*------------------------------------- モバイル用 --------------------------------------*/
@media (max-width: 768px) {
  .tracking-bar {
    display: none;
  }

  .mobile-tracking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    background-color: rgba(241, 241, 241, 0.95);
    font-family: "Noto Serif JP", serif;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.2);
  }

  .mobile-tracking-bar .tracking-button {
    flex: 1;
    min-width: 0;
    padding: 19px 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-align: center;
    text-decoration: none;

    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.75),
      0 2px 3px rgba(0, 0, 0, 0.5);

    border-top: 2px solid rgba(255, 255, 255, 0.42);
    border-right: 1px solid rgba(255, 255, 255, 0.24);
  }

  /* 電話：ブルー */
  .mobile-tracking-bar .phone-btn {
    background: linear-gradient(
      90deg,
      rgba(32, 116, 201, 0.96) 0%,
      rgba(0, 91, 172, 0.96) 60%,
      rgba(0, 66, 128, 0.98) 100%
    );
  }

  /* WEB予約：グリーン */
  .mobile-tracking-bar .web-btn {
    background: linear-gradient(
      90deg,
      rgba(117, 180, 75, 0.96) 0%,
      rgba(97, 164, 61, 0.96) 60%,
      rgba(65, 124, 37, 0.98) 100%
    );
  }

  /* お問い合わせ：ブルーグレー */
  .mobile-tracking-bar .contact-btn {
    background: linear-gradient(
      90deg,
      rgba(111, 130, 148, 0.96) 0%,
      rgba(82, 101, 119, 0.96) 60%,
      rgba(57, 74, 91, 0.98) 100%
    );
  }

  /* 診療時間：グリーン */
  .mobile-tracking-bar .time-btn {
    background: linear-gradient(
      90deg,
      rgba(117, 180, 75, 0.96) 0%,
      rgba(97, 164, 61, 0.96) 55%,
      rgba(65, 124, 37, 0.98) 100%
    );
  }

  /* 右上に表示されるTOPボタン */
  .mobile-tracking-bar .top-btn {
    position: absolute;
    top: -60px;
    right: 5px;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: #fff;
    background: #005bac;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;

    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.8),
      0 2px 4px rgba(0, 0, 0, 0.55);

    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow:
      0 3px 8px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}
/*------------------------------------- SNS（公式Instagram）リンク --------------------------------------*/
/* アイコン本体（ヘッダー・フッター共通） */
.sns-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    /* Instagram公式カラーのグラデーション */
    background: linear-gradient(45deg, #fdd255 0%, #ff543e 45%, #c837ab 70%, #3771c8 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    transition: filter .25s ease, transform .25s ease;
}

.sns-ig__glyph {
    display: block;
    width: 62%;
    height: 62%;
}

.sns-ig:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* PCヘッダー：TEL・WEB予約ボタンの左に配置 */
.sns-ig--header {
    align-self: center;
    margin-right: 14px;
}

/* 画面幅が狭いPC・タブレットではヘッダーが詰まるため小さくする */
@media (min-width: 769px) and (max-width: 1100px) {
    .sns-ig--header {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        margin-right: 8px;
    }
}

/* SPヘッダー：ハンバーガーの左に配置（PCでは非表示） */
.sns-ig--header-sp {
    display: none;
}

@media (max-width: 768px) {
    .sns-ig--header-sp {
        display: inline-flex;
        align-self: center;
        /* 余白を吸収してハンバーガーの隣に寄せる */
        margin-left: auto;
        margin-right: 10px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

/* フッター：ロゴの下に配置 */
.footer-sns {
    display: flex;
    justify-content: center;
    margin: -12px 0 24px;
}

.footer-sns-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #005bac;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.footer-sns-link:hover {
    opacity: .8;
}

@media (max-width: 768px) {
    .footer-sns {
        margin: -6px 0 20px;
    }

    .footer-sns-link {
        font-size: 14px;
    }

    .sns-ig--footer {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}
/*------------------------------------- SNS（公式Facebook）リンク --------------------------------------*/
/* アイコン本体（形・サイズはInstagramアイコンと共通／色だけFacebook公式カラー） */
.sns-fb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    /* Facebook公式カラー */
    background: #1877f2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    transition: filter .25s ease, transform .25s ease;
}

/* Facebookの「f」は縦長のグリフなので高さ基準でそろえる */
.sns-fb__glyph {
    display: block;
    width: auto;
    height: 62%;
}

.sns-fb:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* 画面幅が狭いPC・タブレットではヘッダーが詰まるため小さくする */
@media (min-width: 769px) and (max-width: 1100px) {
    .sns-fb--header {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}

/* SPヘッダー用（PCでは非表示） */
.sns-fb--header-sp {
    display: none;
}

@media (max-width: 768px) {
    .sns-fb--header-sp {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .sns-fb--footer {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

/*--- アイコンを横に並べるラッパー（Instagram＋Facebook） ---*/
.sns-links {
    display: flex;
    align-items: center;
}

/* PCヘッダー：TEL・WEB予約ボタンの左に配置 */
.sns-links--header {
    align-self: center;
    gap: 8px;
    margin-right: 14px;
}

/* 単独配置時のマージンはラッパー側で持つ */
.sns-links--header .sns-ig--header {
    margin-right: 0;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .sns-links--header {
        gap: 6px;
        margin-right: 8px;
    }

    .sns-links--header .sns-ig--header {
        margin-right: 0;
    }
}

/* SPヘッダー：ハンバーガーの左に配置（PCでは非表示） */
.sns-links--header-sp {
    display: none;
}

@media (max-width: 768px) {
    .sns-links--header-sp {
        display: flex;
        align-self: center;
        /* 余白を吸収してハンバーガーの隣に寄せる */
        margin-left: auto;
        margin-right: 10px;
        gap: 6px;
    }

    .sns-links--header-sp .sns-ig--header-sp {
        margin-left: 0;
        margin-right: 0;
    }
}

/* フッター：アイコンが2つ並ぶため間隔を確保 */
.footer-sns {
    gap: 28px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-sns {
        gap: 10px 16px;
    }
}

/* 画面幅が中途半端なPC・タブレットではCTAボタン3つが収まらず横にはみ出すため、
   ヘッダーのSNSアイコンは隠す（フッターの公式SNSリンクで代替） */
@media (min-width: 769px) and (max-width: 1004px) {
    .sns-links--header {
        display: none;
    }
}

/* 幅の狭いスマホではアイコンを少し小さくしてロゴ・メニューと競合させない */
@media (max-width: 389px) {
    .sns-links--header-sp {
        gap: 4px;
        margin-right: 8px;
    }

    .sns-ig--header-sp,
    .sns-fb--header-sp {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }
}
