@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%;
}

/*headline*/
h2 {
    font-size: 26px;
    line-height: 1.3;
    font-weight: bold;
}

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

h4 {
    font-size: 18px;
    line-height: 1.5;
    font-weight: bold;
}


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

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

/*テーブル*/
table {
    width: 100%;
    margin-top: 20px;
}

table th {
    background-color: #cdefef;
    line-height: 1.4;
}

table th,
table td {
    border: 1px solid #aaa;
    padding: 0.5em 0.25em;
    text-align: center;
    vertical-align: middle;
}

table td:first-child {
    background-color: #f5f5f5;
}

/*パンくず*/
#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: 33.33%;
    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: #57cbcb;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
}

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

#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: #ffe7e7;
    display: grid;
    grid-template-columns: min(180px, 25%) 1fr min(180px, 25%);
    align-items: center;
}

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

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

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

#pageTitle>img:last-child {
    align-self: end;
}

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

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

/*-------------------------
「正式名称」の早見表
-------------------------*/
#referenceChart {
    margin-top: 40px;
}

#referenceChart h2,
#writingGuide h2,
#faq h2 {
    background-color: #ffe7e7;
    padding: 12px 22px 10px;
    margin-bottom: 20px;
    position: relative;
    border-left: solid 5px #d70a16;
}

#referenceChart h2:after,
#writingGuide 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: #ffe7e7 transparent transparent transparent;
}

/*タブ切り替え*/
.category-group {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 15px;
}

.category-group input[type="radio"] {
    display: none;
}

.category-group label {
    background: #eee;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.category-group input:checked+label {
    background: #0066cc;
    color: #fff;
}

@media (hover: hover) {
    .category-group label:hover {
        background: #c0dcf7;
        color: #222;
    }
}


/*-----------------------------
有資格者歓迎のお仕事をさがそう！
-----------------------------*/
.searchContents {
    margin-top: 30px;
}

.search {
    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/shikaku-list/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(auto-fit, 310px);
    gap: 20px 40px;
    justify-content: center;
}

.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/shikaku-list/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;
    }
}

/*ボタン*/
.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;
}

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

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

/*-------------------------
資格の書き方ガイド
-------------------------*/
#writingGuide {
    margin-top: 80px;
}

.writingGuide-cont {
    margin-top: 40px;
}

.writingGuide-cont>h3 {
    background: #d2eef9;
    border-radius: 10px;
    padding: 8px 22px 4px;
    margin-bottom: 15px;
}

.numberList {
    counter-reset: listNumber;
}

.numberList>li {
    counter-increment: listNumber;
    margin-top: 20px;
}

.question {
    padding-left: 25px;
    position: relative;
}

.answer {
    padding-left: 25px;
    margin-top: 5px;
}

.question::before {
    content: counter(listNumber) ".";
    position: absolute;
    left: 0;
    color: #0066cc;
}

.example {
    margin-top: 30px;
}

.example-cont {
    background: #f2f2f2;
    padding: 30px;
    border-radius: 5px;
}

.example-cont dl {
    display: grid;
    grid-template-columns: 6em 1fr;
    gap: 15px;
}

.example-cont>dl,
.example-cont>ul>li {
    margin-top: 5px;
}

.example-cont>dl:first-child,
.example-cont>ul>li:first-child {
    margin-top: 0;
}


.textRight {
    text-align: right;
}

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

.faq-cont {
    margin-top: 30px;
}

.faq-cont dt {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.5;
    padding-left: 25px;
    position: relative;
}

.faq-cont dt::before {
    content: "Q.";
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
    position: absolute;
    left: 0;
    color: #0066cc;
}

.faq-cont dd {
    padding-left: 25px;
    position: relative;
    margin-top: 5px;
}

.faq-cont dd::before {
    content: "A.";
    display: inline-block;
    margin-right: 5px;
    position: absolute;
    left: 0;
    color: #d70a16;
}

ul.list {
    margin: 10px 0;
}

ul.list li {
    padding-left: 15px;
    position: relative;
    margin-top: 8px;
}

ul.list li::before {
    border-radius: 50%;
    display: inline-block;
    content: "";
    width: 8px;
    height: 8px;
    vertical-align: 2px;
    margin-right: 5px;
    background: #d70a16;
    position: absolute;
    left: 0;
    top: 7px;
}

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

    #navi>ul {
        width: 100%;
    }

    #navi>ul li a {
        padding: 0 5px;
    }

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

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

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

    #writingGuide,
    #faq {
        margin-top: 60px;
    }
}

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

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

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

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

    #main {
        margin: 0 15px;
    }

    .category-group {
        font-size: 14px;
        gap: 10px;
    }

    .category-group label {
        padding: 10px 12.5px;
    }
}

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

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 16px;
    }

    #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, 22%) 1fr min(180px, 22%);
        justify-content: center;
        margin: 0;
        overflow: hidden;
    }

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

    .category-group {
        gap: 8px;
        margin-top: 10px;
    }

    .category-group label {
        font-size: 13px;
        padding: 8px 10px;
        border-radius: 5px;
    }

    table {
        font-size: 13px;
        margin-top: 10px;
    }

    #referenceChart {
        margin-top: 30px;
    }

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

    .writingGuide-cont {
        margin-top: 30px;
    }

    .writingGuide-cont>h3 {
        border-radius: 5px;
        padding: 8px 15px 4px;
        margin-bottom: 10px;
    }

    .searchContents {
        margin-top: 20px;
    }

    .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(220px, 1fr));
        gap: 15px;
    }

    #writingGuide,
    #faq {
        margin-top: 40px;
    }

    .example {
        margin-top: 20px;
    }

    .example-cont {
        padding: 20px;
    }

    .faq-cont dt {
        font-size: 16px;
        line-height: 1.5;
    }

}

/*smallSp
******************/
@media (max-width: 374px) {
    #navi>ul li a{
        font-size: 12px;
    }
}