/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero__text-box {
    max-width: 600px;
    padding: 40px;
     /*背景を少し白くして文字を読みやすくする場合 */
     /*background: rgba(255, 255, 255, 0.8); */
     /*border-radius: 10px; */
}

.hero__logo-mark {
    max-width: 180px;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333; /* 画像に合わせて調整 */
    margin-bottom: 40px;
}

.hero__buttons {
    display: flex;
    gap: 20px;
}

/* =========================================
   Philosophy Section
   ========================================= */
.philosophy {
    background-color: var(--white);
}

.philosophy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.philosophy__item {
    text-align: center;
}

.philosophy__icon {
    height: 80px;
    margin-bottom: 20px;
}

.philosophy__icon img {
    height: 100%;
    width: auto;
}

.philosophy__item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.philosophy__item h3 span {
    font-size: 1.1rem;
    color: var(--text-color);
}

.philosophy__item p {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: left;
}

.philosophy__message {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy__message strong {
    display: block;
    margin-top: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* =========================================
   Products Section
   ========================================= */
.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card__image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-card__image img {
    max-height: 100%;
    width: auto;
}

.product-card__title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.product-card__desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* =========================================
   Use Cases Section
   ========================================= */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* フレキシブルなグリッド */
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.case-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-card__content {
    padding: 20px;
}

.case-card__content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.case-card__content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =========================================
   Message / Company Section
   ========================================= */
.message__grid {
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    gap: 40px;
}

.message__card {
    max-width: 900px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.message__image {
    flex-shrink: 0;
    width: 200px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: auto;
}

.message__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.message__content h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.message__content h3 span {
    font-size: 1.4rem;
    font-weight: 900;
}

.message__content p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* =========================================
   Responsive Design (Mobile)
   ========================================= */
@media (max-width: 768px) {
    /* Hero */
    .hero__content {
        background-color: rgba(255, 255, 255, 0.7); 
        background-blend-mode: multiply;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__buttons {
        flex-direction: column;
    }
    .hero__buttons .btn {
        width: 100%;
    }
    .hero__buttons .btn--outline{
        background-color: white;
    }
    
    /* Philosophy */
    .philosophy__grid {
        grid-template-columns: 1fr;
    }

    /* Products */
    .products__grid {
        grid-template-columns: repeat(2, 1fr); /* スマホは2列、もしくは1列 */
    }

    /* Message */
    .message__grid {
        grid-template-columns: 1fr;
    }
    .message__card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .message__image {
        width: 130px;
        height: 130px;
        border-radius: 50%; /* 丸くする */
    }

    
}

@media (max-width: 480px) {
    .products__grid {
        grid-template-columns: 1fr; /* 小さいスマホは1列 */
    }
}