/*
Theme Name: つむぎ
Description: やきり子育てカフェ つむぎの公式サイトテーマ
Version: 1.0
Author: つむぎ制作チーム
*/


/* Google Fontsの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* 全体のスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f8fbff;
  margin: 0;
}

a {
  text-decoration: none;
  color: #4CAF50; /* リンクをグリーンに変更 */
  transition: all 0.3s ease;
}

a:hover {
  color: #2e7d32; /* リンクホバーをダークグリーンに変更 */
}

/* フロートバナーを最初は非表示にする */
.float-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  width: fit-content;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.float-banner .btn-float {
  display: block;
  margin: 0 auto;
}

/* 表示状態のクラス */
.float-banner.show {
  opacity: 1;
  visibility: visible;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー全体をグリッドで2行構成に */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto; /* この行を追加 */
  grid-template-rows: auto auto; /* この行を変更 */
  align-items: center; /* この行を追加 */
  position: relative;
  padding-bottom: 10px;
}

/* 1行目／2行目をまたいで配置するロゴ */
.logo-wrapper {
  grid-column: 1 / 2; /* この行を追加 */
  grid-row: 1 / 3; /* この行を追加 */
  top: 0;
  left: 20px; /* ロゴを左寄せしたい場合は調整 */
  z-index: 10;
}

.logo-image {
  height: 80px; /* 必要に応じてロゴの高さを変更 */
  object-fit: contain;
}

/* 1行目：テキストロゴ（中央寄せ） */
.header-top {
  grid-column: 2 / 3; 
  grid-row: 1 / 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px; /* ロゴと重ならないように余白を調整 */
}

.site-logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

/* 2行目：ナビメニュー（中央寄せ） */
.main-nav {
  grid-column: 2 / 3; 
  grid-row: 2 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #ccc; /* 必要に応じて下線などを入れる */
  padding-top: 10px;
}

/* ナビリンクリスト */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #4CAF50; /* ホバー時の色 */
}

/* メニュートグルボタン（デスクトップでは非表示） */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4CAF50;
}

.menu-toggle.close i {
  color: #4CAF50;
}

/* ───────── ハンバーガーメニュー内 Instagram ───────── */
.nav-links .nav-instagram a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  color: #E1306C; /* Instagram のブランドカラーはそのまま */
  font-weight: 500;
}

.nav-links .nav-instagram a i {
  font-size: 1.8rem;
}

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

/* ───────── ハンバーガーメニュー内 LINE ───────── */
.nav-links .nav-line a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  color: #00C300; /* LINEのブランドカラー（緑） */
  font-weight: 500;
}

.nav-links .nav-line a i {
  font-size: 1.8rem;
}

.nav-links .nav-line a:hover {
  color: #00A000; /* ホバー時の濃い緑 */
}

/* モバイル時：ナビメニューをハンバーガーメニューに */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.925); /* 70% 不透明・30% 透過 */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    gap: 0;
  }

  .header-container {
    display: block; /* グリッドを解除 */
    position: relative;
    padding: 10px 0;
        background-color: white; /* 白い背景を追加 */

  }
  
  /* ロゴを上段中央に配置 */
  .logo-wrapper {
    position: static; /* 絶対配置を解除 */
    text-align: center;
    margin-bottom: 10px;
    grid-column: unset;
    grid-row: unset;
  }
  
  /* テキストロゴを下段中央に配置 */
  .header-top {
    grid-column: unset;
    grid-row: unset;
    padding-top: 0;
    margin-bottom: 10px;
  }
  
 


  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 20px 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-links li a {
    display: block;
    padding: 15px;
    font-size: 1.1rem;
  }
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
}

/* 修正箇所1: デスクトップ用の動画配置調整 */
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  header {
    padding: 5px 10px;
  }

  .logo img {
    height: 45px;
  }

  .logo h1 {
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0;
  }

  nav {
    padding: 0;
  }

  #menu-toggle {
    font-size: 1.2rem;
  }
}

.hero {
  height: 100vh;
  width: 100vw;
  min-height: auto;
  max-height: 100vh;
  padding: 0;
  margin: 0;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateY(0.1%);
}

.video-wrapper {
  background: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

@media (max-width: 1024px) and (min-aspect-ratio: 9/16) {
  .video-wrapper video {
    object-fit: cover;
    transform: scale(0.8);
  }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* 白背景を半透明にする */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  transform: translateY(-55px);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 300;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background-color: #4CAF50; /* ボタンをグリーンに変更 */
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 0;
}

.btn:hover {
  background-color: #2e7d32; /* ホバー時をダークグリーンに */
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* セクション共通スタイル */
section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h3 {
  font-size: 2.2rem;
  color: #4CAF50; /* セクションタイトルをグリーンに変更 */
  margin-bottom: 10px;
  font-weight: 700;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  font-weight: 300;
}

img {
  display: block;
  margin: 0 auto;
}

/* サイト全体のリスト項目に左右余白を追加 */
section ul {
  padding-left: 30px;
  padding-right: 30px;
  list-style: none;
}

section ol {
  padding-left: 30px;
  padding-right: 30px;
  list-style: none;
}

/* 特定のリスト（ナビゲーション、フッターなど）は除外 */
.nav-links,
.footer-links,
.contact-info,
.social-links {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  section ul,
  section ol {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* より小さい画面用 */
@media screen and (max-width: 480px) {
  section ul,
  section ol {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* スクール紹介 */
.about {
  background-color: #fff;
  margin-top: -5px;
  padding-top: 40px;
}

.about-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.about-text h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 15px;
  font-weight: 300;
  line-height: 1.8;
}

.feature-box {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #C8E6C9; /* ライトグリーン背景に変更 */
  color: #4CAF50;            /* アイコンをグリーンに変更 */
  font-size: 1.2rem;
  margin-right: 15px;
}

.feature-text {
  margin-left: 0;
}

.feature-text h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 500;
}

.feature-text p {
  font-size: 0.95rem;
  margin: 0;
  padding: 0;
}

/* スクール紹介セクションの「もっとみる」ボタン */
.about-more {
  text-align: center;
  margin-top: 30px;
}

.btn-secondary {
  display: inline-block;
  padding: 8px 20px;
  font-weight: 500;
  color: #4CAF50;             /* 青文字からグリーン文字に変更 */
  background-color: transparent;
  border: 2px solid #4CAF50;  /* 青枠からグリーン枠に変更 */
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(76, 175, 80, 0.1); /* 薄いグリーン背景に変更 */
  color: #2e7d32;                         /* ホバー時文字色をダークグリーンに */
}

/* クラス紹介 */
.classes {
  background-color: #f0f7ff;
  margin-top: -5px;
  padding-top: 40px;
}

.class-cards {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  position: relative;
  padding: 10px 0;
  gap: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.class-cards::-webkit-scrollbar {
  display: none;
}

.class-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 450px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.class-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.class-image {
  height: 180px;
  overflow: hidden;
}

.class-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.class-card:hover .class-image img {
  transform: scale(1.1);
}

.class-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.class-info h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: 700;
}

.class-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
}

.class-detail {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
}

.class-detail i {
  margin-right: 8px;
  color: #4CAF50;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* アイコンサイズ微調整 */
.class-detail i.fa-yen-sign {
  font-size: 1.1em;
}

.class-info p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

/* カルーセル関連のスタイルを追加 */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

/* ドットインジケーター */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: #4CAF50;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background-color: #4CAF50;
  opacity: 0.7;
}


/* スマホ・タブレット向けのクラスカードサイズ調整 */
@media screen and (max-width: 1024px) {
  .class-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    height: 420px;
  }
  
  .class-image {
    height: 160px;
  }
  
  .class-image img {
    height: 160px;
  }
}

@media screen and (max-width: 768px) {
  .class-card {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    height: 400px;
  }
  
  .class-image {
    height: 150px;
  }
  
  .class-image img {
    height: 150px;
  }
  
  .class-info {
    padding: 15px;
  }
  
  .class-details {
    padding: 12px;
  }
  
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media screen and (max-width: 480px) {
  .class-card {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    height: 380px;
  }
  
  .class-image {
    height: 140px;
  }
  
  .class-image img {
    height: 140px;
  }
  
  .class-info {
    padding: 12px;
  }
  
  .class-info h4 {
    font-size: 1.1rem;
  }
  
  .class-details {
    padding: 10px;
  }
  
  .class-detail {
    font-size: 0.85rem;
  }
}

/* フッター */
footer {
  background-color: #558b2f; /* フッター背景はそのままでもOK */
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 10px;
  padding-top: 10px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.footer-column h4 {
  color: #A5D6A7; /* 見出しをライトグリーンに調整 */
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #e3f2fd;
  transition: all 0.3s ease;
  font-weight: 300;
}

.footer-links a:hover {
  color: #A5D6A7; /* リンクホバーをライトグリーンに */
  padding-left: 5px;
}

footer h4 {
  color: #ffffff; /* 白色で視認性を向上 */
  font-weight: 600;
}

footer p {
  color: #e8f5e8; /* 薄い緑色で読みやすく */
}

footer .footer-links a {
  color: #e8f5e8; /* リンクも薄い緑色 */
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #ffffff; /* ホバー時は白色 */
}

footer .footer-column p {
  color: #ffffff; /* より見やすい薄い緑色 */
}

.footer-bottom p {
  color: #c8e6c9; /* さらに薄い緑色でコピーライトを表示 */
}


.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 300;
}

.contact-info i {
  margin-right: 10px;
  color: #A5D6A7; /* アイコンをライトグリーンに */
}

.social-links {
  list-style: none;
  display: flex;
  margin-top: 20px;
}

.social-links li {
  margin-right: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #2e7d32; /* ソーシャルリンク背景をダークグリーンに */
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a i {
  font-size: 24px;
}

.social-links a:hover {
  background-color: #4CAF50; /* ホバー時をグリーンに */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1a4980;
  font-size: 0.9rem;
  color: #aaa;
  font-weight: 300;
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: none;
  margin-bottom: 10px;
}

.footer-map p {
  font-size: 0.95rem;
  color: #fff;
  margin-top: 0;
  font-weight: 500;
  line-height: 1.6;
}

.footer-map i.fa-ban {
  color: #e53935;
  margin-right: 5px;
}

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

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

.class-card {
  width: 100%;
}

.about-image,
.about-text {
  flex: 100%;
}

/* フローティングバナースタイル */
.float-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100vw - 40px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 99;
  animation: bounce 2s infinite alternate;
}

.btn-float {
  display: inline-block;
  background-color: #4CAF50; /* フロートボタンをグリーンに変更 */
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-float:hover {
  background-color: #2e7d32; /* ホバー時をダークグリーンに */
  color: #fff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* バウンスアニメーション */
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .float-banner {
    bottom: 15px;
    max-width: calc(100vw - 20px);
  }

  .btn-float {
    padding: 10px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
}

/* 非常に小さい画面用 */
@media screen and (max-width: 480px) {
  .btn-float {
    padding: 8px 12px;
    font-size: 0.8rem;
    letter-spacing: 0px;
  }
}

/* Instagram */
.instagram {
  padding: 10px 10px;
  background-color: #f9f9f9;
  text-align: center;
}

.instagram-header {
  text-align: center;
  margin-bottom: 20px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  color: #4CAF50; /* インスタ見出しをグリーンに変更 */
  text-decoration: none;
}

.instagram-icon {
  font-size: 2.5rem;
  margin-right: 8px;
  color: #4CAF50; /* インスタアイコンをグリーンに変更 */
}

.instagram-title {
  font-size: 2rem;
  font-weight: 700;
  color: #4CAF50; /* インスタタイトルをグリーンに変更 */
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto 30px auto;
}

.instagram-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.instagram-grid a:hover {
  transform: scale(1.05);
}


.instagram-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Instagram セクションの「もっとみる」ボタン（セカンダリースタイル） */
.instagram-more .btn {
  display: inline-block;
  padding: 8px 20px;
  font-weight: 500;
  color: #4CAF50;             /* ボタン文字をグリーンに変更 */
  background-color: transparent;
  border: 2px solid #4CAF50;  /* 枠をグリーンに変更 */
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.instagram-more .btn:hover {
  background-color: rgba(76, 175, 80, 0.1); /* 薄いグリーン背景に */
  color: #2e7d32;                         /* ホバー文字をダークグリーンに */
}

/* スマホ・タブレット表示（2列） */
@media screen and (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    margin-top: -40px;
  }
}

/* 1. 画像を横幅いっぱいに */
.about-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* 2. 見出しと画像の間隔を狭く */
.section-title {
  margin-bottom: 20px;
}

/* 3. 画像とテキストの隙間を詰める */
.about-content {
  flex-direction: column;
  gap: 10px;
}

/* 4. テキスト上部の余白を微調整 */
.about-text {
  padding-top: 0;
}

/* toTop ボタン */
.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background-color: #4CAF50; /* トップへ戻るボタンをグリーンに変更 */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: background-color .2s ease;
}

.to-top:hover {
  background-color: #2e7d32; /* ホバー時をダークグリーンに */
}

/* モバイル（768px 以下）のときだけ左下に寄せる */
@media screen and (max-width: 768px) {
  .to-top {
    left: 20px;
    right: auto;
  }
}

/* style_annotated.css の末尾付近に追記してください */
section.cta {
  padding: 60px 20px;
  display: flex;
  justify-content: flex-end;
}

.to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

/* スクロール一定量を超えたら .show を付与 */
.to-top.show {
  opacity: 1;
  visibility: visible;
}

.instructor-history li {
  margin-bottom: 20px;
  line-height: 1.4;
}

.instructor-history li:not(:last-child) {
  margin-bottom: 20px;
}

.effect-card p {
  margin-bottom: 10px;
}

.pride-item p {
  margin-bottom: 10px;
}

.testimonial-list li {
  margin-bottom: 10px;
}

/* レッスンスケジュールページのCTAボタン調整 */
.schedule-cta .btn {
  margin: 0 8px;
}

@media screen and (max-width: 480px) {
  .schedule-cta .btn {
    display: block;
    width: 80%;
    margin: 8px auto;
    text-align: center;
  }
}

/* クラス紹介ページのスペース各種調整 */
.fee-description p {
  margin-bottom: 12px;
}

.fee-description {
  margin-bottom: 24px;
}

.section cta {
  margin-bottom: 48px;
}

.free-trial-promo p {
  margin-top: 60px;
  margin-bottom: 24px;
}

.free-trial-promo .section.cta {
  margin-top: 8px;
}

.class-item {
  margin-top: 24px;
  margin-bottom: 48px;
}

/* メンバー専用ページのスペース各種調整 */
.member-welcome {
  text-align: center;
  margin-bottom: 30px;
}

.member-button-container {
  margin-top: 20px;
  text-align: center;
}

/* ===== About Page Styles ===== */

/* メインコンテンツのスタイル */
.about-page {
  margin-top: 0;
  padding-top: 0;
}

/* 背景色の定義 */
.light-bg {
  background-color: #f8f9fa;
}

.dark-bg {
  background-color: #e8f4f8;
}

/* つむぎの由来セクション */
.about-origin {
  padding: 80px 0;
}

.about-origin .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-origin h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.origin-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.origin-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* 構成員紹介セクション */
.member-section {
  padding: 80px 0;
}

.member-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.member-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* 画像とテキストの順序を逆にするクラス（デスクトップ用） */
.member-content.reverse {
  flex-direction: row-reverse;
}

.member-image {
  flex: 0 0 400px;
}

.member-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.member-image img:hover {
  transform: translateY(-5px);
}

.member-info {
  flex: 1;
}

.member-info h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 700;
}

.member-role {
  font-size: 1.1rem;
  color: #e74c3c;
  font-weight: 600;
  margin-bottom: 25px;
  display: inline-block;
  padding: 5px 15px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 20px;
}

.member-description p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

/* アクティブナビゲーション */
.nav-links a.active {
  color: #e74c3c;
  font-weight: 600;
}

/* タブレット用レスポンシブ */
@media (max-width: 1024px) {
  .about-origin {
    padding: 60px 0;
  }
  
  .member-section {
    padding: 60px 0;
  }
  
  .member-content {
    gap: 40px;
  }
  
  .member-image {
    flex: 0 0 300px;
  }
  
  .member-image img {
    height: 300px;
  }
  
  .about-origin h2 {
    font-size: 2.2rem;
  }
  
  .member-info h3 {
    font-size: 1.8rem;
  }
}

/* スマートフォン用レスポンシブ */
@media (max-width: 768px) {
  .about-origin {
    padding: 40px 0;
  }
  
  .member-section {
    padding: 40px 0;
  }
  
  .about-origin h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .origin-text p {
    font-size: 1rem;
    text-align: left;
  }
  
  /* スマホでは縦並びレイアウト */
  .member-content,
  .member-content.reverse {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .member-image {
    flex: none;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .member-image img {
    height: 280px;
  }
  
  .member-info {
    text-align: left;
  }
  
  .member-info h3 {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .member-role {
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .member-description p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .about-origin {
    padding: 30px 0;
  }
  
  .member-section {
    padding: 30px 0;
  }
  
  .about-origin .container,
  .member-section .container {
    padding: 0 15px;
  }
  
  .about-origin h2 {
    font-size: 1.6rem;
  }
  
  .origin-text p {
    font-size: 0.95rem;
  }
  
  .member-image {
    max-width: 250px;
  }
  
  .member-image img {
    height: 250px;
  }
  
  .member-info h3 {
    font-size: 1.4rem;
  }
  
  .member-role {
    font-size: 1rem;
  }
  
  .member-description p {
    font-size: 0.9rem;
  }
}
/* ページ下部ナビゲーションボタン */
.bottom-nav {
  padding: 60px 0;
  background-color: #fff;
}

.bottom-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bottom-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.bottom-nav-buttons .btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.bottom-nav-buttons .btn-primary {
  background-color: #e74c3c;
  color: white;
}

.bottom-nav-buttons .btn-primary:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

.bottom-nav-buttons .btn-secondary {
  background-color: #34495e;
  color: white;
}

.bottom-nav-buttons .btn-secondary:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
}

/* スマートフォン用レスポンシブ */
@media (max-width: 768px) {
  .bottom-nav {
    padding: 40px 0;
  }
  
  .bottom-nav-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .bottom-nav-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* メディア掲載事例セクション */
.media-coverage {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.media-coverage .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.media-coverage .section-title h3 {
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.media-coverage .section-title p {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.media-list {
  max-width: 800px;
  margin: 0 auto;
}

.media-item {
  margin-bottom: 20px;
}

.media-link {
  display: flex;
  align-items: center;
  padding: 25px 30px;
  background-color: white;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #e74c3c;
}

.media-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.media-date {
  flex: 0 0 120px;
  font-size: 0.9rem;
  color: #e74c3c;
  font-weight: 600;
}

.media-title {
  flex: 1;
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 600;
  margin-left: 20px;
}

.media-arrow {
  flex: 0 0 auto;
  color: #e74c3c;
  font-size: 1.2rem;
}

/* スマートフォン用レスポンシブ */
@media (max-width: 768px) {
  .media-coverage {
    padding: 60px 0;
  }
  
  .media-coverage .section-title h3 {
    font-size: 2rem;
  }
  
  .media-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  
  .media-date {
    flex: none;
    margin-bottom: 10px;
  }
  
  .media-title {
    flex: none;
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  .media-arrow {
    align-self: flex-end;
  }
}
/* ===== コラボレーションセクション ===== */
.collaboration {
  padding: 60px 0;
  background-color: #ffffff;
}

.collaboration .section-title h3 {
  font-size: 2.2rem;
  color: #4CAF50;
  text-align: center;
  margin-bottom: 8px;
}

.collaboration .section-title p {
  text-align: center;
  color: #666666;
  margin-bottom: 30px;
  font-weight: 300;
}

/* コラボカードをメディア掲載事例と同じ横幅に揃える */
.collab-list {
  display: flex;
  flex-direction: column;   /* 縦にスタック */
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .collab-list {
    flex-direction: column;
  }
  .collab-list li a {
    text-align: center;
  }
}

/* コラボセクション内の .media-link は緑ラインにする */
.collab-list .media-link {
  border-left: 4px solid #4CAF50;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;       /* 中央寄せ */
  box-sizing: border-box; /* パディング込みで幅を計算 */
}
/* ===== お知らせページ専用スタイル ===== */

/* 最新のお知らせセクション */
.latest-announcements {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.announcement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.announcement-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.announcement-card:hover {
  transform: translateY(-5px);
}

.announcement-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.announcement-content {
  padding: 20px;
}

.announcement-content h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.announcement-content h4 a {
  color: #333;
  text-decoration: none;
}

.announcement-content h4 a:hover {
  color: #4CAF50;
}

.announcement-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.announcement-more {
  text-align: center;
}

/* お知らせ詳細ページ */
.single-announcement {
  padding: 80px 0;
}

.announcement-detail {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.announcement-header {
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
}

.announcement-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
}

.announcement-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #666;
}

.announcement-featured-image {
  margin: 30px 0;
  text-align: center;
}

.announcement-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.announcement-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.announcement-content p {
  margin-bottom: 20px;
}

.announcement-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.share-buttons a {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.share-buttons a:hover {
  transform: translateY(-2px);
}

.share-twitter {
  background: #1DA1F2;
}

.share-facebook {
  background: #4267B2;
}

.share-line {
  background: #00C300;
}

/* お知らせ一覧ページ */
.archive-announcements {
  padding: 80px 0;
}

.archive-header {
  text-align: center;
  margin-bottom: 0;
}

.archive-title {
  font-size: 2.5rem;
  color: #4CAF50;
  margin-bottom: 15px;
}

.archive-description {
  font-size: 1.1rem;
  color: #666;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.announcement-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.announcement-item:hover {
  transform: translateY(-5px);
}

.announcement-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.announcement-info {
  padding: 25px;
}

.announcement-info .announcement-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.announcement-info .announcement-title a {
  color: #333;
  text-decoration: none;
}

.announcement-info .announcement-title a:hover {
  color: #4CAF50;
}

.announcement-excerpt {
  margin: 15px 0;
  color: #666;
  line-height: 1.6;
}

.announcement-read-more {
  margin-top: 20px;
}

/* ページネーション */
.pagination {
  text-align: center;
  margin: 40px 0;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination a,
.pagination span {
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  color: #4CAF50;
  border: 2px solid #4CAF50;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background: #4CAF50;
  color: white;
}

/* ナビゲーション */
.announcement-navigation {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
}

.announcement-navigation .nav-links {
  display: flex;
  justify-content: space-between;
}

.announcement-navigation a {
  color: #4CAF50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.announcement-navigation a:hover {
  color: #2e7d32;
}

.back-to-announcements {
  text-align: center;
  margin-top: 40px;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .announcement-cards,
  .announcement-grid {
    grid-template-columns: 1fr;
  }
  
  .announcement-detail {
    padding: 20px;
    margin: 0 10px;
  }
  
  .announcement-title {
    font-size: 1.5rem;
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .announcement-navigation .nav-links {
    flex-direction: column;
    gap: 20px;
  }
}
/* ===== イベントページ専用スタイル ===== */

.events-page {
  padding-top: 0;
  margin-top: 0 !important;

}

.events-hero {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-top: 0 !important;
  position: relative;
}

.events-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.events-hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.event-tags {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.event-tags .tag {
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.events-list {
  padding: 20px 0 0 0;
}

.event-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 60px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-left: 5px solid #4CAF50;
}

.event-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.event-header h3 {
  font-size: 2rem;
  color: #4CAF50;
  margin-bottom: 15px;
}

.event-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.event-meta span {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  transition: transform 0.2s ease;
}

.event-meta span:hover {
  transform: translateY(-2px);
}

.event-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.event-images {
  min-width: 300px;
}

.event-images .main-image {
  overflow: hidden;
  border-radius: 10px;
  height: 200px;
}

.event-images .main-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-images .main-image:hover img {
  transform: scale(1.05);
}

/* イベントページの上部マージン問題を解決 */
body .events-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* WordPressテーマから継承される可能性のあるマージンを打ち消し */
.events-page::before,
.events-page *:first-child {
  margin-top: 0 !important;
}

/* ヘッダーとの接続を確保 */
main.events-page {
  margin-top: 0 !important;
}

/* Twenty系テーマ対応 */
.wp-site-blocks .events-page,
.is-root-container .events-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* エントリーヘッダーが存在する場合の対処 */
.events-page .entry-header {
  display: none !important;
}



/* ===== イベント詳細のスタイル追加 ===== */
.event-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #4CAF50;
  margin-bottom: 20px;
}

.event-details h4 {
  color: #4CAF50;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.event-details p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.event-details ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.event-details li {
  margin-bottom: 5px;
  line-height: 1.5;
}

/* イベントページのスマホ対応追加 */
@media screen and (max-width: 480px) {
  .event-content {
    display: block;
  }
  
  .event-images {
    margin-bottom: 20px;
    min-width: auto;
  }
  
  .event-images .main-image {
    height: 140px;
  }
  
  .event-images .main-image img {
    height: 140px;
  }
  
  .event-meta {
    gap: 8px;
  }
  
  .event-meta span {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  .event-details {
    padding: 15px;
  }
  
  .event-details h4 {
    font-size: 1rem;
  }
}

/* デスクトップでのカルーセルナビゲーション位置修正 */
@media screen and (min-width: 769px) {
  .carousel-nav {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    width: auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-top: 30px;
    opacity: 1;
    visibility: visible;
  }
  
  .carousel-prev,
  .carousel-next {
    display: none;
  }
}


/* カルーセルナビゲーションのスマホ表示修正 */
@media screen and (max-width: 768px) {
  .classes {
    margin-bottom: 80px;
  }
  
  .carousel-nav {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 1000;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .classes .carousel-nav.show {
    opacity: 1;
    visibility: visible;
  }
  
  .carousel-prev,
  .carousel-next {
    display: none;
  }
}

/* スマホでのヒーローセクション全画面表示 */
@media (max-width: 768px) {
  /* 実機スマホ用の余白リセット */
  * {
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw;
    overflow-x: hidden;
  }
  
  .hero {
    width: 100vw;
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: white;
    box-sizing: border-box;
  }
  
  .video-wrapper {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2;
    box-sizing: border-box;
  }
  
  .video-wrapper video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    border: none;
    outline: none;
  }
  
  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: calc(100vw - 40px);
    text-align: center;
  }
}

/* participation-info スタイル */
.info-card .card-icon {
  display: inline-block;
  margin-right: 10px;
}

.info-card h3 {
  display: inline;
  margin: 0;
}