/* Reset & Base Styles */
body, h1, h2, p, ul, li, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #003366;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    box-sizing: border-box;
}

.header-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.header-message {
    position: absolute;
    top: 10px;
    right: 30px;
    background-color: rgba(0, 51, 102, 0.85);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    letter-spacing: 0.5px;
}

.header-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


/* Navigation Tabs */
/* ── トップナビ（プルダウン） ── */
/* PC表示切り替えバー */
.view-mode-bar {
    display: block;
    background-color: #001a3d;
    text-align: right;
    padding: 4px 12px;
}

/* 実PCブラウザでは非表示（タッチデバイス向け機能のため） */
@media (hover: hover) and (pointer: fine) {
    .view-mode-bar {
        display: none;
    }
    /* ただしPC版モードをアクティブにした実PCは例外表示しない（不要） */
}

.view-mode-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    padding: 3px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s, color 0.2s;
}

.view-mode-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.view-mode-btn.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.top-nav {
    display: flex;
    justify-content: center;
    background-color: #002a5c;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    position: relative;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.dropdown {
    position: relative;
}

.top-nav-btn {
    background-color: transparent;
    border: none;
    padding: 15px 28px;
    font-size: 1em;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    outline: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-nav-btn:hover,
.top-nav-btn.open {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}

.top-nav-btn.active {
    color: #fff;
    border-bottom: 3px solid #ffd700;
}

.dropdown-arrow {
    font-size: 0.75em;
    transition: transform 0.2s;
    display: inline-block;
}
.top-nav-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ── プルダウンメニュー ── */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 200;
}
.dropdown-menu.open {
    display: block;
    animation: dropIn 0.15s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95em;
    color: #003366;
    background: none;
    border: none;
    border-bottom: 1px solid #e8eef5;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item:hover {
    background-color: #eef4ff;
}
.dropdown-item.active {
    background-color: #ddeeff;
    font-weight: bold;
    color: #002a5c;
    border-left: 3px solid #ffd700;
}

/* .tab-button は後方互換のため残す（JS内で使用） */
.tab-button { display: none; }

/* Main Content */
main.tab-content {
    flex-grow: 1;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.tab-pane {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane h2 {
    color: #003366;
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.tab-pane p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

/* Infographics Elements */
.infographic-block {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;  /* flex-start から center に変更 */
}

.infographic-block .icon {
    font-size: 1.2em;
    color: #0055a4;
    margin-right: 15px;
    flex-shrink: 0;
    min-width: 25px;
    line-height: 1.2;  /* line-height を追加 */
}

.infographic-block .text-content h3 {
    color: #003366;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.infographic-block .text-content p {
    font-size: 1em;
    color: #666;
}

.content-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 活きアジ販売 - メディアコンテナ */
.aji-media-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 20px 0 30px 0;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.soldout-stamp {
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 350px;
    z-index: 10;
    pointer-events: none;
}

.aji-video,
.aji-content-image {
    flex: 1;
    min-width: 280px;
    max-width: calc(50% - 10px);
}


.aji-video iframe {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.aji-content-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* Image Container for side-by-side layout */
.image-container {
    display: flex;
    gap: 20px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.image-container .content-image {
    flex: 1;
    min-width: 280px;
    max-width: calc(50% - 10px);
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}


/* Hero Styles */
.hero-section {
    position: relative;
    height: 400px;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.7);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.4em;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}


/* Media Container for video and image side-by-side */
.media-container {
    display: flex;
    gap: 20px;
    margin: 20px 0 30px 0;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
}

.video-wrapper {
    flex: 1;
    min-width: 280px;
    max-width: calc(50% - 10px);
}

.video-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.media-image {
    flex: 1;
    min-width: 280px;
    max-width: calc(50% - 10px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}


/* Map Container */
.map-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Detail Link Button */
.detail-link-button {
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
    background-color: #ffd700;
    color: #003366;
    font-weight: bold;
    padding: 15px 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.detail-link-button:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
}

/* Contact Links */
.contact-link {
    color: #0055a4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #003366;
    text-decoration: underline;
}


/* Ensure images don't overflow on small screens */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Tide & Weather Styles */
.tideweather-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #d0e0f0;
}

.tideweather-controls .form-group {
    display: flex;
    flex-direction: column;
}

.tideweather-controls label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #003366;
}

.tideweather-controls select, 
.tideweather-controls input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tideweather-controls .button-group {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.tideweather-controls button {
    background-color: #0055a4;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tideweather-controls button:hover {
    background-color: #003366;
}

.tideweather-controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#chart-container-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #0055a4;
    font-weight: bold;
}

.error {
    color: #d9534f;
    padding: 15px;
    background: #f2dede;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 5px solid #d9534f;
}

.info-panel {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}

.info-panel h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.tide-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tide-item {
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #eee;
    font-size: 0.9em;
}

.tide-item strong {
    color: #0055a4;
}

/* Weather Overlays for Chart */
.weather-info {
    position: absolute;
    top: 70px;
    left: 60px;
    right: 60px;
    height: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.weather-item {
    text-align: center;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 6px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: absolute;
}

.weather-icon {
    font-size: 20px;
}

.weather-temp {
    font-weight: bold;
    color: #333;
}

.weather-wind {
    color: #666;
    font-size: 9px;
}

/* 水温表示ウィンドウ */
.temp-display {
    position: absolute;
    top: 140px;
    right: 70px;
    background: linear-gradient(135deg, #0055a4 0%, #003366 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
    font-size: 13px;
    z-index: 10;
    min-width: 160px;
    transition: all 0.3s ease;
}

.temp-display[data-collapsed="true"] {
    min-width: 50px;
    padding: 8px;
}

.temp-display[data-collapsed="true"] .temp-content {
    display: none;
}

.temp-toggle-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 11;
    pointer-events: auto;
}

.temp-toggle-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.temp-content {
    display: block;
    transition: opacity 0.3s ease;
    margin-top: 20px;
}

.temp-display h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
}

.temp-method {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.2);
}




/* クイック日付選択ボタン */
.date-quick-select {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.quick-date-btn {
    flex: 1;
    padding: 10px 12px;
    background: #ffffff;
    border: 2px solid #1565c0;
    border-radius: 8px;
    color: #1565c0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
    white-space: nowrap;
}

.quick-date-btn:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quick-date-btn.active {
    background: #1565c0;
    color: white;
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

.quick-date-btn:active {
    transform: translateY(0);
}


/* ビデオプレイヤースタイル */
.raft-video-container {
    margin-top: 30px;
    text-align: center;
}

.raft-video-container h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.raft-video-container video {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
    object-fit: contain;
}


/* =====================================
   お知らせセクション スタイル
   ===================================== */

/* お知らせコンテナ */
#news-container {
    margin-top: 20px;
}

/* ローディング表示 */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0055a4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* エラー表示 */
.news-error {
    padding: 20px;
    background: #f2dede;
    border-radius: 8px;
    border-left: 5px solid #d9534f;
    margin-bottom: 20px;
}

.news-error p {
    color: #d9534f;
    margin-bottom: 10px;
}

.retry-button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.retry-button:hover {
    background-color: #c9302c;
}

/* 空状態表示 */
.news-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* お知らせリスト */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 個別のお知らせアイテム */
.news-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* お知らせヘッダー（送信者・日時・削除ボタン） */
.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}

.news-item-sender {
    font-weight: bold;
    color: #003366;
    font-size: 0.95em;
    flex: 1;
}

.news-item-date {
    font-size: 0.85em;
    color: #888;
}

.news-delete-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.news-delete-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* お知らせ内容 */
.news-item-content {
    color: #333;
    line-height: 1.7;
}

.news-item-text {
    font-size: 1em;
    word-break: break-word;
}

.news-item-text a {
    color: #0055a4;
    text-decoration: none;
    word-break: break-all;
}

.news-item-text a:hover {
    text-decoration: underline;
}

/* 画像付きお知らせ - 行コンテナ（2列レイアウト） */
.news-item-image-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

/* 画像付きお知らせ */
.news-item-image {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.news-item-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.news-item-image img:hover {
    transform: scale(1.02);
}

/* お知らせ情報ブロック */
.news-info-block {
    background-color: #f0f7ff;
    border: 1px solid #d0e0f0;
    border-left: 5px solid #0055a4;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
}

.news-info-block .icon {
    font-size: 1.5em;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-info-block .text-content h3 {
    color: #003366;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.news-info-block .text-content p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 5px;
}

/* 画像モーダル */
.news-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.news-image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.news-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.news-image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.news-image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.news-image-modal-close:hover {
    transform: scale(1.1);
}



/* ══════════════════════════════════════
   モバイル横幅オーバーフロー修正
   ══════════════════════════════════════ */

/* ページ全体の横スクロール防止 */
html {
    overflow-x: hidden;
}

body {
    /* body がコンテンツで広がってもビューポート幅に収める */
    max-width: 100vw;
    overflow-x: hidden;
}


/* ════════════════════════════════════════════════════════════════ */
/* 統合メディアクエリ: max-width 768px（タブレット・小さめのデバイス対応）*/
/* ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── ヘッダー ── */
    header {
        padding: 15px 0;
    }

    .header-banner {
        padding: 0;
    }

    .header-message {
        position: static;
        margin-bottom: 10px;
        font-size: 0.85em;
        padding: 6px 12px;
    }

    .header-banner-image {
        border-radius: 0;
    }

    /* ── ナビゲーション ── */
    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-nav-btn {
        padding: 13px 14px;
        font-size: 0.85em;
    }

    .dropdown-menu {
        min-width: 170px;
    }

    .dropdown-item {
        padding: 15px 18px;
        font-size: 0.92em;
    }

    /* ── ヒーロー ── */
    .hero-content h1 {
        font-size: 2.2em;
    }

    /* ── メディアコンテナ ── */
    .aji-media-container {
        flex-direction: column;
    }

    .aji-video,
    .aji-content-image {
        min-width: 100%;
        max-width: 100%;
    }

    .image-container {
        flex-direction: column;
        gap: 15px;
    }

    .image-container .content-image {
        max-width: 100%;
        min-width: 100%;
    }

    .media-container {
        flex-direction: column;
        gap: 15px;
    }

    .video-wrapper,
    .media-image {
        max-width: 100%;
        min-width: 100%;
    }

    /* ── グラフコンテナ ── */
    #chart-container-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #chart-container {
        min-width: 800px;
        width: 100%;
    }

    .weather-info {
        top: 60px;
        left: 60px;
        right: auto;
        width: calc(100% - 120px);
        min-width: 680px;
        flex-wrap: nowrap;
        height: 60px;
    }

    .temp-display {
        top: 140px;
        right: 70px;
        bottom: auto;
        min-width: 160px;
    }

    .temp-display[data-collapsed="true"] {
        min-width: 50px;
    }

    /* ── ビデオプレイヤー ── */
    .raft-video-container video {
        max-width: 100%;
        max-height: 300px;
    }

    /* ── ニュースセクション ── */
    .news-item {
        padding: 15px;
    }

    .news-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .news-item-image img {
        max-height: 300px;
    }

    .news-info-block {
        flex-direction: column;
    }

    .news-info-block .icon {
        margin-bottom: 10px;
    }

    /* ── メインコンテンツ ── */
    main.tab-content {
        width: 100vw;
        max-width: 100vw;
        margin: 10px 0;
        box-sizing: border-box;
        padding: 15px 12px;
        border-radius: 0;
        overflow-x: hidden;
    }

    /* ── 仕掛けカード ── */
    .shikake-card > div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
    }

    .shikake-card > div:nth-child(2) > div:first-child {
        border-right: none !important;
        border-bottom: 1px solid #ddd;
        display: flex;
        justify-content: center;
    }

    .shikake-card > div:nth-child(2) > div:first-child svg {
        width: 200px !important;
        height: auto !important;
    }
}

/* ════════════════════════════════════════════════════════════════ */
/* 統合メディアクエリ: max-width 480px（スマートフォン対応）*/
/* ════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* ── ヘッダー ── */
    .header-message {
        font-size: 0.75em;
        padding: 5px 10px;
    }

    /* ── ナビゲーション ── */
    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-nav-btn {
        padding: 11px 10px;
        font-size: 0.78em;
    }

    .dropdown {
        display: flex;
    }

    .dropdown-item {
        padding: 16px 16px;
    }

    /* ── コンテンツ ── */
    .tab-pane h2 {
        font-size: 1.5em;
    }

    /* ── インフォグラフィック ── */
    .infographic-block {
        background-color: #f9f9f9;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    .infographic-block .icon {
        font-size: 1.5em;
        min-width: 30px;
        margin-right: 10px;
    }

    /* ── ボタン ── */
    .detail-link-button {
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .quick-date-btn {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    /* ── ニュースセクション ── */
    .news-item {
        padding: 12px;
    }

    .news-item-text {
        font-size: 0.95em;
    }

    .news-image-modal-close {
        top: 10px;
        right: 10px;
    }
}