/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf8f5;
}

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

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* メインビジュアル */
.hero {
    background: url("./imgs/main.jpg") center center / cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #8B4513;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #D2691E);
}

/* シェアハウスセクション */
.sharehouses {
    padding: 4rem 0;
    background-color: white;
}

/* アコーディオン */
.accordion-item {
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-2px);
}

.accordion-header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
}

.accordion-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #faf8f5;
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.sharehouse-info {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.sharehouse-image {
    flex: 1;
}

.sharehouse-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sharehouse-details {
    flex: 1;
}

.sharehouse-details p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
}

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

.photo-btn {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.photo-btn:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* ソーシャルセクション */
.social {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.twitter-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* 連絡先セクション */
.contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: linear-gradient(90deg, white, rgba(255,255,255,0.7));
}

.contact-info {
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.email-link {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: white;
    color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* フッター */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* モーダル（写真ギャラリー） */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    height: 80%;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    opacity: 0.7;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-images {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-nav {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background-color: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: rgba(139, 69, 19, 1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .sharehouse-info {
        flex-direction: column;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .modal-content {
        width: 95%;
        height: 70%;
    }
}