:root {
    /* ベースカラー */
    --base-color: #ffffff;
    --main-color: #296A65;
    --accent-color: #2FAC9E;
    --text-color: #2a2a2a;
    --white: #ffffff;
    --black: #303030;
    --light-gray: #e8e8e8;
    --dark-gray: #838383;
}

/* HTMLのデフォルト設定 */
html {
    font-size: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    /* 全ての要素と擬似要素に適用 */
    margin: 0;
    padding: 0;
}

iframe {
    max-width: 100%;
}


/* 基本スタイル */
html body {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--base-color);
    word-break: break-word;
    overflow-x: hidden;
}

/* メディアクエリ：768px以上の画面向け */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* リンクの基本スタイル */
a:link {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

a:visited {
    color: var(--main-color);
}

a:active,
a:focus {
    color: var(--main-color);
    outline: 2px dashed var(--accent-color);
    outline-offset: 2px;
}

/* 見出しの設定 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    line-height: 1.2;
}

/* リストのスタイルリセット */
ul,
ol,
figure {
    list-style: none;
    padding: 0;
    margin: 0;

}


p {
    margin-bottom: 0;
}


/* header */

.header__top {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width:768px) {
    .header__top {
        flex-direction: column;
    }
}

.header [class*="__list"],
.footer [class*="__list"] {
    display: flex;
    column-gap: 2rem;
    justify-content: center;
    margin-bottom: 0;
}

@media (max-width:768px) {
    .footer [class*="__list"] {
        display: none;
    }
}

/* KV */

.kv {
    background-image: url('../images/kv_pc.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    height: 60vh;
}

/* 768px以下でSP用画像に切り替え */
@media (max-width: 767px) {
    .kv {
        height: 60vh;
        background-image: url('../images/kv_sp.jpg');
    }
}

.kv_content {
    margin-top: -100px;
    padding: 0 1rem;
}


/* セクション */
section {
    padding: 3rem 0;
}

section section {
    padding: 0rem 0 2rem;
}

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
}

/* タイトルスタイル */
.section_title {
    font-family: "Poiret One", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 1rem;
    position: relative;
    height: 5rem;
    width: 100%;
}

.section_title h2[class*="__title"] {
    font-size: 3rem;
    color: var(--main-color);
    text-decoration: underline;
    /* 文字に直接下線を追加 */
    text-decoration-color: var(--accent-color);
    /* 下線の色を指定 */
    text-decoration-thickness: 4px;
    /* 下線の太さ */
    text-underline-offset: 0.7rem;
    /* 下線と文字の間に余白 */
    padding-bottom: 0.5rem;
    /* 下線とテキストの間の余白 */
    letter-spacing: 0.05em;
    /* 読みやすさ向上 */
    position: absolute;
    left: 50%;
    top: 50%;
    /* 縦方向の中央配置 */
    transform: translate(-50%, -50%);
    /* 水平・垂直方向に中央揃え */
}

.section_title p {
    font-size: 5rem;
    color: #2fac9e2a;
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    /* 強制的に改行を防ぐ */
}

/* タイトルのレスポンシブ対応 */
@media (max-width: 768px) {
    section [class*="__title"] {
        font-size: 1.5rem;
    }
}

.sub_title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: "Poiret One", sans-serif;
    font-weight: 400;
    font-style: normal;

}

/* works 背景と位置*/
.works_lp {
    padding: 10rem 0 5rem;
    background: linear-gradient(180deg, #ffffff, #d8ffea, #ffffff, #fdfbda);
}

.works {
    padding: 8rem 0 3rem;
    background: linear-gradient(0deg, #FFFFFF, #ccffe4, #ffffff, #fdfbda);
}

.skills,
.profile,
.contact {
    padding: 8rem 0 3rem;
}

@media (max-width: 768px) {

    .works_lp,
    .works,
    .skills,
    .profile,
    .contact {
        padding: 3rem 0 3rem;
    }
}

.works_banner__item {
    padding: 1rem;
    box-shadow: 2px 2px 3px #b8b8b85a;
}

/* works concept */
.concept {
    position: relative;
    padding: 0rem 1rem;
}

.concept h3,
.concept h4 {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
    color: var(--main-color);
}

.concept ul {
    list-style: circle;
    list-style-position: inside;
}

.works__link a {
    display: block;
    padding: 0.75rem 0;
    text-align: center;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50vh;
    width: 80%;
    margin: auto;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.works__link a:hover {
    background-color: var(--main-color);
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.2);
}





/* footer */
.footer {
    background-color: var(--accent-color);
    padding: 2rem 0;
    color: var(--white);
    position: relative;
}

.back_to_top {
    position: fixed;
    right: 1rem;
    bottom: clamp(1rem, 5vw, 3rem);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.back_to_top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back_to_top a {
    font-size: 1rem;
    width: 45px;
    line-height: 45px;
    text-decoration: none;
    background-color: var(--main-color);
    text-align: center;
    color: var(--white);
    display: block;
    transition: border-radius 0.3s ease-in-out;
    position: relative;
    animation: float 3s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes float {
    0% {
        transform: translateY(-20px);
    }

    50% {
        transform: translateY(20px);
    }

    100% {
        transform: translateY(-20px);
    }
}

.footer a {
    color: var(--white);
}

br.sp {
    display: none;
}

@media (max-width:768px) {
    br.sp {
        display: block;
    }
}