/* =====================================================
   手作りメガネ教室 専用スタイル
   handmade-glasses.css
   ===================================================== */

/* =====================================================
   イベントステータスバッジ
   ===================================================== */
.event-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.event-status-badge--finished {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.event-status-badge--ongoing {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.event-status-badge--upcoming {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.event-status-badge--accepting {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
    }
}

/* =====================================================
   完成までのステップ
   ===================================================== */
.process-timeline {
    position: relative;
    padding-left: 2rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, #cbd5e1 0%, #94a3b8 50%, #cbd5e1 100%);
}

.process-step {
    position: relative;
    padding-bottom: 2rem;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step__number {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #1c2a52 100%);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.process-step__content {
    padding-left: 1rem;
}

.process-step__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.process-step__description {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.75;
}

/* =====================================================
   画像ギャラリー (Lightbox)
   ===================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.75rem;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__icon {
    color: white;
    width: 1.5rem;
    height: 1.5rem;
}

/* =====================================================
   募集要項テーブル
   ===================================================== */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

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

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

.info-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    background-color: #f8fafc;
    width: 30%;
    min-width: 120px;
    vertical-align: top;
}

.info-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: #1e293b;
    vertical-align: top;
    line-height: 1.75;
}

/* ========== 追加: テーブルヘッダー中央揃え ========== */
.info-table--center-header th {
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 639px) {
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
    }

    .info-table tr {
        padding: 1rem 1.25rem;
    }

    .info-table th {
        width: 100%;
        padding: 0 0 0.5rem 0;
        background: transparent;
        text-align: left;
    }
    
    /* モバイルでは中央揃え解除 */
    .info-table--center-header th {
        text-align: left;
    }

    .info-table td {
        padding: 0;
    }
}

/* =====================================================
   講師紹介カード
   ===================================================== */
.instructor-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.instructor-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.instructor-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.instructor-card__company {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.instructor-card__bio {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.75;
}

.instructor-card__highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.instructor-card__highlight-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fef3c7;
    color: #d97706;
    border-radius: 0.5rem;
}

.instructor-card__highlight-text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.625;
}

.instructor-card__highlight-text strong {
    color: #1e293b;
    font-weight: 600;
}

/* =====================================================
   イベントカード (一覧ページ用)
   ===================================================== */
.event-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgb(0 0 0 / 0.15);
    border-color: #cbd5e1;
}

.event-card__image {
    position: relative;
    aspect-ratio: 1.414 / 1;
    overflow: hidden;
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-card__image img {
    transform: scale(1.05);
}

.event-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.event-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.event-card__date {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.event-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.event-card__description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.625;
    flex: 1;
}

.event-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e3a5f;
    transition: color 0.2s ease;
}

.event-card__link:hover {
    color: #2563eb;
}

/* =====================================================
   フライヤー画像 (詳細ページ)
   ===================================================== */
.flyer-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .flyer-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.flyer-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.flyer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15);
}

.flyer-item img {
    width: 100%;
    height: auto;
    display: block;
}

.flyer-item__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgb(0 0 0 / 0.7) 0%, transparent 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* =====================================================
   CTA セクション
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #1c2a52 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.cta-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .cta-section {
        padding: 4rem 3rem;
    }

    .cta-section__title {
        font-size: 1.75rem;
    }
}

.cta-section__description {
    font-size: 1rem;
    color: rgb(255 255 255 / 0.8);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.cta-section__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-section__buttons {
        flex-direction: row;
    }
}

.cta-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.cta-section__button--primary {
    background-color: white;
    color: #1e3a5f;
}

.cta-section__button--primary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2);
}

.cta-section__button--secondary {
    background-color: rgb(255 255 255 / 0.1);
    color: white;
    border: 1px solid rgb(255 255 255 / 0.2);
}

.cta-section__button--secondary:hover {
    background-color: rgb(255 255 255 / 0.2);
}

/* ========== 追加: 2026年11月開催ページ・次回開催CTA ========== */
.cta-section__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    background-color: rgb(255 255 255 / 0.12);
    color: #fde68a;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =====================================================
   ヒーロー内アクション（募集中ページ）
   ===================================================== */
.event-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .event-hero-actions {
        flex-direction: row;
    }
}

.event-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.event-hero-button--primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #1c2a52 100%);
    color: white;
    box-shadow: 0 10px 25px -10px rgb(30 58 95 / 0.6);
}

.event-hero-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgb(30 58 95 / 0.7);
}

.event-hero-button--secondary {
    background-color: white;
    color: #1e3a5f;
    border: 1px solid #cbd5e1;
}

.event-hero-button--secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

/* =====================================================
   開催概要の要点カード（日時・会場・参加費・定員）
   ===================================================== */
.event-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .event-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .event-facts {
        grid-template-columns: repeat(4, 1fr);
    }
}

.event-facts__item {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.event-facts__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #64748b;
}

.event-facts__value {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.6;
}

.event-facts__note {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.6;
}

/* =====================================================
   よくあるご質問（details/summary アコーディオン）
   ===================================================== */
.event-faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-faq__item {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-faq__item[open] {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -15px rgb(0 0 0 / 0.15);
}

.event-faq__question {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    list-style: none;
}

.event-faq__question::-webkit-details-marker {
    display: none;
}

.event-faq__question:focus-visible {
    outline: 2px solid #1e3a5f;
    outline-offset: -2px;
}

.event-faq__mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.event-faq__mark--q {
    background-color: #1e3a5f;
    color: white;
}

.event-faq__mark--a {
    background-color: #fef3c7;
    color: #92400e;
}

.event-faq__question-text {
    flex: 1;
    padding-top: 0.125rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
}

.event-faq__icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.event-faq__item[open] .event-faq__icon {
    transform: rotate(180deg);
}

.event-faq__answer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
}

.event-faq__answer-text {
    flex: 1;
    padding-top: 0.125rem;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.8;
}
/* ========== 追加ここまで ========== */

/* =====================================================
   アニメーション
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }

/* =====================================================
   ヒーローセクション（旧スタイル - 互換性のため残す）
   ===================================================== */
.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgb(0 0 0 / 0.03) 1px, transparent 0);
    background-size: 20px 20px;
}
