/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1rem 0 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #56bfb7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 52px;
    width: auto;
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    position: relative;
    transition: color 0.3s;
}

.nav a:hover {
    color: #667eea;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-image {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: auto;
    display: block;
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.event-content {
    padding: 40px;
}

.event-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #1a1a1a;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.meta-icon {
    width: 16px;
    height: 16px;
    background: #ff6b35;
    border-radius: 50%;
    display: inline-block;
}

/* Event Description */
.event-description {
    margin-bottom: 35px;
}

.description-section {
    margin-bottom: 4rem;
}

.description-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-left: 5px solid #667eea;
    padding-left: 20px;
    position: relative;
}

.description-section h3::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 9px;
    background: linear-gradient(135deg, #667eea, #56bfb7);
    border-radius: 2px;
}

.description-section p {
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}

/* Speaker Section - Enhanced */
.speaker-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 25px;
}

.speaker-card {
    display: flex;
    gap: 35px;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #56bfb7);
}

.speaker-photo {
    width: 180px;
    height: 240px;
    background: linear-gradient(135deg, #667eea, #56bfb7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.speaker-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.speaker-info {
    flex: 1;
}

.speaker-name {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.speaker-suffix {
    font-size: 16px;
    margin-left: 8px;
}

.speaker-title {
    color: #59b1c2;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.speaker-bio {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Program Section - Enhanced */
.program-list {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.program-item:last-child {
    border-bottom: none;
}

.program-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #56bfb7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.program-text {
    flex: 1;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Tags */
.tag {
    display: inline-block;
    background: white;
    color: #1976d2;
    padding: 5px 16px;
    border-radius: 25px;
    font-size: 13px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    position: relative;
}

.tag::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    background: linear-gradient(135deg, #667eea, #56bfb7);
    border-radius: 25px;
    z-index: -1;
}

.tag-selected {
    background: linear-gradient(135deg, #667eea, #56bfb7) !important;
    color: white !important;
}

.tag-selected::before {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

/* Event Details Table */
.event-details-table {
    margin-top: 10px;
    border-collapse: collapse;
    width: 100%;
    display: table;
    background: white;
}

/* 擬似要素の外枠は削除でシンプルに */

.detail-row {
    display: table-row;
    border-bottom: 1px solid #d0d0d0;
}

.detail-row:last-child {
    border-bottom: none;
}

/* 交互の背景は無しでフラットに */

.detail-label {
    display: table-cell;
    width: 120px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    padding: 12px 16px;
    background: transparent;
    vertical-align: middle;
}

.detail-value {
    display: table-cell;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 16px;
    vertical-align: middle;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 0;
    padding-top: 0;
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Sticky Container */
.sticky-container {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Sidebar Card */
.calendar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 見出しが隠れないように余白を確保 */
#event-details {
    scroll-margin-top: 120px; /* 通常版の見出し位置合わせ */
}

.calendar-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 0;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #56bfb7);
    padding: 10px;
    border-radius: 15px 15px 0 0;
    margin: -16px -16px 0 -16px; /* カード内余白を打ち消してブロック一杯に */
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0;
}

.month-nav-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.month-nav-btn:hover {
    background: #56bfb7;
}

.month-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-month {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    flex: 1;
    margin: 0 12px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.calendar-day.available {
    background: #59b1c2;
    color: white;
}



.calendar-day.available::after {
    content: '〇';
    position: absolute;
    top: -1px;
    right: 2px;
    font-size: 10px;
    color: white;
}

.calendar-day.selected {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.calendar-day.disabled {
    color: #7a7a7a;
    cursor: not-allowed;
}

.selected-date {
    text-align: center;
    padding: 6px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e65100;
    font-size: 12px;
    line-height: 1.2;
}

/* Booking Card */
.booking-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg,#59b1c2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-align: center;
}

.price-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.booking-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.4);
}

.booking-btn:active {
    transform: translateY(0);
}

/* Event Info */
.event-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
    text-align: right;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 6px;

    }
    .speaker-bio{
        text-align: left;
    }

    .event-title {
        font-size: 17px;
    }

    .event-meta {
        flex-direction: column;
        gap: 15px;
    }

    .speaker-card {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .speaker-photo {
        align-self: center;
        width: 150px;
        height: 200px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .detail-label {
        width: 100px;
        font-size: 14px;
    }

    .detail-value {
        font-size: 14px;
    }

    .calendar-grid {
        gap: 6px;
    }

    .calendar-day {
        font-size: 12px;
    }

}

/* 通常版は固定ボタンなし */
/* スマホ用の固定ボタンコンテナ（通常版に復活） */
.fixed-booking-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

/* PCでは非表示 */
@media (min-width: 769px) {
    .fixed-booking-container { display: none !important; }
}

.fixed-booking-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    border-radius: 12px;
}

.fixed-booking-btn:hover {
    background: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.4);
}

.fixed-booking-btn:active { transform: translateY(0); }



@media (max-width: 480px) {
    .event-content {
        padding: 25px 14px;
    }

    .speaker-card {
        padding: 10px;
    }
    .logo img {
        height: 38px;
        width: auto;
    }

         .speaker-photo {
         width: 150px;
         margin-top:1.5rem;
         height: 200px;
     }
     .speaker-title{
        font-size: 14px;
     }
 }
 
 /* Footer */
 .footer {
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(10px);
     border-top: 1px solid rgba(0,0,0,0.1);
     margin-top: 60px;
     padding: 40px 0;
 }
 
 .footer-content {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
     text-align: center;
 }
 
 .footer-links {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 30px;
     margin-bottom: 20px;
 }
 
 .footer-link {
     color: #666;
     text-decoration: none;
     font-size: 14px;
     font-weight: 500;
     transition: color 0.3s;
 }
 
 .footer-link:hover {
     color: #667eea;
 }
 
 .copyright {
     color: #999;
     font-size: 13px;
     font-weight: 400;
 }
 
 @media (max-width: 768px) {
     .footer-links {
         flex-direction: column;
         gap: 15px;
     }
     
     .footer {
         padding: 30px 0;
         margin-top: 40px;
         padding-bottom: 100px;
     }
 } 