        .modern_fortune_container {
            max-width: 600px;
            width: 100%;
            margin: 20px auto;
        }

        .modern_fortune_nav {
            background-color: #ffffff;
            border: 1px solid #d8eaff;
            border-radius: 20px;
            padding: 25px 15px;
            box-shadow: 0 8px 25px rgba(180, 210, 255, 0.2);
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }

        .modern_fortune_nav::before {
            content: '';
            position: absolute;
            top: -50px;
            left: -50px;
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, rgba(99, 164, 255, .08) 0%, rgba(99, 164, 255, 0) 70%);
            pointer-events: none;
        }
         .modern_fortune_nav::after {
            content: '';
            position: absolute;
            bottom: -60px;
            right: -60px;
            width: 180px;
            height: 180px;
            background: radial-gradient(circle, rgba(253, 121, 168, .07) 0%, rgba(253, 121, 168, 0) 70%);
            pointer-events: none;
        }

        .modern_fortune_title {
            text-align: center;
            font-size: 18px;
            font-weight: bold;
            color: #3c679e;
            margin-bottom: 25px;
            letter-spacing: 1px;
        }

        .modern_fortune_buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        .modern_fortune_button {
            flex: 1 1 calc(25% - 10px); 
            min-width: 90px;
            max-width: 130px;
            background-color: #f5fbff;
            border: 1px solid #e0f0ff;
            border-radius: 16px;
            padding: 9px 8px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            text-decoration: none;
            position: relative;
            overflow: hidden;
            margin-bottom: 8px;
            box-sizing: border-box;
        }

        .modern_fortune_button::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            border-radius: 2px;
            transition: all 0.3s ease;
        }
        .modern_fortune_button[href="#love"]::after { background: #ff7f9e; }
        .modern_fortune_button[href="#marriage"]::after { background: #a29bfe; }
        .modern_fortune_button[href="#reunion"]::after { background: #fab1a0; }
        .modern_fortune_button[href="#crush"]::after { background: #74b9ff; }
        .modern_fortune_button[href="#affair"]::after { background: #e17055; }
        .modern_fortune_button[href="#complexlove"]::after { background: #fd79a8; }
        .modern_fortune_button[href="#stolen"]::after { background: #d63031; }
        .modern_fortune_button[href="#contact"]::after { background: #20c997; } /* 連絡占い用アクセントカラー */
        .modern_fortune_button[href="#life"]::after { background: #55efc4; }
        .modern_fortune_button[href="#money"]::after { background: #ffeaa7; }
        .modern_fortune_button[href="#work"]::after { background: #0984e3; }


        .modern_fortune_button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(180, 210, 255, 0.3);
        }
         .modern_fortune_button:hover::after {
            width: 60%;
        }

        .modern_fortune_button:active {
            transform: translateY(0);
            box-shadow: 0 3px 6px rgba(180, 210, 255, 0.2);
        }

        .modern_fortune_icon {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
            background-color: rgba(220, 235, 255, 0.5);
            transition: background-color 0.3s ease;
        }

        .modern_fortune_button:hover .modern_fortune_icon {
            background-color: rgba(99, 164, 255, 0.2);
        }
        
        .modern_fortune_icon svg {
            width: 24px;
            height: 24px;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
        }
        .modern_fortune_love svg path { fill: #ff3366; }
        .modern_fortune_marriage svg circle[stroke="white"] { stroke: #d159c0; }
        .modern_fortune_marriage svg circle[fill="white"] { fill: #d159c0; }
        .modern_fortune_reunion svg path { fill: #e65100; }
        .modern_fortune_crush svg path { fill: #5c9ce6; }
        .modern_fortune_affair svg path { fill: #7737ad; }
        .modern_fortune_complexlove svg path { fill: #9e0059; }
        .modern_fortune_stolen svg path { fill: #d11141; }
        .modern_fortune_contact svg path { fill: #20c997; } /* 連絡占い用アイコンカラー */
        .modern_fortune_life svg path { fill: #3bb54a; }
        .modern_fortune_money svg path { fill: #ffc107; }
        .modern_fortune_work svg path { fill: #1565c0; }


        .modern_fortune_button span {
            display: block;
            font-weight: 600;
            font-size: 13px;
            color: #5a799e;
            margin-top: 4px;
            line-height: 1.3; /* サブテキスト用に調整 */
        }
        .modern_fortune_button .sub_text {
            font-size: 0.8em;
            color: #778ca3;
            display: block;
            line-height: 1.2;
        }


        @media (max-width: 500px) {
            .modern_fortune_nav {
                padding: 20px 10px;
                border-radius: 15px;
            }
            .modern_fortune_title {
                font-size: 16px;
                margin-bottom: 20px;
            }
            .modern_fortune_buttons {
                gap: 8px;
            }
            .modern_fortune_button {
                flex-grow: 0;
                flex-shrink: 0;
                flex-basis: calc(33.333% - (8px * 2 / 3));
                min-width: unset;
                max-width: unset;
                padding: 8px 5px;
            }
            .modern_fortune_icon {
                width: 40px;
                height: 40px;
                margin-bottom: 5px; /* サブテキストがあるので少し調整 */
            }
            .modern_fortune_icon svg {
                width: 20px;
                height: 20px;
            }
            .modern_fortune_button span {
                font-size: 11px;
                word-break: keep-all;
                overflow-wrap: break-word;
            }
            .modern_fortune_button .sub_text {
                font-size: 0.75em;
            }
        }
        @media (max-width: 380px) {
            .modern_fortune_buttons {
                gap: 6px;
            }
            .modern_fortune_button {
                flex-basis: calc(33.333% - (6px * 2 / 3));
                padding: 6px 4px;
            }
             .modern_fortune_icon {
                width: 36px;
                height: 36px;
                margin-bottom: 3px;
            }
            .modern_fortune_icon svg {
                width: 18px;
                height: 18px;
            }
            .modern_fortune_button span {
                font-size: 10px;
                 line-height: 1.2;
            }
             .modern_fortune_button .sub_text {
                font-size: 0.7em;
            }
        }


/*
 * タロットカード用スタイル
 * コンテナクラスを使って他のリストに影響を与えないようにします
 */

/* カスタムクラスを持つコンテナ内のリストだけに適用 */
.tarot-cards-container ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 30px 0;
  list-style-type: none;
}

.tarot-cards-container ul li {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid #6c5ce7;
  margin-bottom: 0;
  overflow: hidden;
}

.tarot-cards-container ul li a {
  display: flex;
  padding: 20px 20px 20px 45px;
  text-decoration: none;
  color: #333;
font-weight: 500;
line-height: 1.4;
position: relative;
min-height: 60px;
align-items: center;
}

.tarot-cards-container ul li a:before {
content: "Q.";
position: absolute;
left: 15px;
color: #fd79a8;
font-weight: bold;
font-size: 1.2rem;
}

.tarot-cards-container ul li:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* カテゴリー別のカラー */
.tarot-cards-container.love ul li { border-left-color: #fd79a8; }
.tarot-cards-container.future ul li { border-left-color: #00cec9; }
.tarot-cards-container.work ul li { border-left-color: #0984e3; }
.tarot-cards-container.money ul li { border-left-color: #00b894; }
.tarot-cards-container.reunion ul li { border-left-color: #e17055; }

/* モバイル対応 */
@media (max-width: 768px) {
.tarot-cards-container ul {
grid-template-columns: 1fr;
}
}