/* -----------------------------
   Variabls & Reset
------------------------------ */
:root {
    --primary-color: #2eb872;
    /* アクセントの緑 */
    --primary-dark: #1b8a53;
    --secondary-color: #1a62a9;
    /* アクセントの青 */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-light: #f5f8fa;
    --border-color: #e2e8f0;
    --gradient-bg: linear-gradient(135deg, #2eb872 0%, #1a62a9 100%);
    --font-sans: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --transition: 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    /* 中央が明るく、外側に淡いブルーとグリーンが広がるベース */
    background: radial-gradient(circle at center, #ffffff 0%, #f0f7f4 50%, #e6f2f5 100%);
    background-attachment: fixed;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* -----------------------------
   SDGs Dynamic Background
------------------------------ */
.bg-shapes {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* うっすらとした円形グラデーション（複数） */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* ぼかしを少し弱くして色をわずかに出す */
    opacity: 0.15; /* 透明度 15% にして少し見やすく */
    animation: drift 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: #4facfe; /* 淡いブルー */
}

.shape-2 {
    bottom: -20%; right: -10%;
    width: 70vw; height: 70vw;
    background: #a8e063; /* 淡いグリーン */
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    top: 40%; left: 30%;
    width: 40vw; height: 40vw;
    background: #00f2fe; /* アクセントブルー */
    animation-delay: -10s;
    opacity: 0.05; /* 透明度 5% */
}

/* 流れるようなライン（曲線）の背景 */
.bg-lines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    /* シンプルで柔らかいSVG曲線の背景パターン */
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q25,20 50,50 T100,50 Q125,80 150,50 T200,50' stroke='%234facfe' stroke-width='0.5' fill='none' opacity='0.5' transform='scale(5 10)'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.08; /* 主張しすぎない透明度約10%未満 */
    animation: panLines 60s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

@keyframes panLines {
    0% { background-position: 0 0; }
    100% { background-position: 100vw 100vh; }
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------
   Typography & Utilities
------------------------------ */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-white {
    color: #fff;
}

.section-title {
    font-size: 28px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary-color);
    font-size: 130%;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.bg-light {
    background-color: rgba(245, 248, 250, 0.85);
    backdrop-filter: blur(5px);
}

.bg-gradient {
    background: var(--gradient-bg);
    color: #fff;
}

/* -----------------------------
   Buttons
------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #32c87d 0%, #1b8a53 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(46, 184, 114, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 184, 114, 0.5);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 50px;
    font-size: 18px;
}

.btn-xl {
    padding: 18px 45px;
    font-size: 20px;
}

/* -----------------------------
   Header
------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
    padding: 10px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4%; /* 画面幅に対して適度な左右の余白を保ちつつ、端に寄せる */
    max-width: 1600px; /* 以前の1200pxから大きく広げ、ロゴがより左側に配置されるようにする */
    margin: 0 auto;
    transition: all 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.header.scrolled .logo img {
    height: 48px;
}

/* -----------------------------
   Hero Section
------------------------------ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 25s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1.0); }
    10% { opacity: 1; }
    20% { opacity: 1; transform: scale(1.05); }
    30% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* -----------------------------
   Sections General
------------------------------ */
section {
    padding: 80px 0;
}

/* -----------------------------
   Cards Layout
------------------------------ */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.cards-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.85); /* 少し透明度を強めて背景色を透けさせる */
    backdrop-filter: blur(16px); /* すりガラス効果を強める */
    border-radius: 16px;
    padding: 30px;
    /* 影を少し強く（立体感UP） */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card:hover {
    /* ホバー時に少し浮く演出を追加 */
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* -----------------------------
   Benefits
------------------------------ */
.card-benefit {
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    background: transparent; /* 既存のカード背景色を打ち消す */
    border: 1px solid rgba(0,0,0,0.05); /* 枠線を馴染ませる */
}

.card-benefit::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.7; /* 背景画像はしっかり出す */
    transition: all 0.5s ease;
    z-index: 0;
}

.card-benefit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85); /* テキストを見やすくする白フィルター */
    z-index: 1;
    transition: all 0.5s ease;
}

.card-benefit:hover::before {
    transform: scale(1.08); /* ズーム */
    opacity: 0.8;
}

.card-benefit:hover::after {
    background: rgba(255, 255, 255, 0.75); /* ホバーで画像を少し見やすくする */
}

.card-benefit > * {
    position: relative;
    z-index: 2; /* テキストとアイコンは常に一番上 */
}

.card-benefit .card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 各カードの背景をシンプルなCSS美しいグラデーションで統一 */
.benefit-bg-1::before { background-image: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); } /* シンプルで高級感のある白〜ライトグレー */
.benefit-bg-2::before { background-image: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%); } /* 葉と自然のつながり */
.benefit-bg-3::before { background-image: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); } /* 朝の光と健康 */

/* -----------------------------
   Activities
------------------------------ */
.card-activity {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.activity-image-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #e0f2f1 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(0, 0, 0, 0.1);
}

.activity-body {
    padding: 25px;
    text-align: center; /* タイトルや説明文を中央位置に揃える */
}

/* -----------------------------
   Timeline
------------------------------ */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.timeline-date {
    font-size: 14px;
    font-weight: 700;
    color: #e0f2f1;
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* -----------------------------
   Philosophy
------------------------------ */
.philosophy {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    /* 新規生成した、極めてミニマルでプレミアムな和風モダン背景画像 */
    background-image: url('bg-philosophy-premium.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* スクロールに合わせて背景が固定されるパララックス効果 */
    color: #ffffff;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 洗練された背景のクリーンな質感をそのまま生かすため、ごく微かで穏やかな暗幕にとどめる */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
    pointer-events: none;
}

.philosophy-box {
    position: relative;
    z-index: 1;
    /* ご指定いただいたプロフェッショナルなカードデザイン（CSS設定）を完全適用 */
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 50px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-title {
    font-family: var(--font-serif);
    font-size: 40px;
    color: #1a365d; /* 白背景に合わせて濃紺色 */
    margin-bottom: 30px;
}

.philosophy-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
    color: #333333; /* 文字を暗いグレーに設定 */
}

.quote-icon {
    font-size: 45px;
    color: rgba(26, 54, 93, 0.15); /* 装飾：少し青みがかったシャドウ */
    position: absolute;
    top: -20px;
    left: -20px;
}

.quote-icon-right {
    font-size: 45px;
    color: rgba(26, 54, 93, 0.15); /* 装飾：少し青みがかったシャドウ */
    position: absolute;
    bottom: -20px;
    right: -20px;
}

/* -----------------------------
   SDGs
------------------------------ */
.sdgs {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    /* 新しくAI生成したエレガントな和風モダン道場画像を背景に設定 */
    background-image: url('bg-dojo-harmony.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* スクロール時に背景が固定されるパララックス効果で奥行きを演出 */
    z-index: 1;
}

.sdgs::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* SDGsの文字やカードがくっきり読めるように、画像の上に上品な薄い白ベージュのベールをかける */
    background: rgba(255, 250, 245, 0.82);
    z-index: -1;
    pointer-events: none;
}

.sdgs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.sdgs-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.sdgs-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sdgs-goal-num {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    border-radius: 12px;
    margin-bottom: 15px;
}

.sdgs-goal-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* SDGs colors & Dynamic Gradient Backgrounds */
.bg-goal-3 {
    background-color: #4C9F38;
}

.sdgs-card:nth-child(1) {
    border-bottom-color: #4C9F38;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 40%, rgba(76, 159, 56, 0.15) 100%);
}

.bg-goal-4 {
    background-color: #C5192D;
}

.sdgs-card:nth-child(2) {
    border-bottom-color: #C5192D;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 40%, rgba(197, 25, 45, 0.15) 100%);
}

.bg-goal-5 {
    background-color: #FF3A21;
}

.sdgs-card:nth-child(3) {
    border-bottom-color: #FF3A21;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 40%, rgba(255, 58, 33, 0.15) 100%);
}

.bg-goal-11 {
    background-color: #FD9D24;
}

.sdgs-card:nth-child(4) {
    border-bottom-color: #FD9D24;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 40%, rgba(253, 157, 36, 0.15) 100%);
}

.bg-goal-17 {
    background-color: #19486A;
}

.sdgs-card:nth-child(5) {
    border-bottom-color: #19486A;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 40%, rgba(25, 72, 106, 0.15) 100%);
}

.sdgs-title {
    font-size: 16px;
    margin-bottom: 10px;
    min-height: 44px;
}

.sdgs-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* -----------------------------
   CTA Section
------------------------------ */
.cta-section {
    background: #111;
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('cta-bg.jpg') center/cover;
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    margin-bottom: 40px;
    color: #ccc;
}

.cta-note {
    font-size: 12px;
    margin-top: 15px;
    color: #999;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-btn-secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* -----------------------------
   Access Page
------------------------------ */
.access-page {
    background: #e8eaec; /* 上部のグレーベース */
    position: relative;
    min-height: 100vh;
}

/* 下部の黒っぽいグラデーションノイズ風背景 */
.access-bg {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60vh;
    background: linear-gradient(to top, rgba(74, 95, 104, 0.8) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.header.bg-white {
    background: #ffffff;
    position: relative; /* 固定ではなくスクロールと共に移動 */
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.access-main {
    padding: 40px 0 80px;
    position: relative;
    z-index: 1;
}

.map-wrapper {
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 auto 40px;
    max-width: 900px;
    border-radius: 4px;
    overflow: hidden;
}

.access-map-img {
    width: 100%;
    height: auto;
    display: block;
    /* 仮の背景（画像がまだない場合用） */
    background: #f8f8f8;
    min-height: 300px;
    object-fit: cover;
}

.access-info-text {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.8;
    color: #111;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    letter-spacing: 0.05em;
}

.access-info-text strong {
    font-size: 32px;
}

.btn-return {
    background: #B33D35; /* ご提示デザインの赤茶色 */
    color: #ffffff;
    border-radius: 50px; /* お問い合せボタンと全く同じ丸い形（ピル型）に変更 */
    padding: 18px 60px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(179, 61, 53, 0.4);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* お問い合せボタンと同じ、ホバー時に光が走るエフェクト */
.btn-return::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s ease;
}

.btn-return:hover::after {
    left: 150%;
}

.btn-return:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(179, 61, 53, 0.5);
    color: #fff;
}

@media (max-width: 767px) {
    .access-info-text {
        font-size: 18px;
    }
    .access-info-text strong {
        font-size: 22px;
    }
    .btn-return {
        padding: 15px 40px;
        font-size: 18px;
    }
}

/* -----------------------------
   Schedule Page
------------------------------ */
.schedule-page {
    /* 落ち着いた和紙風・ゴールドベージュ系の背景 */
    background: linear-gradient(135deg, #fbfaf6 0%, #e2dfcf 100%); 
    position: relative;
    min-height: 100vh;
}

.schedule-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 両端の草木の影のようなグラデーションと、下部の墨のような青鈍色の濁りを演出 */
    background: 
        radial-gradient(ellipse at top left, rgba(168, 163, 137, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at top right, rgba(168, 163, 137, 0.2) 0%, transparent 40%),
        linear-gradient(to top, rgba(94, 103, 114, 0.7) 0%, rgba(94, 103, 114, 0.1) 15%, transparent 35%);
    z-index: -1;
    pointer-events: none;
}

.schedule-main {
    padding: 60px 0 80px;
    position: relative;
    z-index: 1;
}

.schedule-info-text {
    margin-bottom: 40px;
    color: #333333;
    font-family: var(--font-sans);
}

.schedule-dojo-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 35px;
    letter-spacing: 0.05em;
}

.schedule-block {
    margin-bottom: 30px;
}

.schedule-label {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
}

.schedule-detail {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
}

.photo-wrapper {
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 auto 50px;
    max-width: 900px;
    border-radius: 4px;
    overflow: hidden;
}

.dojo-photo-img {
    width: 100%;
    height: auto;
    display: block;
    background: #e9ecef; /* 画像がない場合のプレースホルダー背景 */
    min-height: 400px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .schedule-dojo-name { font-size: 20px; }
    .schedule-label { font-size: 18px; }
    .schedule-detail { font-size: 20px; }
}

/* -----------------------------
   Exchange Page
------------------------------ */
.exchange-page {
    position: relative;
    /* ベースは白～透明にして、固定背景を透かして見せる */
    background: transparent;
    font-family: var(--font-serif); /* 明朝体ベースで上品に */
}

/* 背景：全体に敷かれる夕日の写真 */
.exchange-sunset-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('sunset.png');
    background-size: cover;
    /* 太陽がしっかり入るよう中央配置に変更 */
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* 夕日画像の上に文字が見えやすく、かつ太陽も美しく見えるように調整した白いオーバーレイ */
.exchange-sunset-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 上部（太陽付近）は少し薄めにして輝きを残し、下部は文字を読むために少し濃くする */
    background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.6) 100%);
}

.exchange-main {
    padding-top: 80px; /* ヘッダー分を開ける */
    position: relative;
    z-index: 1;
}

/* 上部（ヒーロー）：交流の写真エリア */
.exchange-hero {
    position: relative;
    width: 100%;
    /* 写真自体の高さに合わせて伸縮・全体表示させる自動設定 */
    height: auto;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

/* 交流写真を全体・見切れずに表示 */
.exchange-photo-img {
    width: 100%;
    height: auto;
    display: block;
    /* 底部だけが徐々に透明になり、下の夕日と自然に溶け込む魔法のマスク */
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

/* 写真の上の暗い暗幕（白い「地域交流」の文字を際立たせるため） */
.exchange-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.exchange-title {
    position: absolute;
    font-size: clamp(40px, 8vw, 84px); /* 画面サイズに合わせて自動調整される大きな文字 */
    color: #ffffff;
    font-family: var(--font-serif);
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
    letter-spacing: 0.15em;
    z-index: 2;
    /* 写真の上部（蛍光灯付近）に配置 */
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
}

.exchange-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.exchange-text-block {
    margin-bottom: 35px;
    text-align: center;
}

.exchange-text-block p {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.9;
    color: #222222;
    text-shadow: 0 2px 4px rgba(255,255,255,0.9); /* 白い縁取りを入れて、夕日を背にしても文字がクッキリ読めるようにする */
    letter-spacing: 0.05em;
}

.exchange-text-block strong {
    font-size: 24px;
}

@media (max-width: 767px) {
    .exchange-hero { height: 300px; }
    .exchange-title { font-size: 40px; }
    .exchange-text-block p { font-size: 16px; }
    .exchange-text-block strong { font-size: 18px; }
}

/* -----------------------------
   Footer
------------------------------ */
.footer {
    /* 真っ黒の面積を減らし、全体に深いグリーンが行き渡る上品なグラデーションへ調整 */
    background: linear-gradient(135deg, #1b382d 0%, #0f2b23 60%, #050d0a 100%);
    color: #cccccc;
    text-align: center;
    padding: 60px 0; /* 上下の余白を適度(50〜70px)に縮小してコンパクトに */
    position: relative;
    overflow: hidden;
}

/* フッター背景にごく薄い円形グラデーション（3〜5%）を3箇所配置し、空気感・奥行き・静けさを強調します */
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    /* グリーンとブルーの大きな円を3箇所に重ねて配置して奥行きを出します */
    background: 
        radial-gradient(circle at 15% 80%, rgba(46, 184, 114, 0.05) 0%, transparent 55%), /* 左下: グリーン 5% */
        radial-gradient(circle at 85% 20%, rgba(26, 98, 169, 0.04) 0%, transparent 60%), /* 右上: ブルー 4% */
        radial-gradient(circle at 50% 40%, rgba(46, 184, 114, 0.03) 0%, transparent 70%); /* 中央: ごく薄いグリーン 3% */
    filter: blur(60px); /* 強くぼかして文字の邪魔をせず雰囲気を出す */
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 25px; /* ロゴとテキストの間隔を20〜30pxへ縮小 */
}

.footer-logo img {
    width: 100%; /* スマホや小さな画面用に横幅を制限 */
    /* 今まであった枠の大きさに合わせて、ロゴ画像自体をさらに拡大 */
    max-width: 450px; 
    height: auto; /* 高さは自動調整で縦横比を維持 */
    /* 「黒枠」として見えてしまっていた要因（背景、枠線、余白、影）をすべて完全に消去 */
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
    filter: none;
}

.footer p:not(.copyright) {
    font-size: 14px; /* やや小さめで上品に */
    color: #cccccc; /* 少し明るいグレー */
    margin-bottom: 5px; /* マージンを詰めて要素をまとめる */
    line-height: 1.8;
}

.copyright {
    margin-top: 15px; /* コピーライトとの間隔を10〜15pxと大幅に縮小 */
    font-size: 12px; /* さらに小さく上品に */
    color: #888888; /* さらに薄く */
    letter-spacing: 0.05em;
}

/* -----------------------------
   Media Queries (PC, Tablet)
------------------------------ */
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cards-row {
        flex-direction: row;
    }

    .card-activity {
        flex: 1;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        margin-left: auto;
        padding-right: 0;
        padding-left: 40px;
        text-align: left;
    }

    .timeline-dot {
        left: auto;
        right: -18px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        right: auto;
        left: -18px;
    }

    .sdgs-grid {
        /* GridからFlexboxに変更して、下段のカードが間延びせず中央揃えになるようにする */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sdgs-card {
        /* gap(20px)を考慮し、3列に並べる幅 */
        width: calc(33.333% - 14px); 
    }

    .sdgs-card:nth-child(4) {
        grid-column: auto;
    }

    /* PCで下2つをレイアウト調整 */
    .sdgs-card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .logo img { height: 40px; }
    .header.scrolled .logo img { height: 35px; }
    .btn-lg { padding: 15px 30px; font-size: 16px; }
}

@media (min-width: 1000px) {
    .sdgs-grid {
        /* 再びGridレイアウトに戻し、5列で等間隔に並べる */
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .sdgs-card {
        width: auto; /* Flex時の固定幅を解除 */
    }

    .sdgs-card:nth-child(4) {
        grid-column: auto;
    }

    .sdgs-card:nth-child(5) {
        grid-column: auto;
    }
}