/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
    /* スムーススクロール */
}

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

/* ヘッダー修正 */
header {
    padding: 15px 0;
    /* 少しパディングを調整 */
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* ロゴの画像調整 */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    /* ロゴの高さを調整して、他のメニューとバランスを取る */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: 0.3s;
    font-weight: 400;
}

nav ul li a:hover {
    color: #004a99;
}

/* ヒーローエリア修正 */
.hero {
    height: 85vh;
    /* 高さを少し調整 */
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(240, 247, 255, 0.8)), url('hero_bg_wellness.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #222;
    line-height: 1.4;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 1px;
}

/* セクション共通 */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #004a99;
}

.bg-light {
    background: linear-gradient(rgba(249, 251, 253, 0.85), rgba(249, 251, 253, 0.85)), url('research_bg.png') center/cover no-repeat;
    background-attachment: fixed;
    /* Parallax effect for style */
}

.bg-dark {
    background-color: #1a2a3a;
    color: #fff;
}

.text-white {
    color: #fff;
}

/* プロダクト・リサーチ・アバウト共通カードスタイル */
.product-card,
.research-item,
.about-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.research-item,
.about-content {
    padding: 40px;
}

/* Product Card - Fancy Layout */
.product-card {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.product-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

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

.product-text {
    flex: 1;
    text-align: left;
}

.about-content {
    text-align: center;
}

.product-text h3,
.research-item h3 {
    margin-bottom: 20px;
    color: #222;
}

.company-info {
    margin-top: 30px;
    text-align: left;
    display: inline-block;
}

/* お問い合わせフォーム */
.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* フォームと画像をスペースで等間隔に配置 */
    gap: 30px;
    width: 100%;
    /* 全幅を使用して端に寄せる */
}

.contact-image {
    flex: 0 0 auto;
    /* フォームに押し潰されないように固定サイズにする */
    display: flex;
}

.contact-image.left {
    justify-content: flex-start;
}

.contact-image.right {
    justify-content: flex-end;
}

.contact-image img {
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-image.left img {
    width: 110px;
    /* 元の220pxの半分に変更。左端に配置 */
}

.contact-image.right img {
    width: 80px;
    /* 元の160pxの半分に変更。右端に配置 */
}

.contact-form {
    flex: 2;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #004a99;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #004a99;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
    font-weight: 700;
}

.btn:hover {
    background: #003366;
}

footer {
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    color: #aaa;
}

/* アニメーション */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    nav ul {
        display: none;
    }

    /* スマホメニューは簡易化のため非表示、必要ならハンバーガーを実装 */
    .section {
        padding: 60px 0;
    }

    .logo-img {
        height: 25px;
    }

    /* スマホでロゴを少し小さく */

    .product-card {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }

    .product-text {
        text-align: center;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .contact-image {
        display: none;
        /* スマホでは画像を非表示にしてフォームに集中させるか、必要なら残します */
    }

    .contact-form {
        max-width: 100%;
    }
}