@import url('common.css');

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

body {
    font-family: 'Garamond', 'Georgia', serif;
    color: #9e6b48;
    overflow-x: hidden;
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #9e6b48;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #9e6b48;
}

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

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

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

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    animation: menuFadeIn 0.3s ease;
}

.menu-overlay.active {
    display: flex;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.menu-items {
    list-style: none;
    text-align: center;
}

.menu-items li {
    margin: 30px 0;
    font-size: 2rem;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.menu-items li a {
    color: #9e6b48;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu-items li a:hover {
    color: #9e6b48;
    border-bottom: 2px solid #9e6b48;
}

/* Page Hero */
.page-hero {
    width: 100vw;
    height: 65vh;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4)),
        url('../img/new3.jpg');
    background-size: cover;
    background-position: center 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay {
    text-align: center;
}

.hero-overlay h1 {
    font-size: 4.5rem;
    font-weight: 200;
    letter-spacing: 12px;
    margin-bottom: 15px;
    color: #9e6b48;
}

.hero-overlay .subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 300;
    color: #9e6b48;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
}

/* Media Content */
.media-content {
    min-height: 50vh;
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Styles */
.filter-container {
    text-align: center;
    margin-bottom: 40px;
    margin-top: -20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 20px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #555;
    font-family: inherit;
    cursor: pointer;
    min-width: 120px;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #9e6b48;
}

/* Media List Styles (Vertical Layout) */
.media-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.media-item {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.media-link-wrapper {
    display: flex;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.media-thumb {
    width: 300px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    object-fit: cover;
}

.media-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.media-type {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    font-family: sans-serif;
    letter-spacing: 1px;
}

.media-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Noto Serif', serif;
    line-height: 1.3;
}

.media-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.media-link {
    display: inline-block;
    color: #9e6b48;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.media-link:hover {
    border-bottom: 1px solid #9e6b48;
}

/* Footer */
footer {
    padding: 60px 50px;
    text-align: center;
}

footer p {
    color: #9e6b48;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-links a {
    color: #9e6b48;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.social-links a:hover {
    color: #9e6b48;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        background-position: center;
    }

    .hero-overlay h1 {
        font-size: 3rem;
    }

    .menu-items li {
        font-size: 1.5rem;
    }

    .media-content {
        padding: 40px 20px;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-select {
        width: 48%;
        font-size: 16px;
        padding: 8px;
        min-width: auto;
    }

    .media-item {
        flex-direction: row;
        /* 画像を左側に維持 */
    }

    .media-thumb {
        width: 35%;
        /* モバイルでも左側に配置、幅を35%に */
        min-width: 120px;
        /* 最小幅を確保 */
        height: auto;
        /* 高さは自動調整 */
        display: flex;
        align-items: stretch;
    }

    .media-details {
        padding: 15px;
        /* モバイルでパディングを調整 */
    }

    .media-title {
        font-size: 1rem;
        /* モバイルでタイトルサイズを縮小 */
    }

    .media-type {
        font-size: 0.65rem;
    }

    .media-desc {
        font-size: 0.8rem;
    }

    .media-link {
        font-size: 0.8rem;
    }
}

/* 小さい画面サイズ用の追加調整 */
@media (max-width: 480px) {
    .media-thumb {
        width: 40%;
        /* より小さい画面では画像の幅を少し広げる */
        min-width: 100px;
    }

    .media-details {
        padding: 10px;
    }

    .media-title {
        font-size: 0.9rem;
    }

    .media-type {
        font-size: 0.6rem;
    }

    .media-desc {
        font-size: 0.75rem;
    }

    .media-link {
        font-size: 0.75rem;
    }
}