/* サイト全体のスタイル */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* セクションの基本スタイル */
section {
    padding: 20px 10px;
    background-color: #f4f4f4;
    box-sizing: border-box;
}

/* コンテンツ全体のスタイル */
.content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* 行のスタイル */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row-top {
    display: flex;
    flex-wrap: wrap;
}

.row-middle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.row-bottom {
    display: flex;
    flex-direction: column;
}

/* カラムのスタイル */
.column {
    padding: 10px;
    box-sizing: border-box;
}

.column-10 { flex: 1 1 10%; max-width: 10%; }
.column-20 { flex: 1 1 20%; max-width: 20%; }
.column-30 { flex: 1 1 30%; max-width: 30%; }
.column-40 { flex: 1 1 40%; max-width: 40%; }
.column-50 { flex: 1 1 50%; max-width: 50%; }
.column-60 { flex: 1 1 60%; max-width: 60%; }
.column-70 { flex: 1 1 70%; max-width: 70%; }
.column-80 { flex: 1 1 80%; max-width: 80%; }
.column-90 { flex: 1 1 90%; max-width: 90%; }
.column-100 { flex: 1 1 100%; max-width: 100%; }

/* キャプションボックスのスタイル */
.caption-box {
    border: 2px solid #ccc;
    padding: 6px;
    position: relative;
    overflow: hidden;
}

.caption {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.caption-box .category-box, .caption-box .ranking-box {
    display: flex;
    align-items: center;
    justify-content: left;
    position: relative;
    margin-bottom: 6px;
    padding: 10px;
    background-color: #fff;
    border: 2px solid #ccc;
}

.caption-box .category-name, .caption-box .ranking-name {
    flex-grow: 1;
    padding-right: 30px;
    font-size: 14px;
    font-weight: bold;
    transform-origin: left;
    overflow: hidden;
}

/* EAカテゴリー選択セクション */
#ea-category {
    background-color: #f4f4f4;
}

.category-box {
    display: flex;
    align-items: center;
    justify-content: left;
    position: relative;
    margin-bottom: 10px;
    padding: 10px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
}

.category-name {
    flex-grow: 1;
    padding-right: 30px;
    font-size: 16px;
    font-weight: bold;
    transform-origin: left;
    overflow-wrap: break-word;
}

.category-checkbox {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-66%) scale(1.5);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* EA通貨ペア選択セクション */
#ea-currency-pair {
    background-color: #f4f4f4;
}

.currency-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.currency-box {
    flex: 1 1 100px;
    width: 80px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    height: 10px;
}

.currency-box span {
    flex-grow: 1;
    margin-right: 10%;
    font-size: 14px;
    font-weight: bold;
}

.currency-box input[type="checkbox"] {
    position: absolute;
    right: 10px;
    top: 20%;
    transform: translateY(-50%) scale(1.2);
    cursor: pointer;
}

/* バナーセクションのスタイル */
#banner {
    background-color: #f4f4f4;
    flex: 1 1 100%;
    min-width: 300px;
}

.banners {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banner {
    background-color: #ccc;
    padding: 10px;
    text-align: center;
}

/* EAランキングTOP10セクションのスタイル */
#ea-ranking-top10 .ranking-table th,
#ea-ranking-top10 .ranking-table td {
    text-align: left;
    font-size: 14px;
}

#ea-ranking-top10 h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: var(--h2-font-size, 18px);
}

.crown i {
    margin-right: 5px;
    margin-left: -5px;
    font-size: 1.2em;
}

.gold i {
    color: #FFD700;
}

.silver i {
    color: #C0C0C0;
}

.bronze i {
    color: #CD7F32;
}

.lot-input {
    width: 4em;
}

/* EA選択セクション */
#ea-selection {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: auto;
}

.table-controls {
    margin-bottom: 10px;
    text-align: right;
}

.table-controls button {
    padding: 5px 10px;
    margin-left: 10px;
}

#eaTable {
    min-width: 1000px;
    width: auto;
    max-width: none; /* 幅の制限をなしにする */
    margin: 0 auto;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#eaTable th, #eaTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left; /* デフォルトは左揃え */
}

#eaTable th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center; /* テーブルヘッダーを中央揃えにする */
}

#eaTable tr {
    background-color: #f2f2f2;
}

#eaTable td:not(:nth-child(2)) {
    text-align: center; /* EA名の列以外を中央揃えにする */
}

#eaTable th:nth-child(1), #eaTable td:nth-child(1) { width: 8%; }
#eaTable th:nth-child(2), #eaTable td:nth-child(2) { width: 37%; }
#eaTable th:nth-child(3), #eaTable td:nth-child(3) { width: 20%; }
#eaTable th:nth-child(4), #eaTable td:nth-child(4) { width: 10%; }
#eaTable th:nth-child(5), #eaTable td:nth-child(5) { width: 10%; }
#eaTable th:nth-child(6), #eaTable td:nth-child(6) { width: 15%; }
#eaTable th:nth-child(7), #eaTable td:nth-child(7) { width: 0%; }
#eaTable th:nth-child(8), #eaTable td:nth-child(8) { width: 0%; }
#eaTable th:nth-child(9), #eaTable td:nth-child(9) { width: 0%; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    padding: 10px 15px;
    margin: 0 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.pagination button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.pagination span {
    font-size: 16px;
}

/* メディアクエリ */



/* ページ幅1024px未満の場合 */
@media (max-width: 1023px) {
    .fruit-icon {
        display: none; /* fruit-iconを非示にする */
    }
}

/* タブレットサイズの場合 */
@media (min-width: 768px) and (max-width: 1300px) {
    #ea-category { flex: 1 1 20%; max-width: 30%; }
    #ea-currency-pair { flex: 1 1 60%; max-width: 70%; }
    #banner { flex: 1 1 100%; max-width: 100%; }
    .row-middle { flex-direction: row; justify-content: space-around; }
    #graph { flex: 1 1 60%; max-width: 60%; }
    #ea-ranking-top10 { flex: 1 1 40%; max-width: 40%; }
}

/* PCサイズ以上の場合 */
@media (min-width: 1201px) {
    #ea-category { flex: 1 1 15%; max-width: 20%; }
    #ea-currency-pair { flex: 1 1 40%; max-width: 60%; }
    #banner { flex: 1 1 5%; max-width: 20%; }
    .row-middle { flex-direction: row; justify-content: space-evenly; }
    #graph { flex: 1 1 70%; max-width: 70%; }
    #ea-ranking-top10 { flex: 1 1 30%; max-width: 30%; }
    #eaTable {
        max-width: none; /* 幅の制限をしにする */
    }
    #eaTable th, #eaTable td {
        font-size: 0.8em; /* フォントサイズを少し小さくする */
    }
    #eaTable th {
        text-align: center; /* テーブルヘッダーを央揃えにする */
    }
    #eaTable td:not(:nth-child(2)) {
        text-align: center; /* EA名の列以外を中央えにする */
    }
}

/* テーブルのメデ */
@media screen and (max-width: 1200px) {
    #eaTable {
        max-width: 1200px;
        margin: 0 auto;
        overflow-x: auto;
    }
    #eaTable th, #eaTable td {
        font-size: 0.7em;
    }
    #eaTable th:nth-child(1), #eaTable td:nth-child(1) {
        position: sticky;
        left: 0;
        background-color: #f2f2f2;
        z-index: 1;
    }

    #eaTable th:nth-child(1), #eaTable td:nth-child(1) { width: 8%; }
    #eaTable th:nth-child(2), #eaTable td:nth-child(2) { width: 37%; }
    #eaTable th:nth-child(3), #eaTable td:nth-child(3) { width: 20%; }
    #eaTable th:nth-child(4), #eaTable td:nth-child(4) { width: 10%; }
    #eaTable th:nth-child(5), #eaTable td:nth-child(5) { width: 10%; }
    #eaTable th:nth-child(6), #eaTable td:nth-child(6) { width: 15%; }
    #eaTable th:nth-child(7), #eaTable td:nth-child(7) { width: 0%; }
    #eaTable th:nth-child(8), #eaTable td:nth-child(8) { width: 0%; }
    #eaTable th:nth-child(9), #eaTable td:nth-child(9) { width: 0%; }
}

@media (max-width: 767px) {
    #eaTable th, #eaTable td {
        font-size: 0.6em;
    }
    #eaTable th:nth-child(1), #eaTable td:nth-child(1) {
        position: sticky;
        left: 0;
        background-color: #f2f2f2;
        z-index: 1;
    }

    #eaTable th:nth-child(1), #eaTable td:nth-child(1) { width: 8%; }
    #eaTable th:nth-child(2), #eaTable td:nth-child(2) { width: 37%; }
    #eaTable th:nth-child(3), #eaTable td:nth-child(3) { width: 20%; }
    #eaTable th:nth-child(4), #eaTable td:nth-child(4) { width: 10%; }
    #eaTable th:nth-child(5), #eaTable td:nth-child(5) { width: 10%; }
    #eaTable th:nth-child(6), #eaTable td:nth-child(6) { width: 15%; }
    #eaTable th:nth-child(7), #eaTable td:nth-child(7) { width: 0%; }
    #eaTable th:nth-child(8), #eaTable td:nth-child(8) { width: 0%; }
    #eaTable th:nth-child(9), #eaTable td:nth-child(9) { width: 0%; }
}

/* ダウンロードボタンのスタイル */
.download-btn {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-size: 0.9em;
    text-decoration: none;

}

.download-btn:hover {
    background-color: #45a049;
}

/* お知らせコンテナのスタイル */
.announcement-container {
    position: relative;
    overflow: hidden;
}

.announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5); /* 白色の半透��オーバーレイ */
    z-index: 1;
}

.announcement-content-wrapper,
.cta-buttons {
    position: relative;
    z-index: 2; /* オーバーレイの上にコンテンツを表示 */
}

.announcement-content-wrapper {
    justify-content: space-around;
    display: flex;
    margin: 0 auto;
    max-width: 1400px;
}

.announcement-content {
    max-width: 20em;
    margin: 0;
    text-align: center;
    justify-content: center;
}

.icon-container {
    max-width: 500px;
    display: flex;
    flex-wrap: wrap;
    align-content: center; /* 上下均等揃えに変更 */
    justify-content: center;
    padding: 10px;
    max-height: 100%;
    overflow-y: auto;
}

.icon-container.left {
    align-items: flex-start;
}

.icon-container.right {
    align-items: flex-end;
}

.fruit-icon {
    margin: 20px 20px;
    transition: transform 0.3s; /* ホバー時のトランジションを追加 */
}

.fruit-icon:hover {
    transform: scale(1.3); /* ホバー時に少し拡大する */
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.action-button {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 200px;
    text-align: center;
    display: flex;  /* インラインブロックからフレックスに変更 */
    align-items: center;  /* 垂直方向の中央揃え */
    justify-content: center;  /* 水平方向の中央揃え */
    height: 50px;  /* ボタンの高さを固定 */
    margin: 5px; /* gapの代わりにマージンを使用 */
}

/* ボタンの色を設定 */
.button-blue { background-color: #3498db; color: white; }
.button-orange { background-color: #e67e22; color: white; }
.button-green { background-color: #2ecc71; color: white; }
.button-purple { background-color: #9b59b6; color: white; }
.button-teal { background-color: #20b2aa; color: white; }
.button-yellow { background-color: #E6A700; color: white; }

/* ホバー効果 */
.action-button:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .icon-container {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .icon-container.left, .icon-container.right {
        align-items: center;
    }

    .fruit-icon {
        margin: 0 5px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    .action-button {
        width: 80%; /* スマートフォン向けに幅を調整 */
        max-width: 200px; /* 最大幅を設定 */
    }
}

/* 詳細を見るのスタイル */
.lot-multiplier-info {
    position: relative;
    cursor: help;
    color: #333;
    margin-left: 5px;
    display: inline-block;
    font-size: 12px;
}

.lot-multiplier-info::after {
    content: attr(data-tooltip);
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    line-height: 1.3;
    width: auto;
    max-width: 250px;
    text-align: left;
    z-index: 1000;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
}

.lot-multiplier-info:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 新しいクラスを追加 */
.lot-multiplier-info span {
    font-weight: bold; /* 情報アイコン（?）のみを太に */
}

/* 仮ページコンテナ */
.announcement-container {
    background: linear-gradient(135deg, #f9f2e0 0%, #fce8d9 100%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
}

.announcement-content {
    text-align: center;
}

.headline {
    font-size: 2.5em;
    color: #333;
    margin: 10px;
    animation: pulse 2s infinite;
}

.subheadline {
    padding: 0;
    margin: 0;
    font-size: 0.8em;
    color: #555;
}

.highlight {
    font-size: 1.5em;
    color: #e74c3c;
    font-weight: bold;
}

.highlight2 {
    font-size: 1.5em;
    color: #e74c3c;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -20px 0;
}

.note {
    font-size: 0.9em;
    color: #777;
}

.countdown-container {
    background-color: #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.countdown-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

#countdown {
    display: flex;
    justify-content: center; /* space-aroundからcenterに変更 */
    gap: 10px; /* 要素間の間隔を設定 */
}

.slot-machine {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot {
    background: linear-gradient(to bottom, #d4d4d4, #f9f9f9);
    border: 1px solid #333;
    border-radius: 5px;
    margin: 0; /* マージンを0に設定 */
    overflow: hidden;
    position: relative;
    width: 50px; /* 幅を少し小くする */
    height: 50px; /* 高さを少し小さくする */
}

.slot::before, .slot::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
    z-index: 1;
}

.slot::before {
    top: 0;
}

.slot::after {
    bottom: 0;
    transform: rotate(180deg);
}

.digit {
    font-size: 1.8em; /* フォントサイズを少し小さくする */
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.slot-label {
    font-size: 0.7em; /* フォントサイズを少し小さくする */
    color: #666;
    margin-top: 3px; /* 上部のマージンを小さくする */
}

@keyframes spin {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

.spinning .digit {
    animation: spin 0.5s ease-in-out;
}

@media (max-width: 480px) {
    .countdown-container {
        padding: 10px; /* パディングを小さくする */
    }

    .slot {
        width: 40px; /* 幅をさらに小さくする */
        height: 40px; /* 高さをさらに小さくする */
    }

    .digit {
        font-size: 1.3em; /* フォントサイズをさらに小さくする */
    }

    .slot-label {
        font-size: 0.6em; /* フォントサイズをさらに小さくする */
    }
}

/* ヘッドラインのスタイル */
.headline {
    text-align: center;
    font-size: 2em;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.animated-text {
    display: inline-block;
    color: #4a4a4a;
    font-size: 1.2em;
    animation: slideIn 1.5s ease-out;
}

.coming-soon {
    display: inline-block;
    color: #e74c3c;
    font-size: 0.8em;
    margin-left: 10px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards, pulse 2s ease-in-out infinite 2s;
    transform: translateY(0%);
}

/* スマホサイのメディアクエリ */
@media (max-width: 767px) {
    .headline {
        flex-direction: column;
        white-space: normal;
    }

    .animated-text, .coming-soon {
        display: block;
        width: 100%;
        text-align: center;
    }

    .coming-soon {
        margin-left: 0;
    }
}

/* ヘッドラインアニメーション */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: translateY(0%) scale(1); }
    50% { transform: translateY(0%) scale(1.05); }
}

@media (min-width: 1024px) {
    .icon-container {
        flex-direction: row;
    }
    .fruit-icon {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1300px) {
    .icon-container {
        flex-direction: row;
    }
    .fruit-icon {
        width: 90px;
        height: 90px;
    }
}

.emphasis {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    font-size: 1.3em;
    background: linear-gradient(45deg, #ff4500, #ff8c00, #ff4500);
    background-size: 200% 200%;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite, shake 5s cubic-bezier(.36,.07,.19,.97) infinite;
    margin: 0 10px 0 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes shine {
    0% { transform: rotate(45deg) translate(-100%, -100%); }
    100% { transform: rotate(45deg) translate(100%, 100%); }
}

/* サイトコンテンツを隠すためのスタイル */
.hidden-content {
    display: none;
}

/* スマホサイズの場合 */
@media (max-width: 767px) {
    #ea-category { flex: 1 1 50%; max-width: 50%; }
    #ea-ranking { flex: 1 1 50%; max-width: 50%; }
    #ea-currency-pair { flex: 1 1 100%; max-width: 100%; }
    #banner { flex: 1 1 100%; max-width: 100%; }
    .row-middle { flex-direction: column; }
    #graph { flex: 1 1 100%; max-width: 100%; }
    #ea-ranking-top10 { flex: 1 1 100%; max-width: 100%; }

    #ea-category {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .currency-box span {
        font-size: 10px;
    }

    #ea-selection {
        padding: 10px;
    }
    
    .pagination {
        flex-direction: column;
    }

    #countdown {
        flex-wrap: wrap; /* カウントダウンの素を折り返す */
    }

    .slot-machine {
        margin: 5px; /* スロットマシンの間隔を調整 */
    }

    .slot {
        width: 40px; /* スロットの幅を小さく */
        height: 40px; /* スロットの高さをさく */
    }

    .digit {
        font-size: 1.5em; /* 数字のフォントサイズを小さく */
    }

    .slot-label {
        font-size: 0.6em; /* ラベルのフォントサイズを小さく */
    }

    .announcement-container {
        padding: 15px 15px 30px 15px; /* パディングを小さくする */
    }

    .announcement-content {
        max-width: 100%;
        transform: scale(0.9); /* コンテナ全体を90%のサイズに縮小 */
        transform-origin: top center; /* 上部中央を基準縮小 */
    }

    .headline {
        font-size: 1.6em; /* ヘッドラインのフォントサイズをさらに小さくする */
    }

    .subheadline {
        font-size: 0.8em; /* サブヘッドラインのフォントサイズをさら小さくする */
    }

    .highlight, .highlight2 {
        font-size: 1.0em; /* ハ��ライトのフォントサイズをさらに小さくする */
    }

    .highlight2 {
        font-size: 1.2em;
        padding: 5px 0;
    }

    .countdown-container {
        padding: 8px 8px 0 8px; /* カウントダウンコンテナのパディングをさらに小さくする */
        margin-bottom: 15px;
        max-width: 250px;
    }

    #countdown {
        flex-wrap: wrap; /* カウントダウンの要素を折り返す */
        justify-content: center;
        gap: 0;
    }

    .countdown-text {
        font-size: 0.8em;
        margin: 0;
    }

    .slot {
        width: 35px; /* スロットの幅をさらに小さくする */
        height: 35px; /* スロットの高さをさらに小さくする */
    }

    .digit {
        font-size: 1.3em; /* 数字のフォントサイズをさらに小さくする */
    }

    .slot-label {
        font-size: 0.5em; /* ラベルのフォントサイズをさらに小さくする */
    }

    .cta-buttons {
        flex-direction: column; /* ボタンを縦に並べる */
    }

    .action-button {
        width: 100%; /* ボタンの幅を100%に */
        margin-bottom: 8px; /* ボタン間の間隔を調整 */
        padding: 8px 15px; /* ボタンのパディングを調整 */
        font-size: 0.8em; /* ボタンのフォントサイズを小さくする */
    }

    .emphasis {
        font-size: 1em; /* 強調テキストのフォントサイズをさらに小さくする */
        padding: 2px 6px; /* パディングをさらに小さくする */
    }

    .note {
        font-size: 0.8em; /* 注釈のフォントサイズを小さくする */
        margin-bottom: 0;
    }

    .announcement-content-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .icon-container.left,
    .icon-container.right {
        display: none;
    }

    .announcement-content {
        width: 95%;
        margin: 0 auto;
    }

    .cta-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .cta-buttons .action-button {
        width: calc(40% - 10px); /* 2列に配置するための幅設定 */
        max-width: none; /* max-widthを解除 */
        height: auto; /* 高さを自動に設定 */
        min-height: 40px; /* 最小の高さを設定 */
        font-size: 0.7em; /* フォントサイズをさらに小さく */
        padding: 0; /* 左右のパディングを小さくする */
        margin: 0;
        display: flex; /* フレックスボックスを使用 */
        align-items: center; /* 垂直中央配置 */
        justify-content: center; /* 水平中央配置 */
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.cookie-consent {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 80%;
    width: 300px;
    text-align: center;
}

.cookie-consent p {
    margin-bottom: 15px;
}

.cookie-consent a {
    color: #007bff;
    text-decoration: none;
}

.cookie-consent a:hover {
    text-decoration: underline;
}

#accept-cookies {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#accept-cookies:hover {
    background-color: #0056b3;
}

.cookie-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cookie-policy-link {
    font-size: 0.8em;
    color: #007bff;
    text-decoration: underline;
}

.cookie-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 80%;
    width: 300px;
    text-align: center;
}

.cookie-container p {
    margin-bottom: 15px;
}

.cookie-container a {
    color: #007bff;
    text-decoration: none;
}

.cookie-container a:hover {
    text-decoration: underline;
}

#accept-cookies {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#accept-cookies:hover {
    background-color: #0056b3;
}

/* companyで使用するコンテナ */
.company-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    font-size: 0.9em; /* 全体的なフォントサイズを小さく */
}

.company-container h2 {
    text-align: center;
    color: #333;
    font-size: 1.4em; /* h2のフォントサイズを小さく */
    margin-bottom: 1rem;
}

.company-container table {
    width: 100%;
    border-collapse: collapse;
}

.company-container table, 
.company-container th, 
.company-container td {
    border: 1px solid #ddd;
}

.company-container th {
    padding: 6px; /* パディングを少し縮小 */
    text-align: center; /* thのみテキスト中央 */
    width: 150px; /* thの幅を広げる */
}

.company-container td {
    padding: 20px; /* パディングを少し縮小 */
    text-align: left;
}

.company-container tr:nth-child(even) {
    background-color: #f2f2f2;
}

.company-container td ul {
    margin-left: 0; /* リストの左マージンをリセット */
    padding-left: 20px; /* リストの左パディングを調整 */
}



/* スマートフォン向けの調整 */
@media (max-width: 767px) {
    .company-container {
        padding: 1rem;
        font-size: calc(0.8em + 0.5vw); /* ビューポートの幅に応じてフォントサイズを調整 */
        width: 90%; /* コンテナの幅を画面の90%に設定 */
        margin: 1rem auto; /* 上下のマージンを縮小 */
    }

    .company-container h2 {
        font-size: calc(1.2em + 1vw); /* ビューポートの幅に応じてh2のフォントサイズを調整 */
    }

    .company-container th, 
    .company-container td {
        padding: 4px; /* さらにパディングを縮小 */
        font-size: calc(0.7em + 0.3vw); /* テーブル内のフォントサイズを調整 */
    }

    .company-container table {
        font-size: 0.9em; /* テーブル全体のフォントサイズを少し小さく */
    }
}

/* さらに小さい画面向けの調整 */
@media (max-width: 480px) {
    .company-container {
        font-size: calc(0.7em + 0.5vw); /* さらに小さい画面でフォントサイズを整 */
        width: 95%; /* コンテナの幅を画面の95%に設定 */
    }

    .company-container h2 {
        font-size: calc(1em + 1vw); /* h2のフォントサイズをさらに調整 */
    }

    .company-container th, 
    .company-container td {
        padding: 3px; /* パディングをさらに縮小 */
        font-size: calc(0.6em + 0.3vw); /* テーブル内のフォントサイズをさら調整 */
    }
}

/* cookie, privacyなどで使用するコンテナ */
.info-page-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-page-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-page-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    text-align: center;
}

.info-page-subtitle {
    font-size: 1.6rem;
    color: #444;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3498db;
    padding-left: 0.8rem;
}

.info-page-section {
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.info-page-list {
    padding-left: 1.5rem;
}

.info-page-list li {
    margin-bottom: 0.8rem;
    position: relative;
}

@media (max-width: 768px) {
    .info-page-container {
        padding: 1rem;
    }

    .info-page-content {
        padding: 1.5rem;
    }

    .info-page-title {
        font-size: 1.8rem;
    }

    .info-page-subtitle {
        font-size: 1.4rem;
    }
}

.ad-banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    position: relative;
    z-index: 3; /* オーバーレイよりも前面に表示 */
}

.ad-banner-column {
    width: 100%;
    max-width: 320px;
    margin: 5px 0;
    position: relative;
    z-index: 3; /* オーバーレイよりも前面に表示 */
}

.ad-banner-link {
    display: block;
    width: 100%;
}

.ad-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .ad-banner-container {
        flex-direction: row;
        justify-content: center;
    }

    .ad-banner-column {
        flex: 0 1 320px;
        margin: 0 5px;
    }
}

.input-section, .result-section {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ccc; /* ボーダーを強める */
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group select,
.input-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.multiplier-input-wrapper {
    display: flex;
    align-items: center;
}

#leverage-multiplier,
#lot-multiplier,
#drawdown-multiplier {
    width: 80px;
    margin-right: 5px;
}

.multiplier-unit {
    font-size: 14px;
}

.currency-pair-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.currency-pair-controls button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.currency-pair-controls button:hover {
    background-color: #e0e0e0;
}

#calculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#calculate-btn:hover {
    background-color: #45a049;
}

.result-group {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-result {
    background-color: #e6ffe6;
    border: 2px solid #4CAF50;
}

.sub-result {
    background-color: white;
    border: 1px solid #e0e0e0;
}

.result-group h3 {
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-result h3 {
    color: #2e7d32;
    font-size: 1.8em;
    margin-left: 5%;
}

.main-result #operation-guideline {
    font-size: 1.2em;
    font-weight: bold;
    color: #4CAF50;
    margin-right: 5%;
}

.sub-result h3 {
    color: #333;
    font-size: 1.2em;
    margin-left: 5%;
}

.sub-result span {
    font-size: 1.1em;
    color: #555;
}

#required-margin, #max-drawdown {
    background-color: white;
    padding: 10px;
    margin-right: 5%;
}

/* スマートフォン向けのレスポンシブ対応 */
@media (max-width: 767px) {
    .result-group {
        margin-bottom: 10px;
        padding: 15px;
    }

    .result-group h3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-result h3 {
        font-size: 1.6em;
        margin-left: 0;
    }

    .main-result #operation-guideline {
        font-size: 1.2em;
        margin-right: 0;
        margin-top: 5px;
    }

    .sub-result h3 {
        font-size: 1.2em;
        margin-left: 0;
    }

    .sub-result span {
        font-size: 1.0em;
    }

    #required-margin, #max-drawdown {
        padding: 5px;
        margin-right: 0;
        margin-top: 5px;
    }

    .result-group h3::after {
        content: '\A';
        white-space: pre;
    }

    .result-group h3 > span {
        display: block;
        margin-top: 5px;
    }
}

@media (max-width: 767px) {
    .content {
        width: 95%;
        margin: 0 auto;
    }
    
    .icon-container {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .announcement-content {
        width: 95%;
        margin: 0 auto;
    }
}

.content {
    position: relative;
    overflow-x: hidden;
}

