/* ==========================================================================
   もりや整形外科・リウマチ科
   ========================================================================== */

/* ---------- Webフォント チラつき対策 ---------- */
.wf-loading body {
  opacity: 0;
}
.wf-active body,
.wf-inactive body {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* ---------- スクロールフェードイン ---------- */
.js-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- フェードアップアニメーション ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- リセット ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "fot-tsukuardgothic-std", 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  color: #333;
  background: #fff;
  padding-left: 220px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================================================
   サイドバー
   ========================================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #fff;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ロゴ */
.sidebar__logo {
  padding: 28px 24px 24px;
  text-align: center;
}

.sidebar__logo img {
  width: 200px;
  height: auto;
  margin: 0 auto;
}

/* ナビゲーション */
.sidebar__nav {
  width: 100%;
  padding: 4px 0 20px;
}

.sidebar__nav ul {
  display: flex;
  flex-direction: column;
}

.sidebar__nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  transition: opacity 0.2s;
}

.sidebar__nav li a:hover {
  opacity: 0.65;
}

.sidebar__nav li a img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-ja {
  font-size: 16px;
  color: #068107;
  font-weight: 700;
  margin-bottom: 3px;
}

.nav-en {
  font-size: 10px;
  color: #b5d383;
  letter-spacing: 0.06em;
}

/* お電話 */
.sidebar__contact {
  width: 100%;
  text-align: center;
  padding: 12px 20px 10px;
}

.sidebar__contact-label {
  font-size: 14px;
  color: #068107;
  margin-bottom: 6px;
}

.sidebar__tel-link {
  display: block;
}

.sidebar__tel-link img {
  width: 100%;
  max-width: 170px;
  height: auto;
  margin: 0 auto;
}

/* 受付時間 */
.sidebar__hours {
  width: 100%;
  text-align: center;
  padding: 10px 20px 20px;
  line-height: 1.4;
}

.sidebar__hours-title {
  font-size: 14px;
  color: #068107;
  font-weight: 700;
}

.sidebar__hours-time {
  font-size: 14px;
  color: #068107;
}

.sidebar__hours-closed-label {
  font-size: 14px;
  color: #068107;
  margin-top: 4px;
}

.sidebar__hours-closed {
  font-size: 14px;
  color: #068107;
}

/* ==========================================================================
   メインコンテンツ
   ========================================================================== */
.main-content {
  min-height: 100vh;
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */

.hero {
  position: relative;
}

/* 動画エリア */
.hero__media {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.hero__video {
  display: block;
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: center;
  border-bottom-left-radius: 40px;
}

/* テキストオーバーレイ */
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__desc {
  position: absolute;
  top: 57px;
  right: 280px;
  writing-mode: vertical-rl;
  font-size: 20px;
  color: #fff;
  line-height: 3;
  letter-spacing: 2px;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

.hero__headings-img {
  position: absolute;
  top: 57px;
  right: 80px;
  height: 320px;
  width: auto;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero__desc-sp {
  display: none;
}

/* キャッチ（PC では非表示：診療時間を FV 左下に移動したため） */
.hero__sub {
  display: none;
}

.hero__catch {
  display: flex;
  gap: 0;
  margin-right: -14px;
  padding: clamp(12px, 1.5vw, 20px) clamp(16px, 4.5vw, 60px) clamp(12px, 1.5vw, 20px) clamp(12px, 1.8vw, 24px);
  flex-shrink: 0;
}

.hero__catch-item {
  background-image: url('../images/top/img1.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #fff;
  font-size: clamp(14px, 2vw, 32px);
  font-weight: 700;
  text-align: center;
  padding: clamp(20px, 3vw, 52px) clamp(22px, 3.3vw, 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  min-width: clamp(120px, 15vw, 240px);
  min-height: clamp(100px, 12.5vw, 200px);
}

/* 診療時間（動画の下） */
.hero__schedule {
  display: flex;
  align-items: center;
  width: 940px;
  max-width: 100%;
  margin: 20px auto 0;
  padding: clamp(8px, 1.3vw, 20px) clamp(20px, 4vw, 78px) clamp(8px, 1.3vw, 20px) clamp(12px, 2vw, 38px);
  background: #fff;
  border: 1px solid #068107;
  border-radius: 12px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.12);
}

.hero__schedule-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-right: clamp(8px, 1.2vw, 24px);
  margin-right: clamp(8px, 1.2vw, 24px);
  border-right: 1px solid #068107;
  flex-shrink: 0;
}

.hero__schedule-label img {
  width: clamp(20px, 2.5vw, 42px);
  height: clamp(20px, 2.5vw, 42px);
}

.hero__schedule-label-text {
  font-size: clamp(10px, 1.1vw, 19px);
  color: #068107;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.hero__schedule-body {
  min-width: 0;
}

.hero__table {
  width: auto;
  border-collapse: collapse;
  font-size: clamp(10px, 1.2vw, 19px);
  margin-bottom: 4px;
}

.hero__table th,
.hero__table td {
  text-align: center;
  padding: clamp(2px, 0.4vw, 6px) clamp(6px, 1vw, 20px);
  border-bottom: 1px solid #068107;
}

.hero__table thead th {
  color: #068107;
  font-weight: 700;
}

.hero__table tbody th {
  text-align: left;
  white-space: nowrap;
  font-weight: 700;
  color: #333;
  padding-right: clamp(10px, 1.5vw, 28px);
}

.hero__table tbody td {
  color: #333;
}

.hero__table tbody tr:last-child th,
.hero__table tbody tr:last-child td {
  border-bottom: none;
}

.hero__schedule-note {
  font-size: clamp(9px, 0.95vw, 15px);
  color: #333;
  text-align: right;
  padding-top: 6px;
  border-top: 1px solid #068107;
  white-space: nowrap;
}

/* ==========================================================================
   フォトスライダー
   ========================================================================== */
.photo-slider {
  overflow: hidden;
  width: 100%;
  padding-top: 70px;
}

.photo-slider__track {
  display: flex;
  width: 250%;
  animation: photo-marquee 18s linear infinite;
}

.photo-slider__item {
  width: 10%; /* 10% of 250% track = 25% of container → 4枚表示 */
  flex-shrink: 0;
  padding: 0 10px;
}

.photo-slider__item img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

@keyframes photo-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   求人セクション
   ========================================================================== */
.recruit__heading {
  display: none;
}

.recruit__img-sp {
  display: none;
}

.recruit__inner {
  max-width: 1033px;
  margin: 0 auto;
  padding: 0 20px;
}

.recruit__banner-item {
  display: block;
}

.recruit__banner-item + .recruit__banner-item {
  margin-top: 10px;
}

.recruit__img-pc {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   お知らせセクション
   ========================================================================== */
.info {
  padding: 70px 0 100px;
}

.info__inner {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: flex-start;
}

.info__heading {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  padding-right: 20px;
  border-right: 1px solid #068107;
  flex-shrink: 0;
  align-self: stretch;
}

.info__heading-ja {
  writing-mode: vertical-rl;
  font-size: 20px;
  color: #333;
  font-weight: 700;
  letter-spacing: 6px;
}

.info__heading-en {
  writing-mode: vertical-rl;
  font-size: 10px;
  color: #b5d383;
  letter-spacing: 2px;
}

.info__list {
  flex: 1;
  padding-left: 40px;
}

.info__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 0;
}

.info__item:first-child {
  padding-top: 0;
}

.info__item:last-child {
  padding-bottom: 0;
}

.info__date {
  font-size: 14px;
  flex-shrink: 0;
  width: 100px;
  padding-top: 3px;
}

.info__body {
  flex: 1;
}

.info__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.info__text {
  font-size: 16px;
  line-height: 2;
}

.info__item a {
  text-decoration: none;
  color: inherit;
}

.info__item a:hover .info__title {
  color: #068107;
}

.info__more {
  padding-left: 40px;
  margin-top: 32px;
}

.info__more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #068107;
  text-decoration: none;
  border: 1px solid #068107;
  padding: 9px 28px;
  transition: background 0.2s, color 0.2s;
}

.info__more-link:hover {
  background: #068107;
  color: #fff;
}

/* ==========================================================================
   SERVICESセクション
   ========================================================================== */
.services {
  background-color: #ebf2e0;
  background-image: url('../images/top/services-back.png');
  background-position: left bottom;
  background-repeat: no-repeat;
  padding: 60px 0 80px;
}

.services__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.services__head {
  margin-bottom: 48px;
}

.services__title {
  font-size: 59px;
  color: #b5d383;
  line-height: 1;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.services__title-ja {
  font-size: 18px;
  color: #333;
  letter-spacing: 4px;
}

.services__lead {
  font-size: 17px;
  color: #333;
  line-height: 1.7;
}

.services__grid {
  display: flex;
  justify-content: space-between;
}

.services__card {
  width: 220px;
}

.services__card-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.services__card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.services__card-text {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
}

.services__card-more {
  display: flex;
  justify-content: flex-end;
}

.services__card-more img {
  height: 28px;
  width: auto;
}

/* ==========================================================================
   コンテンツセクション（FACILITIES / DOCTOR / FAQ / ACCESS）
   ========================================================================== */
.contents {
  background-image: url('../images/top/content-back.png');
  background-position: right bottom;
  background-repeat: no-repeat;
  padding: 60px 0 100px;
}

.contents__inner {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.contents__row {
  display: flex;
  align-items: center;
}

.contents__text {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 奇数行：内側（右）40px・外側（左）60px */
.contents__row .contents__text {
  align-items: flex-end;
  padding: 40px 40px 40px 60px;
}

/* 偶数行：内側（左）40px・外側（右）60px */
.contents__row--reverse .contents__text {
  align-items: flex-start;
  padding: 40px 60px 40px 40px;
}

.contents__text-body {
  max-width: 460px;
  width: 100%;
}

.contents__image {
  flex: 0 0 50%;
}

/* 奇数行の画像のみ：内側（左）に余白 */
.contents__row:not(.contents__row--reverse) > .contents__image {
  padding-left: 40px;
}

/* 偶数行の画像：内側（右）に余白 ＋ テキストブロックの高さに合わせる */
.contents__row--reverse > .contents__image {
  padding-right: 40px;
  align-self: stretch;
}

.contents__row--reverse > .contents__image img {
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: 0 12px 12px 0;
}


.contents__image img {
  width: 100%;
  height: auto;
  display: block;
}

.contents__title {
  font-size: 52px;
  color: #b5d383;
  line-height: 1;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contents__title-ja {
  font-size: 18px;
  color: #333;
  letter-spacing: 4px;
}

.contents__desc {
  font-size: 17px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}

.contents__more {
  display: flex;
  justify-content: flex-end;
}

.contents__more img {
  height: 28px;
  width: auto;
}

.contents__parking {
  display: inline-block;
  background: #b5d383;
  color: #068107;
  font-size: 24px;
  padding: 10px 40px;
  margin-top: 8px;
  border-radius: 999px;
}

.contents__partner-list {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.contents__partner-list li {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.contents__partner-list li::before {
  content: '・';
}

/* ==========================================================================
   インナーページ メインビジュアル（共通）
   ========================================================================== */
.inner-hero {
  position: relative;
  line-height: 0;
}

.inner-hero__img-wrap {
  overflow: hidden;
  border-bottom-left-radius: 40px;
  line-height: 0;
}

.inner-hero__img {
  display: block;
  width: 100%;
  height: calc((100vw - 220px) * 0.55); /* ビューポートに比例、1440px時≈671px */
  max-height: 700px;
  object-fit: cover;
  object-position: center top;
}

.inner-hero__img--center {
  object-position: center center;
}

/* SVG タイトル：画像の下部に重ねてDOCTOR/FACILITIESテキストが画像の外へ出る */
/* 高さ固定（幅はautoで縦横比維持）→ viewBox幅が違うSVGでも同じ高さに揃う */
/* height = 幅65%相当の高さ: (100vw - 220px) × 65% × (388.96 / 692.43) ≈ (100vw - 220px) × 0.365 */
/* margin-top: -21% → SVGの約57%が常に画像に重なり、緑ボックスが画像にかかる */
.inner-hero__title {
  display: block;
  height: calc((100vw - 220px) * 0.365);
  width: auto;
  margin: 0 auto;
  margin-top: -21%;
  position: relative;
  z-index: 1;
  line-height: 0;
}

/* FAQ：SVGが縦長（262×515）のため専用サイズ指定 */
.inner-hero__title--faq {
  height: calc((100vw - 220px) * 0.46);
  margin-top: calc(-36% + 40px);
}

.inner-hero__lead {
  font-size: 22px;
  text-align: center;
  line-height: 1.8;
  padding: 50px 40px;
}

/* ==========================================================================
   診療案内 各ブロック（整形外科・リウマチ科・外科・リハビリ）
   ========================================================================== */
.svc-block {
  padding: 60px 0;
}

.svc-block__inner {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.svc-block__text {
  flex: 1;
  padding-left: 40px;
  max-width: 640px;
  margin-left: auto;
}

.svc-block__heading {
  display: inline-block;
  font-size: 29px;
  color: #fff;
  background: #068107;
  padding: 6px 20px;
  margin-bottom: 28px;
}

.svc-block__body p {
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.svc-block__body p + p {
  margin-top: 1.5em;
}

.svc-block__media {
  flex: 0 0 50%;
}

.svc-block__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   リハビリ機器グリッド
   ========================================================================== */
.rehab-equip {
  padding: 0 0 80px;
}

.rehab-equip__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rehab-equip__card {
  background: #ebf2e0;
  border-radius: 10px;
  padding: 45px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.rehab-equip__card--full {
  grid-column: 1 / -1;
}

.rehab-equip__card--text-only {
  align-items: flex-start;
}

.rehab-equip__card--text-only .rehab-equip__name {
  margin-bottom: 6px;
}

.rehab-equip__text {
  flex: 1;
}

.rehab-equip__category {
  font-size: 16px;
  color: #068107;
  line-height: 1.6;
  margin-bottom: 4px;
}

.rehab-equip__name {
  font-size: 22px;
  font-weight: bold;
  color: #068107;
  margin-bottom: 14px;
}

.rehab-equip__desc {
  font-size: 16px;
  color: #333;
  line-height: 1.9;
}

.rehab-equip__img {
  flex-shrink: 0;
}

.rehab-equip__img img {
  display: block;
  max-height: 160px;
  width: auto;
}

/* ==========================================================================
   早期発見・早期治療ブロック
   ========================================================================== */
.svc-early {
  padding: 0 0 60px;
}

.svc-early__inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.svc-early__text {
  flex: 1;
}

.svc-early__heading {
  background: #068107;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  padding: 10px 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.svc-early__body p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.svc-early__body p + p {
  margin-top: 1em;
}

.svc-early__graph {
  flex: 0 0 45%;
}

.svc-early__graph img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   治療の流れブロック
   ========================================================================== */
.svc-flow {
  padding: 0 0 80px;
}

.svc-flow__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.svc-flow__heading {
  background: #b5d383;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  margin-bottom: 24px;
}

.svc-flow__img-pc {
  display: block;
  width: 100%;
  height: auto;
}

.svc-flow__img-sp {
  display: none;
}

.svc-flow__note {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  margin-top: 16px;
}

/* ==========================================================================
   PICK UP セクション
   ========================================================================== */
.pickup {
  padding: 64px 40px 80px;
}

.pickup__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.pickup__head {
  text-align: center;
  margin-bottom: 40px;
}

.pickup__label {
  font-size: 19px;
  color: #b5d383;
  letter-spacing: 5px;
  margin-bottom: 8px;
}

.pickup__title {
  font-size: 22px;
  font-weight: bold;
  color: #068107;
}

.pickup__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 168px);
  gap: 36px 24px;
  justify-content: center;
}

.pickup__item {
  text-align: center;
}

.pickup__card img {
  display: block;
  width: 100%;
  height: auto;
}

.pickup__name {
  font-size: 18px;
  color: #333;
  margin-top: 8px;
  line-height: 1.5;
}

.pickup__name-sub {
  font-size: 12px;
  color: #666;
}

.pickup__grid--sm {
  grid-template-columns: repeat(2, 1fr);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   検査機器カード (facilities.html)
   ========================================================================== */
.fac-equip {
  padding: 0 0 80px;
}

.fac-equip__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.fac-equip__card {
  overflow: hidden;
}

.fac-equip__card--full {
  grid-column: 1 / -1;
}

.fac-equip__heading {
  background: #b5d383;
  color: #068107;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  line-height: 1.4;
}

.fac-equip__heading-sub {
  font-size: 13px;
  font-weight: normal;
  margin-left: 4px;
}

.fac-equip__content {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  align-items: flex-start;
}

.fac-equip__text {
  flex: 1;
  font-size: 15px;
  color: #333;
  line-height: 1.9;
}

.fac-equip__text p + p {
  margin-top: 1em;
}

.fac-equip__img {
  flex-shrink: 0;
}

.fac-equip__img img {
  display: block;
  max-height: 180px;
  width: auto;
}

.fac-equip__card--full .fac-equip__img img {
  max-height: 220px;
}

/* ==========================================================================
   求人情報セクション (recruit.html)
   ========================================================================== */
.recruit-info {
  padding: 40px 0 80px;
}

.recruit-info__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.recruit-info__body {
  background:
    linear-gradient(to right, #fff 45%, rgba(255,255,255,0) 68%),
    url('../images/recruit/img1.png') right center / auto 100% no-repeat,
    #fff;
  overflow: hidden;
}

.recruit-info__heading {
  background: #b5d383;
  color: #068107;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  margin-bottom: 8px;
}

.recruit-info__list {
  max-width: 58%;
}

.recruit-info__row {
  display: flex;
  gap: 40px;
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
  align-items: flex-start;
}

.recruit-info__row--last {
  border-bottom: none;
}

.recruit-info__term {
  flex-shrink: 0;
  width: 4em;
  text-align: justify;
  text-align-last: justify;
  font-size: 15px;
  color: #333;
  padding-top: 2px;
}

.recruit-info__desc {
  font-size: 15px;
  color: #333;
  line-height: 1.9;
}

.recruit-info__desc p + p {
  margin-top: 2px;
}

.recruit-info__highlight {
  font-weight: bold;
  margin-top: 6px;
}

/* ==========================================================================
   院長紹介ページ
   ========================================================================== */

/* 院長挨拶 */
.doc-greeting {
  padding: 0 40px 60px;
}

.doc-greeting__box {
  background: #ebf2e0;
  max-width: 1000px;
  margin: 0 auto;
}

.doc-greeting__heading {
  background: #b5d383;
  color: #068107;
  font-size: 20px;
  padding: 12px 28px;
}

.doc-greeting__content {
  display: flex;
  gap: 40px;
  padding: 36px 0;
  align-items: flex-start;
  background: #fff;
}

.doc-greeting__text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 2;
  color: #333;
}

.doc-greeting__text p + p {
  margin-top: 0.8em;
}

.doc-greeting__sign {
  display: block;
  height: 40px;
  width: auto;
  margin-top: 28px;
  margin-left: auto;
}

.doc-greeting__photo {
  flex: 0 0 260px;
}

.doc-greeting__photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* 院長経歴・所属学会 */
.doc-career {
  padding: 0 40px 70px;
}

.doc-career__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: stretch; /* 両カラムを同じ高さにして縦罫線を全高に伸ばす */
}

/* 左カラム：院長経歴 */
.doc-career__left {
  flex: 1;
  min-width: 0;
  padding-right: 48px;
}

/* 右カラム：所属学会＋写真（左に縦罫線） */
.doc-career__right {
  flex: 1;
  min-width: 0;
  padding-left: 48px;
  border-left: 1px solid #ccc;
}

.doc-career__heading {
  background: #b5d383;
  color: #068107;
  font-size: 18px;
  padding: 10px 20px;
  margin-bottom: 16px;
}

/* 経歴リスト（罫線なし） */
.doc-career__row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0 12px;
  padding: 2px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.doc-career__year {
  white-space: nowrap;
}

/* 右カラム内：資格リスト＋写真を横並び */
.doc-career__right-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.doc-career__qualify {
  list-style: none;
  padding: 0;
  flex: 1;
}

.doc-career__qualify li {
  padding: 5px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}

.doc-career__photo {
  flex: 0 0 160px;
}

.doc-career__photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* 医師紹介 */
.doc-staff {
  padding: 0 40px 70px;
}

.doc-staff__box {
  background: #ebf2e0;
  max-width: 1000px;
  margin: 0 auto;
}

.doc-staff__content {
  display: flex;
  gap: 40px;
  padding: 36px 0;
  align-items: flex-start;
  background: #fff;
}

.doc-staff__text {
  flex: 1;
  min-width: 0;
}

.doc-staff__name {
  font-size: 26px;
  color: #333;
  margin-bottom: 20px;
}

.doc-staff__sub {
  font-size: 16px;
  color: #333;
  margin: 20px 0 8px;
}

.doc-staff__photo {
  flex: 0 0 240px;
}

.doc-staff__photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* 診察日テーブル */
.doc-staff__schedule {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid #068107;
  border-radius: 10px;
  margin-top: 16px;
  gap: 0;
}

.doc-staff__schedule-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid #068107;
  flex-shrink: 0;
}

.doc-staff__schedule-label img {
  width: 28px;
  height: 28px;
}

.doc-staff__schedule-label-text {
  font-size: 13px;
  color: #068107;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.doc-staff__table {
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 4px;
}

.doc-staff__table th,
.doc-staff__table td {
  text-align: center;
  padding: 4px 12px;
  border-bottom: 1px solid #068107;
}

.doc-staff__table thead th {
  color: #068107;
  font-weight: 700;
}

.doc-staff__table tbody th {
  text-align: left;
  white-space: nowrap;
  font-weight: 700;
  color: #333;
  padding-right: 16px;
}

.doc-staff__table tbody td {
  color: #333;
}

.doc-staff__table tbody tr:last-child th,
.doc-staff__table tbody tr:last-child td {
  border-bottom: none;
}

.doc-staff__table .is-note {
  font-size: 11px;
  line-height: 1.4;
}

.doc-staff__schedule-note {
  font-size: 12px;
  color: #333;
  text-align: right;
  padding-top: 5px;
  border-top: 1px solid #068107;
  white-space: nowrap;
}

/* ==========================================================================
   リハビリテーションスタッフ紹介
   ========================================================================== */
.doc-rehab {
  padding: 0 40px 70px;
}

.doc-rehab__box {
  background: #ebf2e0;
  max-width: 1000px;
  margin: 0 auto;
}

.doc-rehab__content {
  background: #fff;
  padding: 30px 0 36px;
}

.doc-rehab__role {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.doc-rehab__note {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  margin-top: 8px;
}

dl + .doc-rehab__note {
  margin-top: 40px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  padding: 40px 40px 70px;
}

.faq__category {
  max-width: 1000px;
  margin: 0 auto 48px;
}

.faq__category:last-child {
  margin-bottom: 0;
}

.faq__category-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #068107;
  margin-bottom: 20px;
}

.faq__category-heading img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.faq__item {
  margin-bottom: 20px;
}

.faq__item:last-child {
  margin-bottom: 0;
}

.faq__question {
  background: #b5d383;
  color: #068107;
  font-size: 17px;
  padding: 12px 20px;
}

.faq__answer {
  padding: 16px 4px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.faq__answer p + p {
  margin-top: 8px;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  background: #ebf2e0;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto); /* 左右列を縮小可能に */
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 40px 20px;
}

/* 左カラム：診療科名＋ロゴ */
.footer__col1 {
  min-width: 0; /* グリッドセルのmin-width: autoを無効化し縮小可能に */
}

.footer__depts {
  font-size: 14px;
  color: #068107;
  margin-bottom: 4px;
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo-link img {
  width: 100%;
  max-width: 381px;
  height: auto;
}

/* 中央カラム：住所・ナビ・copyright */
.footer__col2 {
}

.footer__address {
  font-size: 14px;
  color: #000;
  margin-bottom: 8px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 2px 32px;
  margin-bottom: 8px;
}

.footer__nav a {
  font-size: 14px;
  color: #000;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.footer__nav a:hover {
  opacity: 0.6;
}

.footer__copy {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  color: #000;
  margin-top: 16px;
}

/* 右カラム：電話・受付時間 */
.footer__col3 {
  min-width: 0; /* グリッドセルのmin-width: autoを無効化し縮小可能に */
  text-align: left;
}

.footer__tel-label {
  font-size: 20px;
  color: #000;
  margin-bottom: 4px;
}

.footer__tel-link {
  display: inline-block;
  margin-bottom: 4px;
}

.footer__tel-link img {
  height: auto;
  max-width: 260px;
}

.footer__hours {
  font-size: 14px;
  color: #000;
  line-height: 1.4;
}

/* ==========================================================================
   フッター：中間ブレークポイント（769px〜1050px）
   サイドバー220px込みで3カラムが入りきらない帯。
   ロゴ／電話を1行2列、ナビ・住所を2行目全幅に切り替える。
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1200px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 16px 32px;
    padding: 24px 32px 20px;
  }

  .footer__col1 {
    grid-column: 1;
    grid-row: 1;
  }

  .footer__col3 {
    grid-column: 2;
    grid-row: 1;
  }

  .footer__col2 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer__copy {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 8px;
  }

  .footer__logo-link img {
    width: 100%;
    max-width: 280px;
  }

  .contents__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pickup__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
  }

  .pickup__grid--sm {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   SP ヘッダー
   ========================================================================== */
.sp-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sp-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
}

.sp-header__logo img {
  height: auto;
  width: 100%;
}

/* ハンバーガーボタン */
.sp-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.sp-header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #068107;
  transition: transform 0.25s, opacity 0.25s;
}

.sp-header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.sp-header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SP ドロワー */
.sp-drawer {
  display: none;
  position: fixed;
  top: 56px;
  right: 0;
  width: 240px;
  height: calc(100vh - 56px);
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 190;
  overflow-y: auto;
}

.sp-drawer.is-open {
  transform: translateX(0);
}

.sp-drawer__nav ul {
  padding: 8px 0;
}

.sp-drawer__nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.sp-drawer__nav li a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* SP オーバーレイ */
.sp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 180;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 768px) {

  body {
    padding-left: 0;
    padding-top: 56px;
  }

  .sidebar {
    display: none;
  }

  .sp-header {
    display: flex;
  }

  .sp-drawer {
    display: block;
  }

  /* インナーページ メインビジュアル */
  .inner-hero__img-wrap {
    border-bottom-left-radius: 0;
  }

  .inner-hero__img {
    height: 58vw; /* ビューポートに比例、375px時≈217px */
  }

  .inner-hero__title {
    height: 50.6vw; /* 90% × (388.96 / 692.43) */
    width: auto;
    margin-top: -30%; /* SVGの約59%が常に画像に重なる */
  }

  .inner-hero__title--faq {
    height: 56vw;
    margin-top: -44%;
  }

  .inner-hero__lead {
    font-size: 16px;
    padding: 32px 24px;
    text-align: left;
  }

  /* 診療各ブロック SP */
  .svc-block {
    padding: 0 0 48px;
  }

  .svc-block__inner {
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-width: none;
  }

  .svc-block__text {
    order: 2;
    padding: 0 24px;
  }

  .svc-block__media {
    order: 1;
    width: 100%;
    padding-left: 24px;
  }

  /* 見出しテキストを写真の底部に重ねる（inner-hero__title と同じ手法） */
  .svc-block__heading {
    margin-top: -50px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
  }

  /* リハビリ機器 */
  .rehab-equip__inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .rehab-equip__card--full {
    grid-column: auto;
  }

  /* 早期発見・早期治療 */
  .svc-early__inner {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }

  .svc-early__graph {
    flex: none;
    width: 100%;
  }

  /* 治療の流れ */
  .svc-flow__inner {
    padding: 0 20px;
  }

  .svc-flow__heading {
    font-size: 15px;
  }

  .svc-flow__img-pc {
    display: none;
  }

  .svc-flow__img-sp {
    display: block;
    width: 100%;
    height: auto;
  }

  /* PICK UP */
  .pickup {
    padding: 40px 20px 52px;
  }

  .pickup__inner {
    padding: 0;
  }

  .pickup__head {
    margin-bottom: 24px;
  }

  .pickup__label {
    font-size: 15px;
  }

  .pickup__title {
    font-size: 17px;
  }

  .pickup__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 12px;
  }

  .pickup__name {
    font-size: 12px;
  }

  /* リハビリ機器 SP */
  .rehab-equip__card {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .rehab-equip__img {
    align-self: center;
  }

  .rehab-equip__img img {
    max-height: 140px;
    width: auto;
  }

  .rehab-equip__name {
    font-size: 18px;
  }

  /* 検査機器 SP */
  .fac-equip__inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 24px;
  }

  .fac-equip__card--full {
    grid-column: auto;
  }

  .fac-equip__content {
    flex-direction: column;
  }

  .fac-equip__img img,
  .fac-equip__card--full .fac-equip__img img {
    max-height: none;
    width: 100%;
  }

  /* 求人情報 SP */
  .recruit-info {
    padding: 24px 0 48px;
  }

  .recruit-info__body {
    background: #fff;
  }

  .recruit-info__inner {
    padding: 0 20px;
  }

  .recruit-info__list {
    max-width: none;
  }

  .recruit-info__row {
    flex-direction: column;
    gap: 6px;
  }

  .recruit-info__term {
    width: 4em;
  }

  /* ヒーロー */
  .hero__video {
    height: 80vh;
    border-bottom-left-radius: 0;
  }

  .hero__desc {
    display: none;
  }

  .hero__headings-img {
    height: 200px;
    top: 50%;
    left: 50%;
    right: auto;
    animation-name: fadeInUpCenter;
  }

  @keyframes fadeInUpCenter {
    from {
      opacity: 0;
      transform: translate(-50%, calc(-50% + 30px));
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }

  .hero__sub {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: -60px;
  }

  .hero__catch {
    display: flex;
    justify-content: center;
    padding: 16px 20px;
    margin-right: 0;
  }

  .hero__catch-item {
    min-width: 140px;
    min-height: 116px;
    font-size: 18px;
    padding: 24px 28px;
  }

  .hero__desc-sp {
    display: block;
    font-size: 14px;
    color: #333;
    line-height: 2;
    text-align: left;
    padding: 20px 24px;
  }

  .hero__schedule {
    position: static;
    border: 1px solid #068107;
    border-radius: 12px;
    margin: 0 24px 24px;
    padding: 10px 12px;
    overflow: hidden;
    justify-content: center;
  }

  .hero__schedule-label {
    padding-right: 8px;
    margin-right: 8px;
  }

  .hero__schedule-label img {
    width: 18px;
    height: 18px;
  }

  .hero__schedule-label-text {
    font-size: 10px;
  }

  .hero__table {
    font-size: 13px;
    width: 100%;
  }

  .hero__table th,
  .hero__table td {
    padding: 3px 5px;
  }

  .hero__table tbody th {
    padding-right: 8px;
    font-size: 12px;
  }

  .hero__schedule-note {
    font-size: 10px;
  }

  /* フォトスライダー */
  .photo-slider__item {
    width: 20%; /* 20% of 250% track = 50% of container → 2枚表示 */
  }

  .photo-slider__item img {
    height: 200px;
  }

  /* 求人 */
  .recruit__img-pc {
    display: none;
  }

  .recruit__img-sp {
    display: block;
    width: 100%;
    height: auto;
  }

  .recruit__inner {
    max-width: none;
    padding: 0 16px;
  }

  .recruit__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 0 20px;
    text-align: center;
  }

  .recruit__heading-en {
    font-size: 14px;
    color: #b5d383;
    letter-spacing: 3px;
    border-top: 2px solid #068107;
    padding-top: 12px;
  }

  .recruit__heading-ja {
    font-size: 16px;
    color: #333;
    letter-spacing: 8px;
  }

  /* お知らせ */
  .info {
    padding: 0 24px 60px;
  }

  .info__inner {
    flex-direction: column;
    padding: 0;
  }

  .info__heading {
    flex-direction: column;
    writing-mode: horizontal-tb;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-right: none;
    padding-right: 0;
    padding-top: 28px;
    padding-bottom: 20px;
    align-self: auto;
    width: 100%;
    text-align: center;
  }

  .info__heading-en {
    writing-mode: horizontal-tb;
    font-size: 14px;
    letter-spacing: 3px;
    order: 1;
    border-top: 2px solid #068107;
    padding-top: 12px;
  }

  .info__heading-ja {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 8px;
    order: 2;
  }

  .info__list {
    padding-left: 0;
  }

  .info__item {
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
  }

  .info__item:first-child {
    padding-top: 20px;
  }

  .info__item:last-child {
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
  }

  .info__date {
    width: auto;
    padding-top: 0;
  }

  .info__more {
    padding-left: 0;
    text-align: center;
    margin-top: 24px;
  }

  /* SERVICES */
  .services {
    padding: 48px 0 60px;
  }

  .services__inner {
    padding: 0 24px;
  }

  .services__title {
    font-size: 40px;
    gap: 14px;
    margin-bottom: 16px;
  }

  .services__title-ja {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .services__lead {
    font-size: 15px;
  }

  .services__grid {
    flex-direction: column;
    gap: 36px;
  }

  .services__card {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }

  .services__card-img {
    width: 42%;
    flex-shrink: 0;
    margin-bottom: 0;
    order: 2;
  }

  .services__card-body {
    flex: 1;
    order: 1;
  }

  .services__card-more {
    justify-content: flex-start;
  }

  .services__card-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .services__card-text {
    font-size: 13px;
    margin-bottom: 10px;
  }


  /* コンテンツ */
  .contents {
    padding: 48px 0 80px;
  }

  .contents__inner {
    gap: 52px;
  }

  .contents__row,
  .contents__row--reverse {
    flex-direction: column;
    gap: 20px;
  }

  /* PC用の高specificity paddingをSPで上書き */
  .contents__row .contents__text,
  .contents__row--reverse .contents__text {
    flex: none;
    width: 100%;
    order: 2;
    align-items: stretch;
    padding: 0 24px 20px;
  }

  .contents__image {
    order: 1;
  }

  /* 奇数行の画像：左に余白 */
  .contents__row:not(.contents__row--reverse) > .contents__image {
    padding-left: 20px;
  }

  .contents__title {
    font-size: 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }

  .contents__title-ja {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .contents__desc {
    font-size: 15px;
    margin-bottom: 14px;
  }

  /* 本文の強制改行を無効化（ACCESSのみ有効） */
  .contents__desc br {
    display: none;
  }

  .contents__inner > .contents__row:last-child .contents__desc br {
    display: inline;
  }

  .contents__more {
    justify-content: flex-end;
  }

  .contents__partner-list {
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
  }

  .contents__partner-list li {
    font-size: 13px;
  }

  /* 院長経歴・所属学会 SP */
  .doc-career {
    padding: 0 16px 48px;
  }

  .doc-career__inner {
    flex-direction: column;
  }

  .doc-career__left {
    padding-right: 0;
    padding-bottom: 32px;
  }

  .doc-career__right {
    padding-left: 0;
    padding-top: 32px;
    border-left: none;
    border-top: 1px solid #ccc;
  }

  .doc-career__right-body {
    flex-direction: column;
  }

  .doc-career__photo {
    width: 60%;
    max-width: 200px;
    margin: 16px auto 0;
  }

  /* 医師紹介 SP */
  .doc-staff {
    padding: 0 16px 48px;
  }

  .doc-staff__content {
    flex-direction: column;
    padding: 24px 20px;
    gap: 24px;
  }

  .doc-staff__photo {
    flex: none;
    width: 60%;
    max-width: 240px;
    margin: 0 auto;
  }

  .doc-staff__schedule {
    display: flex; /* inline-flex → flex（ブロック化して親幅に収める） */
    overflow: hidden;
    padding: 10px 12px;
  }

  .doc-staff__schedule-label {
    padding-right: 8px;
    margin-right: 8px;
  }

  .doc-staff__schedule-label img {
    width: 18px;
    height: 18px;
  }

  .doc-staff__schedule-label-text {
    font-size: 10px;
  }

  .doc-staff__table {
    font-size: 12px;
  }

  .doc-staff__table th,
  .doc-staff__table td {
    padding: 3px 5px;
  }

  .doc-staff__table tbody th {
    padding-right: 8px;
    font-size: 11px;
  }

  .doc-staff__schedule-note {
    font-size: 10px;
  }

  /* 院長挨拶 SP */
  .doc-greeting {
    padding: 0 16px 40px;
  }

  .doc-greeting__heading {
    font-size: 17px;
    padding: 10px 20px;
  }

  .doc-greeting__content {
    flex-direction: column;
    padding: 24px 20px;
    gap: 24px;
  }

  .doc-greeting__photo {
    flex: none;
    width: 60%;
    max-width: 260px;
    margin: 0 auto;
  }

  .doc-greeting__sign {
    height: 44px;
    margin-top: 20px;
  }

  /* リハビリテーションスタッフ紹介 SP */
  .doc-rehab {
    padding: 0 16px 40px;
  }

  .doc-rehab__content {
    padding: 24px 0;
  }

  /* FAQ SP */
  .faq {
    padding: 28px 16px 40px;
  }

  .faq__category-heading {
    font-size: 17px;
  }

  .faq__question {
    font-size: 15px;
    padding: 10px 16px;
  }

  .faq__answer {
    padding: 12px 2px;
    font-size: 14px;
  }

  /* フッター：1カラム中央揃え */
  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 20px 20px;
  }

  .footer__col1,
  .footer__col2,
  .footer__col3 {
    width: 100%;
    text-align: center;
  }

  .footer__depts {
    white-space: normal;
    text-align: center;
  }

  .footer__logo-link {
    display: block;
    text-align: center;
  }

  .footer__logo-link img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer__address {
    text-align: center;
    margin-bottom: 0;
  }

  .footer__nav {
    display: none;
  }

  .footer__tel-label,
  .footer__hours {
    text-align: center;
  }

  .footer__tel-link {
    display: block;
    text-align: center;
  }

  .footer__tel-link img {
    margin: 0 auto;
  }

  .footer__copy {
    text-align: center;
    margin-top: 12px;
  }
}

/* =============================================
   モーダル（pickup アイコン詳細）
============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  overflow-y: auto;
  /* イラストが上に飛び出す分の余白 */
  padding: 120px 60px 50px;
}
.modal-overlay.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-box {
  background: #fff;
  border: 2px solid #b5d383;
  border-radius: 12px;
  /* padding-top はイラストが内側にはみ出す分を確保 */
  padding: 76px 48px 48px;
  max-width: 760px;
  width: 100%;
  position: relative;
  overflow: visible;
}
/* イラスト：左上コーナーから飛び出す */
.modal-illust {
  position: absolute;
  top: -105px;
  left: -52px;
  width: 170px;
}
.modal-illust img {
  width: 100%;
  display: block;
}
/* 閉じるボタン：右上コーナーから飛び出す緑丸 */
.modal-close {
  position: absolute;
  top: -26px;
  right: -26px;
  width: 52px;
  height: 52px;
  background: #068107;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #055a06;
}
/* タイトル：中央寄せ＋罫線 */
.modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #068107;
  text-align: center;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #b5d383;
  line-height: 1.4;
}
.modal-body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}
.modal-body p {
  margin: 0 0 8px;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.modal-head {
  font-weight: bold;
  margin-top: 18px !important;
  margin-bottom: 4px !important;
}
.modal-bullet {
  margin-bottom: 2px !important;
}
.modal-mark {
  color: #068107;
  font-weight: bold;
  margin-right: 2px;
}

.modal-bullet .modal-mark {
  font-size: 10px;
}

/* ==========================================================================
   お知らせ一覧ページ（home.php）
   ========================================================================== */
.news-archive {
  padding: 70px 40px 100px;
}

.news-archive__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.news-archive__head {
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 2px solid #068107;
}

.news-archive__en {
  font-size: 11px;
  letter-spacing: 4px;
  color: #b5d383;
  display: block;
  margin-bottom: 6px;
}

.news-archive__title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  letter-spacing: 4px;
}

.news-archive__list .info__item {
  border-bottom: 1px solid #e0e0e0;
}

.news-archive__list .info__item:first-child {
  padding-top: 0;
}

/* ページネーション */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  background: #068107;
  border-color: #068107;
  color: #fff;
}

.news-pagination .page-numbers.dots {
  border: none;
  pointer-events: none;
}

/* ==========================================================================
   お知らせ記事単体ページ（single.php）
   ========================================================================== */
.news-single {
  padding: 70px 40px 100px;
}

.news-single__inner {
  max-width: 800px;
  margin: 0 auto;
}

.news-single__date {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.news-single__title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
  padding-bottom: 20px;
  border-bottom: 2px solid #068107;
  margin-bottom: 36px;
}

.news-single__body {
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.news-single__body p + p {
  margin-top: 16px;
}

.news-single__foot {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.news-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #068107;
  text-decoration: none;
  border: 1px solid #068107;
  padding: 10px 32px;
  transition: background 0.2s, color 0.2s;
}

.news-single__back::before {
  content: '←';
}

.news-single__back:hover {
  background: #068107;
  color: #fff;
}

@media (max-width: 768px) {
  .news-archive {
    padding: 40px 20px 60px;
  }

  .news-archive__head {
    margin-bottom: 32px;
    padding-bottom: 14px;
  }

  .news-archive__title {
    font-size: 22px;
  }

  .news-single {
    padding: 40px 20px 60px;
  }

  .news-single__title {
    font-size: 20px;
  }

  .news-single__body {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 90px 30px 40px;
  }
  .modal-box {
    padding: 90px 24px 36px;
  }
  .modal-illust {
    top: -56px;
    left: -20px;
    width: 130px;
  }
  .modal-close {
    top: -22px;
    right: -16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .modal-title {
    font-size: 20px;
  }
}

/* ========================================
   投稿詳細ページ 本文スタイル
   対象：.news-single__body 内のみ
======================================== */

.news-single__body {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

/* 段落 */
.news-single__body p {
    margin: 0 0 1.6em;
}

/* 最後の要素だけ余白を消す */
.news-single__body > *:last-child {
    margin-bottom: 0;
}

/* 太字 */
.news-single__body strong {
    font-weight: 700;
}

/* リンク */
.news-single__body a {
    color: #0066cc;
    text-decoration: underline;
}

.news-single__body a:hover {
    text-decoration: none;
}

/* リスト共通 */
.news-single__body ul,
.news-single__body ol {
    margin: 0 0 1.6em 1.5em;
    padding-left: 1.2em;
}

/* 箇条書き */
.news-single__body ul {
    list-style-type: disc;
}

/* 番号付きリスト */
.news-single__body ol {
    list-style-type: decimal;
}

/* リスト項目 */
.news-single__body li {
    margin: 0 0 0.5em;
    line-height: 1.8;
}

/* 入れ子リスト */
.news-single__body li ul,
.news-single__body li ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* 見出し */
.news-single__body h2 {
    margin: 2.4em 0 1em;
    padding: 0.4em 0 0.4em 0.8em;
    border-left: 5px solid #333;
    font-size: 1.6em;
    line-height: 1.5;
    font-weight: 700;
}

.news-single__body h3 {
    margin: 2em 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #ccc;
    font-size: 1.35em;
    line-height: 1.5;
    font-weight: 700;
}

.news-single__body h4 {
    margin: 1.8em 0 0.7em;
    font-size: 1.15em;
    line-height: 1.5;
    font-weight: 700;
}

/* 画像 */
.news-single__body img {
    max-width: 100%;
    height: auto;
}

.news-single__body figure {
    margin: 2em 0;
}

.news-single__body figcaption {
    margin-top: 0.6em;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* 引用 */
.news-single__body blockquote {
    margin: 2em 0;
    padding: 1em 1.4em;
    border-left: 4px solid #ccc;
    background: #f7f7f7;
    color: #555;
}

.news-single__body blockquote p:last-child {
    margin-bottom: 0;
}

/* 表 */
.news-single__body table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
}

.news-single__body th,
.news-single__body td {
    padding: 0.8em 1em;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

.news-single__body th {
    background: #f2f2f2;
    font-weight: 700;
}

/* 横長テーブル対策 */
.news-single__body .wp-block-table {
    overflow-x: auto;
}

/* 区切り線 */
.news-single__body hr {
    margin: 3em 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* コード */
.news-single__body pre {
    margin: 2em 0;
    padding: 1em;
    overflow-x: auto;
    background: #f5f5f5;
    font-size: 0.95em;
    line-height: 1.6;
}

.news-single__body code {
    padding: 0.15em 0.35em;
    background: #f5f5f5;
    font-size: 0.95em;
}

/* iframe / YouTubeなど */
.news-single__body iframe {
    max-width: 100%;
}

/* スマホ調整 */
@media screen and (max-width: 767px) {
    .news-single__body {
        font-size: 15px;
        line-height: 1.85;
    }

    .news-single__body h2 {
        font-size: 1.4em;
    }

    .news-single__body h3 {
        font-size: 1.25em;
    }

    .news-single__body ul,
    .news-single__body ol {
        margin-left: 1.2em;
        padding-left: 1em;
    }

    .news-single__body th,
    .news-single__body td {
        padding: 0.7em;
    }
}