/* Heroセクション */
.hero {
    position: relative; /* テキストを画像の上に配置するため */
    background-image: url("/static/images/top_header.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-image {
    max-width: 80%;
    height: auto;
    max-height: 500px;
    margin: 60px auto 0; /* 上部に50pxの余白を追加して下げる */
    display: block;
    
}

.hero-message {
    position: absolute; /* 画像の上に配置 */
    top: 60%; /* テキストの位置調整 */
    transform: translateY(-50%);
    color: #ffffff; /* 白色の文字 */
    text-align: center;
    font-family: 'Georgia', serif; /* おしゃれなフォントを使用 */
    margin-left: 5%; 
}

.hero-message h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
}

.hero-message p {
    font-size: 1.2rem;
    margin: 10px 0 0;
    font-weight: 300;
}

/* Heroテキストのアニメーション */
.hero-message h1, .hero-message p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2s ease-in-out forwards;
}

.hero-message h1 { animation-delay: 1s; }
.hero-message p { animation-delay: 2s; }

/* フェードインアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* 下から上がるように */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 元の位置に戻る */
    }
}

/* 共通セクションスタイル */
section {
    padding: 50px 20px;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: #333;
    padding-top: 10px; /* 線と文字の間に間隔を追加 */
}

.section-underline {
    position: absolute;
    top: -1px; /* 線を文字より上に配置 */
    left: 0; /* 左端に配置 */
    transform: none; /* 位置の変換を無効化 */
    width: 30px; /* 線の幅 */
    height: 2px; /* 線の高さ */
    background-color: #78c800; /* 緑色の下線 */
}

.section-description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    color: #666;
    margin: 0 auto;
    max-width: 800px;
}

/* Productsセクション */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.product-item {
    margin-bottom: 0;
}

.product-media {
    align-items: center;
    display: flex;
    justify-content: center;
}

.product-image-link {
    display: block;
}

.product-carousel,
.product-image-link,
.product-media > .product-image {
    aspect-ratio: 1 / 1;
    max-width: 430px;
    width: min(100%, 430px);
}

.product-carousel {
    overflow: hidden;
}

.product-carousel .carousel-inner,
.product-carousel .carousel-item {
    height: 100%;
}

.product-image {
    background: #fff;
    cursor: pointer;
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    width: 100%;
}

.product-media > .product-image {
    cursor: default;
}

.product-copy {
    text-align: left;
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.product-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.product-description .detail-link {
    display: block;
    margin-top: 12px;
    text-align: right;
}

.detail-link--muted {
    color: #777;
}

.purchase-links {
    gap: 12px;
}

.purchase-links .btn {
    min-height: 42px;
    min-width: 170px;
}

@media (max-width: 767px) {
    .product-list {
        gap: 44px;
    }

    .product-item {
        gap: 18px;
    }

    .product-media {
        margin-bottom: 6px;
        order: 1;
    }

    .product-copy {
        order: 2;
        text-align: center;
    }

    .product-carousel,
    .product-image-link,
    .product-media > .product-image {
        max-width: 330px;
        width: min(100%, 330px);
    }

    .product-title,
    .product-description {
        text-align: center;
    }

    .product-description .detail-link {
        text-align: center;
    }

    .purchase-links {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .purchase-links .btn {
        width: 100%;
    }
}

/* Aboutセクション */
.about-section {
    background-color: #ffffff; /* 背景を白に設定 */
}

.about-section .section-title {
    color: #444; /* タイトルを少し濃いグレーに */
}

/* ミッションセクション */
/* ミッションセクション全体のスタイル */
.mission {
    margin: 50px auto; /* 上下中央寄せ */
    max-width: 800px; /* コンテンツの幅を制限 */
    text-align: center; /* テキストを中央寄せ */
    line-height: 1.8; /* 行間を広げて読みやすく */
}

/* ミッションタイトルのスタイル */
.mission-title {
    font-size: 1.8rem; /* タイトルの文字サイズを設定 */
    font-weight: bold; /* 太字 */
    margin-bottom: 20px; /* タイトルとリスト間の余白 */
    color: #444; /* タイトルの色 */
}

/* ミッションリスト全体のスタイル */
.mission-list {
    list-style-type: none; /* デフォルトの箇条書きを削除 */
    padding: 0; /* 内側の余白を削除 */
    margin: 0; /* 外側の余白を削除 */
}

/* ミッションリスト各項目のスタイル */
.mission-list li {
    margin-bottom: 15px; /* 各項目の間隔 */
    font-size: 1rem; /* リスト項目の文字サイズ */
    text-align: left; /* テキストを左寄せ */
}

/* 強調部分のスタイル */
.mission-list li strong {
    color: #6b4e3d; /* 落ち着いたブラウン系の色 */
    font-weight: bold; /* 太字で目立たせる */
}

/* Contactセクション */
html {
    scroll-padding-top: 0px; /* ナビゲーションバーの高さ分の余白を追加 */
    scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}

.company-details {
    margin: 0 auto; /* 横方向の中央揃え */
    margin-top: 70px; /* 適宜値を調整 */
    max-width: 600px; /* 必要に応じて幅を制限 */
    text-align: center; /* テキストを中央揃え */
    line-height: 1.6; /* 行間を少し広げて読みやすく */
}

.carousel-item {
    transition: transform 1.5s ease-in-out !important;
}
.carousel-inner {
    transition: transform 1.5s ease-in-out  !important;
}


.instagram-embed-wrapper {
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center; /* 垂直方向に中央揃え（必要なら） */
    margin: 20px auto; /* 上下に余白を追加 */
    max-width: 100%; /* 親要素の幅を制限 */
}

.instagram-embed blockquote.instagram-media {
    display: block;
    margin: 0 auto; /* 中央揃え */
    max-width: 540px; /* 最大幅を設定 */
}
