/* --- Reset & Basic Settings --- */
:root {
    --primary-color: #00A0A0; /* パンフレットの緑 */
    --accent-color: #F39800;  /* アクセントのオレンジ */
    --background-color: #f8f8f8;
    --text-color: #333;
    --white-color: #fff;
    --font-family: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white-color);
}

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

/* --- Animation Settings --- */
.animated-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Header --- */
.header {
    background-color: var(--white-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.header-logo img {
    max-height: 50px; /* ロゴの最大の高さを指定 */
    width: auto;      /* 高さに合わせて幅を自動調整（画像の比率を保つ） */
    display: block;   /* 画像下の余分な隙間を防ぐ */
}

.header-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s;
}

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

.header-nav .contact-button {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 8px 20px;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.header-nav .contact-button:hover {
    background-color: #e68e00;
    color: var(--white-color);
}

.burger-menu {
    display: none; /* Hide by default */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s;
}


/* --- Hero Section --- */
.hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 180px 20px 100px;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.2) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(255,255,255,0.1) 0%, transparent 30%);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-button {
    background-color: var(--white-color);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-button:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px);
}


/* --- General Section Styling --- */
.section {
    padding: 80px 0;
}
.section-bg {
    background-color: var(--background-color);
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}
.section-lead {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Problem Section */
.problem-list {
    list-style: none;
    text-align: center;
    font-size: 1.1rem;
}
.problem-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    display: inline-block;
    margin: 5px 10px;
}
.problem-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Services Section (Cards) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Reasons Section */
.reason-list {
    list-style: none;
    counter-reset: reason-counter;
    max-width: 800px;
    margin: 50px auto 0;
}
.reason-list li {
    background-color: var(--background-color);
    padding: 20px 20px 20px 60px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
}
.reason-list li::before {
    counter-increment: reason-counter;
    content: counter(reason-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Flow Section */
.flow-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 30px;
    margin-top: 50px;
    position: relative;
}
.flow-step {
    flex: 1;
}
.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 4px solid var(--white-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.flow-steps::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background-color: #ddd;
    top: 32px;
    left: 20%;
    z-index: -1;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.faq-q {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-left: 30px;
}
.faq-q::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--primary-color);
}
.faq-a {
    padding-left: 30px;
    position: relative;
}
.faq-a::before {
    content: 'A.';
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* CTA Section */
.section-cta {
    background-color: var(--primary-color);
    text-align: center;
}
.section-cta .section-title,
.section-cta .section-lead {
    color: var(--white-color);
}
.cta-button, .cta-button-phone {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 20px 10px 0;
    transition: all 0.3s;
}
.cta-button-phone {
    background-color: var(--white-color);
    color: var(--primary-color);
}
.cta-button:hover, .cta-button-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.footer {
    background-color: #333;
    color: #ccc;
    padding: 60px 0 20px;
}
.footer-info, .footer-map {
    margin-bottom: 40px;
}
.footer a {
    color: var(--white-color);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.footer h3 {
    color: var(--white-color);
    margin-bottom: 20px;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.9rem;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Initially hidden */
        width: 100%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
    }
    .header-nav.active {
        right: 0; /* Show menu */
    }
    .header-nav ul {
        flex-direction: column;
    }

    .burger-menu {
        display: block; /* Show burger menu */
    }
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .flow-steps {
        flex-direction: column;
    }
    .flow-steps::after {
        display: none;
    }
}
/* --- Accordion for Juyo Page --- */
.accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* For border-radius to work with content */
}

.accordion-header {
    width: 100%;
    background-color: var(--background-color);
    border: none;
    padding: 15px 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #e9e9e9;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.accordion-content {
    background-color: var(--white-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-content p,
.accordion-content ul {
    padding: 20px;
    padding-top: 0;
}
.accordion-content ul {
    list-style-position: inside;
}
.accordion-content p:first-child,
.accordion-content ul:first-child {
    padding-top: 20px;
}
/* --- Service Card Icon Styling --- */
.card h3 i {
    margin-right: 10px; /* アイコンと文字の間の余白 */
    color: var(--primary-color); /* アイコンの色をメインカラーに設定 */
    width: 20px; /* アイコンの幅を固定して整列しやすくする */
    text-align: center;
}
/* --- Section Layout with Image --- */
.section-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 50px;
}

.section-flex-container.reverse {
    flex-direction: row-reverse; /* 画像とテキストの位置を反転 */
}

.section-flex-text {
    flex: 1.2; /* テキスト側の幅を少し広めに */
}

.section-flex-image {
    flex: 0.8; /* 画像側の幅 */
    text-align: center;
}

.section-flex-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Responsive for Section Layout --- */
@media (max-width: 768px) {
    .section-flex-container,
    .section-flex-container.reverse {
        flex-direction: column; /* スマホでは縦積みにする */
    }

    .section-flex-image {
        margin-bottom: 30px;
    }
}```
/* --- Styling for Card with Image (Final Fix v2) --- */
.card-with-image {
    display: flex;
    flex-direction: column; /* 要素を縦に積む */
}

.card-with-image .card-text-content {
    /* このエリアは他のカードと同じpaddingを持つため、テキスト位置は揃う */
}

.card-with-image img {
    margin-top: auto;  /* ★これがキーポイント。自動で上部マージンを取り、画像を下に押しやる */
    padding-top: 20px; /* テキストと画像の間に最低限の余白を確保 */
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 8px 8px; /* カード下部の角丸に合わせる */
}
/* --- Adjustments for CTA Section with Image --- */
.section-cta .section-flex-text {
    /* 中央揃えになっていたテキストを左揃えに戻す */
    text-align: left;
}

.section-cta .section-flex-text .section-title,
.section-cta .section-flex-text .section-lead {
    /* 中央揃え用の自動マージンを解除 */
    margin-left: 0;
    margin-right: 0;
}