/* ひぶちテレビ 公式ウェブサイト */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Meiryo", "MS PGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 13px;
    background-color: #d8d8d8;
    color: #333333;
    line-height: 1.7;
}

a {
    color: #1e4d8c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #c8a84b;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

/* ==============================
   レイアウト
============================== */

#wrapper {
    width: 980px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* ==============================
   ヘッダー
============================== */

#header {
    background: linear-gradient(to bottom, #1e4d8c 0%, #163d6e 100%);
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

#logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#logo-mark {
    font-size: 42px;
    font-weight: 900;
    color: #c8a84b;
    margin-right: 14px;
    letter-spacing: -3px;
    line-height: 1;
    font-style: italic;
}

#logo-text .station-name {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    display: block;
    letter-spacing: 2px;
}

#logo-text .station-sub {
    font-size: 11px;
    color: #8ab0d8;
    display: block;
    letter-spacing: 1px;
    margin-top: 2px;
}

#header-info {
    text-align: right;
    color: #8ab0d8;
    font-size: 11px;
    line-height: 1.8;
}

#header-info strong {
    font-size: 16px;
    color: #ffffff;
    display: block;
}

#header-search {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

#header-search input {
    padding: 3px 8px;
    font-size: 11px;
    border: 1px solid #4a6a9c;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: inherit;
    width: 140px;
}

#header-search input::placeholder { color: #8ab0d8; }

#header-search button {
    padding: 3px 8px;
    background: #c8a84b;
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}

/* ==============================
   テロップバー
============================== */

#ticker-bar {
    background: #163d6e;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#ticker-label {
    background: #c8a84b;
    color: #ffffff;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 1px;
    flex-shrink: 0;
}

#ticker-outer {
    overflow: hidden;
    flex: 1;
}

#ticker-text {
    display: inline-block;
    color: #c8daf0;
    font-size: 12px;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 40s linear infinite;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==============================
   グローバルナビ
============================== */

#global-nav {
    background: linear-gradient(to bottom, #c8a84b 0%, #b0922e 100%);
    border-bottom: 2px solid #8a7020;
}

#global-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

#global-nav ul li a {
    display: block;
    padding: 11px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.2);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

#global-nav ul li a:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

#global-nav ul li:first-child a {
    border-left: 1px solid rgba(255,255,255,0.2);
}

/* ==============================
   メインビジュアル
============================== */

#main-visual {
    background: linear-gradient(135deg, #1e4d8c 0%, #2e6ab0 60%, #1e4d8c 100%);
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.02) 20px,
        rgba(255,255,255,0.02) 40px
    );
}

.catchcopy {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.catchcopy-en {
    font-size: 12px;
    color: #8ab0d8;
    letter-spacing: 3px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.mv-line {
    width: 60px;
    height: 2px;
    background: #c8a84b;
    margin: 12px auto;
    position: relative;
    z-index: 1;
}

/* ==============================
   コンテンツエリア
============================== */

#content-area {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

#main-column {
    flex: 1;
    min-width: 0;
}

#side-column {
    width: 230px;
    flex-shrink: 0;
}

/* ==============================
   セクション
============================== */

.section {
    margin-bottom: 25px;
}

.section-head {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(to right, #1e4d8c, #2e6ab0);
    padding: 7px 12px;
    margin-bottom: 12px;
    border-left: 4px solid #c8a84b;
}

/* ==============================
   ニュースリスト
============================== */

.news-list {
    list-style: none;
}

.news-list li {
    border-bottom: 1px dotted #cccccc;
    padding: 7px 5px;
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 12px;
}

.news-list .date {
    color: #888888;
    white-space: nowrap;
    font-size: 11px;
    width: 85px;
    flex-shrink: 0;
}

.news-list .tag {
    background: #1e4d8c;
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-list .tag.sports { background: #2e8c4d; }
.news-list .tag.event  { background: #8c2e1e; }
.news-list .tag.info   { background: #6e6e6e; }

/* ==============================
   番組表
============================== */

.program-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.program-table th {
    background: #1e4d8c;
    color: #ffffff;
    padding: 6px 10px;
    text-align: left;
    font-weight: normal;
    font-size: 11px;
}

.program-table td {
    border-bottom: 1px solid #e8e8e8;
    padding: 6px 10px;
    vertical-align: top;
}

.program-table tr:nth-child(even) td {
    background: #f8f8f8;
}

.program-table .time {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
    width: 55px;
}

.program-table .program-name {
    font-weight: bold;
    color: #222;
}

.program-table .program-desc {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* ==============================
   サイドバー
============================== */

.side-box {
    border: 1px solid #dddddd;
    margin-bottom: 15px;
    background: #fafafa;
}

.side-box-head {
    background: linear-gradient(to right, #1e4d8c, #2e6ab0);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
}

.side-box-body {
    padding: 10px 12px;
    font-size: 12px;
}

.side-box-body ul {
    list-style: none;
}

.side-box-body ul li {
    border-bottom: 1px dotted #ddd;
    padding: 5px 0;
    font-size: 11px;
}

.side-box-body ul li::before {
    content: "▶ ";
    color: #c8a84b;
    font-size: 9px;
}

/* バナー */
.side-banner {
    background: #1e4d8c;
    color: #8ab0d8;
    text-align: center;
    padding: 12px;
    font-size: 11px;
    margin-bottom: 15px;
    border: 1px solid #163d6e;
}

.side-banner .ch-number {
    font-size: 32px;
    font-weight: bold;
    color: #c8a84b;
    display: block;
    line-height: 1.2;
}

/* ==============================
   もっと見るボタン
============================== */

.btn-more {
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #555;
    padding: 4px 14px;
    font-size: 11px;
    margin-top: 8px;
    cursor: pointer;
}

.btn-more:hover {
    background: #e0e0e0;
    text-decoration: none;
    color: #333;
}

/* ==============================
   フッター
============================== */

#footer-nav-bar {
    background: #1e4d8c;
    padding: 8px 20px;
    font-size: 11px;
}

#footer-nav-bar a {
    color: #8ab0d8;
    margin-right: 18px;
    text-decoration: none;
}

#footer-nav-bar a:hover {
    color: #fff;
    text-decoration: none;
}

#footer {
    background: #1a1a1a;
    color: #888888;
    padding: 14px 20px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#footer address {
    font-style: normal;
    line-height: 1.8;
}

/* ==============================
   内部ページ共通
============================== */

.page-heading {
    background: linear-gradient(to right, #1e4d8c, #2e6ab0);
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-left: 6px solid #c8a84b;
    margin-bottom: 20px;
}

.page-heading .sub {
    font-size: 11px;
    color: #8ab0d8;
    font-weight: normal;
    letter-spacing: 1px;
    display: block;
    margin-top: 2px;
}

.inner-content {
    padding: 20px;
}

/* ==============================
   番組表ページ
============================== */

.schedule-date-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.schedule-date-nav a,
.schedule-date-nav span {
    padding: 5px 10px;
    border: 1px solid #ddd;
    font-size: 12px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
}

.schedule-date-nav a.current,
.schedule-date-nav span.current {
    background: #1e4d8c;
    color: #fff;
    border-color: #1e4d8c;
}

/* ==============================
   スタッフページ
============================== */

.staff-intro {
    font-size: 12px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.9;
    border-left: 3px solid #c8a84b;
    padding-left: 12px;
}

.staff-photo-area {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.staff-photo-area img {
    max-width: 100%;
    height: auto;
}

.staff-photo-area .caption {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
}

/* ==============================
   お問い合わせ
============================== */

.contact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
}

.contact-table th {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
    width: 160px;
    font-weight: normal;
    vertical-align: top;
}

.contact-table td {
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.contact-table input[type="text"],
.contact-table input[type="email"],
.contact-table textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    font-size: 13px;
    font-family: inherit;
}

.contact-table textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #1e4d8c;
    color: white;
    border: none;
    padding: 8px 30px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.submit-btn:hover {
    background: #163d6e;
}

/* ==============================
   アーカイブページ
============================== */

.archive-note {
    background: #fff8e8;
    border: 1px solid #e8d48c;
    padding: 10px 15px;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.blank-cell {
    color: #cccccc;
    font-style: italic;
    font-size: 11px;
}
