/* --- Mobile Design for Blissbook Theme --- */

/* --- Design System: Modern White --- */
:root {
    --color-bg: #fcfcfc;
    /* 柔らかな白 */
    --color-text: #1a1a1a;
    /* 墨色（漆黒より少し柔らかい） */
    --color-accent: #a68b5a;
    /* 真鍮・ゴールド */
    --color-sub: #666666;
    /* 補助テキスト */
    --color-border: #e0e0e0;
    /* 繊細な境界線 */
    --transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Mobile Navigation --- */
@media (max-width: 768px) {

    /* Hamburger Menu Styles */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1003 !important;
        position: relative;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background: var(--color-text);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
        top: 11px;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
        top: 11px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 70px 10px 30px; /* 左パディングを15px→10pxにさらに縮小 */
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        overflow-x: visible;
        z-index: 1002 !important;
        display: none; /* Hide by default on mobile */
    }

    .nav-links.active {
        right: 0;
        display: flex; /* Show menu when active */
    }

    .nav-links li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links a {
        font-size: 14px !important; /* 文字サイズを小さく */
        opacity: 0.8;
        padding: 8px 0;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        opacity: 1;
        color: var(--color-accent);
    }

    /* --- Dropdown Menu Styles --- */
    .dropdown {
        width: 100%;
        position: relative;
    }

    .dropdown-menu {
        display: none;
        position: relative;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
        margin-top: 8px;
        border-left: none; /* 左サイドの色塗りを削除 */
        margin-left: 10px;
        width: calc(100% - 10px);
        box-sizing: border-box;
        border-radius: 4px;
    }

    .dropdown-menu li {
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 薄い下線 */
        width: 100%;
        background: transparent; /* 背景を透明に */
    }

    .dropdown-menu li a {
        font-size: 12px !important;
        opacity: 0.8; /* 他のメニューと同様の透明度 */
        padding: 10px 15px 10px 5px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.4;
        word-break: break-all;
        font-weight: 400; /* 通常の太さに */
        color: #333; /* テキスト色を明確に */
        transition: all 0.2s ease; /* トランジション追加 */
    }

    .dropdown-menu li a:hover {
        opacity: 1;
        color: var(--color-accent); /* ホバーでアクセント色に */
        background: rgba(166, 139, 90, 0.05); /* 薄い背景色 */
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .drop-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 8px 0;
        width: 100%;
        transition: all 0.3s ease;
    }

    .drop-trigger:hover {
        background: rgba(166, 139, 90, 0.1);
        border-radius: 4px;
    }

    .arrow {
        transition: transform 0.3s;
        font-size: 12px;
        color: var(--color-accent);
        font-weight: bold;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .dropdown.active .arrow {
        transform: rotate(180deg);
    }

    /* --- Improved List Design --- */
    .flex-text ul {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }

    .flex-text ul li {
        position: relative;
        padding: 12px 0 12px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 0.9rem;
        line-height: 1.6;
        transition: all 0.3s ease;
    }

    .flex-text ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        background: var(--color-accent);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .flex-text ul li:hover {
        padding-left: 30px;
        color: var(--color-accent);
        background: rgba(166, 139, 90, 0.05);
    }

    .flex-text ul li:hover::before {
        width: 10px;
        height: 10px;
        background: var(--color-accent);
    }

    .flex-text ul li:last-child {
        border-bottom: none;
    }
    body.menu-open {
        overflow: hidden;
    }

    /* General mobile content adjustments */
    section {
        padding: 50px 20px !important;
    }

    h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 25px;
        text-align: center;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left;
    }

    /* --- Hero Section Mobile - KEY VISUAL HEIGHT REDUCED TO HALF --- */
    .hero-new {
        height: 45vh !important;
        /* 100vhから45vhに約半分に */
        min-height: 300px !important;
        /* 350pxから300pxに */
        padding-top: 100px !important;
        /* ヘッダーとの重なりを避けるために増やす */
    }

    .hero-content-new h1 {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
        line-height: 1.2;
        text-align: center;
        margin-bottom: 12px;
    }

    .hero-price-tag {
        font-size: 0.85rem;
        margin-top: 15px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
        align-items: center;
    }

    .btn-minimal {
        width: 180px;
        padding: 12px 20px;
        font-size: 0.85rem;
        text-align: center;
    }

    /* --- Features Section Mobile - SINGLE COLUMN --- */
    .features {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }

    .feature-item {
        padding: 20px 15px;
        border-radius: 12px;
        transition: all 0.3s ease;
        background: #fff;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }

    .feature-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .feature-item h3 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
        color: var(--color-accent);
    }

    .feature-item p {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .btn-more {
        display: block;
        text-align: center;
        font-size: 0.8rem;
        padding: 8px 15px;
        margin-top: 10px;
    }

    /* --- Stats Section Mobile - SINGLE COLUMN --- */
    .stats-minimal {
        padding: 50px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        text-align: center;
    }

    .stat-box {
        padding: 25px 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
    }

    .stat-box:hover {
        transform: translateY(-3px);
    }

    .stat-num {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        font-weight: 600;
        color: var(--color-accent);
        margin-bottom: 10px;
    }

    .stat-desc {
        font-size: 0.9rem;
        line-height: 1.5;
        color: var(--color-sub);
    }

    /* --- Flex Container Mobile - SINGLE COLUMN --- */
    .flex-container {
        flex-direction: column !important;
        gap: 30px;
        margin-top: 30px;
    }

    .flex-text {
        order: 2;
    }

    .flex-img {
        order: 1;
        height: 200px;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .flex-text-h3 {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.4;
    }

    .flex-text p {
        text-align: center;
        font-size: 0.9rem;
    }

    /* --- Case Studies Section Mobile - SINGLE COLUMN SLIDER --- */
    .slider-container {
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .slider-track {
        display: flex;
        gap: 15px;
        padding-bottom: 10px;
    }

    .work-card-slide {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .work-img {
        height: 160px;
    }

    .work-content {
        padding: 15px;
    }

    .work-content h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .work-category,
    .work-details {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    /* --- CTA Section Mobile - SINGLE COLUMN --- */
    .cta-section {
        padding: 60px 20px;
    }

    .cta-container h2 {
        font-size: 1.4rem;
        line-height: 1.4;
        text-align: center;
    }

    .cta-lead {
        font-size: 0.9rem;
        text-align: center;
    }

    .cta-buttons-wrapper {
        flex-direction: column !important;
        gap: 15px;
        align-items: center;
    }

    .cta-btn-phone,
    .cta-btn-form {
        width: 100%;
        max-width: 320px;
    }

    .btn-main {
        font-size: 1.2rem;
    }

    .cta-features {
        flex-direction: column !important;
        gap: 8px;
        align-items: center;
        font-size: 0.8rem;
    }

    /* --- Access Section Mobile - SINGLE COLUMN --- */
    .area-container {
        flex-direction: column !important;
        gap: 30px;
    }

    .area-map {
        width: 100%;
        height: 250px;
    }

    .map-dummy {
        width: 100%;
        height: 100%;
        background: #f0f0f0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 0.9rem;
    }

    .area-info {
        width: 100%;
    }

    .info-group {
        margin-bottom: 20px;
        padding: 15px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .info-group h4 {
        font-size: 1rem;
        margin-bottom: 8px;
        color: var(--color-accent);
    }

    .info-group p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
    }

    .info-group .tel {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-accent);
    }

    /* --- News Section Mobile --- */
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .news-meta {
        width: 100%;
    }

    /* --- Stats Section Mobile --- */
    .stats-grid {
        grid-template-columns: 1fr !important;
        border-left: none !important;
    }
    .stat-box {
        border-bottom: 1px solid var(--color-border) !important;
        border-right: none !important;
    }

    /* --- Footer Mobile --- */
    @media (max-width: 640px) {
        .footer-container {
            flex-direction: column !important;
        }
        .footer-nav-wrapper {
            grid-template-columns: 1fr !important;
        }
        .footer-bottom-inner {
            flex-direction: column !important;
    }
    .footer-nav-wrapper {
        grid-template-columns: 1fr !important;

    /* --- Features Section Mobile --- */
    .stats-container {
        padding: 0 5% !important;
    }

        padding-left: 5% !important;
    }

    /* --- Feature Link Hover --- */
    .feature-link {
        text-decoration: none;
        color: inherit;
        display: block;
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .feature-link:hover {
        transform: translateY(-10px);
    }
    .feature-link:hover .feature-item {
        border-color: var(--color-accent);
        box-shadow: 0 15px 35px rgba(166, 139, 90, 0.12);
    }
    .feature-link:hover h3 {
        color: var(--color-accent);
    }
    .feature-link:hover .btn-more {
        text-decoration: underline;
    }
    .btn-more {
        display: inline-block;
        margin-top: 15px;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--color-accent);
        letter-spacing: 0.1em;
    }
}