.serif {
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

:root {
    --color-red: red;
}


h1 {
    margin: 0;
    padding: 10px 0;
    position: relative;
}
/* 
.koimikuji_loader_box {
    background: url(../../static/images/compatibility_2/cf2_bg.png);
    background-repeat: repeat;
    background-size: contain;
    position: absolute;
} */
 .koimikuji_loader_box {
    background: url(../../static/images/compatibility_2/cf2_bg.png);
    background-repeat: repeat;
    background-size: contain;
    position: fixed;
    max-width: 600px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.cf2__contents {
    background: url(../../static/images/compatibility_2/cf2_bg.png);
    background-repeat: repeat;
    background-size: contain;
    padding-bottom: 15px;
}

@supports (background-image: url("../../static/images/compatibility_2/cf2_bg.webp")) {
 .koimikuji_loader_box {
    background-image: url("../../static/images/compatibility_2/cf2_bg.webp");
  }
  .cf2__contents {
    background-image: url("../../static/images/compatibility_2/cf2_bg.webp");
  }
}

.cf2_result {
    opacity: 0;
}
.chart__wrapper {
    padding: 20px 20px;
}

@media screen and (max-width:767px) {
    .chart__wrapper {
        padding: 0 10px;
    }
}


.chart__wrapper canvas {
    /* width: 100%;
    height: auto;
    min-height: 250px; */
}

.cf2_logo {
    position: relative;
    padding: 20px 0;
}

.cf2-inner {
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    text-align: center;
}

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

    .cf2-inner {
        padding-left: 15px;
        padding-right: 15px;

    }
}


.form__title {
    font-size: clamp(12px, calc((18/ 500)*100vw), 18px);
    color: var(--color-red);
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transform: translate(0px, 50%);
    background: #f6ede4;
    padding: 0 10px;
}

.form__title:before {
    content: "";
    height: 18px;
    width: 18px;
    background: var(--color-red);
    display: inline-block;
    border-radius: 100px;
}

.form__body {
    border: 1px solid var(--color-red);
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.form__submit {
    margin-bottom: 30px;
}

.form__group input[name=your_m],
.form__group input[name=your_d],
.form__group input[name=partner_m],
.form__group input[name=partner_d] {
    width: 40px;
}

.birth__inputs {
    display: flex;
    gap: 10px;
}
.birth__input-group.y{
    flex: 1;
}
.birth__input-group {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    
}

.form__group {
    display: flex;
    gap: 20px;

}

.form__nickname {
    width: 220px;
}


.form__birth {
    flex: 1;
}

.nickname__label {
    font-weight: bold;
}

.birth__label {
    font-weight: bold;
}

input[type="text"] {
    margin-bottom: 0;
}

button#send {
    background: var(--color-red);
    color: #fff;
    width: 300px;
    border-radius: 1px;
    box-shadow: 2px 2px 3px 0 #00000038;
    padding: 20px 0;
    transition:.3s;
}

button#send:after {
    content: "";
    mask-image: url(../../static/images/compatibility_2/arrow.svg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 11px;
    display: inline;
    margin-left: 15px;
    position: absolute;
    top: 50%;
    bottom: 50%;
    transform: translateY(-50%) translateX(-50%);
    background: #fff;
    mask-repeat: no-repeat;
    mask-position: center;
    aspect-ratio: 49 / 11;
    width: initial;
    right: 0;
     transition: right 0.3s ease-in-out;
}

button#send:hover{
    filter: contrast(1.1) brightness(.8);
    transition:.3s;
}

button#send:hover:after{
    right: -10px;
    transition: right 0.3s ease-in-out;
}



.cf2_btn {
  background: var(--color-red);
    color: #fff;
    max-width: 300px;
    border-radius: 1px;
    box-shadow: 2px 2px 3px 0 #00000038;
    padding: 20px 0;
    transition: .3s;
    display: block;
    position: relative;
    width: 100%;
    font-size: 16px;
}

.cf2_btn__wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
        padding: 0 15px;
}
.koimikuji_sharebox{
    margin-bottom: 40px;
}
.cf2_btn:after {
    content: "";
    mask-image: url(../../static/images/compatibility_2/arrow.svg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 11px;
    display: inline;
    margin-left: 15px;
    position: absolute;
    top: 50%;
    bottom: 50%;
    transform: translateY(-50%) translateX(-50%);
    background: #fff;
    mask-repeat: no-repeat;
    mask-position: center;
    aspect-ratio: 49 / 11;
    width: initial;
    right: 0;
     transition: right 0.3s ease-in-out;
}
.result__adovice--image img {
    max-width: 300px;
}
.cf2_btn:hover{
    opacity: 1;
    filter: contrast(1.1) brightness(.8);
    transition:.3s;
}

.cf2_btn:hover:after{
    right: -10px;
    transition: right 0.3s ease-in-out;
}

@media screen and (max-width:599px) {
    .form__group {
        flex-direction: column;
        gap: 10px;
    }

    .birth__label:before {
        content: "あなたの";
    }

    .form__nickname {
        width: 100%;
    }

    .birth__label.other__label:before {
        content: "あいての";
    }

    .form__slash {
        display: none;
    }
}

.nickname__label,
.birth__label {
    margin-bottom: 5px;
    color: var(--color-red);
    font-size: 14px;
}

.form__body input {
    font-size: 16px;
    border: 1px solid red;
    border-radius: 0;
}

.form__body .form__group:first-child {
    border-bottom: 1px dashed red;
    padding-bottom: 20px;
}


.description__inner {
    border: 1px solid var(--color-red);
    padding: 20px;
    text-align: left;
}

.description_title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-red);
    margin-bottom: 10px;
}

.description_body {
    font-size: 14px;
    color: var(--color-red);
    line-height: 1.6;
}
input[type="number"]::placeholder{
    color:#ccc;
}
input[type="text"]::placeholder{
    color:#ccc;
}
input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 0;
    border: 1px solid red;
    border-radius: 0;
    text-align: right;
}

.cf2result_logo {
    max-width: 250px;

    margin: 0 auto 20px;
}

.cf2result_name__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #000;
    font-size: 20px;
}

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

.cf2result_name__text:after,
.cf2result_name__text:before {
    content: "";
    width: 10%;
    height: 1px;
    background: var(--color-red);
    display: block;
}

.result__content--header {
    padding:0  20px 20px;
    font-size: 14px;
    color: var(--color-red);
    font-weight: bold;
    text-align: left;
}

.result__content-outer {
    border: 1px solid var(--color-red);
}

.result__content-outer .big {

    font-size: clamp(12px, calc((50/ 600)*100vw), 50px);
    font-weight: bold;
}

.result__detail-score .big {

    font-size: clamp(20px, calc((30/ 600)*100vw), 30px);
}

.result__content-outer .red {
    color: var(--color-red);
}

.total__score {
    font-size: 16px;
}

.total {
    display: flex;
    justify-content: left;
    align-items: center;
    border-top: 1px solid var(--color-red);
    border-bottom: 1px solid var(--color-red);
    align-items: baseline;
    padding: 0 10px;
    font-weight: bold;
}

.total__label {
    font-size: clamp(18px, calc((20/ 600)*100vw), 20px);
    color: var(--color-red);
    width: clamp(120px, calc((200/ 600)*100vw), 200px);
    text-align: left;
}

.result__detail--item {
    /* display: flex; */
    gap: 10px;
    font-size: 12px;
    padding: 10px;
    font-weight: bold;
    width: 50%;
    box-sizing: border-box;
    align-items: baseline;
}

.result__detail-label {
    width: 100px;
    text-align: left;
}

@media screen and (max-width:425px) {
    .result__detail--item {
        flex-direction: column;
    }
}


.result__adovice {
    padding: 20px;
    margin-bottom: 20px;
}

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

    .result__adovice {
        padding: 15px;
    }
}

.result__adovice--image {
    margin-bottom: 10px;
}

.result__adovice--title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-red);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.result__adovice--title:before,
.result__adovice--title:after {
    content: "";
    height: 10px;
    width: 10px;
    background: var(--color-red);
    display: block;
    border-radius: 100px;
}

.result__adovice--body {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.result__detail {
    display: flex;
    flex-wrap: wrap;
}

.b-bottom {
    border-bottom: 1px solid var(--color-red);
}

.b-right {
    border-right: 1px solid var(--color-red);
}

.b-left {
    border-left: 1px solid var(--color-red);
}

.b-top {
    border-top: 1px solid var(--color-red);
}


.loader__image img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
}

.cf2loader_name__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.cf2__loader--ing {
    font-size: 14px;
    font-weight: bold;
}

.loader__image .logo_svg_wrapper {
    position: relative;
    top: 0;
}

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

.dots .dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

/* Fixed delays for simplicity */
.dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {

    0%,
    100% {
        transform: scale(0.7);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}
.result__otherLink {
    margin-bottom: 0;
    padding-bottom: 0;
}

.result__otherLink .result__adovice--body
 {
    margin-bottom: 20px;
}
.result__otherLink--sub {
    color: var(--color-red);
    text-align: center;
    font-weight: bold;
    border-bottom: 1px dashed red;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

/***************************************************
 * Generated by .cf svg Artista on 8/4/2025, 10:35:15 PM
 * MIT license (https://opensource.org/licenses/MIT)
 * W. https://svgartista.net
 **************************************************/
.logo_svg_wrapper {
    width: clamp(12px, calc((200/ 600)*100vw), 200px);
    position: absolute;
    top: clamp(12px, calc((80/ 600)*100vw), 80px);
    left: 0;
    right: 0;
    margin: auto;
}

.logo_svg_wrapper svg {
    aspect-ratio: 250 / 120.5;
    width: 100%;
    height: auto;
}

.cf svg .aishou-svg-elem-1 {
    stroke-dashoffset: 343.2378845214844px;
    stroke-dasharray: 343.2378845214844px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0s;
    transition: stroke-dashoffset 1s ease-in-out 0s
}

.cf svg.active .aishou-svg-elem-1 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-2 {
    stroke-dashoffset: 151.39285278320312px;
    stroke-dasharray: 151.39285278320312px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0.12s;
    transition: stroke-dashoffset 1s ease-in-out 0.12s
}

.cf svg.active .aishou-svg-elem-2 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-3 {
    stroke-dashoffset: 116.9167251586914px;
    stroke-dasharray: 116.9167251586914px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0.24s;
    transition: stroke-dashoffset 1s ease-in-out 0.24s
}

.cf svg.active .aishou-svg-elem-3 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-4 {
    stroke-dashoffset: 116.99689483642578px;
    stroke-dasharray: 116.99689483642578px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0.36s;
    transition: stroke-dashoffset 1s ease-in-out 0.36s
}

.cf svg.active .aishou-svg-elem-4 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-5 {
    stroke-dashoffset: 155.69097900390625px;
    stroke-dasharray: 155.69097900390625px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0.48s;
    transition: stroke-dashoffset 1s ease-in-out 0.48s
}

.cf svg.active .aishou-svg-elem-5 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-6 {
    stroke-dashoffset: 178.1625518798828px;
    stroke-dasharray: 178.1625518798828px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0.6s;
    transition: stroke-dashoffset 1s ease-in-out 0.6s
}

.cf svg.active .aishou-svg-elem-6 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-7 {
    stroke-dashoffset: 103.1685791015625px;
    stroke-dasharray: 103.1685791015625px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0.72s;
    transition: stroke-dashoffset 1s ease-in-out 0.72s
}

.cf svg.active .aishou-svg-elem-7 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-8 {
    stroke-dashoffset: 102.36848449707031px;
    stroke-dasharray: 102.36848449707031px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0.84s;
    transition: stroke-dashoffset 1s ease-in-out 0.84s
}

.cf svg.active .aishou-svg-elem-8 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-9 {
    stroke-dashoffset: 133.58673095703125px;
    stroke-dasharray: 133.58673095703125px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 0.96s;
    transition: stroke-dashoffset 1s ease-in-out 0.96s
}

.cf svg.active .aishou-svg-elem-9 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-10 {
    stroke-dashoffset: 101.89148712158203px;
    stroke-dasharray: 101.89148712158203px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 1.08s;
    transition: stroke-dashoffset 1s ease-in-out 1.08s
}

.cf svg.active .aishou-svg-elem-10 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-11 {
    stroke-dashoffset: 22.368377685546875px;
    stroke-dasharray: 22.368377685546875px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 1.2s;
    transition: stroke-dashoffset 1s ease-in-out 1.2s
}

.cf svg.active .aishou-svg-elem-11 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-12 {
    stroke-dashoffset: 22.277820587158203px;
    stroke-dasharray: 22.277820587158203px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 1.3199999999999998s;
    transition: stroke-dashoffset 1s ease-in-out 1.3199999999999998s
}

.cf svg.active .aishou-svg-elem-12 {
    stroke-dashoffset: 0
}

.cf svg .aishou-svg-elem-13 {
    stroke-dashoffset: 13.648006439208984px;
    stroke-dasharray: 13.648006439208984px;
    -webkit-transition: stroke-dashoffset 1s ease-in-out 1.44s;
    transition: stroke-dashoffset 1s ease-in-out 1.44s
}

.cf svg.active .aishou-svg-elem-13 {
    stroke-dashoffset: 0
}

.star {
    filter: contrast(0.7);
}

/* フェードアウト用 */
.fade-out {
    opacity: 0;
}

/* フェードイン用 */
.fade-in {
    display: block;
    opacity: 1;
}