body {
  font-family: sans-serif;
  margin: 0;
  background-color: #f8f8f8;
  color: #555;
  background-image: url("../images/背景アイコンなし.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

/* ヘッダー */
.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 900;
}

.header a.logo {
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* メニューボタン：常に右上に固定表示 */
.menu-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.menu-btn img {
  width: 28px;
  height: 28px;
}

/* サイドメニュー */
.side-menu {
  /* 1. 位置とサイズを画面基準で固定する */
  position: fixed;
  top: 0;
  right: 0; /* 左側から表示する場合 */
  width: 280px; /* メニューの横幅 */
  height: 100vh; /* 画面の高さ100% */
  z-index: 999; /* 他の要素より手前に表示 */

  /* 2. 見た目と内部の余白 */
  background-color: #fff; /* 背景色 */
  padding: 60px 40px; /* 内側の余白（上下60px, 左右40px）*/
  box-sizing: border-box; /* paddingを含めてwidthを計算する（重要）*/
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* 見栄えを良くする影 */

  /* 3. コンテンツがはみ出た場合のスクロール設定 */
  overflow-y: auto;

  /* 4. 表示/非表示のアニメーション設定 */
  transform: translateX(100%); /* 初期状態では左側の画面外に隠す */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* JavaScriptでこのクラスが付与されたら表示する */
.side-menu.open {
  transform: translateX(0); /* 画面内にスライドイン */
}

.side-menu a {
  display: flex;
  align-items: center;
  margin: 15px 0;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.side-menu a img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* オーバーレイ：サイドメニューが出ているときの背景 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* 初期は透明 */
  z-index: 998;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.overlay.show {
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  pointer-events: auto;
}

/* メインコンテンツ */
.container {
  text-align: center;
  padding: 40px 20px;
  /* ★追加: 最大幅を設定し、大きな画面での広がりを制限★ */
  max-width: 1200px; /* ★適切な最大幅をピクセルで指定 (例: 1200px)★ */
  margin-left: auto;
  margin-right: auto;
}

/* mainタグにも適用することで、コンテンツ全体の配置を安定させる (任意) */
main {
    margin: 0 auto;
    max-width: 1200px;
}

img.main-image {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
}

.main-text h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 40px;
}

.main-text h3 {
  text-align: left;
  margin-top: 40px;
  padding-left: 24px;
  padding-right: 24px;
}

.main-text p {
  text-align: left;
  margin-top: 20px;
  padding-left: 24px;
  padding-right: 24px;
}

/* スライダー全体 */
.slider-wrapper {
  position: relative;
  max-width: 100%;
  height: auto; 
  margin-top: 20px;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 2rem;
  z-index: 2;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* フッターリンク */
.footer-links {
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

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

.footer-social {
  text-align: center;
  margin: 8px 0;
}

.footer-social a img.x-icon {
  width: 36px;
  height: 36px;
}



.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  margin: 8px 0 20px;
}

/* スマホ下部ナビゲーション */
.bottom-nav {
  display: none;
}

/* トップページリンク */
.top-link {
  text-align: center;
  margin: 40px 0 10px;
}

.top-link a {
  text-decoration: none;
  background-color: #e0e0e0;
  color: #333;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
}
/* カルーセルコンテナのスタイル */
.mySwiper {
    /* 1. 幅の設定（レスポンシブな基本幅） */
    width: 100%;
    width: 100%; 
    
    /* 2. 最大幅の設定 ★ここが重要★ */
    /* PCでこれ以上大きくしない幅を指定します。例: 1000px */
    max-width: 800px; 
    
    /* 3. 中央寄せの設定 */
    /* 画面の残り幅を左右に均等に分け、カルーセルを中央に配置します */
    margin-left: auto;
    margin-right: auto;
    
    /* 既存のスタイル */
    overflow: hidden;
    position: relative; 
}

.mySwiper .swiper-wrapper {
    box-sizing: content-box; 
    /* SwiperがJSで動かすため、この要素にoverflow: hidden; は設定しません */
}

.mySwiper .swiper-slide img {
    /* 必須: 画像1枚が常にコンテナの幅と高さいっぱいになるように強制 */
    width: 100%;
    height: 100%;
    
    /* アスペクト比を保ちつつコンテナを覆う */
    object-fit: cover; 
}

/* ナビゲーション矢印の共通スタイル */
.swiper-button-prev,
.swiper-button-next {
    /* 矢印をコンテナに対して絶対位置に配置 */
    position: absolute;
    /* 矢印を上下の真ん中に配置 */
    top: 50%;
    /*transform: translateY(-0%);*/
    /* 重なり順を確保 (他の要素より手前に表示) */
    z-index: 10;
    
    /* モバイルで見やすいようにサイズを調整することが多いです */
    /* width/height, color, marginなどを調整 */
    color: #000; /* 矢印の色 */
    margin: 0 10px; /* 左右の端からのマージン */
}

/* 左矢印の位置調整 */
.swiper-button-prev {
    left: 0; /* 左端に配置 */
}

/* 右矢印の位置調整 */
.swiper-button-next {
    right: 0; /* 右端に配置 */
}

/* --- 情報カードエリアのレイアウト --- */
.content-cards {
    /* グリッドコンテナとして設定 */
    display: flex;
    flex-direction: column;
    /* 画面幅に合わせて、最小300pxのカードを自動で並べる */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
    min-height: 180px;
}

/* --- 個々の情報カードのスタイル --- */
.info-card {
    display: block;
    text-align: left;
    text-decoration: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* グリッド内で高さを揃える */
    box-sizing: border-box;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.info-card .card-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.info-card .card-title {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.info-card .card-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

.text{
  text-align: center;
}


/* common.css の末尾に追加 */

/* --- 【画像ありカード】の横並び設定 (PC: 769px以上) --- */
@media (min-width: 769px) { 
    .content-cards{
      max-width: 800px;
    }
    .info-card.card-message,
    .info-card.card-illust,
    .info-card.card-info{
        display: flex;
        flex-direction: row; 
        height: 170px; 
        align-items: center; /* 子要素の高さを揃える */
        
        padding: 0; 
        overflow: hidden; 
    }

    .info-card .card-image {
        width: 50%;
        scale: 0.6;
        height: auto;
        min-height: 200px;
        flex-shrink: 0;
        padding: 0.8rem
    }
    

    
    /* ★修正: テキストラッパーのスタイル★ */
    .card-text-content {
        width: 50%; /* 画像の 35% に対し、残りの 65% を確保 */
        display: flex;
        flex-direction: column;
        justify-content: center; /* 垂直中央寄せ */
        padding: 1.2rem;
    }
    
    .card-text-content h3 { margin-top: 0; } /* 垂直マージンの調整 */
}

