/*
Theme Name: SpaceFlow
Author: AI Assistant
Description: MPMプラグインに最適化された、スタイリッシュな予約サイト用テーマ。
Version: 1.3.0
License: GPLv2 or later
Text Domain: spaceflow
*/

:root {
    /* デフォルト設定（カスタマイザーで上書きされます） */
    --primary-color: #0073aa;
    --secondary-color: #005a87;
    --text-color: #333333;
    --bg-color: #f4f7f6;
    --header-bg: #ffffff;
    --menu-bg: #333333;
    --menu-text: #ffffff;
    --footer-bg: #333333;
    --footer-text: #ffffff;
    --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

a:hover {
    color: var(--secondary-color);
}

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

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

/* Header (省略なし) */
.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

.header-top {
    background-color: var(--header-bg);
    padding: 15px 0;
}

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

.site-logo {
    line-height: 1;
    max-width: 100%;
}

.site-logo img {
    max-height: none !important;
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

.site-logo a {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.header-bottom {
    background-color: var(--menu-bg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0;
    position: relative;
}

.main-navigation a {
    display: block;
    color: var(--menu-text);
    padding: 15px 25px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--menu-text);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    color: #333;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
    transition: all 0.3s;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
    left: 0;
    transition: all 0.3s;
}

.menu-toggle-icon::before { top: -8px; }
.menu-toggle-icon::after { top: 8px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.menu-toggle-text {
    font-size: 12px;
    font-weight: bold;
    display: block;
}

/* Responsive Menu */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .header-bottom {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--menu-bg);
        z-index: 999;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .main-navigation.toggled { display: block; }
    .header-bottom.toggled-wrap { display: block; }
    .main-navigation ul { flex-direction: column; }
    .main-navigation li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-navigation a { padding: 15px 20px; text-align: left; }
    .main-navigation a::after { display: none; }
}

/* Contents */
.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active { opacity: 1; }
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.search-section {
    position: relative;
    margin-top: -60px;
    z-index: 10;
    margin-bottom: 60px;
}
.search-box-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mpm-search-box {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.home-section { padding: 60px 0; }

.mpm-recommended-list .mpm-rec-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.mpm-recommended-list .mpm-rec-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.news-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: border-color 0.3s;
    border-left: 4px solid transparent;
}
.news-item:hover { border-left-color: var(--primary-color); }
.news-date { display: block; font-size: 0.85rem; color: #888; margin-bottom: 5px; }
.news-title { font-size: 1.1rem; margin: 0; }
.news-title a { color: var(--text-color); }
.news-title a:hover { color: var(--primary-color); }

/* =========================================
   Footer (スタイリッシュ＆シンプル)
   ========================================= */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

/* フッターメニュー */
.footer-menu {
    margin-bottom: 20px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* コピーライト */
.site-info {
    font-size: 13px;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .footer-menu ul {
        flex-direction: column;
        gap: 10px;
    }
    .hero-slider { height: 50vh; }
    .slide-title { font-size: 2rem; }
}