/* ========================================
   カラー設定エリア - ここで色を変更できます
   ======================================== */
:root {
    /* メインカラー */
    --main-color-start: #FFFFFF;
    --main-color-end: #FBEEEC;
    
    /* ROOM 1 カラー */
    --room1-color-start: #637eb1;
    --room1-color-end: #7a91b8;
    
    /* ROOM 2 カラー */
    --room2-color-start: #c97194;
    --room2-color-end: #e091ab;
    
    /* メディカルスタッフ カラー(ROOM2内) */
    --medical-staff-color-start: #9b59b6;
    --medical-staff-color-end: #bb8fce;
    
    /* タブアクティブカラー */
    --tab-active-start: #877B69;
    --tab-active-end: #afa08a;
}
/* ======================================== */

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

body {
    font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", sans-serif;
    background: linear-gradient(135deg, var(--main-color-start) 0%, var(--main-color-end) 100%);
    color: #333;
}

/* トップナビゲーションバー */
.top-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--tab-active-start) 0%, var(--tab-active-end) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1500;
    padding: 0 15px;
    align-items: center;
}

.top-navbar-logo {
    display: none;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    padding-right: 65px;
    box-sizing: border-box;
}

.top-navbar-logo img {
    height: 40px;
    width: auto;
}

/* サイドバー */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, var(--tab-active-start) 0%, var(--tab-active-end) 100%);
    padding: 30px 0;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 4px 0 12px rgba(0,0,0,0.2);
}

.sidebar-logo {
    color: rgba(0,0,0,0.2);
    font-size: 20px;
    font-weight: bold;
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    text-align: center;
    line-height: 1.4;
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 15px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #bdb5ab;
    border-left-color: #312b23;
    color: rgba(255,255,255,0.1);
}

/* ハンバーガーボタン */
.hamburger {
    display: none;
    position: relative;
    z-index: 1600;
    width: 50px;
    height: 50px;
    background: rgba(135, 123, 105, 0.1);
    border: none;
    border-radius: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    flex-shrink: 0;
    transition: all 0.3s;
}

.hamburger:hover {
    background: rgba(135, 123, 105, 0.2);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #877B69;
    border-radius: 0;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* オーバーレイ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* メインコンテンツ */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    margin-bottom: 40px;
}

/* プログラムページ用：角丸なし */
body:has(#list) .container {
    border-radius: 0;
}

/* ========================================
   SVGローディングアニメーション
   ======================================== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color-start) 0%, var(--main-color-end) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vmax;
    height: 150vmax;
}

.loader svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.layer > .path {
    fill: none;
    stroke-linecap: round;
    transform-origin: 50% 50%;
}

.core > .path {
    transform-origin: 50% 50%;
}

/* 初期スピナーアニメーション */
@keyframes spinner-rotate {
    0% {
        transform: translate(-50%, -50%) scale(0.05) rotate(0deg);
    }
    40% {
        transform: translate(-50%, -50%) scale(0.05) rotate(360deg);
    }
    60% {
        transform: translate(-50%, -50%) scale(0.05) rotate(450deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(480deg);
    }
}

.loader svg {
    animation: spinner-rotate 3s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* レイヤーアニメーション */
@keyframes layer-draw {
    0% {
        stroke-dashoffset: var(--circumference);
        stroke-width: 15;
    }
    40% {
        stroke-dashoffset: calc(var(--circumference) / 2);
        stroke-width: 15;
    }
    60% {
        stroke-dashoffset: calc(var(--circumference) / 2);
        stroke-width: 15;
    }
    100% {
        stroke-dashoffset: 0;
        stroke-width: var(--final-width);
    }
}

.layer-1 > .path {
    --circumference: 4712;
    --final-width: 100;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
}

.layer-2 > .path {
    --circumference: 6283;
    --final-width: 120;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
}

.layer-3 > .path {
    --circumference: 7853;
    --final-width: 150;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
}

.layer-4 > .path {
    --circumference: 9424;
    --final-width: 180;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
}

.layer-5 > .path {
    --circumference: 10995;
    --final-width: 220;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
}

.layer-6 > .path {
    --circumference: 12566;
    --final-width: 260;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
}

.layer-7 > .path {
    --circumference: 14137;
    --final-width: 320;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
}

.layer-8 > .path {
    --circumference: 15707;
    --final-width: 400;
    stroke-dasharray: var(--circumference);
    stroke-dashoffset: var(--circumference);
}

.loaded .layer > .path {
    animation: layer-draw 3s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes core-expand {
    0%, 40% {
        opacity: 0;
        transform: scale(1);
    }
    60% {
        opacity: 1;
        transform: scale(3);
    }
    80% {
        opacity: 1;
        transform: scale(30);
    }
    100% {
        opacity: 0;
        transform: scale(50);
    }
}

.loaded .core > .path {
    animation: core-expand 3s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* ローディング完了後も背景として残す */
#loading.fade-complete {
    pointer-events: none;
    z-index: -1;
    transition: opacity 1.5s ease-out;
}

#loading.fade-complete .loader {
    opacity: 0.15;
    transition: opacity 1.5s ease-out;
}

/* ========================================
   コンテンツエリア
   ======================================== */
.header {
    background: linear-gradient(180deg, var(--tab-active-start) 0%, var(--tab-active-end) 100%);
    padding: 0;
    position: relative;
}

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

.header::after {
    content: 'プログラム詳細';
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* ナビゲーションタブ - 横スクロール対応 */
.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 2px solid #e8ddd8;
    padding: 0;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex: 0 0 auto;
    min-width: 70px;
    padding: 16px 12px;
    background: transparent;
    border: none;
    border-right: 1px solid #e8ddd8;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    color: #a99a8e;
    white-space: nowrap;
    position: relative;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item:hover {
    color: #877B69;
    background: #faf7f5;
}

.nav-item.active {
    background: transparent;
    color: #877B69;
    font-weight: bold;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tab-active-start);
}

/* ROOMフィルター - 横スクロール対応 */
.room-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 15px 20px;
    background: #FFFFFF;
    border-bottom: 2px solid #e8f0f7;
    scrollbar-width: none;
}

.room-filters::-webkit-scrollbar {
    display: none;
}

.room-btn {
    flex: 0 0 auto;
    padding: 8px 18px;
    background: #FFFFFF;
    border: 1.5px solid #d4c4be;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    color: #877B69;
    white-space: nowrap;
}

.room-btn:hover {
    background: #f5e5df;
    border-color: var(--tab-active-start);
    color: #312b23;
}

.room-btn.current {
    background: var(--tab-active-start);
    color: white;
    border-color: var(--tab-active-start);
}

/* ROOM別カラー */
.btn_room1.current {
    background: var(--room1-color-start);
    border-color: var(--room1-color-start);
}

.btn_room2.current {
    background: var(--room2-color-start);
    border-color: var(--room2-color-start);
}

/* リスト表示エリア */
#list {
    display: none;
    padding: 30px;
    background: #FFFFFF;
}

.tab-pane {
    display: none;
}

.tab-pane:not(.hidden) {
    display: block;
}

.day_content {
    margin-bottom: 40px;
}

.tab_tag_day {
    background: #FFFFFF;
    color: #232329;
    padding: 15px 25px;
    border-radius: 0;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(135, 123, 105, 0.2);
}

/* プログラム詳細カード */
.pgm_detail {
    display: flex;
    flex-direction: column;
    background: #232329;
    border-radius: 0;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 5px solid #cbd5e0;
}

.pgm_detail:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.pgm_time {
    padding: 20px 25px;
    background: linear-gradient(to right, #f7fafc 0%, #edf2f7 100%);
    font-weight: bold;
    font-size: 16px;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.pgm_content {
    padding: 25px;
    background: #FFFFFF;
}

.pgm_title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1a202c;
    line-height: 1.5;
}

.pgm_room {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.pgm_section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.pgm_label {
    display: inline-block;
    font-weight: bold;
    color: #312b23;
    margin-right: 8px;
    font-size: 14px;
    min-width: 180px;
}

.pgm_names {
    display: inline;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.8;
}

.pgm_sponsor {
    margin-top: 15px;
    padding: 12px 15px;
    background: #edf2f7;
    border-radius: 0;
    font-size: 13px;
    color: #4a5568;
    border-left: 3px solid var(--tab-active-start);
    text-align: right;
    display: inline-block;
    float: right;
    clear: both;
}

.pgm_section:after,
.pgm_content:after {
    content: "";
    display: table;
    clear: both;
}

/* ROOM別スタイル */
.room1 {
    border-left-color: var(--room1-color-start);
}

.room1 .pgm_room { 
    background: linear-gradient(135deg, var(--room1-color-start) 0%, var(--room1-color-end) 100%);
    color: #232329;
}

.room2 {
    border-left-color: var(--room2-color-start);
}

.room2 .pgm_room { 
    background: linear-gradient(135deg, var(--room2-color-start) 0%, var(--room2-color-end) 100%);
    color: #232329;
}

/* メディカルスタッフセッション専用カラー */
.room2.medical-staff {
    border-left-color: var(--medical-staff-color-start);
}

.room2.medical-staff .pgm_room {
    background: linear-gradient(135deg, var(--medical-staff-color-start) 0%, var(--medical-staff-color-end) 100%);
    color: white;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: linear-gradient(180deg, #232329 0%, #1a1a1f 100%);
    color: #ffffff;
    margin-left: 250px;
    padding: 40px 30px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--main-color-end);
    border-bottom: 2px solid var(--tab-active-start);
    padding-bottom: 10px;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--main-color-end);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    display: inline-block;
    transition: all 0.3s;
}

.footer-links a:hover {
    transform: translateX(5px);
}

.footer-contact {
    line-height: 2;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (min-width: 768px) {
    .pgm_detail {
        flex-direction: row;
    }
    .pgm_time {
        width: 180px;
        min-width: 180px;
        border-bottom: none;
        border-right: 2px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .pgm_content {
        flex: 1;
    }
}

/* スマホ対応 */
@media (max-width: 767px) {
    .top-navbar {
        display: flex;
    }
    .top-navbar-logo {
        display: flex;
    }
    .sidebar-logo {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        padding-top: 60px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 75px 15px 15px;
    }

    .footer {
        margin-left: 0;
        padding: 30px 15px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header {
        min-height: 50px;
        background-size: contain;
    }

    .header::after {
        font-size: 16px;
        bottom: 10px;
        right: 15px;
        letter-spacing: 1px;
    }

    /* ナビゲーションタブ - スマホ */
    .nav-item {
        min-width: 60px;
        padding: 12px 8px;
        font-size: 12px;
    }

    /* ROOMフィルター - スマホ */
    .room-filters {
        padding: 12px 15px;
    }

    .room-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    #list {
        padding: 10px;
    }

    .pgm_title {
        font-size: 16px;
    }

    .pgm_label {
        min-width: auto;
        display: block;
        margin-bottom: 5px;
    }

    .tab_tag_day {
        font-size: 14px;
        padding: 10px 12px;
    }

    .pgm_detail {
        margin-bottom: 15px;
    }

    .pgm_time {
        padding: 15px 20px;
    }

    .pgm_content {
        padding: 20px;
    }
}

/* ========================================
   aisatu.html用スタイル
   ======================================== */

/* メインビジュアル */
.main-visual {
    width: 100%;
    height: 200px;
    background: url('../image/main.jpg') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;
}

.main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 123, 105, 0.3) 0%, rgba(175, 160, 138, 0.3) 100%);
}

.main-visual-text {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-visual-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.main-visual-text p {
    font-size: 20px;
    letter-spacing: 2px;
}

/* コンテンツエリア */
.content-area {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* aisatu.html用：1カラムレイアウト */
.content-area.aisatu-page {
    grid-template-columns: 1fr;
}

/* あいさつセクション */
.aisatsu-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.aisatsu-section::after {
    content: "";
    display: table;
    clear: both;
}

/* 写真付きあいさつセクション用 */
.aisatsu-section.aisatsu-with-photo {
    max-width: 100%;
}

.photo-box {
    float: right;
    margin: 0 0 20px 30px;
    background: white;
    border: 1px solid #888888;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 200px;
}

.photo-box img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
}

.photo-caption {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.photo-caption strong {
    display: block;
    font-size: 18px;
    color: var(--tab-active-start);
    margin-top: 8px;
    font-weight: bold;
}

.aisatsu-section h2 {
    font-size: 24px;
    color: var(--tab-active-start);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--tab-active-start);
    display: flex;
    align-items: center;
    gap: 10px;
}

.aisatsu-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.aisatsu-list {
    list-style: none;
    padding: 0;
}

.aisatsu-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.aisatsu-list li:last-child {
    border-bottom: none;
}

.aisatsu-list strong {
    display: block;
    color: var(--tab-active-start);
    margin-bottom: 5px;
    font-size: 16px;
}

/* サイドバー情報 */
.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.info-box a {
    display: block;
}

.info-box img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.info-box .big {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.info-box .komodasi_big {
    font-size: 20px;
    color: var(--tab-active-start);
}

/* ========================================
   index.html用スタイル (News & Topics)
   ======================================== */

/* News & Topics */
.news-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-section h2 {
    font-size: 24px;
    color: var(--tab-active-start);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--tab-active-start);
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-section h2::before {
    content: url(../image/ebi.svg);
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 4px;
}

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

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f8f9fa;
    margin: 0 -10px;
    padding: 20px 10px;
    border-radius: 6px;
}

.news-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--tab-active-start) 0%, var(--tab-active-end) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-content {
    color: #333;
    line-height: 1.8;
    font-size: 15px;
}

.news-content a {
    color: var(--tab-active-start);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.news-content a:hover {
    color: var(--room1-color-start);
    text-decoration: underline;
}

/* index.html用レスポンシブ */
@media (max-width: 767px) {
    .content-area {
        grid-template-columns: 1fr;
        padding: 5px;
    }

    .news-section {
        padding: 20px;
    }

    .news-section h2 {
        font-size: 20px;
    }

    .news-item {
        padding: 15px 0;
    }

    .news-date {
        font-size: 13px;
        padding: 3px 10px;
    }

    .news-content {
        font-size: 14px;
    }
}

/* aisatu.html用レスポンシブ */
@media (max-width: 767px) {
    .main-visual {
        height: 125px;
    }

    .main-visual-text h1 {
        font-size: 24px;
    }

    .main-visual-text p {
        font-size: 14px;
    }

    .content-area.aisatu-page {
        padding: 5px;
    }

    .aisatsu-section {
        padding: 12px;
    }

    .aisatsu-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .photo-box {
        float: none;
        margin: 0 auto 15px auto;
        max-width: 280px;
        width: 90%;
        padding: 15px;
    }

    .photo-box img {
        margin-bottom: 10px;
        width: 100%;
        height: auto;
    }

    .photo-caption {
        font-size: 14px;
        line-height: 1.6;
    }

    .photo-caption strong {
        font-size: 18px;
        margin-top: 5px;
    }

    .aisatsu-section p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
}
/* ========================================
   aboutus.html用スタイル
   ======================================== */

/* aboutus.html用：1カラムレイアウト */
.content-area.aboutus-page {
    grid-template-columns: 1fr;
}

/* ページタイトル */
.page-title {
    font-size: 32px;
    color: var(--tab-active-start);
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--tab-active-start);
}

/* セクション */
.section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 24px;
    color: var(--tab-active-start);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--tab-active-start);
}

/* 代表世話人テーブル */
.rep-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rep-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.rep-table tr:last-child {
    border-bottom: none;
}

.rep-table td {
    padding: 15px 10px;
    vertical-align: top;
    line-height: 1.8;
}

.rep-table td:first-child {
    width: auto; /* 固定幅を解除 */
    font-size: 14px;
    white-space: normal; /* 折り返しを許可 */
}

.rep-table td:last-child {
    color: #333;
}

/* 活動内容 */
.activity-intro {
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.activity-intro p {
    margin-bottom: 10px;
}

.activity-intro a {
    color: var(--tab-active-start);
    text-decoration: none;
    transition: all 0.3s;
}

.activity-intro a:hover {
    color: var(--room1-color-start);
    text-decoration: underline;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.activity-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.8;
    color: #333;
}

.activity-list li::before {
    content: "●";
    position: absolute;
    left: 10px;
    color: var(--tab-active-start);
}

/* 学術的会合 */
.meeting-intro {
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.meeting-list {
    margin-top: 20px;
}

.meeting-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--tab-active-start);
}

.meeting-item:last-child {
    margin-bottom: 20px;
}

.meeting-number {
    font-size: 18px;
    font-weight: bold;
    color: var(--tab-active-start);
    margin-bottom: 10px;
}

.meeting-content {
    line-height: 1.8;
    color: #333;
}

/* PDFリンク */
.pdf-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--tab-active-start) 0%, var(--tab-active-end) 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(135, 123, 105, 0.3);
}

.pdf-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 123, 105, 0.5);
}

/* aboutus.html用レスポンシブ */
@media (max-width: 767px) {
    .page-title {
        font-size: 20px; /* 24pxから縮小 */
        padding: 20px 10px; /* 左右に10pxの余白を追加 */
        margin-bottom: 20px;
        word-break: break-word; /* 画面端で単語を適切に折り返す */
    }

    .section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .rep-table td:first-child {
        width: 100px;
        font-size: 14px;
    }

    .rep-table td {
        padding: 12px 5px;
        font-size: 14px;
    }

    .meeting-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .meeting-number {
        font-size: 16px;
    }

    .meeting-content {
        font-size: 14px;
    }

    .pdf-link {
        display: block;
        text-align: center;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========================================
   カードスライダー用スタイル (index.html)
   ======================================== */

/* カードスライダーコンテナ */
.news-slider-cards {
    position: relative;
    margin-top: 20px;
    padding-bottom: 50px;
}

.cards-container {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.cards-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* ニュースカード - PC/タブレット: 横に3枚表示 */
.news-card {
    flex: 0 0 calc(100% / 3);
    padding: 0 10px;
    box-sizing: border-box;
}

.card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
    background: #f0f0f0;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.card-date {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(135, 123, 105, 0.95);
    color: white;
    padding: 5px 10px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 20px;
    background: white;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.news-card:hover .card-content {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card-title {
    font-size: 18px;
    color: var(--tab-active-start);
    margin-bottom: 10px;
    font-weight: bold;
}

.card-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.card-description a {
    color: var(--tab-active-start);
    text-decoration: none;
    font-weight: bold;
}

.card-description a:hover {
    text-decoration: underline;
}

/* スライダーボタン */
.card-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(135, 123, 105, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    color: white;
}

.card-slider-btn:hover {
    background: rgba(135, 123, 105, 1);
    transform: translateY(-50%) scale(1.1);
}

.card-slider-btn.prev-btn {
    left: -25px;
}

.card-slider-btn.next-btn {
    right: -25px;
}

.card-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.card-slider-btn:disabled:hover {
    transform: translateY(-50%);
}

/* スライダードット */
.card-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.card-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(135, 123, 105, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.card-slider-dot.active {
    background: var(--tab-active-start);
    width: 30px;
    border-radius: 6px;
}

.card-slider-dot:hover {
    background: rgba(135, 123, 105, 0.6);
}

/* タブレット用：2枚ずつ表示 */
@media (min-width: 768px) and (max-width: 1024px) {
    .news-card {
        flex: 0 0 50%;
        box-sizing: border-box;
        padding: 0 8px;
    }
    
    .card-thumbnail {
        height: 180px;
    }
}

/* モバイル用：flexibleに1枚表示 */
@media (max-width: 767px) {
    .news-section {
        padding: 20px 0; /* 左右のpaddingを0に */
    }
    
    .news-section h2 {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .news-slider-cards {
        padding: 0;
        margin: 0;
    }
    
    .cards-container {
        padding: 0 20px; /* 左右に余白 */
        margin: 0;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .cards-wrapper {
        margin: 0;
        display: flex;
    }
    
    .news-card {
        flex: 0 0 100%; /* 1枚表示 */
        min-width: 0; /* flexibleに対応 */
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .card-thumbnail {
        height: 200px;
        margin: 0;
        width: 100%;
    }
    
    .card-content {
        padding: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .card-description {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    .card-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .card-slider-btn.prev-btn {
        left: 25px; /* 左ボタンをさらに内側に */
    }
    
    .card-slider-btn.next-btn {
        right: 25px; /* 右ボタンをさらに内側に */
    }
}

/* ========================================
   過去のイベントページ（past_demo1.html）専用スタイル
   ======================================== */

/* 過去イベントセクション */
.events-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.events-section h2 {
    font-size: 24px;
    color: var(--tab-active-start);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--tab-active-start);
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-section h2::before {
    content: url(../image/ebi.svg);
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 4px;
}

/* 年代セクション見出し */
.event-section-title {
    font-size: 26px;
    font-weight: bold;
    color: #877B69;
    margin: 50px 0 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(135, 123, 105, 0.1) 0%, rgba(175, 160, 138, 0.1) 100%);
    border-left: 5px solid #877B69;
    border-radius: 4px;
}

.event-section-title:first-of-type {
    margin-top: 20px;
}

/* イベントリストのグリッド表示 */
.event-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.event-item {
    padding: 0;
    border-bottom: none;
    background: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
}

/* アニメーション遅延 */
.event-item:nth-child(1) { animation-delay: 0.1s; }
.event-item:nth-child(2) { animation-delay: 0.2s; }
.event-item:nth-child(3) { animation-delay: 0.3s; }
.event-item:nth-child(4) { animation-delay: 0.4s; }
.event-item:nth-child(5) { animation-delay: 0.5s; }
.event-item:nth-child(6) { animation-delay: 0.6s; }
.event-item:nth-child(7) { animation-delay: 0.7s; }
.event-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-item:last-child {
    border-bottom: none;
}

.event-item:hover {
    background: #fdfdfd;
    margin: 0;
    padding: 0;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* カード内のタイトル */
.event-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--tab-active-start);
    margin-bottom: 0;
    padding: 15px;
    flex-grow: 1;
}

/* カード内の画像 */
.event-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    max-width: 100%;
    border-radius: 8px 8px 0 0;
    border: none;
    padding: 0;
    background: white;
    box-shadow: none;
}

/* 画像がない場合のプレースホルダー */
.event-image-placeholder {
    width: 100%;
    height: 160px;
    background: #f0f0f0;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: bold;
}

.event-image-placeholder::before {
    content: '伊勢志摩ライブ研究会';
    opacity: 0.7;
}

/* カード表示時は詳細情報を非表示 */
.event-description,
.event-pdf-link,
.event-link {
    display: none;
}

.event-media {
    margin-bottom: 0;
    display: block;
}

.event-item .event-pdf-link {
    display: none;
}

/* モーダルウィンドウ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

.modal-content {
    padding: 40px;
}

/* モーダル内のコンテンツスタイル */
.modal-content .event-title {
    font-size: 24px;
    color: var(--tab-active-start);
    margin-bottom: 15px;
    padding: 0;
}

.modal-content .event-description {
    display: block;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-content .event-media {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-content .event-image {
    display: block;
    width: auto;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-content .event-pdf-link {
    display: inline-block;
    text-align: center;
}

.modal-content .event-pdf-thumb {
    max-width: 120px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 4px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.modal-content .event-pdf-caption {
    font-size: 12px;
    color: #555;
}

.modal-content .event-link {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: var(--tab-active-start);
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 16px;
    border: 2px solid var(--tab-active-start);
    border-radius: 4px;
    margin-right: 15px;
    margin-top: 10px;
}

.modal-content .event-link:hover {
    color: white;
    background: var(--tab-active-start);
    text-decoration: none;
}

/* ========================================
   過去のイベントページ - レスポンシブ対応
   ======================================== */

/* タブレット用 */
@media (min-width: 768px) and (max-width: 1024px) {
    .event-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* スマホ用 */
@media (max-width: 767px) {
    .events-section {
        padding: 20px;
    }

    .events-section h2 {
        font-size: 20px;
    }
    
    /* モバイルではカードを1列にする */
    .event-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-item:hover {
        margin: 0;
        padding: 0;
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    /* カード画像のレスポンシブ対応 */
    .event-image {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }
    
    /* モーダル内の調整 */
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-content .event-media {
        flex-direction: column;
        width: 100%;
    }
    
    .modal-content .event-image {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .modal-content .event-pdf-thumb {
        width: 100%;
        height: auto;
    }
}

/* 過去のイベントページ専用スタイル終了 */