/* ===================================
   共通スタイル
   =================================== */
:root {
    --color-bg: #F5F5DC;
    --color-accent: #D4AF37;
    --color-text: #2C2C2C;
    --color-frame: #8B7355;
    --color-white: #FFFFFF;
    --color-light: #FAFAF8;
    --font-serif-ja: 'Noto Serif JP', serif;
    --font-serif-en: 'Cormorant Garamond', serif;
}

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

body {
    font-family: var(--font-serif-ja);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ===================================
   ヘッダー
   =================================== */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif-en);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-frame);
    letter-spacing: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--color-text);
    font-weight: 400;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    border-bottom-color: var(--color-accent);
}

/* ===================================
   フッター
   =================================== */
.footer {
    background-color: var(--color-frame);
    color: var(--color-white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* ===================================
   額縁スタイル
   =================================== */
.frame-box {
    border: 15px solid var(--color-frame);
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.1),
        0 5px 15px rgba(0,0,0,0.2);
    background-color: var(--color-white);
    padding: 10px;
    position: relative;
}

.frame-box::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid var(--color-accent);
    pointer-events: none;
}

/* ===================================
   HOMEページ
   =================================== */
.hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.hero-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
}

.event-info {
    padding: 3rem 0;
}

.event-photo {
    width: 100%;
    display: block;
}

.info-table {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.info-table th {
    font-weight: 600;
    color: var(--color-frame);
    width: 160px;
    white-space: nowrap;
}

.info-table td {
    color: var(--color-text);
}

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

.note {
    font-size: 0.9rem;
    color: #666;
}

.btn-link {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-link:hover {
    background-color: var(--color-frame);
    opacity: 1;
}

/* ===================================
   ページヘッダー
   =================================== */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background-color: var(--color-light);
}

.page-title {
    font-family: var(--font-serif-en);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-frame);
    letter-spacing: 3px;
}

/* ===================================
   GUESTページ
   =================================== */
.guest-section {
    padding: 3rem 0;
}

.guest-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.guest-photo {
    flex: 0 0 300px;
}

.guest-photo .frame-box {
    width: 100%;
}

.guest-photo .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-color: #F0F0F0;
    color: #999;
}

.guest-info {
    flex: 1;
}

.guest-name {
    font-size: 2rem;
    color: var(--color-frame);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
}

.guest-details h4 {
    font-size: 1.2rem;
    color: var(--color-frame);
    margin: 1.5rem 0 0.75rem;
}

.works-list {
    list-style: none;
    padding-left: 0;
}

.works-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.works-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.sns-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sns-links a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ===================================
   準備中ページ
   =================================== */
.content-section {
    padding: 3rem 0;
    min-height: 50vh;
}

.preparing {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--color-white);
}

.preparing-text {
    font-size: 2.5rem;
    font-family: var(--font-serif-en);
    color: var(--color-frame);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.preparing p {
    font-size: 1.1rem;
    color: #666;
    line-height: 2;
}

/* ===================================
   注意事項ページ
   =================================== */
.notes-content {
    max-width: 900px;
    margin: 0 auto;
}

.notes-section {
    background-color: var(--color-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notes-section h3 {
    font-size: 1.8rem;
    color: var(--color-frame);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-accent);
}

.notes-section h4 {
    font-size: 1.3rem;
    color: var(--color-text);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.notes-section p {
    margin-bottom: 1rem;
    line-height: 2;
}

.notes-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.notes-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.8;
}

.notes-section ul li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.note-box {
    background-color: #FFF8E1;
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent);
    margin: 1.5rem 0;
}

.note-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-frame);
}

.warning {
    color: #D32F2F;
    font-weight: 600;
    margin-top: 1rem;
}

/* ===================================
   Museumギャラリー
   =================================== */
.gallery-section {
    padding: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* 右クリック禁止 */
.gallery-image {
    pointer-events: auto;
}

/* ===================================
   モーダル
   =================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
    -webkit-user-drag: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--color-white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.modal-prev,
.modal-next {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(212, 175, 55, 0.8);
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        padding: 1rem 0;
        border-bottom: 1px solid #E0E0E0;
    }

    .nav-list a {
        display: block;
        width: 100%;
    }

    /* HOMEページ */
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 0.75rem;
    }

    .info-table th {
        background-color: var(--color-light);
        font-weight: 600;
    }

    .info-table tr {
        display: block;
        margin-bottom: 1.5rem;
    }

    /* GUESTページ */
    .guest-item {
        flex-direction: column;
        gap: 2rem;
    }

    .guest-photo {
        flex: 0 0 auto;
        max-width: 100%;
    }

    /* ギャラリー */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* ページタイトル */
    .page-title {
        font-size: 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* モーダル */
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .modal-prev,
    .modal-next {
        font-size: 20px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .frame-box {
        border-width: 10px;
        padding: 5px;
    }

    .notes-section {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }
}
