/* hub.css: ハブサイト専用スタイル */
.header {
    background-image: url('../images/header.png');
}


/* ハブページのみ：お問い合わせホバー色 */
.is-home:hover { 
    background: #2ecc71; 
    color: #fff; 
    border-color: #27ae60; 
}

/* ===== インフォグラフィック ===== */
.infographic-section {
    padding: 40px 20px;
    background: transparent;
}

.infographic-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ===== 4つのリンクカード ===== */
.cards-section {
    padding: 60px 20px;
    background: transparent;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    text-decoration: none;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid #87CEEB;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(79, 195, 247, 0.3);
    border-color: #0d47a1;
}

.card-left {
    flex-shrink: 0;
    width: 40%;
}

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

.card-right {
    flex-grow: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #0d47a1;
    margin-bottom: 15px;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

.card-description {
    font-size: 1em;
    color: #444;
    line-height: 1.7;
}

/* ===== YouTubeテレビ ===== */
.tv-theater-section {
    padding: 60px 20px 80px;
}

.retro-tv-body {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: #ff9800;
    border: 4px solid #e68900;
    border-radius: 40px;
    padding: 30px 100px 30px 30px;
    box-shadow: 0 15px 0 #bf7200;
}

.tv-antenna {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
}

.tv-antenna::before,
.tv-antenna::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 60px;
    background: #aaa;
    border-radius: 3px;
}

.tv-antenna::before {
    transform: rotate(-30deg);
    left: 20px;
}

.tv-antenna::after {
    transform: rotate(30deg);
    right: 20px;
}

.tv-screen-area {
    background: #333;
    border-radius: 20px;
    padding: 10px;
    border: 4px solid #cc7a00;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.tv-controls {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.dial {
    width: 55px;
    height: 55px;
    background: #eee;
    border-radius: 50%;
    border: 4px solid #ccc;
    box-shadow: 0 4px 0 #999;
    position: relative;
}

.dial::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    width: 4px;
    height: 15px;
    background: #666;
    transform: translateX(-50%);
}

.speaker-holes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.speaker-holes span {
    display: block;
    width: 50px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.tv-stand {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
}

.leg {
    position: absolute;
    width: 20px;
    height: 30px;
    background: #8d6e63;
    border-radius: 0 0 10px 10px;
}

.leg.left {
    left: 80px;
    transform: rotate(15deg);
}

.leg.right {
    right: 180px;
    transform: rotate(-15deg);
}

/* ===== ギャラリー：リニューアル版 ===== */
.gallery-section {
    background: #f4f8fb;
    padding: 80px 20px;
    border-top: 2px solid #e0eaf0;
    border-bottom: 2px solid #e0eaf0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.gallery-item {
    background: #fff;
    padding: 12px 12px 45px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: rotate(-1.5deg);
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 2px;
}

.gallery-item:nth-child(even) {
    transform: rotate(1.5deg);
}

.gallery-item:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.gallery-button-container {
    text-align: center;
    margin-top: 50px;
}

.gallery-button {
    display: inline-block;
    background: #3498db;
    color: #fff !important;
    padding: 16px 60px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    font-family: "M PLUS Rounded 1c", sans-serif;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.gallery-button:hover {
    background: #2980b9;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* ===== お問い合わせ ===== */
.contact-section {
    padding: 60px 20px;
    background: transparent;
}

.contact-link {
    display: block;
    text-decoration: none;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-banner {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid #87CEEB;
}

.contact-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(79, 195, 247, 0.3);
    border-color: #3498db;
}

.contact-image {
    width: 100%;
    height: auto;
    display: block;
}

.contact-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    font-weight: 900;
    color: #ffffff;
    font-family: "M PLUS Rounded 1c", sans-serif;
    text-shadow: 
        -3px -3px 0 #000,
         3px -3px 0 #000,
        -3px  3px 0 #000,
         3px  3px 0 #000,
         0 6px 15px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {

    /* リンクカード：縦並び */
    .cards-section { padding: 30px 10px; }
    .cards-grid { gap: 15px; }
    .link-card { flex-direction: column; border-width: 2px; }
    .card-left { width: 100%; }
    .card-image { aspect-ratio: 16 / 9; }
    .card-right { padding: 20px; }
    .card-title { font-size: 1.3em; margin-bottom: 10px; }
    .card-description { font-size: 0.9em; }

    /* YouTubeテレビ：アンテナと脚を隠し、操作パネルを下へ */
    .retro-tv-body { padding: 15px 15px 100px 15px; }
    .tv-controls {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        position: absolute;
        bottom: 20px;
        right: auto;
        top: auto;
        transform: none;
    }
    .tv-antenna, .tv-stand { display: none; }

    /* ギャラリー：回転をリセットして1列に */
    .gallery-section { padding: 50px 15px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 25px; }
    .gallery-item, 
    .gallery-item:nth-child(even) {
        transform: rotate(0deg) !important;
        padding: 10px 10px 35px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    .gallery-button {
        width: 85%;
        padding: 14px 0;
        font-size: 1rem;
    }

    /* お問い合わせ */
    .contact-text {
        font-size: 1.8rem;
        text-shadow: 
            -2px -2px 0 #000,
             2px -2px 0 #000,
            -2px  2px 0 #000,
             2px  2px 0 #000,
             0 4px 10px rgba(0, 0, 0, 0.5);
    }
}
