/* あそびばCAFE おかえりのいえ スタイルシート */

/* 基本設定 */
:root {
    /* 以前のサイトデザインの色味に変更 */
    --main-green: #8FBC8F;
    --sub-beige: #D2B48C;
    --sub-yellow: #F5DEB3;
    --accent-tomato: #FF6347;
    --accent-carrot: #FFA500;
    --accent-spinach: #556B2F;
    --text-dark: #3E2723;
    --bg-offwhite: #FFFAF0;
    
    /* 既存の変数も残しておく（互換性のため） */
    --color-green: var(--main-green);
    --color-light-green: #a5d6a7;
    --color-beige: var(--bg-offwhite);
    --color-light-brown: #d7ccc8;
    --color-brown: #8d6e63;
    --color-orange: var(--accent-carrot);
    --color-carrot: var(--accent-carrot);
    --color-tomato: var(--accent-tomato);
    --color-eggplant: #5d4037;
}

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

body {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-offwhite);
}

a {
    text-decoration: none;
    color: var(--main-green);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-spinach);
}

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

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--main-green);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-carrot);
    margin: 15px auto;
}

/* ヘッダー */
header {
    background-color: var(--main-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-placeholder {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sub-yellow);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* メインビジュアル */
.main-visual {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 70px;
    position: relative;
}

/* コンセプト */
.concept {
    background-color: white;
    padding: 80px 0;
}

.concept-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 2;
}

/* 開催情報 */
.schedule {
    background-color: var(--sub-yellow);
    padding: 60px 0;
}

.schedule-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.schedule-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--sub-beige);
}

.schedule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.schedule-item h3 {
    color: var(--accent-spinach);
    margin-bottom: 10px;
}

/* 活動内容 */
.activities {
    background-color: white;
    padding: 80px 0;
}

.activities-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.activity-item {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-color: var(--bg-offwhite);
}

.activity-item:hover {
    transform: translateY(-5px);
}

.activity-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.activity-content {
    padding: 20px;
}

.activity-content h3 {
    color: var(--accent-spinach);
    margin-bottom: 10px;
}

/* 協賛・ボランティア */
.support {
    background-color: var(--sub-yellow);
    padding: 60px 0;
}

.support-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
}

.support-item {
    flex: 0 0 calc(50% - 40px);
    margin: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.support-item h3 {
    color: var(--accent-spinach);
    margin-bottom: 15px;
}

.support-item p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--main-green);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--accent-spinach);
    color: white;
}

/* アクセス */
.access {
    background-color: white;
    padding: 80px 0;
}

.access-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.access-info {
    flex: 0 0 40%;
}

.access-info h3 {
    color: var(--accent-spinach);
    margin-bottom: 15px;
}

.access-info p {
    margin-bottom: 10px;
}

.access-map {
    flex: 0 0 55%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

/* フッター */
footer {
    background-color: var(--main-green);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 0 0 30%;
}

.footer-logo h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-links {
    flex: 0 0 30%;
}

.footer-links h3 {
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: white;
}

.footer-social {
    flex: 0 0 30%;
}

.footer-social h3 {
    margin-bottom: 15px;
}

/* SNSアイコンを拡大 */
.social-icons {
    display: flex;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: white;
    border-radius: 50%;
    margin-right: 15px;
    margin-bottom: 15px;
    color: var(--main-green);
    font-size: 1.8rem;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: var(--sub-yellow);
    transform: scale(1.1);
}

/* 新しいSNSリンク構造のスタイル */
.social-links {
    display: flex;
    flex-direction: column;
}

.social-link-item {
    margin-bottom: 20px;
}

.social-link-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.social-link-item .social-icons {
    justify-content: flex-start;
}

/* 古いSNSラベル（互換性のため残す） */
.social-labels {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-labels span {
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.admin-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-left: 10px;
}

.admin-link:hover {
    color: white;
}

/* 協賛金ページ */
.sponsor-page {
    padding: 120px 0 60px;
    background-color: var(--bg-offwhite);
}

.sponsor-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sponsor-title {
    text-align: center;
    color: var(--main-green);
    margin-bottom: 30px;
}

.sponsor-content {
    margin-bottom: 30px;
}

.sponsor-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.bank-info {
    background-color: var(--sub-yellow);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.bank-info h3 {
    color: var(--accent-spinach);
    margin-bottom: 15px;
    text-align: center;
}

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

.bank-info-table th {
    text-align: right;
    padding: 10px;
    width: 30%;
    color: var(--text-dark);
}

.bank-info-table td {
    padding: 10px;
    font-weight: bold;
}

.back-btn {
    text-align: center;
    margin-top: 30px;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .activity-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .access-info, .access-map {
        flex: 0 0 100%;
    }
    
    .access-info {
        margin-bottom: 30px;
    }
    
    .footer-logo, .footer-links, .footer-social {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--main-green);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-visual {
        height: 300px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .activity-item, .support-item {
        flex: 0 0 100%;
    }
    
    .sponsor-container {
        padding: 20px;
    }
    
    /* モバイル表示でのSNSリンク調整 */
    .social-link-item {
        margin-bottom: 15px;
    }
    
    .social-link-item span {
        margin-bottom: 5px;
    }
}

/* モバイル表示のリボンタブ改善 */
@media (max-width: 576px) {
    .schedule-item {
        position: relative;
        margin-top: 25px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        padding-top: 15px;
    }
    
    .schedule-item h3 {
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--main-green);
        color: white;
        padding: 5px 15px;
        border-radius: 15px;
        font-size: 0.8rem;
        white-space: nowrap;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        min-width: 100px;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    .schedule-item p {
        margin-top: 10px;
        font-size: 0.9rem;
    }
    
    .support-item {
        margin: 10px 0;
        padding: 20px 15px;
    }
    
    .support-item h3 {
        font-size: 1rem;
    }
    
    .support-item p {
        font-size: 0.9rem;
    }
    
    .main-visual {
        height: 250px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .concept-content p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* モバイル表示でもSNSアイコンを適切なサイズに */
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        margin-right: 10px;
        margin-bottom: 10px;
    }
}
