/* フロントページ専用スタイル */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-background: #ffffff;
    --color-secondary: #f3f4f6;
    --color-foreground: #1f2937;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-gold: #bfa05b;
    --color-gold-light: #fffcf5;
    --color-line: #06c755;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

section {
    padding: 5rem 0;
}

section#steps,
section#testimonials {
    background-color: var(--color-background);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }
}

/* アニメーション */
.animated {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-700 {
    transition-delay: 0.7s;
}

.delay-800 {
    transition-delay: 0.8s;
}

/* ヒーローセクション */
section.hero-section,
.page-container .hero-section,
#hero.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 5rem 0;
    /* margin-topはJavaScriptで動的に設定 */
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    object-position: left;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* お悩みセクション */
.problems-section {
    background-color: var(--color-secondary);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.problem-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

/* CTAセクション */
.cta-section {
    background-color: #2563eb;
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* サービスステップセクション */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step-icon {
    background-color: var(--color-accent);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: #2563eb;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* スタッフセクション */
.staff-section {
    background-color: var(--color-secondary);
}

.staff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.staff-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.staff-qualifications {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.staff-qualifications h3 {
    margin-bottom: 1.5rem;
}

.staff-qualifications ul {
    margin-bottom: 1.5rem;
}

.staff-qualifications li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.staff-qualifications li i {
    color: var(--color-accent);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .staff-container {
        grid-template-columns: 1fr;
    }
}

/* お客様の声セクション */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.testimonial-info h3 {
    margin-bottom: 0.25rem;
}

.testimonial-info .date {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.testimonial-content {
    position: relative;
    flex-grow: 1;
}

.testimonial-content i {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.5rem;
    color: var(--color-accent);
    opacity: 0.3;
    transform: translate(-50%, -50%);
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* サービスエリアセクション */
.area-section {
    background-color: var(--color-secondary);
}

.area-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.area-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.area-image .caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-muted);
    padding: 0.5rem;
}

.area-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.area-content h3 {
    margin-bottom: 1rem;
}

.area-content p {
    margin-bottom: 1.5rem;
}

.area-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.area-list li {
    display: flex;
    align-items: center;
}

.area-list li i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .area-container {
        grid-template-columns: 1fr;
    }
}



/* 不動産サイト情報のスタイル */
.resite_info {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06));
    margin-top: 2rem;
    width: 100%;
}

.resite_info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-foreground, #333);
}

.resite_logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.resite_logos a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.resite_logos a:hover {
    transform: translateY(-5px);
}

.resite_logos img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .resite_logos {
        gap: 1.5rem;
    }
}

/* =========================================
   Hybrid Design Updates (Hero & Why Section)
   ========================================= */

/* Hero Updates */
.hero-content h1 {
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.hero-line {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.hero-cross {
    display: block;
    font-size: 2rem;
    margin: 10px 0;
    color: var(--color-gold);
    line-height: 1;
}

.hero-lead {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.hero-cta-group .btn {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta-group .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .hero-line {
        font-size: 1.8rem;
    }

    .hero-cross {
        font-size: 1.5rem;
        margin: 5px 0;
    }

    .hero-lead {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-cta-group .btn {
        width: 90%;
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* Why MetaHouse Section */
.why-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.section-subtitle {
    display: block;
    text-align: center;
    color: var(--color-gold);
    font-family: serif;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-card.featured {
    border: 2px solid var(--color-gold);
    background: var(--color-gold-light);
}

.why-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 20px;
}

.why-icon {
    font-size: 3rem;
    color: #2e4a3d;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.why-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

/* Fee Check Banner */
.fee-check-banner {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--color-line) 0%, #05a546 100%);
    border-radius: 15px;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.3);
}

.fee-check-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.btn-line {
    background: #fff;
    color: var(--color-line);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-line:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Responsiveness for new elements */
@media screen and (max-width: 900px) {
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .fee-check-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .fee-check-content {
        margin-bottom: 20px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-main {
        font-size: 1.6rem;
    }
}