/* style.css */

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    background: #fff;
    gap: 40px;
}

.logo { 
    font-size: 1.5em; 
    font-weight: bold; 
}

nav { display: flex; gap: 20px; }
nav a { text-decoration: none; color: #007bff; font-weight: bold; }

/* 草の画像 */
.grass-banner {
    width: 100%;
    height: 150px;
    background-image: url('images/kusa.jpg');
    background-size: contain;
    background-repeat: repeat-x;
    background-position: bottom;
}

/* メインコンテンツ（全ページ共通の土台） */
main { 
    padding: 40px 50px; 
    max-width: 900px; /* 全ページの横幅を900pxに統一 */
    margin: 0 auto;  /* 真ん中寄せ */
}
h1 { border-bottom: 2px solid #ccc; padding-bottom: 10px; }
ul { list-style: none; padding: 0; }
li { margin-bottom: 10px; }

.footer-image {
    text-align: center;
    margin-top: 40px;
}
.footer-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 現在開いているページのデザイン設定 */
nav a.current {
    color: #fff;               
    background-color: #5bc0de; 
    padding: 10px 25px;        
    border-radius: 4px;        
    text-decoration: none;     
}

/* 通常時のリンク */
nav a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    padding: 10px 15px;        
}

/* マウスを乗せた時の設定 */
nav a:hover {
    color: #fff;              
    background-color: #ccc;   
    padding: 10px 25px;       
    border-radius: 4px;       
    text-decoration: none;
    transition: all 0.3s ease; 
}

/* 見出しの設定 */
main h2 {
    border-left: 8px solid #5bc0de; 
    padding-left: 15px;             
    color: #5bc0de;                 
    font-family: "Yu Gothic", "游ゴシック", "YuGothic", "游ゴシック体", "Hiragino Kaku Gothic ProN", sans-serif; 
    font-weight: 600;               
    font-size: 32px; 
    letter-spacing: 0.05em; 
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* リストの調整 */
main ul {
    list-style: none;
    padding-left: 0;
}
main li {
    margin-bottom: 8px;
}

/* 指定したIDの画像だけが拡大されます */
#main-footer-img {
    transform: scale(1.5);
    margin: 40px 0;
}

/* お問い合わせ全体のレイアウト */
.contact-container {
    display: flex; 
    gap: 40px;     
    align-items: flex-start;
}

.contact-left {
    flex: 1; 
}

.contact-right {
    flex: 2; 
}

.contact-main-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* フォームの見た目調整 */
.contact-right input, 
.contact-right textarea {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box; 
}

.contact-right button {
    background-color: #5bc0de;
    color: white;
    padding: 10px 30px;
    border: none;
    cursor: pointer;
}

/* お問い合わせページの左側の画像設定 */
.my-toiawase-img {
    width: 200px;  
    height: auto;  
    display: block;
    margin-left: 20px; 
}

/* マップの枠組み設定 */
.map-container {
    margin-top: 30px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

/* ====================================================================
   🆕 活動内容セクション専用（PC用追加スタイル）
   ==================================================================== */
.intro-text, .closing-text {
    font-size: 1.05em;
    line-height: 1.8;
    margin: 30px 0;
}

.closing-text {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border-left: 5px solid #5bc0de;
}

.activity-section {
    margin-top: 40px;
}

/* 各活動の横並びブロック */
.activity-item {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

/* 2つ目の項目（園芸福祉）の左右を反転させてジグザグにする */
.activity-item:nth-child(even) {
    flex-direction: row-reverse;
}

.activity-text {
    flex: 1.6; /* テキスト側を広く */
}

/* ★ここで画像の最大横幅を320pxに完全固定して巨大化を防ぎます */
.activity-img {
    flex: 1;
    max-width: 320px !important;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

main h3 {
    font-size: 22px;
    color: #333;
    border-bottom: 2px dashed #5bc0de;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: "Yu Gothic", "游ゴシック", sans-serif;
}

.activity-item p {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

/* ====================================================================
   📱 スマホ用の画面調整（レスポンシブ）
   ==================================================================== */
@media screen and (max-width: 768px) {

    header {
        flex-direction: column;
        padding: 15px 10px;
        text-align: center;
    }

    .logo {
        margin-bottom: 12px;
        font-size: 20px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;    
        justify-content: center;
        gap: 10px 15px;     
    }

    nav a {
        font-size: 14px;    
        padding: 5px;
    }

    main {
        padding: 15px;
    }

    h1 {
        font-size: 20px;    
        line-height: 1.4;
    }

    main h2 {
        font-size: 22px;
        margin-top: 20px;
    }

    section ul {
        padding-left: 10px; 
    }

    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-left, .contact-right {
        width: 100%;
    }

    .my-toiawase-img {
        margin: 0 auto 20px;
    }

    /* スマホ時は縦並びに戻す */
    .activity-item, 
    .activity-item:nth-child(even) {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
    }

    /* スマホ時は画面幅に合わせる */
    .activity-img {
        max-width: 100% !important;
        width: 100%;
    }

    main h3 {
        font-size: 18px;
    }
    
    .intro-text, .closing-text {
        font-size: 14px;
    }

    img, #main-footer-img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 20px auto 0;
    }
}