/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d7a2d;
    --light-green: #4a9d4a;
    --dark-green: #1a5a1a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Hina Mincho', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    position: relative;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ローディング画面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    transition: opacity 0.5s ease-out;
}

.loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.logo-reveal-container {
    text-align: center;
    padding: 60px 40px;
}

.logo-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reveal-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    filter: blur(3px);
    animation: logoRevealSubtle 2s ease-out forwards;
}

.message-text {
    font-family: 'Hina Mincho', serif;
    font-size: 28px;
    color: var(--dark-gray);
    font-weight: 400;
    letter-spacing: 2px;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.7);
    animation: charAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes logoRevealSubtle {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
        filter: blur(3px);
    }
    60% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

@keyframes charAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.7);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ヘッダー */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    z-index: 2147483647;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

/* ローディング完了後のヘッダー表示 */
.main-header.loaded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.5s ease 0.2s;
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

/* モバイルでの基本状態 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #f8f9fa !important;
        background-image:
            repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,.1) 2px, rgba(255,255,255,.1) 4px),
            repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px),
            radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255,255,255,0.2) 0%, transparent 50%),
            radial-gradient(circle at 40% 20%, rgba(255,255,255,0.2) 0%, transparent 30%),
            radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 0%, transparent 40%) !important;
        backdrop-filter: blur(1px) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 40px !important;
        z-index: 2147483646 !important;
        list-style: none !important;
    }

    .nav-menu.active .nav-link {
        font-size: 24px !important;
        font-weight: 400 !important;
        color: #8b7355 !important;
        text-decoration: none !important;
        padding: 20px 40px !important;
        border-radius: 8px !important;
        position: relative !important;
        letter-spacing: 3px !important;
        font-family: 'Hina Mincho', serif !important;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid rgba(139, 115, 85, 0.3) !important;
        backdrop-filter: blur(5px) !important;
        box-shadow: 0 4px 20px rgba(139, 115, 85, 0.2) !important;
        text-align: center !important;
        min-width: 280px !important;
        display: block !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    }

    .nav-menu.active .nav-link:hover {
        color: #2d7a2d !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 8px 30px rgba(139, 115, 85, 0.4) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-color: rgba(139, 115, 85, 0.5) !important;
        letter-spacing: 4px !important;
        text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9) !important;
    }

    .hamburger {
        display: flex !important;
        z-index: 2147483647 !important;
        position: relative !important;
        padding: 12px !important;
        background: transparent !important;
        border: none !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }

    .hamburger:hover {
        transform: scale(1.1) !important;
    }

    .hamburger span {
        width: 28px;
        height: 3px;
        background: #4a4a4a;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hamburger.active {
        background: transparent !important;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: kenBurns 18s infinite linear;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 122, 45, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
}

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

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

/* SVGアニメーション - 超巨大1行手書きスタイル（中央配置） */
.svg-text-container {
    margin-bottom: 120px;
    padding: 80px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
}

.desktop-svg {
    width: 100%;
    min-width: 1600px;
    max-width: none;
    height: auto;
    filter: drop-shadow(0 12px 60px rgba(0, 0, 0, 0.6));
    margin: 0 auto;
    display: block;
}

.mobile-svg {
    display: none;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 60px rgba(0, 0, 0, 0.6));
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* SVGの透明背景を完全に除去 */
.mobile-svg,
.mobile-svg * {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.letter {
    stroke-dasharray: 2800;
    stroke-dashoffset: 2800;
    opacity: 0;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
    stroke-linecap: round;
    stroke-linejoin: round;
}

.letter.animate {
    animation: writeTextSequential 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* メイン画面移行後の手書き順序アニメーション - A→l→w→a→y→s→B→y→Y→o→u→r→S→i→d→e */
.letter-1.animate { animation-delay: 0.2s; }  /* A */
.letter-2.animate { animation-delay: 0.4s; }  /* l */
.letter-3.animate { animation-delay: 0.6s; }  /* w */
.letter-4.animate { animation-delay: 0.8s; }  /* a */
.letter-5.animate { animation-delay: 1.0s; }  /* y */
.letter-6.animate { animation-delay: 1.2s; }  /* s */
.letter-7.animate { animation-delay: 1.5s; }  /* B (単語間隔) */
.letter-8.animate { animation-delay: 1.7s; }  /* y */
.letter-9.animate { animation-delay: 2.0s; }  /* Y (単語間隔) */
.letter-10.animate { animation-delay: 2.2s; } /* o */
.letter-11.animate { animation-delay: 2.4s; } /* u */
.letter-12.animate { animation-delay: 2.6s; } /* r */
.letter-13.animate { animation-delay: 2.9s; } /* S (単語間隔) */
.letter-14.animate { animation-delay: 3.1s; } /* i */
.letter-15.animate { animation-delay: 3.3s; } /* d */
.letter-16.animate { animation-delay: 3.5s; } /* e */

@keyframes writeTextSequential {
    0% {
        stroke-dashoffset: 2800;
        fill: transparent;
        opacity: 0;
    }
    4% {
        opacity: 1;
        fill: transparent;
    }
    46% {
        stroke-dashoffset: 400;
        fill: rgba(255, 255, 255, 0.4);
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        fill: rgba(255, 255, 255, 0.9);
        opacity: 1;
    }
}

/* 完全クリア背景透過ボタン */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 45px;
    background: transparent;
    backdrop-filter: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
    z-index: -1;
}

.modern-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 1);
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.modern-btn:hover::before {
    left: 0;
}

.modern-btn:active {
    transform: translateY(0);
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    animation: scroll 2s infinite;
}

.scroll-indicator p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        top: 5px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 15px;
    }
}

/* ミッションセクション - 参考画像通りのデザイン */
.mission-section {
    padding: 120px 0;
    background: #faf8f5;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/haikei.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 1;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission-text {
    padding: 40px 0;
}

.mission-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission-header {
    margin-bottom: 40px;
}

.mission-title {
    font-size: 48px;
    font-weight: 300;
    color: #4a4a4a;
    margin-bottom: 30px;
    letter-spacing: 2px;
    line-height: 1.3;
    font-family: 'Hina Mincho', serif;
}

.mission-subtitle {
    font-size: 16px;
    color: #7a7a7a;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 1px;
}

.mission-description {
    margin-bottom: 40px;
}

.desc-paragraph {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    font-weight: 400;
}

.desc-paragraph.highlight {
    background: rgba(45, 122, 45, 0.05);
    padding: 20px;
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
    margin: 30px 0;
}

.text-highlight {
    color: var(--primary-green);
    font-weight: 600;
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), transparent);
}

.mission-cta {
    text-align: left;
    margin-top: 40px;
}

.mission-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(45, 122, 45, 0.25);
}

.mission-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.mission-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(45, 122, 45, 0.4);
}

.mission-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    font-size: 18px;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmerSlide {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%) rotate(45deg);
    }
}

/* 葉っぱアニメーション */
.leaf-animation-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    transition: clip-path 0.8s ease;
}

.particle-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.leaf-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    animation: leafFall linear infinite;
    transform-origin: center;
    top: -50px; /* 画面上部から開始 */
}

@keyframes leafFall {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) translateX(calc(var(--random-x, 0) * 0.5px)) rotate(180deg);
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(calc(var(--random-x, 0) * 1px)) rotate(360deg);
        opacity: 0;
    }
}

/* 統合背景アニメーション */
.unified-background {
    position: relative;
    background: #f8f9fa;
    min-height: 100vh;
}

.unified-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,.1) 2px, rgba(255,255,255,.1) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
    pointer-events: none;
    z-index: 5;
}

.unified-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.2) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 0%, transparent 40%);
    filter: blur(1px);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 5;
}

.background-animation-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    overflow: visible;
}

/* 葉っぱアニメーション専用レイヤー */
.leaf-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.leaf-animation-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 500;
    overflow: visible;
}


/* 葉っぱのパーティクル */
.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 1;
}

.leaf-particle {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0;
    animation: leafFallWithSway linear infinite;
    transform-origin: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

/* 落下と揺れを統合したアニメーション */
@keyframes leafFallWithSway {
    0% {
        transform: translateY(-20vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    3% {
        opacity: 0.8;
    }
    10% {
        transform: translateY(10vh) translateX(25px) rotate(30deg);
    }
    20% {
        transform: translateY(40vh) translateX(35px) rotate(80deg);
    }
    30% {
        transform: translateY(70vh) translateX(15px) rotate(120deg);
    }
    40% {
        transform: translateY(100vh) translateX(-25px) rotate(160deg);
    }
    50% {
        transform: translateY(130vh) translateX(-35px) rotate(200deg);
    }
    60% {
        transform: translateY(160vh) translateX(-15px) rotate(240deg);
    }
    70% {
        transform: translateY(190vh) translateX(20px) rotate(280deg);
    }
    80% {
        transform: translateY(220vh) translateX(30px) rotate(320deg);
    }
    90% {
        transform: translateY(250vh) translateX(10px) rotate(350deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(280vh) translateX(0px) rotate(360deg);
        opacity: 0;
    }
}

/* セクション共通スタイル */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 300;
    color: var(--primary-green);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    letter-spacing: 1px;
}

/* 事務所の特徴セクション */
.office-features {
    padding: 120px 0;
    background: transparent;
    position: relative;
    overflow: visible;
}


.features-layout {
    display: grid;
    grid-template-columns: auto 2fr 1fr;
    gap: 60px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 600px;
    position: relative;
    z-index: 2;
}

.vertical-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    min-height: 400px;
    justify-self: start;
}

.feature-images {
    position: relative;
    height: 100%;
    width: 100%;
    align-self: stretch;
}

.large-image {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(calc(-50% + 50px));
    width: 256px;
    height: 80%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.4s ease;
}

.large-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(45, 122, 45, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.large-image:hover::before {
    opacity: 1;
}

.main-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.small-image-overlay {
    position: absolute;
    bottom: -10px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
    z-index: 3;
    transition: all 0.3s ease;
}


.sub-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.small-image:hover {
    transform: scale(1.08) translateY(-5px);
    z-index: 7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}



.office-title {
    font-size: 42px;
    font-weight: 300;
    color: #4a4a4a;
    letter-spacing: 8px;
    line-height: 1.6;
    font-family: 'Hina Mincho', serif;
    margin: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
    padding: 40px 0;
}

.feature-items {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.feature-item {
    position: relative;
    padding: 0;
    margin-bottom: 60px;
    transition: all 0.4s ease;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item {
    position: relative;
    padding: 0;
    margin-bottom: 60px;
    transition: all 0.4s ease;
}

.feature-item:last-child {
    margin-bottom: 0;
}


.feature-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    font-family: 'Hina Mincho', serif;
    line-height: 1.4;
    position: relative;
    padding-bottom: 15px;
}

.feature-item-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, var(--primary-green), rgba(45, 122, 45, 0.7), rgba(45, 122, 45, 0.3), rgba(45, 122, 45, 0.1), transparent);
}

.feature-item-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    font-weight: 400;
    margin: 0;
    position: relative;
}

/* 取扱業務セクション */
.services-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.services-main-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.services-layout {
    flex: 1;
}

.services-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    align-self: flex-start;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 80px;
    margin-top: -100px;
}

.vertical-title {
    font-size: 42px;
    font-weight: 300;
    color: #4a4a4a;
    margin: 0;
    font-family: 'Hina Mincho', serif;
    letter-spacing: 8px;
    line-height: 1.6;
}

.services-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.services-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.service-card-split {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    height: 319px;
}

.service-card.split-item {
    height: 158.5px;
}

.service-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card-1 {
    border-top-left-radius: 40px;
}

.service-card-2 {
    border-top-right-radius: 40px;
}

.service-card-3 {
    border-bottom-left-radius: 40px;
}

.service-card-4 {
    border-radius: 0;
}

.service-card-5 {
    border-radius: 0;
}

.service-card-6 {
    border-bottom-right-radius: 40px;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card.large {
    height: 450px;
}

.service-card.small {
    height: 150px;
}

.service-card.medium {
    height: 310px;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 40px 20px 20px;
    z-index: 2;
}

.service-card.small .service-content {
    padding: 20px 10px 8px;
}

.service-card.medium .service-content {
    padding: 30px 15px 15px;
}

.service-card.split-item .service-content {
    padding: 40px 15px 15px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-family: 'Hina Mincho', serif;
    letter-spacing: 1px;
}

.service-card.small .service-title {
    font-size: 12px;
    margin-bottom: 3px;
}

.service-card.medium .service-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.service-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.service-card.small .service-description {
    font-size: 10px;
    line-height: 1.2;
}

.service-card.medium .service-description {
    font-size: 12px;
    line-height: 1.4;
}

.service-card.split-item .service-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.service-card.split-item .service-description {
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .services-section .container {
        padding: 0 10px;
    }

    .services-main-layout {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        display: flex;
    }

    .services-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        width: 100%;
        max-width: none;
        margin: 0;
        order: 2;
    }

    .services-title-vertical {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        margin-top: 0;
        margin-bottom: 60px;
        text-align: left !important;
        order: -1;
        width: 100%;
        padding-left: 20px;
        display: block;
        align-self: flex-start;
        justify-content: flex-start;
    }

    .services-title-vertical .vertical-title {
        text-align: left !important;
        margin-left: 0;
        padding-left: 0;
        font-size: 32px;
        letter-spacing: 2px;
    }

    .services-top-row {
        display: contents;
    }

    .services-bottom-row {
        display: contents;
    }

    .service-card-split {
        display: contents;
    }

    /* 配置順序の指定 - 3行2列レイアウト */
    .service-card-1 { order: 1; grid-column: 1; grid-row: 1; } /* 相続遺言 - 上段左 */
    .service-card-2 { order: 2; grid-column: 2; grid-row: 1; } /* 国際業務 - 上段右 */
    .service-card-6 { order: 3; grid-column: 1; grid-row: 2; height: 123px !important; border-radius: 0 !important; } /* 建設業許可 - 中段左 */
    .service-card-5 { order: 4; grid-column: 2; grid-row: 2; height: 123px !important; } /* 借金問題 - 中段右 */
    .service-card-3 { order: 5; grid-column: 1; grid-row: 3; } /* 契約書・離婚協議書 - 下段左 */
    .service-card-4 { order: 6; grid-column: 2; grid-row: 3; border-bottom-right-radius: 40px !important; } /* 公正証書作成 - 下段右 */

    .service-card.split-item {
        height: 220px;
        width: 100%;
    }

    .service-card.large {
        height: 220px;
        width: 100%;
    }

    .service-card.small {
        height: 220px;
        width: 100%;
    }

    .service-card.medium {
        height: 220px;
        width: 100%;
    }

    .service-title {
        font-size: 16px;
    }

    .service-card.small .service-title {
        font-size: 16px;
    }

    .service-card.medium .service-title {
        font-size: 16px;
        white-space: nowrap;
    }

    .service-card-3.medium .service-title {
        font-size: 12px;
        white-space: nowrap;
    }

    .service-card-4.medium .service-title {
        font-size: 14px;
        white-space: nowrap;
    }

    .service-card.split-item .service-title {
        font-size: 16px;
    }

    .service-card.split-item .service-description {
        font-size: 12px;
    }

    /* レスポンシブ版では説明文を短文に変更 */
    .service-card-1 .service-description::after {
        content: "相続・遺言のサポート";
    }

    .service-card-2 .service-description::after {
        content: "在留・ビザ・帰化申請";
    }

    .service-card-3.medium .service-description::after {
        content: "法的に有効な書類作成";
    }

    .service-card-4.medium .service-description::after {
        content: "公正証書作成サポート";
    }

    .service-card-5.split-item .service-description::after {
        content: "時効援用手続き";
    }

    .service-card-1 .service-description,
    .service-card-2 .service-description,
    .service-card-3.medium .service-description,
    .service-card-4.medium .service-description,
    .service-card-5.split-item .service-description {
        font-size: 0;
    }

    .service-card-1 .service-description::after,
    .service-card-2 .service-description::after,
    .service-card-3.medium .service-description::after,
    .service-card-4.medium .service-description::after,
    .service-card-5.split-item .service-description::after {
        font-size: 12px;
        line-height: 1.4;
    }
}


/* グループパートナーズセクション */
.group-partners {
    padding: 120px 0 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.partners-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.partners-layout {
    display: flex;
    gap: 55px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.partners-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    min-height: 300px;
    flex-shrink: 0;
    width: 60px;
}

.vertical-title {
    font-size: 42px;
    font-weight: 300;
    color: #4a4a4a;
    letter-spacing: 8px;
    line-height: 1.6;
    font-family: 'Hina Mincho', serif;
    margin: 0;
}

.partners-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

/* 画像ギャラリーの段差レイアウト */
.partners-gallery-staggered {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    margin: 0;
    padding: 0;
}

/* 共通カードスタイル */
.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    width: 280px;
    height: 260px;
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

/* 段差効果 - 下に配置 */
.card-bottom {
    margin-top: 130px;
}

/* 段差効果 - 上に配置 */
.card-top {
    margin-top: 0;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Overlay styling for text on image */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
    transition: background 0.3s ease;
}

.gallery-card:hover .card-overlay {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.9) 100%);
}

.card-content {
    color: white;
    padding: 20px;
    margin-top: auto;
}

.partner-card-2 .card-content {
    padding-right: 15px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
    font-family: 'Hina Mincho', serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.view-more {
    font-size: 12px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    position: relative;
}

.view-more::before {
    content: '';
    width: 30px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
    transition: all 0.3s ease;
}

.view-more:hover {
    color: rgba(255, 255, 255, 0.8);
}

.view-more:hover::before {
    width: 40px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* 記事 - 和モダンデザイン */
.articles {
    padding: 280px 0 120px 0;
    background: transparent;
    position: relative;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー部分 */
.articles-header {
    text-align: center;
    margin-bottom: 80px;
}

.articles-title-section {
    position: relative;
    display: inline-block;
}

.articles-main-title {
    font-size: 48px;
    font-weight: 300;
    color: #4a4a4a;
    margin: 0 0 30px 0;
    letter-spacing: 6px;
    font-family: 'Hina Mincho', serif;
    position: relative;
    padding-bottom: 25px;
}

/* 装飾線 - 日本の伝統的な線デザイン */
.articles-decoration-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #8b7355 20%,
        #8b7355 80%,
        transparent 100%
    );
}

.articles-decoration-line::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        #8b7355 30%,
        #8b7355 70%,
        transparent 100%
    );
}

/* 和モダングリッド */
.articles-grid-wamodern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

/* 和モダンカード */
.wamodern-article-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.wamodern-article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* 画像コンテナ */
.article-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f3f0;
}

.article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wamodern-article-card:hover .article-image-container img {
    transform: scale(1.08);
}

/* 画像オーバーレイ */
.article-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wamodern-article-card:hover .article-image-overlay {
    opacity: 1;
}

/* カテゴリータグ - 和風デザイン */
.article-category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    background: rgba(139, 115, 85, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: 'Hina Mincho', serif;
    border-radius: 0;
    transition: all 0.3s ease;
}

.wamodern-article-card:hover .article-category-tag {
    background: rgba(139, 115, 85, 1);
    transform: translateX(5px);
}

/* コンテンツ部分 */
.article-content-wamodern {
    padding: 35px 30px 80px 30px;
    background: #ffffff;
    position: relative;
    min-height: 200px;
}

/* 日付 - 和風縦書き風デザイン */
.article-date-wamodern {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    color: #8b7355;
    font-family: 'Hina Mincho', serif;
}

.date-year {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.date-separator {
    font-size: 14px;
    opacity: 0.6;
}

.date-month-day {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* タイトル */
.article-title-wamodern {
    font-size: 22px;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 18px;
    line-height: 1.6;
    letter-spacing: 1px;
    font-family: 'Hina Mincho', serif;
    transition: color 0.3s ease;
}

.wamodern-article-card:hover .article-title-wamodern {
    color: #8b7355;
}

/* 抜粋 */
.article-excerpt-wamodern {
    font-size: 15px;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 25px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 続きを読む - シンプル透明ボタン */
.article-read-more {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: #8b7355;
    border: 1px solid #8b7355;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Hina Mincho', serif;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.article-read-more:hover {
    background: #8b7355;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

/* フッター - すべての記事を見るボタン */
.articles-footer-wamodern {
    text-align: right;
    margin-top: 40px;
    padding-right: 20px;
}

.btn-wamodern-viewall {
    display: inline-block;
    padding: 18px 60px;
    background: transparent;
    color: #8b7355;
    border: 1px solid #8b7355;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 3px;
    font-family: 'Hina Mincho', serif;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-wamodern-viewall::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #8b7355;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-wamodern-viewall:hover {
    color: #2d4a3a;
    border-color: #2d4a3a;
}

.btn-wamodern-viewall:hover::before {
    left: 0;
    background: transparent;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .articles-grid-wamodern {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .articles-footer-wamodern {
        text-align: center;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .articles {
        padding: 150px 0 80px 0;
    }

    .articles-main-title {
        font-size: 36px;
        letter-spacing: 3px;
        text-align: left;
    }

    .articles-grid-wamodern {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-image-container {
        height: 200px;
    }

    .article-content-wamodern {
        padding: 25px 20px 70px 20px;
        min-height: 180px;
    }

    .article-read-more {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 12px;
        min-width: 100px;
    }

    .article-title-wamodern {
        font-size: 20px;
    }

    .articles-footer-wamodern {
        text-align: center;
        padding-right: 0;
        margin-top: 30px;
    }

    .btn-wamodern-viewall {
        padding: 15px 40px;
        font-size: 14px;
        letter-spacing: 2px;
    }
}

/* お問い合わせ - 和モダン（Wamodern）シングルカラムデザイン */
.contact-wamodern {
    padding: 150px 0 120px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.contact-wamodern-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 和モダンヘッダー - 装飾線付き */
.contact-wamodern-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.contact-wamodern-title {
    font-size: 48px;
    font-weight: 300;
    color: #4a4a4a;
    margin: 0 0 30px 0;
    letter-spacing: 6px;
    font-family: 'Hina Mincho', serif;
    position: relative;
    display: inline-block;
    padding-bottom: 25px;
}

/* 和風装飾線 - 二重線デザイン */
.contact-decoration-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #8b7355 20%,
        #8b7355 80%,
        transparent 100%
    );
}

.contact-decoration-line::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        #8b7355 30%,
        #8b7355 70%,
        transparent 100%
    );
}

/* シングルカラムフォームコンテナ */
.contact-form-wamodern-container {
    background: #ffffff;
    padding: 60px 50px;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    border-top: 3px solid #8b7355;
}

.contact-form-wamodern-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

/* レスポンシブグリッドレイアウト */
.form-grid-wamodern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-grid-wamodern.single-column {
    grid-template-columns: 1fr;
}

/* 和モダンフォームフィールド */
.form-field-wamodern {
    position: relative;
    margin-bottom: 0;
}

/* 全幅フィールド - テキストエリア用 */
.form-field-wamodern.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.form-label-wamodern {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-family: 'Hina Mincho', serif;
    transition: all 0.3s ease;
}

.required-indicator {
    color: #8b7355;
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
}

.optional-indicator {
    color: #999;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
}

/* 入力コンテナ - 二重アンダーラインスタイル */
.input-container-wamodern {
    position: relative;
    background: transparent;
}

/* 和モダン入力スタイル */
.input-wamodern,
.select-wamodern,
.textarea-wamodern {
    width: 100%;
    padding: 18px 0;
    border: none;
    border-bottom: 2px solid rgba(139, 115, 85, 0.2);
    background: transparent;
    font-family: 'Hina Mincho', serif;
    font-size: 16px;
    color: #4a4a4a;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    outline: none;
}

.input-wamodern:focus,
.select-wamodern:focus,
.textarea-wamodern:focus {
    border-bottom-color: transparent;
}

/* 二重アンダーライン効果 */
.input-container-wamodern::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(139, 115, 85, 0.1);
    z-index: 1;
}

/* フォーカス時のアニメーション線 */
.input-focus-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b7355, rgba(139, 115, 85, 0.7));
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.form-field-wamodern:focus-within .input-focus-underline {
    width: 100%;
}

.form-field-wamodern:focus-within .form-label-wamodern {
    color: #8b7355;
    transform: translateY(-2px);
}

/* テキストエリア特有のスタイル */
.textarea-wamodern {
    min-height: 120px;
    resize: vertical;
    padding-top: 18px;
    padding-bottom: 18px;
    line-height: 1.6;
}

/* 和モダン送信ボタン */
.submit-btn-wamodern {
    position: relative;
    display: inline-block;
    padding: 20px 80px;
    background: transparent;
    color: #8b7355;
    border: 2px solid #8b7355;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 3px;
    font-family: 'Hina Mincho', serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    width: auto;
    margin-top: 40px;
    text-transform: uppercase;
}

/* ボタン装飾 - 和風パターン */
.submit-btn-wamodern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #8b7355;
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.submit-btn-wamodern::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
    transition: all 0.3s ease;
}

.submit-btn-wamodern:hover {
    color: #ffffff;
    border-color: #8b7355;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.25);
}

.submit-btn-wamodern:hover::before {
    left: 0;
}

.submit-btn-wamodern:hover::after {
    right: 25px;
    transform: translateY(-50%) rotate(-45deg) scale(1.1);
}

.submit-btn-wamodern:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

/* ローディング状態 */
.submit-btn-wamodern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn-wamodern.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: wamodern-spin 0.8s linear infinite;
}

@keyframes wamodern-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* 送信セクション - 右側配置 */
.form-submit-wamodern {
    text-align: right;
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    grid-column: 1 / -1;
}

/* レスポンシブ版では中央配置 */
@media (max-width: 768px) {
    .form-submit-wamodern {
        justify-content: center;
        text-align: center;
    }
}

/* 和モダンプレースホルダー */
.input-wamodern::placeholder,
.select-wamodern::placeholder,
.textarea-wamodern::placeholder {
    color: rgba(139, 115, 85, 0.5);
    font-style: italic;
    font-family: 'Hina Mincho', serif;
}

/* セレクトボックス専用スタイル */
.select-wamodern {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%238b7355' viewBox='0 0 24 24'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 24px;
    padding-right: 30px;
}

/* フォーカス・ホバー状態の統一 */
.input-wamodern:hover,
.select-wamodern:hover,
.textarea-wamodern:hover {
    border-bottom-color: rgba(139, 115, 85, 0.4);
}

/* フォームの成功・エラー状態 */
.form-field-wamodern.error .input-wamodern,
.form-field-wamodern.error .select-wamodern,
.form-field-wamodern.error .textarea-wamodern {
    border-bottom-color: #e74c3c;
}

.form-field-wamodern.error .input-focus-underline {
    background: #e74c3c;
}

.form-field-wamodern.success .input-wamodern,
.form-field-wamodern.success .select-wamodern,
.form-field-wamodern.success .textarea-wamodern {
    border-bottom-color: #27ae60;
}

.form-field-wamodern.success .input-focus-underline {
    background: #27ae60;
}

/* 相談予約セクション - プレミアム和モダンデザイン */
.consultation-booking-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.consultation-booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(245, 243, 240, 0.6) 0%,
        rgba(248, 246, 243, 0.8) 50%,
        rgba(250, 248, 245, 0.9) 100%);
    z-index: 1;
}

.consultation-booking-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%,
        rgba(139, 115, 85, 0.03) 0%,
        rgba(139, 115, 85, 0.01) 50%,
        transparent 70%);
    z-index: 2;
}

/* プレミアム電話セクション - 中央配置 */
.phone-section-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 0;
    position: relative;
    z-index: 3;
}

.phone-section-centered::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* プレミアム電話番号スタイル */
.phone-number {
    font-size: 64px;
    font-weight: 300;
    color: #8b7355;
    margin-bottom: 24px;
    letter-spacing: 4px;
    font-family: 'Hina Mincho', 'Noto Sans JP', sans-serif;
    text-shadow: 0 4px 12px rgba(139, 115, 85, 0.15);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
}

.phone-number::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 115, 85, 0.6) 20%,
        rgba(139, 115, 85, 0.8) 50%,
        rgba(139, 115, 85, 0.6) 80%,
        transparent 100%);
    transition: all 0.4s ease;
}

.phone-number:hover {
    transform: translateY(-2px);
    text-shadow: 0 6px 18px rgba(139, 115, 85, 0.25);
}

.phone-number:hover::before {
    width: 120px;
    opacity: 1;
}

/* プレミアム営業時間スタイル */
.phone-hours {
    font-size: 22px;
    color: #6b6b6b;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'Hina Mincho', serif;
    position: relative;
    padding: 0 40px;
    margin-bottom: 20px;
}

.phone-hours::before,
.phone-hours::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(139, 115, 85, 0.3),
        rgba(139, 115, 85, 0.1));
}

.phone-hours::before {
    left: 0;
}

.phone-hours::after {
    right: 0;
    background: linear-gradient(90deg,
        rgba(139, 115, 85, 0.1),
        rgba(139, 115, 85, 0.3));
}

/* WordPress自動更新関連のスタイル */
.update-indicator {
    background: linear-gradient(135deg, #2d7a2d, #4a9d4a);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(45, 122, 45, 0.3);
    animation: slideInRight 0.3s ease-out;
}

.last-updated-indicator {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    opacity: 0.8;
}

.blog-error-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-error-message p {
    margin-bottom: 10px;
    color: #856404;
}

.retry-button {
    background: #2d7a2d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.retry-button:hover {
    background: #1a5a1a;
}

.no-posts-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* プレミアム相談ボタン */
.consultation-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
}

.consultation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 2px;
    font-family: 'Hina Mincho', serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-width: 240px;
    border: 2px solid #8b7355;
    background: rgba(255, 255, 255, 0.95);
    color: #8b7355;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 115, 85, 0.15);
}

.consultation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b7355 0%, rgba(139, 115, 85, 0.95) 100%);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.consultation-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    z-index: -1;
}

.consultation-btn:hover::before {
    left: 0;
}

.consultation-btn:hover::after {
    width: 300px;
    height: 300px;
}

.consultation-btn:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 115, 85, 0.4);
    border-color: #8b7355;
    backdrop-filter: blur(15px);
    letter-spacing: 2.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

.consultation-btn .btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: hue-rotate(15deg) saturate(0.8) drop-shadow(0 2px 4px rgba(139, 115, 85, 0.2));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.consultation-btn:hover .btn-icon {
    filter: hue-rotate(15deg) saturate(1.2) brightness(1.1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transform: scale(1.15) rotate(5deg);
}

/* プレミアムシマーエフェクト */
.consultation-btn .btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
    animation: premiumShimmer 4s infinite;
    z-index: 1;
}

@keyframes premiumShimmer {
    0% {
        left: -100%;
    }
    50% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ボタンに個別のアニメーション遅延 */
.consultation-btn:nth-child(1) .btn-shimmer {
    animation-delay: 0s;
}

.consultation-btn:nth-child(2) .btn-shimmer {
    animation-delay: 2s;
}


/* プレミアムレスポンシブデザイン */
@media (max-width: 768px) {
    .consultation-booking-section {
        padding: 80px 0;
    }

    .phone-section-centered {
        padding: 40px 0;
        margin-bottom: 50px;
    }

    .phone-number {
        font-size: 48px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }

    .phone-number::before {
        width: 60px;
    }

    .phone-number:hover::before {
        width: 80px;
    }

    .phone-hours {
        font-size: 18px;
        letter-spacing: 1.5px;
        padding: 0 30px;
    }

    .phone-hours::before,
    .phone-hours::after {
        width: 20px;
    }

    .consultation-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .consultation-btn {
        width: 100%;
        max-width: 300px;
        padding: 18px 32px;
        font-size: 15px;
        letter-spacing: 1.5px;
        min-width: auto;
        border-radius: 4px;
    }

    .consultation-btn .btn-icon {
        width: 22px;
        height: 22px;
    }

    .consultation-btn:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 10px 30px rgba(139, 115, 85, 0.35);
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .consultation-booking-section {
        padding: 60px 0;
    }

    .phone-section-centered {
        padding: 30px 0;
        margin-bottom: 40px;
    }

    .phone-section-centered::before {
        width: 140%;
        height: 140%;
    }

    .phone-number {
        font-size: 36px;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }

    .phone-number::before {
        width: 50px;
        bottom: -6px;
    }

    .phone-number:hover::before {
        width: 70px;
    }

    .phone-hours {
        font-size: 16px;
        letter-spacing: 1px;
        padding: 0 25px;
    }

    .phone-hours::before,
    .phone-hours::after {
        width: 15px;
    }

    .consultation-buttons {
        gap: 16px;
    }

    .consultation-btn {
        padding: 16px 28px;
        font-size: 14px;
        letter-spacing: 1.2px;
        max-width: 280px;
        border-radius: 4px;
        gap: 12px;
    }

    .consultation-btn .btn-icon {
        width: 20px;
        height: 20px;
    }

    .consultation-btn:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 12px 35px rgba(139, 115, 85, 0.3);
        gap: 16px;
        letter-spacing: 1.5px;
    }

    /* 極小画面調整 */
    .nav-menu.active .nav-link {
        font-size: 18px !important;
        padding: 14px 28px !important;
        min-width: 220px !important;
        letter-spacing: 1.5px !important;
    }

    .nav-menu.active {
        gap: 25px !important;
    }
}

/* フッター */
.footer {
    background: #4a3d32;
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    z-index: 20;
}

/* フッター用の背景装飾 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,.08) 2px, rgba(255,255,255,.08) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(139, 115, 85,.12) 2px, rgba(139, 115, 85,.12) 4px);
    pointer-events: none;
    z-index: 19;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(139, 115, 85,0.15) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    filter: blur(1px);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 19;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
    z-index: 21;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: #cccccc;
    font-size: 16px;
    letter-spacing: 1px;
    margin-top: 15px;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 18px;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

/* 会社情報セクション */
.company-info p {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.company-info p:first-child {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
}

.contact-details {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details p {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}


/* フッターアクセスセクション */
.footer-access {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 21;
}

.footer-access h4 {
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--white);
    font-size: 20px;
    letter-spacing: 2px;
    text-align: center;
}

.access-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: flex-start;
    max-width: 700px;
    margin: 0 auto;
}

.access-info {
    text-align: left;
}

.access-info p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.access-map {
    text-align: center;
}

.footer-map-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* GoogleMapボタン */
.map-button {
    margin-top: 30px;
}

.google-map-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.google-map-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.footer-bottom {
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 21;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #adb5bd;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0;
}

.footer-links-bottom {
    margin: 0;
}

.footer-links-bottom a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: var(--white);
}

/* ハンバーガーメニューアクティブスタイル */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ */
@media (max-width: 768px) {

    .main-header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(139, 115, 85, 0.1);
        z-index: 2147483647 !important;
    }


    /* この定義は上のメディアクエリに統合済み - 削除 */

    /* ハンバーガー定義は上のメディアクエリに統合済み */

    .hero-content {
        padding: 0 20px;
    }

    /* グループパートナーズ */
    .partners-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .partners-title-vertical {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed;
        min-height: auto;
        text-align: left;
        order: -1;
        width: 100%;
    }

    .partners-title-vertical .vertical-title {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed;
        font-size: 32px;
        letter-spacing: 2px;
        text-align: left;
    }

    .partners-content {
        order: 0;
    }

    .partners-gallery-staggered {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        max-width: 100%;
        padding: 20px 10px;
    }

    .gallery-card {
        width: 85%;
        max-width: 300px;
        height: 220px;
    }

    /* ジグザグ配置 - 右、左、右、左 - 大きく強調 */
    .partner-card-1 {
        align-self: flex-end;
        margin-left: auto;
        margin-right: 0;
        transform: translateX(30px);
    }

    .partner-card-2 {
        align-self: flex-start;
        margin-left: 0;
        margin-right: auto;
        transform: translateX(-30px);
    }

    .partner-card-3 {
        align-self: flex-end;
        margin-left: auto;
        margin-right: 0;
        transform: translateX(30px);
    }

    .partner-card-4 {
        align-self: flex-start;
        margin-left: 0;
        margin-right: auto;
        transform: translateX(-30px);
    }

    .card-bottom,
    .card-top {
        margin-top: 0;
    }

    .gallery-card img {
        height: 100%;
    }

    .card-overlay {
        padding: 0;
        background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.3) 60%,
            rgba(0, 0, 0, 0.85) 100%);
    }

    .card-content {
        padding: 16px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content p {
        font-size: 12px;
    }

    .view-more {
        font-size: 11px;
    }

    /* 小画面調整は最初のメディアクエリに統合済み */

    /* ローディング画面の改行防止 */
    .message-text {
        font-size: 20px;
        white-space: nowrap;
        letter-spacing: 1px;
    }

    /* メイン画面タイトルの改行防止 */
    .mission-title {
        font-size: 32px;
        white-space: nowrap;
        letter-spacing: 1px;
    }

    .svg-text-container {
        margin-bottom: 60px;
        padding: 40px 10px;
    }

    .desktop-svg {
        display: none;
    }

    .mobile-svg {
        display: block;
        width: 100%;
        height: auto;
    }

    .section-title {
        font-size: 36px;
    }

    .mission-section {
        padding: 80px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .mission-section .container {
        padding: 0 20px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mission-content {
        grid-template-columns: 1fr;
        gap: 40px;
        position: relative;
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .mission-visual {
        position: static;
        text-align: center;
        width: 100%;
        margin: 30px 0 0 0;
        display: block;
        padding: 0;
        box-sizing: border-box;
    }

    .mission-visual .mission-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 12px;
        opacity: 1;
        margin: 0 auto;
        display: block;
    }

    .mission-text {
        padding: 40px 0;
        z-index: 2;
        position: relative;
        width: 100%;
        text-align: left;
        margin: 0;
        box-sizing: border-box;
    }

    .mission-title {
        font-size: 36px;
        text-align: left;
        margin: 0 0 30px 0;
        width: 100%;
    }

    .mission-description {
        text-align: left;
        margin: 0;
        width: 100%;
    }

    .mission-description .desc-paragraph {
        margin: 0 0 16px 0;
        width: 100%;
        text-align: left;
    }

    /* 和モダンお問い合わせセクション レスポンシブ */
    .contact-wamodern {
        padding: 150px 0 80px 0;
    }

    .contact-wamodern-title {
        font-size: 36px;
        letter-spacing: 3px;
        text-align: center;
    }

    .contact-wamodern-header {
        text-align: center;
    }

    .contact-wamodern-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .contact-form-wamodern-container {
        padding: 40px 25px;
        margin: 0 10px;
    }

    .form-grid-wamodern {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-label-wamodern {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .input-wamodern,
    .select-wamodern,
    .textarea-wamodern {
        padding: 16px 0;
        font-size: 15px;
    }

    .textarea-wamodern {
        min-height: 100px;
    }

    .submit-btn-wamodern {
        padding: 18px 60px;
        font-size: 15px;
        letter-spacing: 2px;
        margin-top: 30px;
    }

    .submit-btn-wamodern::after {
        right: 25px;
        width: 10px;
        height: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .company-info,
    .contact-details {
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .access-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .access-info {
        text-align: center;
    }

    .footer-access {
        margin-top: 40px;
        padding-top: 30px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .strengths-content {
        grid-template-columns: 1fr;
    }

    /* 事務所の特徴セクションのレスポンシブ */
    .features-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        min-height: auto;
        text-align: left;
        order: -1;
    }

    .office-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .feature-content {
        gap: 30px;
        padding: 20px 0;
        order: 0;
    }

    .feature-items {
        gap: 30px;
    }

    .feature-images {
        order: 1;
        min-height: 350px;
        margin-top: 40px;
        perspective: 800px;
    }

    .large-image {
        width: 250px;
        height: 300px;
        top: 10px;
        left: 100px;
    }

    .small-image-overlay {
        width: 120px;
        height: 120px;
        bottom: 40px;
        right: 20px;
        border: none;
    }

    .feature-item-title {
        font-size: 18px;
    }

}

/* WordPress記事読み込み中スタイル */
.loading-articles {
    text-align: center;
    padding: 60px 20px;
    color: #8b7355;
    font-family: 'Hina Mincho', serif;
    font-size: 16px;
    letter-spacing: 1px;
}

.loading-articles p {
    margin: 0;
    opacity: 0.7;
}

/* WordPress記事エラー状態 */
.error-articles {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-family: 'Hina Mincho', serif;
}

/* ===============================================
   確認ページ（Confirmation Page）スタイル
   =============================================== */

.confirmation-main {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    background: #faf8f5;
}

.confirmation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/haikei.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
}

.confirmation-section {
    padding: 80px 0 120px;
    position: relative;
    z-index: 2;
}

.confirmation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* 成功アイコン */
.confirmation-icon {
    margin-bottom: 40px;
}

.success-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #4CAF50;
    animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4CAF50;
    }
}

/* メッセージ部分 */
.confirmation-message {
    margin-bottom: 60px;
}

.confirmation-title {
    font-size: 42px;
    font-weight: 500;
    color: #2d4a3a;
    margin-bottom: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 2px;
    line-height: 1.4;
}

.confirmation-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    font-weight: 400;
}

/* 詳細カード */
.confirmation-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: left;
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.detail-title {
    font-size: 24px;
    color: #2d4a3a;
    margin-bottom: 30px;
    font-family: 'Hina Mincho', serif;
    font-weight: 500;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8b7355, #2d4a3a);
}

/* フローステップ */
.flow-card-wamodern .flow-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

.flow-card-wamodern .flow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border-left: 3px solid #8b7355;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.flow-card-wamodern .step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b7355, #a68b5b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 2px 6px rgba(139, 115, 85, 0.2);
}

.flow-card-wamodern .step-content h4 {
    font-size: 17px;
    color: #2d2d2d;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Hina Mincho', serif;
    letter-spacing: 1px;
}

.flow-card-wamodern .step-content p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 連絡先情報 */
.contact-info {
    text-align: center;
}

.urgent-note {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.phone-contact {
    margin-bottom: 25px;
}

/* 和モダンな共通カードデザイン */
.urgent-contact-wamodern,
.flow-card-wamodern {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.urgent-contact-wamodern::before,
.flow-card-wamodern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b7355, #a68b5b, #8b7355);
}

.urgent-title-wamodern,
.flow-title-wamodern {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.urgent-title-text,
.flow-title-text {
    font-family: 'Hina Mincho', serif;
    font-size: 22px;
    font-weight: 500;
    color: #2d2d2d;
    letter-spacing: 2px;
    margin: 0;
}

.phone-contact-wamodern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.phone-number-wamodern {
    display: inline-block;
    font-size: 32px;
    font-weight: 400;
    color: #2d2d2d;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-bottom: 2px solid #8b7355;
    position: relative;
}

.phone-number-wamodern:hover {
    color: #8b7355;
    transform: translateY(-1px);
}

.phone-hours-wamodern {
    color: #666;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    letter-spacing: 1px;
}

.phone-hours {
    color: #666;
    font-size: 14px;
}

.alternative-contact {
    margin-top: 20px;
}

.line-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #00B900;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.line-contact-btn:hover {
    background: #009900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
}

.line-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* アクションボタン */
.confirmation-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-return-home,
.btn-view-articles {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Hina Mincho', serif;
    min-width: 180px;
    text-align: center;
}

.btn-return-home {
    background: #2d4a3a;
    color: white;
    border: 2px solid #2d4a3a;
}

.btn-return-home:hover {
    background: transparent;
    color: #2d4a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 74, 58, 0.3);
}

.btn-view-articles {
    background: transparent;
    color: #8b7355;
    border: 2px solid #8b7355;
}

.btn-view-articles:hover {
    background: #8b7355;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .confirmation-main {
        padding-top: 80px;
    }

    .confirmation-section {
        padding: 60px 0 80px;
    }

    .confirmation-content {
        padding: 0 20px;
    }

    .confirmation-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .confirmation-subtitle {
        font-size: 16px;
    }

    .detail-card {
        padding: 30px 20px;
    }

    .detail-title {
        font-size: 20px;
    }

    .flow-card-wamodern .flow-step {
        flex-direction: column;
        text-align: left;
        gap: 15px;
        padding: 18px 15px;
    }

    .flow-card-wamodern .step-content h4 {
        text-align: center;
        padding-bottom: 8px;
        margin-bottom: 15px;
        position: relative;
    }

    .flow-card-wamodern .step-content h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg,
            transparent 0%,
            #8b7355 30%,
            #8b7355 70%,
            transparent 100%);
        border-radius: 1px;
    }

    .flow-card-wamodern .step-number {
        align-self: center;
    }\n    \n    .flow-title-text {\n        font-size: 20px;\n    }\n    \n    .flow-card-wamodern {\n        padding: 25px 20px;\n    }

    .phone-number-wamodern {
        font-size: 28px;
        letter-spacing: 3px;
        padding: 10px 20px;
    }

    .urgent-title-text {
        font-size: 20px;
    }

    .urgent-contact-wamodern {
        padding: 25px 20px;
    }

    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-return-home,
    .btn-view-articles {
        width: 100%;
        max-width: 300px;
    }
}

/* 遅延読み込み用のスタイル */
img[data-src], [data-bg] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loaded, .bg-loaded {
    opacity: 1;
}

/* プレースホルダー画像のスタイル */
img[data-src] {
    background: #f0f0f0;
    filter: blur(5px);
}

img[data-src].loaded {
    filter: none;
}

/* 背景画像の遅延読み込み */
[data-bg] {
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide[data-bg] {
    background-image: none \!important;
}

.slide.bg-loaded {
    transition: opacity 0.5s ease-in-out;
}
