/*
Theme Name: Mermaid Group Official v5
Description: 管理画面から配色・フォント変更可能な可変テーマ
*/

/* --- 1. 全体の基本設定 (変数使用) --- */
body {
    background-color: var(--main-bg); /* 変数に変更 */
    color: var(--main-text);          /* 変数に変更 */
    font-family: var(--main-font);    /* 変数に変更 */
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

a {
    color: var(--main-accent); /* 変数に変更 */
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
    filter: brightness(1.2); /* 明るくする */
}

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

/* --- 2. ヘッダー --- */
header {
    background: rgba(0, 0, 0, 0.9); /* ここは視認性のため黒固定推奨だが、変えてもOK */
    padding: 15px 30px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}
.site-logo a {
    font-size: 20px;
    font-weight: bold;
    color: #fff; /* ロゴ周りは白固定の方が見やすい場合が多い */
    letter-spacing: 0.1em;
}

/* メニュー */
.pc-nav ul { display: flex; gap: 30px; list-style: none; }
.pc-nav a { color: #ccc; font-family: sans-serif; font-size: 13px; letter-spacing: 0.1em; }
.pc-nav a:hover { color: var(--main-accent); }

/* --- 3. メインビジュアル --- */
.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-title {
    font-size: 42px;
    color: var(--main-accent);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.hero-sub {
    font-size: 16px;
    border-top: 1px solid var(--main-accent);
    border-bottom: 1px solid var(--main-accent);
    display: inline-block;
    padding: 10px 30px;
    color: #fff;
}

/* --- 4. 共通セクション --- */
.section { padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-title {
    font-size: 32px;
    color: var(--main-accent);
    margin-bottom: 10px;
}
.section-sub { font-size: 12px; opacity: 0.7; letter-spacing: 0.2em; font-family: sans-serif; }

/* --- 5. ニュースリスト --- */
.news-list { list-style: none; padding: 0; border-top: 1px solid #333; }
.news-list li { border-bottom: 1px solid #333; padding: 20px 0; display: flex; flex-wrap: wrap; align-items: center; }
.news-date { width: 120px; opacity: 0.7; font-size: 14px; }

/* --- 6. キャストグリッド --- */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cast-card {
    background: rgba(255,255,255,0.05); /* 半透明の白で背景色になじませる */
    border: 1px solid #333;
    overflow: hidden;
    transition: transform 0.3s;
}
.cast-card:hover { transform: translateY(-5px); border-color: var(--main-accent); }
.cast-img { width: 100%; height: 300px; object-fit: cover; }
.cast-info { padding: 15px; text-align: center; }
.cast-name { font-size: 18px; font-weight: bold; margin: 0; display: block; color: var(--main-text); }
.cast-shop { font-size: 12px; color: var(--main-accent); margin-top: 5px; display: block; }
.btn-more {
    display: inline-block; border: 1px solid var(--main-text); padding: 10px 30px; margin-top: 20px; color: var(--main-text); font-size: 12px;
}
.btn-more:hover { background: var(--main-accent); border-color: var(--main-accent); color: #000; }

/* --- 7. 店舗一覧 & 詳細 --- */
.shop-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.shop-card { border: 1px solid #333; padding: 30px; background: rgba(255,255,255,0.03); }
.shop-name { font-size: 22px; color: var(--main-accent); margin-top: 0; }

.shop-page-container { background-color: var(--main-bg); color: var(--main-text); }
.shop-hero { height: 50vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.shop-hero-bg { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; opacity: 0.5; }
.shop-title { font-size: 48px; color: var(--main-accent); text-shadow: 0 0 20px #000; margin: 0; position: relative; z-index: 2; }
.shop-subtitle { font-size: 14px; letter-spacing: 0.3em; color: #fff; border-top: 1px solid var(--main-accent); display: inline-block; padding-top: 10px; margin-top: 10px; position: relative; z-index: 2; }
.shop-heading { text-align: center; font-size: 28px; color: var(--main-accent); margin-bottom: 40px; }

/* --- 10. 詳細ページ --- */
.single-page-container {
    background-color: var(--main-bg);
    color: var(--main-text);
    min-height: 80vh; padding: 120px 20px 60px; max-width: 1000px; margin: 0 auto;
}
.profile-name { font-size: 32px; color: var(--main-accent); border-bottom: 1px solid #333; padding-bottom: 20px; margin-bottom: 30px; }
.profile-list dt { color: var(--main-accent); font-size: 12px; text-transform: uppercase; }
.back-btn { display: inline-block; padding: 12px 40px; border: 1px solid var(--main-text); color: var(--main-text); }
.back-btn:hover { background: var(--main-accent); border-color: var(--main-accent); color: #000; }

/* --- 13. スマホメニュー --- */
.hamburger-btn { display: none; margin-left: auto; flex-grow: 0; width: 30px; height: 24px; cursor: pointer; position: relative; z-index: 1002; }
.hamburger-btn span { display: block; width: 100%; height: 2px; background: var(--main-accent); position: absolute; transition: 0.3s; }
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 11px; }
.hamburger-btn span:nth-child(3) { bottom: 0; }
.hamburger-btn.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { bottom: 11px; transform: rotate(-45deg); }
.sp-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.95); z-index: 1000; align-items: center; justify-content: center; }
.sp-nav.active { display: flex; }
.sp-nav a { font-size: 24px; color: #fff; display: block; padding: 10px; }

@media screen and (max-width: 768px) {
    .pc-nav { display: none; }
    .hamburger-btn { display: block; }
    .shop-list { grid-template-columns: 1fr; }
    .cast-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* カレンダー等の変数はJSで書き換えるのが難しいので強制上書き */
:root {
    --tec-color-background: var(--main-bg) !important;
    --tec-color-text-primary: var(--main-text) !important;
    --tec-color-accent-primary: var(--main-accent) !important;
}

/* --- 16. 店舗個別ページのデザイン改修 --- */

/* 見出しのデザイン（英語＋下線） */
.shop-heading {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid; /* 色はPHPで動的に指定 */
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.1em;
}

/* --- 料金システムエリア --- */
.system-area {
    margin-top: 30px;
}
.system-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    margin: 0 auto;
}
.system-table th {
    /* 背景色は各店舗のカラー設定(PHP)で指定されます */
    color: #fff;
    padding: 15px;
    border: 1px solid #444;
    text-align: center;
    width: 30%;
    vertical-align: middle;
}
.system-table td {
    padding: 15px;
    border: 1px solid #444;
    color: #fff;
    vertical-align: middle;
}
/* スマホ対応 */
@media screen and (max-width: 768px) {
    .system-table th, .system-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .system-table th {
        border-bottom: none;
    }
}

/* 求人バナー */
.shop-recruit-banner {
    display: block;
    background: linear-gradient(45deg, #000, #222);
    border: 2px solid #c5a059;
    padding: 30px;
    color: #fff;
    transition: 0.3s;
}
.shop-recruit-banner:hover {
    background: #c5a059;
    color: #000;
}
.shop-recruit-banner .main { font-size: 24px; font-weight: bold; }
.shop-recruit-banner .sub { font-size: 14px; opacity: 0.8; }