/*
Theme Name:   ヤマトブライダルパートナーズ Cocoon Child
Theme URI:    https://example.com/yamatobridal
Description:  Cocoon を親テーマとした、ヤマトブライダルパートナーズ専用子テーマ
Author:       Yamato Bridal Partners
Author URI:   https://example.com
Template:     cocoon-master
Version:      1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  yamatobridal-cocoon-child
*/

/* ==============================================================
   親テーマ（Cocoon）のスタイルを読み込む
   ※ functions.php の wp_enqueue_scripts で制御するため
      ここでは @import は使用しない
============================================================== */

/* ==============================================================
   Reset & Base Styles
============================================================== */
:root {
    --bg-body: #FCFBF9;
    --bg-sand: #F7F3EE;
    --bg-soft-green: #909886;
    --bg-dark-brown: #5C4D43;
    --bg-dark: #3A322C;

    --text-main: #4A433E;
    --text-light: #7A726D;

    --primary: #BCAE9C;
    --primary-hover: #A89886;
    --line: #06C755;
    --line-hover: #05B34C;

    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Zen Maru Gothic', sans-serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.4;
    color: var(--bg-dark-brown);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

ul {
    list-style: none;
}

/* ==============================================================
   Cocoon 固有のリセット（Cocoon側のスタイルを上書き）
============================================================== */
/* Cocoon のコンテンツ幅制限を解除してフルワイド対応 */
#cocoon-site-main,
.site-body,
.site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Cocoon の記事コンテナを無効化 */
.article,
.entry-content {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Cocoon ヘッダーを非表示にして独自ヘッダーを使用 */
#header,
.site-header {
    display: none !important;
}

/* Cocoon フッターを非表示にして独自フッターを使用 */
#footer,
.site-footer {
    display: none !important;
}

/* Cocoon サイドバーを非表示 */
#sidebar,
.sidebar {
    display: none !important;
}

/* Cocoon のパンくずリストを非表示 */
.breadcrumb {
    display: none !important;
}

/* Cocoon のページタイトルを非表示 */
.entry-header,
.page-header {
    display: none !important;
}

/* ==============================================================
   Typography & Utilities
============================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section {
    padding: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }
}

.text {
    font-size: 1rem;
    color: var(--text-main);
}
.text-small {
    font-size: 0.85rem;
    color: var(--text-light);
}

.color-white {
    color: #fff;
}

.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-4 { margin-bottom: 32px; }

/* ==============================================================
   Backgrounds
============================================================== */
.bg-sand { background-color: var(--bg-sand); }
.bg-soft-green { background-color: var(--bg-soft-green); color: #fff;}
.bg-dark-brown { background-color: var(--bg-dark-brown); }
.bg-dark { background-color: var(--bg-dark); }


/* ==============================================================
   Buttons
============================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(188, 174, 156, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 174, 156, 0.5);
}

.btn-line {
    background-color: var(--line);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
    background-color: var(--line-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.line-icon {
    display: inline-flex;
    margin-right: 12px;
}

/* ==============================================================
   Header（独自ヘッダー）
============================================================== */
.ybp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
    color: var(--bg-dark-brown);
}

@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }
    .logo {
        font-size: 1rem;
    }
    .btn-small {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ==============================================================
   Layout Utilities
============================================================== */
.split-layout {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-image, .split-text {
    flex: 1;
}

@media (max-width: 992px) {
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    .split-image {
        width: 100%;
    }
    .split-image img {
        width: 100%;
        object-fit: cover;
    }
}

/* ==============================================================
   FV (First View)
============================================================== */
.fv {
    position: relative;
    height: 100vh;
    min-height: 600px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

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

.fv-bg img {
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.fv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(252, 251, 249, 0.9) 0%, rgba(252, 251, 249, 0.5) 50%, rgba(252, 251, 249, 0) 100%);
}

.fv-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 0 5%;
    margin-top: 80px;
}

.fv-sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
}

.fv-title {
    font-size: 3.5rem;
    color: var(--bg-dark-brown);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .fv-overlay {
        background: linear-gradient(to bottom, rgba(252, 251, 249, 0.6) 0%, rgba(252, 251, 249, 0.9) 60%, rgba(252, 251, 249, 1) 100%);
    }
    .fv-content {
        margin-top: auto;
        padding-bottom: var(--spacing-lg);
    }
    .fv-title {
        font-size: 2.2rem;
    }
}

/* ==============================================================
   Components & Sections Specs
============================================================== */
.check-list {
    margin: var(--spacing-md) 0;
}
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23BCAE9C" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.empathy-highlight {
    background-color: #fff;
    padding: 24px;
    border-radius: 12px;
    font-size: 1rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.method-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
    text-align: left;
}
.method-image {
    flex: 1;
}
.method-image img {
    height: 100%;
    object-fit: cover;
}
.method-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 24px;
    border-radius: 12px;
}
.step-number {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    background-color: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.step-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.step-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .method-content {
        flex-direction: column;
    }
}

.portrait img {
    border-radius: 200px 200px 12px 12px;
}

.qa-box {
    margin-top: 24px;
    background-color: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.qa-q {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-list {
    margin-top: 24px;
}
.feature-list li {
    padding: 16px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.voice-card {
    display: flex;
    gap: 40px;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    align-items: center;
}
.voice-image {
    width: 350px;
    flex-shrink: 0;
}
.voice-content h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--primary);
}
.voice-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .voice-card {
        flex-direction: column;
        padding: 24px;
        gap: 24px;
    }
    .voice-image {
        width: 100%;
    }
    .voice-content h3 {
        font-size: 1.3rem;
    }
}

.price-box {
    background-color: #fff;
    padding: 32px;
    border-radius: 12px;
    border-top: 4px solid var(--primary);
}
.price-feature {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}
.price-feature:last-child {
    border-bottom: none;
}
.price-feature::before {
    content: '✓';
    color: var(--primary);
    margin-right: 12px;
    font-weight: bold;
}

/* ==============================================================
   Footer（独自フッター）
============================================================== */
.ybp-footer {
    padding: 60px 0 40px;
    background-color: var(--bg-dark);
}
.logo-footer {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.5rem;
}
.copyright {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==============================================================
   Animations (Fade In Up)
============================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
