@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: #1c66b5;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
}

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

#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: #dcecff;
    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;
}

/* KVの高さを保つため、画像は 480:300 の枠に収める */
#pageTitle img {
    width: 100%;
    aspect-ratio: 480 / 300;
    object-fit: contain;
}

#pageTitle>img:last-child {
    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: #dcecff;
    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: #dcecff 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/fuyou-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/fuyou-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: #dcecff;
    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: 10px;
        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/fuyou-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 #dcecff;
    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 #1c66b5;
    border-radius: 10px;
    padding: 20px 25px;
}

.change-box h3 {
    font-size: 20px;
    color: #1c66b5;
    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: #1c66b5;
    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: #dcecff;
    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: #dcecff;
}

.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: #1c66b5;
}

.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;
    }
}
