/* ==========================================
   index.html 専用スタイル
   ========================================== */

/* ------------------------------------------
   共通余白（ユーティリティ）クラス
   ------------------------------------------ */


/* ------------------------------------------
   1. ヒーローエリア（全画面画像 ＋ 縦書きテキスト）
   ------------------------------------------ */
/* css/index.css */
/* css/index.css */
.hero-container {
    position: relative;
    width: 100%;       /* 100vw から 100% に変更 */
    /* left: 50%; を削除 */
    /* transform: translateX(-50%); を削除 */
    height: 100vh;
    overflow: hidden;
}
/* 背景画像（上端基準で全面表示） */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* 上30%が見切れないように上基準に配置 */
}

/* 縦書きテキスト（中央配置） */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    writing-mode: vertical-rl; /* 縦書き（右から左） */
    text-orientation: upright;  /* 英数字（IP等）を真っ直ぐ立たせる */
    
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e35;            /* 画像に合わせた落ち着いた色 */
    letter-spacing: 0.2em;
    line-height: 1.8;
}


/* ------------------------------------------
   2. プチ解説（みやま市について）
   ------------------------------------------ */
.sitetext {
    display: flex;
    justify-content: center; /* 横方向の真ん中寄せ */
    width: 100%;
}

.description {
    width: 60%;          /* 見やすさ重視 */
    text-align: center;  /* 文章自体を中央揃え */
    font-size: 1.2rem;     /* 標準サイズ */
    line-height: 1.8;
}


/* ------------------------------------------
   3. お知らせセクション
   ------------------------------------------ */
/* お知らせ枠 */
.notice-container {
    border: 2px solid #e0dcd3; /* タンカラーに合う枠色 */
    border-radius: 16px;       /* 角丸 */
    padding: 24px;
    background-color: #fff;   /* 背景色 */
}

/* 見出し */
.notice-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #333;
}

/* 横並び＆スライドエリア */
.notice-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;              /* 横スクロール許可 */
    scroll-snap-type: x mandatory; /* スライド時にピタッと止まる */
    padding-bottom: 8px;           /* スクロールバーとの隙間 */
}

/* スクロールバーの見た目 */
.notice-slider::-webkit-scrollbar {
    height: 6px;
}
.notice-slider::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

/* カード1個あたりの設定 */
.notice-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
}

.notice-date {
    font-size: 12px;
    color: #888;
}

.notice-card-title {
    font-size: 15px;
    font-weight: bold;
    margin: 6px 0;
}

.notice-text {
    font-size: 13px;
    color: #555;
}

