/*
Theme Name: Cap
Description: Custom theme for cap
Version: 1.0
Text Domain: cap
*/

/* ==========================================================================
   CSS Variables (Modern Japanese Traditional Design System)
   ========================================================================== */
:root {
    --primary-color: #0F1E36;      /* 藍色 - Deep Indigo / Premium Navy */
    --primary-hover: #1A3154;      /* 明るめの藍色 */
    --secondary-color: #FAF0F2;    /* 薄紅 / 桜色 - Pale Cherry Blossom Beige */
    --accent-color: #C94A47;       /* 茜色 / 朱赤 - Soft Crimson Accent */
    --accent-gold: #B89047;        /* 鈍金 / ゴールド - Elegant Gold Accent */
    --text-color: #1A202C;         /* 濃紺を帯びた墨黒 */
    --text-light: #606877;         /* 落ち着いた薄墨色 */
    --bg-color: #F8F9FA;           /* 白磁色 - Pure Soft Off-White */
    --white: #FFFFFF;
    
    --font-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    --font-heading: 'Noto Serif JP', 'Shippori Mincho', 'BIZ UDMincho', 'Hiragino Mincho ProN', serif;
    
    --border-radius: 4px;          /* 和モダン：直線的でシャープなエッジ */
    --border-radius-lg: 8px;
    --box-shadow: 0 4px 20px rgba(15, 30, 54, 0.04);
    --box-shadow-hover: 0 12px 32px rgba(15, 30, 54, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* 美しく滑らかなトランジション */
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

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

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.bg-warm { 
    background-color: var(--primary-color); 
    color: var(--white); 
}
.bg-warm h1, .bg-warm h2, .bg-warm p { 
    color: var(--white); 
}
.bg-ivory { 
    background-color: var(--secondary-color); 
}
.text-center { 
    text-align: center; 
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--box-shadow);
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-phone {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
}
.btn-phone:hover {
    background-color: var(--white);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-line {
    background-color: #06C755; /* LINE Green */
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 40, 10, 0.3);
    border: 1px solid #06C755;
}
.btn-line:hover {
    background-color: var(--white);
    color: #06C755;
    text-shadow: none;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
/* Header */
.site-header {
    background-color: var(--white);
    padding: 24px 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(15, 30, 54, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    margin: 0;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}
.site-title a {
    color: var(--primary-color);
    font-weight: 700;
}

/* Header Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
}

.main-navigation a:hover {
    color: var(--accent-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px; /* 極細ライン */
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Page Header (Internal pages) */
.page-header {
    background-color: var(--secondary-color);
    padding: 60px 0 45px; /* 上部60px、下部45pxに狭めてタイトル周りの余白をスッキリさせる */
    text-align: center;
    margin-bottom: 25px; /* タイトルと記事本文の間のマージンを50pxから25pxに半減 */
    border-bottom: 1px solid var(--accent-gold);
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(184, 144, 71, 0.15); /* 内枠の金線 */
    pointer-events: none;
}

.page-header h1 {
    font-size: 1.8rem; /* 2.2remから縮小し、長文タイトルでも複数行化を抑制 */
    line-height: 1.4;  /* 行高を設定し、複数行時もスッキリ収まるように調整 */
    margin-bottom: 12px;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 3px solid var(--accent-gold);
}

.site-footer a {
    color: var(--secondary-color);
}

.footer-navigation {
    margin-bottom: 40px;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.footer-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.footer-navigation a:hover {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
}

/* ==========================================================================
   Sections (Home & General)
   ========================================================================== */
section {
    padding: 40px 0; /* 80pxから40pxに半減させ、セクション間の無駄な余白を縮小 */
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 0.08em;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px; /* 極細 */
    background-color: var(--accent-gold);
    border-radius: 0;
}

.hero-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(rgba(15, 30, 54, 0.65), rgba(15, 30, 54, 0.75)), url('images/hero_temple_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(184, 144, 71, 0.15); /* 内側の金枠線 */
    pointer-events: none;
}
.hero-section h2 {
    font-size: clamp(1.4rem, 6vw, 2.6rem) !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
    margin-bottom: 24px;
    line-height: 1.5;
    font-weight: 700;
}
.hero-section h2::after { display: none; }
.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #FFFFFF !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6) !important;
    font-weight: 500;
}

/* Problems */
.problems-section ul {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px 35px 40px 55px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(15, 30, 54, 0.08);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}
.problems-section li {
    margin-bottom: 24px;
    list-style-type: none;
    position: relative;
}
.problems-section li::before {
    content: '・';
    position: absolute;
    left: -25px;
    color: var(--accent-color);
    font-weight: 900;
}
.problems-section li:last-child {
    margin-bottom: 0;
}

/* Reasons / Strengths */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.reason-item, .strength-item .container {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 1px solid var(--accent-gold); /* 細い金線 */
    border-left: 1px solid rgba(15, 30, 54, 0.05);
    border-right: 1px solid rgba(15, 30, 54, 0.05);
    border-bottom: 1px solid rgba(15, 30, 54, 0.05);
    transition: var(--transition);
}
.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-top-color: var(--accent-color); /* ホバー時に茜色に変化 */
}

.reason-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}
.reason-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--accent-gold);
}

.strength-item .container {
    margin-bottom: 40px;
}
.strength-item h2 {
    text-align: left;
    font-size: 1.7rem;
    color: var(--primary-color);
}
.strength-item h2::after { display: none; }

/* Flow */
.flow-steps {
    list-style: none;
    max-width: 650px;
    margin: 0 auto;
}
.flow-steps li {
    background: var(--white);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 3px solid var(--accent-gold); /* 上品な金色の左線 */
    border-top: 1px solid rgba(15, 30, 54, 0.04);
    border-right: 1px solid rgba(15, 30, 54, 0.04);
    border-bottom: 1px solid rgba(15, 30, 54, 0.04);
    transition: var(--transition);
}
.flow-steps li:hover {
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}
.flow-steps h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Pricing */
.price-box {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(15, 30, 54, 0.08);
    position: relative;
}
.price-box::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(184, 144, 71, 0.1);
    pointer-events: none;
}
.price-box h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}
.price-box .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color); /* 茜色 */
    margin-bottom: 20px;
    font-family: var(--font-heading);
}
.price-box .price span {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* FAQ */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    margin-bottom: 25px;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(15, 30, 54, 0.05);
    transition: var(--transition);
}
.faq-item:hover {
    box-shadow: var(--box-shadow-hover);
}
.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}
.faq-item h3::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}
.faq-item p {
    padding-left: 35px;
    position: relative;
    color: var(--text-light);
}
.faq-item p::before {
    content: 'A.';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

/* Global CTA */
.global-cta {
    background-color: var(--primary-color);
    text-align: center;
    padding: 40px 0; /* 80pxから40pxに半減させ、共通CTAの余白を縮小 */
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    position: relative;
}
.global-cta::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(184, 144, 71, 0.2);
    pointer-events: none;
}
.global-cta h2 {
    color: var(--white);
    font-size: 2rem;
    font-family: var(--font-heading);
}
.global-cta p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

/* ==========================================================================
   Archive & Single Case (お客様事例)
   ========================================================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.case-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(15, 30, 54, 0.05);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-gold);
}

.case-card a {
    color: var(--text-color);
}

.case-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.case-card:hover .case-thumbnail img {
    transform: scale(1.03);
}

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.5;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.case-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-readmore {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 2px;
}
.btn-readmore::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}
.case-card:hover .btn-readmore::after {
    width: 100%;
    background-color: var(--accent-color);
}
.case-card:hover .btn-readmore {
    color: var(--accent-color);
}

.case-detail-box {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(15, 30, 54, 0.06);
    margin-bottom: 50px;
}

.case-main-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(15, 30, 54, 0.05);
}

.post-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.single-case-content {
    padding-top: 10px; /* sectionのデフォルトのpadding-top 80pxを縮小し、タイトルとの余白を解消 */
}

/* ==========================================================================
   Entry Content (Post Content / Columns)
   ========================================================================== */
.page-header.bg-warm {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--accent-gold);
}

.entry-content,
.page-content .container {
    line-height: 1.7; /* 行間を2から1.7に狭めて長文の可読性を向上 */
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.entry-content p,
.page-content .container p {
    margin-bottom: 2em;
}

.entry-content ul,
.page-content .container ul,
.entry-content ol,
.page-content .container ol {
    margin-bottom: 2em;
    padding-left: 2.5em;
}

.entry-content li,
.page-content .container li {
    margin-bottom: 0.6em;
}

.entry-content h2,
.page-content .container h2,
.strength-item h2 {
    text-align: left;
    font-size: 1.45rem;
    line-height: 1.4;
    margin-top: 2.5em;
    margin-bottom: 1.2em;
    padding: 15px 15px 5px 18px;
    border-left: 4px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-gold);
    background: linear-gradient(to right, rgba(184, 144, 71, 0.07) 0%, rgba(184, 144, 71, 0.02) 60%, transparent 100%);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.entry-content h2::after,
.page-content .container h2::after {
    display: none;
}

.entry-content h3,
.page-content .container h3 {
    text-align: left;
    font-size: 1.35rem;
    margin-top: 2.2em;
    margin-bottom: 1em;
    padding-left: 20px;
    position: relative;
    color: var(--primary-color);
}

.entry-content h3::before,
.page-content .container h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 2px;
    background-color: var(--accent-gold);
    border-radius: 0;
}

/* ==========================================================================
   Responsive & Mobile Menu
   ========================================================================== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    border-radius: 0;
    transition: transform 0.15s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: "";
    top: -8px;
}

.hamburger-inner::after {
    content: "";
    bottom: -8px;
}

/* Hamburger Active State */
.menu-toggle.is-active .hamburger-inner {
    background-color: transparent;
}
.menu-toggle.is-active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 0;
    }
    .site-title {
        font-size: clamp(0.85rem, 3.6vw, 1.25rem);
        letter-spacing: 0.01em;
        white-space: nowrap;
    }
    .container {
        padding: 0 20px;
    }

    .price-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 15px; }
    .btn {
        width: 100%;
        max-width: 340px;
        padding: 12px 16px !important;
        font-size: clamp(0.78rem, 3.8vw, 1rem) !important;
        white-space: nowrap !important;
        letter-spacing: 0.03em !important;
    }

    /* Mobile Menu Display */
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 20px rgba(15, 30, 54, 0.08);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 900;
        padding-top: 100px;
        overflow-y: auto;
    }

    .main-navigation.toggled {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .main-navigation a {
        font-size: 1.15rem;
        padding: 10px 0;
        display: inline-block;
    }

    /* Prevent scrolling on body when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* モバイル表示時の記事ボックスの余白調整（横幅の有効活用） */
    .case-detail-box {
        padding: 35px 20px; /* 左右余白を40pxから20pxに縮小し、一行の文字数を増やして行数を削減 */
    }

    /* モバイル表示時のページタイトルエリアの縮小 */
    .page-header {
        padding: 40px 0 30px; /* 余白をさらに縮小してスクロール量を減らす */
    }
    .page-header h1 {
        font-size: 1.35rem; /* スマホで文字数が多いタイトルも3行以内に収まるように縮小 */
        line-height: 1.35;
    }

    /* モバイル表示時の見出しh2の縮小と見出し強調の最適化（最大2行に収める対応） */
    .entry-content h2,
    .page-content .container h2,
    .strength-item h2 {
        font-size: clamp(1.05rem, 4.5vw, 1.18rem) !important;
        line-height: 1.35 !important;
        margin-top: 1.8em !important;
        margin-bottom: 0.8em !important;
        padding: 11px 12px 5px 15px !important;
        border-left: 4px solid var(--accent-color) !important;
        border-bottom: 1px solid var(--accent-gold) !important;
        background: linear-gradient(to right, rgba(184, 144, 71, 0.08) 0%, rgba(184, 144, 71, 0.02) 80%, transparent 100%) !important;
        letter-spacing: 0.04em !important;
    }

    /* トップページなどのセクション見出しh2のスマホ縮小 */
    section h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.5rem) !important;
        line-height: 1.35 !important;
        margin-top: 1.2em !important;
        margin-bottom: 1.2em !important;
        letter-spacing: 0.04em !important;
    }

    /* モバイル表示時の小見出しh3の縮小（最大2行に収めるための最適化） */
    .entry-content h3,
    .page-content .container h3,
    .reason-item h3,
    .strength-item h3 {
        font-size: clamp(0.95rem, 4vw, 1.08rem) !important;
        line-height: 1.35 !important;
        margin-top: 1.6em !important;
        margin-bottom: 0.8em !important;
        padding-left: 12px !important;
        letter-spacing: 0.02em !important;
    }
    .entry-content h3::before,
    .page-content .container h3::before {
        top: 2px !important;
        bottom: 2px !important;
    }

    /* FAQアイテム専用スタイル（Q. / A. とテキストのスマホ時の重なり防止） */
    .faq-item h3 {
        font-size: clamp(0.95rem, 4vw, 1.08rem) !important;
        line-height: 1.35 !important;
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        padding-left: 30px !important;
        letter-spacing: 0.02em !important;
    }
    .faq-item h3::before {
        font-size: 1.25rem !important;
        top: 0 !important;
    }
    .faq-item p {
        padding-left: 30px !important;
    }
    .faq-item p::before {
        font-size: 1.25rem !important;
        top: 2px !important;
    }

    /* モバイル表示時のお悩みリスト（Problems）の余白削減と文字サイズ調整 */
    .problems-section ul {
        padding: 30px 20px 30px 40px !important;
        font-size: 0.95rem !important;
    }
    .problems-section li {
        margin-bottom: 16px !important;
    }
}

/* ==========================================================================
   YouTube & Video Embeds (動画のセンタリング & レスポンシブ対応)
   ========================================================================== */
/* iframeのセンタリング & 完全レスポンシブ対応 */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"],
.entry-content iframe,
.page-content iframe {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
}

/* WordPress標準のブロックエディタ YouTube埋め込みのセンタリング */
.wp-block-embed-youtube,
.wp-block-embed {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.wp-block-embed__wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ==========================================================================
   Premium Animations & Japanese Modern Art Styles
   ========================================================================== */

/* スクロールアニメーション（Reveal効果）の基本設定 */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 各種トランジション効果のバリエーション */
.reveal.fade-left {
    transform: translateX(-35px);
}
.reveal.fade-right {
    transform: translateX(35px);
}
.reveal.scale-up {
    transform: scale(0.96);
}
.reveal.active.fade-left,
.reveal.active.fade-right {
    transform: translateX(0);
}
.reveal.active.scale-up {
    transform: scale(1);
}

/* 時間差表示（スタッガー効果）のための遅延クラス */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* H2見出しの鈍金アンダーライン出現アニメーション */
section h2::after {
    width: 0 !important; /* デフォルトの幅を上書き */
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s !important;
}
.reveal.active h2::after {
    width: 60px !important; /* スクロール検知後にスッと伸びる */
}

/* 伝統的・和柄バックグラウンドパターン（薄紅桜色レイヤーの装飾） */
.bg-ivory {
    position: relative;
    background-color: var(--secondary-color);
    background-image: 
        radial-gradient(rgba(184, 144, 71, 0.04) 1px, transparent 0),
        radial-gradient(rgba(184, 144, 71, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px; /* 和風の細かな千鳥格子調ドット */
}

/* 装飾金枠のレイヤードアニメーション（ロード時に金線が流れるように描画される） */
.hero-section::after,
.page-header::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(184, 144, 71, 0.25);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-section.active::after,
.page-header::after { /* page-headerはロード直後に表示されるため即座に active 化 */
    opacity: 1;
    transform: scale(1);
}

/* ボタン（LINE, プライマリ）のキラリと光るホバーエフェクト（Shimmer Effect） */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
}
.btn:hover::before {
    left: 200%;
    transition: left 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* LINEボタンの特化シャドウと脈動マイクロインタラクション */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(6, 199, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); }
}
.btn-line {
    animation: pulseGlow 3s infinite;
}

/* カード要素のホバーエフェクトを「浮遊感」と「鈍金光彩」へ強化 */
.reason-item, 
.case-card, 
.faq-item {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reason-item:hover, 
.case-card:hover, 
.faq-item:hover {
    transform: translateY(-8px) scale(1.015) !important;
    box-shadow: 0 20px 40px rgba(15, 30, 54, 0.07) !important;
    border-color: var(--accent-gold) !important;
}

/* 喜びの輪（ビフォーアフター）を高級なレイアウトカードに装飾 */
.cases-section .reason-item {
    background: linear-gradient(145deg, var(--white), #FAF7F5);
    border-left: 4px solid var(--accent-color) !important;
    border-top: 1px solid rgba(184, 144, 71, 0.1) !important;
}

/* メインビジュアル内の文字が出現する際のアニメーション */
@keyframes textReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-section h2 {
    opacity: 1;
    animation: textReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-section p {
    opacity: 1;
    animation: textReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}
.hero-section .hero-cta {
    opacity: 1;
    animation: textReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* ==========================================================================
   Premium Japanese Modern Redesign - Added in June 2026
   ========================================================================== */

/* 1. すりガラスヘッダー & ナビゲーションの金糸ホバー */
.site-header {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px rgba(15, 30, 54, 0.03) !important;
    border-bottom: 1px solid rgba(184, 144, 71, 0.15) !important;
}

.main-navigation a::after {
    background-color: var(--accent-gold) !important;
    height: 2px !important;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 2. 金箔ダスト（浮遊粒子）アニメーション */
.gold-dust-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.dust {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.8) 0%, rgba(184, 144, 71, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.dust-1 { top: 20%; left: 15%; animation: floatDust1 12s infinite ease-in-out; }
.dust-2 { top: 60%; left: 80%; animation: floatDust2 16s infinite ease-in-out; }
.dust-3 { top: 40%; left: 45%; animation: floatDust3 14s infinite ease-in-out; }
.dust-4 { top: 80%; left: 25%; animation: floatDust4 18s infinite ease-in-out; }
.dust-5 { top: 15%; left: 70%; animation: floatDust1 15s infinite ease-in-out 2s; }
.dust-6 { top: 75%; left: 55%; animation: floatDust2 20s infinite ease-in-out 3s; }

@keyframes floatDust1 {
    0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
    20% { opacity: 0.7; }
    50% { transform: translateY(-40px) translateX(20px) scale(1.2); opacity: 0.4; }
    80% { opacity: 0.7; }
    100% { transform: translateY(-80px) translateX(0px) scale(0.8); opacity: 0; }
}
@keyframes floatDust2 {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    30% { opacity: 0.8; }
    60% { transform: translateY(-60px) translateX(-30px) scale(0.7); opacity: 0.3; }
    100% { transform: translateY(-100px) translateX(10px) scale(1); opacity: 0; }
}
@keyframes floatDust3 {
    0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
    25% { opacity: 0.6; }
    70% { transform: translateY(-50px) translateX(40px) scale(1.1); opacity: 0.5; }
    100% { transform: translateY(-90px) translateX(20px) scale(0.6); opacity: 0; }
}
@keyframes floatDust4 {
    0% { transform: translateY(0) translateX(0) scale(0.9); opacity: 0; }
    40% { opacity: 0.8; }
    80% { transform: translateY(-70px) translateX(-20px) scale(1.3); opacity: 0.2; }
    100% { transform: translateY(-110px) translateX(-10px) scale(0.9); opacity: 0; }
}


/* 4. 水引デザイン & H2出現ラインアニメーション */
section h2 {
    position: relative;
    padding-bottom: 25px !important;
}

section h2::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, var(--accent-gold) 45%, var(--accent-color) 45%, var(--accent-color) 55%, var(--accent-gold) 55%);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    transform-origin: center;
}

.reveal.active h2::before {
    transform: translateX(-50%) scaleX(1);
}

/* 水引の結び目を模した菱形デコレーション */
section h2::after {
    content: '◆' !important;
    position: absolute;
    bottom: -3px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(0) rotate(45deg) !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: var(--accent-gold);
    font-size: 8px;
    line-height: 1;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s !important;
}

.reveal.active h2::after {
    transform: translateX(-50%) scale(1) rotate(45deg) !important;
}

/* 5. カード要素の枠線描画ホバーエフェクト (Border Draw Effect) */
.reason-item, .case-card, .faq-item {
    position: relative;
    overflow: hidden;
}

.reason-item::before, .reason-item::after,
.case-card::before, .case-card::after,
.faq-item::before, .faq-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 0 solid transparent;
    transition: all 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

/* 左上から右・下へ */
.reason-item::before, .case-card::before, .faq-item::before {
    top: 0;
    left: 0;
    border-top-width: 1px;
    border-right-width: 1px;
}

/* 右下から左・上へ */
.reason-item::after, .case-card::after, .faq-item::after {
    bottom: 0;
    right: 0;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.reason-item:hover::before, .case-card:hover::before, .faq-item:hover::before,
.reason-item:hover::after, .case-card:hover::after, .faq-item:hover::after {
    width: 100%;
    height: 100%;
    border-color: var(--accent-gold);
}

.reason-item:hover, .case-card:hover, .faq-item:hover {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 20px 45px rgba(15, 30, 54, 0.08) !important;
}

/* お役立ち・ニュースのサムネイル画像の高級ズーム & Shimmer */
.useful-thumbnail, .news-thumbnail {
    position: relative;
    overflow: hidden;
}
.useful-thumbnail img, .news-thumbnail img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.reason-item:hover .useful-thumbnail img, 
.reason-item:hover .news-thumbnail img {
    transform: scale(1.06) !important;
}

/* 6. LINE CTAボタンの高級化（シマーと脈動の融合、単色化、文字ホバー拡張、可読性向上） */
.btn-line {
    background-color: #06C755 !important;
    background: #06C755 !important;
    border: 1px solid #06C755 !important;
    box-shadow: 0 8px 24px rgba(6, 199, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 40, 10, 0.3) !important;
    transition: var(--transition), letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 18px 40px;
}

.btn-closing {
    font-size: 1.3rem;
    padding: 22px 55px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-line:hover {
    background: var(--white) !important;
    color: #06C755 !important;
    border-color: #06C755 !important;
    letter-spacing: 0.16em !important;
    box-shadow: 0 12px 32px rgba(6, 199, 85, 0.4) !important;
    text-shadow: none !important;
}

/* ボタンの外側にゴールドの高級な光輪（オーラ）をまとわせるアニメーション */
@keyframes goldPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(184, 144, 71, 0.5), 0 8px 24px rgba(6, 199, 85, 0.3); }
    70% { box-shadow: 0 0 0 15px rgba(184, 144, 71, 0), 0 8px 24px rgba(6, 199, 85, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(184, 144, 71, 0), 0 8px 24px rgba(6, 199, 85, 0.3); }
}

.btn-line {
    animation: goldPulseGlow 3.5s infinite !important;
}

/* 7. 事例（喜びの輪）の朱色落款（スタンプ）デザイン */
.case-card-wrapper {
    position: relative;
}

.stamp-resolved {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px double #C94A47;
    border-radius: 50%;
    color: #C94A47;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-align: center;
    transform: rotate(-15deg) scale(0.9);
    opacity: 0.85;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(201, 74, 71, 0.1);
    z-index: 5;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reason-item:hover .stamp-resolved {
    transform: rotate(-8deg) scale(1.05);
    opacity: 1;
}

/* 和紙のようなテクスチャの追加（喜びの輪カード） */
.cases-section .reason-item {
    background-image: radial-gradient(rgba(184, 144, 71, 0.02) 1px, transparent 0);
    background-size: 8px 8px;
}

