@charset "UTF-8";

/* =========================================================
   Variables
   ========================================================= */
:root {
    /* さらに淡く調整したゆめかわカラーパレット */
    --color-base-purple: #b6a7d6;
    /* 淡い藤色 (変更なし) */
    --color-soft-pink: #ffe8f0;
    /* さらに淡いピンク */
    --color-soft-blue: #e8f4fc;
    /* さらに淡い水色 */
    --color-soft-cream: #fdf8e6;
    /* さらに淡いクリーム色 */

    --color-text-main: #685b82;
    /* テキスト用グレーパープル */
    --color-white: #ffffff;

    --font-ja: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
    --font-en: 'Quicksand', sans-serif;

    /* 余白定義 (クリーンなレイアウト用) */
    --spacing-section: 120px;
}

/* =========================================================
   Reset & Base
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ja);
    color: var(--color-text-main);
    line-height: 2;
    letter-spacing: 0.1em;
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* 共通コンテナ（余白のあるレイアウト） */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

/* =========================================================
   1. 背景: マルチカラーグラデーション（CSSのみ）
   ========================================================= */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    /* 複数のradial-gradientを重ねてやわらかく溶け合う色を表現 */
    background:
        radial-gradient(circle at 20% 30%, var(--color-soft-blue) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--color-soft-pink) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, var(--color-base-purple) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, var(--color-soft-cream) 0%, transparent 40%);
    background-color: #faf5fc;
    /* ベースの極淡い紫白 */
    opacity: 0.8;
}

/* =========================================================
   3. 星・キラキラの表現（CSS疑似要素とアニメーション）
   ========================================================= */
.css-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -5;
    overflow: hidden;
}

/* CSSのみで描く十字のキラキラ (疑似要素を使用) */
.star-type-1,
.star-type-2,
.star-type-3 {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

.star-type-1::before,
.star-type-1::after,
.star-type-2::before,
.star-type-2::after {
    content: '';
    position: absolute;
    background: var(--color-white);
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.star-type-1::before {
    width: 2px;
    height: 100%;
}

.star-type-1::after {
    width: 100%;
    height: 2px;
}

/* 少し丸みを帯びた星 */
.star-type-2::before {
    width: 4px;
    height: 80%;
    background: var(--color-soft-cream);
}

.star-type-2::after {
    width: 80%;
    height: 4px;
    background: var(--color-soft-cream);
}

/* 四角い光芒（トランスフォームを利用） */
.star-type-3 {
    width: 12px;
    height: 12px;
    background: var(--color-soft-pink);
    transform: rotate(45deg);
    box-shadow: 0 0 15px var(--color-soft-pink);
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1.2) rotate(45deg);
    }
}

/* =========================================================
   Header
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(182, 167, 214, 0.1);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.15em;
}

.global-nav ul {
    display: flex;
    gap: 3rem;
}

.global-nav a {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.global-nav a:hover {
    color: var(--color-base-purple);
}

/* =========================================================
   4. ヒーローエリア
   ========================================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

/* すりガラス効果付きベースクラス */
.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(182, 167, 214, 0.2);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

/* 4. 雲風のCSSフレーム (border-radiusの複雑な指定により雲の形を作る) */
.cloud-frame {
    padding: 4rem 3rem;
    text-align: center;
    /* 8つの数値でいびつな丸み＝雲っぽいモコモコ感を出す */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: floatingCloudText 8s ease-in-out infinite alternate;
}

@keyframes floatingCloudText {
    0% {
        transform: translateY(0);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        transform: translateY(-15px);
        border-radius: 50% 50% 40% 60% / 50% 40% 50% 60%;
    }
}

/* 指定されたキャッチコピー */
.catchphrase {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.2;
    color: var(--color-text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* =========================================================
   レイアウト・セクション (クリーンな構造)
   ========================================================= */
.section {
    position: relative;
    padding-top: var(--spacing-section);
    /* padding-bottomは雲ディバイダーで調整するため少なめ */
    padding-bottom: 40px;
    z-index: 10;
}

.section-inner {
    max-width: 800px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.en-title {
    display: block;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-base-purple);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.ja-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text-main);
}

.base-text {
    font-size: 1.1rem;
    line-height: 2;
}

/* =========================================================
   2. 「もくもくした雲」形状（セクション区切り）CSSのみ
   ========================================================= */
/* 背景を単色ベタ塗りにして、上下のディバイダーで雲の形を作る */
.bg-white {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 4rem 0;
}

.cloud-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: -1;
    overflow: hidden;
    /* はみ出しをカットして下辺を平らに */
}

.cloud-divider-top {
    top: calc(var(--spacing-section) - 90px);
}

.cloud-divider-bottom {
    bottom: -90px;
}

/* 複数の丸いdivを重ねて雲を作る */
.cloud-bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    /* 柔らかなbox-shadowでフワフワした質感 */
    box-shadow: 0 -10px 30px rgba(182, 167, 214, 0.1);
}

/* =========================================================
   Cards Layout
   ========================================================= */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.horoscope-grid {
    grid-template-columns: 1.6fr 1fr;
}

.card {
    padding: 3rem;
    /* .cloud-frame の変形を弱めたもの */
    border-radius: 30% 70% 50% 50% / 40% 40% 60% 60%;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(182, 167, 214, 0.3);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-base-purple);
    text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    text-align: center;
    padding: 4rem 0;
    margin-top: var(--spacing-section);
}

.copyright {
    font-family: var(--font-en);
    font-weight: 500;
    color: var(--color-base-purple);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }

    .header-inner {
        flex-direction: column;
        gap: 0.8rem;
    }

    .global-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .global-nav a {
        font-size: 0.9rem;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .cloud-frame {
        padding: 2.5rem 1rem;
        border-radius: 30% 70% 60% 40% / 40% 50% 60% 50%;
    }

    .catchphrase {
        font-size: 1.15rem;
        line-height: 2;
    }

    :root {
        --spacing-section: 60px;
    }

    .bg-white {
        padding: 3rem 0;
    }

    .cloud-divider-top {
        top: calc(var(--spacing-section) - 50px);
        height: 60px;
    }

    .cloud-divider-bottom {
        bottom: -50px;
        height: 60px;
    }

    .cloud-bubble {
        transform: scale(0.6);
    }

    .ja-title {
        font-size: 1.6rem;
    }

    .base-text {
        font-size: 0.95rem;
    }

    .grid-layout,
    .horoscope-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }
}

/* =========================================================
   Horoscope Detailed Layout Styles
   ========================================================= */

.export-wrapper {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(182, 167, 214, 0.2);
}

.chart-section {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.paper-wrapper {
    display: inline-block;
    cursor: zoom-in;
    position: relative;
    transition: transform 0.3s ease;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
}

.paper-wrapper:hover {
    transform: scale(1.02);
}

.enlarge-hint {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-base-purple);
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(182, 167, 214, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.paper-wrapper:hover .enlarge-hint {
    opacity: 1;
}

.download-btn {
    background: #fff;
    color: var(--color-base-purple);
    border: 2px solid var(--color-base-purple);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--color-base-purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(182, 167, 214, 0.3);
}

.tables-section {
    margin-top: 2rem;
    border-top: 2px dashed rgba(182, 167, 214, 0.3);
    padding-top: 2rem;
}

.table-container h4 {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    text-align: left;
    border-left: 4px solid var(--color-soft-blue);
    padding-left: 0.8rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(182, 167, 214, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(182, 167, 214, 0.2);
}

.data-table th {
    color: var(--color-text-main);
    font-weight: bold;
    border-bottom: 2px solid rgba(182, 167, 214, 0.4);
}

.points-table-container .data-table th {
    background: var(--color-soft-pink);
}

.elements-table-container .data-table th {
    background: var(--color-soft-cream);
}

.aspect-list-container .data-table th {
    background: var(--color-soft-blue);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: rgba(216, 234, 250, 0.3);
    /* soft-blue light */
}

.bottom-tables-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.aspect-grid-scroll {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.aspect-grid-table {
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.85rem;
}

.aspect-grid-table td,
.aspect-grid-table th {
    width: 35px;
    height: 35px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid rgba(182, 167, 214, 0.3);
    position: relative;
}

.aspect-grid-table .empty-cell {
    border: none;
    background: transparent;
}

.aspect-grid-table th {
    background: var(--color-soft-blue);
    font-weight: bold;
    color: var(--color-text-main);
}

.aspect-grid-table td .aspect-symbol {
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    line-height: 1;
}

.aspect-grid-table td .orb {
    font-size: 0.7rem;
    color: #888;
    display: block;
    line-height: 1;
    margin-top: 2px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    margin: 2% auto;
    padding: 20px;
    width: 95%;
    max-width: 900px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(182, 167, 214, 0.4);
    text-align: center;
    position: relative;
}

.modal-content svg {
    width: 100%;
    height: auto;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--color-base-purple);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: #fff;
    width: 60px;
    height: 60px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(182, 167, 214, 0.3);
}

.modal-close:hover {
    color: var(--color-text-main);
    transform: scale(1.1);
}

/* Aspect Colors */
.aspect-conjunction {
    color: #f39c12;
}

/* 0deg - Orange */
.aspect-sextile {
    color: #3498db;
}

/* 60deg - Blue */
.aspect-square {
    color: #e74c3c;
}

/* 90deg - Red */
.aspect-trine {
    color: #2ecc71;
}

/* 120deg - Green */
.aspect-opposition {
    color: #9b59b6;
}

/* 180deg - Purple */

@media (max-width: 768px) {
    .bottom-tables-grid {
        grid-template-columns: 1fr;
    }

    .export-wrapper {
        padding: 1rem;
    }
}
/* ===== ＵＮＧ式アスペクト解説辞典（出生図ページ・才能鑑定ページ共通） ===== */
.dict-row td { padding: 0 0.5rem 0.8rem !important; border-top: none !important; text-align: left; }
.dict-details { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(182, 167, 214, 0.45); border-radius: 14px; }
.dict-details > summary { cursor: pointer; list-style: none; padding: 0.55rem 0.9rem; color: #685b82; font-weight: 700; font-size: 0.92rem; }
.dict-details > summary::-webkit-details-marker { display: none; }
.dict-details > summary::after { content: "＋"; float: right; color: #b6a7d6; }
.dict-details[open] > summary::after { content: "－"; }
.dict-entry { padding: 0.2rem 1rem 1rem; text-align: left; color: #685b82; line-height: 1.9; font-size: 0.95rem; }
.dict-title { font-weight: 900; font-size: 1.1rem; margin: 0.4rem 0 0; }
.dict-sub { font-size: 0.85rem; color: #9a8fb5; margin: 0 0 0.6rem; }
.dict-note { font-size: 0.82rem; color: #9a8fb5; border: 1px dashed rgba(182, 167, 214, 0.7); border-radius: 8px; padding: 0.3rem 0.7rem; }
.dict-sec { margin-top: 0.8rem; }
.dict-sec p { margin: 0.2rem 0; }
.dict-h { font-weight: 700; color: #8a76b8; }
.dict-kw { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dict-kw span { background: #ffe8f0; border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.85rem; }
.dict-src { margin-top: 0.9rem !important; font-size: 0.78rem; color: #b0a6c8; text-align: right; }

/* 生年月日：年・月・日の3つのリスト（スマホで選びやすく） */
.date-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.5rem; }
.date-row .form-input { padding-left: 0.6rem; padding-right: 0.6rem; }
