/* ==========================================================
   めぐりの星占い
   fortune-horoscope.css

   Fortune Result v3
   ホロスコープ共通CSS

   対象
   ・無料総合鑑定
   ・個別鑑定
   ・ホロスコープを表示する全鑑定

   責務
   ・ホロスコープSVG
   ・天体表示
   ・ハウス表示
   ・アスペクト表示
   ・天体表
   ・ハウスカスプ表
   ・アスペクト表
========================================================== */


/* ==========================================================
   Horoscope
========================================================== */

.fortune-horoscope {

    position: relative;

    width: 100%;

    text-align: center;

}


.fortune-horoscope svg {

    display: block;

    width: 100%;

    max-width: 470px;

    height: auto;

    margin: 0 auto;

}


.horoscope-svg {

    overflow: visible;

}


/* ==========================================================
   Data Table
========================================================== */

.fortune-horoscope-table {

    width: 100%;

    max-width: 700px;

    margin:
        26px auto 0;

}
.astro-tables{

    display:flex;

    flex-direction:column;

    gap:22px;

}
.astro-table-box{

    width:100%;

    margin:0 auto;

}
.astro-table-title{

    margin-bottom:14px;

    color:#fff;

    font-size:18px;

    font-weight:700;

    text-align:center;

}
.astro-table-box table{

    width:100%;

    border-collapse:collapse;

    overflow:hidden;

    border-radius:12px;

}
.astro-table-box th{

    background:

        rgba(255,255,255,.12);

    color:#fff;

    font-size:14px;

    font-weight:700;

}
.astro-table-box td{

    background:

        rgba(0,0,0,.14);

    color:#fff;

    font-size:14px;

    line-height:1.8;

}


.fortune-horoscope-table table{

    width:100%;

    border-collapse:collapse;

}


.fortune-horoscope-table th,

.fortune-horoscope-table td{

    padding:

        11px

        10px;

    border:

        1px solid

        rgba(255,255,255,.10);

    color:var(--fortune-text);

    font-size:14px;

    line-height:1.6;

    text-align:center;

}


.fortune-horoscope-table th{

    background:

        rgba(255,255,255,.07);

    color:

        var(--fortune-text-soft);

}
/* ==========================================================
   Aspect Table
========================================================== */

.aspect-table-box{

    width:100%;

    margin:34px auto 0;

}

.aspect-stair-table{

    width:100%;

    border-collapse:separate;

    border-spacing:3px;

}

.aspect-stair-table td,

.aspect-stair-table th{

    width:34px;

    height:34px;

    padding:0;

    text-align:center;

    vertical-align:middle;

    border-radius:6px;

}


/* 惑星 */

.fortune-horoscope-table .aspect-side-planet,
.fortune-horoscope-table .aspect-diagonal{

    color:#fff;

    font-size:20px;

    font-weight:700;

}


/* 空セル */

.aspect-hidden{

    background:transparent;

}
/* ==========================================================
   Aspect Table Stripe
========================================================== */

.aspect-stair-table tr:nth-child(odd) td{

    background:
        rgba(255,255,255,.08);

}

.aspect-stair-table tr:nth-child(even) td{

    background:
        rgba(0,0,0,.14);

}

/* アスペクトセル */

.aspect-cell{

    background:

        rgba(255,255,255,.05);

}


/* 記号 */

.aspect-symbol{

    display:block;

    font-size:16px;

    font-weight:700;

    line-height:1;

}


/* オーブ */

.aspect-orb{

    display:block;

    margin-top:2px;

    font-size:10px;

    line-height:1;

    color:

        rgba(255,255,255,.65);

}


/* タイトル */

.aspect-table-title{

    margin-bottom:16px;

    font-size:18px;

    font-weight:700;

    text-align:center;

    color:#fff;

}


/* 説明 */

.aspect-note{

    margin-top:14px;

    text-align:center;

    font-size:13px;

    color:

        rgba(255,255,255,.65);

}
/* ==========================================================
   Horoscope Aspect Lines
========================================================== */

/* 共通 */

.aspect-line{

    fill:none;

    stroke-width:2;

    opacity:.85;

}


/* ==========================================================
   Major Aspects
========================================================== */

/* 合 0°：白 */
.aspect-line.conjunction{
    stroke:#ffffff;
}

/* セクスタイル 60°：水色 */
.aspect-line.sextile{
    stroke:#45d6ff;
}

/* トライン 120°：緑 */
.aspect-line.trine{
    stroke:#55df82;
}

/* スクエア 90°：オレンジ */
.aspect-line.square{
    stroke:#ff9f43;
}

/* オポジション 180°：赤 */
.aspect-line.opposition{
    stroke:#ff4d5e;
}


/* インコンジャンクト 150° */

.aspect-line.inconjunct{

    stroke:#c58cff;

}


/* ==========================================================
   Minor Aspects
========================================================== */

.aspect-line.semi_sextile{

    stroke:#65c7ff;

    stroke-width:1;

    opacity:.35;

}

.aspect-line.semi_square{

    stroke:#ff8a8a;

    stroke-width:1;

    opacity:.35;

}

.aspect-line.sesquiquadrate{

    stroke:#ff8a8a;

    stroke-width:1;

    opacity:.35;

}

.aspect-line.quintile{

    stroke:#c58cff;

    stroke-width:1;

    opacity:.35;

}

.aspect-line.biquintile{

    stroke:#c58cff;

    stroke-width:1;

    opacity:.35;

}
/* ==========================================================
   Horoscope SVG
========================================================== */

/* 星座アイコン */

.zodiac-icon{

    width:35px;

    height:35px;

    opacity:.95;

}


/* 惑星アイコン */

.planet-icon{

    width:40px;

    height:40px;

    filter:
        grayscale(1)
        brightness(0)
        invert(1)
        drop-shadow(
            0 0 4px rgba(255,255,255,.35)
        );

}
/* 天体表：惑星記号 */

.planet-data-table .planet-cell{

    font-size:20px;

    font-weight:700;

    line-height:1.2;

}


/* 惑星文字 */

.planet-symbol{
    fill:#f4d67a;
    font-size:50px;
    font-weight:700;
}


/* ハウス番号 */

.house-number{

    fill:

        rgba(255,255,255,.85);

    font-size:23px;

    font-weight:700;

}
/* ==========================================================
   House Cusp Table Stripe
========================================================== */

.house-cusp-table tbody tr:nth-child(odd) td{

    background:
        rgba(255,255,255,.08);

}

.house-cusp-table tbody tr:nth-child(even) td{

    background:
        rgba(0,0,0,.14);

}
/* ==========================================================
   Planet Table Stripe
========================================================== */

.planet-data-table tbody tr:nth-child(odd) td{

    background:
        rgba(255,255,255,.08);

}

.planet-data-table tbody tr:nth-child(even) td{

    background:
        rgba(0,0,0,.14);

}


/* ASC・MC */

.angle-label{
    fill:#ffffff;
    font-size:30px;
    font-weight:700;
    letter-spacing:.05em;
    opacity:.9;
}
/* ==========================================================
   Horoscope Wheel
========================================================== */

/* 外周 */

.zodiac-bg{

    fill:rgba(255,255,255,.05);

    stroke:rgba(255,255,255,.30);

    stroke-width:1.5;

}


/* 星座帯 */

.zodiac-band{

    opacity:.95;

}
.zodiac-band-a{
    fill:#a4e7f9;
}

.zodiac-band-b{
    fill:#81aef2;
}


/* 内円 */

.zodiac-inner{

    fill:none;

    stroke:rgba(255,255,255,.25);

    stroke-width:1;

}


/* チャート円 */

.chart-bg{

    fill:rgba(40,65,105,.55);

    stroke:rgba(255,255,255,.20);

    stroke-width:1;

}


/* 中心円 */

.center-circle{

    fill:rgba(255,255,255,.10);

    stroke:rgba(255,255,255,.30);

    stroke-width:1;

}


/* 星座境界 */

.zodiac-line{

    stroke:rgba(255,255,255,.28);

    stroke-width:1;

}


/* ハウス */

.house-line{

    stroke:rgba(255,255,255,.18);

    stroke-width:1;

}

/* アニメーション */

.planet-group{

    transform-origin:center;

    animation:

        horoscopePlanetFade

        .6s

        ease-out

        forwards;

}

@keyframes horoscopePlanetFade{

    from{

        opacity:0;

        transform:scale(.6);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}
/* ==========================================================
   Planet Table Mobile Column Width
========================================================== */

@media screen and (max-width: 768px) {

    .planet-data-table table {

        table-layout: fixed;

        width: 100%;

    }


    /* 惑星記号 */

    .planet-data-table .planet-cell {

        width: 12%;

        padding-left: 4px;

        padding-right: 4px;

    }


    /* 惑星名 */

    .planet-data-table .planet-name {

        width: 46%;

        padding-left: 4px;

        padding-right: 4px;

    }


    /* 星座 */

    .planet-data-table .planet-sign {

        width: 25%;

    }


    /* 度数 */

    .planet-data-table .planet-degree {

        width: 17%;

    }

}
/* ==========================================
   MY HOROSCOPE
   ホロスコープサイズ調整
========================================== */

#myHoroscopeChart {
    width: 100%;
    max-width: 520px;
    min-height: 0;

    margin: 0 auto;
    padding: 20px;

    box-sizing: border-box;
}


/* 750px SVGをコンテナ幅に縮小 */

#myHoroscopeChart .horoscope-svg {
    display: block;

    width: 100%;
    height: auto;

    margin: 0 auto;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    #myHoroscopeChart {
        max-width: 100%;

        padding: 10px;
    }

}
