:root {
  --primary: #b59a7d; /* 黄色みを抑えたシャンパンベージュゴールド */
  --secondary: #2d241e; /* Royal Deep Brown */
  --text: #3a3530; /* 視認性を確保したダークグレー */
  --bg-surface: #fdfbf7; /* White Beige (サイト全体の基本背景色) */
  --border: #e8e2d9;
  --gold-gradient: linear-gradient(135deg, #c2a886 0%, #e8ded1 50%, #b59a7d 100%);
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background-color: var(--bg-surface); /* 背景をホワイトベージュに固定 */
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.8;
  word-break: auto-phrase;
}

h1,
h2,
h3,
.font-serif {
  font-family: 'Playfair Display', 'Noto Sans JP', serif;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.3;
  color: var(--secondary);
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
  color: var(--primary);
}

[x-cloak] {
  display: none !important;
}

/* Section Spacing */
section {
  padding: 120px 0;
  background-color: var(--bg-surface); /* 全てのセクションのデフォルトをホワイトベージュに */
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
}

/* Subhero Base */
.subhero {
  height: 55vh;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--secondary);
}

/* Base overlay handles general darkening, specific parts can override */
.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 30, 0.3);
}

.subhero > div {
  position: relative;
  z-index: 2;
}

/* Luxury Button */
.btn-gold {
  background: var(--gold-gradient);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(181, 154, 125, 0.3);
  transition: all 0.5s ease;
}

.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 154, 125, 0.4);
}

/* New: Glassmorphism effect for transparency */
.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Added for Subhero Customization */
.subhero-common {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

/* Utility for vertical text */
.vertical-text {
  writing-mode: vertical-rl;
}

/* MiraClub Specific Features Display */
.miraclub-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .miraclub-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.miraclub-feature-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border-left: 2px solid var(--primary);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.miraclub-feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

/* Footer Link Custom Styles */
.footer-external-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(181, 154, 125, 0.3);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
}

.footer-external-link:hover {
  border-color: #b59a7d;
  background: rgba(181, 154, 125, 0.1);
  transform: translateY(-2px);
}

.footer-sns-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(181, 154, 125, 0.3);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.footer-sns-link:hover {
  border-color: #b59a7d;
  background: #b59a7d;
  transform: translateY(-2px);
}

.footer-sns-link img {
  transition: filter 0.3s ease;
}

.footer-sns-link:hover img {
  filter: brightness(0) saturate(100%) invert(14%) sepia(12%) saturate(1500%) hue-rotate(346deg) brightness(95%)
    contrast(90%);
}

/* Global Reset for Horizontal Scroll */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* --- Contact Form Parts --- */
.contact-form-section {
  padding: 100px 0;
}

.contact-form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.form-submit-btn {
  width: 100%;
  padding: 20px;
  background: var(--gold-gradient);
  color: #fff;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.2em;
  font-weight: bold;
  transition: all 0.4s ease;
  cursor: pointer;
}

.form-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Extracted from Templates */
/* From ./parts/about-subhero.html */

/* 既存のスタイルを活かしつつ、視認性を強化 */
.subhero-about-glass {
  position: relative;
  overflow: hidden;
  background-color: #2d241e; /* 画像読み込み前のフォールバックカラー */
}
.subhero-about-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  /* グラデーションを少し濃くして文字を浮き立たせる */
  background: linear-gradient(to bottom, rgba(45, 36, 30, 0.4) 0%, rgba(29, 23, 19, 0.6) 100%);
  z-index: 1;
}
.subhero-about-glass .container {
  position: relative;
  z-index: 10;
}
.subhero-about-text {
  font-size: clamp(0.875rem, 3.5vw, 1.125rem);
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* タイトルのドロップシャドウを強化 */
.subhero-title-shadow {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* From ./parts/about-info.html */

.about-info-map-container {
  width: 100%;
  height: 300px;
  filter: grayscale(0);
  transition: filter 0.3s ease;
}
.about-info-map-container:hover {
  filter: brightness(1.05);
}

/* From ./parts/checkup-subhero.html */

.subhero-checkup {
  background-color: var(--secondary);
}

/* From ./parts/checkup-list.html */

.checkup-list {
  background-color: var(--bg-surface);
}
.checkup-item {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  transition: all 0.5s ease;
  cursor: pointer;
}
.checkup-item:hover {
  padding-left: 1.5rem;
  background-color: #fff;
}

/* From ./parts/concept-subhero.html */

.subhero-concept {
  height: 60vh;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url('../img/concept-subhero-bg.jpg');
}
.subhero-concept::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45, 36, 30, 0.6), rgba(45, 36, 30, 0.2));
}
.subhero-concept .container {
  position: relative;
  z-index: 1;
}
.subhero-concept h1 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

/* From ./parts/concept-content.html */

.concept-content {
  padding: 120px 0;
  background-color: var(--bg-surface);
}
.factor-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
}
.factor-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.factor-label {
  font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  display: block;
  font-weight: bold;
}
.factor-name {
  font-size: 1.25rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--secondary);
  letter-spacing: 0.1em;
}

/* From ./parts/contact-subhero.html */

.contact-subhero {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
.contact-subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 30, 0.4);
}
.contact-subhero > .container {
  position: relative;
  z-index: 1;
}
.contact-subhero h1 {
  font-family: 'Playfair Display', serif;
}

/* From ./parts/about-subhero.html */

/* 既存のスタイルを活かしつつ、視認性を強化 */
.subhero-about-glass {
  position: relative;
  overflow: hidden;
  background-color: #2d241e; /* 画像読み込み前のフォールバックカラー */
}
.subhero-about-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  /* グラデーションを少し濃くして文字を浮き立たせる */
  background: linear-gradient(to bottom, rgba(45, 36, 30, 0.4) 0%, rgba(29, 23, 19, 0.6) 100%);
  z-index: 1;
}
.subhero-about-glass .container {
  position: relative;
  z-index: 10;
}
.subhero-about-text {
  font-size: clamp(0.875rem, 3.5vw, 1.125rem);
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* タイトルのドロップシャドウを強化 */
.subhero-title-shadow {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* From ./parts/director-message.html */

.director-profile {
  background-color: var(--bg-surface);
}
.director-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 1024px) {
  .director-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
  }
}
.director-image-wrapper {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
.director-image-wrapper::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid var(--border);
  z-index: -1;
}
.career-list dt {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 500;
  min-width: 140px;
  flex-shrink: 0;
}
.qualification-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.qualification-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.career-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s;
}
.career-link:hover {
  opacity: 0.7;
}

/* From ./parts/index-hero.html */

.index-hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #2d241e;
  overflow: hidden;
}
.index-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.index-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}
.index-hero__title {
  max-width: 800px;
  font-size: clamp(1.25rem, 5vw, 3.5rem);
  line-height: 1.2;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.05em;
  text-align: left;
}
.index-hero__title-accent {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  color: #e8ded1;
  font-size: 1.5em;
  display: inline-block;
  line-height: 1;
  margin-top: 0.1em;
}
.btn-luxury-gold {
  background: linear-gradient(135deg, #c2a886 0%, #e8ded1 50%, #b59a7d 100%);
  background-size: 200% auto;
  color: #ffffff !important;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1;
  font-family: 'Playfair Display', serif;
}
.btn-luxury-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #e8ded1 !important;
  border: 1px solid #c2a886;
  backdrop-filter: blur(8px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  flex: 1;
  font-family: 'Playfair Display', serif;
}
.index-hero__btn {
  min-width: 260px;
  padding: 1.25rem 2.5rem;
  font-size: 0.75rem;
}
@media (max-width: 640px) {
  .index-hero__btn {
    min-width: 200px;
    padding: 1rem 1.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.25em !important;
  }
  .index-hero__title-accent {
    font-size: 1.4em;
  }
}
.index-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}
.index-hero__scroll:hover {
  color: #e8ded1;
}
.index-hero__scroll-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}
.index-hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(232, 222, 209, 1), rgba(232, 222, 209, 0));
  position: relative;
  overflow: hidden;
}
.index-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  animation: scroll-line-anim 2s cubic-bezier(0.76, 0, 0.3, 1) infinite;
}
@keyframes scroll-line-anim {
  0% {
    transform: translateY(-100%);
  }
  50%,
  100% {
    transform: translateY(100%);
  }
}

/* From ./parts/index-intro.html */

.index-intro-section .desc-text {
  white-space: pre-line;
}

/* From ./parts/index-pillars.html */

.pillars-section {
  background-color: #2d241e;
  color: #fdfbf7;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 4rem 2.5rem;
  border: 1px solid rgba(197, 160, 89, 0.2);
  text-align: center;
  height: 100%;
  transition: all 0.5s ease;
}

.pillar-card:hover {
  background: rgba(197, 160, 89, 0.05);
  border-color: #c5a059;
}

.pillar-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  color: #c5a059;
  letter-spacing: 0.5em;
  margin-bottom: 2rem;
  display: block;
  font-weight: 700;
}

.pillar-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.25rem;
  color: #fdfbf7;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.pillar-desc {
  font-size: 0.85rem;
  line-height: 2;
  color: rgba(253, 251, 247, 0.7);
  letter-spacing: 0.05em;
}

/* From ./parts/index-partners.html */

.index-partners {
  padding: 100px 0;
  overflow-x: hidden;
}

/* 提携先リストをコンパクトな縦並びに固定 */
.partner-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.partner-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.partner-row:last-child {
  border-bottom: none;
}

/* ロゴボックスを小さく調整 */
.partner-logo-box {
  width: 120px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #f5f5f5;
}

.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* テキストを小さく、1行で収まるように調整 */
.partner-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--secondary);
  line-height: 1.4;
  text-align: left;
}

@media (max-width: 767px) {
  .index-partners {
    padding: 60px 0;
  }
  .partner-list {
    max-width: 100%;
  }
  .partner-logo-box {
    width: 100px;
    height: 50px;
  }
  .partner-name {
    font-size: 0.85rem;
  }
  .partner-row {
    gap: 1rem;
  }
}

/* From ./parts/miraclub-subhero.html */

.subhero-miraclub {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
.subhero-miraclub::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45, 36, 30, 0.7), rgba(45, 36, 30, 0.3));
}
.subhero-miraclub .container {
  position: relative;
  z-index: 1;
}
.subhero-miraclub h1 {
  font-family: 'Playfair Display', 'Noto Sans JP', serif;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

/* From ./parts/recruit-subhero.html */

.recruit-subhero-content {
  position: relative;
  z-index: 2;
}

.recruit-subhero-title {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 植物の質感を活かしつつ、文字の可読性を高めるためのグラデーション */
.recruit-subhero-overlay-custom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45, 36, 30, 0.8) 0%, rgba(45, 36, 30, 0.2) 100%);
  z-index: 1;
}

/* From ./parts/treatment-subhero.html */

.subhero-treatment {
  background-image: url('../img/treatment-subhero-bg.jpg');
}
.subhero-treatment .subtitle {
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

/* From ./parts/treatment-medical.html */

.treatment-section {
  background-color: var(--bg-surface);
}
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .treatment-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .treatment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.treatment-card {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  /* カード全体のクリックを無効化 */
  cursor: default;
}
.treatment-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.treatment-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  opacity: 0.1;
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease;
}
.treatment-card:hover {
  border-color: var(--border);
  background-color: #fff;
}
.treatment-card:hover .treatment-card__bg img {
  transform: scale(1.1);
  opacity: 0.15;
}
.treatment-card__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}
.treatment-card__title {
  font-family: 'Playfair Display', 'Noto Sans JP', serif;
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 0 0.5rem;
  transition: color 0.4s ease;
}
@media (min-width: 768px) {
  .treatment-card__title {
    font-size: 1rem;
  }
}
.treatment-card__line {
  width: 20px;
  height: 1px;
  background-color: var(--primary);
  margin: 0.75rem auto 1rem;
}

/* CHECKボタンのスタイル */
.btn-check {
  display: inline-block;
  padding: 6px 20px;
  background: var(--gold-gradient);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: bold;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(181, 154, 125, 0.2);
}
.btn-check:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(181, 154, 125, 0.3);
}

.section-label-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: #fdfbf7;
  overflow-y: auto;
  padding: 120px 0 60px;
}

/* From ./parts/treatment-beauty.html */

.beauty-grid-custom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .beauty-grid-custom {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* 詳細表示エリアのスタイル (Medicalと共通) */
.detail-overlay-beauty {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: #fdfbf7;
  overflow-y: auto;
  padding: 120px 0 60px;
}
