/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* ヘッダー */
.header {
    background-color: #5C4033;
    padding: 15px 0;
    position: relative;
}

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

.logo-link {
    text-decoration: none;
}

.logo-text {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* メインビジュアルセクション */
.hero {
    background-color: #5C4033;
    padding: 60px 0;
    min-height: 600px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    color: #FFFFFF;
}

.hero-title {
    font-family: serif;
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.2;
    width: 100%;
    letter-spacing: 0.02em;
    color: white;
    overflow: hidden;
}

/* テキストアニメーション */
.animated-text {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animated-text:nth-child(1) { animation-delay: 0.1s; }
.animated-text:nth-child(2) { animation-delay: 0.3s; }
.animated-text:nth-child(3) { animation-delay: 0.5s; }
.animated-text:nth-child(4) { animation-delay: 0.7s; }
.animated-text:nth-child(5) { animation-delay: 0.9s; }
.animated-text:nth-child(6) { animation-delay: 1.1s; }
.animated-text:nth-child(7) { animation-delay: 1.3s; }
.animated-text:nth-child(8) { animation-delay: 1.5s; }
.animated-text:nth-child(9) { animation-delay: 1.7s; }
.animated-text:nth-child(10) { animation-delay: 1.9s; }
.animated-text:nth-child(11) { animation-delay: 2.1s; }
.animated-text:nth-child(12) { animation-delay: 2.3s; }
.animated-text:nth-child(13) { animation-delay: 2.5s; }
.animated-text:nth-child(14) { animation-delay: 2.7s; }
.animated-text:nth-child(15) { animation-delay: 2.9s; }
.animated-text:nth-child(16) { animation-delay: 3.1s; }
.animated-text:nth-child(17) { animation-delay: 3.3s; }
.animated-text:nth-child(18) { animation-delay: 3.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
}

.hero-description p {
    margin-bottom: 20px;
}

.hero-image {
    flex: 0 0 500px;
}

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

/* サービス紹介セクション */
.services {
    background-color: #5C4033;
    padding: 40px 0 80px 0;
}

.service-boxes {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
}

.service-box {
    background-color: transparent;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    padding: 40px 50px;
    text-align: center;
    min-width: 250px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: #FFFFFF;
    display: block;
}

.service-box:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.service-box-white {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.service-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.service-line {
    height: 3px;
    background-color: currentColor;
    width: 100%;
}

.contact-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.contact-button {
    background-color: #FFFFFF;
    color: #5C4033;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-button:hover {
    background-color: #f0f0f0;
}

/* 使命と価値観セクション */
.mission {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.mission-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    text-align: left;
    margin-bottom: 40px;
}

.mission-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.mission-content p {
    margin-bottom: 30px;
}

.mission-divider {
    height: 2px;
    background-color: #333;
    width: 100%;
    margin: 40px 0;
}

/* サービス詳細セクション */
.service-details {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
}

.section-description {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 60px;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.feature {
    border-left: 4px solid #5C4033;
    padding-left: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* お問い合わせセクション */
.contact {
    background-image: url('images/contact_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5C4033;
}

.submit-btn {
    background-color: #5C4033;
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #4A3429;
}

.contact-thanks {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-top: 20px;
}

/* フッター */
.footer {
    background-color: #333;
    color: #FFFFFF;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.footer-company-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-contact-info {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-contact-info:last-child {
    margin-bottom: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-image {
        flex: none;
        max-width: 100%;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .service-boxes {
        flex-direction: column;
        gap: 20px;
    }

    .service-box {
        min-width: auto;
        padding: 30px 40px;
    }

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

    .contact-button {
        font-size: 20px;
        padding: 18px 35px;
    }

    .mission {
        padding: 60px 0;
    }

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

    .service-details {
        padding: 60px 0;
    }

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

    .contact {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
    }

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

    .footer {
        padding: 30px 0;
    }

    .footer-company-name {
        font-size: 18px;
    }

    .footer-contact-info {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main-title-section {
        padding: 80px 0;
    }

    .main-title {
        font-size: 56px;
        padding: 0 15px;
        line-height: 1.1;
        letter-spacing: 0.06em;
        transform: scale(1.0);
    }

    .hero-title {
        font-size: 56px;
        padding: 0 15px;
        line-height: 1.1;
        letter-spacing: 0.06em;
        transform: scale(1.0);
        margin-bottom: 20px;
        color: white;
    }

    .hero-description {
        font-size: 14px;
    }

    .service-title {
        font-size: 20px;
    }

    .contact-button {
        font-size: 18px;
        padding: 16px 30px;
    }

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

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

    .footer-company-name {
        font-size: 16px;
    }

    .footer-contact-info {
        font-size: 12px;
    }
}

/* 関連ページ共通スタイル */
.page-title-section {
    background-color: #5C4033;
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 24px;
}

.content-section {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.section-heading {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-section {
    background-color: #F5F5F5;
    padding: 80px 0;
    text-align: center;
}

.contact-info-section p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

/* レスポンシブデザイン - 関連ページ */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 18px;
    }

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

    .content-section p,
    .contact-info-section p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 20px;
    }

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

    .content-section p,
    .contact-info-section p {
        font-size: 16px;
    }
}