/* styles.css */
/* 共通および主要コンポーネントの統合・整理CSS */

:root {
    /* 料金.html、LP12.htmlなどから使用されている色に集約 */
    --color-bg-dark: #1A1A1A;
    --color-bg-light: #ffffff;
    --color-text-dark: #2C2C2C;
    --color-text-light: #ffffff;
    --color-accent-gold: #D4AF37; /* ホバー色などに使用 */
    --color-brand-green: #a3b18a; /* プロセスステップのアクセント色 */
    --color-brand-dark: #1a3e6c; /* ボタンのメインカラー */
}

/* -------------------------------------- */
/* 基本レイアウト */
/* -------------------------------------- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f8f8f8;
    line-height: 1.8;
    color: #333;
    /* 背景パターンはパフォーマンスのため、Tailwind utility classでの実現が難しい複雑なもののみ残します */
    background-image: linear-gradient(112.5deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(157.5deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(135deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(90deg, rgb(195, 195, 195),rgb(228, 228, 228)); 
    background-blend-mode:overlay,overlay,overlay,normal;
}
.container {
    max-width: 1000px;
}

/* -------------------------------------- */
/* ヘッダー/ナビゲーション (共通部品) */
/* -------------------------------------- */
.header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 20;
    transition: background-color 0.3s;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.header.scrolled .logo, .header.scrolled a {
    color: #1f2937;
}

/* メガメニュー (共通部品) */
.mega-menu-item {
    position: relative;
}
.mega-menu-trigger {
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.mega-menu-item:hover .mega-menu-trigger {
    color: var(--color-accent-gold);
}
.mega-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%; 
    transform: translateX(-50%); 
    min-width: 200px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    padding: 0;
    overflow: hidden;
    z-index: 30;
}
.mega-menu-item:hover .mega-menu-content {
    display: block;
}
.mega-menu-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1f2937;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}
.mega-menu-content a:last-child {
    border-bottom: none;
}
.mega-menu-content a:hover {
    background-color: #f3f4f6;
    color: var(--color-brand-dark);
}
.header.scrolled .mega-menu-item:hover .mega-menu-trigger {
     color: var(--color-brand-dark);
}

@media (max-width: 768px) {
    /* .mega-menu-list が price2.html のインラインCSSで制御されるため、ここを削除/コメントアウト */
    /* .mega-menu-list {
        display: none;
    } */
}

/* -------------------------------------- */
/* ヒーローセクション */
/* -------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding-bottom: 0;
    /* background-image は HTMLの img 要素に移行したため削除 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 150px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* ★修正追加：LCP/CLS対策でHTMLに移行した img 要素を背景として機能させるためのスタイル★ */
.hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* コンテナ全体を覆い、アスペクト比を維持 */
    z-index: -1; /* hero-overlay (z-index: 0) の下に隠す */
}


/* -------------------------------------- */
/* プロセスセクション */
/* -------------------------------------- */
.process-section {
    padding: 6rem 0;
    /* 背景パターンはパフォーマンスのため、Tailwind utility classでの実現が難しい複雑なもののみ残します */
    background-image: linear-gradient(112.5deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(157.5deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(135deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(90deg, rgb(195, 195, 195),rgb(228, 228, 228));
    background-blend-mode: overlay, overlay, overlay, normal;
    position: relative;
    overflow: hidden;
}
.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.process-steps-container {
    max-width: 800px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 10;
}
.process-step-item {
    display: flex;
    align-items: center;
    padding: 2.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    border-left: 5px solid var(--color-brand-green);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.process-step-item:last-child {
    border-bottom: none;
}
.process-step-item.active {
    background-color: #f7fafc;
}
.process-step-item:hover {
    color: var(--color-brand-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.process-step-number {
    font-family: 'Playfair Display', serif;
    font-size: 10rem;
    font-weight: 700;
    color: #d1d5db;
    position: absolute;
    left: 0px;
    bottom: -30px;
    line-height: 1;
    opacity: 0.9;
    transition: color 0.3s ease, bottom 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.process-step-item.active .process-step-number {
    color: var(--color-brand-green);
    bottom: -25px;
}
.process-step-content-wrapper {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    padding-left: 8rem;
}
.process-step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}
.process-step-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}
.process-step-item.active .process-step-description {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.7s ease-in, opacity 0.7s ease-in;
}
.process-step-description ol {
    list-style-type: none;
    counter-reset: sub-step-counter;
    padding-left: 0;
    margin-top: 1rem;
}
.process-step-description ol li {
    counter-increment: sub-step-counter;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.process-step-description ol li::before {
    content: counter(sub-step-counter) ".";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--color-brand-green);
}
.process-step-description strong {
    color: #1a202c;
}
.dropdown-icon {
    margin-left: 1rem;
    font-size: 1.5rem;
    color: #a0aec0;
    transition: transform 0.3s ease;
}
.process-step-item.active .dropdown-icon {
    transform: rotate(180deg);
    color: var(--color-brand-green);
}
.process-title-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 800px;
    margin: auto;
    margin-bottom: 1rem;
}
.process-title-container h2 {
    text-align: center;
    flex-grow: 1;
    margin-bottom: 0;
}
.step-hint-text-wrapper {
    display: flex;
    align-items: flex-end;
    margin-left: 1rem;
    padding-bottom: 0.25rem;
}
.step-hint-text {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .process-steps-container {
        max-width: 95%;
    }
    .process-step-item {
        padding: 1.5rem 1rem;
    }
    .process-step-number {
        font-size: 7rem;
        bottom: -20px;
    }
    .process-step-item.active .process-step-number {
        bottom: -15px;
    }
    .process-step-content-wrapper {
        padding-left: 5rem;
    }
    .process-step-title {
        font-size: 1.4rem;
    }
    .process-step-description {
        font-size: 0.9rem;
    }
    .process-step-description ol li::before {
        font-size: 0.9rem;
    }
    .process-title-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    .step-hint-text-wrapper {
        margin-left: 0;
        margin-top: 0.5rem;
        padding-bottom: 0;
    }
}

/* -------------------------------------- */
/* CTAボタン (共通部品) */
/* -------------------------------------- */
.cta-section {
    text-align: center;
    padding: 4rem 0;
    background-color: #f0f4f8;
}
.button-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 10px auto;
    max-width: 400px;
}
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #4f73a9 0%, var(--color-brand-dark) 100%); 
    color: white; 
    padding: 15px 30px;
    min-width: 250px; 
    border-radius: 10px; 
    font-size: 22px; 
    font-weight: 800; 
    white-space: nowrap;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden; 
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); 
    transform: skewX(-30deg);
    transition: left 0.5s;
}
.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
}
.button:hover::after {
    left: 150%; 
}
.button-icon-container {
    width: 30px; 
    height: 30px;
    min-width: 30px; 
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) inset;
}
.button-icon {
    fill: var(--color-brand-dark);
    width: 14px; 
    height: 14px; 
    margin-left: 3px; 
}
.home-button .button {
    padding: 12px 25px;
    min-width: 280px;
    font-size: 18px;
    font-weight: 700;
}
.home-button .button-icon-container {
    width: 25px; 
    height: 25px;
    min-width: 25px;
    margin-right: 10px;
}
.home-button .button-icon {
    width: 15px; 
    height: 15px;
    margin-left: 0;
}
@media (max-width: 768px) {
    .button {
        font-size: 18px;
        padding: 12px 25px;
        min-width: 200px;
    }
    .home-button .button {
        font-size: 16px;
        min-width: 250px;
    }
}

/* -------------------------------------- */
/* フッター (共通部品) */
/* -------------------------------------- */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}
.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-link {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-link:hover {
    opacity: 1;
}
.footer-button {
    background-color: transparent;
    color: #fff;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s;
}
.footer-button:hover {
    background-color: #fff;
    color: #1a1a1a;
}
.social-icons-container {
    display: flex;
    gap: 1rem;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    background-color: transparent;
    border: 1px solid transparent; 
    overflow: hidden;
}
.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.social-icon:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}


/* -------------------------------------- */
/* 🚨【ヘッダーの不具合修正】スクロール時の文字色を強制上書き 🚨 */
/* -------------------------------------- */

/* HTML内の Tailwindの text-white よりも優先度を高く設定し、色を確実に上書きします。 */
.header.scrolled .logo,
.header.scrolled a {
    color: #1f2937 !important; 
}

/* ホバー時の色も上書き */
.header.scrolled a:hover {
    color: #3b82f6 !important; 
}

/* メガメニューのトリガーのホバー色も調整 */
.header.scrolled .mega-menu-item:hover .mega-menu-trigger {
    color: var(--color-brand-dark) !important;
}

/* -------------------------------------- */