:root {
    --primary-color: #A68069;
    --primary-light: #D2B48C;
    --secondary-color: #4A3C31;
    --bg-color: #FDFBF7;
    --bg-alt: #FFFDF0;
    --text-color: #4A3C31;
    --text-light: #7E6D5E;
    --white: #FFFFFF;
    --accent-color: #E6A07E;
    --border-radius-lg: 40px;
    --border-radius-md: 24px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 112.5%; /* 18px相当。%指定によりユーザーの端末設定（文字拡大設定）を反映できます */
}

body {
    font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 1.125rem; /* ~18px base */
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Decorations */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.decor-ribbon {
    width: 100%;
    height: 100%;
}

/* Header */
header {
    background-color: rgba(255, 253, 240, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(166, 128, 105, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    width: 220px;
    overflow: hidden;
}

.logo img {
    height: 280px;
    width: auto;
    transition: var(--transition);
    mix-blend-mode: multiply;
    filter: brightness(1.02) contrast(1.1);
    transform: scale(1.2);
    transform-origin: center center;
}

.nav-menu ul {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
    position: relative;
    text-decoration: none;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(166, 128, 105, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(166, 128, 105, 0.3);
}

/* Hero Section */
#hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: var(--bg-alt);
    border: 1px solid rgba(166, 128, 105, 0.2);
    border-radius: 50px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

#hero h1 {
    font-size: 3.8rem;
    line-height: 1.25;
    color: var(--secondary-color);
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(210, 180, 140, 0.2);
    z-index: -1;
    border-radius: 5px;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem; /* Paragraph gap */
}

#hero p:last-of-type {
    margin-bottom: 45px; /* Gap before buttons */
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 45px;
    font-size: 1.2rem;
    box-shadow: 0 15px 35px rgba(166, 128, 105, 0.25);
}

.hero-tel {
    display: flex;
    flex-direction: column;
}

.tel-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 700;
}

.tel-link {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Hero Visual & House Silhouette */
.hero-visual {
    position: relative;
}

.house-silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    opacity: 0.8;
    z-index: -1;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    background-color: var(--white);
    padding: 15px;
    box-shadow: 0 40px 100px rgba(74, 60, 49, 0.08);
}

.main-hero-img {
    border-radius: calc(var(--border-radius-lg) - 15px);
    width: 100%;
    display: block;
}

.floating-ribbon {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    z-index: 2;
    pointer-events: none;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-alt {
    background-color: var(--bg-alt);
    border-radius: var(--border-radius-lg);
    margin: 40px 20px;
}

.section-title {
    margin-bottom: 80px;
}

.centered-title {
    text-align: center;
}

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

.subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.about-card {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid rgba(166, 128, 105, 0.08);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(166, 128, 105, 0.1);
}

.about-icon-bg {
    width: 100px;
    height: 100px;
    background-color: #F5EFE6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(166, 128, 105, 0.2);
}

.about-icon-bg .icon-img-wrap {
    mix-blend-mode: darken;
    opacity: 0.9;
}


.about-card h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.about-card p {
    text-align: left;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.9;
}

.about-image {
    flex: 0 0 400px;
}

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

.about-content.centered p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Service Cards with Icons */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 60px 50px;
    border-radius: var(--border-radius-lg);
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(166, 128, 105, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(166, 128, 105, 0.1);
}

.service-icon-bg {
    width: 120px;
    height: 120px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.icon-img-wrap {
    width: 80px;
    height: 80px;
    background-image: url('assets/icons_set.png');
    background-size: 300% 300%;
}

.icon-house { 
    background-position: 0% 50%; 
    transform: translateX(-5px); /* アイコンを左に寄せて円の真ん中にする調整 */
}
.icon-shake { background-position: 50% 50%; }

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    position: relative;
    border-top: 6px solid var(--primary-color);
}

.feature-no {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(166, 128, 105, 0.8);
    margin-bottom: 10px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.4;
}

/* Flow - Updated for 8 steps */
.flow-items {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(166, 128, 105, 0.05);
    transition: var(--transition);
}

.flow-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(166, 128, 105, 0.05);
}

.flow-num-badge {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--bg-alt);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    border: 2px solid var(--primary-light);
}

.flow-body h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.flow-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

summary {
    padding: 25px 30px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
}

summary::after {
    content: '＋';
    position: absolute;
    right: 30px;
    color: var(--primary-color);
}

details[open] summary::after {
    content: 'ー';
}

.faq-answer {
    padding: 0 30px 30px;
    color: var(--text-color);
}

/* Company Section */
.company-card {
    display: flex;
    justify-content: center;
    background-color: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
}

.company-content {
    width: 100%;
    max-width: 700px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th {
    text-align: left;
    width: 160px;
    padding: 20px 0;
    border-bottom: 1px solid #EEE;
    color: var(--text-light);
}

.company-table td {
    padding: 20px 0;
    border-bottom: 1px solid #EEE;
    font-weight: 700;
}


/* Contact */
.contact-layout {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-methods {
    width: 100%;
    max-width: 600px;
}

.method-card {
    background-color: var(--bg-alt);
    padding: 35px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    text-align: center;
}

.method-tel {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin: 10px 0;
}

.line-qr {
    width: 160px;
    margin: 20px 0;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 100px 0 40px;
    margin-top: 100px;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-wrap {
    width: 220px;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.footer-logo-wrap img {
    height: 280px;
    width: auto;
    filter: brightness(0) invert(1);
    transform: scale(1.2);
    transform-origin: center center;
}

.footer-nav ul {
    display: flex;
    gap: 30px;
}

.footer-nav a:hover { opacity: 0.7; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Utility */
.br-pc { display: block; }
.br-sp { display: none; }

/* Mobile Menu Toggle Button Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 992px) {
    :root {
        --border-radius-lg: 30px;
    }

    .header-container { height: 90px; justify-content: center; position: relative; }
    
    .logo { width: 160px; margin-right: 60px; } /* ロゴをさらに左に寄せる */
    .logo img { height: 200px; transform: scale(1.1); }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-alt);
        padding: 100px 40px 40px;
        z-index: 1050;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle { display: flex; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
    .header-contact { display: none; }

    #hero { padding: 120px 0 60px; }
    #hero h1 { font-size: 2.8rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-label { justify-content: center; }
    .hero-actions { flex-direction: column; gap: 20px; }
    .btn-hero { width: 100%; padding: 18px 30px; }
    .hero-visual { margin-top: 20px; width: 90%; margin-left: auto; margin-right: auto; }
    .house-silhouette { width: 110%; height: 110%; }

    .section { padding: 80px 0; }
    .section-title { margin-bottom: 50px; }
    .section-title h2 { font-size: 2rem; }

    .about-grid, .service-grid, .feature-grid, .company-card, .contact-layout, .flow-items { 
        grid-template-columns: 1fr; 
        gap: 24px;
    }

    .footer-top { flex-direction: column; gap: 40px; text-align: center; }
    .footer-nav ul { 
        flex-direction: column; 
        gap: 20px; 
        width: fit-content; 
        margin: 0 auto; 
        align-items: flex-start; 
        text-align: left; 
        transform: translateX(-30px); 
    }
    .footer-logo-wrap { margin: 0 auto; transform: translateX(-30px); } /* 上のロゴと同じ位置に揃える */
}

@media (max-width: 768px) {
    html { font-size: 100%; } /* スマホの基本文字設定を尊重 */
    body { font-size: 1.05rem; }
    
    .br-pc { display: none; }
    .br-sp { display: block; }

    .container { padding: 0 20px; }

    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1.1rem; }

    .section-alt { margin: 20px 10px; }
    
    .about-card { padding: 40px 24px; }
    .about-card p { font-size: 1.05rem; }

    .feature-card { padding: 30px 24px; text-align: center; }
    
    .flow-item { padding: 20px; gap: 15px; }
    .flow-num-badge { flex: 0 0 40px; height: 40px; font-size: 1rem; }

    .company-card { padding: 24px; }
    .company-table th { width: 100px; font-size: 0.95rem; }
    .company-table td { font-size: 0.95rem; }

    .contact-form-wrap { padding: 30px 20px; }
    .method-tel { font-size: 1.8rem; }
    
    .footer-logo-wrap { width: 180px; height: 100px; }
    .footer-logo-wrap img { height: 230px; }
}

@media (max-width: 480px) {
    #hero h1 { font-size: 1.8rem; }
    .tel-link { font-size: 1.5rem; }
    .btn { padding: 12px 24px; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero * {
    animation: fadeIn 0.8s ease forwards;
}
