/*
Theme Name: Theatoir Theme
Author: あなたの名前
Description: Theatoirのオリジナルテーマ
Version: 1.0
*/

/* =========================================
   基本設定 (Base Styles)
========================================= */
:root {
    --color-burgundy: #4a121a;
    --color-gold: #cba156;
    --color-cream: #f9f7f4;
    --color-white: #ffffff;
    --color-text-main: #4a121a;
    --font-en: 'Cinzel', serif;
    --font-jp: 'Noto Serif JP', serif;
}

body {
    margin: 0;
    font-family: var(--font-jp);
    color: var(--color-text-main);
    line-height: 1.8;
    background-color: var(--color-white);
    /* ハンバーガーメニューが開いた時にスクロールさせない */
    overflow-x: hidden;
}

body.is-drawerActive {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow-container {
    max-width: 800px;
}

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

.text-white {
    color: var(--color-white) !important;
}

.bg-cream {
    background-color: var(--color-cream);
}

.bg-burgundy {
    background-color: var(--color-burgundy);
}

.section-padding {
    padding: 100px 0;
}

/* --- 修正箇所：SERVICESなどのタイトル --- */
.section-title {
    font-family: var(--font-en);
    font-size: 2rem;
    color: var(--color-burgundy);
    margin-bottom: 50px;
    letter-spacing: 0.1em;
    position: relative;
    /* display: inline-block; を削除しました */
    display: block;
    /* 明示的にblock要素にします */
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 15px auto 0;
    /* autoで中央寄せになります */
}

/* =========================================
   ヘッダー (Header)
========================================= */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    /* ハンバーガーメニューより上にするため高く設定 */
    padding: 15px 0;
    transition: background-color 0.3s;
}

/* メニューが開いている時のヘッダー背景 */
.header.is-drawerActive {
    background-color: var(--color-white);
    /* メニューが見やすいよう背景を白に */
    position: fixed;
    /* スクロールしても追従 */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    margin: 0;
}

.logo a {
    display: block;
}

.logo-img {
    display: block;
    height: 50px;
    width: auto;
}

/* --- ナビゲーション (PC) --- */
.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

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

.nav a {
    text-decoration: none;
    color: var(--color-burgundy);
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 1px solid transparent;
}

.nav a:hover {
    color: var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
}

/* --- ハンバーガーメニューボタン (PCでは非表示) --- */
.hamburger-menu {
    display: none;
    /* PCでは隠す */
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 101;
    /* ナビゲーションより手前 */
    width: 40px;
    height: 40px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-burgundy);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s;
}

.hamburger-line:nth-child(1) {
    top: 12px;
}

.hamburger-line:nth-child(2) {
    top: 19px;
}

.hamburger-line:nth-child(3) {
    top: 26px;
}

/* メニューオープン時のボタンのアニメーション */
.hamburger-menu.is-drawerActive .hamburger-line:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.hamburger-menu.is-drawerActive .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-drawerActive .hamburger-line:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}


/* =========================================
   ヒーローセクション (Hero)
========================================= */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    /* ※ここに背景画像のファイル名を指定 */
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    margin-top: 50px;
    width: 100%;
    padding: 0 20px;
    /* 左右に余白を持たせる */
}

.title-logo {
    margin: 0 0 24px;
}

/* --- スマホではみ出さないように調整 --- */
.logo-big-jp-img {
    display: block;
    margin: 0 auto;
    /* PCでのサイズ（元の指定） */
    height: 200px;
    width: auto;
    /* スマホなど画面が狭い時用の制限 */
    max-width: 100%;
    /* 親要素からはみ出さない */
    object-fit: contain;
    /* アスペクト比を維持して収める */
}

.hero-subtext {
    font-size: 0.95rem;
    color: var(--color-burgundy);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* =========================================
   ABOUTセクション
========================================= */
.about-lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-burgundy);
    margin-bottom: 30px;
}

/* =========================================
   SERVICESセクション
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(74, 18, 26, 0.05);
    border-top: 3px solid var(--color-gold);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-header h3 {
    font-family: var(--font-en);
    font-size: 1.4rem;
    color: var(--color-burgundy);
    margin: 0 0 8px;
}

.jp-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gold);
    margin-bottom: 24px;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-card li {
    margin-bottom: 12px;
    padding-left: 1.2em;
    position: relative;
    font-size: 0.95rem;
}

.service-card li::before {
    content: '•';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    top: 0;
}

/* =========================================
   CONTACTセクション
========================================= */
.contact-text {
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.contact-button:hover {
    background-color: var(--color-gold);
    color: var(--color-burgundy);
}

/* =========================================
   フッター
========================================= */
.footer {
    padding: 30px 0;
    background-color: #3a0e14;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* =========================================
   レスポンシブ対応 (スマホ)
========================================= */
@media (max-width: 768px) {

    /* --- ヘッダーの調整 --- */
    .header {
        padding: 10px 0;
    }

    .header-container {
        /* ロゴとハンバーガーボタンを横並びに */
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo-img {
        height: 36px;
    }

    /* スマホでは少し小さく */

    /* --- ハンバーガーメニューボタンを表示 --- */
    .hamburger-menu {
        display: block;
    }

    /* --- ナビゲーションをドロワーメニュー化 --- */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* 全画面 */
        background-color: var(--color-white);
        /* 背景を白に */
        z-index: 100;

        /* 初期状態は画面外へ隠す */
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s;

        /* メニューの中身を中央揃えに */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* メニューオープン時のスタイル */
    .nav.is-drawerActive {
        visibility: visible;
        opacity: 1;
    }

    .nav ul {
        flex-direction: column;
        /* 縦並び */
        text-align: center;
    }

    .nav li {
        margin: 0 0 30px;
        /* 縦の間隔 */
    }

    .nav a {
        font-size: 1.2rem;
        /* 文字を大きく */
        display: block;
        padding: 10px;
    }

    /* --- メインビジュアルの大きなロゴの調整 --- */
    .logo-big-jp-img {
        height: auto;
        /* 高さは自動 */
        max-height: 150px;
        /* スマホでの最大高さを指定（調整してください） */
        max-width: 80%;
        /* 横幅も少し余裕を持たせる */
    }

    .hero-subtext {
        font-size: 0.85rem;
        /* サブテキストも少し小さく */
    }


    /* --- その他のセクション調整 --- */
    .section-padding {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* =========================================
   WPForms カスタマイズ
========================================= */

/* フォーム全体の幅調整 */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: left; /* 入力欄は左寄せにする */
}

/* ラベル（項目名）を白くする */
#contact .wpforms-field-label {
    color: var(--color-white);
    font-weight: 500;
}

/* 入力フィールドのデザイン */
#contact .wpforms-field input,
#contact .wpforms-field textarea {
    border-radius: 0; /* 丸みをなくす */
    border: 1px solid #ccc;
    background-color: #fff;
}

/* 送信ボタンをサイトのデザインに合わせる */
#contact .wpforms-submit-container button {
    display: inline-block;
    padding: 15px 60px;
    background-color: transparent !important; /* 背景透明 */
    border: 1px solid var(--color-gold) !important; /* ゴールドの枠線 */
    color: var(--color-gold) !important; /* 文字色ゴールド */
    font-family: var(--font-jp);
    letter-spacing: 0.1em;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%; /* スマホで押しやすく */
    max-width: 300px;
    margin: 20px auto 0;
    display: block; /* 中央寄せ用 */
}

/* 送信ボタンのマウスオーバー時 */
#contact .wpforms-submit-container button:hover {
    background-color: var(--color-gold) !important;
    color: var(--color-burgundy) !important;
}

/* エラーメッセージなどの調整 */
div.wpforms-container-full .wpforms-form .wpforms-field-description {
    color: rgba(255,255,255,0.8);
}