@charset "UTF-8";

/*------------------------------------------------
breakpoint
pc --> (min-width: 1280px)
tab --> (min-width: 744px) and (max-width: 1279px)
sp --> (max-width: 743px)
-------------------------------------------------*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #fff;
    color: #222;
    font-family: Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS P Gothic", Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

h2 {
    font-size: 26px;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
}

a,
a:link,
a:visited {
    color: #222222;
}

img {
    max-width: 100%;
    height: auto;
}

@media (hover: hover) {
    a:hover {
        color: #0066cc;
        transition: color 0.2s ease;
        text-decoration: none;
    }

    a:hover img {
        opacity: 0.7;
        transition: opacity 0.2s ease;
    }
}

/*ボタン*/
.link-btn {
    font-size: 20px;
    line-height: 1;
    width: min(290px, 100%);
    color: #fff !important;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    background-color: #d70a16;
    box-shadow: 0px 3px 1px 0px #891f25;
    padding: 15px 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    text-decoration: none;
    text-align: center;
    margin: auto;
}

.link-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 10px;
    height: 16px;
    background: #fff;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
}

.reset-btn {
    font-size: 16px;
    line-height: 1;
    width: min(200px, 100%);
    color: #fff !important;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    background-color: #9a9a9a;
    box-shadow: 0px 3px 1px 0px #5a5a5a;
    padding: 15px 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    text-decoration: none;
    text-align: center;
    margin: auto;
    min-height: 50px;
}

@media (hover: hover) {

    .link-btn:hover,
    .reset-btn:hover {
        transform: translateY(3px);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

/*パンくず*/
#bread {
    max-width: 960px;
    font-size: 12px;
    margin: 0 auto;
}

/*ナビ*/
#navi {
    max-width: 960px;
    background: #fff;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.2s ease;
}

#navi.shadow {
    border-radius: 3px;
    box-shadow: 0 1px 5px 1px rgba(0, 0, 0, .15);
}

#navi>ul {
    display: flex;
    width: 80%;
    margin: auto;
}

#navi>ul li {
    width: 20%;
    text-align: center;
}

#navi>ul li:last-child a {
    border-right: none;
}

#navi>ul li a {
    border-right: solid 2px #ccc;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    padding: 0 10px;
}

#navi>ul li a:after {
    content: "";
    width: 8px;
    height: 6px;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    background: #f0a800;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
}

@media (hover: hover) {
    #navi>ul li a:hover {
        color: #c98a00;
    }
}

#navi>ul li a span {
    display: inline-block;
}

#header {
    max-width: 960px;
    margin: 15px auto 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header .logo img {
    display: block;
    width: 168px;
}

@media (hover: hover) {
    #header .logo:hover img {
        opacity: 1;
        transition: none;
    }
}

#header ul#subNavi {
    position: relative;
    top: auto;
    right: auto;
}

#pageTitle {
    position: relative;
    max-width: 960px;
    margin: 5px auto 0;
    background: #fff4cc;
    display: grid;
    grid-template-columns: min(240px, 25%) 1fr min(240px, 25%);
    align-items: center;
}

#pageTitle .pageTitleInner {
    text-align: center;
    padding: 15px 10px 10px;
}

#pageTitle .pageTitleInner h1 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: normal;
}

#pageTitle .pageTitleInner h1 .subText {
    font-size: 24px;
    display: block;
    margin-top: 5px;
}

#pageTitle img {
    width: 100%;
    aspect-ratio: 480 / 300;
    object-fit: contain;
}

#pageTitle>img {
    align-self: end;
    object-position: center bottom;
}

#main {
    max-width: 960px;
    margin: 0 auto;
}

#contents-wrap {
    margin-top: 30px;
}

#calculation h2,
#wall h2,
#chart h2,
#faq h2 {
    font-weight: bold;
    background-color: #fff4cc;
    padding: 12px 22px 10px;
    margin-bottom: 20px;
    position: relative;
    border-left: solid 5px #d70a16;
}

#calculation h2:after,
#wall h2:after,
#chart h2:after,
#faq h2:after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    bottom: -15px;
    left: 0.8em;
    border-width: 22px 15px 0px 15px;
    border-style: solid;
    border-color: #fff4cc transparent transparent transparent;
}

.calculation-wrap {
    text-align: center;
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 30px;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 40px;
    justify-items: center;
}

.calculation-form {
    width: 100%;
    display: grid;
    justify-items: flex-start;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.5rem;
}

.calculation-form label {
    grid-column: 1 / -1;
}

.calculation-form input {
    width: 100%;
}

.calculation-box {
    font-size: 26px;
    text-align: center;
    font-weight: bold;
    padding: 5px;
}

.calculation-btn,
.error-message {
    grid-column: 1 / -1;
}

.calculation-btn {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(100px, 100px);
    justify-content: center;
    gap: 15px;
}

.calculation-btn .link-btn,
.calculation-btn .reset-btn {
    width: 100%;
}

.calculation-btn .link-btn::after{
    width: 16px;
    height: 10px;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.error-message {
    display: none;
}

.error-message p {
    display: none;
}

.error-message {
    font-weight: bold;
    color: #d70a16;
}

.result-text span {
    margin-left: 10px;
    font-size: 36px;
    line-height: 1;
    font-weight: bold;
}

.notes {
    margin-top: 10px;
    font-size: 14px;
}

/*-------------------------
さっそくお仕事をさがそう！
-------------------------*/
.search {
    margin-top: 50px;
    background: #eee;
}

.search h3 {
    color: #fff;
    text-align: center;
    background: #d70a16;
    padding: 10px 10px 6px;
}

.search h3:before {
    content: "";
    display: inline-block;
    background: url("/contents/tedori-calc/img/icon-loupe.svg") center center / contain no-repeat;
    width: 22px;
    height: 22px;
    vertical-align: -2px;
    margin-right: 10px;
}

.select-search {
    position: relative;
    padding: 20px;
}

.select-search form[name="select"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.select-search form[name="select"] .link-btn {
    grid-column: 1 / -1;
}

.select-search form[name="select"] select {
    appearance: none;
    outline: none;
    border: none;
    width: 100%;
    height: 40px;
    padding: 0 calc(40px + 7px) 0 7px;
    background: #fff url("/contents/tedori-calc/img/btn-select.png") right top /contain no-repeat;
    line-height: 40px;
    font-size: 14px;
    color: #000;
    text-overflow: ellipsis;
}

@media (hover: hover) {
    .select-search form[name="select"] select:hover {
        cursor: pointer;
    }
}

/*-------------------------
早見表
-------------------------*/
#chart {
    margin-top: 80px;
}

#chart .ctable {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    gap: 40px;
}

#chart .ctable table {
    width: 100%;
}

#chart .ctable caption {
    margin-bottom: 8px;
}

#chart .ctable th {
    background-color: #fff4cc;
    line-height: 1.4;
}

#chart .ctable .subtxt {
    font-size: 14px;
    font-weight: normal;
}

#chart .ctable th,
#chart .ctable td {
    border: 1px solid #aaa;
    padding: 0.5em 0;
    text-align: center;
    width: 25%;
    vertical-align: middle;
}

#chart .ctable td:first-child {
    background-color: #f5f5f5;
}

/*tab~smallPc
******************/
@media (min-width: 744px) and (max-width: 1279px) {
    body {
        font-size: 15px;
    }

    #pageTitle {
        grid-template-columns: min(220px, 24%) 1fr min(220px, 24%);
    }

    #pageTitle .pageTitleInner h1 {
        font-size: 30px;
    }

    #pageTitle .pageTitleInner h1 .subText {
        font-size: 22px;
    }

    #navi>ul {
        width: 100%;
    }

    .calculation-wrap {
        gap: 30px;
        padding: 20px;
    }

    .result-text span {
        font-size: 32px;
    }

    .notes {
        font-size: 13px;
    }

    #chart {
        margin-top: 60px;
    }

    #chart .ctable {
        gap: 30px;
    }
}

/*tab
******************/
@media (min-width:744px) and (max-width:980px) {
    #bread {
        margin: 0 15px;
    }

    #header {
        margin: 15px 15px 10px;
    }

    #main {
        margin: 0 15px;
    }

    .calculation-wrap {
        gap: 20px;
    }

    .result-text span {
        font-size: 30px;
    }
}

/*sp
******************/
@media (max-width: 743px) {
    body {
        font-size: 14px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    #bread {
        font-size: 12px;
        display: flex;
        overflow-x: scroll;
        background-color: #dbdbdb;
        padding: 0;
        width: 100%;
    }

    #bread .pcarrow {
        display: none;
    }

    #bread>span {
        position: relative;
        font-size: 12px;
        vertical-align: middle;
        padding: 0 10px;
        height: 30px;
        line-height: 30px;
        white-space: nowrap;
        list-style: none;
        background-image: linear-gradient(to right, #ececec, #dbdbdb);
    }

    #bread>span:after {
        content: '';
        display: inline-block;
        position: absolute;
        margin-left: 10px;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        border-left: 12px solid #dbdbdb;
        z-index: 1;
    }

    #bread>span:last-child:after {
        display: none;
    }

    #bread>span:nth-child(n+2) {
        padding-left: 20px;
    }

    #navi>ul {
        width: 100%;
    }

    #navi>ul li a {
        font-size: 13px;
        line-height: 1.3;
        padding: 0 5px;
    }

    #navi>ul li a:after {
        bottom: -6px;
    }

    #header {
        width: 100%;
        padding: 0 15px;
    }

    #header .logo img {
        width: 150px;
        height: auto;
    }

    #subNavi {
        display: none;
    }

    #pageTitle {
        grid-template-columns: min(180px, 24%) 1fr min(180px, 24%);
        justify-content: center;
        margin: 0;
        overflow: hidden;
    }

    #pageTitle img {
        width: min(240px, 100%);
        margin: 0 auto;
    }

    #pageTitle .pageTitleInner {
        text-align: center;
        padding: 15px 0 10px;
    }

    #pageTitle .pageTitleInner h1 {
        font-size: min(5.067vw, 28px);
        /* 375px基準：19px → 5.067vw（19 ÷ 375 × 100） */
        white-space: nowrap;
        /*自動改行禁止*/
    }

    #pageTitle .pageTitleInner h1 .subText {
        font-size: min(4vw, 20px);
        /* 375px基準：15px → 4vw（15 ÷ 375 × 100） */
    }

    #contents-wrap {
        margin: 15px;
    }

    .calculation-wrap {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 15px;
        gap: 15px 20px;
    }

    .calculation-btn {
        grid-template-columns: minmax(0, 260px) minmax(0, 90px);
        gap: 15px;
        width: 100%;
        margin: 5px 0 10px;
    }

    .calculation-btn .link-btn,
    .calculation-btn .reset-btn {
        width: 100%;
    }

    .calculation-btn .reset-btn{
        font-size: 14px;
    }

    #calculation h2,
    #chart h2,
    #faq h2 {
        padding: 12px 15px 8px;
        margin-bottom: 20px;
    }

    .calculation-box {
        font-size: 24px;
    }

    .error-message {
        font-size: 13px;
    }

    .result-text span {
        font-size: 30px;
    }

    .notes {
        font-size: 12px;
        margin-top: 8px;
    }

    .search {
        margin-top: 35px;
    }

    .search h3 {
        padding: 8px 10px 6px;
    }

    .search h3:before {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }

    .select-search {
        padding: 15px;
    }

    .select-search form[name="select"] {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    #chart {
        margin-top: 40px;
    }

    #chart .ctable {
        gap: 20px;
        grid-template-columns: repeat(1, 1fr);
    }

    #chart .ctable caption {
        margin-bottom: 5px;
    }
}

/*smallSp
******************/
@media (max-width: 374px) {
    .calculation-wrap {
        grid-template-columns: repeat(1, 1fr);
        padding: 10px;
        gap: 10px 20px;
    }

    .select-search form[name="select"] {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
}
/*-------------------------
扶養内で働ける時間 自動計算（追加）
-------------------------*/
@media (min-width: 744px) {
    br.sp {
        display: none;
    }

    #navi>ul {
        width: 100%;
    }

    #navi>ul li a {
        white-space: nowrap;
    }
}

@media (min-width: 744px) and (max-width: 1279px) {
    #navi>ul li a {
        font-size: 14px;
        padding: 0 5px;
    }
}

.calculation-form label small {
    font-size: 12px;
}

.calculation-form.wall-select {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    max-width: 560px;
}

.calculation-select {
    appearance: none;
    width: 100%;
    height: 50px;
    border: 1px solid #aaa;
    border-radius: 0;
    padding: 0 calc(50px + 10px) 0 10px;
    background: #fff url("/contents/tedori-calc/img/btn-select.png") right top / contain no-repeat;
    font-size: 18px;
    font-weight: bold;
    color: #222;
    text-overflow: ellipsis;
}

@media (hover: hover) {
    .calculation-select:hover {
        cursor: pointer;
    }
}

.result {
    grid-column: 1 / -1;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.result-lead {
    font-size: 20px;
    font-weight: bold;
}

.result-lead span {
    color: #d70a16;
}

.result-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.result-list>div {
    border: 2px solid #fff4cc;
    border-radius: 8px;
    padding: 10px 5px;
}

.result-list dt {
    font-weight: bold;
    font-size: 15px;
}

.result-list dd span {
    margin-right: 5px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: bold;
    color: #d70a16;
}

.result-income {
    margin-top: 15px;
}

.result-income #result-income {
    font-size: 20px;
    font-weight: bold;
}

.result-income #result-income-note {
    font-size: 14px;
}

.result-alert {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    text-align: left;
    background: #fff8e1;
    border: 2px solid #f5a623;
    border-radius: 8px;
    font-size: 15px;
}

.result-alert strong {
    color: #d70a16;
}

/*CTA*/
.cta {
    margin-top: 30px;
    text-align: center;
}

.cta-lead {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cta-btn {
    display: block;
    width: min(420px, 100%);
    padding: 22px 10px;
}

/*年収の壁*/
#wall {
    margin-top: 80px;
}

.change-box {
    margin-top: 20px;
    border: 3px solid #f0a800;
    border-radius: 10px;
    padding: 20px 25px;
}

.change-box h3 {
    font-size: 20px;
    color: #c98a00;
    margin-bottom: 10px;
}

.change-box li {
    line-height: 1.9;
    padding: 10px 0;
    border-top: 1px dashed #ccc;
}

.change-box li:first-child {
    border-top: none;
}

.change-box .change-date {
    display: inline-block;
    background: #f0a800;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    padding: 2px 8px;
    margin-right: 8px;
}

.change-box strong {
    color: #d70a16;
}

.wall-table-wrap {
    margin-top: 30px;
}

.wall-table {
    width: 100%;
}

.wall-table th,
.wall-table td {
    border: 1px solid #aaa;
    padding: 0.7em;
    vertical-align: middle;
}

.wall-table thead th {
    background-color: #fff4cc;
    text-align: center;
}

.wall-table tbody th {
    background-color: #f2f2f2;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    width: 15%;
}

.wall-table tbody td:last-child {
    text-align: center;
    width: 15%;
}

.wall-table small {
    font-size: 13px;
    color: #555;
}

.tag {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    border-radius: 3px;
    padding: 2px 8px;
    color: #fff;
    white-space: nowrap;
}

.tag-social {
    background: #3a8fd9;
}

.tag-tax {
    background: #d70a16;
}

.tag-family {
    background: #8a6bbf;
}

.detail-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: #0066cc !important;
}

.detail-link::after {
    content: " ＞";
}

/*早見表（5列）*/
#chart .ctable {
    grid-template-columns: 1fr;
}

#chart #fuyouTable th,
#chart #fuyouTable td {
    width: 20%;
}

#chart #fuyouTable th .subtxt {
    display: block;
    font-size: 13px;
    font-weight: normal;
}

#chart #fuyouTable td .week {
    display: block;
    font-size: 13px;
    color: #555;
}

#chart #fuyouTable td.over20,
.table-legend .over20 {
    background-color: #fff3d6;
}

.table-legend {
    font-size: 14px;
}

.table-legend .over20 {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #aaa;
    vertical-align: -0.2em;
    margin-right: 5px;
}

/*よくある質問*/
#faq {
    margin-top: 80px;
}

.faq-date {
    font-size: 14px;
    color: #555;
}

.faq-list {
    margin-top: 15px;
}

.faq-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item+.faq-item {
    margin-top: 15px;
}

.faq-item dt,
.faq-item dd {
    position: relative;
    padding: 15px 20px 15px 70px;
}

.faq-item dt {
    font-size: 18px;
    font-weight: bold;
    background: #fff4cc;
}

.faq-item dt::before,
.faq-item dd::before {
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.faq-item dt::before {
    content: "Q.";
    color: #d70a16;
}

.faq-item dd::before {
    content: "A.";
    color: #c98a00;
}

.faq-item dd .faq-note {
    font-size: 13px;
    color: #555;
}

.faq-item dd p+p,
.faq-item dd p+ul,
.faq-item dd ul+p {
    margin-top: 10px;
}

.faq-item dd a {
    color: #0066cc !important;
}

.faq-conditions {
    background: #f5f5f5;
    border-radius: 5px;
    padding: 10px 15px;
}

.faq-conditions li {
    padding-left: 1em;
    text-indent: -1em;
}

.faq-conditions li::before {
    content: "・";
}

.faq-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.faq-item dd .faq-links a {
    display: block;
    border-radius: 5px;
    background-color: #d70a16;
    box-shadow: 0px 3px 1px 0px #891f25;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 32px 10px 15px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-links a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 7px;
    height: 11px;
    background: currentColor;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
}

@media (hover: hover) {
    .faq-item dd .faq-links a:hover {
        transform: translateY(3px);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

/*tab~smallPc
******************/
@media (min-width: 744px) and (max-width: 1279px) {
    .result-list dd span {
        font-size: 30px;
    }
}

/*sp
******************/
@media (max-width: 743px) {
    #wall h2 {
        padding: 12px 15px 8px;
        margin-bottom: 20px;
    }

    #wall {
        margin-top: 40px;
    }

    .calculation-select {
        font-size: 15px;
        height: 44px;
        padding-right: calc(44px + 8px);
    }

    .result {
        padding: 15px 10px;
    }

    .result-lead {
        font-size: 16px;
    }

    .result-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .result-list dt {
        font-size: 13px;
    }

    .result-list dd span {
        font-size: 28px;
    }

    .result-income #result-income {
        font-size: 17px;
    }

    .result-alert {
        font-size: 13px;
        padding: 10px;
    }

    .cta-lead {
        font-size: 17px;
    }

    .cta-btn {
        font-size: 17px;
    }

    .change-box {
        padding: 15px;
    }

    .change-box h3 {
        font-size: 17px;
    }

    .change-box .change-date {
        display: table;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .wall-table th,
    .wall-table td {
        padding: 0.5em;
    }

    .wall-table thead th:last-child,
    .wall-table tbody td:last-child {
        display: none;
    }

    .wall-table tbody th {
        width: 25%;
        white-space: normal;
    }

    .wall-table small {
        font-size: 11px;
    }

    #chart #fuyouTable th,
    #chart #fuyouTable td {
        font-size: 12px;
        padding: 0.5em 2px;
    }

    #chart #fuyouTable th .subtxt,
    #chart #fuyouTable td .week {
        font-size: 10px;
    }

    .table-legend {
        font-size: 12px;
    }

    #faq {
        margin-top: 40px;
    }

    .faq-date {
        font-size: 12px;
    }

    .faq-item dt,
    .faq-item dd {
        padding: 12px 12px 12px 56px;
    }

    .faq-item dt {
        font-size: 16px;
    }

    .faq-item dd {
        font-size: 15px;
    }

    .faq-item dt::before,
    .faq-item dd::before {
        top: 10px;
        left: 12px;
        font-size: 17px;
    }

    .faq-links {
        flex-direction: column;
    }

    .faq-item dd .faq-links a {
        font-size: 14px;
    }
}

/*------------------------------------------------
手取り計算ツール
-------------------------------------------------*/
#structure h2,
#jobs h2 {
    font-weight: bold;
    background-color: #fff4cc;
    padding: 12px 22px 10px;
    margin-bottom: 20px;
    position: relative;
    border-left: solid 5px #d70a16;
}

#structure h2:after,
#jobs h2:after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    bottom: -15px;
    left: 0.8em;
    border-width: 22px 15px 0px 15px;
    border-style: solid;
    border-color: #fff4cc transparent transparent transparent;
}

#structure,
#chart,
#faq {
    margin-top: 80px;
}

.calculation-form.wide {
    grid-column: span 2;
}

/*月給・賞与の2項目を中央にそろえる*/
@media (min-width: 744px) {
    .calculation-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculation-form.salary-input {
        max-width: 270px;
    }

    .calculation-form.salary-input:first-child {
        justify-self: end;
    }

    .calculation-form.salary-input:nth-child(2) {
        justify-self: start;
    }
}

/*計算結果サマリー*/
.result-list.tedori {
    grid-template-columns: repeat(3, 1fr);
}

.result-rate {
    margin-top: 10px;
    font-size: 15px;
}

/*内訳表*/
.breakdown-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    text-align: left;
}

.breakdown-table th,
.breakdown-table td {
    border: 1px solid #ccc;
    padding: 0.6em 0.8em;
}

.breakdown-table thead th {
    background: #fff4cc;
    text-align: center;
}

.breakdown-table tbody th {
    background: #f7f7f7;
    font-weight: bold;
}

.breakdown-table tbody th small {
    display: block;
    font-weight: normal;
    font-size: 12px;
    color: #555;
}

.breakdown-table td {
    text-align: right;
    white-space: nowrap;
}

.breakdown-table .row-total th,
.breakdown-table .row-total td {
    background: #fff8e1;
    font-weight: bold;
}

.breakdown-table .row-tedori th,
.breakdown-table .row-tedori td {
    background: #ffeceb;
    font-weight: bold;
    color: #d70a16;
}

.breakdown-bar {
    display: flex;
    height: 18px;
    margin-top: 15px;
    border-radius: 9px;
    overflow: hidden;
    background: #eee;
}

.breakdown-bar span {
    display: block;
    height: 100%;
}

.breakdown-bar .bar-tedori { background: #d70a16; }
.breakdown-bar .bar-social { background: #4a90d9; }
.breakdown-bar .bar-tax { background: #f5a623; }

.breakdown-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 15px;
    margin-top: 5px;
    font-size: 13px;
}

.breakdown-legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-radius: 2px;
    vertical-align: middle;
}

.breakdown-legend .legend-tedori::before { background: #d70a16; }
.breakdown-legend .legend-social::before { background: #4a90d9; }
.breakdown-legend .legend-tax::before { background: #f5a623; }

/*同じ給与帯の正社員求人*/
.jobs-box {
    margin-top: 30px;
    background: #fff8e1;
    border-radius: 10px;
    padding: 30px;
}

.jobs-box[hidden] {
    display: none;
}

.jobs-lead {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.jobs-lead .jobs-count {
    font-size: 36px;
    color: #d70a16;
    margin: 0 4px;
}

.jobs-sub {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
}

.jobs-ranking-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    border-left: solid 4px #f0781e;
    padding-left: 10px;
}

.jobs-ranking {
    margin-top: 10px;
    counter-reset: rank;
}

.jobs-ranking li {
    counter-increment: rank;
}

.jobs-ranking li + li {
    margin-top: 8px;
}

.jobs-ranking a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease;
}

@media (hover: hover) {
    .jobs-ranking a:hover {
        background: #f2f2f2;
    }
}

.jobs-ranking a::before {
    content: counter(rank);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background: #f0781e;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.jobs-ranking li:first-child a::before { background: #d4a017; }
.jobs-ranking li:nth-child(2) a::before { background: #9aa4ad; }
.jobs-ranking li:nth-child(3) a::before { background: #b87333; }

.jobs-ranking .jobs-name {
    flex: 1;
    font-weight: bold;
}

.jobs-ranking .jobs-num {
    white-space: nowrap;
    color: #d70a16;
    font-weight: bold;
}

.jobs-ranking .jobs-num::after {
    content: '\f105';
    font-family: FontAwesome;
    margin-left: 8px;
    color: #222;
}

.jobs-action {
    margin-top: 20px;
}

.jobs-action.is-next {
    background: #fff;
    border: 2px solid #f5a623;
    border-radius: 8px;
    padding: 20px 15px;
}

.jobs-next {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.jobs-next strong {
    color: #d70a16;
}

.jobs-btn {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.jobs-btn .link-btn {
    display: block;
    width: min(460px, 100%);
    margin: 0;
    padding: 22px 40px;
    font-size: 22px;
}

/*正社員・高収入への導線*/
.careerUp {
    margin-top: 80px;
    background: #fff8e1;
    border-radius: 10px;
    padding: 30px;
}

.careerUp h2 {
    font-weight: bold;
    text-align: center;
    color: #d70a16;
    margin-bottom: 15px;
}

.careerUp-point {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.careerUp-point li {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.careerUp-point-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.careerUp-point-title .em {
    font-size: 32px;
    color: #d70a16;
    margin: 0 2px;
}

.careerUp-btn {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.careerUp-btn .link-btn {
    display: block;
    width: min(340px, 100%);
    margin: 0;
}

/*手取りのしくみ*/
.structure-list {
    margin-top: 15px;
}

.structure-list dt {
    font-size: 18px;
    font-weight: bold;
    border-left: solid 4px #f0781e;
    padding-left: 10px;
    margin-top: 20px;
}

.structure-list dd {
    margin-top: 5px;
}

/*年収別 手取り早見表（5列）*/
#chart #tedoriTable th,
#chart #tedoriTable td {
    width: 20%;
    white-space: nowrap;
}

#chart #tedoriTable td {
    text-align: right;
    padding-right: 1em;
}

#chart #tedoriTable td:first-child {
    text-align: center;
    padding-right: 0;
}

#chart #tedoriTable td.tedori {
    color: #d70a16;
    font-weight: bold;
}

/*関連リンク（正社員サイトへの導線）*/
.site-link {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 860px;
    margin: 80px auto 0;
}

.site-link li {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
}

.site-link p {
    margin-bottom: 8px;
}

.site-link img {
    display: block;
    height: 30px;
    width: auto;
    margin: 0 auto;
}

.site-link .link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 70px;
    margin: 15px auto 0;
    padding: 0 30px;
    font-size: 18px;
    line-height: 1.3;
    box-shadow: 0px 4px 1px 0px #891f25;
}

.site-link .link-btn.shain {
    background-color: #0599d9;
    box-shadow: 0px 4px 1px 0px #106e97;
}

@media (hover: hover) {
    .site-link .link-btn:hover {
        box-shadow: none;
    }
}

@media (max-width: 743px) {
    br.pc {
        display: none;
    }

    #structure,
    #chart,
    #faq,
    .careerUp {
        margin-top: 50px;
    }

    .calculation-form.wide {
        grid-column: auto;
    }

    #chart .ctable {
        overflow-x: auto;
    }

    #chart #tedoriTable th,
    #chart #tedoriTable td {
        font-size: 13px;
        padding: 0.5em 0.4em;
    }

    .result-list.tedori {
        grid-template-columns: 1fr;
    }

    .breakdown-table th,
    .breakdown-table td {
        padding: 0.5em;
        font-size: 14px;
    }

    .jobs-box,
    .careerUp {
        padding: 20px 15px;
    }

    .jobs-lead {
        font-size: 17px;
    }

    .jobs-lead .jobs-count {
        font-size: 30px;
    }

    .jobs-action.is-next {
        padding: 15px 10px;
    }

    .jobs-next {
        font-size: 16px;
    }

    .jobs-action.is-next .link-btn {
        padding: 18px 30px 18px 10px;
        font-size: 17px;
    }

    .jobs-btn,
    .careerUp-btn {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .jobs-btn .link-btn {
        padding: 18px 35px 18px 20px;
        font-size: 18px;
    }

    .careerUp-point {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-link {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 420px;
        margin-top: 50px;
    }

    .site-link p {
        font-size: 12px;
    }

    .site-link .link-btn {
        font-size: 15px;
    }

    .careerUp-point-title {
        font-size: 17px;
    }

    .careerUp-point-title .em {
        font-size: 26px;
    }
}

@media (max-width: 374px) {
    .jobs-action.is-next {
        padding: 15px 5px;
    }

    .jobs-next {
        font-size: 14px;
    }

    .jobs-action.is-next .link-btn {
        padding: 18px 30px 18px 5px;
        font-size: 15px;
    }
}
