@charset "UTF-8";

html {
    scroll-padding-top: 90px;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    list-style-type: none;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

/* ------- 共通 ------- */
body {
    background-color: #fff;
    font-family: "M PLUS 1p", sans-serif;
    color: #666;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.w-container {
    width: min(92%, 1166px);
    margin: auto;
}

.heading-decration {
    text-align: center;
    font-size: clamp(30px, 3vw, 40px);
    min-height: 0vw;
    font-weight: 400;

}

.heading-decration::after {
    display: block;
    content: '';
    width: 150px;
    height: 0px;
    border-top: solid 1px #ff70a5;
    margin: 0.2em auto 0;
}

.title {
    margin-top: clamp(90px, 15vw, 150px);
    text-align: center;
}

.desc {
    text-align: center;
    margin-top: 60px;
}

h3 {
    text-align: center;
}

p {
    margin: 15px;
}

.obi {
    height: 110px;
    background-color: rgba(111, 236, 255, 0.8);
}

/* ------- ヘッダー ------- */
.header {
    height: 110px;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header img {
    width: 30px;
    filter: drop-shadow(2px 2px 4px #00FEFF);
}

/* ------- ヘッダーここまで ------- */

/* ------- ナビゲーションボタン ------- */
.nav ul li {
    letter-spacing: 0.1em;
}

.navbtn {
    padding: 0;
    outline: none;
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: #fff;
    font-size: 30px;
}

.open .navbtn {
    z-index: 110;
    color: #fff;
}

.navbtn .fa-bars {
    display: revert;
}

.open .navbtn .fa-bars {
    display: none;
}

.navbtn .fa-times {
    display: none;
}

.open .navbtn .fa-times {
    display: revert;
}

.nav {
    position: fixed;
    inset: 0 -100% 0 100%;
    z-index: 100;
    background-color: #ff70a5;
    opacity: 0.9;
    transition: transform 0.3s;
}

.open .nav {
    transform: translate(-100%, 0);
}

.open body {
    position: fixed;
    overflow: hidden;
}

.nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 40px;
    color: #fff;
}

/* ------- ナビゲーションボタン PC版設定 ------- */
@media (min-width: 768px) {
    .nav {
        position: static !important;
        background: none !important;
    }

    .navbtn {
        display: none;
    }

    .nav ul {
        flex-direction: row !important;
        gap: 2rem;
        padding: 0;
        margin: 0;
    }

    .nav a {
        color: #fff;
        font-weight: 600;
        text-shadow: 1px 1px 2px #00FEFF;
    }
}

/* ------- ナビゲーションボタンここまで ------- */

/* ------- ヒーロー ------- */
.hero {
    height: 650px;
    background-image: url(../img/bg.webp);
    background-position: center;
    background-size: cover;
    position: relative;
}

.hero-container {
    display: grid;
    justify-items: center;
    align-content: center;
    height: 100%;
}

.hero img {
    margin-bottom: 42px;
    max-width: 60%;
    width: 900px;
}

.hero p {
    margin-bottom: 72px;
    font-weight: 400;
    font-size: clamp(14px, 4.5vw, 22px);
    color: #fff;
    text-shadow: 1px 1px 2px #00FEFF;
    font-family: serif;
}

@media (min-width: 768px) {
    .hero {
        height: 700px;
    }
}

/*Scrollの位置調整*/
.scrolldown {
    position: absolute;
    width: 10%;
    height: 18%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #FFF;
    text-align: center;
}

/*Scrollを促す縦線*/
.scrolldown span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 5.0rem;
    background: #FFF;
    animation: scroll 2s ease-in-out infinite;
}

/*アニメーション*/
@keyframes scroll {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }

    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }

    51% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }

    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}

/* ------- ヒーローここまで ------- */

/* ------- コンセプト ------- */
.concept h2 {
    margin: 60px auto 30px;
    text-align: center;
    font-weight: 100;
    font-family: serif;
}

.concept p {
    line-height: 1.5;
    text-align-last: left;
}

.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s, transform 1s;
}

.fade.active {
    opacity: 1;
    transform: translateY(0px);
}

/* ------- コンセプト PC版設定------- */
@media (min-width: 768px) {
    .concept p {
        text-align: center;
        text-align-last: center;
    }
}

/* ------- コンセプトここまで ------- */

/* ---- about ---- */
.line-img {
    width: 50%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

.catch .line-img img {
    height: auto;
    transition: transform 0.6s ease;
    width: 100%;
}

.catch .line-img:hover img {
    transform: scale(1.1);
}

.line-img01 {
    width: 60%;
    max-width: 400px;
}

/* ---- works ---- */
.image-list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.image-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin: auto;
}

/* ------- フッター ------- */
footer {
    margin-top: 150px;
    height: 300px;
    background-color: rgba(111, 236, 255, 0.8);
    padding: 60px 0;
    color: #fff;
}

.footer-container {
    gap: 50px;
}

.footer-img {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.footer-img a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-img img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 30px;
    font-weight: 300;
}

.footer-sns {
    margin: 20px auto;
    text-align: center;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-copy {
    font-size: small;
    margin-top: 20px;
    text-align: center;
}

/* ------- フッターここまで ------- */

/* ------- about.html ------- */
/* ノート風 */
.cstm-box-notebook {
    margin: clamp(5em, 15vw, 10rem) auto;
    /* 外側余白 */
    padding: 5em 1em 1em;
    /* 内側余白（上・左右・下） */
    position: relative;
    background: #f4f3f2;
    /* 背景色（ノート風の淡い色） */
    max-width: 900px;
    /* 最大幅 */
}

.cstm-box-notebook::before {
    content: '';
    position: absolute;
    inset: 0.5em 0 0 0;
    /* 上から0.5em、左右と下を0に */
    margin: 0 auto;
    /* 水平方向中央揃え */
    width: 95%;
    /* ドット線の横幅 */
    border-top: dotted 10px #fff;
    /* ドット線（太さ10px、白） */
    pointer-events: none;
    /* クリックを透過 */
}

.cstm-box-notebook h3 {
    margin-bottom: 30px;
}

.cstm-box-notebook p {
    text-align: left;
    text-align: justify;
    line-height: 1.5;
}

.cstm-box-notebook span {
    background: linear-gradient(transparent 60%, #ff6 60%);
}

/* フォーム全体 */
.contact p {
    text-align: center;
}

.contact-link {
    text-align: center;
    font-weight: bold;
    margin-top: 90px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 1rem auto;
}

/* テキスト入力・メール・テキストエリア */
.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

/* ボタン */
.contact button {
    padding: 0.7rem;
    font-size: 1rem;
    background-color: rgba(111, 236, 255, 0.9);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #ff70a5;
}

/* 完了メッセージ */
#formNotice {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    text-align: center;
}

.btn-contact {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: rgba(111, 236, 255, 0.9);
    /* ポートフォリオのテーマ色 */
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: #ff70a5;
}

/* ------- about.htmlここまで ------- */

/* ------- study.thml ------- */
.study .text01 {
    text-align-last: left;
    line-height: 1.5;
}

.box {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: auto;
}

.box img {
    width: clamp(100px, 30%, 350px);
    height: auto;
    object-fit: contain;
}

/* モーダル背景 */
.modal {
    display: none;
    /* 最初は非表示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

/* モーダル内の画像 */
.modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80%;
}

/* 閉じるボタン */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* ------- study.html PC版設定 ------- */
@media (min-width: 768px) {
    .study .text02 {
        text-align: center;
        text-align-last: center;
    }
}

/* ------- study.thmlここまで ------- */

/* ------- works.html ------- */
.posts-container {
    margin-top: clamp(90px, 15vw, 120px);
}

.works .image {
    margin-top: 10px;
    width: 90%;
}

.works h3 {
    margin: 10px auto;
}

.post {
    margin: 30px auto;
    display: block;
}

.glightbox-empty {
    display: none;
}

/* ------- works.html PC版設定 ------- */
@media (min-width: 768px) {
    .post {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 20px;
    }

    .post img {
        max-width: 400px;
        height: auto;
    }

    .reverse {
        flex-direction: row-reverse;
    }
}

@media(min-width:1024px) {
    .post {
        display: flex;
        align-items: center;
        gap: 60px;
        margin: 40px auto;
    }

    .post img {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
}

/* ------- works.htmlここまで ------- */