:root {
    --light__base: #fdfdfe;
    --base__color: #f7f8f8;
    --heavy__base: #dcdddd;
    --font__color: #1b2f44;
    --font__color2: #3e3a39;
    --visited: #9c9c9c;
    --red: #e83828;
    --yellow: #e8dc42;
    --blue: #036eb8;
    --pink: #fe9c9c;
    --white: #ffffff;
    --trans__bg: rgba(255, 255, 255, 0.2);
    --box__shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    --button__gradient: linear-gradient(130deg, #e39f32 1%, #e83327 100%);
    --clump1remTo2rem: clamp(1rem, 0.545rem + 1.94vw, 2rem);
    --clump2remTo4rem: clamp(2rem, 1.273rem + 3.64vw, 4rem);
}

.contents__bg {
    width: 100%;
    height: 200px;
    background-image: url(../images/img/contents__bg.webp);
}

.contents__section {
    width: 100%;
    max-width: 1200px;
    margin: -100px auto 0 auto;
    padding: 1rem 1rem var(--clump2remTo4rem) 1rem;
    display: flex;
    flex-direction: column;
    gap: var(--clump1remTo2rem);
}

.contents__section__inner {
    background: var(--light__base);
    display: flex;
    flex-direction: column;
    gap: var(--clump2remTo4rem);
}

.contents__heading {
    padding: var(--clump1remTo2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contents__heading .roboto {
    font-size: clamp(1.4rem, 1.291rem + 0.55vw, 1.7rem);
    font-weight: 700;
    color: var(--visited);
    letter-spacing: 0.1em;
}

.contents__section h1 {
    font-size: clamp(1.4rem, 1rem + 2vw, 2.5rem);
    font-weight: 700;
}

/* 目次 */

.contents__index {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contents__index__button {
    background: var(--base__color);
    border-radius: 0.5em;
    padding: 0.5em 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.contents__index__button h2,
.contents__index__button span {
    font-size: clamp(1.4rem, 1.255rem + 0.73vw, 1.8rem);
}

.contents__index__button:hover {
    box-shadow: var(--box__shadow);
}

.contents__index__icon {
    transition: transform 0.5s ease;
}

.contents__index__icon.open {
    transform: rotate(180deg);
}

.contents__index__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s;
    margin: 0;
    list-style-type: decimal;
    font-size: clamp(1.1rem, 1.027rem + 0.36vw, 1.3rem);
    font-weight: 700;
    line-height: 1.6em;
    padding: 0 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.contents__index__list a {
    transition: all 0.3s;
}

.contents__index__list a:hover {
    color: var(--blue);
}

.contents__index__list.open {
    max-height: 200px;
}

/* 記事 */

.contents__chapter {
    scroll-margin-top: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--clump2remTo4rem);
}

.contents__chapter h2 {
    padding-left: 1em;
    position: relative;
    background: var(--font__color);
    color: var(--white);
    line-height: 1.6em;
    font-size: clamp(1.3rem, 1.082rem + 1.09vw, 1.9rem);
}

.contents__chapter h2::after {
    content: "";
    width: 0.5em;
    height: 100%;
    background: var(--red);
    position: absolute;
    top: 0;
    left: 0;
}

.contents__chapter__inner {
    display: flex;
    flex-direction: column;
    gap: var(--clump1remTo2rem);
    align-items: center;
}

.contents__chapter__inner h3 {
    width: 100%;
    padding-left: 1em;
    position: relative;
}

.contents__chapter__inner h3::after {
    content: "";
    width: 0.5em;
    height: 100%;
    border-radius: 1em;
    background: var(--blue);
    position: absolute;
    top: 0;
    left: 0;
}

.contents__chapter__inner h4 {
    padding-left: 1.2em;
    position: relative;
}

.contents__chapter__inner h4::after {
    content: "";
    width: 0.8em;
    height: 0.8em;
    background: var(--yellow);
    border-radius: 1em;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.contents__chapter__inner img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contents__chapter__inner p {
    width: fit-content;
}

.contents__chapter__table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contents__chapter__table tr {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1em;
    border-bottom: 1px solid var(--visited);
    font-size: clamp(1rem, 0.927rem + 0.36vw, 1.2rem);
}

.contents__chapter__table tr:nth-child(1) {
    border-top: 1px solid var(--visited);
}

.contents__chapter__table th {
    background: var(--base__color);
    padding: 0.5em;
}

.contents__chapter__table td {
    padding: 0.5em 0;
}

.contents__chapter__text__wrap {
    background: var(--base__color);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

/* .contents__chapter__text__wrap::after {
    content: "";
    width: 0.5rem;
    height: 100%;
    background: var(--yellow);
    position: absolute;
    top: 0;
    left: 0;
} */

/* お問い合わせボタン */

.contents__contact__button {
    width: fit-content;
    padding: 0.5em 1em;
    background: var(--button__gradient);
    color: var(--white);
    border-radius: 0.5em;
    font-size: clamp(1.4rem, 1.255rem + 0.73vw, 1.8rem);
    font-weight: 700;
    box-shadow: var(--box__shadow);
    transition: all 0.3s;
}

.contents__contact__button:hover {
    box-shadow: none;
}

/* ステップ */

.contents__flow {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--clump1remTo2rem);
}

.contents__flow__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.contents__flow__inner::after {
    content: "";
    width: 1rem;
    height: 1rem;
    background: var(--visited);
    border-radius: 1rem;
    position: absolute;
    top: 0;
    left: 0;
}

.contents__flow__inner::before {
    content: "";
    width: 0.2rem;
    height: calc(100% - 1.5rem);
    background: var(--visited);
    position: absolute;
    top: 1.5rem;
    left: 0.35rem;
}

.contents__flow__inner h5 {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.contents__flow__decoration {
    color: var(--visited);
    font-weight: 700;
}