body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fffce1;
}

nav {
    background-color: #c6d959;
    text-align: center;
    padding: 16px 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid #b0c44a;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 0;
}

nav a {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin: 0 18px;
    padding: 6px 2px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}

nav a:hover {
    color: #2e5a1e;
    border-bottom: 2px solid #2e5a1e;
}

section {
    padding: 40px 20px;
    text-align: center;
}

section h2 {
    margin-bottom: 35px;
    color: #556b2f;
    font-size: 2.4rem;
    border-bottom: 2px solid #d2e3c8;
    padding-bottom: 18px;
    display: inline-block;
}

section h2 i {
    margin-right: 6px;
    opacity: 0.8;
}

figure {
    margin: 0;
    padding: 0;
}

#hero {
    color: #333;
    padding: 30px 20px 20px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: 300;
    text-align: center;
    background: linear-gradient(90deg, #004040, #006060);
    -webkit-background-clip: text;
    color: transparent;
}

#hero p {
    font-size: 1.2rem;
    color: #666;
    letter-spacing: 0.08em;
    margin-bottom: 25px;
}


#about .box ul {
    list-style: none;
    /* リストの点を消す */
    padding-left: 1rem;
    /* 左側のパディングをなくす */
}

#about .box li {
    display: flex;
    /* フレックスボックスを適用 */
    align-items: flex-start;
    /* テキストの上揃え */
    gap: 20px;
    /* 項目名と内容の間隔 */
}

#about .box li strong {
    flex-shrink: 0;
    /* 項目名の幅を固定し、折り返させない */
    width: 4rem;
    /* 適度な幅を設定 */
    text-align: left;
    /* 右揃えにして見やすく */
}

#about .box li div {
    flex: 1;
    /* 本文全体を1つのまとまりに */
}



.box {
    border: 1px solid #d2e3c8;
    padding: 28px 30px;
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
}

.box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.box h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
    color: #3d5a1e;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-table th,
.info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    background-color: #e8f3d0;
    width: 120px;
    font-weight: 500;
    color: #3d5a1e;
}

.activities,
.events {
    list-style: none;
    padding: 0;
}

.activities li,
.events li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.activities li i,
.events li i {
    color: #6b8f52;
    margin-right: 8px;
}

.cactus {
    width: 80%;
    /* 画像サイズ調整 */
    max-width: 300px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0px;
    text-align: center;
}

#gallery figure {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

#gallery img:hover {
    transform: scale(1.05);
}


#contact form {
    max-width: 600px;
    margin: 0 auto;
}

#contact input,
#contact textarea {
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #d2e3c8;
    border-radius: 6px;
    background-color: #fafafa;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #8aaf5c;
    box-shadow: 0 0 0 3px rgba(138, 175, 92, 0.15);
}

#contact button {
    background-color: #556b2f;
    color: white;
    border: none;
    margin-top: 10px;
    padding: 14px 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, transform 0.15s ease;
}

#contact button:hover {
    background-color: #6b8f52;
    transform: translateY(-1px);
}

#contact button:active {
    transform: translateY(0);
}

#message {
    height: 8rem;
}

#responseMessage {
    display: none;
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}


/* タイムライン装飾 */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #c6d959;
}

.timeline li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 8px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 10px;
    width: 10px;
    height: 10px;
    background: #8aaf5c;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #c6d959;
}

.year {
    font-weight: 500;
    color: #556b2f;
}

/* セクション背景の交互色 */
#summary {
    background-color: rgba(210, 227, 200, 0.15);
}

#contact {
    background-color: rgba(210, 227, 200, 0.15);
}

/* フッター */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #e0e0d0;
    background-color: rgba(210, 227, 200, 0.2);
}

@media (max-width: 768px) {
    section {
        padding: 30px 15px;
    }

    #hero {
        padding: 20px 15px;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.85rem;
    }

    .box {
        padding: 20px 18px;
    }

    .box h3 {
        font-size: 1.2rem;
    }
}