/* ============================
   ヘッダー
============================ */
body {
    font-family: "M PLUS Rounded 1c", "Yu Gothic", sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: transparent !important;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
}

.fv-subtitle {
    font-size: 42px; /* ← 2倍の大きさ */
    color: #003366;
    margin-bottom: 10px;
    text-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.fv-subtitle .accent {
    color: #b44ba0; /* 落ち着いた赤紫 */
}

.logo {
    display: flex;
    flex-direction:column;
    align-items: flex-start;
    gap: 2px;
}

.logo img {
    height: 38px;
}

.logo .branch {
    margin-top: 4px;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #0066cc;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #222;
}

/* ============================
   ファーストビュー
============================ */
.fv-copy {
    font-size: 26px;   /* ← 少し大きくして存在感UP */
    line-height: 1.8;
    color: #003366;
    margin-top: 25px;
    text-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.fv h1{
    color: #002244;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.contact-tel {
    font-size: 18px;
    color: #003366;
    margin-top: 5px;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(0,0,0,0.25);
}

.fv p {
    color: #003366;
	text-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.btn {
    background: #ff9900;
    padding: 10px 20px;
    color: #222;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* トップページの制作風景写真（サイズ調整） */
.top-photo {
    max-width: 900px;   /* ← 写真の最大幅を制限 */
    margin: 40px auto;
    padding: 0 20px;
}

.top-photo img {
    width: 100%;        /* ← 親要素の中でだけ100%に広がる */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ============================
   セクション共通
============================ */
section {
    padding: 20px 30px;
    text-align: center;
}

.features h2,
.gallery h2,
.voices-top h2,
.trial h2 {
    color: #002244;
	text-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

/* 教室のポリシー */
.policy {
    padding: 50px 20px 30px;
    text-align: center;
}

.policy-text {
    font-size: 18px;
    line-height: 1.9;
    color: #003366;
    text-shadow: 0 0 4px rgba(0,0,0,0.15);
}

/* ファーストビュー直下の余白を狭くする */
.features {
    padding-top: 25px; /* ← ここを調整すると行間が変わる */
}

/* ============================
   教室の特徴
============================ */
.feature-box {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.feature {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
}

/* ============================
   ギャラリー
============================ */
.gallery-box {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gallery-box img {
    width: 30%;
    border-radius: 8px;
}

.more {
    display: inline-block;
    margin-top: 20px;
    color: #111;
    font-weight: bold;
}

/* ============================
   トップページ：生徒さんの声（アイコン付き）
============================ */
.voice-card {
    color: #003366;
	background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.voice-icon img {
    width: 60px;
    height: 60px;
    border-radius: 10%;
    object-fit: cover;
}

.voice-text h3 {
    margin-bottom: 8px;
    color: #333;
}

.voice-text p {
    color: #003366;
    margin: 0;
    line-height: 1.7;
}

/* ============================
   トップページ：文字に薄い影（決定版）
============================ */

/* セクション見出し（h2） */
.trial h2 {
    color: #003366;
	text-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

.features h2,
.gallery h2,
.voices-top h2{
    color: #002244;
	text-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

/* 口コミカード内の文字 */
.voice-card h3,
.voice-card p {
    color: #003366;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

/* ============================
   体験レッスン
============================ */
.trial p {
    color: #003366;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.85);
}

/* ============================
   フッター
============================ */
footer {
    background: transparent !important;
    color: #fff;
    padding: 20px;
}

/* ============================
   口コミページ（voices.html）
============================ */
/* ▼ ページ共通背景（他ページと統一） */
.page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px;
    position: relative;
}

.page > * {
    position: relative;
    z-index: 1;
}

/* ▼ ページタイトル（他ページと統一） */
.page-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #002244;
}

/* ▼ 口コミブロック */
.voice-item {
    word-break: break-word;
    overflow-wrap: break-word;
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.voice-item h2 {
    margin-bottom: 10px;
    color: #002244;
}

.voice-item p {
    margin: 5px 0;
    color: #003366;
}

.voice-item-title {
    font-family: "Rounded Mplus 1c", "Hiragino Maru Gothic ProN", sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: #003366;
    margin-bottom: 6px;
}

.wood-title {
    display: inline-block;
    padding: 18px 40px;
    background-image: url('../images/wood.jpg');
    background-size: cover;
    background-position: center;
    border: 4px solid #8b5a2b;
    border-radius: 10px;
    font-family: "M PLUS Rounded 1c", "Yu Gothic", sans-serif;
    color: #3a2a1a;
    font-size: 30px;
    text-shadow: 0 0 3px rgba(255,255,255,0.5);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    margin: 0 auto 30px;
}

/* ▼ スマホ調整 */
@media (max-width: 600px) {
    .page::before {
        top: 10px;
    }

    .page {
        padding: 0 12px 20px;
        text-align: center;

    }

    .page-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
}

/* ============================
   教室について（about.html）
============================ */
.about {
    padding: 40px 20px;
    text-align: center;
}

.about-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.about-item {
    background: rgba(255,255,255,0.75);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.about-item h3 {
    color: #003366;
    margin-bottom: 10px;
}

.about-item p {
    color: #003366;
    margin: 4px 0;
    line-height: 1.7;
}

/* ============================
   about.html 見出し（木の板フレーム）
============================ */
.wood-title {
    display: inline-block;
    padding: 18px 40px;
    background-image: url('../images/wood.jpg'); /* ← たーくんの木目画像 */
    background-size: cover;
    background-position: center;
    border: 4px solid #8b5a2b; /* 木枠の濃い色 */
    border-radius: 10px;
    color: #3a2a1a; /* 木に馴染む濃いブラウン */
    font-size: 30px;
    text-shadow: 0 0 3px rgba(255,255,255,0.5);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    margin: 0 auto 30px;
    text-align: center;

}

/* ============================
   about.html 制作風景ギャラリー
============================ */
.about-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.about-gallery img {
    width: calc(33.333% - 20px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* スマホ（768px以下）は縦並びに */
@media (max-width: 768px) {
    .about-gallery img {
        width: 100%;
    }
}

/* ============================
   about.html 制作風景ギャラリー（小さめ版）
============================ */
.about-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 40px 0;
}

.about-photos img {
    width: 180px;      /* ← さらに小さくしたサイズ */
    height: 130px;     /* ← 横長に整える */
    object-fit: cover; /* ← 中央でトリミングして綺麗に見せる */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* スマホ（2列表示） */
@media (max-width: 768px) {
    .about-photos img {
        width: 45%;     /* ← 2列で綺麗に並ぶ */
        height: 120px;
    }
}

.scroll-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.scroll-dots span {
    width: 8px;
    height: 8px;
    background: #003366;
    border-radius: 50%;
    animation: dotMove 1.4s infinite;
    opacity: 0.7;
}

.scroll-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotMove {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 0.7; }
}

/* ============================
   index.html トップ写真
============================ */
.top-photo {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.trial-photos img {
    width: 250px;
    height: 180px;   /* ← 横長にするための高さを固定 */
    object-fit: cover;  /* ← 画像を中央でトリミングして横長に */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* タイトルの木の板 */
.page-title-board {
    background: url('../images/wood.jpg') center/cover no-repeat;
    padding: 32px 16px;
    text-align: center;
    margin: 40px 0 24px;
}

.page-title-board h1 {
    font-family: "M PLUS Rounded 1c", "Yu Gothic", sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #5a3e1b;
    margin: 0;
}

/* イントロ */
.trial-intro ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.trial-intro li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 写真3枚のギャラリー */
.trial-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.trial-photos img {
    width: calc(33.333% - 20px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .trial-photos img {
        width: 100%;
        height: 220px;  /* ← スマホ用に少し高さを調整 */
    }
}

/* ============================
   trial.html 体験レッスン
============================ */
/* 写真3枚のギャラリー（trial.html） */
.trial-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.trial-photos img {
    width: 250px;      /* ← PCではこのサイズで固定 */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* スマホ（768px以下）は縦並びで幅100% */
@media (max-width: 768px) {
    .trial-photos img {
        width: 100%;
    }
}

/* 体験レッスンの流れ（番号のズレ修正） */
.lesson-flow {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: rgba(255,255,255,0.85);
}

.lesson-flow th,
.lesson-flow td {
    border: 1px solid #ccc;
    padding: 12px;
    vertical-align: top;
}

.lesson-flow th {
    width: 30%;
    background: #f0f8ff;
    color: #003366;
    font-weight: bold;
}

.lesson-flow tr:nth-child(even) td {
    background: rgba(0,0,0,0.03);
}

.lesson-flow .note {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
}

/* 表 */
/* 所要時間・料金・持ち物（中央寄せ＋グリッド線） */
.trial-info table {
    width: 80%;
    max-width: 500px;
    margin: 20px auto;
    border-collapse: collapse;
    text-align: center; /* ← 中央寄せ */
}

.trial-info th,
.trial-info td {
    border: 1px solid #ccc; /* ← グリッド線 */
    padding: 10px;
    font-size: 1rem;
}

.trial-info th {
    background: #f7f3e9; /* ← 優しい背景色（木の板と相性◎） */
    width: 40%;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
}

/* 申込みボタン */
.contact-btn {
    display: block;
    margin: 15px auto;
    padding: 15px;
    width: 260px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
}

.contact-btn.tel { background: #d46a6a; }
.contact-btn.mail { background: #6a8bd4; }
.contact-btn.line { background: #4caf50; }
.contact-btn.form { background: #8c6ad4; }

/* ============================
   trial.html 写真ギャラリー
============================ */
.trial-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

/* スマホ（基本）体験レッスン*/
.trial-photos figure {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.trial-photos figcaption {
    font-size: 1rem;
    font-weight: 600;
    color: #4a3b2a; /* やさしい茶色 */
    margin-bottom: 8px;
}

/* 写真を横長に整える（縦長の間延びを解消） */
.trial-photos img {
    width: 250px;
    height: 180px;      /* ← 横長に見せるための高さ */
    object-fit: cover;  /* ← 中央でトリミングして美しく表示 */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .trial-photos img {
        width: 100%;
        height: 220px;  /* ← スマホでは少し高さを増やすと綺麗 */
    }

    /* 全体の並びをリセット */
    .trial-photos {
        display: flex;
        flex-direction: column; /* ← まず縦に並べる */
        align-items: center;
        gap: 30px;
    }

    /* 1枚目（制作風景）を中央に大きめ表示 */
    .trial-photos figure:first-child {
        width: 60%; /* 好みで調整：50〜70% */
    }

    /* 2枚目と3枚目を横並びにする */
    .trial-photos figure:nth-child(2),
    .trial-photos figure:nth-child(3) {
        width: 30%; /* 横並びにちょうど良い幅 */
    }

    /* 2枚目＋3枚目を横並びにまとめる */
    .trial-photos {
        flex-wrap: wrap;
    }

    .trial-photos figure:nth-child(2),
    .trial-photos figure:nth-child(3) {
        display: inline-block;
        margin: 0 10px;
    }

    .trial-photos figure img {
        width: 100%;
        height: auto;
        max-width: 360px;   /* ← これが重要！画像の伸びすぎを防ぐ */
        margin: 0 auto;
        display: block;
    }
}

/* teacher.css */

/* ベース */
* {
  box-sizing: border-box;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* 見出し */
h1, h2 {
  color: #003366;
  margin: 0 0 12px;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.3rem;
  border-left: 4px solid #cc9966;
  padding-left: 8px;
}

/* 講師ヘッダー */
.teacher-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  background: #f9f3e8;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.teacher-photo {
  flex: 1 1 260px;
}

.teacher-photo img {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.teacher-intro {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 420px; /* ← 高さを制限する */
  object-fit: cover; /* ← はみ出す部分は自然にトリミング */
}

.teacher-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 4px 0;
}

.teacher-role {
  margin: 0 0 16px;
  color: #335577;
}

/* SNS */
.teacher-sns ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.teacher-sns li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.teacher-sns a {
  color: #0055aa;
  text-decoration: none;
}

.teacher-sns a:hover {
  text-decoration: underline;
}

.sns-label {
  font-weight: 600;
}

.sns-note {
  color: #666;
  font-size: 0.9rem;
}

/* セクション共通 */
section {
  margin-bottom: 32px;
}

.teacher-profile p,
.teacher-process p,
.teacher-message p,
.teacher-cta p {
  margin: 0 0 12px;
}

.teacher-birthplace {
  font-size: 1rem;
  margin-top: 4px;
  color: #333;
}

/* ギャラリー */
.teacher-gallery {
  background: #f9f3e8;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-main figure,
.gallery-grid figure {
  margin: 0;
}

.gallery-main img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.gallery-main figcaption {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #555;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-grid figure {
  width: calc(33.333% - 16px);
  min-width: 180px;
  height: 220px;        /* ← 枠の高さを固定（重要） */
  overflow: hidden;     /* ← はみ出しを完全に防ぐ（超重要） */
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-grid figcaption {
  margin-top: 4px;
  font-size: 0.9rem;
  text-align: center;
  color: #555;
}

/* 制作風景 */
.teacher-process {
  background: #fdf7ee;
  border-radius: 12px;
  padding: 16px;
}

.process-photo img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 12px;
  max-height: 420px; /* ← 高さを制限する */
  object-fit: cover; /* ← はみ出す部分は自然にトリミング */
}

/* 賞歴 */
.teacher-awards ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.teacher-awards li {
  margin-bottom: 4px;
}

/* メッセージ */
.teacher-message {
  background: #f9f3e8;
  border-radius: 12px;
  padding: 16px;
}

/* CTA */
.teacher-cta {
  text-align: center;
  background: #fdf7ee;
  border-radius: 12px;
  padding: 20px 16px 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.teacher-cta .cta-text {
  font-weight: 600;
  color: #003366;
}

.cta-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #cc9966;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.cta-button:hover {
  background: #b88352;
}

@media (max-width: 720px) {
  .gallery-grid figure {
    width: calc(50% - 16px); /* スマホでは2列 */
  }
}

@media (max-width: 480px) {
  .gallery-grid figure {
    width: 100%; /* さらに小さい画面では1列 */
  }
  .page {
    text-align: center;
  }
}

/* レスポンシブ */
@media (max-width: 720px) {
  .page {
    padding: 16px 12px 32px;
    text-align: center;
  }

  .teacher-hero {
    padding: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .teacher-name {
    font-size: 1.2rem;
  }
	
  .teacher-awards h3 {
	margin-top: 16px;
	color: #003366;
  }

}

/* スマホ用ヘッダー調整（メニューを横に収める） */
@media (max-width: 600px) {
    nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    nav ul li a {
        font-size: 0.6rem;   /* ← ここを少し小さくするのが決め手 */
        padding: 4px 6px;
    }

    .logo img {
        height: 34px;
    }

    .page {
        text-align: center;
    }

}

/* ============================
   ページ背景（紙テクスチャーを見せる）
============================ */
.page {
    background: rgba(255,255,255,0.0);
    padding: 24px 16px;
    border-radius: 8px; /* ← 角を少し丸くすると紙の上に置いた感じになる */
}

.page {
    background: transparent !important;
    text-align: center;
}

.voice-box {
    background: rgba(255, 255, 255, 0.75); /* 背景が透ける */
    border: 1px solid #ddd;                /* 枠線 */
    border-radius: 12px;                   /* 角丸 */
    padding: 16px;                         /* 内側余白 */
    margin-bottom: 20px;                   /* コメント同士の間隔 */
    backdrop-filter: blur(2px);            /* 背景をほんのりぼかす */
}

.voice-item {
    background: none !important;
}

.content {
    background: transparent;
}

.voice-item {
    background: transparent !important;
    padding: 0;
    margin: 0 0 20px 0;
}

/* ============================
   全体背景
============================ */
body {
    margin: 0;
    line-height: 1.7;
    color: #002244;
    background-color: transparent !important; /* 背景を完全に透明にする */
    background-image: url('../images/paper_texture.jpg');
    background-size: cover;        /*   */
    background-repeat: repeat-y;  /* 縦報告に繰り返す */
    background-attachment: fixed;  /* スクロールしても固定 */
    background-position: 50% 10%;   /* 中央に配置 */
}

@media (max-width: 600px){
    body {
        background: url("../images/paper_texture-vertical.jpg") center/cover no-repeat fixed;
        background-size: cover;        /*   */
        background-repeat: repeat-y;  /* 縦報告に繰り返す */
        background-attachment: fixed;  /* スクロールしても固定 */
        background-position: 50% 10%;   /* 中央に配置 */
    }
}

nav {
    background: transparent !important;
}

html {
    background: transparent !important;
}

.voice-box {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
}

.fv-subtitle,
.fv-subtitle .accent {
    font-family: "M PLUS Rounded 1c", "Yu Gothic", sans-serif;
}

.accent {
    font-weight: 500; /* ← 丸ゴの丸さを保つ */
}

/* サイト全体のフォントを丸ゴに統一 */
body, h1, h2, h3, h4, h5, p, li, table, th, td {
    font-family: "M PLUS Rounded 1c", "Yu Gothic", sans-serif;
}

.wood-title,
.about-heading {
    font-family: "M PLUS Rounded 1c", "Yu Gothic", sans-serif;
}

/* ギャラリー全体 */
.gallery-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* タイトル */
.gallery-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  letter-spacing: 0.05em;
}

/* カテゴリ見出し */
.gallery-category {
  font-size: 1.6rem;
  margin: 40px 0 20px;
  padding-left: 10px;
  border-left: 6px solid #c49a6c; /* 木の板の雰囲気に合う色 */
  color: #444;
}

/* グリッドレイアウト */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* 作品枠（正方形） */
.gallery-image-frame {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形を維持 */
  background: #fff; /* 余白（額縁） */
  border: 1px solid #ddd;
  padding: 10px; /* 額縁の内側余白 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 画像（縦長・横長どちらでもOK） */
.gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 画像を切らずに収める */
}

/* キャプション */
.gallery-caption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

/* レスポンシブ（タブレット） */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* レスポンシブ（スマホ） */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.wood-title {
  display: inline-block;
  width: auto;
  padding: 20px 30px;
  background-image: url("../images/wood.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 8px;
  margin: 0 auto 30px;
  text-align: center;
}

.wood-title {
    display: inline-block;
    width: auto;
    padding: 18px 40px;
    background-image: url('../images/wood.jpg');
    background-size: cover;
    background-position: center;
    border: 4px solid #8b5a2b;
    border-radius: 10px;
    font-family: "M PLUS Rounded 1c", "Yu Gothic", sans-serif;
    color: #3a2a1a;
    font-size: 30px;
    text-shadow: 0 0 3px rgba(255,255,255,0.5);
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    margin: 0 auto 30px;
}

/* 強制改行 */
.wood-title::before {
  content: "";
  display: block;
}

.title-wrap {
  text-align: center; /* 中央寄せ */
  display: block;     /* 強制的に縦並び */
  margin-bottom: 20px;
}

.access-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.access-info h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  color: #333;
}

.map-wrap {
  margin: 40px 0;
}

.contact-box {
  text-align: center;
  margin-top: 40px;
}

.btn-trial {
  display: inline-block;
  padding: 12px 25px;
  background: #c49a6c;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.access-photo {
  width: 50%;
  max-width: 450px;
  border: 4px solid #8b5a2b;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  margin: 20px auto;
  display: block;
}

.access-map {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.link-list li {
    margin: 10px 0;
    font-size: 1.1rem;
}

.link-list a {
    color: #0066cc;
    text-decoration: none;
}

.link-list a:hover {
    text-decoration: underline;
}

#opening {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

#opening.fadeout {
    opacity: 0;
    pointer-events: none;
}

/* スマホ（基本） */
.gallery-box {
    display: block;   /* ← これが重要！ */
}

.gallery-box {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* スマホ（基本） */
.about-gallery {
    display: flex;
    flex-wrap: wrap;        /* ← 横に入りきらないとき折り返す */
    justify-content: center;/* ← 中央揃え */
    gap: 20px;              /* ← 画像の間隔 */
}

.about-gallery img {
    width: 22%;             /* ← 4枚並ぶ幅（20〜23%が最適） */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* ★ スマホ（基本）— 必ず最後に書く ★ */
#animation_container,
#canvas,
#dom_overlay_container {
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
}

/* ★ PC（768px以上） */
@media screen and (min-width: 768px) {

    #opening {
        height: auto;        /* ← これが重要 */
        padding-top: 60px;   /* ← 上に寄せる量を調整できる */
        padding-bottom: 0;
        display: flex;
        justify-content: flex-start; /* ← 上寄せ */
        align-items: center;
        flex-direction: column;
    }

    .gallery-box {
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    .gallery-box {
        width: 50%;
    }
}
@media screen and (min-width: 768px) {

    #animation_container {
        transform: scale(0.5);
        transform-origin: top center;
        margin: 0 auto;
    }

    #canvas,
    #dom_overlay_container {
        width: 100%;
        height: auto;
    }
}

/* ▼ 生徒さんの作品（3枚画像）を中央寄せにする */
.gallery-box {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.gallery-box img {
    display: block;
    max-width: 300px;
    height: auto;
}

.voices-top {
    text-align: center; /* セクション全体を中央寄せ */
}

.voice-card {
    display: flex;
    justify-content: center; /* アイコン＋テキストを中央寄せ */
    align-items: center;
    gap: 20px;
    margin: 20px auto; /* カード自体を中央に */
    max-width: 600px; /* 横幅を制限して整える */
}

.voices-top h2 {
    text-align: center;
}

.more-btn-wrap {
    text-align: center;
}
