/**
 * バヤシクリニック カスタムCSS - シンプルヘッダー版
 */

/* ========== 変数定義 ========== */
:root {
  --header-bg: #ffffff;
  --contact-btn-bg: #7fc4c4;
  --contact-btn-hover: #6ab3b3;
  --text-primary: #333333;
  --text-secondary: #666666;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== ヘッダー基本スタイル(全ページ共通) ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--header-bg);
  z-index: 1000;
  transition: var(--transition);
  height:106px;
}

.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height:106px;
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height:106px;
}

/* ========== ロゴエリア ========== */
.header-logo {
  flex-shrink: 0;
}

.header-logo a {
  display: block;
  line-height: 0;
}

.header-logo img,
.header-logo .custom-logo {
  height: 61px;
  width: auto;
  transition: var(--transition);
}

.site-header.scrolled .header-logo img,
.site-header.scrolled .header-logo .custom-logo {
  height: 61px;
}

/* ========== ナビゲーションメニュー ========== */
.header-nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.header-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 50px;
  align-items: center;
}

.header-menu li {
  position: relative;
}

.header-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  padding: 5px 0;
}

.header-menu .menu-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.header-menu .menu-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.header-menu a:hover .menu-title {
  color: var(--contact-btn-bg);
}

.header-menu a:hover .menu-subtitle {
  color: var(--contact-btn-bg);
}

.header-menu .current-menu-item .menu-title,
.header-menu .current_page_item .menu-title {
  /*color: var(--contact-btn-bg);*/
}

/* ========== 電話ボタン ========== */
.header-contact {
  flex-shrink: 0;
}

.header-contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--clinic-accent);
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  transition: var(--transition);
  min-width: 230px;
}

.header-contact-btn:hover {
  background: var(--contact-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 196, 196, 0.4);
}

a.header-contact-btn:hover{
	color:#fff;
}

.contact-hours {
  font-size: 11px;
    letter-spacing: 0.12em;
    margin-bottom: 1px;
}

.contact-tel {
  font-size: 20px;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.site-header.scrolled .header-contact-btn {
  padding: 10px 14px;
  min-width: 230px;
}

.site-header.scrolled .contact-hours {
  font-size: 10px;
}

.site-header.scrolled .contact-tel {
  font-size: 20px;
}

/* ========== ハンバーガーメニュー(SP) ========== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 29px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-menu span {
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 0;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== SPメニューオーバーレイ ========== */
.sp-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* right: 0を削除してwidthで指定 */
  height: 100vh; /* bottom: 0を削除してheightで指定 */
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden; /* 横スクロール防止 */
}

.sp-menu-overlay.active {
  display: block;
  opacity: 1;
}

.sp-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 400px;
  height: 100%;
  background: white;
  padding: 80px 30px 30px;
  overflow-y: auto;
  overflow-x: hidden; /* 横スクロール防止 */
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box; /* パディングを含めた幅計算 */
}

.sp-menu-overlay.active .sp-menu-content {
  transform: translateX(0);
}

.sp-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-family: Arial, sans-serif; /* フォント指定で×を統一 */
  font-weight: 300; /* 細めに */
  transition: transform 0.2s ease;
}

.sp-menu-close:hover {
  transform: rotate(90deg);
}

.sp-menu-close:focus {
  outline: 2px solid var(--contact-btn-bg);
  outline-offset: 2px;
}

.sp-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.sp-menu-list li {
  border-bottom: 1px solid #eee;
}

.sp-menu-list a {
  display: block;
  padding: 18px 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.sp-menu-list a:hover {
  color: var(--contact-btn-bg);
}

.sp-contact-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

.sp-contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--contact-btn-bg);
  color: white;
  text-decoration: none;
  padding: 10px 7px;
  border-radius: 12px;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

.sp-contact-hours {
  font-size: 14px;
    margin-bottom: 0px;
}

.sp-contact-tel {
  font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

/* ========== レスポンシブ対応 ========== */
@media (max-width: 1200px) {
  .header-menu {
    gap: 35px;
  }

  .header-contact-btn {
    min-width: 230px;
    padding: 10px 10px;
  }

  .contact-hours {
    font-size: 10px;
        line-height: 1;
        margin-bottom: 5px;
  }

  .contact-tel {
    font-size: 20px;
  }
}

@media (max-width: 992px) {
	.site-header {
    height: 67px;
}
	
	.site-header.scrolled {
  height:67px;
}
	
	  .site-header-inner {
    padding: 12px 20px;
    height: 67px;
  }

  .header-logo img,
  .header-logo .custom-logo {
    height: 52px;
  }
	
	.site-header.scrolled .header-logo img, .site-header.scrolled .header-logo .custom-logo {
    height: 55px;
}

  .sp-menu-content {
    width: 85%;
    padding: 70px 25px 25px;
  }

  .header-nav {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }
}

/* ========== アニメーション ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  animation: fadeIn 0.5s ease;
}

/* ========== アクセシビリティ ========== */
.skip-link {
  display:none;
}

/* ========== プリント対応 ========== */
@media print {
  .site-header {
    position: static;
    box-shadow: none;
  }

  .hamburger-menu,
  .header-contact {
    display: none;
  }
}

/* ========== ヘッダーカーブ装飾 ========== */
.header-curve-wrapper {
  position: fixed;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled .header-curve-wrapper {
  transform: translateY(-100%);
}

.header-curve-image {
  width: 100%;
  height: auto;
  display: block;
}

/* PC版画像の表示制御 */
.header-curve-pc {
  display: block;
}

/* SP版画像の表示制御 */
.header-curve-sp {
  display: none;
}

/* スクロール時のヘッダー高さ変更に対応 */
.site-header.scrolled ~ .header-curve-wrapper {
  top: 106px;
}

/* ========== レスポンシブ対応 ========== */

/* スマホ: 768px以下 */
@media (max-width: 768px) {
	  .header-curve-pc {
    display: none;
  }
  
  .header-curve-sp {
    display: block;
  }
	
  .header-curve-wrapper {
    top: 67px;
  }
  
  .header-curve-image {
    max-height: 45px;
  }
}


/* ========== トップページ - メインビジュアルカルーセル ========== */

.hero-carousel {
  position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    margin-top: 0;
    padding-top: 35px;
    margin-bottom: 10% !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    background-color: #fff;
}

.hero-swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 背景画像 */
.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* オーバーレイ(画像を少し暗くする) */
.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 固定テキストコンテンツ */
.hero-fixed-content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 40px 6em;
  pointer-events: none;
}

.hero-content-inner {
  text-align: center;
  color: white;
  max-width: 1200px;
  animation: fadeInUp 1s ease;
}

/* サブタイトル */
.hero-content-inner p.hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 0 0 15px 0;
  opacity: 0.95;
  text-align: left;
  color: var(--clinic-bg);
}

/* メインタイトル */
.hero-content-inner h1.hero-title {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.20em;
  margin: 0;
  text-align:left;
}

/* ナビゲーションボタン */
.swiper-button-prev,
.swiper-button-next {
  color: white;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 20;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 20px;
  font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ページネーション */
.swiper-pagination {
  bottom: 30px !important;
  z-index: 20;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: white;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--clinic-accent) !important;
  width: 30px;
  border-radius: 6px;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== レスポンシブ対応 ========== */
@media (max-width: 1024px) {
  .hero-carousel {
    min-height: 500px;
	margin-top: 15px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 90vh;
    min-height: 400px;

  }
  
  .hero-swiper {
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
  }
  
  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 13px;
  }
  
  .hero-fixed-content {
    padding: 80px 25px;
  }
  
  .hero-swiper {
  }
}


/* ========== コンセプトセクション ========== */

/* 最上位の親要素に overflow-x: hidden を追加 */
body {
  overflow-x: hidden; /* 横スクロールを防ぐ */
}

/* またはsectionレベルで */
.concept-section {
  max-width: 100%;
  margin: 80px 0;
  padding: 0;
  align-items: center;
}

/* 2カラムレイアウトのコンテナ */
.concept-section .column-wrap {
  display: flex;
  max-width: var(--clinic-max-width);
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
  position: relative;
}

/* 左カラム：60% */
.concept-section .column-left {
  width: 60%;
  padding-right: 60px;
  flex-shrink: 0;
}

/* 右カラム：40% */
.concept-section .column-right {
  width: 40%;
  margin: 0 !important;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}

/* CONCEPT見出しスタイル */
.concept-section h2.concept-title {
  font-family: var(--font-english), serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: #9EC4C6;
    margin-bottom: 40px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-left: none;
    padding-left: 0;
    background-color: transparent;
    position: relative;
    display: inline-block;
    max-width: 100%;
}

/* 擬似要素の線（左カラム内に収める） */
.concept-section h2.concept-title::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  transform: translateY(-50%);
  width: 150px;
  max-width: calc(100vw - 100% - 40px); /* 画面からはみ出さないように */
  height: 1px;
  background-color: var(--clinic-primary);
}

/* 最初の段落：「流行に流されない〜」 */
.concept-section .column-left p:first-of-type {
  font-size: 1.4em;
    line-height: 53px;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
}

/* その他の段落 */
.concept-section .column-left p {
  margin: 0;
}

/* 画像を右端まで伸ばす（画面外には出さない） */
.concept-section .column-right figure {
  margin: 0;
  position: relative;
  width: 50vw;
  max-width: 100vw; /* 画面幅を超えない */
}

.concept-section .column-right figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .concept-section {
    margin: 50px 0;
  }
  
  .concept-section .column-wrap {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .concept-section .column-left {
    width: 100%;
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .concept-section .column-right {
    width: 100%;
  }
  
  .concept-section h2.concept-title {
    font-size: 20px;
    margin-bottom: 30px;
  }
  
  .concept-section h2.concept-title::after {
    width: 80px;
  }
  
  .concept-section .column-left p:first-of-type {
    font-size: 20px;
    line-height: 35px;
  }
  
  .concept-section .column-left p {
    font-size: 13px;
    line-height: 28px;
  }
  
  .concept-section .column-right figure {
    width: 100%;
  }
}

/* ========== VALUEセクション ========== */

 .body section.value-section.wp-block-group {
  background-color: var(--clinic-bg-accent);
    border-radius: 100px 100px 0 0;
    padding: 80px 40px;
    margin-top: 100px;
	margin-bottom:0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

/* ========== VALUE・DOCTOR・CAMPAIN見出しスタイル ========== */

.value-section h2.wp-block-heading,
.doctor-section h2.wp-block-heading,
.campain-section h2.wp-block-heading,
.menu-section h2.wp-block-heading,
.news-section h2.wp-block-heading,
.faq-section h2.wp-block-heading,
.access-section h2.wp-block-heading {
  font-family: var(--font-english), serif;
  font-size: 2.8em;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--clinic-primary);
  margin-bottom: 60px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  border: none;
  background: transparent;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.news-section h2.wp-block-heading,
.access-section h2.wp-block-heading {
  color: #ffffff;
}

.value-section  h2.wp-block-heading,
.campain-section h2.wp-block-heading,
.access-section h2.wp-block-heading {
  padding-left: 0;
    max-width: var(--clinic-max-width);
    align-self: flex-start;
}

/* 見出し横の線 */
.value-section h2.wp-block-heading::after,
.doctor-section h2.wp-block-heading::after,
.campain-section h2.wp-block-heading::after,
.menu-section h2.wp-block-heading::after,
.news-section h2.wp-block-heading::after,
.faq-section h2.wp-block-heading::after,
.access-section h2.wp-block-heading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(90% + 20px);
  transform: translateY(-50%);
  width: 51px;
  height: 1px;
  background-color: var(--clinic-primary);
}

.news-section h2.wp-block-heading::after,
.access-section h2.wp-block-heading::after {
  background-color: var(--clinic-white);
}

/* サブタイトル */
.value-section h2.wp-block-heading::before,
.doctor-section h2.wp-block-heading::before,
.campain-section h2.wp-block-heading::before,
.menu-section h2.wp-block-heading::before,
.news-section h2.wp-block-heading::before,
.faq-section h2.wp-block-heading::before,
.access-section h2.wp-block-heading::before {
  position: absolute;
  top: 50%;
  left: calc(90% + 90px);
  transform: translateY(-50%);
  font-family: var(--font-japanese);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--clinic-text);
  white-space: nowrap;
}

/* VALUEのサブタイトル */
.value-section h2.wp-block-heading::before {
  content: '当院の強み・選ばれる理由';
}

/* DOCTORのサブタイトル */
.doctor-section h2.wp-block-heading::before {
  content: '院長の紹介';
}

/* CAMPAINのサブタイトル */
.campain-section h2.wp-block-heading::before {
  content: 'キャンペーン';
}

/* MENUのサブタイトル */
.menu-section h2.wp-block-heading::before {
  content: '施術メニュー';
}

/* NEWSのサブタイトル */
.news-section h2.wp-block-heading::before {
  content: 'ニュース';
  color: #ffffff;
}

/* FAQのサブタイトル */
.faq-section h2.wp-block-heading::before {
  content: 'よくある質問';
}

/* ACCESSのサブタイトル */
.access-section h2.wp-block-heading::before {
  content: 'クリニックへのアクセス';
  color: #ffffff;
}


/* 3カラムグリッド */
.value-section .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: var(--clinic-max-width);
  margin: 0 auto;
}

/* 各カラム（カード） */
.value-section .wp-block-column {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 0;
  position: relative;
}

/* 画像エリア */
.value-section .wp-block-column figure {
  margin: 0;
  width: 100%;
  height: auto;
}

.value-section .wp-block-column figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
}

/* 数字（01, 02, 03） */
.value-section .wp-block-column::before {
  font-family: var(--font-english), serif;
  font-size: 80px;
  font-weight: 400;
  color: var(--clinic-primary);
  position: absolute;
  top: 220px;
  left: -10px;
  z-index: 1;
  line-height: 1;
}

.value-section .wp-block-column:nth-child(1)::before {
  content: '01';
}

.value-section .wp-block-column:nth-child(2)::before {
  content: '02';
}

.value-section .wp-block-column:nth-child(3)::before {
  content: '03';
}

/* h3見出し */
.value-section .wp-block-column h3 {
  color: var(--clinic-text);
    margin: 30px 30px 30px 30px;
    padding: 0;
    border: none;
    background: transparent;
}

/* テキスト */
.value-section .wp-block-column p {
  color: var(--clinic-text);
    margin: 0px 30px 0 30px;
    margin-bottom: 30px !important;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .value-section {
    padding: 60px 30px;
  }
  
  .value-section .wp-block-columns {
    gap: 20px;
  }
  
  .value-section h2::before {
    left: calc(100% + 90px);
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .value-section {
    border-radius: 50px 50px 0 0;
    padding: 50px 20px;
    margin-top: 60px;
  }
  
  .value-section h2 {
    font-size: 20px;
    margin-bottom: 40px;
  }
  
  .value-section .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 30px;
	width:85%;
  }
  
  .value-section .wp-block-column::before {
font-size: 80px;
        top: 61vw;
        left: 15px;
  }
  
  .value-section .wp-block-column h3 {
    font-size: 16px;
    margin: 25px 20px 15px 20px;
    border: none;
  }
  
  .value-section .wp-block-column p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0 20px 25px 20px;
  }
	
	 .value-section {
    border-radius: 50px 50px 0 0;
    padding: 50px 20px;
    margin-top: 60px;
  }
  
  .value-section h2 {
    font-size: 20px;
    margin-bottom: 40px;
  }
  
  /* GridをSwiperに変更 */
  .value-section .wp-block-columns {
    display: block !important; /* Gridを解除 */
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden; /* はみ出し防止 */
  }
  
  /* Swiperラッパー化 */
  .value-section .wp-block-columns.swiper-initialized {
    padding-bottom: 50px;
	width: 85%;
  }
  
  /* 各カラムをスライド化 */
  .value-section .wp-block-column {
    width: 85%;
    margin: 0 auto;
  }
  
  .value-section .wp-block-column h3 {
    font-size: 16px;
    margin: 25px 20px 15px 20px;
    border: none;
  }
  
  .value-section .wp-block-column p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0 20px 25px 20px;
  }
  
  /* Swiperページネーション */
  .value-section .swiper-pagination {
    bottom: 10px !important;
  }
  
  .value-section .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--clinic-primary);
    opacity: 0.3;
  }
  
  .value-section .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 5px;
  }
}

@media (max-width: 480px) {
  .value-section {
    border-radius: 30px 30px 0 0;
  }
	
	  .value-section .wp-block-column::before {
    font-size: 60px;
    top: 260px;
    left: 15px;
  }
}

@media screen and (min-width: 768px) {
   .value-section .wp-block-column::before {
    font-size: 60px;
    top: 170px;
}
}

@media screen and (min-width: 992px) {
.value-section .wp-block-column::before {
    font-size: 75px;
        top: 220px;
}
}


@media screen and (min-width: 1200px) {
    .value-section .wp-block-column::before {
    font-size: 80px;
    top: 260px;
}
}

/* ========== 医院雰囲気写真カルーセル ========== */

.atmosphere-carousel-section {
  overflow: hidden;
    padding: 80px 0;
    background-color: var(--clinic-bg);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.atmosphere-carousel-wrapper {
  width: 100%;
  /*overflow: hidden;*/
  position: relative;
}

.atmosphere-carousel-track {
  display: flex;
  gap: 30px; /* 写真間の間隔 */
  animation: scroll-left 30s linear infinite; /* 30秒で1周（ゆっくり） */
  width: fit-content;
}

/* アニメーション：右から左へスクロール */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ホバーで一時停止 */
.atmosphere-carousel-track:hover {
  animation-play-state: paused;
}

.atmosphere-item {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバーエフェクト */
.atmosphere-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.atmosphere-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 写真をトリミングして収める */
  display: block;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .atmosphere-item {
    width: 350px;
    height: 263px;
  }
}

@media (max-width: 768px) {
  .atmosphere-carousel-section {
    padding: 60px 0;
  }
  
  .atmosphere-carousel-track {
    gap: 20px;
    animation-duration: 25s; /* スマホでは少し速く */
  }
  
  .atmosphere-item {
    width: 280px;
    height: 210px;
  }
}

@media (max-width: 480px) {
  .atmosphere-carousel-section {
    padding: 40px 0;
  }
  
  .atmosphere-carousel-track {
    gap: 15px;
    animation-duration: 20s;
  }
  
  .atmosphere-item {
    width: 240px;
    height: 180px;
  }
}

/* ========== ドクターセクション ========== */

.body section.doctor-section.wp-block-group {
  background-color: var(--clinic-secondary);
  padding: 80px 50px;
  border-radius: 20px;
	margin-bottom: 20vh;
	max-width: var(--clinic-max-width);
}

.doctor-section .wp-block-columns {
  max-width: var(--clinic-max-width);
  margin: 0 auto;
}

/*院長見出しは「VALUE」で設定*/

/* 上段：医師の写真とプロフィール */
.doctor-section > .wp-block-columns:first-of-type {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 80px;
}

/* 左カラム：医師の写真 */
.doctor-section > .wp-block-columns:first-of-type > .wp-block-column:first-child {
  flex-shrink: 0;
}

.doctor-section > .wp-block-columns:first-of-type > .wp-block-column:first-child figure {
  margin: 0;
}

.doctor-section > .wp-block-columns:first-of-type > .wp-block-column:first-child img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* 右カラム：プロフィール情報 */
.doctor-section > .wp-block-columns:first-of-type > .wp-block-column:last-child {
  width: 65%;
}

/* 「2種専門医を持つ医学博士」 */
.doctor-section > .wp-block-columns:first-of-type > .wp-block-column:last-child > p:first-of-type {
  font-size: 1.4em;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

/* 院長名のセクション */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(1) {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--clinic-border);
  padding-bottom: 20px;
}

.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(1) p {
  margin: 0;
  line-height: 1.6;
}

/* 「院長」 */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(1) > .wp-block-column:nth-child(1) p {
  font-size: 16px;
}

/* 「西林 章光」 */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(1) > .wp-block-column:nth-child(2) p {
  font-size: 1.6em;
    letter-spacing: 0.2em;
}

/* 「Akimitsu Nishibayashi」 */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(1) > .wp-block-column:nth-child(3) p {
  font-family: var(--font-english), serif;
  font-size: 12px;
  letter-spacing: 0.13em;
}

/* 経歴セクション */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(2) {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--clinic-border);
}

.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(2) p {
  margin: 0;
  font-size: 14px;
  line-height: 32px;
}

/* 「経歴」 */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(2) > .wp-block-column:nth-child(1) p {
  font-size: 16px;
}

/* 年号 */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(2) > .wp-block-column:nth-child(2) p {
  color: var(--clinic-text-light);
}

/* 保有資格セクション */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(3) {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
}

.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(3) p {
  margin: 0;
  font-size: 14px;
  line-height: 32px;
}

/* 「保有資格」 */
.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(3) > .wp-block-column:nth-child(1) p {
  font-size: 16px;
}

/* Messageセクション */
.doctor-section > .wp-block-columns:last-of-type {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 80px;
}

/* 左カラム：Messageテキスト */
.doctor-section > .wp-block-columns:last-of-type > .wp-block-column:first-child {
  width: 55%;
}

.doctor-section > .wp-block-columns:last-of-type h3 {
  font-family: var(--font-english), serif;
    font-size: 2.0em;
    letter-spacing: 0.1em;
    color: var(--clinic-primary);
    margin-bottom: 20px;
    border: none;
}

.doctor-section > .wp-block-columns:last-of-type > .wp-block-column:first-child p {
  margin-bottom: 20px;
}

/* 右カラム：医師の写真2 */
.doctor-section > .wp-block-columns:last-of-type > .wp-block-column:last-child {
  width: 45%;
}

.doctor-section > .wp-block-columns:last-of-type > .wp-block-column:last-child figure {
  margin: 0;
}

.doctor-section > .wp-block-columns:last-of-type > .wp-block-column:last-child img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .doctor-section {
    padding: 60px 30px;
  }
  
  .doctor-section > .wp-block-columns:first-of-type,
  .doctor-section > .wp-block-columns:last-of-type {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .doctor-section {
    padding: 50px 20px;
  }
	
  /* 上段を縦並びに */
  .doctor-section > .wp-block-columns:first-of-type {
    flex-direction: column;
    margin-bottom: 60px;
  }
  
  .doctor-section > .wp-block-columns:first-of-type > .wp-block-column:first-child,
  .doctor-section > .wp-block-columns:first-of-type > .wp-block-column:last-child {
    width: 100%;
  }
  
  /* 院長名のセクション */
  .doctor-section .wp-block-column > .wp-block-columns:nth-of-type(1) {
    flex-wrap: wrap;
    gap: 0;
  }
  
  .doctor-section .wp-block-column > .wp-block-columns:nth-of-type(1) > .wp-block-column:nth-child(2) p {
    font-size: 18px;
  }
  
  /* 経歴セクション */
  .doctor-section .wp-block-column > .wp-block-columns:nth-of-type(2) {
    grid-template-columns: 60px 50px 1fr;
    gap: 0;
  }
  
  /* 保有資格セクション */
  .doctor-section .wp-block-column > .wp-block-columns:nth-of-type(3) {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Messageセクションを縦並びに */
  .doctor-section > .wp-block-columns:last-of-type {
    flex-direction: column;
    margin-top: 60px;
  }
  
  .doctor-section > .wp-block-columns:last-of-type > .wp-block-column:first-child,
  .doctor-section > .wp-block-columns:last-of-type > .wp-block-column:last-child {
    width: 100%;
  }
  
  .doctor-section > .wp-block-columns:last-of-type > .wp-block-column:first-child p {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
	.body section.doctor-section.wp-block-group {
    border-radius: 0;
	margin-bottom: 0;
		padding: 80px 30px;
}
	
  .doctor-section {
    padding: 40px 15px;
  }
  
  .doctor-section h2 {
    font-size: 20px;
  }
  
  .doctor-section > .wp-block-columns:first-of-type > .wp-block-column:last-child > p:first-of-type {
    font-size: 16px;
	 margin-bottom:7px;
  }
	
	body.body section.doctor-section .wp-block-columns .wp-block-column:nth-child(1) {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
  
  .doctor-section .wp-block-column > .wp-block-columns:nth-of-type(2) {
    grid-template-columns: 1fr;
  }
  
  .doctor-section .wp-block-column > .wp-block-columns:nth-of-type(2) p,
  .doctor-section .wp-block-column > .wp-block-columns:nth-of-type(3) p {
    font-size: 10px;
	line-height: 22px;
  }
	
	body.body section.doctor-section .wp-block-columns .wp-block-column:nth-child(2) {
  flex-basis: 120px;
        flex-shrink: 0;
        flex-grow: 0;
		  grid-column: 1;
}
	
	body.body section.doctor-section .wp-block-columns .wp-block-column:nth-child(3) {
  grid-column: 2;
}
	
	.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(2) > .wp-block-column:nth-child(1) p {
    font-size: 10px;
}
	
	.doctor-section .wp-block-column > .wp-block-columns:nth-of-type(3) > .wp-block-column:nth-child(1) p {
    font-size: 10px;
}
}

/* ========== キャンペーセクション ========== */

.body section.campain-section.wp-block-group {
    background-color: var(--clinic-white);
    padding: 15vh 0 10vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.campain-section figure.wp-block-gallery {
}

@media (max-width: 768px) {
		.campain-section figure.wp-block-gallery {
	width: 85%;
}
	.campain-section p {
		width: 85%;
    text-align: left;
	}
	
}
	

  /* 見出しは上VALUEと合わせて設定 */

/* ========== MENUセクション ========== */

.body section.menu-section.wp-block-group {
  padding: 80px 40px;
  max-width: var(--clinic-max-width);
  margin: 0 auto;
}

/* 見出しはVALUEで設定 */
.menu-section h2.wp-block-heading {
  max-width: 100%;
	    margin-top: 150px;
}

/* 2カラムレイアウト */
.menu-section .wp-block-columns {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  max-width: 100%;
}

/* 左カラム：画像（40%） */
.menu-section .wp-block-column:first-child {
  width: 40%;
  flex-shrink: 0;
}

.menu-section .wp-block-column:first-child figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 15px; /* 角丸 */
}

.menu-section .wp-block-column:first-child img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 画像ホバーエフェクト */
.menu-section .wp-block-column:first-child figure:hover img {
  transform: scale(1.05);
}

/* 右カラム：テキストエリア（60%） */
.menu-section .wp-block-column:last-child {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* h3見出し「クマ取り」 */
.menu-section h3.wp-block-heading {
  font-weight: 500;
    line-height: 1.6;
    margin: 0;
    border-bottom: 1px solid var(--clinic-border);
    padding-bottom: 20px;
}

/* テキスト */
.menu-section .wp-block-column:last-child > p {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.10em;
  color: var(--clinic-text);
  margin: 0;
}

/* MOREボタン */
.menu-section .wp-block-buttons {
  margin-top: auto; /* 下に配置 */
}

.menu-section .wp-block-button__link {
  background-color: var(--clinic-primary);
    font-family: var(--font-english), serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    padding: 12px 30px;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-section .wp-block-button__link:hover {
  background-color: var(--clinic-secondary);
  color: var(--clinic-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(158, 196, 198, 0.3);
}

/* ALL MENUボタン */
.menu-section .wp-block-buttons.is-content-justification-center {
  margin-top: 60px;
}

.menu-section .wp-block-buttons.is-content-justification-center .wp-block-button__link {
  background-color: var(--clinic-primary);
    color: var(--clinic-white);
    font-family: var(--font-english), serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 7px 50px;
    border-radius: 30px;
    border: 2px solid var(--clinic-primary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-section .wp-block-buttons.is-content-justification-center .wp-block-button__link:hover {
  background-color: transparent;
    color: var(--clinic-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 196, 198, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .menu-section {
    padding: 60px 30px;
  }
  
  .menu-section .wp-block-columns {
    gap: 40px;
  }
  
  .menu-section h3.wp-block-heading {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .menu-section {
    padding: 50px 0;
    width: 85%;
    margin: 0 auto;
  }
  
  .menu-section .wp-block-columns {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
  }
	
	.menu-section h2.wp-block-heading {
	    margin-top: 0;
}
  
  .menu-section .wp-block-column:first-child,
  .menu-section .wp-block-column:last-child {
    width: 100%;
  }
  
  .menu-section h3.wp-block-heading {
    font-size: 16px;
    padding-bottom: 20px;
  }
  
  .menu-section h3.wp-block-heading::after {
    width: 50px;
  }
  
  .menu-section .wp-block-column:last-child > p {
    font-size: 13px;
  }
  
  .menu-section .wp-block-buttons {
    
  }
	
	.menu-section .wp-block-button__link {
    font-size: 9.99px;
    padding: 6px 30px;
}
}

/* ========== NEWSセクション ========== */

.news-section {
  position: relative;
  margin: 80px 0;
  overflow: hidden;
  padding: 15vh 0 10vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}

/* 背景画像 */
.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://bayashiclinic.com/wp-content/images/news_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.8);
  z-index: -2;
}

/* 背景オーバーレイ */
.news-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: -1;
}

/* 2カラムレイアウト */
.news-section .wp-block-columns {
  max-width: var(--clinic-max-width);
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* 左カラム：NEWS見出し（33.33%） */
.news-section .wp-block-column:first-child {
  width: 33.33%;
  flex-shrink: 0;
}

/* 右カラム：ニュース一覧（66.66%） */
.news-section .wp-block-column:last-child {
  width: 66.66%;
}

/* ニュース一覧の白いカード */
.news-section .wp-block-flexible-table-block-table {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0;
  max-height: 420px;
  overflow-y: auto;
}

/* スクロールバーのスタイル */
.news-section .wp-block-flexible-table-block-table::-webkit-scrollbar {
  width: 8px;
}

.news-section .wp-block-flexible-table-block-table::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.news-section .wp-block-flexible-table-block-table::-webkit-scrollbar-thumb {
  background: var(--clinic-primary);
  border-radius: 4px;
}

.news-section .wp-block-flexible-table-block-table::-webkit-scrollbar-thumb:hover {
  background: var(--clinic-secondary);
}

/* テーブルスタイル */
.news-section table {
  width: 100%;
  border-collapse: collapse;
}

.news-section table tbody tr {
  border-bottom: 1px dashed var(--clinic-border);
  transition: background-color 0.2s ease;
  display:flex;
  align-items: center;
}

.news-section table tbody tr:last-child {
  border-bottom: none;
}

.news-section table td {
  padding: 20px 0;
  vertical-align: middle;
  background-color: transparent !important; /* 既存のCSSを上書き */
}

.news-section table tr:nth-of-type(2n+1) {
  background-color: #fff !important;
}

/* 日付セル（詳細度を上げた版） */
.news-section .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tr td:first-child {
  width: 120px;
    font-family: var(--font-japanese), serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #ffffff !important;
    background-color: var(--clinic-primary) !important;
    padding: 8px 15px;
    border-radius: 5px;
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

/* タイトルセル */
.news-section table td:last-child {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--clinic-text);
  padding-left: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .news-section {
    padding: 80px 30px;
  }
  
  .news-section .wp-block-columns {
    gap: 40px;
  }
  
  .news-section h2.wp-block-heading {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .news-section {
    padding: 60px 20px;
    margin: 60px 0;
  }
	
	.news-section table tbody tr {
    display: flex;
    flex-direction: row;
	align-items: center;
}
  
  .news-section .wp-block-columns {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }
  
  .news-section .wp-block-column:first-child,
  .news-section .wp-block-column:last-child {
    width: 100%;
  }
  
  .news-section h2.wp-block-heading {
    font-size: 2.5em;
    text-align: center;
  }
  
  .news-section h2.wp-block-heading::after {
    text-align: center;
  }
  
  .news-section .wp-block-flexible-table-block-table {
    max-height: 421px;
        padding: 20px;
        border-radius: 10px;
  }
  
  .news-section table td:last-child {
    font-size: 10px;
    padding-left: 15px;
  }
	
	  .news-section {
    padding: 50px 15px;
  }
  
  .news-section h2.wp-block-heading {
    font-size: 2em;
  }
  
  .news-section .wp-block-flexible-table-block-table {
    padding: 15px;
  }
  
  .news-section table td {
    padding: 15px 0;
    display: block;
    width: 100%;
  }
  
  .news-section .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table > table tr td:first-child {
    width: auto !important;
        margin: 30px 0;
        padding: 5px 10px;
        height: 35px;
  }
}

/* ========== FAQセクション ========== */
.faq-section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-section h2 {
  font-family: var(--font-english), serif;
  font-size: 48px;
  font-weight: 400;
  text-align: center;
  color: var(--clinic-text-dark);
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}

/* トグルボックスのラッパー */
.faq-section .toggle-wrap {
 border-radius: 8px;
    max-width: 100%;
    overflow: hidden;
}

/* チェックボックスを非表示 */
.faq-section .toggle-checkbox {
  display: none;
}

/* 質問ボタン */
.faq-section .toggle-button {
  display: flex;
    align-items: center;
    padding: 14px 60px 14px 24px;
    border-radius: 8.18px;
    font-size: 16px;
    font-weight: 400;
    border: solid 0.5px var(--clinic-gray-30);
    cursor: pointer;
    position: relative;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

.faq-section .toggle-button:hover {
  background-color: #f9f9f9;
}

/* Qマーク */
.faq-section.wp-block-group .toggle-wrap .toggle-button::before {
  content: 'Q.';
    font-family: var(--font-english), serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--clinic-primary);
    margin-right: 16px;
    flex-shrink: 0;
    z-index: 10;
	opacity: 1;
}

/* トグルアイコン（右端） */
.faq-section .toggle-button::after {
  content: '—';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--clinic-text-dark);
  transition: transform 0.3s ease;
}

/* 閉じている状態のアイコン（縦線を追加して+にする） */
.faq-section .toggle-checkbox:not(:checked) + .toggle-button::after {
  content: '+';
}

/* 開いている状態 */
.faq-section .toggle-checkbox:checked + .toggle-button::after {
  content: '—';
}

/* 回答コンテンツ */
.faq-section .toggle-content {
  display: none;
  padding: 0 24px 24px 24px;
  background-color: #ffffff;
}

.faq-section .toggle-checkbox:checked ~ .toggle-content {
 display: block;
    border-color: #fff;
    border-left: solid 0.5px var(--clinic-gray-30);
    border-right: solid 0.5px var(--clinic-gray-30);
    border-bottom: solid 0.5px var(--clinic-gray-30);
    border-radius: 0 0 8px 8px;
    padding: 24px 60px 24px 24px;
    background-color: var(--clinic-white);
}

.faq-section .toggle-content p {
  display: flex;
    align-items: center;
    margin: 0;
    padding-left: 0;
}

/* Aマーク */
.faq-section .toggle-content p::before {
  content: 'A.';
    font-family: var(--font-english), serif;
    font-size: 40px;
    font-weight: 400;
    margin-right: 16px;
    flex-shrink: 0;
    padding-top: 2px;
    color: var(--clinic-primary);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
        width: 85%;
        margin: 0 auto;
  }
  
  .faq-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
	
	.faq-section.wp-block-group .toggle-wrap .toggle-button::before {
    font-size: 25px;
}
  
  .faq-section .toggle-button {
    padding: 20px 45px 20px 20px;
        font-size: 10px;
  }
  
  .faq-section .toggle-button::before {
    font-size: 18px;
    margin-right: 12px;
  }
  
  .faq-section .toggle-button::after {
    right: 20px;
    font-size: 20px;
  }
  
  .faq-section .toggle-content {
    padding: 0 20px 20px 20px;
  }
  
  .faq-section .toggle-content p {
    font-size: 10px;
  }
  
  .faq-section .toggle-content p::before {
    font-size: 25px;
    margin-right: 12px;
  }
}

/* ========== ACCESSセクション ========== */
.body section.access-section.wp-block-group {
  background-color: var(--clinic-primary);
    position: relative;
    margin: 0;
    overflow: hidden;
    padding: 15vh 0 10vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.access-section a {
	color:#fff;
}

.access-section .wp-block-columns {
  gap: 60px;
  align-items: stretch;
  max-width: 90%;
}

/* 左カラム */
.access-section .wp-block-column:first-child {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ACCESS見出しはVALUEに記載 */
/* ACCESSセクションの見出しのみ調整 */
.access-section h2.wp-block-heading {
  padding-left: 0;
  max-width: fit-content; /* 追加 */
}

/* アクセス情報テキスト */
.access-section .wp-block-column:first-child > p:first-of-type {
  font-size: 14px;
    color: #ffffff;
	letter-spacing: 0.2em;
}

/* クリニック名を太字に */


/* SNS情報テキスト */
.access-section .wp-block-column:first-child > p:nth-of-type(2) {
  font-size: 20px;
    letter-spacing: 0.2em;
    color: #ffffff;
    margin: 0 0 16px 0;
}

/* SNSボタンコンテナ */
.access-section .wp-block-column:first-child > .wp-block-columns {
  gap: 16px;
  margin-top: auto;
}

/* SNSボタン */
.access-section .wp-block-column:first-child .wp-block-column {
  padding: 12px 0px;
    transition: all 0.3s ease;
    cursor: pointer;
	max-width: 130px;
}

.access-section .wp-block-column:first-child .wp-block-column:hover {
}

/* SNSボタンテキスト */
.access-section .wp-block-column:first-child .wp-block-column p {
  font-family: var(--font-japanese), serif;
  font-size: 14px;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: start;
}

/* Instagramアイコン */
.access-section .wp-block-column:first-child .wp-block-column:first-child p::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

/* LINEアイコン */
.access-section .wp-block-column:first-child .wp-block-column:last-child p::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

/* 右カラム - Googleマップ */
.access-section .wp-block-column:last-child {
  display: flex;
  align-items: center;
  justify-content: start;
}

.access-section iframe {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 2px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.body section.access-section.wp-block-group {
  background-color: var(--clinic-primary);
    position: relative;
    margin: 0;
    overflow: hidden;
    padding: 9vh 0 10vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
	
  .access-section {
    padding: 60px 20px;
  }
  
  .access-section .wp-block-columns {
    flex-direction: column;
    gap: 40px;
	  max-width:85%;
  }
  
  .access-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
  }
  
  .access-section h2::after {
    font-size: 12px;
  }
  
  .access-section .wp-block-column:first-child > p:first-of-type {
    font-size: 10px;
        margin-bottom: 25px;
        line-height: 26px;
  }
  
  .access-section iframe {
    height: 300px;
  }
	
	.access-section .wp-block-column:first-child .wp-block-column {
    padding: 0;
}
	
	.access-section .wp-block-column:first-child .wp-block-column p {
		font-size:12px;
		margin-bottom: 0;
	}
}


/* ========== プライバシーポリシー ========== */

section.page-privacypolicy h3,
section.menu-detail h3 {
	color: var(--clinic-text);
    border-left: 5px solid var(--clinic-primary);
    border-top: 0;
    border-bottom: 0;
    padding-left: 4%;
    padding-bottom: 0;
    padding-top: 0;
    margin-top: 7%;
    margin-bottom: 4%;
    line-height: 1.5;
    letter-spacing: 0.2em;
    font-size: 1.2em;
    font-weight: 400;
    font-family: var(--font-japanese), serif;
}

/* ========== 料金ページカスタムボタン ========== */
body .entry-content .wp-block-columns.price-menu {
    margin-bottom: 8em;
}

.custom-btn {
  display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #9EC4C6;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 30px;
    margin-bottom: 5vh;
    border-radius: 10px;
    width: 100%;
    max-height: 100px;
    height: 100px;
    transition: all 0.3s ease;
    position: relative;
    gap: 15px;
}

.custom-btn:hover {
  background-color: #8ab4b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(158, 196, 198, 0.3);
}

a.custom-btn:hover {
	color: #ffffff;
}

/* アイコン */
.custom-btn__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

/* テキスト */
.custom-btn__text {
  flex: 1;
  font-family: var(--font-japanese), serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: left;
  line-height: 1.5;
}

/* 矢印 */
.custom-btn__arrow {
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.custom-btn:hover .custom-btn__arrow {
  transform: translateY(3px);
}

/* カスタムボタンのテキスト内のsmallタグ */
.custom-btn__text small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.9;
  line-height: 1.4;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .custom-btn {
    min-width: 100%;
    max-width: 100%;
    padding: 15px 20px;
  }
  
  .custom-btn__icon {
    width: 40px;
    height: 40px;
  }
  
  .custom-btn__text {
    font-size: 14px;
  }
  
  .custom-btn__arrow {
    font-size: 18px;
  }
	
	  .custom-btn__text small {
    font-size: 11px;
  }
}

/* 料金表 */
body.body section.menu-detail .price-table {
    margin-bottom: 1em;
	max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

body.body .price-table {
    margin-bottom: 1em;
	max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}


body .entry-content section.menu-detail .price-table:last-child {
    margin-bottom: 10em;
}

.price-table__category {
    font-family: var(--font-japanese);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--clinic-text-dark);
    padding: 1.5em 2em;
    margin: 0;
    background-color: #ffffff;
    border-left: 4px solid var(--clinic-primary);
}

.price-table__content {
    padding: 0;
}

/* 施術名（アンカーリンク対応） */
.price-treatment {
    margin-bottom: 2.5em;
    scroll-margin-top: 100px;
    background-color: rgba(158, 196, 198, 0.10);
    padding: 10vh;
}

.price-treatment:last-child {
    margin-bottom: 0;
}

.price-treatment__title {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-japanese);
    font-size: 1.1rem;
    font-weight: 400 !important;
    color: var(--clinic-text);
    margin: 0 0 1.2em;
    border-top: none !important;
    border-bottom: none !important;
}

.price-treatment__icon {
    width: 20px;
    height: 20px;
    background-color: var(--clinic-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* 施術方法リスト */
.price-treatment__methods {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.price-method {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.4em 0;
    gap: 2em;
    border-bottom: 1px solid #3e3737;
}

.price-method__name {
    font-size: 1.0rem;
    flex: 0 0 auto;
    min-width: 200px;
	max-width:320px;
}

.price-method__prices {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    flex-direction: column;
}

.price-method__price {
    display: flex;
    align-items: flex-end;
    gap: 1.5em;
    justify-content: flex-end;
    flex-direction: column;
}

/* 通常価格のみの場合 */
.price-method__prices .price-method__price:only-child {
    gap: 1.5em;
}

.price-method__label {
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
}

.price-method__value {
    /*font-size: 1.2rem;*/
    line-height: 1;
}

/* 施術名の下部キャプション */
.price-treatment__caption {
    font-size: 0.85rem;
    margin: 0;
    text-align: right;
    padding: 0;
}

/* ナビゲーション */
.menu-nav {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: 3em;
    padding: 1.5em;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.menu-nav__link {
    display: inline-block;
    padding: 0.8em 1.5em;
    background-color: var(--clinic-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--font-gothic);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-nav__link:hover {
    background-color: var(--clinic-secondary);
    transform: translateY(-2px);
}

.article .price-table h3.price-treatment__title {
	margin-top: 0;
    margin-bottom: 30px;
    border: none;
    padding: 0;
}

.price-method__price-main {
    display: flex;
    align-items: baseline;
    gap: 0.8em;
    justify-content: flex-end;
}

.price-method__note {
    font-size: 0.7rem;
    line-height: 1.8;
    text-align: right;
}

.price-method__name-sub {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.3em;
    line-height: 1.4;
}


/* レスポンシブ */
@media (max-width: 768px) {
	body.body .price-table {
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
	
	body.body section.menu-detail .price-table {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
	
    .price-treatment {
        scroll-margin-top: 80px;
		padding: 30px 30px;
    }
    
    .price-table__category {
        font-size: 1.2rem;
        padding: 1.2em 1.5em;
    }
    
    .price-table__content {
        padding: 1.5em 0;
    }
    
    .price-treatment__title {
        font-size: 1rem;
    }
    
    .price-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .price-method__name {
        min-width: auto;
        width: 100%;
    }
    
    .price-method__prices {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5em;
    }
    
    .price-method__price {
        align-items: baseline;
        justify-content: space-between;
        width: 100%;
    }
    
    .price-method__value {
        min-width: auto;
    }
    
    .price-method__prices .price-method__price:only-child .price-method__value {
        font-size: 1.2rem;
    }
    
    .price-treatment__caption {
        font-size: 0.8rem;
        padding: 0.7em 1em;
    }
    
    .menu-nav {
        justify-content: center;
    }
    
    .menu-nav__link {
        font-size: 0.85rem;
        padding: 0.7em 1.2em;
    }
	
	.price-method__price {
        align-items: flex-start;
    }
    
    .price-method__price-main {
        justify-content: flex-end;
        gap: 0.5em;
        width: 100%;
    }
    
    .price-method__note {
        text-align: left;
        max-width: 100%;
    }
}

/* ========================================
   施術ページカスタム
======================================== */
.body section.menu-btn.wp-block-group {
	margin-bottom:10%;
}

/* メニューボタン */
.menu-btn figure {
    max-width: 100%;
    margin: 0 0 1.5em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-btn figure:last-child {
    margin-bottom: 0;
}

.menu-btn figure a {
    display: block;
    text-decoration: none;
}

.menu-btn figure img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* ホバー時のアニメーション */
.menu-btn figure:hover {
    transform: translateY(-8px);
}

.menu-btn figure:hover img {
    transform: scale(1.02);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .menu-btn figure {
        margin: 0 0 1em;
    }
    
    .menu-btn figure:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    }
}

/* ========================================
   メニューボタンセクション - 上下背景色分割版(横並び対策済み)
   ======================================== */

/* PC版: 画像ボタン表示 */
.menu-btn figure {
  display: block;
  margin: 20px 0;
}

.menu-btn-sp {
  display: none;
}

/* ========== SP版: 768px以下 ========== */
@media (max-width: 768px) {
  
  /* PC版画像を非表示 */
  .menu-btn > figure {
    display: none;
  }
  
  /* SP版カード */
  .menu-btn-sp {
    display: block;
    background: transparent;
    border-radius: 9.48px;
    padding: 0;
    margin: 20px 0;
    overflow: hidden;
  }
  
  /* 上部エリア: 水色背景 */
  .menu-btn-sp > .wp-block-columns {
    background: var(--clinic-primary);
    padding: 18px 23px;
    margin: 0 !important;
    gap: 10px;
    border-radius: 9.48px 9.48px 0 0;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  
  /* アイコン */
  .menu-btn-sp .wp-block-column:nth-child(1) {
    flex-basis: 55px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .menu-btn-sp .wp-block-column:nth-child(1) figure {
    margin: 0;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
  }
  
  .menu-btn-sp .wp-block-column:nth-child(1) img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* タイトル */
  .menu-btn-sp .wp-block-column:nth-child(2) {
    flex-basis: auto !important;
    flex-grow: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .menu-btn-sp .wp-block-column:nth-child(2) p {
    color: white;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.05em;
  }
  
  /* MOREボタン(新構造) */
  .menu-btn-sp .wp-block-column:nth-child(3) {
    flex-basis: 90px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  /* wp-block-buttons コンテナ */
  .menu-btn-sp .wp-block-buttons {
    margin: 0 !important;
    gap: 0 !important;
  }
  
  /* wp-block-button ラッパー */
  .menu-btn-sp .wp-block-button {
    margin-top: 15px;
  }
  
  /* ボタン本体 */
  .menu-btn-sp .wp-block-button__link {
    display: inline-block;
    background: transparent !important;
    color: white !important;
    border: 1px solid white !important;
    border-radius: 25px !important;
    padding: 6px 16px !important;
    font-size: 8.11px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    letter-spacing: 0.15em !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }
  
  .menu-btn-sp .wp-block-button__link:hover {
    background: white !important;
    color: var(--clinic-accent) !important;
    border-color: white !important;
  }
  
  /* 下部エリア: 薄い水色背景 */
  .menu-btn-sp > p {
    background: #a9cacd;
    color: white;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    padding: 14px 23px;
    letter-spacing: 0.05em;
    border-radius: 0 0 9.48px 9.48px;
  }
  
  /* カラムパディングとマージンを完全にリセット */
  .menu-btn-sp .wp-block-column {
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* ========== 施術ページカスタム ========== */

.body section.trouble-section.wp-block-group {
	background-color: var(--clinic-secondary);
    padding: 15vh;
	border-radius: 20px;
	margin-top:10em;
}

.body section.trouble-section.wp-block-group h2 {
	border:none;
	letter-spacing:5px;
}

.body section.trouble-section.wp-block-group figure {
	width: 60vh;
	height:auto;
}

body .entry-content section.reason-section.wp-block-group > h2,
body .entry-content section.reason-section.wp-block-group > h3,
body .entry-content section.reason-section.wp-block-group > h4,
body .entry-content section.reason-section.wp-block-group > p,
body .entry-content section.reason-section.wp-block-group > div,
body .entry-content section.point-section.wp-block-group > h2,
body .entry-content section.point-section.wp-block-group > h3,
body .entry-content section.point-section.wp-block-group > h4,
body .entry-content section.point-section.wp-block-group > p,
body .entry-content section.point-section.wp-block-group > div,
body .entry-content section.point-section.wp-block-group > figure,
div.page-accordion-out h2,
div.page-accordion-out h3,
div.page-accordion-out h4,
div.page-accordion-out p,
div.page-accordion-out div,
section.flow-section div {
    max-width: 100%;
}

/* reason-section内のh3に自動ナンバリング */

/* カウンターをリセット(セクションの開始時) */
body .entry-content section.reason-section.wp-block-group {
    counter-reset: reason-counter;
}

/* h3にカウンターを適用 */
body .entry-content section.reason-section.wp-block-group h3 {
    position: relative;
    padding-left: 80px;
    counter-increment: reason-counter;
}

/* ::before擬似要素で番号を表示 */
body .entry-content section.reason-section.wp-block-group h3::before {
    content: "0" counter(reason-counter);
    position: absolute;
    left: 0;
    bottom: 15%;
    font-size: 3rem;
    color: var(--clinic-primary);
    font-family: var(--font-japanese), sans-serif;
    line-height: 1;
}

/* 10以降の番号(2桁)に対応 */
body .entry-content section.reason-section.wp-block-group h3:nth-of-type(n+10)::before {
    content: counter(reason-counter);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.body section.trouble-section.wp-block-group {
    padding: 6vh;
    margin-top: 5em;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 25px !important;
    padding-right: 25px !important;
}
	
    body .entry-content section.reason-section.wp-block-group h3 {
        padding-left: 60px;
    }
	
	.body section.trouble-section.wp-block-group figure {
		width: 35vh;
	}
    
    body .entry-content section.reason-section.wp-block-group h3::before {
        font-size: 2rem;
    }
}

/* page-accordion アコーディオン機能 */

/* アコーディオンアウター */
.page-accordion-out {
    overflow: hidden;
    border-bottom: 0.5px solid var(--clinic-text);
}

/* h3見出し(クリック可能) */
.page-accordion-out > h3 {
    position: relative;
    margin: 0 !important;
    padding: 20px 60px 20px 25px !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
    border: none !important;
}

/* h3ホバー時 */
.page-accordion-out > h3:hover {
    background-color: #f0f0f0;
}

/* プラス/マイナスマークのベース */
.page-accordion-out > h3::before,
.page-accordion-out > h3::after {
    content: "";
    position: absolute;
    right: 25px;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: var(--clinic-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* マイナスマーク(横線) */
.page-accordion-out > h3::before {
    transform: translateY(-50%);
}

/* プラスマーク(縦線) */
.page-accordion-out > h3::after {
    transform: translateY(-50%) rotate(90deg);
}

/* 開いている時は縦線を非表示(マイナスマークのみ表示) */
.page-accordion-out.is-open > h3::after {
    opacity: 0;
    transform: translateY(-50%) rotate(0deg);
}

/* アコーディオンインナー(コンテンツ部分) */
.page-accordion-in {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px !important;
}

/* 開いている時 */
.page-accordion-out.is-open .page-accordion-in {
    max-height: 5000px !important; /* 十分大きな値 */
    padding: 30px 20px !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-accordion-out > h3 {
        padding: 15px 50px 15px 20px !important;
    }
    
    .page-accordion-out > h3::before,
    .page-accordion-out > h3::after {
        right: 20px;
        width: 16px;
    }
    
    .page-accordion-out.is-open .page-accordion-in {
        padding: 20px 15px !important;
    }
}

/* ========================================
   予約セクション(Reservation)デザイン
======================================== */

/* セクション全体 */
body.body section.section-resave {
    position: relative;
    margin: 100px 0 0 0;
    overflow: hidden;
    padding: 15vh 0 10vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 20px;
    padding-right: 20px;
}

/* 背景画像 */
.section-resave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://bayashiclinic.com/wp-content/images/menu_cta.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.section-resave::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #9E9E9E;
    mix-blend-mode: multiply;
    opacity: 0.7;
    z-index: -1;
}

/* 背景オーバーレイ */
.section-resave::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* "Reservation"テキスト */
.section-resave > p:first-of-type {
    font-family: var(--font-english), serif;
    font-size: 0.9em;
    font-weight: 400;
    color: var(--clinic-white);
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    text-align: center;
    vertical-align: middle;
    padding-bottom: 10px;
    border-bottom: 1px solid;
    width: 121px;
}

/* "無料カウンセリングのご予約はこちら"テキスト */
.section-resave > p:nth-of-type(2) {
    font-size: 1.8em;
    letter-spacing: 0.2em;
    color: var(--clinic-white);
    margin-bottom: 50px;
    line-height: 1.6;
}

/* ボタンエリア(2カラム) */
.section-resave .wp-block-columns {
    max-width: 900px;
    margin: 0 auto;
    gap: 50px;
}

/* 各ボタンカラム */
.section-resave .wp-block-column {
    flex-basis: 50% ;
}

/* ボタンラッパー */
.section-resave .button-block {
    margin: 0 ;
}

/* ボタン共通スタイル */
.section-resave .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    font-size: 20px;
    letter-spacing: 0.2em;
    font-weight: 400;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s 
ease !important;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Webボタン(左側・水色) */
.section-resave .wp-block-column:first-child .btn {
    background-color: var(--clinic-primary) ;
    color: #ffffff !important;
}

.section-resave .wp-block-column:first-child .btn:hover {
    background-color: #7AB8BD ;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(158, 196, 198, 0.4);
}

/* LINEボタン(右側・ベージュ) */
.section-resave .wp-block-column:last-child .btn {
    background-color: var(--clinic-h3-border);
    color: #ffffff;
}

.section-resave .wp-block-column:last-child .btn:hover {
    background-color: #84644b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 193, 176, 0.4);
}

/* 矢印アイコン追加(オプション) */
.section-resave .btn::after {
    content: "→";
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.section-resave .btn:hover::after {
    transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section-resave {
        padding: 10vh 0 8vh;
    }
    
    .section-resave > p:first-of-type {
        font-size: 0.8em;
		width: 95px;
    }
    
    .section-resave > p:nth-of-type(2) {
        font-size: 1.3em;
        margin-bottom: 40px;
		width: 255px;
    }
    
    /* ボタンを縦並びに */
    .section-resave .wp-block-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-resave .wp-block-column {
        flex-basis: 100%;
    }
    
    .section-resave .btn {
        padding: 18px 30px;
        font-size: 1em;
    }
}

/* ========================================
   Point Section - カウンター初期化
======================================== */
body.body section.point-section {
    counter-reset: point-counter;
}

/* ========================================
   Point Section - h3見出し(横並びレイアウト)
======================================== */
body.body section.point-section h3 {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0;
    counter-increment: point-counter;
}

/* 「point」部分(小さい文字) - 2番目に配置 */
.point-section h3::before {
    content: counter(point-counter, decimal-leading-zero);
    position: static;
    display: inline-block;
    font-family: var(--font-japanese);
    font-size: 48px;
    color: var(--clinic-primary);
    line-height: 1;
    letter-spacing: 0em;
    white-space: nowrap;
    flex-shrink: 0;
    order: -1;
    margin-right: 20px;
}

.point-section h3::after {
	content: "point";
    position: static;
    display: inline-block;
    font-family: var(--font-japanese);
    font-size: 18px;
    line-height: 1;
    color: var(--clinic-primary);
    letter-spacing: 0em;
    white-space: nowrap;
    flex-shrink: 0;
    order: -2;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    body.body section.point-section h3 {
        font-size: 20px;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .point-section h3::before {
        font-size: 30px;
    }
    
    .point-section h3::after {
        font-size: 15px;
    }
}


/* ========================================
   追加レスポンシブ設定
======================================== */

@media (max-width: 768px) {
	.column-wrap {
    flex-direction: column;
}
	
	.column-2-3-2-1 .column-left {
    width: 85% !important;
}
	
	.column-2-3-2-1 .column-right {
    width: 85% !important;
}
	
    .column-2-3-2-1 .column-right figure {
    border-radius:10px;
}
	
	.hero-fixed-content {
    align-items: flex-end;
}
	
	.hero-content-inner p.hero-subtitle {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 0 0;
    opacity: 1;
}
	
	.hero-content-inner h1.hero-title {
    font-size: 28px;
    text-align: left;
    line-height: 1.5;
    margin: 0;
}
	
.value-section h2.wp-block-heading, .doctor-section h2.wp-block-heading, .campain-section h2.wp-block-heading, .menu-section h2.wp-block-heading, .news-section h2.wp-block-heading, .faq-section h2.wp-block-heading, .access-section h2.wp-block-heading {
    font-size: 1.8em;
}

.value-section h2.wp-block-heading::after, .doctor-section h2.wp-block-heading::after, .campain-section h2.wp-block-heading::after, .menu-section h2.wp-block-heading::after, .news-section h2.wp-block-heading::after, .faq-section h2.wp-block-heading::after, .access-section h2.wp-block-heading::after {
    left: calc(90% + 5px);
    width: 20px;
}
	
	.value-section h2.wp-block-heading::before, .doctor-section h2.wp-block-heading::before, .campain-section h2.wp-block-heading::before, .menu-section h2.wp-block-heading::before, .news-section h2.wp-block-heading::before, .faq-section h2.wp-block-heading::before, .access-section h2.wp-block-heading::before {
    left: calc(90% + 36px);
    font-size: 12px;
}
	
	.body section.value-section.wp-block-group {
    border-radius: 40px 40px 0 0;
}
	
}