/* ========================================
   メインビジュアル
======================================== */
.hero {
    width: 100%;
    padding: 0;
    margin: 0;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   イントロセクション
======================================== */
.intro-section {
    padding: 40px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.intro-image {
    flex: 0 0 300px;
    text-align: center;
}

.intro-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.intro-text {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.intro-text h2 {
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 20px;
    font-size: 1.8rem;
    line-height: 1.6;
    border-bottom: 1px solid #ddd;
}

.intro-text .text-red {
    color: #B53925;
}

.intro-text .text-red-bold {
    color: #B53925;
    font-weight: bold;
}

.intro-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #333;
}

.intro-text .divider-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* ========================================
   サービスグリッド
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    margin: 40px 0;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.service-card:hover {
    opacity: 0.8;
    background-color: rgba(255, 251, 219, 0.5);
}

/* 十字の罫線 */
.service-card:nth-child(1),
.service-card:nth-child(2) {
    border-bottom: 1px solid #ddd;
}

.service-card:nth-child(1),
.service-card:nth-child(3) {
    border-right: 1px solid #ddd;
}

.service-icon {
    /* width: 200px;
    height: 200px; */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
    color: #333;
}

.service-card h3 span {
    font-size: 0.9rem;
    color: #333;
}

/* 各サービスの大きい文字部分の色 */
.service-housing h3 {
    color: #2196F3;
}

.service-housing h3 span {
    color: #333;
}

.service-construction h3 {
    color: #FF9800;
}

.service-construction h3 span {
    color: #333;
}

.service-daily h3 {
    color: #9C27B0;
}

.service-daily h3 span {
    color: #333;
}

.service-instagram h3 {
    color: #333;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border: none !important;
        padding: 30px 20px;
    }

    .service-card:not(:last-child) {
        border-bottom: 1px solid #ddd !important;
    }
}

@media (max-width: 480px) {
    .intro-text h2 {
        font-size: 1.4rem;
    }
}
