/*
Theme Name: Komainu Production Theme
Author: Coding Partner
Description: 狛犬プロダクション公式サイト用オリジナルテーマ
Version: 1.9
*/

/* ============================================
   1. 変数定義・基本設定
   ============================================ */
:root {
    --main-color: #4F7056;
    --base-color: #FFFEF7;
    --accent-pink: #F090A0;
    --accent-gold: #D8C89D;
    --text-color: #333333;
    --font-main: "M PLUS Rounded 1c", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--base-color);
    color: var(--text-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

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

/* ============================================
   2. レイアウト共通・ユーティリティ
   ============================================ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--main-color);
    margin: 0 auto 40px;
    position: relative;
    display: table;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-pink);
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn-more, .audition-btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
    transition: transform 0.2s, background-color 0.3s;
    text-align: center;
    cursor: pointer;
}

/* ============================================
   3. ヘッダー
   ============================================ */
header {
    background-color: rgba(255, 254, 247, 0.95);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    width: 180px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    font-weight: 700;
    color: var(--main-color);
    font-size: 1rem;
}

.sns-links, .talent-sns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sns-icon {
    width: 24px;
    height: 24px;
    fill: var(--main-color);
    transition: fill 0.3s;
}

.sns-links a:hover .sns-icon,
.talent-sns a:hover .sns-icon {
    fill: var(--accent-pink);
}

/* ============================================
   4. スマホ用メニュー (全画面オーバーレイ)
   ============================================ */
.menu-toggle {
    display: none;
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--main-color);
    position: absolute;
    left: 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 254, 247, 0.98);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    background: #fff;
    font-weight: bold;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.mobile-nav li {
    margin-bottom: 30px;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-color);
    display: block;
}

.mobile-sns {
    justify-content: center;
}
.mobile-sns .sns-icon {
    width: 40px;
    height: 40px;
}

/* ============================================
   5. メインコンテンツ
   ============================================ */

/* ヒーローセクション */
.hero {
    height: 80vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--accent-gold);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video, .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media-pc {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-media-sp {
    display: none;
    width: 100%;
    height: 100%;
}

/* hero-contentは削除したためスタイル不要 */

/* Concept */
.concept-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Talent */
.talent-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.talent-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(79, 112, 86, 0.1);
}

.talent-card:nth-child(even) {
    flex-direction: row-reverse;
}

.talent-img {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 10px 10px 0 var(--accent-gold);
}

.talent-info {
    flex: 1;
}

.talent-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--main-color);
    margin-bottom: 10px;
    display: block;
}

.talent-sns {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.talent-sns .sns-icon {
    width: 32px;
    height: 32px;
}

/* News & Blog (List) */
.news-item {
    border-bottom: 1px dotted #ccc;
    padding: 15px 0;
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.news-date {
    color: #888;
    font-size: 0.9rem;
    min-width: 100px;
}

.news-title, .blog-title {
    font-weight: bold;
    color: var(--text-color);
}

.btn-more {
    border: 1px solid var(--main-color);
    color: var(--main-color);
    background: #fff;
    margin-top: 30px;
}
.btn-more:hover {
    background-color: var(--main-color);
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
}
.blog-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-body {
    padding: 20px;
}
.blog-date {
    font-size: 0.8rem;
    color: #888;
}
.blog-title {
    font-size: 1.1rem;
    margin: 10px 0;
    display: block;
}

/* Company Table */
.company-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
}
.company-table th, .company-table td {
    border-bottom: 1px solid #ddd;
    padding: 20px;
    text-align: left;
}
.company-table th {
    width: 30%;
    color: var(--main-color);
    background-color: rgba(79, 112, 86, 0.05);
}

/* Audition */
.audition {
    background-color: var(--main-color);
    color: #fff;
    text-align: center;
    border-radius: 30px;
    margin: 0 20px;
    padding: 80px 20px;
}

.audition .section-title {
    color: #fff;
}

.audition .section-title::after {
    background-color: #fff;
}

.audition-btn {
    background-color: var(--accent-pink);
    color: #fff;
    padding: 20px 60px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.audition-btn:hover {
    transform: scale(1.05);
    background-color: #ff9fb0;
}

/* ============================================
   6. フッター
   ============================================ */
footer {
    background-color: var(--main-color);
    color: #fff;
    padding: 60px 0 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-logo {
    width: 100px;
    margin: 0 auto 20px;
}

.footer-sns {
    justify-content: center;
    margin-bottom: 30px;
}
.footer-sns .sns-icon {
    fill: #fff;
}
.footer-sns a:hover .sns-icon {
    fill: var(--accent-pink);
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    margin: 0 15px;
    display: inline-block;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============================================
   7. レスポンシブ対応 (スマホ用)
   ============================================ */
@media (max-width: 768px) {
    /* フォントサイズの調整（小さくして詰まり感を軽減） */
    .section-title {
        font-size: 1.75rem; /* 2.5rem -> 1.75rem */
    }

    /* 左右余白を少し詰めて、コンテンツ幅を稼ぐ */
    .container {
        padding: 0 15px;
    }
    
    /* セクション間の余白を縮小 */
    section {
        padding: 50px 0;
    }

    /* ヘッダー */
    .header-inner {
        position: relative;
        justify-content: center;
        min-height: 50px;
    }
    .header-right {
        position: static;
    }
    .pc-only {
        display: none !important;
    }
    .logo-link {
        display: block;
        margin: 0 auto;
    }
    .logo {
        width: 140px;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        right: 0; 
        top: 50%;
        transform: translateY(-50%);
    }

    /* ヒーローセクション切り替え */
    .hero-media-pc { display: none; }
    .hero-media-sp { display: block; }
    
    /* Conceptテキスト調整 */
    .concept-text {
        font-size: 1rem;
        text-align: left; /* スマホでは読みやすく左揃えもアリ（今回は中央のまま） */
    }

    /* Talentカードの余白調整 */
    .talent-list {
        gap: 40px; /* カード間の隙間を縮小 */
    }
    .talent-card, .talent-card:nth-child(even) {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px; /* 内側余白を縮小 */
    }
    .talent-img {
        width: 100%;
        box-shadow: 5px 5px 0 var(--accent-gold);
    }
    .talent-name {
        font-size: 1.5rem; /* 名前を小さく */
    }

    /* Company Table */
    .company-table th, .company-table td {
        display: block;
        width: auto;
    }
    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
        font-size: 0.9rem;
    }
    .company-table td {
        padding-top: 0;
    }
    
    /* Audition */
    .audition {
        padding: 50px 20px;
    }
    .audition-btn {
        padding: 15px 40px;
        font-size: 1.2rem;
    }
}
/* ============================================
   8. お問い合わせフォーム (Contact Form 7)
   ============================================ */

/* フォーム全体の枠組み */
.wpcf7 {
    background-color: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(79, 112, 86, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* ラベルテキスト */
.wpcf7 label {
    display: block;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--main-color);
    font-size: 1rem;
}

/* 入力エリア共通設定 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 15px 20px;
    margin-top: 10px; /* 文字と枠の間隔 */
    border: 2px solid #ddd; /* 通常時の枠線は薄いグレー */
    border-radius: 12px;
    background-color: #FAFAFA;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-color);
    box-sizing: border-box; /* パディングを含めた幅計算 */
    transition: all 0.3s;
}

/* 入力エリア（フォーカス時） */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--accent-pink); /* クリックするとピンクに */
    background-color: #fff;
    box-shadow: 0 0 10px rgba(240, 144, 160, 0.2);
}

/* テキストエリアの高さ調整 */
.wpcf7 textarea {
    height: 200px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    display: block;
    width: auto;
    min-width: 250px;
    margin: 40px auto 0; /* 中央寄せ */
    padding: 20px 40px;
    background-color: var(--accent-pink);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.3s;
    -webkit-appearance: none; /* スマホでのデフォルトスタイル解除 */
}

/* 送信ボタン（ホバー時） */
.wpcf7 input[type="submit"]:hover {
    background-color: #ff9fb0;
    transform: scale(1.05);
}

/* エラーメッセージ等の調整 */
.wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #dc3232;
    margin-top: 5px;
}

/* レスポンシブ対応 (スマホ用) */
@media (max-width: 768px) {
    .wpcf7 {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .wpcf7 input[type="submit"] {
        width: 100%; /* スマホではボタンを幅いっぱいに */
    }
}
/* --- お問い合わせフォーム：同意チェックボックス --- */
.privacy-consent {
    text-align: center;
    margin: 30px 0 20px;
    font-weight: bold;
    font-size: 1rem;
}

/* チェックボックス本体の調整 */
.wpcf7-list-item {
    margin: 0;
}

.wpcf7 input[type="checkbox"] {
    transform: scale(1.5); /* チェックボックスを少し大きく */
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--main-color); /* チェックした時の色をメインカラーに */
}

/* プライバシーポリシーへのリンク */
.privacy-consent a {
    color: var(--main-color);
    text-decoration: underline;
    transition: color 0.3s;
}

.privacy-consent a:hover {
    color: var(--accent-pink);
    text-decoration: none;
}

/* 同意しないと送信できない場合のボタンの見た目（オプション） */
/* Contact Form 7の仕様により、チェックなしでは送信ボタンを押してもエラーになります */