﻿@charset "UTF-8";

/* ==========================================================================
   Pattern 02: Elegant Luxury
   Concept: Hotel-like, Sophisticated, Spacious, Serif
   ========================================================================== */

:root {
    --c-text: #4a4a4a;
    --c-text-light: #888;
    --c-bg: #fdfcfc;
    /* Off-white */
    --c-bg-accent: #f4f1ea;
    /* Greige */
    --c-primary: #333;
    --c-accent: #a89f91;
    /* Champagne Gold/Greige */
    --c-rubin: #CE0056;
    /* Logo Color */

    --f-main: "Zen Old Mincho", serif;
    --f-eng: "Cormorant Garamond", serif;
}

body {
    font-family: var(--f-main);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 2.2;
    /* Loose line height for elegance */
    margin: 0;
    letter-spacing: 0.08em;
}

strong,
b {
    color: var(--c-primary);
    /* Darker than body text */
    font-weight: 700;
}

/* Bold text on dark backgrounds stays white/light */
.cta-elegant strong,
.cta-elegant b,
.footer strong,
.footer b,
.cta-card strong,
.cta-card b {
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.4s;
}

a:hover {
    opacity: 0.8;
    color: var(--c-rubin);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 5rem;
}

.mt-5 {
    margin-top: 8rem;
    /* Generous spacing for elegant layout */
}

/* Header */
.header {
    padding: 30px 50px;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: transparent;
    /* Initial Transparent */
    border-bottom: none;
    box-sizing: border-box;
    transition: all 0.5s ease;
}

.header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 50px;
    /* Slimmer on scroll */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--f-eng);
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 2rem;
    font-family: var(--f-main);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    align-items: center;
    /* 垂直方向の中央揃えを追加 */
}

.contact-link {
    border: 1px solid var(--c-text);
    padding: 8px 20px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.5;
    /* 行高をリセットして中央に合わせやすくする */
    margin-top: -2px;
    /* 微調整 */
}

/* Nav Item Underline Accent (Global) */
.nav__item a {
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.nav__item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 1px;
    background: var(--c-rubin);
    transition: width 0.4s;
}

.nav__item a:hover::after,
.nav__item a.active::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Slider */
.hero__slider {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* White Overlay for Elegant look */
.hero__slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253, 252, 252, 0.75);
    /* Off-white overlay */
    z-index: 3;
    /* Above slides */
    pointer-events: none;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* filter: sepia(10%); Removed for cleaner look with overlay */
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.hero__slide.active {
    opacity: 1;
    z-index: 2;
    /* Advanced Animation */
    animation: heroZoom 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Sequential Animation Init */
.vertical-text,
.hero__main-text,
.hero__title,
.hero__desc,
.hero__btn-area {
    opacity: 0;
    /* JS load wait */
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* 1. Vertical Text (Left) */
.hero__content.is-loaded .vertical-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Main Text Container Fade In */
.hero__content.is-loaded .hero__main-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* 2. Title (Inside Main Text) */
.hero__content.is-loaded .hero__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.0s;
}

/* 3. Desc (Inside Main Text) */
.hero__content.is-loaded .hero__desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.3s;
}

/* 4. Buttons (Inside Main Text) */
.hero__content.is-loaded .hero__btn-area {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.6s;
}

.hero__content {
    display: flex;
    align-items: center;
    gap: 8rem;
    position: relative;
    z-index: 10;
    /* Ensure text is above overlay */
}

.vertical-text {
    writing-mode: vertical-rl;
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--c-text-light);
    border-right: 1px solid var(--c-accent);
    padding-right: 20px;
    height: 200px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.hero__title .en {
    font-family: var(--f-eng);
    font-size: 1.5rem;
    color: var(--c-accent);
    display: block;
    margin-bottom: 1rem;
}

.hero__btn-area {
    display: flex;
    gap: 3rem;
    justify-content: flex-start;
}

.hero__desc {
    font-size: 1.1rem;
    color: var(--c-text-light);
    margin-bottom: 3rem;
}

.btn-elegant {
    font-family: var(--f-eng);
    border-bottom: 1px solid var(--c-primary);
    padding-bottom: 5px;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section--bg {
    background-color: var(--c-bg-accent);
}

.section--message {
    padding: 12rem 0;
}

.container--narrow {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.message-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deco-text {
    font-family: var(--f-eng);
    color: var(--c-rubin);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    /* Flexboxで中央配置 */
}

.message-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.section-badge {
    display: block;
    font-family: var(--f-eng);
    color: var(--c-rubin);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.section-head {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.text-body {
    color: var(--c-text-light);
    font-size: 1rem;
}

/* Concept Layout */
.concept-layout {
    display: flex;
    align-items: center;
    gap: 80px;
    /* Adjusted gap */
    justify-content: center;
}

.concept-image {
    flex: 0 0 40%;
    /* Reduced width */
    text-align: right;
}

.img-frame {
    display: inline-block;
    padding: 15px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.img-frame img {
    max-width: 400px;
    /* Limit image size */
    width: 100%;
    height: auto;
}

.concept-text {
    flex: 1;
    max-width: 600px;
}

/* Service */
.service-list {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
}

.service-item {
    flex: 1;
    padding: 2rem;
    border-right: 1px solid #eee;
    text-align: center;
}

.service-item:last-child {
    border: none;
}

.service-item .num {
    font-family: var(--f-eng);
    font-size: 3rem;
    color: #eee;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.service-item h4 {
    font-family: var(--f-eng);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.service-item .jp-title {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-item .desc {
    font-size: 0.9rem;
    color: var(--c-text-light);
    text-align: left;
}

/* Dark Book Section */
.section--dark {
    background-color: #2a2a2a;
    color: #fff;
}

.book-wrapper {
    display: flex;
    align-items: flex-start;
    /* stickyのために変更 */
    justify-content: center;
    gap: 4rem;
    position: relative;
    /* 親要素としての基準 */
}

.book-visual {
    position: sticky;
    top: 150px;
    /* ヘッダー分＋αの余白 */
    flex-shrink: 0;
}

.book-visual .visual-box {
    width: 250px;
    height: 350px;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-main);
    font-size: 1.5rem;
    writing-mode: vertical-rl;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.section-badge.light,
.section-head.light,
.text-body.light {
    color: #ccc;
}

.section-head.light {
    color: #fff;
}

.btn-line {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 30px;
    display: inline-block;
    margin-top: 2rem;
    transition: 0.3s;
}

.btn-line:hover {
    background: #fff;
    color: var(--c-accent) !important;
    /* 元のアクセントカラーに戻す */
    opacity: 1;
}

/* Parallax & Section Backgrounds (Pattern 3 Specific) */
.section--parallax {
    position: relative;
    /* overflow: hidden;  <-- REMOVED to allow sticky inside */
    padding: 120px 0;
}

/* New Clipper for Backgrounds */
.parallax-clipper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Clips the background but allows content to stick */
    z-index: 0;
    pointer-events: none;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-overlay.light {
    background: rgba(255, 255, 255, 0.7);
    /* Soft veil */
}

.parallax-overlay.dark-elegant {
    background: rgba(44, 42, 37, 0.85);
    /* Matches Charcoal/Dark Brown */
}

.relative-content {
    position: relative;
    z-index: 2;
}

/* Specific Section Adjustments for P3 */
#message .message-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

#business .parallax-bg {
    filter: grayscale(20%) sepia(10%);
    /* Subtle antique feel */
}

.service-elegant-item {
    background: rgba(255, 255, 255, 0.9);
    /* Ensure readability against texture */
    padding: 5rem 4rem;
    /* Improved whitespace balance */
    border-radius: 2px;
}

/* Footer */
.footer {
    padding: 5rem 0;
    background-color: var(--c-bg-accent);
    /* Greige #f4f1ea - Distinct from body bg */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo {
    font-family: var(--f-eng);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.8rem;
    color: #aaa;
}


/* ==========================================================================
   Profile Section (NEW)
   ========================================================================== */
.section--profile {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.profile-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.profile-img {
    flex: 0 0 400px;
    /* 固定幅に変更して縮小 */
    max-width: 40%;
    /* レスポンシブ対応 */
    position: relative;
    margin-right: auto;
    /* 左寄せ気味にするなら */
}

.profile-img img {
    width: 100%;
    height: auto;
    border-radius: 500px 500px 0 0;
    /* Arch shape */
    aspect-ratio: 3/4;
    object-fit: cover;
    box-shadow: 20px 20px 0 var(--c-bg-accent);
}

.profile-text {
    flex: 1;
}

.profile-name-en {
    font-family: var(--f-eng);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--c-primary);
}

.profile-name-jp {
    font-size: 1.1rem;
    color: var(--c-text-light);
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--c-accent);
    padding-bottom: 1rem;
    display: inline-block;
}

/* ==========================================================================
   Company Section (NEW)
   ========================================================================== */
.section--company {
    background: var(--c-bg-accent);
    padding: 6rem 0;
}

.company-list {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.company-list dl {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    margin: 0;
}

.company-list dt {
    width: 30%;
    font-family: var(--f-eng);
    color: var(--c-rubin);
    font-weight: 600;
}

.company-list dd {
    width: 70%;
    margin: 0;
}

/* Service Section (Elegant List) */
.service-elegant-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-elegant-item {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-elegant-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-elegant-num {
    font-family: var(--f-eng);
    font-size: 4rem;
    color: var(--c-accent);
    line-height: 0.8;
    opacity: 0.3;
}

.service-elegant-content {
    flex: 1;
}

.service-elegant-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-elegant-content h4::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: var(--c-rubin);
}

.service-desc {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 2rem;
}

.service-sub-list {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
    background: #fff;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-sub-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5em;
}

.service-sub-list li::before {
    content: "◇";
    position: absolute;
    left: 0;
    color: var(--c-rubin);
    font-size: 0.8em;
}

.service-desc-sm {
    font-size: 0.95rem;
    color: var(--c-text-light);
}

/* Book Section Additional Styles */
.book-list-elegant {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.book-list-elegant li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-family: var(--f-main);
    font-size: 1.1rem;
    color: #fff;
    position: relative;
}

.book-sub-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.book-sub-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button Text Arrow */
.btn-text-arrow {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--f-eng);
    color: var(--c-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: 0.3s;
}

.btn-text-arrow:hover {
    color: var(--c-rubin);
    padding-right: 10px;
}

/* Company List (Consulting Menu) Update */
.company-list dl {
    align-items: flex-start;
}

.company-list dt {
    padding-top: 0.2rem;
    /* Align with text */
}

/* Animation */
.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {

    /* Hero */
    .hero {
        height: auto;
        padding: 150px 0 5rem;
    }

    .hero__content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        height: auto;
        border: none;
        padding: 0;
        border-bottom: 1px solid var(--c-accent);
        /* 横線に変更 */
        padding-bottom: 1rem;
        width: 100%;
    }

    /* Message */
    .section--message {
        padding: 6rem 0;
    }

    /* Concept */
    .concept-layout {
        flex-direction: column-reverse;
        gap: 3rem;
    }

    .concept-image {
        text-align: center;
    }

    /* Service */
    .service-elegant-item {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .service-elegant-num {
        font-size: 3rem;
    }

    .service-elegant-content h4 {
        flex-wrap: wrap;
    }

    /* Book (Sticky解除) */
    .book-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .book-visual {
        position: static;
        /* Sticky解除 */
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }


    /* Profile */
    .profile-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-img {
        flex: 0 0 auto;
        max-width: 80%;
        /* 少し小さくして中央配置 */
        margin: 0 auto;
    }

    /* Company */
    .company-list dl {
        flex-direction: column;
        gap: 0.5rem;
    }

    .company-list dt {
        width: 100%;
    }

    .company-list dd {
        width: 100%;
    }

    /* Utility */
    .pc-only-br {
        display: none;
    }
}

/* ==========================================================================
   Custom Cursor - DISABLED
   ========================================================================== */
/*
@media (min-width: 769px) {
    body {
        cursor: none;
    }

    a,
    button,
    input,
    textarea,
    select,
    .btn-elegant,
    .btn-line,
    .btn-text-arrow {
        cursor: none;
    }
}
*/

.cursor,
.cursor-follower {
    display: none !important;
}

/* Problems List (Elegant Grid) */
.problem-list {
    max-width: 800px;
    margin: 0 auto;
}

.problem-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-list li {
    background: #fff;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--c-accent);
    /* Elegant accent */
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    min-height: 100px;
    /* Uniform height */
}

/* Conclusion Text */
.problem-conclusion {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 2.0;
}

.problem-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .problem-list ul {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Background Animation (Elegant-Geometric)
   ========================================================================== */
.section {
    position: relative;
    /* overflow: hidden; Removed to prevent layout breakage, but required for containment? Let's rely on container overflow hidden */
}

.bg-anim-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    /* Prevent spillover here, safe for sticky parents */
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation-name: floatShape;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.bg-orb {
    filter: blur(8px);
    /* Less blur for visibility */
}

.bg-ring {
    background: transparent;
    border: 1px solid currentColor;
    filter: blur(1px);
    /* Sharp lines */
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.9);
        opacity: 0;
    }

    20% {
        opacity: 1;
        /* Fully visible */
    }

    50% {
        transform: translate(40px, -50px) rotate(180deg) scale(1);
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translate(-30px, -100px) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}

/* ==========================================================================
   Added Button Styles
   ========================================================================== */
.btn-elegant {
    display: inline-block;
    padding: 1rem 3rem;
    margin: 0.5rem;
    border: 1px solid var(--c-accent);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    color: var(--c-text-main);
    font-family: var(--f-serif);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    min-width: 280px;
    text-align: center;
}

.btn-elegant:hover {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
    box-shadow: 0 5px 15px rgba(192, 160, 98, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   Business Page (P3) Specific Adaptations
   ========================================================================== */

/* Hero Section (Elegant Version) */
.business-hero {
    position: relative;
    /* Use a more "Elegant" office image or same as P2 but with different overlay */
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1600&auto=format&fit=crop') no-repeat center center/cover !important;
    color: var(--c-text-main) !important;
    /* P3 text color */
    padding-top: 220px !important;
    padding-bottom: 120px !important;
}

.business-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* White/Gold Overlay for Luxury */
    z-index: 1;
}

.business-hero .container {
    position: relative;
    z-index: 2;
}

.business-hero .page-title {
    color: var(--c-primary) !important;
    text-shadow: none;
    /* No shadow needed for light theme */
}

/* Intro Box (Elegant Style - Restored) */
.business-intro-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--c-accent);
    /* Gold border */
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(192, 160, 98, 0.1);
    /* Gold shadow */
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards Grid (2 columns fixed like P2) */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Fixed 2 col */
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    /* Added bottom spacing for the grid */
}

.menu-card {
    background: #fff !important;
    padding: 0 !important;
    transition: all 0.4s ease;
    border: 1px solid var(--c-accent) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden;
    /* Ensure content stays inside */
}

.menu-card img {
    height: 200px !important;
    /* Fixed height */
    width: 100% !important;
    object-fit: cover !important;
    order: 1 !important;
    /* Force Image to Top */
}

.menu-card dl {
    padding: 1.5rem !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.4 !important;
    background: #fff !important;
    order: 2 !important;
    /* Force Text to Bottom */
    margin: 0 !important;
}

.menu-card dt {
    margin-bottom: 0.5rem !important;
    font-weight: bold;
    color: var(--c-primary);
    white-space: nowrap !important;
    font-size: 1rem !important;
    letter-spacing: -0.05em !important;
    /* Tighten to fit */
    overflow: visible !important;
    /* Allow slight overflow if transparent */
}

@media (max-width: 400px) {
    .menu-card dt {
        font-size: 0.8rem !important;
        /* Smaller on very small screens */
    }
}

.menu-card dd {
    margin: 0 !important;
    font-size: 0.95rem;
}

/* Check List (Problems) - Elegant Style (Compacted) */
/* Check List (Problems) - Elegant Style (Compacted) */
.check-list-elegant {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    /* Reduced gap */
    margin-top: 2rem;
}

.check-list-elegant li {
    font-family: var(--f-serif);
    /* Serif for elegance */
    color: var(--c-text-main);
    background: #fff;
    padding: 1rem 1.5rem;
    /* Reduced padding */
    border: 1px solid var(--c-accent);
    /* Full border or left border? Let's do elegant border */
    border-left: 4px solid var(--c-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    line-height: 1.6;
    /* Tighter line height */
    min-height: auto;
    /* Remove fixed min-height */
    transition: all 0.4s ease;
    /* Elegant transition */
}

/* Hover Effect for Elegant List */
.check-list-elegant li:hover {
    background: #fffdf5;
    /* Very subtle gold tint */
    border-color: var(--c-primary);
    /* Darken border */
    transform: translateY(-2px);
    /* Slight lift */
    box-shadow: 0 8px 20px rgba(192, 160, 98, 0.15);
    /* Gold glow */
}

/* Problem Row */
.problem-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.problem-img-box {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* For zoom effect */
    border-radius: 4px;
    /* Radius on container */
}

.problem-img-box img {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    transition: transform 0.8s ease;
    /* Slow, elegant zoom */
}

.problem-img-box:hover img {
    transform: scale(1.05);
    /* Elegant zoom */
}

@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    /* --- Top Page Hover Effects (Pattern 3) --- */

    /* Problem List Item Hover */
    .problem-list li {
        transition: all 0.4s ease;
    }

    .problem-list li:hover {
        background: #fffdf5;
        /* Subtle gold tint */
        border-color: var(--c-primary);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(192, 160, 98, 0.2);
    }

    /* Service Elegant Item Hover */
    .service-elegant-item {
        transition: all 0.4s ease;
    }

    .service-elegant-item:hover {
        transform: translateX(10px);
        /* Elegant slide */
    }

    .service-elegant-item:hover h4 {
        color: var(--c-accent);
        /* Title turns gold */
    }

    .service-elegant-item h4 {
        transition: color 0.3s ease;
    }

    /* Concept Image Zoom */
    .concept-image .img-frame {
        overflow: hidden;
        border-radius: 4px;
    }

    .concept-image img {
        transition: transform 0.8s ease;
        /* Slow elegant zoom */
    }

    .concept-image:hover img {
        transform: scale(1.05);
    }

    .check-list-elegant {
        grid-template-columns: 1fr;
    }

    .problem-img-box img {
        min-height: 250px;
    }
}

/* Helper Grid Restored */
.col-6 {
    flex: 1;
}

@media (max-width: 768px) {
    .col-6 {
        width: 100%;
    }

    .mb-mobile-30 {
        margin-bottom: 30px;
    }
}

/* Soft Image Mask for P3 Restored */
.img-mask-soft {
    overflow: hidden;
    border-radius: 4px;
}

.img-mask-soft img {
    transition: transform 0.7s ease;
}

.img-mask-soft:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   Legacy Layout Fix: Vertical Header (Sidebar)
   Target: Pages with .header__vertical (Profile, Notebook, etc.)
   ========================================================================== */

@media (min-width: 901px) {

    /* 1. Header Layout: Fixed Sidebar */
    .header:has(.header__vertical) {
        width: 260px;
        height: 100vh;
        top: 0;
        left: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .header:has(.header__vertical) .header__vertical {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .header:has(.header__vertical) .logo {
        margin-bottom: 3rem;
        text-align: left;
    }

    .header:has(.header__vertical) .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }

    .header:has(.header__vertical) .nav__item {
        width: 100%;
    }

    .header:has(.header__vertical) .nav__item a {
        display: block;
        width: 100%;
        padding: 5px 0;
    }

    .header:has(.header__vertical) .consultation-btn {
        margin-top: auto;
        /* Push to bottom if needed */
        width: 100%;
    }

    /* 2. Content Layout: Prevent Overlap */
    body:has(.header__vertical) main,
    body:has(.header__vertical) .footer {
        margin-left: 260px;
        width: calc(100% - 260px);
    }

    /* 3. JS Conflict Prevention */
    /* Hide the clone header created by header-scroll.js when vertical header is active */
    body:has(.header__vertical) .header--clone {
        display: none !important;
    }
}

/* Narrower Desktop Adjustments (Optional safety) */
@media (min-width: 901px) and (max-width: 1100px) {
    .header:has(.header__vertical) {
        width: 220px;
        padding: 30px 20px;
    }

    body:has(.header__vertical) main,
    body:has(.header__vertical) .footer {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}