/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    
}

/********************** ヘッダー **********************/
.header {
    background: linear-gradient(135deg, #2c5530 0%, #4A8C5A 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

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

.logo-img {
    height: 40px;
    margin-bottom: 10px;
}
.logo-mark {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;

}

.site-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/********************** メインコンテンツ **********************/
.main {
    padding: 40px 0;
}

/********************** ヒーローセクション **********************/
.hero {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    padding: 40px 0;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #666;
}

.login-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.login-text {
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-form label {
    font-weight: bold;
    color: #333;
}

.login-form input {
    width: 300px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #4a8c5a;
}

.login-btn {
    background: #4A8C5A;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2c5530;
}
/********************** セクション共通 **********************/
.section-title {
    font-size: 1.5rem;
    color: #2c5530;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4A8C5A;
    font-weight: bold;
}

/********************** お知らせセクション（新デザイン） **********************/
.news-section {
    margin-bottom: 40px;
}

.news-section .container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* お知らせヘッダー */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.news-header-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.05em;
}



.news-view-all:hover {
    color: #2c5530;
    border-bottom-color: #2c5530;
}

/* お知らせリスト */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.news-item:hover {
    background-color: #f8f9fa;
}

/* 画像 */
.news-image-wrapper {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* コンテンツ */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
}

.news-date {
    font-weight: 500;
}

.news-category {
    color: #888;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 矢印アイコン */
.news-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.news-arrow::after {
    content: '→';
    font-size: 1.2rem;
    color: #666;
}

.news-item:hover .news-arrow {
    background-color: #4A8C5A;
    border-color: #4A8C5A;
}

.news-item:hover .news-arrow::after {
    color: white;
}

/* もっと見るボタン（非表示） */
.news-more {
    display: none;
}


/********************** お知らせ一覧ページ用 **********************/

    /* 一覧のコンテナ */
    .news-list-section {
        padding: 2rem 0;
    }
    
    .news-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

/********************** 天気予報セクション **********************/

    /* パネル */
    .weather-panel{
        background:#f6f8f7;
        border-radius:10px;
        padding:16px;
        box-shadow:0 2px 10px rgba(0,0,0,.06);
    }
    
    /* 上段：今日7 / 明日3（PC基準） */
    .weather-top{
        display:grid;
        grid-template-columns:7fr 3fr;
        gap:16px;
        margin-bottom:16px;
        align-items:stretch; /* 2カードの高さ揃え */
    }
    
    /* カード共通 */
    .weather-card{
        background:#fff;
        border-radius:12px;
        box-shadow:0 2px 8px rgba(0,0,0,.08);
        padding:18px;
        text-align:center;
    }
    .weather-card .rain{ font-size:.9rem; color:#666; margin-top:4px; text-align:center; }
    
    /* 今日 */
    .weather-card.today .date{
        margin-bottom:8px; color:#5b6f63; font-size:1.1rem; font-weight:600;
    }
    .weather-card.today .icon{
        width:80px; height:80px; display:block; margin:10px auto;
    }
    .weather-card.today .current-temp .label{ font-size:.85rem; color:#666; }
    .weather-card.today .current-temp .value{ font-size:2.2rem; font-weight:800; color:#2d5f3f; }
    
    /* 明日（PCで7:3の右カード） */
    .weather-card.tomorrow{
        display:flex; flex-direction:column; justify-content:space-between;
        align-items:center; min-height:280px;
    }
    .weather-card.tomorrow .date{ font-size:1.1rem; font-weight:600; color:#333; margin-bottom:10px; }
    .weather-card.tomorrow .icon{ width:70px; height:70px; display:block; margin:10px auto; }
    
    /* 最高/最低の色（全体で共通） */
    .hi{ color:#e65100; font-weight:700; }
    .lo{ color:#2680c2; font-weight:700; }
    
    /* 下段：残り日数（PC＝均等グリッド） */
    .weather-bottom{
        display:grid;
        grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
        gap:16px;
        justify-items:center;
        align-items:stretch;
        margin-top:14px;
    }
    .weather-chip{
        width:100%; max-width:220px;
        background:#fff; border-radius:10px; box-shadow:0 1px 6px rgba(0,0,0,.07);
        text-align:center; padding:10px;
    }
    .weather-chip .date{
        font-size:.9rem; color:#2d5f3f; margin-bottom:6px;
        text-align:center; display:block;
    }
    .weather-chip .icon{ width:50px; height:50px; display:block; margin:6px auto; }
    .weather-chip .temp{ font-size:.85rem; }
    .weather-chip .rain{ font-size:.75rem; color:#666; text-align:center; }
    
    /* -------------------- スマホ（〜768px） -------------------- */
    @media (max-width:768px){
    
        /* 上段は1カラム。明日も表示（小さめカードで今日の下） */
        .weather-top{
        grid-template-columns:1fr;
        gap:12px;
        }
        .weather-card.tomorrow{
        display:flex; flex-direction:column; align-items:center; justify-content:space-between;
        padding:14px; min-height:220px;
        }
        .weather-card.tomorrow .icon{ width:60px; height:60px; margin:6px auto; }
    
        /* 残り日数は横スライダー（3枚見える目安） */
        .weather-bottom{
        display:flex;
        gap:10px;
        overflow-x:auto;
        padding-bottom:6px;
        scroll-snap-type:x mandatory;
        }
        .weather-chip{
        flex:0 0 calc(33.33% - 10px);
        min-width:140px; max-width:200px;
        scroll-snap-align:start;
        }
        .weather-bottom::-webkit-scrollbar{ height:6px; }
        .weather-bottom::-webkit-scrollbar-thumb{ background:#cfd7d0; border-radius:3px; }
        .weather-bottom::-webkit-scrollbar-track{ background:transparent; }
    
        /* 最高/最低は縦2行表示（JSで入れる .sep は隠す） */
        .weather-card .temp, .weather-chip .temp{
        display:flex; flex-direction:column; align-items:center; gap:2px;
        }
        .weather-card .temp .sep, .weather-chip .temp .sep{ display:none; }
    }
    
    /* -------------------- タブレット/PC（769px〜）再保証 -------------------- */
    @media (min-width:769px){
        .weather-top{
        grid-template-columns:7fr 3fr;
        gap:16px; align-items:stretch;
        }
        .weather-card.big{
        display:flex; flex-direction:column; justify-content:space-between;
        }
        .weather-bottom{
        display:grid;
        grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
        gap:16px; justify-items:center; align-items:stretch;
        overflow:visible; scroll-snap-type:none;
        }
    }

/********************** FAQセクション **********************/
.faq-section .container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.faq-embed {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}


/********************** フッター **********************/
.footer {
    background: linear-gradient(135deg, #2c5530 0%, #4A8C5A 100%);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
.company-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem; /* トップリンクと少し間をあける */
}

/* トップに戻るリンク */
.back-to-top a {
    color: #5bc281 !important ;            
    font-size: 0.9rem;
    text-decoration: none;
}

.back-to-top a:hover {
    color: #70a368;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .login-form input {
        width: 100%;
        max-width: 300px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-container,
    .news-section .container,
    .weather-section .container,
    .faq-section .container {
        padding: 20px 15px;
    }

    /* お知らせセクション：モバイル対応 */
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-item {
        grid-template-columns: 80px 1fr auto;
        gap: 15px;
        padding: 15px 0;
    }

    .news-image-wrapper {
        width: 80px;
        height: 80px;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-arrow {
        width: 36px;
        height: 36px;
    }

    .news-arrow::after {
        font-size: 1rem;
    }
}
