@charset "UTF-8";

:root {
    --base-color: #EEEAEB;
    --main-color: #0D9CA4;
    --main-sub-color: #43AAAE;
    --accent-color: #FE7310;
    --accent-sub-color: #FE8C12;
    --accent2-color: #FCBC15;
    --font-color: #1E1E1E;
    --note-bg-color: #DFDFDF;
    --white: #F8F8F8;
}

body {
    background-color: var(--base-color);
    font-family: "Zen Kaku Gothic New", sans-serif;
    color: var(--font-color);
}

img {
    vertical-align: bottom;
}


a {
    color: inherit;
    text-decoration: none;
}

p {
    letter-spacing: 0.05em;
    line-height: 1.7;
    margin: 6px 0 10px;
}

ul {
    list-style-position: inside;
}

ol {
    list-style-position: inside;
}

nav {
    width: 100%;
    min-height: 3em;
    color: #fff;
    padding: 0 1em;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
}

#nav.is-active {
    position: fixed;
    background-color: var(--main-color);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.nav-wrapper {
    width: 100%;
    min-height: 3em;
    margin: 0 auto;
    padding: 1em 0;
    display: flex;
    /* メニューが少なくてもいい場合はdisplay: flex;のコメントアウトして下さい。 */
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#nav-wrapper.is-active {
    display: block;
}

.nav-wrapper h1 {
    font-size: 1.6em;
    margin-left: 1em;
}

.nav-wrapper ul {
    display: flex;
    justify-content: flex-end;
}

.nav-wrapper li {
    max-width: 15em;
    list-style: none;
    margin: 0 1em;
}

.nav-wrapper span {
    line-height: 2
}

.nav-wrapper a {
    color: #fff;
    text-decoration: none;
}

.nav-wrapper a:hover {
    color: var(--accent-color);
}

#hamburger {
    display: none;
    position: absolute;
    position: fixed;
    top: 1em;
    right: 1.5em;
    width: 50px;
    height: 44px;
    cursor: pointer;
    transition: .6s ease;
    z-index: 999;
}

.inner_line {
    display: none;
    position: absolute;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #fff;
    transition: .6s ease;
    border-radius: 4px;
    z-index: 999;
}

#line1 {
    top: 0;
}

#line2 {
    top: 20px;
}

#line3 {
    bottom: 0px;
}

.line_1 {
    transform: translateY(20px) rotate(-45deg);
    top: 0;
}

.line_2 {
    opacity: 0;
}

.line_3 {
    transform: translateY(-20px) rotate(45deg);
    bottom: 0;
}

.in {
    transform: translateX(100%);
}

.hero-wrapper {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

button {
    display: inline-block;
    /* color: #fff;
    background-color: var(--accent-color);
    margin: 2em 0;
    padding: 1em 2em; */
    border: none;
    outline: none;
}

button:hover {
    opacity: .6;
}

.contents-wrapper {
    width: calc(100% - 6em);
    margin: 20vh auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1em;
    color: #444;
}

.contents-wrapper a {
    text-decoration: none;
    background-color: var(--main-color);
    color: #fff;
}

.contents-wrapper a:nth-last-child(1) {
    text-decoration: none;
    background-color: var(--accent-color);
    color: #fff;
}

.contents-wrapper a:hover {
    opacity: .6;
}

/* step n++.htmlの共通style */

.child {
    height: 70vh;
}

.hero-img-box {
    width: 100%;
    height: 70vh;
    position: relative;
}

.hero-img-text {
    position: absolute;
    top: 50%;
    left: 3em;
    transform: translate(0, -50%);
    z-index: 2;
}

.hero-img-text h1 {
    color: #fff;
    padding-left: 1em;
    padding-right: 2em;
    border-left: medium solid #fff;
}

.hero-img-text p {
    color: #fff;
    padding-left: 2em;
    padding-right: 2em;
}


.hero-wrapper img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    filter: brightness(60%);
}

article {
    width: calc(66.66% - 6em + 2em);
    background-color: #f8f8f8;
    margin: 10vh auto;
    padding: 3em;
}

article h2:nth-child(1) {
    color: var(--main-color);
    padding-left: 1em;
    border-left: medium solid var(--main-color);
}

article h2:nth-child(n+2) {
    color: var(--main-color);
    padding-left: 1em;
    margin-top: 3em;
    border-left: medium solid var(--main-color);
}

article p {
    color: #444;
    padding: 0 2em;
    margin: 1em 0;
}

article img {
    width: 100%;
    margin: 1em 0;
}

article ul {
    list-style: none;
    counter-reset: number 0;
    padding-left: 2em;
    margin: 1em 0;
}

article ul li::before {
    counter-increment: number 1;
    content: counter(number);
    padding-right: .5em;
}

article span.color {
    color: var(--accent-color);
}

article span.bold {
    font-weight: bold;
}

article span.large {
    font-size: 1.5em;
}

article p.border-enclose {
    padding: 1em 2em;
    border: medium solid var(--main-color);
}


/* ==========================================
   全8クラスのセレクタスタイル
   ========================================== */

/* 1. 全体を包む外枠（SPベース・PCで最大幅制限） */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px;
    background-color: var(--base-color);
    color: var(--font-color);
    /* font-family: sans-serif; */
    line-height: 1.7;
}

/* 2. ページ最上部の大見出し（H1） */
.page-title {
    font-size: 24px;
    color: var(--main-color);
    border-bottom: 3px solid var(--main-sub-color);
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 16px;
}

/* 3. 導入文（リード文） */
.lead {
    font-size: 15px;
    margin-bottom: 40px;
    color: var(--main-color);
}

/* 4. 各トピックの大見出し（H2） */
.section-title {
    font-size: 18px;
    color: var(--main-color);
    border-left: 5px solid var(--main-color);
    padding-left: 10px;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* 5. 細かい解説の中見出し（H3） */
.sub-title {
    font-size: 18px;
    color: var(--main-sub-color);
    margin-top: 24px;
    margin-bottom: 8px;
}

/* 6. 万能アクセントボックス */
.accent-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--accent-sub-color);
    padding: 16px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

/* 7. テーブルの横スクロール用ラッパー */
.scroll-table {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

/* 8. 次の章へのナビゲーション */
.next-nav {
    text-align: right;
    margin: 30px auto 20px auto;
    background-color: var(--accent-color);
    color: var(--base-color);
    font-weight: 700;
    width: fit-content;
    font-weight: 1.25rem;
    transition: all 0.2s;
    font-size: 18px;
}

.next-nav a {
    display: block;
    padding: 16px 24px;
}

.next-nav:hover {
    background-color: var(--accent-sub-color);
}


table {
    border-collapse: collapse;
}

table,
th,
td {
    border: 3px solid var(--base-color);
}

th,
td {
    background-color: #f8f8f8;
    padding: 8px 16px;
}

li:not(:last-child) {
    margin-bottom: 6px;
}

section {
    margin-bottom: 70px;
}

blockquote {
    background-color: var(--note-bg-color);
    padding: 16px;
    width: fit-content;
    margin: 6px 0 10px;
}

dl div {
    display: flex;
    margin-bottom: 10px;
}

dl dt {
    width: 30%;
    flex-shrink: 0;
    font-weight: 500;
    background-color: #f5cea6;
    padding: 8px;
}

dl dd {
    background-color: #f8f8f8;
    width: 100%;
    padding: 8px;
}


.step-img {
    list-style: none;
    padding-inline-start: 0;
    display: flex;
    gap: 5px;
}

.step-img>li {
    width: calc(100% / 7);
    text-align: center;
    padding: 20px calc(100%/7*0.1 + 10px) 20px 10px;
    background-color: rgb(171, 215, 240);

    display: grid;
    place-content: center;
    clip-path: polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%);
    font-weight: 500;
    font-size: 1.125rem;
}

.final-box {
    text-align: center;
    background-color: #f8f8f8;
    padding: 24px 32px;
    border: 1px solid var(--accent-sub-color);
}

.final-quiz-link {
    background-color: var(--accent-color);
    font-size: 1.25rem;
    padding: 16px 24px;
    font-weight: 700;
    color: #f8f8f8;
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    transition: all 0.2s;
}

.final-quiz-link:hover {
    background-color: var(--accent-sub-color);
}

.step-quiz {
    margin-top: 80px;
    padding: 32px;
    /* background-color: var(--accent2-color); */
    border: 2px solid var(--accent2-color);
    background-color: rgb(243, 229, 211);
}

.step-quiz-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
}

.quiz-text {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
}

.step-quiz input {
    background-color: var(--white);
    border: 1px solid var(--note-bg-color);
    padding: 2px 8px;
}

.step-quiz label {
    display: block;
    margin-bottom: 4px;
}

.step-quiz.step1 ul li {
    margin-bottom: 10px;
}

.check-answer-btn {
    background-color: var(--accent-sub-color);
    color: var(--base-color);
    padding: 16px 24px;
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    width: fit-content;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.result-area {
    width: 100%;
    text-align: center;
    padding: 24px 32px;
    background-color: var(--white);
}

.step-quiz .next-nav {
    margin-right: auto;
    margin-top: 30px;
}

.result-msg {
    font-size: 1.125rem;
    font-weight: 500;
}

/* ヘッダー */
main {
    padding-top: 120px !important;
}

#header {
    width: 100%;
    display: flex;
    /* background-color: white; */
    padding: 20px 16px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
}

.logo img {
    display: block;
    height: 60px;
}

.hb-btn-open {
    width: 40px;
    height: 26px;
    position: relative;
}

.hb-btn-open span {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    background-color: var(--font-color);
    height: 2px;
    width: 100%;
    translate: 0 -50%;
}

.hb-btn-open::before,
.hb-btn-open::after {
    position: absolute;
    height: 2px;
    width: 100%;
    left: 0;
    background-color: var(--font-color);
    content: "";
}

.hb-btn-open::before {
    top: 0;
}

.hb-btn-open::after {
    bottom: 0;
}

body:has(dialog[open]) {
    /* 背景ページのスクロールを止める */
    overflow: hidden;
}

.hb-btn-close {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 20px;
    right: 16px;
    z-index: 900;
}

.hb-btn-close::before,
.hb-btn-close::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--font-color);
    transform-origin: center;
    left: 0;
    top: 50%;
    translate: 0 -50%;
}

.hb-btn-close::before {
    rotate: 45deg;
}

.hb-btn-close::after {
    rotate: -45deg;
}

.hb-menu {
    top: 0;
    max-width: 100%;
    width: 600px;
    max-height: 100vh;
    height: 100vh;
    border: none;
    transition: all 0.2s;

    @starting-style {
        /* ひらき始めは少し上に置く */
        opacity: 0;
        translate: -24px 0;
    }
}

.hb-nav {
    color: var(--font-color);
    padding: 80px 0px;
}

.hb-nav ul {
    list-style: none;
}

.hb-nav li {
    margin-bottom: 0;
}

.hb-nav a {
    display: block;
    padding: 16px 16px;
    border-top: 1px dashed var(--main-sub-color);
    font-size: 1.125rem;
    transition: all 0.1s;
    font-weight: 700;
}

.hb-nav a:hover {
    color: var(--main-color);
}

.hb-nav li:last-child {
    border-bottom: 1px dashed var(--main-sub-color);
}

/* ヘッダーここまで */


/* クイズ */
.quiz-text {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.quiz-block ul {
    margin-bottom: 20px;
}

.quiz-block input {
    width: 5rem;
    background-color: var(--white);
    border: 2px solid var(--note-bg-color);
    padding: 2px 6px;
}

.quiz-block input[type=radio] {
    width: 1rem;
}

.quiz-block {
    font-weight: normal;
    font-size: 1rem;
    margin-bottom: 60px;
}

.quiz-radio-options label {
    display: block;
}

.quiz-image-options {
    display: flex;
    justify-content: space-between;
}

.quiz-image-option {
    width: 47%;
}

.quiz-image-option input:checked+img {
    background-color: #c1e9eb;
}

.quiz-image-option img,
.quiz-image-option label {
    display: block;
}

.quiz-image-option img {
    max-width: 100%;
    padding: 16px;
}

.quiz-select-item {
    margin-bottom: 10px;
}

.quiz-select-item select {
    background-color: var(--white);
    padding: 2px 6px;
    border: 2px solid var(--note-bg-color);
}

#quiz-loading-area {
    text-align: center;
    background-color: var(--white);
    padding: 32px 40px;
    font-size: 1.25rem;
    font-weight: 700;
}

#quiz-result-area {
    display: none;
    background-color: #f5cea6;
    padding: 32px 40px;
    text-align: center;
    border: 1px solid var(--accent-color);
}

.quiz-score-text {
    font-weight: 700;
    font-size: 1.5rem;
}

.quiz-result-img {
    background-color: var(--white);
    display: block;
    width: 300px;
    margin: 0 auto 20px;
}

.check-first-result-area {
    display: none;
    padding: 32px 40px;
    background-color: var(--white);
    text-align: center;
}

.quiz-result-mark {
    margin-left: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

.quiz-result-mark.correct {
    color: #1a6dff;
}

.quiz-result-mark.incorrect {
    color: #ff2020;
}

footer {
    padding: 8px 16px;
}

.copy {
    text-align: center;
    font-size: 0.75rem;
    margin: 0;
}

/* ==========================================
   PC版（画面幅 768px 以上）の微調整
   ========================================== */
@media (min-width: 768px) {
    .container {
        padding: 40px 24px;
    }

    .page-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 22px;
    }
}

/* オリジナルのクラスここまで */

/* sp-design */

@media screen and (max-width:768px) {


    .contents-wrapper {
        width: 90%;
        grid-template-columns: none;
    }

    #hamburger {
        display: block;
    }

    article {
        width: calc(100%);
        background-color: #f8f8f8;
        margin-top: 10vh;
        margin-left: 0;
        padding: 2em;
    }

    .sub-title {
        font-size: 17px;
    }


    /* オリジナルクラス */
    .step-img {
        flex-direction: column;
    }

    .step-img li {
        padding: 20px 10px 25px;
        width: 100%;
        clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 50% 100%, 0% 80%);
    }
}