@charset "utf-8";

:root {
    --g: #15A648;
    --g-d: #1E3D22;
    --g-mid: #1A6634;
    --bg1: #EBF5EB;
    --bg2: #F4FCEC;
    --line: #D8E9D5;
    --line2: #C8E6C8;
    --ink: #2b2f2b;
    --sub: #5b685b;
}

@media screen and (max-width: 768px) {
    .tbl-scroll{
        overflow-x: scroll;
    }
    .tbl-scroll td{
        white-space: nowrap;
    }
}


.rev-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 0;
}

.rev-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line2);
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 13px;
    color: #3c453c;
}

.rev-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g);
    display: inline-block;
}

.rev-chip b {
    color: var(--g-d);
    font-weight: 700;
}
@media screen and (max-width: 768px) {
    
}

/* セグメント（目的を選ぶ） */
.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px 0 30px;
}

.seg button {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 18px 22px;
    cursor: pointer;
    text-align: left;
    transition: .18s;
    font-family: inherit;
}

.seg button .ico {
    width: 48px;
    height: 48px;
    color: #1A6634;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    flex-shrink: 0;
    transition: .18s;
}

.seg button .t {
    font-size: 19px;
    font-weight: 900;
    color: var(--g-d);
}

.seg button .d {
    font-size: 13px;
    color: var(--sub);
}

.seg button.on {
    border-color: var(--g);
    box-shadow: 0 8px 24px rgba(21, 166, 72, .16);
}

.seg button.on .ico {
    border-color: var(--g);
    border-style: solid;
}
@media screen and (max-width: 768px) {
    .seg {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin: 26px 0 30px;
    }

    .seg button {
        display: block;
        padding: 15px;
    }

    .seg button .ico {
        width: 40px;
        height: 40px;
        margin: 0 auto 10px;
    }

    .seg button .t {
        font-size: 15px;
        margin-bottom: 10px;
    }

}

.panel {
    display: none;
}

.panel.on {
    display: block;
    animation: fade .25s ease;
}
@media screen and (max-width: 768px) {
    
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* サマリカード */
.sumgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.sumcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.sumcard .cap {
    font-size: 14px;
    color: var(--g-mid);
    font-weight: 700;
}

.sumcard .num {
    font-size: 34px;
    font-weight: 900;
    color: var(--g-d);
    line-height: 1.1;
    letter-spacing: -.01em;
}

.sumcard .num small {
    font-size: 15px;
    font-weight: 700;
    color: var(--sub);
}

.sumcard .sub {
    font-size: 13px;
    color: var(--sub);
}

.sumcard .pill {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--g);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.sumcard.best {
    border-color: var(--g);
    background: linear-gradient(180deg, #fff, #F4FCEC);
}
@media screen and (max-width: 768px) {
    
}

/* 計算カード（主役） */
.calc {
    background: linear-gradient(135deg, #F4FCEC, #EBF5EB);
    border: 1px solid var(--line2);
    border-radius: 20px;
    padding: 26px 28px;
    margin-bottom: 26px;
}

.calc .title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 900;
    color: var(--g-d);
    margin-bottom: 4px;
}

.calc .title .tag {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--g);
    border-radius: 6px;
    padding: 3px 9px;
}

.calc .hint {
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 18px;
}

.calc .row {
    margin-bottom: 16px;
}

.calc .row .lab {
    font-size: 13px;
    font-weight: 700;
    color: var(--g-mid);
    margin-bottom: 8px;
}
@media screen and (max-width: 768px) {
    .calc {
        
    }

    .calc .title {
        display: block;
    }

    .calc .title .tag {
        font-size: 12px;
        white-space: nowrap;
        width: max-content;
        display: block;
    }

}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background: #fff;
    border: 1.5px solid var(--line2);
    color: var(--g-d);
    font-weight: 700;
    font-size: 15px;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}

.chip:hover {
    border-color: var(--g);
}

.chip.on {
    background: var(--g);
    color: #fff;
    border-color: var(--g);
}

.calc select {
    width: 100%;
    max-width: 460px;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--g-d);
    border: 1.5px solid var(--line2);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
}

.calc .row .lab span {
    color: var(--g-d);
    font-weight: 900;
}

.calc input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--line2);
    cursor: pointer;
}

.calc input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--g);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(21, 166, 72, .35);
    cursor: pointer;
}

.calc input[type=range]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--g);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(21, 166, 72, .35);
    cursor: pointer;
    border: none;
}

.calc input[type=range]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: var(--line2);
}
@media screen and (max-width: 768px) {
    
}

.result {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 4px 18px rgba(21, 166, 72, .10);
}

.result .left .k {
    font-size: 13px;
    color: var(--sub);
}

.result .left .rate {
    font-size: 26px;
    font-weight: 900;
    color: var(--g);
}

.result .left .cond {
    font-size: 13px;
    color: var(--sub);
    margin-top: 2px;
    white-space: pre-line;
}

.result .right {
    text-align: right;
}

.result .right .k {
    font-size: 13px;
    color: var(--sub);
}

.result .right .net {
    font-size: 38px;
    font-weight: 900;
    color: var(--g-d);
    line-height: 1.05;
}

.result .right .gross {
    font-size: 13px;
    color: var(--sub);
}

.calc .foot {
    font-size: 12px;
    color: var(--sub);
    margin-top: 12px;
    line-height: 1.7;
}
@media screen and (max-width: 768px) {
    
}

/* 折りたたみ全表 */
details.alltbl {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 26px;
    overflow: hidden;
}

details.alltbl > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 22px;
    font-size: 15px;
    font-weight: 700;
    color: var(--g-d);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details.alltbl > summary::-webkit-details-marker {
    display: none;
}

details.alltbl > summary .arw {
    transition: .2s;
    color: var(--g);
    font-weight: 900;
}

details.alltbl[open] > summary .arw {
    transform: rotate(180deg);
}

.tblbody {
    padding: 6px 22px 22px;
}

.tblcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 26px;
    padding: 6px 22px 22px;
}

.sub-h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--g-d);
    border-left: 3px solid #9EC73C;
    padding-left: 10px;
    margin: 20px 0 8px;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
    margin-top: 6px;
}

thead th {
    background: #DCEFD9;
    color: var(--g-d);
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid var(--line2);
    text-align: left;
}

tbody td {
    padding: 11px 12px;
    border: 1px solid #E6F2E4;
}

.matrix th,
.matrix td {
    text-align: center;
}

.matrix .l {
    text-align: left;
    background: #FBFFF9;
    font-weight: 700;
    color: var(--g-d);
}

.nm {
    font-weight: 700;
    color: var(--g-d);
}

.rt {
    font-weight: 900;
    color: #111;
}

.rt.best {
    color: var(--g);
}

.free {
    color: var(--g);
    font-weight: 900;
}

.best-pill {
    display: inline-block;
    background: var(--g);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    margin-left: 6px;
}
@media screen and (max-width: 768px) {
    
}

/* A案H「ご相談・関連リンク」流用パーツ */
.ic-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #9EC73C;
    background: #F4FCEC;
    color: #1A6634;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.ic-md {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.btn-go {
    display: inline-block;
    background: #fff;
    border: 1.5px solid #15A648;
    color: #1E3D22;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
}

.btn-fill {
    display: inline-block;
    background: #15A648;
    border: 1.5px solid #15A648;
    color: #fff;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
}

/* wireframe_kojin_kaikou.htmlの.contact-card/.contact-btn仕様に統一（2026-07-27） */
.contact-card {
    background: #FBFFEF;
    border: 1px solid var(--g);
    padding: 30px;
    box-sizing: border-box;
    margin-top: 18px;
    min-height: 195px;
}

.contact-card-in {
    position: relative;
}

.contact-card-in h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: var(--g);
}

.contact-card-in p {
    margin-top: 12px;
    font-size: 15px;
    color: #282828;
    line-height: 1.6;
    max-width: 686px;
}

.contact-btn {
    position: absolute;
    right: 0;
    width: 300px;
    height: 65px;
    background: var(--g);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-sizing: border-box;
    box-shadow: 0 5px 0 #216438;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.contact-btn .arw {
    width: 8.9px;
    height: 15.6px;
    background: #fff;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    margin-left: auto;
    flex: 0 0 auto;
}

.contact-btn.b1 {
    top: 0;
}

.contact-btn.b2 {
    top: 75px;
}

/* 注記 */
.notes {
    background: #FBFFF9;
    border: 1px solid #E6F2E4;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 26px;
}

.notes p {
    font-size: 13px;
    font-weight: 700;
    color: var(--g-d);
    margin: 0 0 6px;
}

.notes ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #3c453c;
    line-height: 1.9;
}

/* 次の一歩 */
.nextstep {
    margin-bottom: 10px;
}

.nextstep .h {
    font-size: 15px;
    font-weight: 900;
    color: var(--g-d);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stepgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.stepcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: .15s;
}

.stepcard:hover {
    border-color: var(--g);
    box-shadow: 0 6px 18px rgba(21, 166, 72, .12);
    transform: translateY(-2px);
}

.stepcard .ic {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff;
    border: 1px dashed #9EC73C;
    color: #1A6634;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.stepcard .tt {
    font-size: 15px;
    font-weight: 700;
    color: var(--g-d);
}

.stepcard .ds {
    font-size: 12px;
    color: var(--sub);
}

.stepcard .arw {
    margin-left: auto;
    color: var(--g);
    font-weight: 900;
}

.stepcard.fill {
    background: var(--g);
    border-color: var(--g);
}

.stepcard.fill .tt,
.stepcard.fill .ds,
.stepcard.fill .arw {
    color: #fff;
}

.stepcard.fill .ic {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}
