/* =======================================
   基本設定
======================================= */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    color: #222;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* =======================================
   ヘッダー
======================================= */
.site-header {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    top: 0;
    left: 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    z-index: 1002;
}

/* スクロール時のヘッダー（固定＆半透明） */
.site-header.scrolled {
    position: fixed;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0.7;
}

/* ヘッダーのレイアウト */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ロゴ */
.site-header .site-title img {
    height: 50px;
}

/* ナビゲーション */
.main-navigation {
    display: flex;
    align-items: center;
}

/* メニューリスト */
.main-navigation .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation .nav-menu li {
    margin-left: 20px;
}

.main-navigation .nav-menu a {
    color: #009640;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
}

.main-navigation .nav-menu a:hover {
    background: rgba(0, 150, 64, 0.1);
    border-radius: 5px;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #009640;
    margin: 6px auto;
    transition: 0.3s;
}

/* メニューが開いた時 */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* スマホ時のナビゲーション */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        padding-top: 50px;
        z-index: 999;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation .nav-menu li {
        margin: 15px 0;
    }
}

/* =======================================
   メインビジュアル
======================================= */
.main-visual {
    background: linear-gradient(to bottom right, #006030, #009640, #00b050);
    color: white;
    padding: 60px 0 0 0;
}

.main-visual .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

/* テキスト側 */
.text-content {
    max-width: 50%;
}

.text-content h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.text-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ボタン */
.button {
    display: inline-block;
    background: white;
    color: #009640;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

.button:hover {
    background: #00702c;
    color: white;
}

/* 画像側 */
.image-content {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-content img {
    max-width: 90%;
    height: auto;
    display: block;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

/* =======================================
   エントリーの流れ（ステップ）
======================================= */
.how-to-use {
    padding: 60px 20px;
}

.how-to-use .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.how-to-use h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
}

.steps {
    display: flex;
    justify-content: space-around;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.step {
    width: 30%;
}

.step img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.step p {
    font-size: 1.1rem;
}

/* =======================================
   よくある質問（FAQ）
======================================= */
.faq {
    background: #f9f9f9;
    padding: 60px 20px;
}

.faq .container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.faq h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
}

.faq-item {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.faq-question {
    font-size: 1.3rem;
    font-weight: bold;
    color: #009640;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
}

/* =======================================
   フッター
======================================= */
.site-footer {
    background: #009640;
    color: #ffffff;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    font-size: 0.9rem;
}

.site-footer a {
    color: #ffffff;
    font-weight: bold;
}

/* =======================================
   レスポンシブ対応
======================================= */
@media (max-width: 768px) {
    .main-visual .container {
        flex-direction: column;
    }

    .text-content a.button {
        /* text-align: center; */
        margin: 20px auto;
        display: block;
        width: 70%;
    }

    .text-content {
        max-width: 100%;
    }

    .image-content {
        justify-content: center;
    }

    .image-content img {
        width: 70%;
        margin-top: 20px;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        width: 100%;
        margin-bottom: 20px;
    }

    .faq-item {
        text-align: left;
    }
}
