/* リセット・ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif !important;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

/* カラー設計（木をイメージした色合い） */
:root {
    --main-color: #8B4513; /* サドルブラウン（メインカラー） */
    --sub-color: #D2B48C; /* タン（サブカラー） */
    --accent-color: #CD853F; /* ペルー（アクセントカラー） */
    --text-color: #333;
    --bg-color: #fafafa;
    --white: #ffffff;
}

/* フォントサイズ（PC版） */
h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--main-color);
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif !important;
}

h2 {
    font-size: 28px;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif !important;
}

h2::before {
    content: '';
    display: inline-block;
    width: 80px;
    height: 80px;
    background-image: url('../img/icon01.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif !important;
}

body {
    font-size: 18px;
}

p {
    font-size: 20px;
}

/* ヘッダー */
header {
    height: 100px;
    background-color: var(--main-color);
    border-bottom: 3px solid var(--sub-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.company-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.phone-number {
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
}

/* ヒーローセクション */
.hero-section {
    height: 600px;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('../img/top01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 60px;
}

/* ヒーローセクションの背景色（左右の余白部分用） */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: #f6efe8;
    z-index: -1;
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    margin-bottom: 60px;
}

/* サービスセクション */
.services-section {
    text-align: center;
    background: linear-gradient(135deg, #f8f4f0 0%, #f0e8dc 100%);
    padding: 60px 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(205, 133, 63, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.services-section h2 {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.service-item {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
    border: none;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 50%, var(--sub-color) 100%);
}

.service-item:nth-child(1) {
    border-left: 5px solid #e74c3c;
}

.service-item:nth-child(1)::before {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.service-item:nth-child(2) {
    border-left: 5px solid #3498db;
}

.service-item:nth-child(2)::before {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
}

.service-item:nth-child(3) {
    border-left: 5px solid #27ae60;
}

.service-item:nth-child(3)::before {
    background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.25);
}

.service-item h3 {
    color: var(--main-color);
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
}

.service-item:nth-child(1) h3 {
    color: #e74c3c;
}

.service-item:nth-child(2) h3 {
    color: #3498db;
}

.service-item:nth-child(3) h3 {
    color: #27ae60;
}

.service-item h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

.service-item p {
    font-size: inherit;
    line-height: 1.8;
    color: #555;
    margin-top: 15px;
}

/* 会社情報セクション */
.company-section {
    background: #ff6b35;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    margin-bottom: 80px;
}

.company-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #f7931e 30%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.company-section h1 {
    color: var(--white);
    position: relative;
    z-index: 2;
    font-size: 32px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.company-section h2 {
    color: var(--white);
    position: relative;
    z-index: 2;
    font-size: 32px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.company-section p {
    line-height: 1.8;
    position: relative;
    z-index: 2;
    font-size: 26px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.15);
    padding: 25px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    margin: 0 auto;
    max-width: 880px;
    color: #ffffff;
    font-weight: 500;
}

.company-section p strong {
    color: #fff8dc;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ブログ更新情報セクション */
.blog-section {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.blog-section::before {
    content: '📰';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    opacity: 0.3;
}

.blog-description {
    color: #495057;
    font-size: 16px;
    margin-bottom: 30px;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-feed {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.blog-feed .loading {
    text-align: center;
    color: #999;
    font-style: italic;
}

.blog-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.blog-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    position: relative;
    padding-left: 28px;
}

.blog-item-title::before {
    content: '📝';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
}

.blog-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item-title a:hover {
    color: #007bff;
}

.blog-item-date {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-item-date::before {
    content: '📅';
    font-size: 18px;
}

.blog-item-description {
    font-size: 15px;
    color: #495057;
    line-height: 1.7;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid #e9ecef;
    font-style: italic;
}

/* 施工までの流れセクション */
.flow-section {
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 142, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(46, 125, 50, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(232, 245, 233, 0.3) 0%, rgba(200, 230, 201, 0.2) 100%);
    background-size: 300px 300px, 400px 400px, 250px 250px, 100% 100%;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

/* 施工までの流れセクションの背景色（左右の余白部分用） */
.flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 142, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(46, 125, 50, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(232, 245, 233, 0.3) 0%, rgba(200, 230, 201, 0.2) 100%);
    background-size: 300px 300px, 400px 400px, 250px 250px, 100% 100%;
    z-index: -1;
}

.flow-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.flow-step:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.flow-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    position: relative;
    z-index: 2;
}

.flow-content {
    flex: 1;
    text-align: left;
}

.flow-content h3 {
    color: var(--main-color);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: bold;
}

.flow-content p {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

.flow-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--accent-color);
    margin: 10px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 電話問い合わせセクション */
.phone-contact-section {
    text-align: center;
    padding: 40px 20px;
}

.phone-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.phone-contact-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.phone-contact-link {
    display: none;
}

.phone-contact-image-mobile {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 問い合わせセクション */
.contact-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--main-color);
}

.required {
    color: #d32f2f;
    font-size: 14px;
    font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: var(--main-color);
    color: var(--white);
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #654321;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* フォームエラー表示 */
.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* FAQセクション */
.faq-section {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(205, 133, 63, 0.1);
}

.faq-question {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.faq-question h3 {
    color: var(--main-color);
    font-size: 18px;
    margin: 0;
    font-weight: bold;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #495057;
    line-height: 1.7;
    margin: 0;
    font-size: 16px;
}

/* フッター */
footer {
    height: 300px;
    background-color: var(--main-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* ========================================
   レスポンシブデザイン（スマホ表示）
======================================== */

/* タブレット（769px以下） */
@media (max-width: 769px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
    
    .company-logo img {
        height: 50px;
    }
    
    .phone-number {
        font-size: 16px;
        color: #ffffff;
    }
    
    .hero-section {
        height: 500px;
        margin-bottom: 0;
        background-size: contain;
        background-position: center center;
    }
    
    .services-section {
        padding: 40px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
    /* 基本フォントサイズ */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 18px;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    h2::before {
        width: 60px;
        height: 60px;
    }
    
    h3 {
        font-size: 14px;
    }
    
    body {
        font-size: 12px;
    }
    
    p {
        font-size: 14px;
    }
    
    /* ヘッダー */
    .header-container {
        padding: 0 15px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }
    
    .company-logo img {
        height: 40px;
    }
    
    .phone-number {
        font-size: 14px;
        color: #ffffff;
    }
    
    /* ヒーローセクション */
    .hero-section {
        height: 200px;
        margin-bottom: 0;
        background-size: contain;
        background-position: center center;
    }
    
    /* スマホ表示時はヒーローセクションの背景色を削除 */
    .hero-section::before {
        display: none;
    }
    
    /* メインコンテンツ */
    main {
        padding: 0 15px;
    }
    
    section {
        margin-bottom: 40px;
    }
    
    /* スマホ表示時はヒーローセクションの下に20pxの余白を追加 */
    .hero-section {
        margin-bottom: 20px !important;
    }
    
    /* サービスセクション */
    .services-section {
        padding: 30px 15px;
    }
    
    .service-item {
        padding: 25px 20px;
    }
    
    .service-item h3 {
        font-size: 18px;
    }
    
    /* 会社情報セクション */
    .company-section {
        padding: 40px 20px;
        margin-bottom: 50px;
        margin-top: 0 !important;
    }
    
    .company-section h1,
    .company-section h2 {
        font-size: 24px;
    }
    
    .company-section p {
        font-size: 18px;
        padding: 20px 15px;
    }
    
    /* ブログ更新情報セクション */
    .blog-section {
        padding: 30px 15px;
    }
    
    .blog-section::before {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .blog-description {
        font-size: 14px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .blog-feed {
        max-width: 100%;
    }
    
    .blog-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .blog-item-title {
        font-size: 18px;
        padding-left: 26px;
    }
    
    .blog-item-title::before {
        font-size: 18px;
    }
    
    .blog-item-date {
        font-size: 12px;
    }
    
    .blog-item-date::before {
        font-size: 16px;
    }
    
    .blog-item-description {
        font-size: 14px;
        padding-left: 12px;
    }
    
    /* 施工までの流れセクション */
    .flow-section {
        padding: 40px 15px;
    }
    
    .flow-step {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .flow-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 auto;
    }
    
    .flow-content {
        text-align: center;
    }
    
    .flow-content h3 {
        font-size: 18px;
    }
    
    .flow-content p {
        font-size: 14px;
    }
    
    .flow-arrow {
        font-size: 24px;
        margin: 5px 0;
    }
    
    /* 電話問い合わせセクション */
    .phone-contact-section {
        padding: 30px 15px;
    }
    
    .phone-contact-image {
        display: none;
    }
    
    .phone-contact-link {
        display: block;
    }
    
    .phone-contact-image-mobile:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .phone-contact-image-mobile:active {
        transform: scale(0.98);
    }
    
    /* FAQセクション */
    .faq-section {
        padding: 30px 15px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-toggle {
        font-size: 20px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    
    /* 問い合わせセクション */
    .contact-section {
        padding: 25px 15px;
    }
    
    .contact-description {
        font-size: 14px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* フッター */
    footer {
        height: auto;
        padding: 40px 0;
    }
    
    .footer-info h3 {
        font-size: 20px;
    }
    
    .footer-info p {
        font-size: 14px;
    }
}
