@charset 'utf-8';

.p-prate .l-sub2__lead {
    margin-bottom: 9px;
}
.p-prate .l-sub2__lead-comment {
    margin-bottom: 108px;
}
#p-rate {
    margin-bottom: 96px;
}
#guideline {
    margin-bottom: 89px;
}
.p-prate__section h2 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: var(--color-gold);
    padding-bottom: 12px;
    margin-bottom: 30px;
    position: relative;
}
.p-prate__section h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-main);
    position: absolute;
    bottom: 0;
    left: 0;
}
.p-prate__section-grid {
    display: grid;
    grid-template-columns: 34.3% 35.1% 27.7%;
    column-gap: 1.45%;
}
#p-rate .p-prate__section-grid .grid-img {
    height: 390px;
}
#p-rate .p-prate__section-grid .grid-img img {
    width: 105.6%;
    height: auto;
    object-fit: contain;
    margin-left: -44px;
}
#guideline .p-prate__section-grid .grid-img img {
    width: 95%;
    margin-top: 22px;
}
.p-prate__section-grid .grid-cnt {
    padding-top: 20px;
    position: relative;
}
.p-prate__section-grid .grid-txt {
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
}
.p-prate__section-grid .grid-labels {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 48.8%);
    column-gap: 2.4%;
    row-gap: 9px;
    position: absolute;
    bottom: 0;
}
.p-prate__section-grid .grid-label01 {
    grid-column: 1/3;
    width: 100%;
    height: 102px;
    background-color: var(--color-light-gold);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 94px 24px 70px;
}
.p-prate__section-grid .label01-txt {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.66;
    margin-bottom: 8px;
}
.p-prate__section-grid .label01-num {
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    color: var(--color-gold);
}
.p-prate__section-grid .label01-num span {
    display: inline-block;
    font-size: 24px;
    margin-left: 0.2em;
}
.p-prate__section-grid .grid-label02,
.p-prate__section-grid .grid-label03 {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 6px 32px 0 18px;
}
.p-prate__section-grid .label02-txt,
.p-prate__section-grid .label03-txt {
    font-family: var(--font-noto);
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
}
.p-prate__section-grid .label02-num,
.p-prate__section-grid .label03-num {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-gold);
}
.p-prate__section-grid .label02-num span,
.p-prate__section-grid .label03-num span {
    font-family: var(--font-noto);
    font-size: 15px;
}

.p-prate__section-grid .grid-diagram {
    border: #eadead 1px solid;
    border-radius: 10px;
    padding: 16px 29px 20px 26px;
}
#guideline .p-prate__section-grid .grid-diagram {
    padding-bottom: 28px;
}
.p-prate__section-grid .diagram-top {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.375;
    text-align: center;
}
.p-prate__section-grid .diagram-top span {
    font-size: 13px;
}
.p-prate__section-grid .diagram-img {
    padding-bottom: 50px;
}
/* 棒の高さと値ラベルの位置は、枠いっぱいを 100% として
   テンプレート側でインライン style として出力する（page-pregnancy-rate.php）。
   ここでは高さ・top を持たせない。 */
.p-prate__section-grid .diagram-img .bars {
    width: 100%;
    height: 214px;
    border-bottom: #c0bfbf 1px solid;
    position: relative;
}
#guideline .p-prate__section-grid .diagram-img .bars {
    height: 223px;
}
.p-prate__section-grid .diagram-img .bar01 {
    width: 63px;
    background-color: #c0bfbf;
    position: absolute;
    bottom: 0;
    left: 57px;
}
.p-prate__section-grid .diagram-img .bar02 {
    width: 63px;
    background-color: var(--color-gold);
    position: absolute;
    bottom: 0;
    left: 167px;
}
.p-prate__section-grid .diagram-img .bar01-value {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    position: absolute;
    left: 61px;
}
.p-prate__section-grid .diagram-img .bar01-value span {
    font-size: 14px;
    display: inline-block;
    margin-left: 0.2em;
}
.p-prate__section-grid .diagram-img .bar02-value {
    font-size: 29px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--color-gold);
    position: absolute;
    left: 163px;
}
.p-prate__section-grid .diagram-img .bar02-value span {
    font-size: 14px;
    display: inline-block;
    margin-left: 0.2em;
}
.p-prate__section-grid .diagram-img .bar01-txt {
    font-family: var(--font-noto);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    position: absolute;
    bottom: -30px;
    left: 65px;
}
.p-prate__section-grid .diagram-img .bar02-txt {
    font-family: var(--font-noto);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.33;
    color: var(--color-gold);
    position: absolute;
    bottom: -33px;
    left: 161px;
}
#p-rate .p-prate__section-grid .diagram-img .bar02-txt {
    font-size: 15px;
}
.p-prate__section-grid .diagram-txt {
    font-family: var(--font-noto);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.66;
    color: #8e8e8e;
}

#guideline .p-prate__section-grid .diagram-img .bar01 {
    width: 63px;
    background-color: var(--color-gold);
    position: absolute;
    bottom: 0;
    left: 57px;
}
#guideline .p-prate__section-grid .diagram-img .bar02 {
    width: 63px;
    background-color: var(--color-main);
    position: absolute;
    bottom: 0;
    left: 167px;
}
#guideline .p-prate__section-grid .diagram-img .bar01-value {
    font-size: 29px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    position: absolute;
    left: 66px;
}
#guideline .p-prate__section-grid .diagram-img .bar01-value span {
    font-size: 14px;
    display: inline-block;
    margin-left: 0;
}
#guideline .p-prate__section-grid .diagram-img .bar02-value {
    font-size: 29px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-text);
    position: absolute;
    left: 164px;
}
#guideline .p-prate__section-grid .diagram-img .bar02-value span {
    font-size: 14px;
    display: inline-block;
    margin-left: 0;
}
#guideline .p-prate__section-grid .diagram-img .bar01-txt {
    font-family: var(--font-noto);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.33;
    color: var(--color-gold);
    position: absolute;
    bottom: -33px;
    left: 54px;
}
#guideline .p-prate__section-grid .diagram-img .bar02-txt {
    font-family: var(--font-noto);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.33;
    color: var(--color-gold);
    position: absolute;
    bottom: -33px;
    left: 161px;
}
.p-prate__section .amendment-txt {
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 22px;
}
.p-prate__section .amendment-comment {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.69;
    color: #b1b1b1;
}

@media screen and (max-width: 1440px) {
    .p-prate__section-grid {
        grid-template-columns: 1fr 422px 333px;
    }
}

@media screen and (max-width: 1100px) {
    .p-prate__section-grid {
        grid-template-columns: 422px 333px;
        justify-content: center;
        row-gap: 20px;
    }
    .p-prate__section-grid .grid-img {
        grid-column: 1/3;
    }
    #p-rate .p-prate__section-grid .grid-img {
        height: auto;
    }
    #p-rate .p-prate__section-grid .grid-img img,
    #guideline .p-prate__section-grid .grid-img img {
        width: 320px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 800px) {
    .p-prate__section-grid {
        grid-template-columns: 54% 43%;
    }
}

@media screen and (max-width: 768px) {
    #p-rate {
        margin-bottom: 50px;
    }
    #guideline {
        margin-bottom: 50px;
    }
    .p-prate .l-sub2__lead-comment {
        margin-bottom: 42px;
    }
    .p-prate__section h2 {
        font-size: 18px;
        letter-spacing: 0;
        line-height: 1.66;
        padding-bottom: 6px;
        margin-bottom: 11px;
    }
    .p-prate__section h2::after {
        width: calc(100vw - 20px);
    }
    .p-prate__section-grid {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        row-gap: unset;
        align-items: center;
    }
    .p-prate__section-grid .grid-img {
        grid-column: unset;
    }
    #p-rate .p-prate__section-grid .grid-img {
        margin-top: 24px;
        margin-bottom: 9px;
    }
    .p-prate__section-grid .grid-labels {
        position: relative;
    }
    #p-rate .p-prate__section-grid .grid-img img {
        width: 226px;
    }
    #guideline .p-prate__section-grid .grid-img img {
        width: 268px;
    }
    .p-prate__section-grid .grid-cnt {
        display: flex;
        flex-direction: column-reverse;
        row-gap: 26px;
        padding-top: 0;
        margin-bottom: 20px;
    }
    .p-prate__section-grid .diagram-img {
        margin-top: 10px;
    }
    .p-prate__section-grid .grid-diagram {
        width: 333px;
        padding: 16px 29px 22px 26px;
    }
    .p-prate__section-grid .diagram-img .bars {
        height: 216px;
    }
    .p-prate__section-grid .diagram-txt {
        font-size: 11px;
    }
    .p-prate__section-grid .grid-label01 {
        height: 84px;
        padding: 0 55px 18px 31px;
    }
    .p-prate__section-grid .grid-label02,
    .p-prate__section-grid .grid-label03 {
        height: 44px;
        padding: 3px 14px 0 15px;
    }
    .p-prate__section-grid .label02-txt,
    .p-prate__section-grid .label03-txt {
        font-size: 12px;
    }
    .p-prate__section .amendment-comment {
        font-size: 12px;
    }
}
