/* style.css の最初の方 */
body {
  margin: 0;
  font-family: 'Zen Maru Gothic', serif;
  background-color: #E3D3CD;
  color: #333;
  padding-top: 120px; 
  -webkit-font-smoothing: antialiased;
  /* overflow: hidden; は消してください */
}

#page-content {
  display: none; /* 最初は消しておく */
  opacity: 1;    /* 透明度は1に戻す */
  height: auto;  /* 高さも自動に戻す */
}

/* JSでこのクラスを外すと、通常の表示に戻るようにします */
.is-visible {
  display: block !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

/* 最上部のヘッダー */

.page-header {
  background: #ffffff;
  padding: 60px 40px;       /* 上下の白い余白をたっぷり確保 */
  border-radius: 20px;      /* 他のセクションと合わせた角丸 */
  box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* 柔らかい影 */
  
  max-width: 900px;         /* 枠が広がりすぎないように制限（お好みで） */
  margin: 40px auto;        /* 画面中央に配置し、上下に隙間を作る */
  text-align: center;       /* 中の文字を中央寄せ */
}

.page-title {
  background: none;         /* タイトル単体の背景は不要になるので消す */
  box-shadow: none;
  padding: 0;
  margin-bottom: 20px;      /* サブタイトルとの間隔 */
  
  font-size: 35px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.1em;
}

/* キャッチ */
.page-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
}
.page-nav {
  margin-bottom: 32px;
}

.page-location {
  margin-top: 28px;
  font-size: 14px;
  color: #888;
}

.page-nav a {
  margin: 0 16px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.page-nav a:hover {
  color: #4f46e5;
}

/* ヘッダーの余白 */
header h1 {
  margin: 50;
  font-size: 28px;
  letter-spacing: 2px;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 48px;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

section h2 {
  margin-top: 0;
  font-size: 24px;
  margin-bottom: 32px;
  text-align: center;
  border-left: none;
  padding-left: 0;
  position: relative;
  padding-bottom: 15px;
}

/* 見出しの下に短い中央線を入れる */
section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;      /* 線の長さ */
  height: 3px;      /* 線の太さ */
  background-color: #E3D3CD; /* 既存の青色 */
  border-radius: 2px;
}
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

p {
  line-height: 1.8;
  font-size: 16px;
}

.hero {
  text-align: center;
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, #E3D3CD, #E3D3CD);
  color: #ffffff;
  border-radius: 0 0 40px 40px;
  margin-bottom: 60px;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  background: #ffffff;
  color: #4f46e5;
  border-radius: 9999px;
  font-weight: bold;
  text-decoration: none;
}


.price-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.plan {
  background: #f5f3f3;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.plan h3 {
  margin-top: 0;
}

.price {
  font-size: 28px;
  font-weight: bold;
  margin: 16px 0;
  color: #4f46e5;
}

.site-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

.logo-area {
  text-align: center;
  margin-bottom: 1px;
}

.logo-area img {
  width: 80px;
  margin-bottom: 50px;
}

.site-logo img {
  height: 50px;   
}

.site-header {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ヘッダーロゴの大きさ */
.header-logo {
  height: 56px;
  width: auto;
}

/* スマホ用のヘッダー */
@media (max-width: 768px) {

  /* スマホ用最上部ヘッダー */
body {
    padding-top: 70px !important; /* 数値を少し減らして上に詰める */
  }

  .page-header {
    margin-top: 0 !important;   /* 上のマージンをゼロに */
    padding-top: 15px !important; /* 看板内の上の余白を詰める */
    padding-bottom: 25px !important;
    margin-bottom: 20px !important;
  }


.page-title {
    font-size: 22px;        /* 1行に収まる絶妙なサイズ。17px〜19pxで調整。 */
    white-space: nowrap;    /* 絶対に改行させない指定 */
    letter-spacing: 0.02em; /* 文字間隔を少し詰めると1行に入りやすくなります */
    display: block;         /* inline-blockから変更して横幅いっぱいを使えるように */
    width: 100%;
    text-align: center;
  }


.page-subtitle {
    font-size: 12px;        /* タイトルに合わせて少し小さく */
    margin-top: 10px;
  }


.site-header {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  z-index: 9999;
}

.header-logo {
  height: 50px;            /* 60pxから少し小さくするとバランスが良いです */
  width: auto;
}
  

.header-inner {
  display: flex;
  justify-content: center; /* 全体を中央寄せ */
  gap: 15px;               /* ロゴとボタンの間の距離（お好みで調整） */
  padding: 10px 12px;
}

.header-actions {
  flex-direction: column;  /* ボタンを縦並びにする */
  justify-content: center;
  gap: 4px;                /* ボタン同士の隙間 */
}

  .page-nav {
    margin-bottom: 24px;
  }

  .page-nav a {
    margin: 0 10px;
    font-size: 13px;
  }

.header-btn {
  width: 100px;            /* 少し横幅を詰めるとより中央に寄って見えます */
  height: 32px;
  font-size: 11px;
}

  .swiper-button-prev,
  .swiper-button-next {
    width: 28px;
    height: 28px;
  }

    .slider-area {
    max-width: 100%;
    margin: 0 auto 40px;
  }

  .slider-swiper {
    padding: 0 12px;   /* 余白を縮める */
  }

  .swiper-slide img {
    max-width: 100%;   /* ← ここ超重要 */
    max-height: 240px;
  }

  
}

/* ヘッダー文字のレイアウト */
.header-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 25px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ヘッダーボタンレイアウト */
/* メイン（体験レッスン） */
.header-btn.primary {
  background: #d6b25e;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* サブ（お問い合わせ） */
.header-btn.secondary {
  background: #fff;
  color: #555;
  border: 1px solid #ddd;
}

/* 押した感 */
.header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}


.logo-area h1 {
  font-size: 28px;
  letter-spacing: 2px;
}

.classroom-photo {
  text-align: center;
  margin: 40px 0 60px;
  overflow: hidden;
}

.classroom-photo img {
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* スライド写真設定 */
/* 全体の幅を細く */
.slider-area {
  max-width: 900px;
  margin: 0 auto 60px;
}

/* Swiper本体 */
.slider-swiper {
  position: relative;
  padding: 0 56px; /* ← 矢印の分の余白（重要） */
}

/* 画像を確実に中央に */
.slider-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-swiper .swiper-slide img {
  display: block;
  margin: 0 auto;
  max-width: 80%;
  max-height: 300px;
  object-fit: contain;
}

/* 矢印を画像の横（左右中央）に固定 */
.slider-swiper .swiper-button-prev,
.slider-swiper .swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  color: #666;
}

/* ドット */
.slider-swiper .swiper-pagination {
  position: static;
  margin-top: 24px;
  text-align: center;
}



.message, .philosophy {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.message {
  margin-bottom: 50px;
}

.message p, .philosophy p {
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

.philosophy {
  text-align: center;
}

/* 理念セクション内の各項目の余白を調整 */
.philosophy-item {
  margin-bottom: 40px;
}

.philosophy-item h3 {
  font-size: 20px;
  color: #060606; /* 既存のテーマカラーに合わせました */
  margin-bottom: 8px;
}

.philosophy-item p {
  margin-top: 0;
}

.profile {
  margin-top: 60px;
}

.profile-box {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-text {
  flex: 1;
  min-width: 260px;
}

.profile-photo {
  flex: 1;
  min-width: 240px;
  text-align: center;
}

.profile-photo img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-box {
  background: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  border-left: 6px solid #E3D3CD;
}

.event-date {
  font-weight: bold;
  color: #666;
}

.map-box {
  width: 90%;          /* 画面幅に対するサイズ（お好みで調整） */
  max-width: 800px;    /* 大きくなりすぎないように制限 */
  margin: 20px auto 0; /* 上20px、左右中央(auto)、下0 */
  
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-box iframe {
  width: 100% !important;
  height: 450px; /* 高さを指定 */
  border: 0;
}

.contact {
  text-align: center;
}

.address {
  font-size: 16px;
  line-height: 1.8;
  margin: 20px 0;
}

.sns-box {
  margin-top: 30px;
}

.sns-btn {
  display: inline-block;
  margin: 10px;
  padding: 16px 36px;
  font-weight: bold;
  border-radius: 9999px;
  text-decoration: none;
  color: #fff;
}

.sns-btn.line {
  background: #06c755;
}

.sns-btn.insta {
  background: #e1306c;
}

@keyframes fadeZoom {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* ローダースタイル（最後に置くこと） */
#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 1s ease;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ロゴアニメーション */
#loader-logo {
  width: 10px;
  transform: scale(0.85);
  opacity: 0;
  animation: loaderZoom 1s ease-in-out forwards;
}

@keyframes loaderZoom {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 非表示クラス（JSで付与） */
#loader.loader-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 最初に開いた時のロゴの大きさ */
#loader img {
  width: 700px;  
}

/* ページ内容が見えているときの保険（loaderが無くなれば効く） */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*以下plans.html */

.plans-section {
  padding: 40px 20px;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.plan-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}

.plan-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.plan-card ul {
  padding-left: 20px;
}

.plan-card li {
  margin-bottom: 8px;
}

.note {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
}

/* ポップアップの背景（暗くなる部分） */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); /* 背景をぼかすとおしゃれです */
}

/* ポップアップの中身 */
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 30px;
  border-radius: 20px;
  width: 85%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
}

/* クリックを促すテキスト */
.detail-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #020202;
  text-decoration: underline;
}

.plan { cursor: pointer; transition: transform 0.2s; }
.plan:active { transform: scale(0.98); } /* タッチした時の反応 */

.course-btn, 
.course-btn:focus, 
.course-btn:active,
button:focus,
a:focus {
    outline: none !important;
    box-shadow: none !important; /* 影が残る場合も消す */
}

/* 2. スマホでタップした時に一瞬出る青い背景色を消す */
.course-btn,
a,
button {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* 3. マウスを離した後（hover解除後）の状態をリセットする */
.course-btn:focus-visible {
    outline: none !important;
}

.detail-btn, 
.plan,
.plan h3,
.plan p {
    outline: none !important;
    user-select: none; /* 文字が青く選択されるのを防ぐ */
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important; /* タップ時の色を透明に */
    -webkit-tap-highlight-color: transparent !important;
}

/* フォーカスが残らないように強制解除 */
.detail-btn:focus,
.plan:focus {
    outline: none !important;
    background: transparent !important;
}

/* コンサートのCSS */
.concert-info {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  padding: 0 20px;
}

.concert-content {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* 地図と合わせた影 */
}

/* チラシ画像の設定 */
.flyer-box img {
  width: 100%;
  max-width: 500px; /* チラシが大きすぎないように調整 */
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* チケットボタンのデザイン */
.btn-ticket {
  display: inline-block;
  background: #e67e22; /* 目立つオレンジ系（お好みで） */
  color: #fff;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}

.btn-ticket:hover {
  background: #d35400;
  transform: translateY(-3px); /* 浮き上がるアニメーション */
  color: #fff;
}

.concert-info {
  width: 90%;
  max-width: 800px; /* 地図の max-width と合わせると綺麗です */
  margin: 40px auto;
  text-align: center;
}

.concert-content {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* チラシを縦に並べる設定 */
.flyer-vertical-list {
  display: flex;
  flex-direction: column; /* 縦方向に並べる */
  align-items: center;    /* 中央寄せ */
  gap: 20px;             /* チラシ間の隙間 */
  margin-bottom: 30px;
}

.flyer-item {
  width: 100%;
  max-width: 500px;       /* スマホで大きすぎないように制限 */
}

.flyer-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* チケットエリア */
.ticket-text {
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.btn-ticket {
  display: inline-block;
  width: 100%;            /* スマホで押しやすいように横いっぱいに */
  max-width: 300px;       /* でも広がりすぎないように */
  background: #e67e22;
  color: #fff;
  padding: 18px 0;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
}


/* FAQ全体のスタイル */
.faq-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: "Zen Maru Gothic", sans-serif;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    color: #c8a89c; /* 教室のイメージカラー */
    font-size: 2rem;
    margin-bottom: 10px;
}

/* カテゴリ見出し */
.category-title {
    background: #fdf5f2;
    padding: 12px 20px;
    border-left: 5px solid #c8a89c;
    margin: 45px 0 20px;
    font-size: 1.25rem;
    color: #555;
}

/* 質問項目 */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.faq-question {
    cursor: pointer;
    position: relative;
    padding: 15px 40px 15px 0;
    margin: 0;
    font-weight: bold;
    color: #444;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #c8a89c;
}

.faq-question::before {
    content: "Q. ";
    color: #c8a89c;
}

/* 開閉アイコン (+) */
.faq-question::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c8a89c;
    font-size: 1.4rem;
    font-weight: normal;
}

/* 開いた時のマイナスアイコン (-) */
.faq-item.active .faq-question::after {
    content: "−";
}

/* 回答部分（アニメーション） */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    opacity: 0;
    background: #fafafa;
    border-radius: 8px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* 内容に応じて調整 */
    opacity: 1;
    padding: 20px;
    margin: 10px 0 20px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.faq-answer::before {
    content: "A. ";
    font-weight: bold;
    color: #c8a89c;
    float: left;
    margin-right: 5px;
}