/*
Theme Name: CREATIVE CIRCLE Theme
Description: ハイエンド・コーポレートデザイン（参考画像 image_6696ce.jpg & image_670b48.jpg 統合版）
Version: 1.6
*/

/* =================================================
   1. ヘッダー設定（固定・透明グラデーション・余白）
   ================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 50px 0; /* 上下の広い余白で高級感を演出 */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(5px); /* 背景をわずかにぼかす */
    transition: all 0.4s ease;
}

/* ログイン中の管理バー対策 */
.admin-bar .site-header {
    top: 32px; /* PC版管理バー */
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ：左寄せ、極細でスタイリッシュに */
.site-logo {
    font-size: 1.2rem;
    font-weight: 200;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

/* 中央メニュー：文字サイズを絞り、字間を広げる */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    transition: opacity 0.4s;
}

.nav-menu a:hover { opacity: 0.5; }

/* 右：ハンバーガーアイコン */
.menu-toggle {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
}

/* =================================================
   2. ヒーローセクション（メインビジュアル）
   ================================================= */
.wp-custom-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.wp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('http://www.creativecircle4.shop/creativecircle4.shop/wp-content/uploads/2025/12/MV-1.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    animation: wpZoom 20s infinite alternate; /* ゆっくりズーム */
}

@keyframes wpZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.wp-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    padding: 100px 20px 0; /* ヘッダーとの被り防止 */
}

.wp-hero-title {
    font-size: 3.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em;
    line-height: 1.5;
    margin-bottom: 1rem !important;
    opacity: 1 !important;
}

.wp-hero-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* =================================================
   3. お問い合わせページ（参考画像 image_670b48.jpg スタイル）
   ================================================= */

/* 下層ページ全体のレイアウト調整 */
body:not(.home) .wp-custom-main,
body:not(.home) .section_pdg { 
    padding-top: 150px; /* 固定ヘッダーとの重なり防止 */
    background-color: #fff;
    min-height: 60vh; 
}

/* 電話ボックス */
.phone-contact-section { padding: 60px 0; border-bottom: 1px solid #dee2e6; }
.phone-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 40px;
    background: #f8f9fa;
}
.phone-label { font-weight: 700; font-size: 1.1rem; }
.phone-number { font-size: 2.2rem; font-weight: 500; font-family: serif; color: #2c333f; }
.phone-hours { font-size: 0.8rem; color: #888; margin-top: 5px; }

/* フォーム：横並びレイアウト */
.custom-form { margin-top: 50px; }
.form-row {
    display: flex;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.form-label {
    flex: 0 0 280px; /* 左側ラベルの幅 */
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.required {
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 30px;
}

.form-input { flex: 1; }

/* 入力フィールド：グレー背景 */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input textarea {
    width: 100%;
    padding: 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.check-item { display: block; margin-bottom: 12px; cursor: pointer; }

.form-footer-note { font-size: 0.8rem; color: #888; margin: 40px 0; text-align: center; }

.btn-submit {
    display: block;
    width: 320px;
    margin: 0 auto;
    background: #2c333f;
    color: #fff;
    padding: 22px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { opacity: 0.8; transform: translateY(-2px); }

/* =================================================
   4. 共通パーツ・レスポンシブ
   ================================================= */
.wp-container { max-width: 900px; margin: 0 auto; padding: 0 20px; text-align: center; }
.table-custom { width: 100%; border-collapse: collapse; }
.table-custom th, .table-custom td { padding: 25px; border-bottom: 1px solid #eee; text-align: left; }

@media (max-width: 960px) {
    .nav-menu { display: none; }
    .header-inner { padding: 0 30px; }
    .site-header { padding: 30px 0; }
    .admin-bar .site-header { top: 46px; }
    
    /* フォームを縦並びに */
    .form-row { flex-direction: column; }
    .form-label { margin-bottom: 15px; width: 100%; }
    .phone-box { flex-direction: column; gap: 20px; text-align: center; }
}
/*
Theme Name: CREATIVE CIRCLE Theme
Description: 仙台で30年の歴史を持つ広告代理店「クリエイティブ・サークル」の自作テーマ
Version: 1.7
*/

/* --- 1. 固定ヘッダー（現状のものを継承） --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 50px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(5px);
}

.admin-bar .site-header { top: 32px; }

/* --- 2. お問い合わせページ・下層ページ調整 --- */
/* ヘッダーとの重なりを防止 */
body:not(.home) .wp-custom-main { 
    padding-top: 150px; 
    background-color: #fff;
}

.inner-sm {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-hero {
    background-color: #2c333f;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hero-title { font-size: 3rem; letter-spacing: 0.1em; }
.hero-subtitle { font-size: 0.9rem; opacity: 0.7; }

/* --- 3. フォーム：参考画像スタイルの横並び --- */
.custom-form { margin-top: 50px; }

.form-row {
    display: flex;
    padding: 30px 0;
    border-top: 1px solid #eee; /* 項目ごとの区切り線 */
}

.form-label {
    flex: 0 0 280px; /* 左側ラベルの固定幅 */
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 必須ラベル */
.required {
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 30px;
}

.form-input { flex: 1; }

/* 入力欄：グレー背景 */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input textarea {
    width: 100%;
    padding: 15px;
    background-color: #f1f1f1; /* 薄いグレー */
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.btn-submit {
    display: block;
    width: 280px;
    margin: 50px auto 0;
    background: #2c333f;
    color: #fff;
    padding: 20px;
    border: none;
    border-radius: 50px; /* 丸いボタン */
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { opacity: 0.8; }

/* スマホ対応：縦並びへ */
@media (max-width: 768px) {
    .form-row { flex-direction: column; }
    .form-label { margin-bottom: 10px; width: 100%; }
    .admin-bar .site-header { top: 46px; }
}

/* 実績セクション */
.wp-works-section {
    background-color: #f9f9f9; /* 背景を薄いグレーに */
    padding: 100px 0;
}

.wp-work-item {
    display: flex; /* 項目名と内容を横並びにする */
    margin-bottom: 60px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
}

.wp-work-label {
    flex: 0 0 250px; /* 左側の「テレビ・ラジオ」などの幅を固定 */
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.wp-work-content {
    flex: 1; /* 右側の詳細テキスト部分 */
    line-height: 1.8;
    color: #555;
}
/* --- スマホ用メニューが開いた時のスタイル --- */
@media (max-width: 960px) {
    /* 1. メニューを画面いっぱいに表示させる設定 */
    .site-header.is-active .nav-menu {
        display: block !important; /* 強制的に表示 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95); /* 背景を真っ暗にする */
        padding-top: 150px; /* ロゴと被らないよう上をあける */
        z-index: -1; /* ロゴやアイコンよりは後ろ */
    }

    .site-header.is-active .nav-menu ul {
        flex-direction: column; /* 縦並びにする */
        align-items: center;
        gap: 40px;
    }

    .site-header.is-active .nav-menu a {
        font-size: 1.2rem; /* スマホで押しやすいよう大きく */
    }

    /* 2. 三本線を「×」に変えるアニメーション */
    .site-header.is-active .menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .site-header.is-active .menu-toggle span:nth-child(2) {
        opacity: 0; /* 真ん中の線を消す */
    }
    .site-header.is-active .menu-toggle span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .menu-toggle span {
        transition: all 0.4s ease; /* 動きをスムーズに */
    }
}

/* --- 会社概要セクションのスタイル --- */
.cc-company-section {
    width: 100%;
    min-height: 100vh;
    background-image: url('https://creativecircle4.shop/wp-content/uploads/2026/02/CS.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: "BIZ UDMincho", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.cc-title-main {
    font-size: clamp(30px, 8vw, 52px);
    font-weight: normal;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cc-sub-title {
    font-size: clamp(18px, 4vw, 24px);
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cc-info-box {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    width: 100%;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
    text-align: left;
}

.cc-info-row {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.cc-info-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.cc-info-value {
    flex: 1;
    font-size: 16px;
    letter-spacing: 0.05em;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .cc-company-section { padding: 40px 15px; }
    .cc-info-box { padding: 30px 20px; }
    .cc-info-row { flex-direction: column; }
    .cc-info-label { margin-bottom: 5px; font-size: 13px; }
}

/* --- お問い合わせセクションのスタイル --- */
.cc-contact-section {
    width: 100%;
    min-height: 100vh;
    /* 背景画像が必要な場合は有効にしてください */
    background-image: url('https://creativecircle4.shop/wp-content/uploads/2026/02/CS.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: "BIZ UDMincho", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.cc-contact-box {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    width: 100%;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
    text-align: left;
    margin-top: 20px;
}

.cc-form-row {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.cc-form-label {
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
    color: rgba(255, 255, 255, 0.7);
}

.cc-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    padding: 5px 0;
    outline: none;
}

.cc-textarea {
    height: 100px;
    resize: vertical;
}

.cc-mail-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dotted rgba(255, 255, 255, 0.3);
}

.cc-mail-note {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.cc-mail-link {
    display: inline-block;
    color: #ffffff;
    font-size: clamp(16px, 4vw, 22px);
    text-decoration: none;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
    transition: 0.3s;
}

.cc-submit-container {
    text-align: center;
    margin-top: 40px;
}

.cc-submit-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 80px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.3em;
}

.cc-submit-btn:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .cc-contact-section { padding: 40px 15px; }
    .cc-contact-box { padding: 30px 20px; }
    .cc-submit-btn { width: 100%; padding: 12px 0; }
}

/* --- 事業について（MESSAGE・事業内容）セクションのスタイル --- */
.cc-business-section {
    width: 100%;
    min-height: 100vh;
    background-image: url('https://creativecircle4.shop/wp-content/uploads/2026/02/CS.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: "BIZ UDMincho", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

/* キャッチコピー */
.cc-catchphrase {
    font-size: clamp(14px, 3vw, 17px);
    margin-bottom: 50px;
    opacity: 0.8;
}

/* 黒い半透明のボックス */
.cc-description-box {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    width: 100%;
    max-width: 850px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
    text-align: center;
    margin-top: 20px;
}

/* セクションタイトル (MESSAGEなど) */
.cc-section-ttl {
    font-size: 24px;
    display: block;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

/* メッセージ本文 */
.cc-message-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 60px;
}

/* 事業内容の横並び行 */
.cc-business-row {
    display: flex;
    text-align: left;
    margin-bottom: 50px;
    align-items: flex-start;
}

/* 左側の大きな見出し (テレビ・ラジオ等) */
.cc-business-big-ttl {
    font-size: 28px;
    font-weight: normal;
    line-height: 1.3;
    margin-right: 40px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 110px;
}

/* 右側の詳細テキスト */
.cc-business-details {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

.cc-business-details p {
    margin-bottom: 15px;
}

/* お問い合わせボタン */
.cc-btn-contact {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.cc-btn-contact:hover {
    background: #fff;
    color: #000;
}

/* --- スマホ最適化 --- */
@media (max-width: 768px) {
    .cc-business-section {
        padding: 40px 15px;
    }
    .cc-description-box {
        padding: 30px 20px;
    }
    .cc-business-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 40px;
    }
    .cc-business-big-ttl {
        margin-right: 0;
        margin-bottom: 15px;
        width: auto;
    }
    .cc-business-details {
        text-align: left;
    }
}

/* =================================================
   スマホ・タブレット用の最終調整
   ================================================= */
@media (max-width: 768px) {
    /* 1. スマホで背景が巨大化・消えるのを防ぐ */
    .cc-company-section, 
    .cc-contact-section, 
    .cc-business-section {
        background-attachment: scroll !important; /* 固定を解除（重要） */
        background-position: center top !important;
        padding-top: 100px !important; /* 一番上の文字がバナーに被らないよう余白を追加 */
    }

    /* 2. 以前消したはずのヘッダーを完全に隠す */
    .site-header, .cc-header {
        display: none !important;
    }

    /* 3. 真ん中の黒いボックス（MESSAGEなど）をスマホで見やすくする */
    .cc-description-box, .cc-info-box, .cc-contact-box {
        padding: 30px 20px !important;
        width: 95% !important; /* 画面いっぱいに広げすぎず、少し余裕を持たせる */
        margin: 20px auto !important;
        backdrop-filter: blur(8px) brightness(0.8); /* 少し暗くして文字を読みやすく */
    }

    /* 4. メインタイトルのサイズ微調整 */
    .cc-title-main {
        font-size: 28px !important; /* スマホで2行になっても綺麗に見えるサイズ */
        margin-top: 20px;
    }

    /* 5. サーバーのバナー（一番上のオレンジの帯）がある場合の対策 */
    html, body {
        overflow-x: hidden; /* 横揺れ防止 */
    }
}

/* =================================================
   全体中央寄せ・構文エラー補正
   ================================================= */

/* 1. まず前のメディアクエリの閉じ忘れを強制補完（念のため） */
} 

/* 2. 各パーツを強制的に中央に配置する */
.cc-info-box, 
.cc-contact-box, 
.cc-description-box {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block; /* block要素として中央寄せを確実にする */
}

/* 3. コンテナ全体を整列させる */
.cc-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素を水平方向の中央に */
    justify-content: center;
}

/* 4. スマホで左に寄る現象を解決 */
@media (max-width: 768px) {
    .cc-company-section, 
    .cc-contact-section, 
    .cc-business-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }

    .cc-info-box, 
    .cc-contact-box, 
    .cc-description-box {
        width: 90% !important; /* 画面端に少し余白を作る */
        max-width: none !important;
    }
    
    /* 事業内容（テレビ・ラジオなど）の横並びを中央に */
    .cc-business-row {
        justify-content: center !important;
    }
}