/* =========================================
   Base
========================================= */

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

:root {

    --main-color: #3d6b3d;
    --accent-color: #88b04b;
    --background: #faf9f5;
    --text: #333;
    --light: #ffffff;
    --border: #e5e5e5;

}

body {

    font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.8;

}

a {

    color: inherit;
    text-decoration: none;

}

img {

    max-width: 100%;

}


/* =========================================
   Layout
========================================= */

.container{

    width:min(1100px,92%);
    margin:auto;

}

section{

    padding:70px 0;

}

h1{

    font-size:3rem;
    margin-bottom:20px;

}

h2{

    font-size:2rem;
    color:var(--main-color);
    margin-bottom:30px;

}

h3{

    margin-bottom:15px;

}

p{

    margin-bottom:20px;

}


/* =========================================
   Header
========================================= */

header{

    background:white;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:10000;

}

header .container{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 0;
	z-index: 10001;

}

.site-title h1{

    font-size:1.6rem;
    margin-bottom:5px;

}

.site-en{

    display:block;
    color:var(--main-color);
    font-size:.85rem;
    letter-spacing:2px;
    font-weight:bold;

}

.site-title p{

    color:#777;
    font-size:.9rem;
    margin:0;

}


/* =========================================
   Navigation
========================================= */

nav ul{

    display:flex;
    list-style:none;
    gap:25px;

}

nav a{

    font-weight:bold;
    transition:.3s;

}

nav a:hover{

    color:var(--main-color);

}


/* =========================================
   Hamburger Button
========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--main-color);
    border-radius: 2px;
    transition: 0.3s;
}
/* ボタンが開いてる時、×アイコンに変形 */
.hamburger.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}






/* =========================================
 Hero
========================================= */
.hero {

    background:		
        url("../img/top.jpg");

    background-size: cover;
    background-position: center bottom;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;
}



.hero-text {
    width: min(900px,90%);
    margin: auto;
    text-align: center;
    padding:30px 40px;
    background:rgba(255,255,255,0.65);
    border-radius:16px;
}


.hero-text h1 {
    font-size: 3rem;
    letter-spacing: 0.1em;
    margin-bottom:20px;
}



.hero-subtitle {
    color: var(--main-color);
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom:10px;

}

.hero-copy {
    font-size:2rem;
    color:#333;
    margin:25px 0;
    line-height:1.6;
}

.hero-message {
    font-size:1.15rem;
    color:#333;
    max-width:700px;
    margin:auto;
    line-height:1.8;
}





/* =========================================
 Cards
========================================= */

.card-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:30px;

}

.card{

    background:white;

    padding:30px;

    border-radius:15px;

    box-shadow:0 8px 20px rgba(0,0,0,.06);

    transition:.3s;

}

.card:hover{

    transform:translateY(-6px);

}

.card h3{

    color:var(--main-color);

}



/* =========================================
   これまでの歩み
========================================= */

.history-year {
    margin: 20px 0;
    border-bottom: 1px solid #ddd;
}

.history-year summary {
    cursor: pointer;
    list-style: none;

    font-size: 1.6rem;
    font-weight: 700;

    color: var(--main-color);

    padding: 20px 10px;

    position: relative;
}

/* Chrome / Safari の標準三角を消す */
.history-year summary::-webkit-details-marker {
    display: none;
}

/* 右側の開閉マーク */
.history-year summary::after {
    content: "+";

    position: absolute;
    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 1.8rem;
    font-weight: 400;
}

/* 開いているときは − */
.history-year[open] summary::after {
    content: "−";
}



/* =========================================
   活動の風景 Gallery
========================================= */

.gallery {
    padding: 90px 20px;
    background: #f7f8f4;
}

.gallery .section-inner {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.gallery-intro {
    max-width: 700px;
    margin: 0 auto 45px;

    text-align: center;

    color: #555;

    line-height: 1.9;
}


/* -----------------------------------------
   写真グリッド
----------------------------------------- */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}


/* -----------------------------------------
   写真
----------------------------------------- */

.gallery-item {
    display: block;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 12px;

    background: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.35s ease;
}


/* マウスを乗せたとき */

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


/* -----------------------------------------
   写真がない場合
----------------------------------------- */

.gallery-empty {
    text-align: center;

    color: #777;

    padding: 40px;
}


/* =========================================
   スマートフォン
========================================= */

@media (max-width: 700px) {

    .gallery {
        padding: 65px 15px;
    }

    .gallery .section-inner {
        width: 100%;
    }

    .gallery-intro {
        text-align: left;

        font-size: 0.95rem;

        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }

    .gallery-item {
        border-radius: 8px;

        aspect-ratio: 1 / 1;
    }

}



/* =========================================
   Gallery
   もっと見る
========================================= */

.gallery-more {
    text-align: center;
    margin-top: 40px;
}


/* =========================================
   Gallery Lightbox
========================================= */

.gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.88);

    padding: 40px;
}


/* 表示状態 */

.gallery-lightbox.active {
    display: flex;
}


/* 拡大画像 */

.gallery-lightbox-image {

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 6px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);
}


/* ボタン共通 */

.gallery-lightbox button {

    position: absolute;

    border: none;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    cursor: pointer;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    font-size: 36px;

    line-height: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        background 0.2s ease;
}

.gallery-lightbox button:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* 閉じる */

.gallery-close {

    top: 25px;
    right: 25px;

    font-size: 32px !important;
}


/* 前へ */

.gallery-prev {

    left: 25px;

    top: 50%;

    transform: translateY(-50%);
}


/* 次へ */

.gallery-next {

    right: 25px;

    top: 50%;

    transform: translateY(-50%);
}


/* =========================================
   スマートフォン
========================================= */

@media (max-width: 700px) {

    .gallery-lightbox {

        padding: 15px;
    }

    .gallery-lightbox-image {

        max-width: 94vw;
        max-height: 80vh;
    }

    .gallery-lightbox button {

        width: 42px;
        height: 42px;

        font-size: 28px;
    }

    .gallery-close {

        top: 15px;
        right: 15px;
    }

    .gallery-prev {

        left: 10px;
    }

    .gallery-next {

        right: 10px;
    }

}




/* =========================================
   これから、やりたいこと
========================================= */

.future {
    padding: 90px 20px;
    background: #f7f8f4;
}

.future .section-inner {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.future-intro {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;

    color: #444;
    line-height: 2;
    font-size: 1.05rem;
}


/* =========================================
   Future cards
========================================= */

.future-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.future-card {
    position: relative;

    background: white;

    padding: 35px 35px 32px;

    border-radius: 16px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}


/* 番号 */

.future-number {
    display: block;

    font-size: 0.85rem;
    font-weight: bold;

    color: var(--main-color);

    letter-spacing: 0.15em;

    margin-bottom: 8px;
}


/* タイトル */

.future-card h3 {
    font-size: 1.5rem;

    color: #333;

    margin: 0 0 18px;

    line-height: 1.5;
}


/* 本文 */

.future-card p {
    color: #444;

    line-height: 1.9;

    margin: 0 0 15px;
}


/* リスト */

.future-card ul {
    margin: 18px 0 0;
    padding-left: 1.3em;

    color: #444;

    line-height: 1.9;
}

.future-card li {
    margin-bottom: 5px;
}


/* =========================================
   大学生・連携先など
========================================= */

.future-partners {
    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid #e5e5e5;
}

.future-partners h4 {
    font-size: 0.95rem;

    color: #555;

    margin: 0 0 10px;
}

.future-partners ul {
    margin-top: 8px;

    font-size: 0.9rem;
}


/* =========================================
   Hover
========================================= */

.future-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.future-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}


/* =========================================
   スマートフォン
========================================= */

@media (max-width: 700px) {

    .future {
        padding: 65px 15px;
    }

    .future-intro {
        text-align: left;

        font-size: 0.95rem;

        margin-bottom: 35px;
    }

    .future-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .future-card {
        padding: 28px 24px;
    }

    .future-card h3 {
        font-size: 1.3rem;
    }

    .future-card p {
        font-size: 0.95rem;
    }

}




/* =========================================
   活動内容
========================================= */

.history-list {
    padding: 10px 20px 30px;
}

.history-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item time {
    display: block;

    font-size: 0.9rem;
    color: #777;

    margin-bottom: 5px;
}

.history-item h3 {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.history-item p {
    margin: 5px 0;
    line-height: 1.8;
}





/* =========================================
   拠点紹介
========================================= */

.base-header {
    position: relative;
    margin-bottom: 20px;
}


.base-label {
    display: inline-block;

    font-size: 1.5rem;
    font-weight: 700;

    color: var(--main-color);

    letter-spacing: 0.12em;

    padding-bottom: 6px;
    margin-bottom: 8px;

    border-bottom: 3px solid var(--main-color);
}

.base-header h3 {
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.base-status {
    display: inline-block;

    font-size: 0.85rem;

    padding: 4px 10px;

    border-radius: 20px;

    background: #eee;
    color: #666;

    margin-left: 10px;
}

.base-status.completed {
    background: var(--main-color);
    color: white;
}







/* =========================================
 Footer
========================================= */

footer{

    background:#2f4630;

    color:white;

    text-align:center;

    padding:40px 20px;

}


.insta-link {
    display: inline-block;
    padding: 3px 5px;
    background: #F06292;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.insta-link:hover {
    background: #c1275a;
}




/* =========================================
 Smartphone
========================================= */

@media (max-width:768px){

header .container{

    flex-direction:column;

    align-items:flex-start;

}

nav{

    width:100%;

    margin-top:20px;

}

nav ul{

    flex-wrap:wrap;

    gap:15px;

}

h1{

    font-size:2.2rem;

}

.hero{

    min-height:55vh;

}

.hero-copy{

    font-size:1.5rem;

}

.hamburger {
    display: flex;
    position: absolute;
    top: 25px;
    right: 20px;
}
nav {
    display: none;
    width: 100%;
}
nav.active {
    display: block;
}
nav ul {
    flex-direction: column;
    gap: 0;
}
nav ul li {
    width: 100%;
    border-top: 1px solid var(--border);
}
nav ul li a {
    display: block;
    padding: 15px 0;
}
header .container {
    position: relative;
}


}


/* =========================================
   Responsive Hero
========================================= */
@media (max-width:768px){

    .hero {

        min-height:50vh;
        background-size:auto 100%;
        background-position:center center;

    }


    .hero-text h1 {

        font-size:1.8rem;
        line-height:1.4;

    }



    .hero-text {
		font-size:1.2rem;
        width:calc(100% - 40px);
        padding:20px;
        border-radius:12px;
    }


    .hero-subtitle {
        font-size:1.1rem;
        letter-spacing:1px;
    }


    .hero-copy {
        font-size:1.2rem;
        margin:15px 0;
    }


    .hero-message {
        font-size:0.9rem;
    }

}


/* =========================================
   写真共有
========================================= */

.photo-share {
    padding: 50px 20px;
}

.photo-share h1 {
    text-align: center;
    margin-bottom: 10px;
}

#photo-count {
    text-align: center;
    color: #777;
    margin-bottom: 25px;
}

.photo-grid {
    width: min(1100px, 92%);
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.photo-grid a {
    display: block;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 12px;

    background: #ddd;
}

.photo-grid img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.35s ease;
}

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


@media (max-width: 700px) {

    .photo-share {
        padding: 35px 10px;
    }

    .photo-grid {
        width: 100%;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;
    }

    .photo-grid a {
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }

}
