@charset "UTF-8";

/* =========================================
   1. 共通スタイル・変数 (Variables & Reset)
========================================= */
:root {
  /* Colors (変更なし) */
  --color-primary: #7B328A;
  --color-text-main: #333333;
  --color-text-muted: #666666;
  --color-bg-gradient-top: #b685b9;
  --color-bg-gradient-bottom: #e6d4e8;
  --color-btn-start: #9E3289;
  --color-btn-end: #3B2A71;
  --color-text-dark-purple: #3b2a71;
  --color-grad01:linear-gradient(90deg, #681646 0%, #A549B4 25%, #8445A7 47%, #403C8B 69%, #2E2E72 100%);
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: "source-han-serif-japanese", serif;
  --font-en: "cinzel", sans-serif;
  --content-width: 1200px;
  --header-height: 90px;
}
html {
  scroll-behavior: smooth;
}
.pc{
	display: block;
}

.sp{
	display: none;
}

@media screen and (max-width:768px){
	
.pc{
	display:none;
}

.sp{
	display:block;
}
}

/* フォントファミリーとウェイトのベース設定 */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
}

.en-title, .font-en, [class*="title-en"] {
  font-family: var(--font-en);
  font-weight: 400;
  font-style: normal;
}

/* Reset CSS */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: #fff;
}
/* bodyの代わりにhtmlにclipを指定して横揺れを防ぎます */
html {
  overflow-x: clip;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* プレースホルダー用共通スタイル */
.img-placeholder {
  border: 2px dashed #e60012;
  background-color: #fdf2f2;
  color: #e60012;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

/* =========================================
   2. ヘッダー (Header)
========================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  background-color: rgb(255 255 255 / 0%);
  padding-left: 30px;
  position: relative;
  z-index: 100;
}

.header__left {
  position: relative;
  z-index: 101;
  transform: translateY(30px);
}

@media screen and (max-width:768px){
	.header__left {
    transform: translateY(5px);
	}
}

/* =========================================
   2. ヘッダー (Header) のロゴ部分
========================================= */
.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
   margin-top: 5rem;
  gap: 8px;
  text-decoration: none;
}


@media screen and (max-width:768px){
.header__logo {
   margin-top: 0rem;
}
}

/* ロゴ画像のサイズ調整用（画像に合わせてwidthは調整してください） */
.header__logo-img {
  width: 140px; 
  height: auto;
}

@media screen and (max-width:768px){
.header__logo-img {
  width: 60px;
}
}	
	

.header__badge {
  font-family: var(--font-serif); /* 画像に合わせて明朝体に変更 */
  font-size: 11px; /* 少し文字を小さくして上品に */
  color: #555; /* 落ち着いたグレー色 */
  border: 1px solid #999; /* 枠線を設定 */
  border-radius: 4px; /* 角を少しだけ丸くする */
  padding: 5px 15px; /* 枠内の余白（上下5px、左右15px） */
  letter-spacing: 0.15em; /* 文字間隔を広げてゆったりと */
  background-color: #ffffff;
}

.header__badge {
  font-size: 10px;
  border: 1px solid #ccc;
  padding: 2px 8px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.header__right {
  display: flex;
  align-items: stretch; /* ボタンと高さを揃えるため */
  height: 100%;
}
.nav{
	display: flex;
}
.nav.sp{
	display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 30px;
}

.nav__item a {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.nav__item a:hover {
  color: var(--color-primary);
}

.entry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
  color: #ffffff;
  padding: 0 40px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  position: relative;
  transition: opacity 0.3s ease;
}

.entry-btn:hover {
  opacity: 0.9;
}

.entry-btn::after {
  content: '→';
  margin-left: 10px;
  font-weight: 300;
}

/* =========================================
   3. メインビジュアル (Hero Section)
========================================= */
/* =========================================
   3. メインビジュアル (Hero Section)
========================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 800px;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 21%, #b5b5b5 15%, #ffffff 100%);
  overflow-x: clip; 
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 100px;
}

.hero::before{
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

@media screen and (max-width: 768px) {
.hero {
    min-height: 400px;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 21%, #b5b5b5 15%, #ffffff 100%);
  }
  }
/* トップのキャッチコピー */
.hero__title-top {
  z-index: 0;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: absolute;
 top:-20px;
}
/* 英語のサブコピー */
.hero__subcopy {
  position: absolute;
  top: 23%;
  left: 5%;
  font-family: var(--font-en);
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 14px;
  letter-spacing: 0.2em;
  line-height: 1.5;
  z-index: 10;
}

/* 背景の透かし文字 (SMILE PLAN 2026) */
/*
.hero__watermark {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: 16vw;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}
*/

/* 人物画像プレースホルダーのラッパー */
.hero__image-wrapper {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-width: 1500px;
  z-index: 5;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 768px) {
.hero__image-wrapper {
    width: 115vw;
}
}

/* ボトムのキャッチコピー */
.hero__title-bottom {
  position: absolute;
  bottom: -50px;  /* ご指定の通り、少し下にずらす値でOKです */
  left: 0;        /* 画面の左端を基準にします */
  width: 100%;    /* 画面幅いっぱいに広げます */
  z-index: 20;
  
  /* 中身の画像を「ど真ん中」に配置するための指定 */
  display: flex;
  justify-content: center;
  align-items: center;
}


/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 1024px) {
  .hero__title-top {
    position: absolute;
    top: 21%; /* 親要素（.hero）の上から21%のラインを基準にする */
    left: 50%; /* 中央寄せの準備 */
    
    /* X軸に-50%(中央寄せ)、Y軸に-100%(自分自身の高さ分だけ上に引き上げる) */
    transform: translate(-50%, -100%); 
    
    margin-top: 0; /* 以前のmargin指定があればリセット */
    width: 90%; /* スマホ表示時の画像幅（お好みで調整してください） */
  }
  .hero__title-bottom img.sp {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) 
		    drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }
  .nav__list { display: none; }
  .header { padding-left: 15px; }
  .entry-btn { padding: 0 20px; }
  
  /* タブレット・スマホ時のプレースホルダー縮小対応 */
  .hero__image-wrapper .img-placeholder {
    width: 90% !important;
    height: 400px !important;
  }
}

/* =========================================
   （追記）ひらがな縮小用クラス
========================================= */
.small-kana {
  font-size: 0.8em; /* 漢字の80%のサイズに縮小 */
  font-weight: 500; /* 少し細く見えすぎる場合はここで調整可能 */
}


/* =========================================
   （上書き）背景の透かし文字 (SMILE PLAN 2026)
========================================= */
.hero__watermark {
  position: absolute;
  top: 20%;
  left: 0;
  width: 100vw; /* 画面幅いっぱいに広げる */
  transform: translateY(-50%); /* 縦方向の中央揃えのみ */
  overflow: hidden; /* はみ出したテキストを隠す */
  z-index: 1;
  pointer-events: none;
}

.watermark-scroll {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.watermark-scroll span {
  font-family: var(--font-en);
  font-size: 16vw;
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  padding-right: 50px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   Hero セクションのアニメーション
========================================= */

/* ① アニメーションの動き（下から30px浮かび上がりながらフェードイン）を定義 */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ② 各要素の初期状態を見えなくし、アニメーションを適用 */
.hero__title-top,
.hero__subcopy,
.hero__watermark,
.hero__image-wrapper,
.hero__title-bottom {
  opacity: 0; /* 最初は透明にしておく */
  /* forwards を指定することで、アニメーション終了後の状態（opacity: 1）を保持 */
  animation: heroFadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ③ 表示される順番（ディレイ）を設定してリズムを作る */
.hero__image-wrapper {
  animation-delay: 0.1s; /* 最初に院長先生の写真がフワッ */
}

.hero__title-top {
  animation-delay: 0.3s; /* 次に「最高の医療と」 */
}

.hero__title-bottom {
  animation-delay: 0.5s; /* 続いて「最高のチームを作る。」 */
}

.hero__subcopy {
  animation-delay: 0.7s; /* 英語のサブコピー */
}

.hero__watermark {
  animation-delay: 0.9s; /* 最後に背景の流れるテキスト */
}

@media screen and (max-width: 1024px) {
  
  /* =========================================
     ★ 追加：スマホ時のタイトル専用フェードイン
  ========================================= */
  @keyframes heroTitleFadeSp {
    0% {
      opacity: 0;
      /* X軸は中央(-50%)、Y軸は元の位置(-100%)から「+30px」下がった状態を計算で作り出す */
      transform: translate(-50%, calc(-100% + 30px)); 
    }
    100% {
      opacity: 1;
      /* アニメーション完了時は、本来の中央寄せ配置にピタッと戻る */
      transform: translate(-50%, -100%); 
    }
  }

  .hero__title-top {
    position: absolute;
    top: 21%; 
    left: 50%; 
    transform: translate(-50%, -100%); 
    
    /* ★ 追加：アニメーションの「種類(名前)」だけをスマホ専用のものに差し替える */
    /* ※ ディレイや速度(1s cubic-bezier...)はPCの指定がそのまま引き継がれます */
    animation-name: heroTitleFadeSp;
    
    margin-top: 0; 
    width: 90%; 
  }
  
  .hero__title-bottom { font-size: 10vw; -webkit-text-stroke: 2px #ffffff; }
  .nav__list { display: none; }
  .entry-btn { padding: 0 20px; }
  
  /* タブレット・スマホ時のプレースホルダー縮小対応 */
  .hero__image-wrapper .img-placeholder {
    width: 90% !important;
    height: 400px !important;
  }
}
/* =========================================
   4. メッセージ (Message Section)
========================================= */
.message {
  background-color: #ffffff;
  padding-bottom: 120px;
}

/* 上部ギャラリーのフェードアウト効果 */
.message__gallery {
  display: flex;
  width: 100%;
  position: relative;
}

.message__gallery::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%; /* 下半分にかけてグラデーション */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none; /* 下にある画像のクリック等を阻害しない */
  z-index: 2;
}

.message__container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー部分 */
.message__header {
  margin-top: 40px;
  margin-bottom: 60px;
}

.message__title-en {
  font-family: var(--font-en);
  font-size: 110px;
  margin-left: -5px;
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.message__title-ja {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-text-muted);
  margin-top: 10px;
  letter-spacing: 0.1em;
}

/* コンテンツレイアウト (Flexbox) */
.message__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

/* 左側：テキストエリア */
.message__text-area {
  flex: 1;
  padding-top: 20px;
}

.message__catchphrase {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-text-main);
  line-height: 1.8;
  margin-bottom: 50px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.message__body {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-main);
  line-height: 2.5;
  letter-spacing: 0.01em;
  margin-bottom: 60px;
}

.message__body p {
  margin-bottom: 25px;
}

.message__signature {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--color-text-main);
  text-align: right;
  letter-spacing: 0.1em;
  line-height: 1.8;
  padding-right: 40px;
}

.message__signature .name {
  font-size: 18px;
  margin-top: 5px;
}

/* 右側：画像エリア */
.message__image-area {
  flex-shrink: 0;
}

/* 画像と背景の装飾（グラデーションの四角形） */
.message__image-wrapper {
  position: relative;
  z-index: 10;
}

/* 背景にずらして配置するグラデーションボックス */
.message__image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 100%;
  height: 100%;
  /* 紫から青へのグラデーション */
  background: linear-gradient(135deg, #a858ad 0%, #4768b5 100%);
  z-index: -1;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* 影をつけて立体感を出す */
}

/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 768px) {
	.message{
		overflow: hidden;
	}
	.message__header{
		margin-bottom: 30px;
	}
  .message__content {
    flex-direction: column-reverse; /* スマホ・タブレットでは縦並びに */
    align-items: center;
  }
  
  .message__title-en { font-size: 60px; text-align: center; }
  .message__title-ja { text-align: center; }
  
  .message__catchphrase { font-size: 20px; }
  .message__signature { text-align: right; padding-right: 0; }
  
  .message__image-area { margin-top: 0px; }
  
  /* スマホの時はプレースホルダーのサイズを調整 */
  .message__image-wrapper .img-placeholder {
    width: 300px !important;
    height: 400px !important;
  }
  .message__gallery .img-placeholder {
    height: 150px !important;
  }
}

/* =========================================
   4. メッセージ (Message Section) のギャラリー
========================================= */
.message__gallery {
  /* 修正: display: flex; を削除し overflow: hidden; を追加 */
  width: 100%;
  position: relative;
  overflow: hidden; 
}

/* 既存のフェードアウト効果（変更なし・そのまま残す） */
.message__gallery::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%; 
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none; 
  z-index: 2;
}

/* 追記: 横に流れるトラック */
.message__gallery-track {
  display: flex;
  width: max-content;
  animation: gallery-marquee 40s linear infinite; /* 40秒かけて一定の速度でループ */
}

/* 追記: ギャラリー内の各画像アイテム */
.gallery-item {
  width: 20vw; /* 画面幅の20%（5枚でちょうど画面幅100%になる設定） */
  height: auto;
  flex-shrink: 0; /* 画像が潰れないようにする */
  /* プレースホルダー用の調整（実画像が入ったら外してOKです） */
  border-radius: 0 !important; 
  border-right: none; 
}

/* 追記: 無限スライドのアニメーション */
@keyframes gallery-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 全体の半分の位置で一瞬で0%に戻る */
}

/* --- Responsive --- */
@media screen and (max-width: 900px) {
  /* スマホの時はプレースホルダーのサイズを調整 */
  .gallery-item {
    width: 40vw; /* スマホでは画面に2.5枚分見える大きさに拡大 */
    height: 150px;
  }
}

/* =========================================
   Message セクションのスクロールアニメーション
========================================= */

/* ① 初期状態：透明にして、30px下に下げておく */
.message__header,
.message__image-area {
  opacity: 0;
  transform: translateY(30px);
  /* clinic-cardと同じ、滑らかなイージング（cubic-bezier）を設定 */
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ② 親の .message に .is-active が付いた時に浮かび上がる */
.message.is-active .message__header,
.message.is-active .message__image-area {
  opacity: 1;
  transform: translateY(0);
}

/* ③ 時間差（ディレイ）をつけて、タイトル → 画像 の順に表示させる */
.message.is-active .message__header {
  transition-delay: 0.1s;
}

.message.is-active .message__image-area {
  transition-delay: 0.3s; /* ヘッダーの0.2秒後に画像が追いかけてくる */
}


/* =========================================
   5. About (スマイルプランについて)
========================================= */
.about {
  background-color: #f7eef7;
  padding: 120px 0 150px; 
  overflow: hidden;
  position: relative;
}

.about__container {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
}

.about__text {
  max-width: 900px; 
  position: relative;
  z-index: 10;
}

.about__title-en {
  font-family: var(--font-en);
  font-size: 110px;
  margin-left: -5px;
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.05em;
  
  /* 見出しが図より手前に来るように明示的に指定 */
  position: relative;
  z-index: 10;
}

.about__title-ja {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 50px;
}

/* =========================================
   Aboutセクションのキャッチコピー（Meritセクション方式を移植）
========================================= */
.about__quote {
  position: relative;
  margin-bottom: 50px;
  display: inline-block;
  z-index: 10; /* 図より手前に */
}

.about__quote h3 {
  margin: 0;
  padding: 0 10px;
  line-height: 1;
  font-weight: normal;
}

@media screen and (max-width:768px){
	.about__quote h3{
	  padding: 0px;
	}
}

.about__quote .highlight-wrap {
  display: inline-block;
  background-color: #ffffff;
  padding: 8px 15px; /* パディングで高さを調整 */
  margin-bottom: 8px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
  border-radius: 0px;
}

.about__quote .highlight {
  background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
@media screen and (max-width:768px){
.about__quote .highlight {
  font-size: 20px;
}
}

.about__quote .quote-mark {
  font-family: var(--font-serif);
  font-size: 100px;
  background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  line-height: 1;
  z-index: 5;
}

/* 引用符の配置微調整 */
.about__quote .quote-mark.open {
  top: -20px;
  left: -15px;
}
.about__quote .quote-mark.close {
  bottom: -50px;
  right: 37px;
}

.about__desc {
    position: relative;
    z-index: 10; /* 図より手前に */
}

.about__desc p {
  font-size: 13px;
  line-height: 2.2;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}

/* --- スマホ専用の調整 --- */
@media screen and (max-width: 768px) {
  /* 全体の余白調整 */
  .about__quote {
    margin-bottom: 60px;
    padding: 0 10px;
  }

  .about__quote h3 {
    padding: 0px;
    line-height: 2.2; /* 白枠同士の上下の隙間を広げる */
  }

	.about__quote .highlight-wrap {
        padding: 6px 6px 6px 10px;
        margin-bottom: 12px;
    }

  /* 文字サイズのベース */
  .about__quote .highlight {
    font-size: 20px;
  }
	.about__quote .highlight strong{
    font-size: 24px;
	}

  /* ★ ここを追加：ひらがなを小さくして緩急をつける */
  .about__quote .highlight .kana {
    font-size: 0.8em; /* 漢字の80%のサイズに縮小 */
  display: inline-block;
  background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
    transform: translateY(-1px); /* 小さくした分、少しだけ上に持ち上げるとベースラインが揃って美しくなります */
  }

  /* ★ 引用符（“ ”）のサイズと配置の微調整 */
  .about__quote .quote-mark {
    font-size: 80px; /* スマホ用に少し小さく */
  }
  
  .about__quote .quote-mark.open {
    top: -25px;
    left: -10px;
  }
  
  .about__quote .quote-mark.close {
    bottom: -35px;
    right: 5px; /* 右端のバランスを見て調整 */
  }
}

/* =========================================
   ★修正：インフォグラフィック（Absolute配置で被せる）
========================================= */

.about__diagram {
  position: absolute;
  right: -220px;
  top: -50px;
  width: 800px;
  height: 800px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__diagram img.diagram-fg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0; left: 0;
}

/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 1024px) {
  .about {
    padding: 80px 0 100px;
  }
  .about__container {
    position: static;
    display: flex;
    flex-direction: column; /* column-reverse をやめて上から順に並べる */
    align-items: center;
    padding: 0 20px;
  }
  
  /* ★魔法のプロパティ：箱を「無いもの」として扱い、中身を展開する */
  .about__text {
    display: contents; 
  }
  
  /* 1番目：英語タイトル */
  .about__title-en {
    order: 1;
    font-size: 50px; /* 画像に合わせて少し調整 */
    text-align: center;
    margin-left: 0; /* PC版のマイナス余白をリセット */
    margin-bottom: 0;
  }
  
  /* 2番目：日本語タイトル */
  .about__title-ja {
    order: 2;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
  }
  
  /* 3番目：図（ダイアグラム） */
  .about__diagram {
    order: 3;
    position: relative;
    right: auto; top: auto; /* PC版の絶対配置をリセット */
    width: 100%;
    max-width: 350px; /* スマホ画面に収まるサイズに */
    height: auto;
    aspect-ratio: 1 / 1; /* 高さを維持 */
    margin: 0 0 40px 0; /* 下に余白を確保 */
    z-index: 5;
  }
  
  /* 4番目：キャッチコピー */
  .about__quote {
    order: 4;
    text-align: center;
    margin-bottom: 40px;
  }
  
  /* 5番目：説明文 */
  .about__desc {
    order: 5;
    text-align: center;
  }
  .about__desc p {
    text-align: center;
  }
}

/* =========================================
   About セクションのスクロールアニメーション
========================================= */

/* ① 初期状態（透明 ＋ 30px下に下げておく） */
.about__quote .highlight-wrap,
.about__quote .quote-mark,
.about__diagram {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ② 親要素（.about）に .is-active がついた時に浮かび上がる */
.about.is-active .about__quote .highlight-wrap,
.about.is-active .about__quote .quote-mark,
.about.is-active .about__diagram {
  opacity: 1;
  transform: translateY(0);
}

/* ③ 順番に表示されるようにディレイ（遅延）を設定 */

/* 引用符（始点） */
.about.is-active .quote-mark.open { transition-delay: 0.1s; }

/* 1行目：創立20年の歴史と信頼 */
.about.is-active .highlight-wrap:nth-of-type(1) { transition-delay: 0.3s; }

/* 2行目：長年培われた安定した */
.about.is-active .highlight-wrap:nth-of-type(2) { transition-delay: 0.5s; }

/* 3行目：経営基盤があります */
.about.is-active .highlight-wrap:nth-of-type(3) { transition-delay: 0.7s; }

/* 引用符（終点） */
.about.is-active .quote-mark.close { transition-delay: 0.9s; }

/* 事業図（一番最後に大きく出る） */
.about.is-active .about__diagram {
  transition-delay: 1.1s;
}


/* =========================================
   6. Clinics (クリニック紹介)
========================================= */
.clinics {
  background-color: #ffffff;
}

.clinics__intro {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 0;
  padding: 20px 0 100px;
  text-align: center;
}

.clinics__map-area {
  position: relative;
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.clinics__map-title {
  text-align: left;
  position: relative;
}
.clinics__map-title .en {
  font-family: var(--font-en);
  font-size: 80px;
  color: var(--color-primary);
background: var(--color-grad01);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: 0.1em;
}
.clinics__map-title .ja {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 10px;
}
.clinics__map-title .watermark {
  position: absolute;
  top: -50px; left: 180px;
  width: 500px;
  z-index: -1;
  line-height: 1;
}
@media screen and (max-width:768px){
	.clinics__map-image .img-placeholder{
		width: 100%!important;
		height: auto!important;
	}
.clinics__map-title .watermark {
  width: 140px;
}
}
/* =========================================
   ★ Stacking academy__cardCards Animation (重なるアニメーション)
========================================= */
.clinics__list {
  position: relative;
  padding-bottom: 100px;
}
.clinics__list:last-of-type {
  padding-bottom:0px;
}

.clinic-card {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  min-height: 100vh; 
  display: flex;
  align-items: center; 
  box-shadow: 0 -10px 20px rgba(0,0,0,0.03);
  z-index: 1; 
}

.clinic-card:last-of-type {
  box-shadow: none;
}

/* 各カードのレイアウト */
.clinic-card__inner {
  width: 1400px; 
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 0 40px;
}

/* カラムの比率調整（中央を最も大きく） */
.clinic-card__left { flex: 0 0 22%; display: flex; flex-direction: column; }
.clinic-card__center { flex: 0 0 52%; }
.clinic-card__right { 
  flex: 0 0 18%; 
  display: flex; 
  flex-direction: column; 
  align-self: flex-start; /* ★ ここを追加：このカラムだけ「上揃え」にする */
}

@media screen and (max-width: 768px) {

  .clinic-card__inner { flex-direction: column; gap: 30px; } /* gapを少し縮めて詰める */
  .clinic-card__center { order: -1; } 
  .clinic-card__right { align-self: auto; }

  .clinic-card { 
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 40px 0;
    overflow-y: auto; 
  } 
  .clinic-main-img { 
    height: auto; 
    max-height: 35vh; /* メイン画像が画面を占領しすぎないように制限 */
  }
  .clinic-number { font-size: 80px; margin-bottom: 20px;}
  .clinic-number span { font-size: 40px; }
  .clinic-desc { margin-bottom: 30px; }
}
/* =========================================
   カード内の画像・タイポグラフィ
========================================= */

/* --- 左カラム --- */
.clinic-number {
  font-family: var(--font-en);
  font-size: 160px; /* ★ 110px -> 160px に思い切って拡大 */
  color: #111;
  line-height: 0.8; /* ★ 上下の無駄な余白をカットしてスッキリさせる */
  margin-bottom: 50px;
  font-weight: 400; /* ★ 少しだけ太くして存在感を出す */
  display: flex;
  align-items: flex-end; /* ★ 下揃えを基準にする */
}

.clinic-number span {
  font-family: "Qwitcher Grypen", cursive, var(--font-en); 
  font-size: 80px; /* ★ 50px -> 80px に拡大 */
  
  /* ★ 画像に合わせて紫のグラデーションを適用 */
  background: linear-gradient(135deg, #a858ad 0%, #3b2a71 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  margin-right: 5px; /* ★ 数字との間隔をギリギリまで詰める */
  margin-bottom: 15px; /* ★ flex-endで下揃えにした状態から、少しだけ上に持ち上げる */
}


@media screen and (max-width: 1024px) {
  .clinic-number { font-size: 120px; margin-bottom: 30px;}
  .clinic-number span { font-size: 60px; margin-bottom: 10px; }
  .clinic-desc { margin-bottom: 30px; }
}
.clinic-logo {
  width: 100%;
  height: auto;
  margin-bottom: 25px;
}

.clinic-name {
  font-family: var(--font-serif); /* デザインに合わせて明朝体に */
  font-size: 24px; 
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text-main);
  letter-spacing: 0.1em;
}

.clinic-desc {
  font-size: 13px; 
  color: var(--color-text-muted);
  line-height: 2.2;
  margin-bottom: 60px; /* 下の小写真との間にしっかり余白を取る */
}

.clinic-sub-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; /* 内観写真の比率 */
}

/* --- 中央カラム --- */
.clinic-main-img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: cover;
}

/* --- 右カラム --- */
.clinic-staff-img {
  width: 100%;
  height: auto;
/*  aspect-ratio: 4 / 5;*/
  border-radius: 0;
  margin-bottom: 30px;
}

.staff-role {
  font-family: var(--font-serif);
  font-size: 14px; 
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.staff-name {
  font-family: var(--font-serif);
  font-size: 28px; 
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.staff-msg {
  font-size: 12px; 
  line-height: 2.2;
  color: var(--color-text-muted);
}
.staff-msg p {
  margin-bottom: 5px; /* 文章が増えても読みやすいように */
}

/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 1024px) {
  
  /* =========================================
     1. スマホ時のスタッキング（重なり）とスクロール設定
  ========================================= */
  .clinic-card { 
    position: sticky; 
    top: 0;
    min-height: 100vh; 
    padding: 30px 0 50px; 
    overflow-y: auto; /* 画面に収まらない場合はカード内でスクロール可能に */
    overflow-x: hidden;
  } 

  /* =========================================
     2. Gridを使った自由な配置（魔法のレイアウト）
  ========================================= */
  .clinic-card__inner { 
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-rows: auto auto max-content max-content 1fr;
    gap: 0;
    padding: 0 10px;
    align-items: start;
  }

  /* 左と中央の箱を透明化し、中の要素を直接Gridに配置できるようにする */
  .clinic-card__left,
  .clinic-card__center { 
    display: contents; 
  }

  /* --- 1段目：ナンバーとロゴ --- */
  .clinic-number { 
    grid-column: 1 / 2;
    grid-row: 1;
    font-size: 70px; 
    margin-bottom: 20px;
    align-self: center;
  }
  .clinic-number span { font-size: 35px; margin-bottom: 8px; }
  
  .clinic-logo {
    grid-column: 2 / 3;
    grid-row: 1;
    width: 100%;
    max-width: 160px;
    margin-bottom: 20px;
    align-self: center;
  }

  /* --- 2段目：メイン画像とサブ画像 --- */
  .clinic-main-img { 
    grid-column: 1 / 3; /* 左右ぶち抜きで全幅表示 */
    grid-row: 2;
    width: 100%;
    height: 280px; 
    object-fit: cover;
    margin-bottom: 0;
  }
  
  .clinic-sub-img {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 110px;
    border: 1.5px solid #ffffff; /* 写真の白枠 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 5;
    margin-top: -15px; /* 上にはみ出させる */
    margin-left: 10px; /* 少し右にずらす */
  }

  /* --- 3段目：左下のクリニック情報 --- */
  .clinic-name {
    grid-column: 1 / 2;
    grid-row: 3;
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  
  .clinic-desc { 
    grid-column: 1 / 2;
    grid-row: 4;
    font-size: 11px;
    padding-right: 15px; /* 右の白カードとぶつからないように */
    margin-bottom: 30px;
  }

/* --- 3〜4段目：右下のスタッフ白カード --- */
  .clinic-card__right { 
    grid-column: 2 / 3;
    
    /* ★ ここを修正：3行目〜6行目の手前まで（余白吸収用の5行目を含める）またぐようにする */
    grid-row: 3 / 6; 
    
    background-color: #ffffff;
    margin-right: -20px; 
    padding: 20px 25px 15px 15px; 
    box-shadow: -5px 10px 30px rgba(0,0,0,0.08); 
    margin-top: -30px; 
    position: relative;
    z-index: 10;
    border-radius: 4px 0 0 4px; 
    align-self: start; 
  }
  
  /* 院長写真を「丸」にして上に食い込ませる */
  .clinic-staff-img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* ★きれいな丸にする */
    border: 1.5px solid #ffffff; /* 白いフチ */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin: -60px auto 15px; /* ★白カードの上に飛び出させる */
    display: block;
    aspect-ratio: auto; /* PCの比率を解除 */
  }

  .staff-role { font-size: 11px; margin-bottom: 5px; }
  .staff-name { font-size: 18px; margin-bottom: 10px; }
  .staff-msg { font-size: 11px; line-height: 1.8; }

  /* =========================================
     3. スマホ時のフェードインアニメーション再設定
  ========================================= */
  /* display: contents; により親のアニメーションが効かなくなるため、子要素に直接かける */
  .clinic-card.is-active .clinic-card__left,
  .clinic-card.is-active .clinic-card__center {
    opacity: 1 !important; transform: none !important;
  }
  
  .clinic-number, .clinic-logo, .clinic-main-img, .clinic-sub-img, .clinic-name, .clinic-desc {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .clinic-card.is-active .clinic-number,
  .clinic-card.is-active .clinic-logo,
  .clinic-card.is-active .clinic-main-img,
  .clinic-card.is-active .clinic-sub-img,
  .clinic-card.is-active .clinic-name,
  .clinic-card.is-active .clinic-desc {
    opacity: 1;
    transform: translateY(0);
  }

  /* 順番に表示（ディレイ） */
  .clinic-number { transition-delay: 0.1s; }
  .clinic-logo { transition-delay: 0.2s; }
  .clinic-main-img { transition-delay: 0.3s; }
  .clinic-sub-img { transition-delay: 0.4s; }
  .clinic-name, .clinic-desc { transition-delay: 0.5s; }
  .clinic-card__right { transition-delay: 0.6s; }
}

/* =========================================
   ★ カード内のフェードインアニメーション
========================================= */
.clinic-card__left,
.clinic-card__center,
.clinic-card__right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.clinic-card__left { transition-delay: 0.1s; }
.clinic-card__center { transition-delay: 0.3s; }
.clinic-card__right { transition-delay: 0.5s; }

.clinic-card.is-active .clinic-card__left,
.clinic-card.is-active .clinic-card__center,
.clinic-card.is-active .clinic-card__right {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   7. Merit (横スクロールセクション)
========================================= */
.merit {
  /* スクロールするための十分な高さを確保（この高さ分スクロールすると横に動く） */
  height: 400vh; 
  background-color: #fff;
}

.merit__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: linear-gradient(135deg, #B6B1D0 0%, #e2d7e5 50%, #d8cde0 100%);
  display: flex;
  align-items: center;
}

.merit__sticky::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

/* トラック（横にスライドするコンテナ） */
.merit__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 0 245px;
  height: 450px;
  width: max-content;
  will-change: transform; /* アニメーションのパフォーマンス最適化 */
  position: relative;
  z-index: 10;
}

.merit__intro {
  width: 800px;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.merit__intro .watermark {
  position: absolute;
  top: 155px;
  right: -56px;
  transform: translate(-50%, -50%);
  width: 280px;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

.merit__intro .watermark img {
  width: 100%;
  height: auto;
  display: block;
}

.merit__title-en {
  font-family: var(--font-en);
  font-size: 110px;
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: .9;
  letter-spacing: 0.1em;
  font-weight: 300;
}

.merit__title-ja {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-primary);
background: var(--color-grad01);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
  margin-top: 10px;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.merit__catch {
  position: relative;
  margin-bottom: 30px;
}

.merit__catch .quote {
  font-family: var(--font-serif);
  font-size: 100px;
  color: var(--color-primary);
background: var(--color-grad01);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
  line-height: 1;
  position: absolute;
}
.merit__catch .quote:first-child { top: -10px; left: -20px; }
.merit__catch .quote:last-child { bottom: -50px; right: 280px; }

.merit__catch .highlight-wrap {
  display: inline-block;
  background-color: #ffffff;
  padding: 5px 15px; 
  margin-bottom: 5px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
  border-radius: 0px; 
}

.merit__catch .highlight {
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
}

.merit__desc {
  font-size: 11px;
  line-height: 2;
  color: #555;
}

/* 2. カード群の共通スタイル */
.merit__card {
  background-color: #ffffff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.merit__card-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.merit__card--large { width: 340px; }
.merit__card--small { width: 280px; height: 215px; padding: 25px; }
.merit__card--wide-small { width: 340px; height: 215px; padding: 20px 30px; }
/* =========================================
   Meritセクション：追加のユーティリティ＆コンポーネントクラス
========================================= */

/* カードを横並びにするモディファイア */
.merit__card--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

/* タイトルの左寄せモディファイア */
.card-title--left {
  text-align: left;
}

/* 汎用マージンクラス */
.mb-5 { margin-bottom: 5px; }
.mb-0 { margin-bottom: 0; }

/* カード内のテキストラッパー */
.card-text-wrap {
  line-height: 1.2;
}

/* カード内のサブテキスト（平均取得日数など） */
.card-subtitle {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* プレースホルダー/アイコン画像が潰れないようにする */
.card-icon {
  flex-shrink: 0;
}

/* 上下ボーダー付きのテキスト（在籍） */
.card-border-text {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 10px 0;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
}
/* カード内タイポグラフィ */
.card-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #444;
  text-align: center;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}

.huge-num {
  font-family: var(--font-serif);
  font-size: 90px;
  color: #4a3c3b;
  line-height: 1;
}

.large-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: #4a3c3b;
  margin: 0 5px;
}

.large-num.large-num2 {
  font-family: var(--font-serif);
  font-size: 60px;
  color: #4a3c3b;
  margin: 0 5px;
}

.unit-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #4a3c3b;
  margin-left: 5px;
}

.card-note {
  font-size: 10px;
  color: #999;
  text-align: center;
  margin-top: auto; /* 下部に押しやる */
}

/* 個別カードのレイアウト詳細 */

/* Review Card */
.review-score { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px;}
.score-center { text-align: center; }
.score-num { font-family: var(--font-serif); font-size: 60px; color: #4a3c3b; line-height: 1; display: block; margin-bottom: 5px; }
.review-count { text-align: center; font-size: 14px; font-weight: normal; }
.review-count .num { font-size: 22px; font-family: var(--font-serif); }

/* Stats Card */
.stats-text { text-align: center; font-size: 20px; color: #555; line-height: 1.1; }
.clinic-num { text-align: center; margin-bottom: 0px; }
.clinic-list { font-size: 10px; color: #666; padding-left: 15px; }
.clinic-list li { margin-bottom: 2px; list-style-type: disc; }

/* Ratio & Age Card */
.ratio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ratio-box { color: #fff; text-align: center; font-size: 14px; padding: 10px 0; border-radius: 2px; line-height: 1.4; }
.age-list { font-size: 12px; color: #555; }
.age-list li { display: flex; justify-content: space-between; margin-bottom: 8px; }
.age-list .dots { color: #ccc; letter-spacing: 2px; }

/* Overtime Card */
.overtime-num { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 20px 0; }
.overtime-unit { display: flex; flex-direction: column; align-items: flex-start; }
.month-box { background-color: #333; color: #fff; font-size: 12px; padding: 2px 10px; margin-bottom: 5px; }

/* Holiday Card */
.holiday-num { text-align: center; margin: 20px 0; }
.right-num { display: flex; align-items: baseline; }



/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  /* 親要素の高さをリセットし、JSによる制御を無効化 */
  .merit { 
    height: auto !important; 
    padding: 60px 0; 
    background: linear-gradient(135deg, #d3c7db 0%, #e2d7e5 100%); 
  }
  
  /* stickyを解除し、はみ出しを許可する */
  .merit__sticky { 
    position: static; 
    height: auto; 
    overflow: visible; 
    display: block; 
    padding: 0; 
    background: none; 
  }
  
  /* タイトルエリアのレイアウト調整 */
  .merit__intro { 
    width: 100%; 
    padding: 0 20px; 
    margin-bottom: 40px; 
    text-align: center; 
  }
  .merit__catch .quote:first-child { left: 0; }
  .merit__catch .quote:last-child { right: 0; }

  /* トラック（カード群）をネイティブな横スクロールに変更 */
  .merit__track { 
    height: auto; 
    width: 100%; 
    padding: 0 20px 20px; /* 下部にスクロールバー用の余白 */
    transform: none !important; /* JSによるスライド制御を強制キャンセル */
    
    /* 横スクロール（スワイプ）を可能にする設定 */
    overflow-x: auto;
    /* スクロールを滑らかにし、スクロールバーを隠す（iOS向け） */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox用 */
  }
  
  /* Chrome/Safari用のスクロールバー非表示設定 */
  .merit__track::-webkit-scrollbar {
    display: none;
  }

  /* カードのサイズをスマホ向けに調整 */
  .merit__card--large { width: 300px; }
  .merit__card--small { width: 260px; height: 215px; }
  .merit__card--wide-small { width: 300px; height: 160px; }
}
/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 768px) {
  
  /* =========================================
     7. Merit (スマホ版：縦スクロール連動・横移動)
  ========================================= */
  
  /* 親要素の高さを300vhにして「スクロールする距離」を確保 */
  .merit { 
    height: 300vh !important; 
    padding: 0; 
    background: linear-gradient(135deg, #d3c7db 0%, #e2d7e5 100%); 
    position: relative;
    z-index: 1;
  }
  
  /* スマホ用のグリッド背景 */
  .merit::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
      linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
  }

  /* 画面にピタッと固定（Sticky）させる */
  .merit__sticky { 
    position: sticky; 
    top: 0;
    height: 100vh; /* 画面いっぱいで固定 */
    overflow: hidden; /* はみ出たカードを隠す */
    display: block; 
    padding: 0; 
    background: none; 
  }
  .merit__sticky::before { display: none; }

  /* トラックを「横長」に作り直し、カードを下部に配置 */
  .merit__track { 
    height: 100vh; 
    width: max-content; /* 中身のカードの分だけ横に伸びる */
    display: flex;
    flex-direction: row; /* 横一列 */
    align-items: flex-end; /* カードを画面下部に揃える */
    padding: 0 20px 40px; /* 左右20px、下部40pxの余白 */
    box-sizing: border-box;
  }

  /* --- イントロ（画面に留まる部分） --- */
  .merit__intro { 
    position: absolute; /* トラックから浮かせる */
    top: 60px; /* 画面上部からの位置 */
    left: 0;
    width: 100vw; /* 画面幅いっぱい */
    padding: 0 20px; 
    margin-bottom: 0; 
    text-align: center;
    box-sizing: border-box;
    z-index: 1;
  }

  /* (以下、ご提示いただいたデザイン指定そのまま) */
  .merit__title-en { font-size: 50px; line-height: 1; text-align: left; }
  .merit__title-ja { font-size: 14px; margin-bottom: 40px; text-align: left; }
  .merit__catch { margin-bottom: 30px; padding: 0 10px; display: inline-block; position: relative; z-index: 10; }
  .merit__catch h3 { margin: 0; font-weight: 400; line-height: 1.9; text-align: left; }
  .merit__catch .highlight-wrap { padding: 6px 15px; margin-bottom: 8px; box-shadow: 2px 2px 10px rgba(0,0,0,0.05); }
  .merit__catch .highlight { font-size: 26px; line-height: 1.2; letter-spacing: 0.01em; }
  .merit__catch .highlight .kana {
    font-size: 0.82em; display: inline-block; transform: translateY(-1px);
    color: var(--color-primary); background: var(--color-grad01); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  .merit__catch .quote { font-size: 60px; }
  .merit__catch .quote.open { top: -18px; left: -5px; }
  .merit__catch .quote.close { bottom: -25px; right: 20px; }
  
  .merit__desc { text-align: left; display: inline-block; font-size: 11px; margin: 0 auto; max-width: 90%; }
  
  .merit__intro .watermark { transform: none; width: 115px; top: 0px; right: 6px; }

/* --- カード群（横にスライドしていく部分） --- */
  .merit__card--large,
  .merit__card--small,
  .merit__card--wide-small { 
    width: 300px;
	height: 200px;
    padding: 30px 20px;
    margin-right: 20px; /* カード同士の隙間 */
    flex-shrink: 0; /* ★ 横に潰れないようにする絶対条件 */
    position: relative;
    z-index: 10; 
  }
  .merit__card-col {
    display: contents;
  }
  .merit__card-col .merit__card {
    margin-right: 20px; 
    width: 300px;
  }

}
/* =========================================
   8. Academy (教育体制)
========================================= */
.academy {
  background-color: #f8f8f8; /* カードを目立たせるための薄いグレー背景 */
  padding: 80px 0 0; /* 下部はカードがはみ出るため余白なし */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.academy__intro {
  text-align: center;
  margin-bottom: 60px;
}

.academy__title-en {
  font-family: var(--font-en);
  font-size: 110px;
  margin-left: -5px;
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
  font-weight: 300;
  margin-bottom: 40px;
}

.academy__desc {
  font-size: 14px;
  line-height: 2;
  color: #333;
  letter-spacing: 0.05em;
}

/* 白いカード（Point 01） */
.academy__card {
  background-color: #ffffff;
  width: var(--content-width);
  max-width: 95%;
  margin: 0 auto;
  padding: 60px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10; /* 下のセクションに少し被せるため */
  margin-bottom: -50px; /* 次のセクションに50px被る */
}
/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 768px) {
  
  /* =========================================
     8. Academy (教育体制) - スマホ調整
  ========================================= */
  
  .academy {
    padding: 60px 0 0; /* 上部の余白をスマホ向けに少し詰める */
  }

  .academy__intro {
    margin-bottom: 40px; /* カードとの隙間を縮小 */
    padding: 0 10px; /* 画面端ギリギリにならないよう左右に余白 */
  }

  /* 英語大見出しの縮小 */
  .academy__title-en {
    font-size: 55px; /* 110pxからスマホサイズへ半減 */
    margin-left: 0; /* PC用のマイナス余白をリセット */
    margin-bottom: 25px;
    line-height: 1.1;
  }

  /* 説明文の読みやすさ向上 */
  .academy__desc {
    font-size: 13px;
    text-align: left; /* スマホでは左揃えの方が長文が読みやすい */
    display: inline-block; /* 左揃えにしつつ、ブロック全体は中央に配置するテクニック */
    max-width: 95%;
  }

  /* 白いカード（Point 01）の最適化 */
  .academy__card {
    padding: 40px 20px; /* 60pxから縮小し、スマホ画面を有効活用 */
    max-width: 90%; /* 画面端のグレー背景が少し見えるくらいが美しい */
    border-radius: 4px; /* スマホ版のカードらしく少しだけ角を丸く（お好みで削除OK） */
    margin-bottom: -30px; /* 次のセクションへの被り（食い込み）をスマホ用に少し浅く調整 */
  }
}
/* =========================================
   カード内ヘッダー (Point 01)
========================================= */
.point-header {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center; /* 全体を縦の中央で揃える */
  gap: 30px; /* 数字グループとタイトルの間の余白 */
}

/* Point と 01 のグループ */
.point-number-wrapper {
  display: flex;
  align-items: flex-end; /* 下揃え */
  line-height: 0.8;
}

.point-label {
  font-family: "Qwitcher Grypen", cursive, var(--font-en);
  font-size: 80px; /* 大幅に拡大 */
  background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 5px; /* 数字にグッと寄せる */
  margin-bottom: 15px; /* 下揃えから少し浮かせる */
}

.point-num {
  font-family: var(--font-en);
  font-size: 150px; /* 大幅に拡大 */
  color: #111;
  line-height: 0.8;
  font-weight: 400;
}

/* キャッチフレーズ部分（グラデーション適用） */
.point-title {
  font-family: var(--font-serif);
  font-size: 34px; /* サイズを大きく */
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.point-title .quote-mark {
  font-family: var(--font-serif);
  font-size: 50px;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.point-title .quote-mark.open {
  margin-right: 15px;
  transform: translateY(0px); 
}

.point-title .quote-mark.close {
  margin-left: 15px;
  transform: translateY(0px); 
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .point-header {
    flex-direction: column; /* スマホ時は縦並びに */
    gap: 15px;
  }
  .point-label { font-size: 60px; margin-bottom: 10px; }
  .point-num { font-size: 110px; }
  .point-title { font-size: 24px; justify-content: center; }
  .point-title .quote-mark { font-size: 40px; }
}

/* 4枚ギャラリー */
.point-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 50px;
}

/* 特徴リスト */
.point-features {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-item {
  border-bottom: 1px dotted #ccc;
  padding-bottom: 40px;
}
.feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-title {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
}
/* チェックマークアイコンの代用 */
.feature-title::before {
  content: '';
  display: inline-block;
  width: 14px; height: 8px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
  margin-right: 15px;
  margin-bottom: 5px;
}

.feature-desc {
  font-size: 13px;
  line-height: 2;
  color: #444;
  padding-left: 30px;
}

/* 3枚の教育プログラムカード */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  padding-left: 30px;
}

.program-card {
  position: relative;
  background-color: var(--color-btn-end); /* 暗い紫 */
  color: #fff;
}

/* 左上の丸いバッジ */
.program-badge {
  position: absolute;
  top: -35px; /* はみ出し具合を大きく */
  left: -30px;
  width: 140px; /* サイズを大幅に拡大 */
  height: 140px;
  
  /* 画像に忠実な赤紫〜紺色のグラデーション */
  background: linear-gradient(135deg, #a3408e 0%, #2d266e 100%);
  border-radius: 50%;
  
  display: flex;
  flex-direction: column; /* 縦並びに変更 */
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  
  /* 全体を明朝体（Serif）にして高級感を出す */
  font-family: var(--font-serif);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* 影を少し強めに */
  z-index: 5;
  line-height: 1.2;
}

/* バッジ内のタイポグラフィ調整 */
.program-badge .badge-line1 {
  font-size: 15px; /* 上の行（3か月間、年間） */
  font-weight: bold;
  margin-bottom: 2px;
}

.program-badge .badge-line2 {
  font-size: 16px; /* 下の行の文字部分（週、時間、本、症例） */
  font-weight: bold;
  display: flex;
  align-items: baseline; /* 数字と文字の下端を揃える */
}

/* 数字だけを特大サイズに */
.program-badge .badge-num {
  font-size: 44px; /* 画像の迫力に合わせて巨大化 */
  font-weight: normal; /* 数字は少し細めにするのが美しい */
  margin: 0 3px;
  line-height: 1;
}

.program-caption {
  font-size: 11px;
  padding: 15px;
  line-height: 1.6;
}
/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  
  /* =========================================
     Point 01 ヘッダー周り
  ========================================= */
  .point-header {
    flex-direction: column; /* スマホ時は縦並びに */
    gap: 15px;
    margin-bottom: 30px; /* 余白を少し詰める */
  }
  
  /* Point と 01 の文字サイズ調整 */
  .point-label { font-size: 60px; margin-bottom: 5px; }
  .point-num { font-size: 110px; }
  
  /* --- タイトル（キャッチフレーズ） --- */
  .point-title { 
    font-size: 26px; /* スマホ画面に合わせて縮小 */
    justify-content: center; 
    position: relative;
    display: inline-flex; /* 引用符を重ねるための基準にする */
    margin: 0 auto;
    letter-spacing: 0.05em;
  }
  
  /* ★ ひらがなを小さくして緩急をつける */
  .point-title .kana {
    font-size: 0.8em; 
    display: inline-block;
    transform: translateY(-1px);
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  }

  /* ★ 引用符（“ ”）を文字に被せるように配置 */
  .point-title .quote-mark { 
    font-size: 50px; 
    position: absolute; /* 絶対配置に変更 */
  }
  .point-title .quote-mark.open { 
    top: 0px; 
    left: -25px; 
    margin: 0;
  }
  .point-title .quote-mark.close { 
    bottom: -25px; 
    right: -25px; 
    margin: 0;
  }

  /* =========================================
     4枚ギャラリー（田の字・ジグザグ配置）
  ========================================= */
  .point-gallery {
    grid-template-columns: repeat(2, 1fr); /* 4列から2列へ変更 */
    gap: 10px; /* 画像同士の隙間 */
    margin-bottom: 40px;
  }

  /* HTMLに直接書かれていた style="margin-top: 40px;" を打ち消しつつ、右列だけ下げる */
  .point-gallery img {
    margin-top: 0 !important; /* HTMLのインラインスタイルを強制解除 */
    width: 100%;
    height: auto;
    aspect-ratio: auto; /* 画像の比率を美しく保つ */
    object-fit: cover;
  }
  
  /* ★ 2番目と4番目（右の列）の画像だけを下に20pxずらして互い違いにする */
  .point-gallery img:nth-child(even) {
    transform: translateY(20px); 
  }
  
  /* 下にずらした分、親要素の下に余白を追加してレイアウト崩れを防ぐ */
  .point-gallery {
    padding-bottom: 20px; 
  }

  /* =========================================
     特徴リスト・プログラムカード
  ========================================= */
  .point-features { gap: 30px; }
  
  .feature-title { font-size: 16px; margin-bottom: 10px; }
  .feature-desc { font-size: 12px; padding-left: 0; /* スマホはインデントなしが読みやすい */ }
  
  .program-grid {
    grid-template-columns: 1fr; /* 3列から1列（縦積み）へ */
    gap: 30px;
    padding-left: 0;
    margin-top: 60px;
  }
/* スマホ版でのバッジサイズ微調整（メディアクエリ内に記載） */
  .program-badge {
    width: 100px; 
    height: 100px;
    top: -20px; 
    left: -15px;
  }
  .program-badge .badge-line1 { font-size: 12px; }
  .program-badge .badge-line2 { font-size: 12px; }
  .program-badge .badge-num { font-size: 30px; }
}

/* =========================================
   9. Curriculum (年次スライドショー)
========================================= */
.curriculum {
  background-color: #707bad; /* スモーキーなブルー/パープル系 */
  padding: 120px 0 80px; /* 上部のカード被り分、余白を多めに */
}

.curriculum__container {
  width: var(--content-width);
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  gap: 60px;
}

/* 左側ナビゲーション */
.curriculum__nav {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-tab {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  padding: 15px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

/* アクティブなタブのスタイル */
.nav-tab.active {
  border: 1px solid #ffffff;
  color: #ffffff;
  font-weight: 700;
}
.nav-tab.active::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #ffffff;
}

.nav-arrow {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin: 10px 0;
  transform: scaleY(0.7); /* 矢印を少し平べったく */
}

/* 右側スライドコンテンツ */
.curriculum__content-wrapper {
  flex: 1;
  position: relative;
  min-height: 450px;
}

.curriculum__slide {
  display: flex;
  gap: 40px;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.curriculum__slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide-text { flex: 1; color: #ffffff; }

.slide-title {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.slide-title .arrow { font-size: 24px; margin-right: 10px; }

.slide-subtitle {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.slide-list {
  font-size: 13px;
  line-height: 2.2;
}
.slide-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}
.slide-list li::before {
  content: '・';
  position: absolute;
  left: 0; top: 0;
}

.slide-image { flex-shrink: 0; }

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .academy__card { padding:30px 20px; margin-bottom: 0; }
  .point-gallery { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: 1fr; padding-left: 0; }
  
  .curriculum { padding: 60px 0; }
  .curriculum__container { flex-direction: column; gap: 30px; }
  .curriculum__nav { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0px; }
  .nav-tab { width: auto; padding: 10px 20px; }
  .nav-arrow { display: none; }
  .curriculum__slide { flex-direction: column; }
}
/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 1024px) {

  /* =========================================
     9. Curriculum (スマホ版：安全なレイアウト変更)
  ========================================= */
  .curriculum {
    padding: 50px 0 80px; 
    background-color: #6a74a3;
	height: 950px;
  }
  
  .curriculum__container {
    display: block; 
    position: relative;
    padding-top: 170px; /* ★重要：大見出しとタブを配置する十分な高さを確保 */
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* --- 1. 左ナビを「上部の横並びタブ」に変更 --- */
  .curriculum__nav {
    position: absolute;
    top: 100px; /* 大見出しのすぐ下に配置 */
    left: 20px; 
    width: calc(100% - 40px);
    display: flex; 
    flex-direction: row; 
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border: 1px solid #ffffff; 
    z-index: 20;
  }

  .nav-tab {
    flex: 1; 
    padding: 10px 0; 
    border: none;
    border-right: 1px solid #ffffff; 
    color: #ffffff;
    
    /* 文字がバラバラにならないよう、ブロック要素として中央揃え */
    display: block; 
    text-align: center;
    line-height: 1.2;
    background-color: transparent; 
    font-size: 13px; /* 「年目」などのベースサイズ */
  }
  .nav-tab:last-child {
    border-right: none; 
  }
  
  .nav-tab.active {
    background-color: #ffffff;
    color: #6a74a3;
  }
  .nav-tab::after {
    display: none !important; 
  }
  
  /* タブ内の文字サイズ微調整 */
  .nav-tab .num { font-size: 16px; font-weight: bold; }
  .nav-tab .sub { font-size: 10px; display: block; margin-top: 3px; } /* 確実に改行させる */


  /* --- 2. スライドの中身の順番入れ替え --- */
  .curriculum__content-wrapper {
    min-height: auto;
  }

  /* PC版の表示/非表示の仕組みを壊さないよう、flexの設定だけ上書き */
  .curriculum__slide {
    display: flex;
    flex-direction: column;
  }

  /* 画像をテキストエリアより「上」に持ってくる魔法 */
  .slide-image {
    order: -1; 
    width: 100%;
    margin-bottom: 0px; 
    align-self: auto; 
    box-shadow: none; 
  }

  /* テキストエリアの箱は残したままにする（バグ防止） */
  .slide-text {
    display: flex;
    flex-direction: column;
  }

  /* ① 大見出しだけを一番上のコンテナ領域へ飛ばす（絶対配置） */
  .slide-title {
    position: absolute;
    top: -160px; /* コンテナのpadding-topで作った空間に配置 */
    left: 0; 
    width: 100%;
    font-family: var(--font-serif); 
    font-size: 26px;
    font-weight: normal;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: baseline; 
  }
  .slide-title .arrow { font-size: 22px; margin-right: 5px; transform: scaleY(1.2); }
  .slide-title .num { font-size: 46px; margin-right: 5px; line-height: 1; } 
  .slide-title .sub { font-size: 20px; margin-left: 5px; }


  /* ③ サブタイトル */
  .slide-subtitle {
    font-family: var(--font-serif); 
    font-size: 20px; 
    line-height: 1.5;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 0.05em;
  }

  /* ④ リスト */
  .slide-list {
    display: flex;
    flex-direction: column;
    gap: 12px; 
    color: rgba(255, 255, 255, 0.9); 
  }
  .slide-list li {
    font-size: 13px;
    line-height: 1.6;
    padding-left: 15px;
  }
  .slide-list li::before {
    top: 6px; 
    width: 5px;
    height: 5px;
  }
}


/* =========================================
   10. Next Step (Point 02)
========================================= */
.next-step {
  background-color: #f8f8f8; /* 背景色は薄いグレー */
  padding: 80px 0 100px;
  display: flex;
  justify-content: center;
}

/* 導入テキスト */
.next-step__intro {
  text-align: center;
  font-size: 13px;
  line-height: 2.2;
  color: #444;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}

/* ギャラリーの上書き（ジグザグ配置のため上部揃えに変更） */
.next-step__gallery {
  margin-bottom: 80px;
  align-items: start; 
}

/* コースセクション */
.course-section {
  padding-top: 20px;
}

.course-desc {
  font-size: 13px;
  line-height: 2;
  color: #444;
  padding-left: 30px;
  margin-bottom: 50px;
}

/* コースグリッド (PC: 3列, タブレット: 2列, スマホ: 1列) */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px; /* 行間を広めに */
}

/* 各コースカード */
.course-card {
  display: flex;
  flex-direction: column;
}

/* コースタイトル（グラデーション＋吹き出し） */
.course-card__title {
  /* 薄紫から薄ピンクへのグラデーション */
  background: linear-gradient(135deg, #e7d8f0 0%, #f6dae4 100%);
  border: 1px solid #bfa0c8;
  border-radius: 4px;
  color: #b25d97; /* 紫がかったピンク */
  font-weight: 700;
  text-align: center;
  padding: 15px 0;
  font-size: 15px;
  letter-spacing: 0.1em;
  position: relative;
  margin-bottom: 25px;
}

/* 吹き出しの三角部分 */
.course-card__title::after {
  content: '';
  position: absolute;
  bottom: -6px; /* 半分はみ出させる */
  left: 50%;
  transform: translateX(-50%) rotate(45deg); /* ひし形にして下半分を三角に見せる */
  width: 10px;
  height: 10px;
  background-color: #f0dae8; /* グラデーションの中間色に近い色 */
  border-right: 1px solid #bfa0c8;
  border-bottom: 1px solid #bfa0c8;
}

/* コースの特徴リスト */
.course-card__list {
  list-style: none;
  padding-left: 10px;
}

.course-card__list li {
  font-size: 11px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px; /* マーカー（■）の分の余白 */
}

/* 四角いリストマーカー */
.course-card__list li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
  color: #444;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .next-step__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .next-step__gallery .img-placeholder {
    height: 220px !important;
    margin-top: 0 !important; /* スマホ・タブレットではジグザグを解除 */
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .course-grid {
    grid-template-columns: 1fr; /* スマホは1列 */
  }
  .course-desc {
    padding-left: 0;
  }
}

/* =========================================
   11. Interview (社員インタビュー)
========================================= */
.interview {
  background-color: #ffffff;
  padding-bottom: 120px;
}

/* 上部の帯状ギャラリー */
.interview__gallery {
  display: flex;
  width: 100%;
  margin-bottom: 100px;
}

/* 2カラムレイアウト */
.interview__container {
  width: var(--content-width);
  max-width: 95%;
  margin: 50px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 60px;
 
}

.interview__sidebar {
  flex: 0 0 38%;
  position: sticky;
  top: 120px;
}

.sidebar__inner {
  position: relative;
  padding: 20px;
  z-index: 10;
}

.sidebar__inner .watermark {
  position: absolute;
  top: 0; 
  left: 250px;
  width: 250px;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

.sidebar__inner .watermark img {
  width: 100%;
  height: auto;
  display: block;
}

.interview__title-en {
  font-family: var(--font-en);
  font-size: 80px;
  margin-left: -5px;
  color: var(--color-primary);
  background: var(--color-grad01);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 300;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.interview__title-ja {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 10px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.interview__catch {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--color-text-main);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.interview__desc p {
  font-size: 11px;
  line-height: 2.5;
  color: #444;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

/* --- 右側：動画エリア --- */
.interview__videos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* YouTubeサムネイル（16:9の比率を維持するコンテナ） */
.youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  cursor: pointer;
  background-color: #000; /* 読み込み中の黒背景 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.youtube-wrapper .youtube-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

/* グラデーションオーバーレイ（文字を読みやすくする） */
.youtube-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}

/* 中央の再生ボタン */
.youtube-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  background: radial-gradient(circle, #a46ab4 0%, #6c4692 100%);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 20;
  transition: transform 0.2s ease;
}
.youtube-play-btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fff; /* 白い三角 */
}

.youtube-wrapper:hover .youtube-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

/* 動画上のテキスト情報 */
.youtube-overlay-text {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 10;
  pointer-events: none; /* クリックを邪魔しない */
}

/* 白背景のキャッチコピー */
.quote-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px;
  position: relative;
}
.quote-box .text-line {
  background-color: #ffffff;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: bold;
  padding: 5px 15px;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
  display: inline-block;
}
.quote-box .quote-mark {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 5;
}
.quote-box .quote-mark:first-child { top: -10px; left: -10px; }
.quote-box .quote-mark.right { bottom: 0; right: -20px; }




/* 名前とプロフィール */
.person-info {
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.person-info .name {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.1em;
}
.person-info .profile {
  font-size: 11px;
  line-height: 1.4;
}

/* iframeが追加されたら、サムネイルと装飾を消す */
.youtube-wrapper.is-playing .youtube-thumb,
.youtube-wrapper.is-playing .youtube-play-btn,
.youtube-wrapper.is-playing .youtube-overlay-text,
.youtube-wrapper.is-playing::after {
  display: none;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .interview__container {
    flex-direction: column;
    gap: 40px;
  }
  .interview__sidebar {
    width: 100%;
    position: static; /* スマホでは追従を解除 */
  }
  .quote-box .text-line { font-size: 18px; }
  .person-info .name { font-size: 20px; }
}


/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 1024px) {

  /* =========================================
     11. Interview (スマホ版の調整)
  ========================================= */
  .interview {
    padding-bottom: 80px; /* スマホ向けに余白を少し詰める */
  }

  /* 上部のスライダーギャラリーの余白調整 */
  .interview__gallery {
    margin-bottom: 60px;
  }

  .interview__container {
    flex-direction: column; /* 縦並びに変更 */
    gap: 40px;
    margin-top: 0;
    width: 100%;
    padding: 0 20px; /* 画面端の余白 */
  }

  .interview__sidebar {
    width: 100%;
    position: static; /* スマホではスクロール追従を解除 */
  }

  .sidebar__inner {
    padding: 0; /* PC用の余白をリセット */
  }

  /* --- タイトルエリアの調整 --- */
  .interview__title-en {
		font-size: 50px;
        margin-left: 0;
        line-height: 1;
        margin-top: 30px;
  }

  .interview__title-ja {
    margin-bottom: 30px;
  }

  .interview__catch {
    font-size: 20px; /* 26pxから縮小 */
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .interview__desc p {
    font-size: 12px;
    line-height: 2; /* 長文が読みやすい行間に */
  }

  /* SPロゴ（ウォーターマーク）の位置をスマホ画面の右上に最適化 */
  .sidebar__inner .watermark {
    width: 140px; /* 小さくする */
    left: auto; 
    right: -10px; /* 右端に寄せる */
    top: 0px; 
  }
	/* --- 動画エリアの調整 --- */
  .interview__videos {
    width: 100%; /* ★追加：横幅を100%に固定 */
    flex: auto;  /* ★追加：PC版の flex: 1; を解除して潰れるのを防ぐ */
    gap: 40px;   /* 動画同士の隙間 */
  }
  /* スマホ版では再生ボタンを少し小さく */
  .youtube-play-btn {
    width: 50px; 
    height: 50px;
  }
  .youtube-play-btn::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #fff;
  }

  /* --- 動画上のオーバーレイテキスト調整 --- */
  .youtube-overlay-text {
    bottom: 15px; 
    left: 15px;
  }

  /* キャッチコピーの白枠 */
  .quote-box {
    margin-bottom: 10px;
  }
  .quote-box .text-line { 
    font-size: 14px; /* スマホで文字がはみ出さないように縮小 */
    padding: 4px 12px;
  }
  
  /* 引用符のサイズ調整 */
  .quote-box .quote-mark {
    font-size: 24px; 
  }
  .quote-box .quote-mark:first-child { top: -8px; left: -8px; }
  .quote-box .quote-mark.right { bottom: 0; right: -15px; }

  /* 名前とプロフィールを縦並びに（スマホでは横幅が足りないため） */
  .person-info {
    flex-direction: column; 
    gap: 2px;
  }
  .person-info .name { 
    font-size: 20px; 
  }
  .person-info .profile {
    font-size: 10px;
  }

}
/* --- Responsive (Media Queries) --- */
@media screen and (max-width: 1024px) {

  /* =========================================
     11. Interview (スマホ版のレイアウト変更)
  ========================================= */
  .interview {
    padding-bottom: 80px; 
  }

  .interview__gallery {
    margin-bottom: 60px;
  }

  .interview__container {
    flex-direction: column; /* 縦並びに変更 */
    gap: 40px;
    margin-top: 0;
    width: 100%;
    padding: 0 20px; 
  }

  .interview__sidebar {
    width: 100%;
    position: static; /* スマホではスクロール追従を解除 */
  }

  .sidebar__inner {
    padding: 0; 
  }

  .interview__title-en {
    font-size: 55px; 
    margin-left: 0;
    line-height: 1;
  }

  .interview__title-ja {
    margin-bottom: 30px;
  }

  .interview__catch {
    font-size: 20px; 
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .interview__desc p {
    font-size: 12px;
    line-height: 2; 
  }

  .sidebar__inner .watermark {
    width: 140px; 
    left: auto; 
    right: -10px; 
    top: 0px; 
  }

  /* --- 動画エリアの調整 --- */
  .interview__videos {
    width: 100%; /* 動画エリアが潰れるのを防ぐ */
    flex: auto;
    gap: 40px; 
  }

  /* スマホ版では再生ボタンを少し小さく */
  .youtube-play-btn {
    width: 50px; 
    height: 50px;
  }
  .youtube-play-btn::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #fff;
  }

  /* =========================================
     ★ 動画上のオーバーレイテキスト配置変更（顔を避ける）
  ========================================= */
  .youtube-overlay-text {
    bottom: 15px; 
    left: 15px;
    width: calc(100% - 30px); /* 横幅いっぱいに広げる */
    
    /* ★魔法のコード：横並び（右寄せ）にする */
    display: flex;
    flex-direction: row-reverse; /* 「名前」を左、「白帯」を右にする */
    justify-content: space-between; /* 両端に寄せる */
    align-items: flex-end; /* 下揃え */
  }

  /* 2. 名前とプロフィール（左側） */
  .person-info {
    flex-direction: column; /* 縦並び */
    gap: 2px;
    width: auto;
    flex-shrink: 0; /* 右の白帯に押されて潰れないようにする */
    margin-right: 20px; /* 右の白帯との隙間 */
  }
  .person-info .name { 
    font-size: 20px; 
  }
  .person-info .profile {
    font-size: 10px;
  }

  /* 1. 白背景のキャッチコピー（右側） */
  .quote-box {
    flex: 1; /* 余ったスペースを使う */
    align-items: flex-end; /* 白帯を右寄せにする */
    margin-bottom: 0; /* PC用のマージンを解除 */
  }
  
  .quote-box .text-line { 
    font-size: 10px; /* 少し小さくして横に並びやすく */
    padding: 4px 10px;
    max-width: 100%; /* 横幅からはみ出さないように */
    box-sizing: border-box;
    text-align: right; /* 文字を右揃えに */
  }
  
  /* 引用符のサイズと配置を再調整 */
  .quote-box .quote-mark {
    font-size: 24px; 
  }
  /* 引用符の位置を右寄せの白帯に合わせる */
  .quote-box .quote-mark:first-child { 
    top: -8px; 
    left: 28px;
  }
  .quote-box .quote-mark.right { 
    bottom: -15px;
    right: 0px; 
  }
}


/* =========================================
   12. Requirements (募集要項)
========================================= */
.requirements {
background-color: #211354; /* 濃いネイビーパープル */
  padding: 80px 0 120px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 50% 100%, 0 calc(100% - 40px));
  
  /* ★ ここを追加：切り取った隙間を埋めるための調整 */
  margin-bottom: -40px; /* V字の深さ(40px)分だけ、下のセクションを上に引っ張り上げる */
  position: relative;
  z-index: 10; /* 下のセクションより確実に手前に重ねる */
}

.req-inner {
  width: 900px;
  max-width: 95%;
  margin: 0 auto;
}

.req-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 32px;
  color: #ffffff;
  letter-spacing: 0.2em;
  margin-bottom: 40px;
}

/* タブボタンのエリア */
.req-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.req-tab {
  width: 220px;
  padding: 15px 0;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.req-tab:hover {
  border-color: #ffffff;
  background-color: rgba(255,255,255,0.1);
}

/* アクティブなタブ */
.req-tab.active {
  background-color: #ffffff;
  color: #211354;
  font-weight: 700;
  border-color: #ffffff;
}

/* テーブルスタイル */
.req-table {
  width: 100%;
  border-collapse: collapse;
  display: none; /* デフォルトは非表示 */
}

.req-table.active {
  display: table; /* JSで.activeが付与されたら表示 */
}

/* 行ごとのストライプ背景 */
.req-table tr:nth-child(odd) {
  background-color: #ffffff;
}
.req-table tr:nth-child(even) {
  background-color: #efedf4; /* 非常に薄い紫グレー */
}

.req-table th,
.req-table td {
  padding: 25px;
  color: #333333;
}

.req-table th {
  width: 25%;
  text-align: left;
  vertical-align: top;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  /* 見出しと内容の間に薄い縦線 */
  border-right: 1px dotted #cccccc; 
}

.req-table td {
  width: 75%;
  font-size: 13px;
  line-height: 2;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .req-tabs {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .req-tab {
    width: 100%;
    max-width: 300px;
  }
  
  .req-table th,
  .req-table td {
    display: block; /* スマホでは縦積みに */
    width: 100%;
  }
  .req-table th {
    border-right: none;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
  }
  .req-table td {
    padding-top: 10px;
  }
  /* V字の深さをスマホでは少し浅くする */
  .requirements {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 50% 100%, 0 calc(100% - 20px));
  }
}

/* =========================================
   13. Contact Form (見学・面接申し込み)
========================================= */
.contact {
  background-color: #f2f0f5; /* 薄いパープルグレー */
  padding: 100px 0 120px;
}

.contact__inner {
  width: 800px;
  max-width: 95%;
  margin: 0 auto;
}

.contact__title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 32px;
  color: #333;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

/* 3つのバッジ */
.contact__badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.contact__badges .badge {
  background-color: #2b1d60;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 30px;
  letter-spacing: 0.05em;
}

/* フォーム共通スタイル */
.contact__form {
  border-top: 1px solid #dcdcdc;
}

.form-group {
  display: flex;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid #dcdcdc;
}

.form-group.align-top {
  align-items: flex-start;
}

.form-label {
  flex: 0 0 25%; /* 左側のラベル幅 */
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.form-control-wrap {
  flex: 1;
}

/* 入力ボックス */
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background-color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #333;
  outline: none;
  border-radius: 2px;
}

/* 年齢の入力欄 */
.age-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}
.age-input {
  width: 100px;
}
.age-wrap .unit {
  font-size: 13px;
  color: #333;
}

/* ラジオボタン */
.radio-group {
  display: flex;
  gap: 30px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

/* テキストエリア */
.textarea {
  resize: vertical;
}

/* --- 個人情報の取り扱い --- */
.privacy-section {
  margin: 50px 0;
}

/* 開閉ボタン */
.privacy-toggle {
  width: 100%;
  background-color: rgba(255,255,255,0.6);
  border: 1px solid #ffffff;
  padding: 15px;
  color: #4a3c74; /* 濃い紫 */
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  outline: none;
  transition: background-color 0.3s;
}
.privacy-toggle:hover {
  background-color: #ffffff;
}
.privacy-toggle .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px; height: 18px;
  background-color: #4a3c74;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: normal;
  transition: transform 0.3s ease;
}

/* 中身のスクロールエリア */
.privacy-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.privacy-content.is-open {
  max-height: 300px; /* 開いた時の高さ */
}

.privacy-scrollbox {
  background-color: #ffffff;
  padding: 20px;
  height: 250px;
  overflow-y: auto; /* 縦スクロール可能にする */
  font-size: 12px;
  line-height: 1.8;
  color: #555;
  border-top: none;
  margin-top: -1px; /* 上のボタンとくっつける */
}
.privacy-scrollbox p {
  margin-bottom: 15px;
}
/* スクロールバーの装飾 */
.privacy-scrollbox::-webkit-scrollbar { width: 6px; }
.privacy-scrollbox::-webkit-scrollbar-track { background: #f0f0f0; }
.privacy-scrollbox::-webkit-scrollbar-thumb { background: #c4a7e7; border-radius: 3px; }

/* 注意書き */
.form-notes {
  text-align: center;
  font-size: 12px;
  line-height: 2;
  color: #555;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}
.form-notes .warning {
  color: #e86b6b; /* コーラルレッド */
  margin-top: 5px;
}

/* ボタンエリア */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-submit {
  background-color: #2b1d60; /* 非常に濃い紫 */
  color: #ffffff;
  border: none;
  padding: 18px 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.3s;
  width: 320px;
}

.btn-reset {
  background-color: #cbbbd6; /* 薄いグレー紫 */
  color: #ffffff;
  border: none;
  padding: 18px 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.3s;
  width: 160px;
}

.btn-submit:hover, .btn-reset:hover {
  opacity: 0.8;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .contact__badges { flex-direction: column; align-items: stretch; gap: 10px; }
  .contact__badges .badge { text-align: center; }
  
  .form-group { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0;}
  .form-label { flex: none; width: 100%; }
  .form-control-wrap { width: 100%; }
  
  .radio-group { flex-direction: column; gap: 15px; }
  
  .form-actions { flex-direction: column; }
  .btn-submit, .btn-reset { width: 100%; }
}
/* --- 個人情報の取り扱い --- */
.privacy-section {
  margin: 50px 0;
  border: 1px solid #dcdcdc; /* 全体に合わせた落ち着いた枠線 */
  border-radius: 6px;
  overflow: hidden; /* 角丸からはみ出ないようにする */
}

.privacy-header {
  background-color: #f2edf5; /* フォームに馴染む薄い紫背景 */
  padding: 15px;
  color: #4a3c74; /* サイト共通の濃い紫 */
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dcdcdc;
}

.privacy-header .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px; height: 18px;
  background-color: #4a3c74; /* 濃い紫のアイコン */
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: normal;
}

.privacy-scrollbox {
  background-color: #ffffff;
  padding: 30px;
  height: 200px; /* 固定の高さ。これを超えるとスクロールバーが出る */
  overflow-y: auto; /* 縦スクロール可能にする */
  font-size: 12px;
  line-height: 2;
  color: #555;
}

.privacy-scrollbox p {
  margin-bottom: 15px;
}
.privacy-scrollbox p:last-child {
  margin-bottom: 0;
}

/* スクロールバーの装飾（紫色に統一） */
.privacy-scrollbox::-webkit-scrollbar { width: 6px; }
.privacy-scrollbox::-webkit-scrollbar-track { background: #f0f0f0; }
.privacy-scrollbox::-webkit-scrollbar-thumb { background: #c4a7e7; border-radius: 3px; }