/*
* front-page.css
* フロントページのスタイル定義
* 
* セクション:
* - ヒーロー: ページ上部の背景画像エリア
* - フロントセクション: ニュース・ライブの共通スタイル
* - ニューステーブル: ニュース一覧の表組み
* - ライブテーブル: ライブイベント一覧の表組み
*/

.front-news-section h2,
.front-live-section h2 {
    margin: 20px 0;
    font-size: var(--fs-front-section-title);
}

/* =====================================
   HERO SECTION - ページ上部のメインビジュアル
   ===================================== */
.hero-section {
    background-color: var(--header-background-color);
    text-align: center;
    height: calc(100vh - var(--header-height));
    z-index: 22;
    position: relative;
}

/* ヒーローセクション内のサイトコンテナ: 余白を適用しない */
.hero-section .site-container {
    padding: 0;
}

.hero-section img {
    width: var(--section-width);
    aspect-ratio: auto;
    max-height: calc(100vh - var(--header-height));
    object-fit: cover;
}

/* SNSリンクコンテナ: 画像下部に配置 */
.hero-sns-links {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    padding: 15px 25px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
}

.sns-icon {
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.sns-icon:hover {
    opacity: 0.8;
}

/* ヒーロー部分のSNSアイコンは白色 */
.hero-sns-links .sns-icon {
    color: var(--site-background-color);
}

.front-news-section,
.front-live-section {
    width: var(--section-width);
    margin: 50px auto 0;
}

.front-news-item a,
.front-live-item a {
    text-decoration: none;
}

/* =====================================
   NEWS SECTION - ニュース一覧セクション
   ===================================== */

/* 日付のみ大きく */
.news-date-only {
    font-size: var(--fs-date-front);
    display: inline-block;
    line-height: 1;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
}

.news-table a {
    text-decoration: none;
}

.news-table tr {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.news-table th:first-child,
.news-table td:first-child {
    width: 12%;
    padding: 0px;
}

.news-table th:nth-child(2),
.news-table td:nth-child(2) {
    width: 8%;
}

.news-table th:nth-child(3),
.news-table td:nth-child(3) {
    width: 100%;
    font-size: var(--fs-front-link-title);
}

.news-table-head th {
    padding: 5px 0;
}


.news-item td {
    padding: 0;
}

.news-title {
    font-weight: bold;
}

.news-category-label {
    font-size: var(--fs-label);
    display: none;
}

.news-weekday {
    display: none;
}

/* ホバー効果: ニュース行にマウスを乗せると背景色が変わる */
.news-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

/* =====================================
   LIVE SECTION - ライブイベント一覧セクション
   ===================================== */

/* 日付のみ大きく */
.live-date-only {
    font-size: var(--fs-date-front);
    display: inline-block;
    line-height: 1;
}

.live-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

/* 列の幅を指定 */
.live-table th:first-child,
.live-table td:first-child {
    width: 12.5%;
}

.live-table th:nth-child(2),
.live-table td:nth-child(2) {
    width: 42.5%;
}

.live-table th:nth-child(3),
.live-table td:nth-child(3) {
    width: 22.5%;
}

.live-table th:nth-child(4),
.live-table td:nth-child(4) {
    width: 22.5%;
}

td {
    padding: 15px 0;
}

.live-city-venue {
    font-weight: bold;
}

/* ホバー効果: ライブイベント行にマウスを乗せると背景色が変わる */
.upcoming-live-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.news-category-mobile {
    display: none;
}

.news-archive-link,
.live-archive-link {
    width: 100%;
    text-align: right;
    margin: 20px 0;
}

.news-archive-link a,
.live-archive-link a {
    font-size: var(--fs-h4);
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
}

.live-weekday {
    display: none;
}

.live-table th {
    padding: 10px 10px;
    position: relative;
}

.live-table th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    border-right: 1px solid #000000;
}

.live-table td {
    padding: 10px 10px;
    margin: 10px 0;
    position: relative;
}

.live-table td::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    border-right: 1px solid #000000;
}

/* 最後の列には右ボーダーを付けない */
.live-table th:last-child::after,
.live-table td:last-child::after {
    display: none;
}

.live-table td:nth-child(4) {
    font-size: var(--fs-small);
}

/* =====================================
   MOBILE RESPONSIVE - スマートフォン向けメディアクエリ
   ===================================== */
@media screen and (max-width: 768px) {
    .hero-section {
        height: auto;
    }

    .hero-section img {
        width: 100%;
        aspect-ratio: auto;
        max-height: 40vh;
        object-fit: cover;
    }

    .front-news-section,
    .front-live-section {
        margin-top: 30px;
        padding: 0 10px;
        width: var(--section-width-mobile);
    }

    .front-news-section h2,
    .front-live-section h2 {
        margin: 10px 0;
    }

    .news-table {
        display: block;
        width: 100%;
    }

    .news-table thead {
        display: none;
    }

    .news-table tbody {
        display: block;
    }

    .news-item {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        gap: 0;
    }

    .news-table td {
        padding: 0;
        border: none;
        box-sizing: border-box;
    }

    .news-table td:nth-child(1) {
        width: 30%;
    }

    .news-table td:nth-child(2) {
        width: 70%;
    }

    .news-table td:nth-child(3) {
        width: 100%;
    }

    /* ライブテーブルのレスポンシブ対応 */
    .live-table {
        display: block;
        width: 100%;
    }

    .live-table-head {
        display: none;
    }

    .live-table tbody {
        display: block;
    }

    .upcoming-live-item,
    .past-live-item {
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
        gap: 0;
    }

    .live-table td {
        margin: 0;
        padding: 0;
        border: none;
        box-sizing: border-box;
    }

    .live-table td:nth-child(1) {
        width: 100%;
    }

    .live-table td:nth-child(2) {
        width: 100%;
    }

    .live-table td:nth-child(3) {
        width: 50%;
        display: flex;
        align-items: center;
    }

    .live-table td:nth-child(3)::before {
        content: "OP/STT: ";
        margin-right: 5px;
    }

    .live-table td:nth-child(4) {
        width: 50%;
        display: flex;
        align-items: center;
    }

    .live-city-venue {
        display: block;
        word-break: break-word;
        white-space: normal;
        font-size: var(--fs-front-link-title);
    }

    td {
        padding: 0;
    }

    .sns-icon {
        font-size: 1.5rem;
    }

    .hero-sns-links {
        gap: 1.5rem;
        padding: 5px 15px;
        bottom: 3%;
    }

    .news-category-mobile {
        display: block;
    }

    .news-category-pc {
        display: none;
    }

    .live-table th::after,
    .live-table td::after {
        display: none;
    }
}

/* =====================================
   EXTRA SMALL DEVICES - 超小型デバイス向けメディアクエリ
   ===================================== */
@media screen and (max-width: 480px) {
    .hero-section {
        height: auto;
    }

    .hero-section img {
        width: 100%;
        aspect-ratio: auto;
        max-height: 40vh;
        object-fit: cover;
    }

    .front-news-section,
    .front-live-section {
        margin-top: 20px;
        padding: 0 5px;
    }

    .front-news-section h2,
    .front-live-section h2 {
        margin: 10px 0;
    }

    /* ニューステーブルの超小型デバイス対応 */
    .news-table {
        display: block;
        width: 100%;
    }

    .news-table thead {
        display: none;
    }

    .news-item {
        display: flex;
        flex-wrap: wrap;
        border-top: none;
        padding: 10px 0;
        gap: 0;
    }

    .news-table td {
        padding: 0;
        border: none;
        box-sizing: border-box;
    }

    .news-table td:nth-child(1) {
        width: 30%;
    }

    .news-table td:nth-child(2) {
        width: 70%;
    }

    .news-table td:nth-child(3) {
        width: 100%;
    }

    /* ライブテーブルの超小型デバイス対応 */
    .upcoming-live-item,
    .past-live-item {
        display: flex;
        flex-wrap: wrap;
        padding: 15px 0;
        gap: 0;
        border: none;
    }

    .live-table td {
        padding: 0;
        border: none;
        box-sizing: border-box;
    }

    .live-table td:nth-child(1) {
        width: 100%;
    }

    .live-table td:nth-child(2) {
        width: 100%;
    }

    .live-table td:nth-child(3) {
        width: 55%;
        font-size: var(--fs-body);
    }

    .live-table td:nth-child(3)::before {
        content: "OP / STT : ";
    }

    .live-table td:nth-child(4) {
        width: 45%;
        justify-content: flex-end;
    }
}