/* 基本的なリセットとフォント設定 */
body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 変数定義 */
:root {
    --main-color: #009DE0;
    --accent-color: #0056b3;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-gray: #eee;
}

/* コンテナとセクションの共通スタイル */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /* 各セクション内のコンテンツに上下の余白を追加 */
    padding: 6rem 1.5rem; 
}


section.container {
    padding-bottom: 4rem; /* 各セクションの下に余白を追加 */
}

/* contactセクションは背景色が違うので個別に調整 */
section#contact.full-width.contact-section {
    padding-bottom: 4rem;
}

.full-width {
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--main-color);
}

/* ヘッダーのスタイル */
header {
    background-color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--main-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.contact-button {
    background-color: var(--main-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.contact-button:hover {
    background-color: var(--accent-color);
}

#menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    z-index: 100;
    padding: 5px;
}

.menu-button span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    transition: transform 0.3s ease;
}

/* チェックボックスがチェックされたらハンバーガーメニューを「X」マークに変える */
#menu-toggle:checked ~ .menu-button span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px); /* 1本目の棒を45度回転・移動 */
}
#menu-toggle:checked ~ .menu-button span:nth-child(2) {
    opacity: 0; /* 2本目の棒を非表示にする */
}
#menu-toggle:checked ~ .menu-button span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px); /* 3本目の棒を-45度回転・移動 */
}

/* メインビジュアル */
#hero {
    background-image: url('../img/mv-01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* text-align: center; を削除 */
    padding: 10rem 1.5rem;
    color: #fff;
    position: relative;
    display: flex; /* flexboxを追加 */
    align-items: center; /* コンテンツを垂直方向の中央に揃える */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background-color: rgba(0, 0, 0, 0.5); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* コンテンツを左寄せにする */
    text-align: left;
    max-width: 960px; /* コンテンツの最大幅を設定 */
    margin: 0 50px 0 200px;
    padding-left: 2rem; /* 左側に余白を追加 */
}

#hero h1,
#hero p {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    /* PC版では表示 */
    display: block;
}

.hero-text-mobile {
    display: none; /* デフォルトでは非表示 */
    max-width: 100%;
    height: auto;
}

.catch-copy {
    text-align: center;
    font-size: 1.1rem;
    color: #333; /* 文字色を濃いグレーにする */
    font-weight: bold; /* 文字を太くする */
    margin-bottom: 1rem;
}


#hero p {
    font-size: 1.5rem;
    font-weight: 300;
}

.cta-button {
    /* スタイルは変更なし */
    background-color: var(--main-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* 各セクションのスタイル */
#about {
    background-color: #fff;
    padding: 6rem 1.5rem; /* セクション内の余白を確保 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* 影を追加 */
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-direction: row; /* PCでは横並びにする */
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#features {
    background-color: #fff;
    padding: 6rem 1.5rem; /* セクション内の余白を確保 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* 影を追加 */
}

#use-cases {
    background-color: var(--bg-light);
}

.feature-list, .use-case-list {
    display: flex;
    justify-content: center; /* 項目を中央に配置 */
    gap: 2rem;
    flex-wrap: wrap; 
}

.feature-item, .use-case-item {
    flex-basis: calc(33.33% - 2rem); /* 項目を均等な幅にする */
    min-width: 280px; 
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover, .use-case-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    width: 140px;
    height: 140px;
    margin-top: 30px;
}

.feature-item p {
    font-size: 0.9rem; /* フォントサイズを小さくする */
    text-align: left;
    padding: 0 1.2rem;
}

/* オゾン濃度基準値とは？セクション */
#standard {
    background-color: var(--bg-gray); /* 背景色を追加 */
    padding: 6rem 1.5rem; /* 上下の余白を追加 */
}

/* 濃度基準値セクション内のコンテンツを中央に配置するためのスタイル */
.standard-content {
    background-color: #fff; /* 本文の背景色を白に設定 */
    border-radius: 10px; /* 角を丸くする */
    padding: 3rem; /* 内側の余白を追加 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加 */
    max-width: 800px;
    margin: 0 auto;
}

#standard h2 {
    /* 見出しは背景色の上に表示 */
    position: relative;
    z-index: 1;
}

#specs {
    background-color: var(--bg-gray);
}

.specs-table {
    overflow-x: auto;
}

/* こんな場所のオゾン濃度管理にセクション */
#use-cases {
    background-color: var(--bg-light);
}

.use-case-list.vertical-layout {
    display: flex;
    flex-direction: column; /* 項目を縦並びにする */
    gap: 4rem; /* 縦方向の間隔を空ける */
}

.use-case-item {
    display: grid; /* Gridレイアウトに変更 */
    grid-template-columns: 1fr 1fr; /* 2つのカラムを作成 */
    grid-template-areas:
        "content image"
        "note note"; /* 3つの領域を定義 */
    align-items: center;
    gap: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.use-case-content {
    grid-area: content; /* "content"領域に配置 */
}

.use-case-image {
    grid-area: image; /* "image"領域に配置 */
    text-align: right;
}

.use-case-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 警告灯の注釈スタイル */
.note {
    grid-area: note; /* "note"領域に配置 */
    font-size: 0.8rem;
    color: #555;
    margin-top: 1rem;
    border-left: 3px solid var(--main-color);
    padding-left: 1rem;
    text-align: left;
}

/* テキストと画像の並び順を反転させる */
.use-case-item.reverse {
    grid-template-areas:
        "image content"
        "note note"; /* 並び順を反転 */
}

#specs {
    background-color: var(--bg-gray);
}

.specs-content-wrapper {
    display: flex; /* 子要素を横並びにする */
    gap: 2rem; /* テーブルと画像の間隔 */
    align-items: center; /* 垂直方向の中央揃え */
    flex-wrap: wrap; /* 画面幅が狭いときに折り返す */
}

.specs-table {
    flex: 1; /* 左側を均等な幅にする */
    min-width: 300px;
}

#specs table {
    width: 100%;
    font-size: 0.8rem; /* 文字サイズを小さくする */
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#specs th, #specs td {
    border: 1px solid #ddd;
    padding: 0.7rem;
    text-align: left;
}

#specs th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.specs-image {
    flex: 1; /* 右側を均等な幅にする */
    min-width: 300px;
    text-align: center;
}

.specs-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.specs-note {
    text-align: left;
    font-size: 0.6rem; /* 文字サイズを小さくする */
    color: #888; /* 色を薄くする */
    margin-top: 1.5rem; /* テーブルとの間に余白を確保 */
}

/* ★追加するスタイル：製品価格の表示エリア★ */
.product-price {
    text-align: center;
    margin-top: 3rem; /* 上のコンテンツとの間に十分な余白を確保 */
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-price h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.price-disclaimer {
    font-size: 0.75rem; /* より小さく */
    color: #888; /* 薄いグレー */
    margin-top: 1rem;
}

.price-button {
    /* CTAボタンのスタイルを流用しつつ、少し控えめにする */
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* お問合せセクション */
.contact-section {
    background-color: var(--main-color);
    color: #fff;
    text-align: center;
    /* お問合せセクションの上下の余白を増やす */
    padding: 6rem 1.5rem; 
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-title::after {
    background-color: #fff;
}

/* 購入セクション */
.purchase-section {
    background-color: var(--bg-gray);
    text-align: center;
    padding: 0 1.5rem;
}

.purchase-section .section-title {
    margin-bottom: 2rem;
}

.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.button {
    background-color: #fff; /* 背景色を白にする */
    color: var(--main-color);
    padding: 1.2rem 3rem; /* パディングを増やしてボタンを大きくする */
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem; /* フォントサイズを少し大きくする */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 影を濃くする */
}

.button:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px); /* ホバー時に浮き上がらせる */
}

/* ★修正するスタイル：購入ボタン（Amazon/楽天）★ */
.store-button {
    border: 1px solid #aaa; /* 薄いグレーの枠線を追加 */
    color: #333; /* 文字色を濃いグレーにする */
    font-size: 1rem;
    padding: 1rem 2.5rem; /* お問い合わせボタンより少しパディングを小さくする */
    box-shadow: none; /* 影を削除して目立たなくする */
    transition: all 0.3s ease;
}

.store-button:hover {
    background-color: #fff; /* ホバー時に白背景にする */
    border-color: var(--main-color); /* 枠線を青にする */
    color: var(--main-color);
}

/* ページトップへ戻るボタン */
#page-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: none;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
    z-index: 999;
}

#page-top:hover {
    background-color: var(--main-color);
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    /* フッターの上下の余白を調整 */
    padding: 3rem 1.5rem 1rem; 
    text-align: center;
}

.footer-content {
    text-align: left;
}

.footer-content h3 {
    color: #fff;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-content table {
    width: 100%;
    margin-top: 1rem;
    color: #ddd;
}

.footer-content td {
    padding: 0.5rem 0;
    vertical-align: top;
    min-width: 120px; /* 左側の列の最小幅を広げる */
}

.copyright {
    margin-top: 2rem;
    border-top: 1px solid #555;
    padding-top: 1rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {


    .container, .full-width {
        box-sizing: border-box; /* パディングとボーダーを幅に含める */
        padding: 3rem 1rem; 
    }

    .hero-content, .specs-content-wrapper, .about-flex {
        width: 100%;
    }


    
    section.container {
        padding-bottom: 2rem; /* スマホでは余白を少し小さくする */
    }
    かく
    section#contact.full-width.contact-section {
        padding-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* ヘッダー */
    header {
        flex-direction: row; /* ヘッダーの要素を横並びに戻す */
        justify-content: space-between; /* 左右に要素を配置 */
        align-items: center; /* 垂直方向の中央揃え */
        flex-wrap: nowrap; /* 要素の折り返しを無効にする */
    }

    .main-nav {
        /* メニューはデフォルトで非表示 */
        display: none;
        position: absolute;
        top: 65px; /* ヘッダーの高さに合わせて調整 */
        left: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        background-color: #fff;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 1rem 0;
    }

    .menu-button {
        display: flex; /* ハンバーガーメニューを表示 */
        order: 3; /* 3番目の要素として配置 */
        margin-left: 1rem;
    }
    
    .logo {
        order: 1; /* 1番目の要素として配置 */
        flex-grow: 0;
    }
    
    .contact-button {
        display: block;
        order: 2; /* 2番目の要素として配置 */
        margin-left: auto;
    }
    
    /* チェックボックスがチェックされたらメニューを表示 */
    #menu-toggle:checked ~ .main-nav {
        display: block;
    }

    /* メインビジュアル */
    #hero {
        padding: 6rem 1rem;
        background-image: url('../img/mv-sp.jpg'); 
        display: flex;
        flex-direction: column;
        justify-content: center; /* 垂直方向の中央揃え */
        align-items: center; /* 水平方向の中央揃え */
    }

    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center; /* コンテンツ内のテキストを中央揃え */
        padding: 0;
        margin: 0;
        width: 85%;
        display: flex; /* Flexboxを追加 */
        flex-direction: column; /* 縦並びにする */
        align-items: center; /* 子要素を中央に配置 */
     }
    
    .hero-text-mobile {
        display: block;
        margin-bottom: 2rem;
        margin-top: 500px;
        max-width: 80%;
    }

    /* h1とpは非表示のまま */
    #hero h1,
    #hero p {
        display: none;
    }
    
    .cta-button {
        padding: 0.7rem 1.8rem;
        /* CTAボタンとテキスト画像の間隔を調整 */
        margin-top: 0.5rem;
    }

    /* セクション */

    /* オゾン濃度基準値とは */
    #standard {
        padding: 3rem 1.5rem; /* スマホでは余白を調整 */
    }

    .standard-content {
        padding: 2rem; /* スマホでは余白を調整 */
    }
    .about-flex {
        flex-direction: column; /* スマホ・タブレットでは縦並びにする */
        align-items: center; /* 縦並びの中央揃え */
    }

    .about-text {
        text-align: left; /* テキストは左寄せを維持 */
        max-width: 100%; /* 親要素の幅いっぱいに広げる */
    }
    .about-image {
        order: -1;
    }

    .feature-list, .use-case-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* こんな場所の濃度管理に */
    .use-case-item {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .use-case-item.reverse {
        flex-direction: column;
    }

    .note {
        margin-top: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    /* スペック */
    .specs-content-wrapper {
        flex-direction: column; /* スマホでは縦並びにする */
        gap: 1.5rem;
    }

    .specs-image {
        order: -1; /* スマホでは画像を先に表示 */
    }
    
    /* 問合せ */
    .contact-section {
        max-width: 100%; /* 親要素の幅いっぱいに広げる */
        padding: 3rem 1.5rem;
    }
    
    /* 購入セクション */
    .purchase-section {
        padding: 3rem 1.5rem;
    }    
    .button-group {
        flex-direction: column;
        align-items: center; /* ボタンを中央に配置 */
    }
}