:root {
    /* ベースカラー */
    --base-color: #F9F6F2;
    --main-color: #3cbfdd;
    --secondary-color: #db517d;
    --accent-color: #e7e47c;
    --text-color: #333333;
    --text-sub: #59B0F6;
    --white: #ffffff;
    --black: #303030;
    --light-gray: #e8e8e8;
    --dark-gray: #838383;
    --work-ps: #82CAFF;
    --woek-ai: #EFCF9D;
    --font: "Zen Kaku Gothic New", sans-serif;
    --font-title: "Buda", serif;
}

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

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

iframe {
    max-width: 100%;
}


/* 基本スタイル */
html body {
    font-family: var(--font);
    font-weight: 400;
    font-style: normal;
    font-size: clamp(0.875rem, 0.814rem + 0.26vw, 1rem);
    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(--main-color);
    text-decoration: underline;
}

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

/* a:active,
a:focus {
    color: var(--main-color);
    outline: 2px solid var(--main-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;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
}

/* スクロール時は背景枠あり（白でちょい透明） */
.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .95);
    opacity: 0.7;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

/* スクロール時は文字青 */
.header.fixed .header__link,
.header.fixed .header__top_logo {
    color: var(--text-sub);
}

.header__link,
.header__top_logo {
    color: var(--white);
}

/* スクロール前のＫＶは文字白 */
.header .header__link,
.header .header__top_logo {
    color: #fff;
}

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

    .header.fixed {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        opacity: 1;
    }
}

.header__top_logo {
    display: flex;
    align-items: center;
    gap: 5px
}

.header__top_logo_img {
    width: 55px;
    height: auto;
}


/* ======================================================= */

/* KV */

/* ======================================================= */
.kv {
    position: relative;
}

.kv img {
    display: block;
    width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

/* 768px以下でSP用画像に切り替え */
@media (max-width: 767px) {
    .kv {
        height: 800px;
        overflow: hidden;
    }

    .kv img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}

.kv_content {
    padding: 2rem 0 0;
}

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

section section {
    padding: 1rem 0 5rem;
}

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

/* ========================================= */
/* タイトルスタイル */
/* ========================================= */
.section_title {
    font-family: var(--font-title);
    font-weight: 100;
    font-style: normal;
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 1rem;
    position: relative;
    height: 4rem;
    width: 100%;
}

@media (max-width: 768px) {
    .work-title {
        margin-top: 9rem;
    }
}

.section_title h2[class*="__title"] {
    font-size: 3rem;
    color: #5c5c5c;
    /* 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%);
    /* 水平・垂直方向に中央揃え */
}

/* 文字の先端だけ青色 */
.title-color {
    color: var(--text-sub);
}

.section_title p {
    font-size: 2rem;
    color: #6c6f70e5;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    border-bottom: 4px double var(--main-color);
    /* 強制的に改行を防ぐ */
}

/* タイトルのレスポンシブ対応 */
@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 背景と位置*/
.works_lp {
    padding: 6rem 0 5rem;
    background: linear-gradient(180deg, #f9f6f2, #ecfcff, #f9f6f2, #ecfcff);
}

.works {
    padding: 8rem 0 3rem;
    background: linear-gradient(0deg, #f9f6f2, #ecfcff, #f9f6f2, #ecfcff);
}

.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: 3rem 2rem;
    box-shadow: 2px 2px 3px #b8b8b85a;
}

/* ロゴ */
.works-EL {
    width: 400px;
    height: auto;
}

.ork-AQ,
.works-EL {
    margin-bottom: 10px;
}

.img-fluid {
    width: 600px;
    height: auto;
}

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

.concept h3,
.concept h4 {
    font-family: var(--font);
    font-weight: 300;
    font-style: normal;
    color: #62a7b6;
}

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

.works_un {
    margin-bottom: 11rem;
}

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

.works__link a {
    width: 320px;
    max-width: 100%;
}

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

.works-text,
.works-concept {
    padding-bottom: 0.5rem;
}

.works_banner__item img {
    height: 263px;
    width: auto;
}

/* .works__link {
    border: 1px solid red;
} */

/* =========================== */
/* アプリ */
/* =========================== */

.woeks-app {
    width: 1000px;
    margin: 0 auto;
    margin-top: 100px;
}

.app-item {
    width: 450px;
    height: auto;
    padding: 2rem;
    text-align: center;
    box-shadow: 2px 3px #b8b8b85a;
}

@media (max-width:760px) {
    .woeks-app {
        width: 300px;
        margin: 0 auto;
        margin-top: 100px;
    }

    .app-item {
        width: 300px;
    }

    .app-item img {
        width: 230px;
        height: auto;
    }
}

.app-content {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width:950px) {
    .app-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* クリックでViewMoreが浮かび上がるやつ */
.hover-card {
    background: #fff;
    border: 1px solid #d9e5ef;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(23, 35, 58, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 34px rgba(23, 35, 58, 0.16);
}

.hover-image-text {
    position: relative;
    /* width: 240px; */
    /* aspect-ratio: 16 / 10; */
    overflow: hidden;
    /* background: linear-gradient(135deg, #1f9d8a, #9ee8ff 52%, #17233a); */
    border-radius: 10px;
}

.hover-image-text::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(86, 88, 90, 0.58);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-image-text span {
    position: absolute;
    inset: 50% 0 auto;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-image-text:hover::after,
.hover-image-text:hover span {
    opacity: 1;
}

.hover-image-text:hover span {
    transform: translateY(-50%);
}


/* ================================================== */

/* Skill */

/* ================================================== */

.skill-text {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 300;
    text-align: center;
}

.skill-star {
    color: #4da6ff;
    font-size: 20px;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 30px;
}

.skills img {
    width: 100px;
    height: auto;
}

@media (max-width:760px) {
    .skill-text {
        font-size: 16px;
    }

    .skill-star {
        font-size: 15px;
    }
}

/* =============================================== */

/* Profile */

/* =============================================== */
.profile-box {
    display: flex;
    justify-content: center;
}

.profile-text {
    text-align: left;
    max-width: 500px;
    padding: 0 50px 50px 50px;
}

.profile-img {
    width: 600px;
    height: auto;
}

@media (max-width:950px) {
    .profile-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-img {
        text-align: center;
        width: 400px;
    }

    .profile-text {
        margin-top: 40px;
        text-align: left;
    }

    .profile-text h3 {
        text-align: center;
    }
}

/* ================================================= */

/* Contact */

/* ================================================= */
.contact {
    margin-top: 100px;
    padding-bottom: 150px;
    background-image: url(../img/contct-bg.svg);
    background-repeat: no-repeat;
    background-size: cover;
}

.contact-bg {
    border-radius: 20px;
}

.btn-primary {
    background-color: #68acf0;
    border: none;
}

.contactmail:link {
    color: #ffffff;
}

#contact-title {
    color: #ffffff;
}

@media (max-width:760px) {
    .contact-bg {
        padding-top: 10px;
        padding-bottom: 10px;
    }

}

/* ================================================= */

/* footer */

/* ================================================= */
.footer {
    background-color: #93D9E0;
    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;
    }
}

/* ======================================== */
/* 上に戻るボタン */
/* ======================================== */
.backtoTop {
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.backtoTop a {
    position: fixed;
    right: 0.5rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    color: #F5F3EF;
    background-color: var(--main-color);
    text-decoration: none;
    border-radius: 50vh;
    font-size: 1rem;

}

.backtoTop.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .backtoTop a {
        right: 0.2rem;
        bottom: 1rem;
    }
}

.backtoTop a:hover {
    background-color: #91f6ff;
    transition: all 0.4s ease;
}

/* =========================================================== */

ローディング画面

/* =========================================================== */
#loading {
    background-color: #eee;
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
}

#loading-screen {
    background-color: #f0fcfd;
    position: fixed;
    inset: 0;
    z-index: 9998;
    translate: 0 100vh;
}

#loading p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    margin: 0;
    font-size: 2rem;
    font-family: var(--font);
    /* font-weight: bold; */
    text-align: center;
    z-index: 10000;
    letter-spacing: 0.15em;
}

#loading {
    background-image: linear-gradient(0deg, #bef9f2, #1fe9f0) !important;
    position: fixed;
    inset: 0;
    z-index: 99999;
}