/* ==========================================
           リセットCSS & グローバルスタイル
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ja-txt: "Shippori Mincho", serif;
  --en-txt: "Aboreto", "Georgia", serif;
  --color-primary: #b8a068;
  --color-secondary: #8b7b6b;
  --color-accent: #7c7461;
  --color-bg-beige: #f5f0e8;
  --color-text-main: #333;
  --color-text-sub: #666;
  --color-text-light: #999;
  --color-border: #e0e0e0;
}

body {
  font-family: "Shippori Mincho", serif;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: #fff;
}

/* ==========================================
                   共通コンポーネント
   ========================================== */

/* コンテナ */
.c-container {
  padding: 0 20px;
}

/* レスポンシブ改行 */
br.sp {
  display: none;
}

@media screen and (max-width: 768px) {
  br.sp {
    display: block;
  }
}

/* View Moreボタン（共通） */
.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #7c7461;
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  font-size: clamp(0.64rem, 0.566rem + 0.32vw, 0.85rem);
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.view-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.view-more-btn:hover::before {
  left: 0;
}

.view-more-btn:hover {
  background: #8a7a6a;
  transform: translateX(3px);
}

.view-more-btn::after {
  content: "";
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
  border-width: 0px 0px 16px 16px;
}

.view-more-btn:hover::after {
  transform: translateX(3px);
}

/* 共通セクションロゴ */
.section-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", serif;
  font-size: 28px;
  color: var(--color-primary);
  font-style: italic;
  font-weight: normal;
  position: relative;
}

.section-logo::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0.3;
}

/* パンくずリスト */

#pankz {
  padding: .5% 0 0;
  font-size: clamp(11px, calc(0.6875rem + ((1vw - 12px) * 0.125)), 12px);
}

@media (max-width: 767px) {
  #pankz {
    padding: 1vw 5vw .5vw;
    font-size: 2.8vw;
  }
}

#pankz .inner {
  display: flex;
  justify-content: flex-end;
  position: relative;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
}

#pankz ul {
  overflow-x: auto;
  display: flex;
  padding-bottom: .5%;
  letter-spacing: 0.2em;
  gap: 10px;
}

@media (max-width: 767px) {
  #pankz ul {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 5px 10px;
  }
}

#pankz ul li {
  flex-shrink: 0;
  list-style: none;
}

@media (max-width: 767px) {
  #pankz ul li {
    flex-shrink: 1;
  }
}

#pankz a {
  color: #241000;
}

#pankz ul li+li:before {
  content: " / ";
  left: -35px;
  width: 16px;
  height: 1px;
}

/* ==========================================
                   ヘッダー完全版
   ========================================== */
.top-bar {
  background-color: #f4e8e0;
  padding: 7px 0;
  position: relative;
  z-index: 1000;
}

.top-bar .inner {
  max-width: 1328px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

.top-bar .info-text {
  color: #7c7461;
  font-size: 10px;
  /* letter-spacing: 1.2px; */
}

header {
  position: sticky;
  top: 0;
  padding: 0 56px;
  z-index: 1000;
  background-color: white;
  border-bottom: 1px solid #f0f0f0;
}

.header-wrapper {
  max-width: 1328px;
  margin: 0 auto;
  padding: 30px 0 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 15px;
}

.header-logo img {
  display: block;
  width: 335px;
  height: auto;
}

.header-logo .logo-mark {
  width: 50px;
  height: 50px;
  background-color: #af9454;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-style: italic;
}

.header-logo .logo-text {
  color: #7c7461;
  font-size: 24px;
  letter-spacing: 4px;
  font-weight: 300;
}

/* 右側のアクションエリア */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.clinic-hours {
  text-align: center;
  color: #7c7461;
  font-size: 10px;
  line-height: 1.4;
}

.cta-buttons {
  display: flex;
  gap: 10px;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  background-color: #7c7461;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
  font-size: 14px;
}

.cta-button:hover {
  opacity: 0.8;
}

.cta-button .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-button .icon img {
  width: 100%;
}

.instagram-link {
  width: 38px;
  height: 38px;
  display: block;
}

.instagram-link img {
  width: 100%;
}

.instagram-link svg {
  width: 100%;
  height: 100%;
  fill: #e4405f;
}

/* ナビゲーション（ヘッダー下段） */
.header-nav {
  padding: 20px 0;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 48px;
  list-style: none;
}

.nav-menu a {
  color: #7c7461;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: opacity 0.3s;
}

.nav-menu a:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* モバイル用ヘッダーアクション */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 15px;
}

.mobile-instagram {
  width: 30px;
  height: 30px;
}

.mobile-instagram svg {
  width: 100%;
  height: 100%;
  fill: #e4405f;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  width: 60px;
  height: 50px;
  background: #7c7461;
  border-radius: 30px 0 0 30px;
  cursor: pointer;
  position: relative;
  margin-right: -40px;
  padding-right: 15px;
}

.hamburger span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 1px;
  background-color: white;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) {
  top: 10px;
}

.hamburger span:nth-child(2) {
  top: 14px;
}

.hamburger span:nth-child(3) {
  bottom: 14px;
}

.hamburger.active span:nth-child(1) {
  top: 10px;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  bottom: 10px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ドロップダウンメニュー */
.slide-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: transparent;
  z-index: 999;
  overflow: hidden;
  transition: height 0s 0.3s, background-color 0.3s;
}

.slide-menu.is-open {
  height: 100vh;
  transition: height 0s, background-color 0.3s;
}

.slide-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.slide-menu.is-open .slide-menu-content {
  transform: translateY(0);
}

/* ヘッダーの高さを計算して、メニューをその下に配置 */
@media (max-width: 768px) {
  .slide-menu-content {
    top: 60px;
    /* モバイルヘッダーの高さに合わせる */
  }
}

/* .close-menu {
              display: flex;
              justify-content: flex-end;
              margin-bottom: 30px;
            } */

.close-btn {
  width: 44px;
  height: 44px;
  background-color: #7c7461;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

.mobile-menu-list {
  list-style: none;
}

.mobile-menu-list > li {
  border-bottom: 1px solid #ddd;
}

.mobile-menu-list > li > a {
  display: block;
  padding: 15px 0;
  color: #7c7461;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 4.8px;
  position: relative;
}

.mobile-menu-list > li > a::after {
  content: ">";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #7c7461;
}

.mobile-info {
  margin-bottom: 20px;
  padding-top: 20px;
  text-align: center;
  color: #7c7461;
  font-size: 10px;
}

.mobile-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 60px;
}

.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background-color: #7c7461;
  text-decoration: none;
  color: white;
  font-size: 14px;
}

.mobile-cta-adj {
  gap: 15px;
}

/* ==========================================
           FVセクション
   ========================================== */

/* FVセクションのスタイル */
.fv-section {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

/* コンテンツコンテナ */
.fv-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 193px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 円形の装飾（枠線のみ） */
.fv-container::before {
  content: '';
  position: absolute;
  left: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: 445px;
  border: 2px solid #7C7461;
  border-radius: 50%;
  z-index: 3;
  opacity: 0.5;
}

/* 円の内側の白い背景（テキスト部分のみ） */
.fv-container::after {
  content: '';
  position: absolute;
  left: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: 450px;
  border-radius: 50%;
  z-index: 2;
}

/* 円の右側の線を隠すための白い背景を追加 */
.fv-content::before {
  content: '';
  position: absolute;
  left: clamp(2.188rem, 0.214rem + 8.1vw, 7.5rem);
  top: 36%;
  transform: translateY(-50%);
  width: 85px;
  height: clamp(3.125rem, 1.964rem + 4.76vw, 6.25rem);
  background-color: #fff;
  z-index: -1;
}

/* テキストエリアの調整 */
.fv-content {
  flex: 0 0 auto;
  max-width: 480px;
	width:100%;
  position: relative;
  z-index: 4;
  padding-right: 60px;
  margin-top: 60px;
  padding: 40px 60px 40px 60px;
  /* パディングを追加 */
  border-radius: 0 10px 10px 0;
  /* 右側に角丸（オプション） */
}

.fv-title-en {
  font-family: 'Aboreto', 'Georgia', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: #8B7B6B;
  margin-bottom: 30px;
  line-height: 1.2;
}

.fv-title-ja {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: #333;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: right;
  padding-right: 10px;
}

/* 画像エリア */
.fv-image-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 800px;
  height: 450px;
  z-index: 1;
}

.fv-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.fv-image img {
  width: 100%;
  height: 100%;
  object-position: center;
  opacity: 0.8;
}

/* 画像の上に被せるグラデーションマスク */
.fv-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.95) 30%,
      rgba(255, 255, 255, 0.8) 40%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0.2) 60%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* PC (1440px) */
@media (max-width: 1440px) {
  .fv-section {
    max-width: 100%;
  }
}

/* タブレット */
@media (max-width: 1024px) {
  .fv-container {
    padding: 0 60px;
  }

  .fv-container::after {
    width: 350px;
    height: 350px;
    left: -100px;
  }

  .fv-content {
    padding-right: 40px;
  }

  .fv-image::after {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.9) 25%,
        rgba(255, 255, 255, 0.6) 35%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%);
  }
}

/* スマートフォン (390px) */
@media (max-width: 768px) {
  .fv-section {
    width: 100%;
    height: 270px;
  }

  .fv-container {
    padding: 0 20px;
    justify-content: center;
  }

  .fv-container::before {
    width: 300px;
    height: 300px;
    left: 0;
    transform: translate(-50%, -50%);
    opacity: 0.3;
  }

  .fv-container::after {
    width: 300px;
    height: 300px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .fv-content {
    text-align: center;
    max-width: 100%;
    padding-right: 0;
    z-index: 5;
  }
	
	.fv-title-ja {
  text-align: center;
}

  .fv-title-en {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    background: none;
	  text-align:left;
  }

  .fv-title-ja {
    font-size: 1.125rem;
/*     text-align: center; */
    padding-right: 0;
  }

  .fv-image-wrapper {
    width: 100%;
    height: 270px;
  }

  /* モバイル用グラデーション */
  .fv-image::after {
    background: linear-gradient(90deg, #FFF 50%, rgba(255, 255, 255, 0.00) 100%);
    left: 0;
  }
}

/* 極小画面 (390px以下) */
@media (max-width: 390px) {
  .fv-section {
    width: 100%;
  }

  .fv-title-en {
    font-size: 2rem;
  }

  .fv-title-ja {
    font-size: 1rem;
  }

  .fv-container::before,
  .fv-container::after {
    width: 265px;
    height: 265px;
  }

  .fv-image-wrapper {
    width: 100%;
  }
}

/* ページコンテンツ部分 */
.page-content {
  padding: 80px 0;
}

.page-content .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
           CONTACTセクション完全版
   ========================================== */
	
/* .contact-section {
	margin-top:80px;
} */
	
.contact-section {
	background: url("https://gotanda-kyousei-shika.clinic/wp-content/themes/lumilia/assets/img/top-bg-image04.png") 50% / cover no-repeat;
	padding: 80px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-content {
  display: flex;
  padding: 80px 60px;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.section-header {
  text-align: center;
  width: 100%;
}

.section-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo-mark {
  width: 45px;
  height: 45px;
  background-color: #AF9454;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-style: italic;
}

.section-title-en {
  color: #7C7461;
  font-size: 28px;
  letter-spacing: 4px;
  font-weight: 300;
}

.section-title-ja {
  color: #333;
  font-size: 24px;
  letter-spacing: 8px;
  margin-bottom: 30px;
}

.section-description {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 2px;
}

/* メインコンテンツグリッド */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: 100%;
}

/* 左側：アクセス情報 */
.access-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

.clinic-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.clinic-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clinic-logo .logo-mark {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.clinic-logo .logo-text {
  color: #7C7461;
  font-size: 20px;
  letter-spacing: 3px;
}

.clinic-details {
  /*   flex: 1; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clinic-name {
  color: #333;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.info-label {
  min-width: 80px;
  color: #7C7461;
}

.map-container {
  width: 100%;
  flex: 1;
  min-height: 250px;
  background: #e0e0e0;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* 右側：診療時間とCTA */
.schedule-cta {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

/* 診療時間テーブル */
.schedule-table-wrapper {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.schedule-table-wrapper img {
  width: 100%;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  height: 100%;
}

.schedule-table th,
.schedule-table td {
  padding: 12px;
  text-align: center;
  font-size: 13px;
}

.schedule-table thead th:not(:last-child),
.schedule-table tbody th:not(:last-child),
.schedule-table tbody td:not(:last-child) {
  border-right: 1px solid #ddd;
}

.schedule-table thead tr {
  border-bottom: 1px solid #ddd;
}

.schedule-table tbody tr:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.schedule-table thead th {
  color: #7C7461;
  font-weight: normal;
}

.schedule-table tbody th {
  color: #7C7461;
  font-weight: normal;
  text-align: left;
  padding-left: 20px;
}

.schedule-table tbody td {
  color: #666;
}

.schedule-icon {
  font-size: 16px;
}

/* CTAボックス */
.cta-box {
	width: 100%;
    background: white;
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #7C7461;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.cta-box .phone-icon {
  width: 15px;
}

.phone-icon img{
	width:100%;
}

.cta-box .cta-button-icon {
  width: 19px;
}

.cta-box img {
  width: 100%;
}

.cta-title {
  color: #333;
  font-size: clamp(1.25rem, 1.157rem + 0.38vw, 1.5rem);
  letter-spacing: 4px;
  margin-bottom: 30px;
  text-align: center;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex: 1;
}

.cta-phone-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 2;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 15px;
}

.phone-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.phone-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C7461;
  font-size: 16px;
}

.cta-phone-label {
  color: #7C7461;
  font-size: 11px;
  letter-spacing: 1px;
}

.cta-phone-number {
  color: #7C7461;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

.cta-hours {
  color: #666;
  font-size: 12px;
  margin-left: 25px;
}

.cta-buttons-contact {
  max-width: 680px;
  width: 100%;
  display: flex;
  gap: 40px;
  flex-shrink: 0;
}

.cta-button-contact {
  display: flex;
  max-width: 320px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px 20px;
  background: #7C7461;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.cta-button-contact:hover {
  opacity: 0.8;
}

.cta-button-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cta-button-text {
  font-size: 12px;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ==========================================
                   フッター完全版
   ========================================== */
footer {
  background: #f5f3f0;
  padding: 60px 0 30px;
  position: relative;
}

.page-top {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.page-top:hover {
  opacity: 0.8;
}

.page-top svg circle,
.page-top svg path {
  transition: all 0.3s;
}

.page-top:hover svg circle {
  fill: #7c7461;
}

.page-top:hover svg path {
  fill: white;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  margin-bottom: 50px;
}

/* 左側：会社情報 */
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-info img {
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo .logo-mark {
  width: 45px;
  height: 45px;
  background: #af9454;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-style: italic;
}

.footer-logo .logo-text {
  color: #7c7461;
  font-size: 24px;
  letter-spacing: 4px;
}

.footer-clinic-name {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-detail-item {
  display: flex;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.footer-detail-label {
  min-width: 80px;
  color: #7c7461;
}

.footer-buttons {
  display: flex;
  gap: 20px;
}

.footer-btn-icon {
  width: 19px;
}

.footer-btn {
  display: flex;
  padding: 12px 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 116px;
  background: #7c7461;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.footer-btn:hover {
  opacity: 0.8;
}

.footer-btn-icon {
  font-size: 18px;
}

.footer-phone {
  display: flex;
  width: 100%;
  padding: 12px 16px;
  align-items: center;
  gap: 36px;
  background: #7c7461;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
	justify-content: center;
}

.footer-phone:hover {
  opacity: 0.8;
}

.footer-phone-label {
  font-size: 12px;
  letter-spacing: 1px;
}

.footer-phone-number {
  font-size: 20px;
  letter-spacing: 2px;
}

.footer-hours {
  text-align: left;
  color: #666;
  font-size: 12px;
}

/* 右側：サイトマップ */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 60px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-nav-arrow {
  color: #7c7461;
  font-size: 12px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 20px;
}

.footer-nav-item a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.3s;
}

.footer-nav-item a:hover {
  opacity: 0.6;
}

.footer-nav-subtitle {
  color: #999;
  font-size: 11px;
  margin-left: 5px;
}

.footer-copyright {
  text-align: center;
  padding-top: 30px;
  color: #999;
  font-size: 12px;
}

.phone-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.phone-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c7461;
  font-size: 16px;
}

.section-title-wrapper {
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.section-title-wrapper.center .section-title {
  justify-content: center;
  display: flex;
  align-items: center;
}

.section-title-wrapper.left .section-title {
  justify-content: flex-start;
  display: flex;
  align-items: center;
}

.section-title-wrapper.left .section-subtitle {
  text-align:left;
	padding-left: 50px;
}

.section-icon {
  display: flex;
  width: 48px;
  height: 46px;
  aspect-ratio: 24 / 23;
}

.section-title h2 {
  font-size: clamp(2.25rem, 2.157rem + 0.38vw, 2.5rem);
  font-weight: 400;
  color: #9b8b7a;
  font-family: var(--en-txt);
}

/* ==========================================
           SYSTEMセクション
        ========================================== */
.system-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #FFF 0%, #F5F0E8 100%);
  overflow: hidden; /* 左右にはみ出る要素のため */
}

.system-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 90px;
}

.system-section .section-header {
  text-align: center;
  margin-bottom: 80px;
}

/* ブロック共通 */
.system-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
  background: rgba(255, 255, 255, 0.9);
  padding: 80px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

.system-block:last-child {
  margin-bottom: 0;
}

/* 左端に接するブロック */
.reservation-block {
  margin-left: -90px;
  padding-left: 180px;
  border-radius: 0 10px 10px 0;
}

/* 右端に接するブロック */
.insurance-block {
  margin-right: -90px;
  padding-right: 180px;
  border-radius: 10px 0 0 10px;
}

.system-block-title {
  font-size: 26px;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.system-text {
  font-size: 15px;
  line-height: 2;
  color: #666;
  letter-spacing: 0.02em;
}

/* ボタン群（フッターのスタイルを利用） */
.system-buttons {
  display: flex;
  gap: 20px;
	width: 100%;
}

.system-buttons .footer-btn {
  flex: 1;
  max-width: 230px;
	width:100%;
}

.system-phone {
  max-width: 458px;
}

.system-tel-hours {
  color: #666;
  font-size: 13px;
  line-height: 1.8;
}

.system-tel-hours p:first-child {
  margin-bottom: 5px;
}

.system-notes {
  font-size: 13px;
  line-height: 1.9;
  color: #666;
}

.system-notes p {
  margin-bottom: 12px;
}

.system-notes p:last-child {
  margin-bottom: 0;
}

.system-content{
	display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 32px;
	    max-width: 460px;
    width: 100%;
flex: 1 0 0;
align-self: stretch;
}

.system-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.system-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.system-image:hover img {
  transform: scale(1.05);
}

.footer-btn-icon img{
	width:100%;
}

/* 1440px対応 */
@media (min-width: 1440px) {
  .reservation-block {
    margin-left: calc((100vw - 1440px) / 2 * -1 - 90px);
  }
  
  .insurance-block {
    margin-right: calc((100vw - 1440px) / 2 * -1 - 90px);
  }
}

/* タブレット */
@media (max-width: 1024px) {
  .system-container {
    padding: 0 40px;
  }
  
  .reservation-block {
    margin-left: -40px;
    padding-left: 60px;
  }
  
  .insurance-block {
    margin-right: -40px;
    padding-right: 60px;
  }
  
  .system-block {
    gap: 60px;
    padding: 50px 60px;
  }
}

/* スマートフォン */
@media (max-width: 768px) {
  .system-section {
    padding: 60px 0;
  }
  
  .system-container {
    padding: 0 20px;
  }
  
  .system-section .section-header {
    margin-bottom: 50px;
  }
  
  .system-block {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 30px;
    margin-bottom: 60px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 10px;
  }
  
  .reservation-block,
  .insurance-block {
    margin-left: 0;
    margin-right: 0;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 10px;
  }
  
  /* 保険診療ブロックのレイアウト調整 */
  .insurance-block {
    display: flex;
    flex-direction: column;
  }
  
  .insurance-block .system-image {
    order: 2;
  }
  
  .insurance-block .system-content {
    order: 1;
  }
  
  .system-block-title {
    font-size: 20px;
    text-align: center;
  }
  
  .system-text {
    font-size: 14px;
  }
  
  /* ボタン群 */
  .system-buttons {
    flex-direction: row;
    gap: 10px;
  }
  
  .system-buttons .footer-btn {
    max-width: none;
    padding: 12px 10px;
    font-size: 13px;
  }
  
  .system-phone {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
  
  .system-tel-hours {
    text-align: center;
    margin-bottom: 25px;
  }
  
  .system-notes {
    font-size: 12px;
  }
  
  .system-image {
    height: 250px;
  }
}

/* 極小画面 */
@media (max-width: 390px) {
  .system-buttons .footer-btn {
    font-size: 12px;
    padding: 10px 8px;
  }
  
  .footer-btn-icon {
    width: 16px;
    height: 16px;
  }
  
  .system-block {
    padding: 30px 20px;
  }
}

/* ==========================================
           ギャラリーセクション（完全修正版）
        ========================================== */
.clinic-gallery-section {
  padding: 80px 0;
  background: #FFF;
  overflow: hidden;
}

.gallery-wrapper {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 90px;
}

.gallery-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.gallery-slider-inner {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  /* 幅の固定値を削除 */
}

.gallery-slide-item {
  flex: 0 0 calc(25% - 15px);
  min-width: calc(25% - 15px); /* 追加 */
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-slide-item:hover img {
  transform: scale(1.05);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D0D0D0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery-dot.active {
  background: #7C7461;
  width: 30px;
  border-radius: 5px;
}

.gallery-dot:hover {
  background: #9A9A9A;
}

/* タブレット */
@media (max-width: 1024px) {
  .gallery-wrapper {
    padding: 0 40px;
  }
  
  .gallery-slide-item {
    height: 280px;
  }
}

/* スマートフォン */
@media (max-width: 768px) {
  .clinic-gallery-section {
    padding: 60px 0;
  }
  
  .gallery-wrapper {
    padding: 0;
  }
  
  .gallery-slider-container {
    padding: 0 20px;
  }
  
  .gallery-slider-inner {
    gap: 15px;
  }
  
  .gallery-slide-item {
    flex: 0 0 calc(100% - 40px);
    min-width: calc(100% - 40px); /* 追加 */
    height: 250px;
  }
  
  .gallery-dots {
    margin-top: 30px;
    gap: 10px;
  }
}

/* ==========================================
           レスポンシブ - 768px統一版（修正版）
   ========================================== */

@media (max-width: 768px) {
  /* ヘッダー関連 */

  header {
    padding: 0 0;
  }

  .header-logo img {
    display: block;
    width: 160px;
    height: auto;
  }

  .top-bar .inner {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: initial;
  }

  .top-bar .info-text {
    font-size: 10px;
  }

  .top-bar .info-text:first-child {
    display: none;
  }

  .header-wrapper {
    padding: 10px 20px;
  }

  .header-top {
    padding-bottom: 0;
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .instagram-link {
    width: 20px;
    height: 20px;
    display: block;
  }

  .mobile-header-actions {
    display: flex;
  }

  .mobile-cta .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-cta .icon img {
    width: 100%;
  }

  .header-logo .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .header-logo .logo-text {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .hamburger {
    display: block;
    width: 28px;
    height: 21px;
    margin-right: -20px;
    z-index: 1002;
    /* この行を追加 */
  }
	
/* CONTACTセクション */
  .contact-section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .contact-content {
    padding: 40px 20px;
    gap: 30px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title-ja {
    font-size: 20px;
    letter-spacing: 6px;
  }

  .schedule-table {
    font-size: 11px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px 4px;
  }

  .cta-box {
    min-height: auto;
    padding: 30px 20px;
  }

  .cta-content {
    flex-direction: column;
    gap: 25px;
  }

  .cta-phone-group {
    align-items: center;
    text-align: center;
  }

  .cta-phone-number {
    font-size: 20px;
  }

  .cta-hours {
    margin-left: 0;
  }

  .cta-buttons-contact {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  /* フッター */
  footer {
    padding: 50px 0 20px;
  }

  .page-top {
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-info {
    gap: 20px;
    align-items: center;
  }

  .footer-buttons {
    gap: 20px;
    justify-content: center;
  }

  .footer-phone {
    margin: 0 auto;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
  }

  .section-title-wrapper {
    margin-bottom: 30px;
  }

  .section-title-wrapper.center .section-title {
    width: auto;
    height: 38px;
    gap: 15px;
    margin-bottom: 10px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  /* View Moreボタン共通 */
  .doctor-content .view-more-btn {
    padding: 10.24px 11px 10.24px 19px;
    font-size: 10.24px;
    letter-spacing: 0.1em;
    width: 125.16px;
    display: flex;
    margin: 0 auto;
  }

  .view-more-btn::after {
    border-width: 0px 0px 10.24px 10.24px;
  }
}
