/*
 * front-page.css
 * 大隅情報メディアセンター トップページ専用スタイル
 * 対象テンプレート: front-page.php
 * 依存: style.css（CSS変数・共通クラスを継承）
 */

/*===========================
   Front-Page 
=============================*/
/*--- 1. First View (Hero) ---*/
.hero {
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(hwb(223 65% 21% / 0.5), rgba(75, 114, 231, 0.5)),  url('../images/image_5.png') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--osumi-bg);
    margin-top: 40px; /* Header height */
}

.hero-content h1 {
    color: #ffff;
    font-family: var(--font-serif);
    text-shadow: 2px 2px 4px rgba(40, 20, 10, 0.8);
    font-weight: 600;
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.hero-content p {
    font-size: 1.4rem;
    color: #ffff; /* 少し濃いクリーム色 */
    font-family: var(--font-sans);
    text-shadow: 1px 1px 3px rgba(40, 20, 10, 0.8);
    letter-spacing: 0.05em; /* 文字間を少し空けてゆったりさせる */
    margin-bottom: 3rem; 
    font-weight: 500;
}
 
.hero-cta { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
}
/* --- レスポンシブ (SP) --- */
@media (max-width: 768px) {
.hero { margin-top: 60px; height: 100vh; }
.hero-content h1 { font-size: 1.7rem; }
.hero-content p { font-size: 1.1rem; }
.hero-cta { flex-direction: column; align-items: center; }
}

/* --- 2. Core Section --- */
.core-section {
    padding: 80px 0 40px 0; 
    background-color: var(--osumi-bg); 
}
.core-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.core-item { 
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.core-item h3 { 
    font-family: var(--font-serif); 
    font-size: 1.5rem; 
    color: var(--osumi-navy); 
    margin-bottom: 15px; 
    border-bottom: 2px solid var(--osumi-orange); 
    display: inline-block; 
    padding-bottom: 5px; 
}
@media (max-width: 768px) {
    .core-grid { grid-template-columns: 1fr;}
}

/* --- 3. Engines Section --- */
.engines-section { 
    padding: 40px 0 80px 0; 
    background: var(--osumi-bg); 
}
.engines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.engine-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.engine-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.engine-title { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--osumi-navy); 
    margin-bottom: 20px; 
}
.engine-desc { 
    margin-bottom: 30px; 
    font-size: 0.95rem; 
}
@media (max-width: 768px) {
.engines-grid { grid-template-columns: 1fr; }
}

/* --- 4．News Section Styles --- */
.news-section {
    padding: 40px 0;
    background-color: var(--osumi-bg);
}

    /* Tab Navigation */
.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--osumi-navy);
    border-radius: 30px;
    cursor: pointer;
    color: var(--osumi-navy);
    font-weight: 700;
    transition: all 0.3s ease;
    background-color: transparent;
}

.tab-btn.active {
    background-color: var(--osumi-navy);
    color: var(--color-white);
}
@media (max-width: 768px) {           
.tabs { flex-wrap: wrap; }
.tab-btn { flex: 1; text-align: center; font-size: 0.9rem; }
}

    /* Tab Content Grid */
.tab-content {
    display: none; /* 初期状態は非表示 */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid; /* activeクラスがついた時だけグリッド表示 */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 992px) {
    .tab-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tab-content { grid-template-columns: 1fr; }/* スマホでは1列 */
    .tab-btn { font-size: 0.85rem; padding: 10px 16px; }
}

   /* カードデザイン */
.news-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* 高さを揃える */
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(26, 54, 93, 0.1);
    border-color: var(--osumi-orange);
}

  /* サムネイルエリア */
.news-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9の比率を固定 */
    background-color: #eee;
    overflow: hidden;
}

.news-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに収める */
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

  /* カード本文エリア */
.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 下揃えのために伸ばす */
}

  /* タイトル */
.news-title {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--osumi-navy);
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 700;
}
  /* 複数行省略 */
.news-excerpt {
    font-size: 1rem;
    color: var(--osumi-text);
    line-height: 1.6;
    /* 3点セット + overflow */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 2行で省略 */
    overflow: hidden;
    margin-bottom: 10px;
}
  /* 日付け　*/
.news-date {
    font-size: 0.9rem;
    color: #999;
    text-align: right;
    margin-top: auto;
}
    /* 記事がない時のメッセージ */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #999;
}

/* --- 5.フリーペーパー最新号セクション--- */
.fp-latest-section {
    padding: 60px 0;
    background-color: var(--osumi-bg);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* カード全体のレイアウト（横並び） */
.fp-latest-card {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 左側：表紙画像 */
.fp-latest-visual {
    flex: 0 0 35%; /* 幅35% */
    position: relative;
    margin-right: 40px;
}

.fp-latest-visual img {
    border-radius: 4px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.fp-latest-visual:hover img {
    transform: rotate(-2deg) scale(1.02); /* ホバーで少し傾く動き */
}

/* NEWバッジ */
.badge-new {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #e74c3c;
    color: var(--color-white);
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* 右側：情報エリア */
.fp-latest-info {
    flex: 1;
}

.fp-meta-vol {
    display: inline-block;
    background: var(--osumi-text);
    color:  var(--color-white);
    font-size: 0.9rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.fp-latest-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.fp-latest-title a {
    color: var(--osumi-text);
}

.fp-latest-desc {
    background: var(--osumi-bg);
    padding: 15px;
    border-left: 4px solid var(--osumi-navy);
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--osumi-text);
}

.feature-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* ボタンエリア */
.fp-latest-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-accent-outline {
    border: 2px solid var(--osumi-navy);
    color: var(--osumi-navy);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-accent-outline:hover {
    background: var(--osumi-text);
    color: #fff;
}

.fp-archive-link {
    text-align: right;
    font-size: 0.9rem;
}

.fp-archive-link a {
    color: var(--osumi-navy);    
    border-bottom: 1px solid var(--color-sub);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .fp-latest-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .fp-latest-visual {
        margin-right: 0;
        margin-bottom: 20px;
        flex: 0 0 100%;
        width: 90%; /* スマホでは画像を少し小さめに */
        margin-left: auto;
        margin-right: auto;
    }
    .fp-latest-actions {
        flex-direction: column;
    }
    .fp-latest-desc {
        text-align: left;
    }
}

/* --- 6. About FROM70 --- */
.about-section { 
    padding: 80px 0; 
    background: var(--osumi-navy); 
    color: var(--color-white); 
    text-align: center; 
}
.about-section .section-title { 
    color: var(--color-white); 
}
.about-text { 
    max-width: 600px; 
    margin: 0 auto 40px; 
    font-size: 1.1rem; 
}
.btn-white { 
    background: var(--color-white); 
    color: var(--osumi-navy); 
}

/* =========================================
   FROM70 編集ログ スタイル
   ========================================= */
.from70-log-section {
    padding: 40px 0;
    background-color: var(--osumi-bg);
}

.log-grid {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-sub);
}

.log-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-sub);
    font-family: var(--font-sans);
    color: var(--osumi-text);
    transition: background 0.3s;
}

.log-item:hover {
    background-color: var(--osumi-bg);
}

.log-date {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--osumi-text);
    width: 120px;
    flex-shrink: 0;
}

.log-content {
    flex-grow: 1;
}

.log-title {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.log-arrow {
    color: var(--osumi-navy);
    font-weight: bold;
    font-size: 1.4em;        /* 文字サイズを大きく */
    margin-left: 20px;
    display: inline-block;
    transform: scaleX(1.3);  /* 横に引き伸ばして太く見せる */
    line-height: 1;
}

/* SP対応 */
@media (max-width: 768px) {
    .log-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .log-date {
        margin-bottom: 5px;
    }
}
-e 


/* =========================================
   town-pickup-section.css
   トップページ「大隅のお店・施設」セクション
   style.css の変数・共通クラスを継承して使用
   ========================================= */


/* ------------------------------------------
   1. セクション全体
------------------------------------------ */
.town-pickup-section {
    padding: 60px 0 70px;
    background-color: var(--bg-paper); /* 歴史・アーカイブと同じ温かみのある白 */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* セクションヘッダー（タイトル＋サブタイトル） */
.town-pickup-section .section-header {
    margin-bottom: 40px;
}

/* section-title / section-subtitle は style.css から継承 */


/* ------------------------------------------
   2. スライダートラック（横スクロール）
------------------------------------------ */
.town-slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;      /* スナップスクロール */
    -webkit-overflow-scrolling: touch;   /* iOS慣性スクロール */
    padding-bottom: 16px;               /* スクロールバー分の余白 */
    /* スクロールバーを細くして目立たなくする */
    scrollbar-width: thin;
    scrollbar-color: var(--osumi-orange) #f0f0f0;
}

.town-slider-track::-webkit-scrollbar {
    height: 4px;
}

.town-slider-track::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.town-slider-track::-webkit-scrollbar-thumb {
    background: var(--osumi-orange);
    border-radius: 4px;
}


/* ------------------------------------------
   3. タウンカード
   .news-card の構造を踏まえつつ横並び専用にカスタマイズ
------------------------------------------ */
.town-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 280px;                    /* カード幅を固定してスクロール */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;           /* スナップ対象 */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.town-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(26, 54, 93, 0.12);
    border-color: var(--osumi-orange);
    opacity: 1; /* a:hover の opacity 上書き */
}

/* 画像エリア */
.town-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;               /* 正方形に近い比率で統一 */
    background-color: #eee;
    overflow: hidden;
}

.town-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.town-card:hover .town-card-img img {
    transform: scale(1.06);
}

/* ラジオ紹介バッジ */
.town-radio-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--osumi-navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* カード本文エリア */
.town-card-body {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

/* エリアタグ：.news-tag を継承 */
.town-card-body .news-tag {
    font-size: 0.78rem; /* カード内は少し小さく */
    padding: 3px 8px;
}

/* 店舗名 */
.town-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--osumi-navy);
    line-height: 1.4;
    margin: 0;
    /* 2行で省略 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* キャッチコピー */
.town-card-catch {
    font-size: 0.88rem;
    color: var(--color-sub);
    line-height: 1.6;
    margin: 0;
    /* 2行で省略 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


/* ------------------------------------------
   4. フッター（「全店舗を見る」ボタン）
------------------------------------------ */
.town-pickup-footer {
    text-align: center;
    margin-top: 40px;
}

/* btn / btn-primary は style.css から継承 */


/* ------------------------------------------
   5. レスポンシブ
------------------------------------------ */

/* タブレット：カード幅を少し狭く */
@media (max-width: 1024px) {
    .town-card {
        flex: 0 0 240px;
    }
}

/* スマホ：カードをほぼ全幅にして1枚ずつ見せる */
@media (max-width: 768px) {
    .town-pickup-section {
        padding: 50px 0 60px;
    }

    .town-slider-track {
        gap: 16px;
        /* コンテナの padding を超えて画面端まで伸ばす */
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .town-card {
        flex: 0 0 78vw; /* 画面幅の78%：次のカードが少し見える */
    }
}

/* ==========================================================================
   engines-section: 2列グリッド・フリーペーパー横長カード
   ========================================================================== */

/* 上段：2列グリッド（メディアラボ・FROM70） */
.engines-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

/* engine-title 内の小見出し（部門名） */
.engine-title-sub {
    font-size: 0.75rem;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* 下段：フリーペーパー行ラッパー */
.engines-fp-row {
    margin-top: 30px;
}

/* フリーペーパー横長カード */
.engine-card-wide {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
}

/* フリーペーパー横長カード内の本文ラッパー */
.engine-card-wide-body {
    flex: 1;
}

/* ボタン折り返し禁止（フリーペーパー最新号ボタン） */
.btn-nowrap {
    white-space: nowrap;
    flex-shrink: 0;
}

/* 発行準備中・活動ログ「もっと見る」ラッパー */
.log-more-wrap {
    text-align: center;
    margin-top: 30px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .engines-grid-2col {
        grid-template-columns: 1fr;
    }
    .engine-card-wide {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .btn-nowrap {
        white-space: normal;
        flex-shrink: 1;
    }
}