/* ベース設定 */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #fffaf5;
  color: #333;
  line-height: 1.6;
  font-family: 'Noto Serif JP', 'Yu Gothic', serif;
}
body {
  margin: 0;
  background-color: #fffaf5;
  color: #333;
  line-height: 1.6;
  font-family: 'Noto Serif JP', 'Yu Gothic', serif;
  position: relative; /* 擬似要素のために必要 */
  z-index: 0;
}

/* 全体背景画像（半透明） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../img/hiranaga_50yoko_500.jpg'); /* お好みの画像に変更可能 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2; /* 透過度の調整（0.1〜0.4程度が推奨） */
  z-index: -1; /* コンテンツの背面に配置 */
  pointer-events: none; /* 背景画像がクリックなどの操作に干渉しないように */
}
.gallery {
  position: relative; /* 擬似要素のために必要 */
  padding: 60px 20px;
  text-align: center;
  background-color: transparent; /* 背景色を透明にする（必要に応じて調整） */
  z-index: 0;
}

/* 擬似要素で背景画像を追加 */
.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/hiranaga_50yoko_500.jpg'); /* お好みの画像に変更可能 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2; /* 透過度の調整 */
  z-index: -1;
  pointer-events: none;
}
.about-me {
  position: relative; /* 擬似要素のために必要 */
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background-color: transparent; /* 背景色を透明にする */
  z-index: 0;
}

/* 擬似要素で背景画像を追加 */
.about-me::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/hiranaga_50yoko_500.jpg'); /* お好みの画像に変更可能 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2; /* 透過度の調整（0.1〜0.3が推奨） */
  z-index: -1;
  pointer-events: none;
}

/* 見出しとロゴ */
h1, h2, .logo {
  font-family: 'Georgia', serif; /* Bulgari を汎用 serif に変更 */
}

/* ナビゲーション */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: #4b3f2f;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #b48b5f;
}

/* ファーストビュー */
.hero {
  background-image: url('../img/yoko_0901.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* セクション背景（限定適用） */
.section-bg {
  position: relative;
  background-image: url("../img/hiranaga_50yoko_500.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 1;
  pointer-events: none;
}

.section-bg > * {
  position: relative;
  z-index: 2;
}

/* ギャラリーセクション */
.gallery {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.gallery h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #e5410e;
  letter-spacing: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Aboutセクション */
.about-me {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f0f0f0;
}

.about-content {
  max-width: 700px;
  text-align: left;
}

.about-me h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #f34624;
  letter-spacing: 2px;
}

.about-content ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #f34624;
}

.about-content li {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* メッセージセクション（統合） */
.message-box {
  background-color: #fdf6f0;
  border: 2px solid #e0cfc2;
  border-radius: 10px;
  padding: 30px;
  margin: 60px auto;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  color: #4b3f2f; /* コントラスト改善 */
  background-image: none !important;
}

.message-box h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
  color: #8b5e3c;
  letter-spacing: 1px;
}

.message-box p {
  font-size: 1em;
  text-align: justify;
}

/* 個別メッセージセクション：ブロック自体は中央配置、内部テキストは左揃え */
.message-to-junior,
.message-to-web11 {
  margin: 60px auto;
  max-width: 800px;
  padding: 30px;
  background-color: #fdf6f0;
  border: 2px solid #e0cfc2;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #4b3f2f;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  text-align: left; /* 内部テキストを左揃えにする */
  position: relative; /* 擬似要素を使うために relative に設定 */
  --message-bg: url("../img/hiranaga_50yoko_500.jpg"); /* デフォルト背景画像（必要に応じて上書き可） */
}

.message-to-junior h3,
.message-to-web11 h3 {
  margin-top: 0;
  color: #8b5e3c;
  text-align: left; /* 見出しも左揃え */
}

.message-to-junior p,
.message-to-web11 p {
  font-size: 1em;
  text-align: left; /* 段落は左揃えで揃える（必要なら justify に戻す） */
}

/* 背景画像（半透明）を擬似要素で追加してテキストの可読性を確保 */
.message-to-junior::before,
.message-to-web11::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--message-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25; /* 画像の透過度を調整 */
  z-index: 0;
  pointer-events: none;
}

.message-to-junior::after,
.message-to-web11::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255,255,255,0.5); /* 画像の上に半透明のオーバーレイを置き、文字を読みやすくする */
  z-index: 1;
  pointer-events: none;
}

/* セクション内の要素を前面に出す */
.message-to-junior > *,
.message-to-web11 > * {
  position: relative;
  z-index: 2;
}
.message-to-teachers {
  margin: 60px auto;
  max-width: 800px;
  padding: 30px;
  background-color: #fdf6f0;
  border: 2px solid #e0cfc2;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #4b3f2f;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  text-align: left;
  position: relative;
}

.message-to-teachers::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/hiranaga_50yoko_500.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.message-to-teachers::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255,255,255,0.5);
  z-index: 1;
  pointer-events: none;
}

.message-to-teachers > * {
  position: relative;
  z-index: 2;
}

.message-to-teachers h3 {
  margin-top: 0;
  color: #8b5e3c;
  text-align: left;
}


/* フッター */
.site-footer {
  background-color: #000000;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9em;
}

.site-footer a {
  color: #b5ebb5;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-content p {
  margin: 8px 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .about-content {
    padding: 0 10px;
  }

  .message-box {
    padding: 20px;
    margin: 40px 10px;
  }
}
.cute-font {
  font-family: 'Yusei Magic',sans-serif;
  font-size: 1.2em;
  color: #f34624;
  background-color: #fff0f5; /* ほんのりピンク背景 */
  padding: 10px 15px;
  border-radius: 10px;
  display: inline-block;
}
