﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.fade-tab-container {
  max-width: 900px;
  margin: 10px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

/* ラジオボタンを隠す */
.fade-tab-container input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* タブボタンエリア */
.fade-tab-buttons {
  display: flex;
  background-color: #f8f9fa;
  border-bottom: 3px solid #dee2e6;
}

.fade-tab-buttons label {
  flex: 1;
  padding: 10px 10px;
  text-align: center;
  font-size: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.fade-tab-buttons label p {
  margin-top: 5px;
  text-align: center;
  font-size: 14px;
  line-height: 120%;
}
.fade-tab-buttons label p span {
  display: inline-block;
}

.fade-tab-buttons label:hover {
  background-color: #e9ecef;
  color: #495057;
}

/* アクティブなタブ */
#fade-tab1:checked ~ .fade-tab-buttons label[for="fade-tab1"],
#fade-tab2:checked ~ .fade-tab-buttons label[for="fade-tab2"],
#fade-tab3:checked ~ .fade-tab-buttons label[for="fade-tab3"] {
  color: #ff7259;
  background-color: white;
}

/* アクティブタブの下線 */
#fade-tab1:checked ~ .fade-tab-buttons label[for="fade-tab1"]::after,
#fade-tab2:checked ~ .fade-tab-buttons label[for="fade-tab2"]::after,
#fade-tab3:checked ~ .fade-tab-buttons label[for="fade-tab3"]::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ff7259;
}

/* コンテンツエリア */
.fade-tab-contents {
  position: relative;
  min-height: 300px;
}

.fade-tab-content {
  display: none;
  /* padding: 40px; */
  animation: fadeInContent 0.6s ease;
}

/* フェードインアニメーション */
@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* アクティブなコンテンツを表示 */
#fade-tab1:checked ~ .fade-tab-contents #fade-content1,
#fade-tab2:checked ~ .fade-tab-contents #fade-content2,
#fade-tab3:checked ~ .fade-tab-contents #fade-content3 {
  display: block;
}

.fade-tab-content h3 {
  color: #212529;
  margin-bottom: 16px;
  font-size: 24px;
}

.fade-tab-content p {
  line-height: 1.8;
  font-size: 16px;
}


    <!-- Pure.css の読み込み -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net">
    <style>
        /* カスタムスタイル */
        .gallery-container {
            padding: 1em;
            max-width: 1200px;
            margin: 0 auto;
        }
        .gallery-container h2 {
            font-size: 18px;
            text-align: center;
            font-weight: bold;
            font-family: 'Noto Sans JP', sans-serif;
            color: #231815;
            padding: 5px;
            margin: 0 auto;
        }
        .gallery-item {
            padding: 0.2em;
            box-sizing: border-box;
        }
        .gallery-figure {
            margin: 0;
            position: relative;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .gallery-figure p {
            font-size: 14px;
           text-align: center;
           line-height: 1.4;
           padding: 3px 0;
           box-sizing: border-box;
        }
        .gallery-figure img {
            width: 100%;
            display: block;
            height: auto;
            transition: transform 0.3s ease;
        }
        /* マウスホバーで画像を少し拡大 */
        .gallery-figure:hover img {
            transform: scale(1.05);
        }
        /* キャプションのスタイル */
        /* .gallery-caption {
            padding: 5px 2px;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 0.9em;
            text-align: center;
        } */

@media screen and (max-width: 480px) {
        .gallery-figure p {
            font-size: 12px;
           text-align: center;
           line-height: 1.4;
           padding: 3px 0;
           box-sizing: border-box;
        }
}

/* キャプション付き画像ここから */

        /* ギャラリーのスタイル */
        .gallery-container { padding: 0em; }
        /* .thumbnail { width: 100%; height: auto; cursor: pointer; transition: 0.3s; } */
        .thumbnail:hover { opacity: 0.7; }

        /* ライトボックスのスタイル（通常は隠す） */
        /* .lightbox {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 999;
            text-align: center;
        } */

        /* ターゲットになったら表示 */
        /* .lightbox:target {
            display: block;
        }  */

        /* 拡大画像と閉じるボタン */
        /*  .lightbox img {
            max-width: 90%; max-height: 80vh;
            margin-top: 5vh;
            border: 5px solid white;
        }  */
        
        /* .close {
            position: absolute; top: 10px; right: 20px;
            font-size: 40px; color: white; text-decoration: none;
        }  */

/* キャプション付き画像ここまで */

/* ギャラリー全体の余白調整（任意） */
.photo-box {
    padding: 10px;
}

/* figure要素を相対配置にして、キャプションを制御可能にする */
.photo-box figure {
    margin: 0;
    /*position: relative;(←画像の上に文字を乗せる時は活かす)*/
    overflow: hidden; /* ホバー効果を使う場合 */
}

/* キャプションのスタイル */
.photo-box figcaption {
    background-color: rgba(0, 0, 0, 0.7); /* 半透明の黒 */
    color: white;
    padding: 10px;
    font-size: 0.9em;
    text-align: center;
    /* 位置の指定（下部に固定） */
    /*position: absolute;(←画像の上に文字を乗せる時は活かす)*/
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
}

.m-plus-rounded-1c-thin {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.m-plus-rounded-1c-light {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.m-plus-rounded-1c-regular {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.m-plus-rounded-1c-medium {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.m-plus-rounded-1c-bold {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.m-plus-rounded-1c-extrabold {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.m-plus-rounded-1c-black {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 900;
  font-style: normal;
}
