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

:root {
    --primary-brown: #8B6F47;
    --dark-brown: #5C4A33;
    --beige: #F5E6D3;
    --light-beige: #FAF3E8;
    --white: #FFFFFF;
    --green-accent: #6B8E23;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #E0D5C7;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ヘッダー */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-brown);
}

.logo-accent {
    color: var(--green-accent);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-brown);
}

.header-time {
    font-size: 12px;
    color: var(--text-gray);
}

.cta-button {
    background: var(--green-accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    background: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ヒーローセクション */
.hero {
    margin-top: 70px;
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero .cta-button {
    font-size: 18px;
    padding: 15px 40px;
}

/* セクション共通 */
section {
    padding: 80px 20px;
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-brown);
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 50px;
}

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

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.problem-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.problem-item i {
    font-size: 48px;
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.problem-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-brown);
}

/* リフォームメニュー */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.menu-item-image {
    height: 200px;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary-brown);
}

.menu-item-content {
    padding: 25px;
}

.menu-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-brown);
}

.menu-item-price {
    font-size: 16px;
    color: var(--green-accent);
    font-weight: bold;
    margin-bottom: 10px;
}

/* 選ばれる理由 */
.reasons {
    background: var(--beige);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.reason-item {
    text-align: center;
}

.reason-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: var(--green-accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.reason-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-brown);
}

/* 施工事例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.case-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.case-image {
    height: 200px;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-brown);
}

.case-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.case-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--green-accent);
}

.case-voice {
    background: var(--light-beige);
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    font-style: italic;
}

/* リフォームの流れ */
.flow {
    background: var(--light-beige);
}

.flow-list {
    max-width: 800px;
    margin: 0 auto;
}

.flow-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--border-color);
}

.flow-number {
    width: 60px;
    height: 60px;
    background: var(--green-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.flow-content {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.flow-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-brown);
}

/* スタッフ紹介 */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.staff-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.staff-photo {
    height: 300px;
    overflow: hidden;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    padding: 25px;
}

.staff-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-brown);
}

.staff-role {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.staff-license {
    background: var(--light-beige);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 12px;
    margin-bottom: 15px;
    color: var(--dark-brown);
}

.staff-message {
    font-size: 14px;
    text-align: left;
    line-height: 1.7;
}

/* FAQ */
.faq {
    background: var(--beige);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--primary-brown);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-beige);
}

.faq-question::before {
    content: 'Q';
    background: var(--green-accent);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding: 0 25px 0 70px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 70px;
}

/* 料金の目安 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.pricing-item:hover {
    border-color: var(--green-accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.pricing-item h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-brown);
}

.pricing-amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--green-accent);
    margin-bottom: 10px;
}

.pricing-note {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 20px;
}

.pricing-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-accent);
    font-weight: bold;
}

/* 会社概要 */
.company {
    background: var(--light-beige);
}

.company-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.company-table {
    width: 100%;
}

.company-table tr {
    border-bottom: 1px solid var(--border-color);
}

.company-table tr:last-child {
    border-bottom: none;
}

.company-table th {
    text-align: left;
    padding: 20px 20px 20px 0;
    font-weight: bold;
    color: var(--primary-brown);
    width: 150px;
}

.company-table td {
    padding: 20px 0;
}

/* お問い合わせ */
.contact {
    background: var(--beige);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-method {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 48px;
    color: var(--green-accent);
    margin-bottom: 20px;
}

.contact-method h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-brown);
}

.contact-detail {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-brown);
}

.form-group label .required {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .cta-button {
    font-size: 18px;
    padding: 15px 60px;
}

/* フッター */
.footer {
    background: var(--dark-brown);
    color: var(--white);
    padding: 40px 20px 20px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--beige);
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    line-height: 2;
}

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

.footer-section a {
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .header-contact {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

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

    section {
        padding: 50px 20px;
    }

    .menu-grid,
    .reasons-grid,
    .cases-grid,
    .staff-grid,
    .pricing-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .company-table th {
        display: block;
        width: 100%;
        padding-bottom: 5px;
    }

    .company-table td {
        display: block;
        padding-top: 0;
    }

    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

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

    .header-phone {
        font-size: 20px;
    }

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

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
