/* 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セクション */
.products-section .row {
    margin-bottom: 40px; /* 商品リスト間のスペース */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.product-title {
    text-align: center; /* テキストを中央揃え */
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

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

.img-fluid {
    height: auto;
    border-radius: 10px; /* 画像の角を丸める */
}
.product-description .detail-link {
    display: block; /* ブロック要素にする */
    text-align: right; /* 右揃えにする */
    margin-top: 10px; /* 必要に応じて上部に余白を追加 */
}

/* PC用（概要左、画像右） */
.products-section .row {
    display: flex; /* 子要素を並べるためにフレックスボックスを使用 */
    align-items: center; /* 縦方向で中央揃え */
    justify-content: space-between; /* 左右の要素を適切に配置 */
    text-align: left; /* 全体のデフォルトを左揃え */
}

.products-section .row .product-description {
    text-align: left; /* テキストを左揃え */
    flex: 1; /* テキスト部分が均等にスペースを取れるように */
    padding-right: 20px; /* テキストと画像の間に余白を設定 */
}

.products-section .row .img-fluid {
    max-width: 70%; /* 画像の幅を設定 */
    height: auto;
    margin: 0 auto; /* 画像を中央揃え */
    display: block; /* 中央揃えに必要な設定 */
    flex: 1; /* 画像部分が均等にスペースを取れるように */
}
.products-section .row > div:first-child {
    order: 1;
}

.products-section .row > div:last-child {
    order: 2;
}

/* モバイル用（画像上、概要下） */
@media (max-width: 767px) {
    .products-section .row {
        flex-direction: column-reverse; /* モバイルでは画像を上に配置 */
    }

    .product-title, .product-description {
        text-align: center; /* モバイルではテキストを中央揃え */
    }

    .products-section .row > div:first-child {
        order: 2;
    }

    .products-section .row > div:last-child {
        order: 1;
    }
}

/* 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; /* 最大幅を設定 */
}