/*
Theme Name: SpaceElegance
Author: オレンジホールディング株式会社
Description: MPMプラグインに最適化された、スタイリッシュな予約サイト用テーマ。
Version: 1.3.0
License: GPLv2 or later
Text Domain: spaceflow
*/

:root {
    /* デフォルト設定（カスタマイザーで上書きされます） */
    --primary-color: #c5a059; /* ゴールド系 */
    --secondary-color: #2b2b2b; /* ダークグレー */
    --text-color: #444444;
    --bg-color: #fdfdfd; /* より明るい白に近い背景 */
    --header-bg: #ffffff;
    --menu-bg: #ffffff; /* メニュー背景を白に（文字を黒に） */
    --menu-text: #333333;
    --footer-bg: #1a1a1a;
    --footer-text: #cccccc;
    --font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --heading-font: "Noto Serif JP", "HiraMinProN-W6", "YuMincho", serif; /* 見出し用明朝体 */
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8; /* 行間を広げて優雅に */
    letter-spacing: 0.03em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    letter-spacing: 0.05em;
}

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(0,0,0,0.05); /* ボーダーを薄く */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* 下線追加 */
}

.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: 18px 30px; /* パディングを広げてゆとりを持たせる */
    font-weight: 400;   /* 太さを抑える */
    font-size: 15px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
    font-family: var(--heading-font); /* メニューも明朝体またはセリフ系に */
    letter-spacing: 0.1em;
}

.main-navigation a:hover {
    background-color: transparent; /* 背景変化なし */
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 10px; /* 位置調整 */
    left: 50%;
    width: 0;
    height: 1px; /* 線を細く上品に */
    background-color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    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: 40px;
    border: 1px solid rgba(255,255,255,0.3); /* 枠線で囲って高級感を */
    background: rgba(0,0,0,0.2); /* わずかに背景を入れる */
    max-width: 800px;
    margin: 0 auto;
}

.slide-title { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    font-family: var(--heading-font);
    font-weight: 400;
}
.slide-desc { 
    font-size: 1.1rem; 
    margin-bottom: 2.5rem; 
    line-height: 2;
    letter-spacing: 0.05em;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 40px;
    border-radius: 2px; /* 角をシャープに */
    font-weight: 500;
    transition: all 0.4s ease;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #fff; /* ホバーで白抜き */
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.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: 2.2rem;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
    font-family: var(--heading-font);
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--primary-color);
    margin: 20px auto 0;
}
/* 英語のサブタイトル風装飾を追加する場合（擬似要素の活用） */
.section-title::before {
    content: '◆'; /* シンプルなアクセント */
    display: block;
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 10px;
    opacity: 0.8;
}

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

.mpm-recommended-list .mpm-rec-article {
    background: #fff;
    border-radius: 2px; /* 角を小さく */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* 影を薄く広く */
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}
.mpm-recommended-list .mpm-rec-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px; /* 間隔を広げる */
}
.news-item {
    background: #fff;
    padding: 30px; /* 内側の余白を増やす */
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border-left: 1px solid rgba(0,0,0,0.1); /* ボーダーを細く */
    border-top: 1px solid rgba(0,0,0,0.05);
}
.news-item:hover { 
    border-left-color: var(--primary-color); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.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; }
}