/* ページ全体のレイアウトを調整 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}






/* ページ全体の背景色を統一 */
body {
    background-color: #f6f2ef; /* index.html の背景色と統一 */
    font-family: Arial, sans-serif;
    text-align: center;
}



}

#result {
    margin-top: 20px;
}

img {
    width: 60%;
    max-width: 1000px;
}
















/* メインコンテンツ */
.content-container {
    width: 50%;
    max-width: 1200px;
    max-height: 1000px; /* ★ここを追加して高さ制限を設定★ */
    min-height: 950px;
    margin: 1px auto 50px auto; /* 上 、下  */
    padding: 10px;
    padding-top: 10px;
    padding-bottom: 110px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}






/* iframe のサイズを調整 */
iframe {
    width: 100%;
    height: 680px; /* 必要に応じて高さを調整 */
    border: none; /* 枠線を消す */
    border-radius: 15px; /* 角を丸くする */
    overflow: hidden; /* 内容のはみ出しを防ぐ */
}




/* ヘッダー画像のデザインを統一 */
header img {
    width: 100%;
    max-height: 300px; /* 高さを統一 */
    object-fit: cover; /* 画像をトリミングしてバランスよく表示 */
    margin-top: 50px; /* `top-header` の高さ + 余白分 */
    margin-bottom: 1px; /* ヘッダーとコンテンツの間に余白を作る */

}

/* 見出し */
.content-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.content-container h2 {
    color: #444;
    border-left: 5px solid #ff6600;
    font-size: 15px;
    padding-left: 10px;
    margin-top: 1px;
    margin-bottom: 0px;
}



/* サブ見出し（li）のデザインを統一 */
.content-container li {
    font-size: 12px;
    margin-top: 0px;
    color: #555;
}








/* サブ見出し（h3）のデザインを統一 */
.content-container h3 {
    font-size: 18px;
    margin-top: 15px;
    color: #555;
}




/* 段落 */
.content-container p {
    line-height: 1.6;
    color: #555;
}

/* 戻るボタン */
.back-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
    background-color: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.back-button:hover {
    background-color: #005bb5;
}




































/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    margin-top: auto; /* これでフッターが常に一番下に配置される */
}

.footer-links {
    margin-bottom: 5px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #ff6600;
}


.copyright {
    margin: 0;
    font-size: 12px;
}






/* 新しいヘッダー（フッターと同じデザイン） */
.top-header {
    position: fixed;  /* 画面の上部に固定 */
    top: 0;           /* 上端に配置 */
    left: 0;          /* 左端に配置 */
    width: 100%;      /* 横幅を100%にする */
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px;
    font-size: 14px;
    z-index: 1000;    /* 他の要素より前面に表示 */
}


/* 左側のロゴ＋サイト名 */
.header-left {
    display: flex;
    align-items: center;
}

/* ロゴとテキストを横並び */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* リンクの下線を消す */
    color: white; /* テキストを白に */
}

/* ロゴ画像 */
.logo-container img {
    height: 30px; /* ロゴの高さ（調整可） */
    width: auto;
    display: block;
}

/* サイト名（ロゴの隣のテキスト） */
.site-title {
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px; /* ロゴとの間隔 */
}

/* 右側のメニューボタン */
.header-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* ボタンを右端に寄せすぎない */
    margin-right: 10px; /* 右側に余白を確保 */
}

/* メニューボタン */
.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px; /* ボタン内の余白を調整 */
    margin-right: 20px; /* 右側の余白を追加 */
    transition: 0.3s;
}

.menu-button:hover {
    color: #ff6600;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 20px; /* 右端ギリギリではなく、少しだけ余白を確保 */
    top: 35px;
    min-width: 250px; /* メニューの幅を適切に確保 */
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
}

/* メニューのリンク */
.dropdown-menu a {
    display: block;
    padding: 12px 15px; /*  内側の余白を広げて、ゆとりを持たせる */
    font-size: 14px; /*  文字サイズを少し大きく */
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    text-align: left; /* 左揃えに変更 */
}

.dropdown-menu a:hover {
    background: #ff6600;
    color: white;
}







/* アフェリエイトのバナー広告 */
a[href*="a8.net"] > img {
    width: 468px !important;
    height: 60px !important;
    max-width: 468px !important;
    max-height: 60px !important;
    object-fit: contain;
}





a[href*="accesstrade.net"] > img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: contain;
}





/* クリック範囲を画像のみに制限 */
/* リンクを中央寄せ＆クリック範囲を画像のみに制限 */
a[href*="a8.net"],
a[href*="accesstrade.net"] {
    display: inline-block;
    margin: 30px auto;
    line-height: 0;
    text-align: center;
}

/* 画像を中央に表示し、アスペクト比を維持 */
a[href*="a8.net"] > img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 468px;
    aspect-ratio: 468 / 60;
    object-fit: contain;
}

a[href*="accesstrade.net"] > img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1; /* 200x200の正方形広告の場合 */
    object-fit: contain;
}







/* スマホ対応 */
@media (max-width: 600px) {
    /* ヘッダー画像のサイズ調整 */
    header img {
        max-height: 200px; /* スマホでは高さを小さく */
    }

    /* メインコンテンツの幅を調整 */
    .content-container {
        width: 80%;
        padding: 10px;
        padding-top: 10px;
        padding-bottom: 110px;
        max-height: 900px; /* ★ここを追加して高さ制限を設定★ */
        min-height: 900px;
    }



/* サブ見出し（li）のデザインを統一 */
.content-container li {
    font-size: 10px;
    margin-top: 0px;
    color: #555;
}





/* スマホでバナーが画面に収まるように */
@media (max-width: 600px) {
    a[href*="a8.net"] > img {
        width: auto !important;
        height: auto !important;
        max-width: 90% !important;
    }

    a[href*="accesstrade.net"] > img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
    }
}








    /* フッターのフォントサイズ調整 */
    footer {
        padding: 6px 0;
        font-size: 12px;
    }



    /* ボタンのサイズ調整 */
    .back-button {
        width: 80%;
        font-size: 16px;
        padding: 12px;
    }
}
