body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    color: #111;
    height: 100%;
}

.background {
    background-image: url("/wp-content/uploads/2025/06/backimage-scaled.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    min-width: 100vw;
}

.paper-background {
    background-image: url("/wp-content/uploads/2025/06/paperbackimage-scaled.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    min-width: 100vw;
}

#colophon.site-footer {
    position: fixed;
    bottom: 0;
    text-align: center;
    font-size: 12px;
    z-index: 1000;
    width: 100vw;
    height: 4%;
    margin-bottom: 6px;
}

.head-wrapper {
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    height: 5%;
    align-items: center; 
    width: 100vw;
    padding-top: 6px;
}


.name-tag {
    height: 100%;
    font-size: 22px;
    color: white;
    letter-spacing: 3px;
    z-index: 10;
    padding-left:1%;
}

.name-tag a {
    text-decoration: none;
    color: white;
}

/* ナビゲーション */
nav {    
    display: flex;
    gap: clamp(0.5px, 2vw, 30px); /* 適度に反応する */
    font-size: clamp(18px, 1.4vw, 22px);
    z-index: 10;
    margin-left: auto;
    padding-right: 1%;
    height: 100%;
}

nav a {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.nav-link {
    position: relative;
    display: inline-block;
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 1.5vh;
    left: 50%;
    width: 90px;
    height: 90px;
    background-image: url('/wp-content/uploads/2024/06/circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    transform: translate(-50%, -30%);
}

/* ホバー時に画像を表示 */
.nav-link:hover::before {
    opacity: 1;
}

li {
    list-style: none;

}

.slide-menu {
    display: none;
}

.hamburger {
    display: none;
}


#loading-overlay {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30000;
    opacity: 1;
    transition: opacity 0.4s ease;
}
  
  /* フェードアウトアニメーション */
.fade-out {
    animation: fadeOut 0.4s ease forwards;
}
  
@keyframes fadeOut {
to {
    opacity: 0;
}
}

.loader-svg {
    width: 140px;
    height: 140px;
    animation: rotate 1.5s linear infinite;
    filter: contrast(280%) brightness(190%);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --------------about----------------- */
.about-box {
    display: flex;
    color: white;
    margin: 0 auto;
    width: 85%;
    max-height: 80vh;
    margin-top: 6vh;
}

.name{
    margin-top: -15%;    
    display: inline-block;
}

.flex1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 45%;
    margin-right: 2%;
}

.about-title-ja {
    font-size: 2.0vh;
    margin: 0;
    white-space: nowrap;
}

.about-subtitle {
    font-size:1.8vh;
    margin: 0;
    white-space: nowrap;
}

.flex2 {
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* スクロールバーのトラック（背景）を透明に */
.about-box::-webkit-scrollbar {
    width: 8px; /* スクロールバーの幅 */
}

.about-box::-webkit-scrollbar-track {
    background: transparent; /* 白い部分を消す */
}

.about-box::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.5); /* スクロールのつまみ色 */
    border-radius: 4px;
}

/* Firefox用 */
.about-box {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 100, 100, 0.5) transparent; /* thumb色 トラック色 */
}

.about-section {
    margin-bottom: 3%;
}

.flex2 h2 {
    font-size: 2vh;
    margin: 0;
}

.flex2 p {
    font-size: 2vh;
    margin: 0;
}

/*----------------artworks------------------*/
.collection {
    display: flex;
    height: 80%;
    margin-top: 5vh;
}

.collection-nav {
    width: 24%;
    box-sizing: border-box;
    margin-left: 2%;
}

.collection-header p {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
    margin-bottom: 16px;
}

.collection-list {
    text-align: left;
}

.collection-list p {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 300;
    color: #333;
}

.collection-list ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.collection-list li {
    padding-left: 0;
    margin-left: 0;
}

.collection-title {
    font-size: 1rem;
    color: #000;
    margin-bottom: 2px;
    position: relative;
    cursor: pointer;
    border-left: 2px solid #000;
    padding-left: 10px;
}

.collection-item {
    margin-bottom: 10px;
}

.collection-sub {
    font-size: 1rem;
    color: #444;
    font-weight: 300;
    margin-left: 0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.5;
}

.collection-wrapper {
    display: flex;
    width: 66%;
    margin-left: 5%;
    margin-top: 2%;
}

.look {
    display: flex;
    justify-content: center;
    position: relative;
    flex-direction: column;
    width: 25%;
    margin-left: 3%;
}

.look .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    filter: brightness(95%) saturate(30%);
    transition: filter 0.3s ease;
    display: block;
    cursor: pointer;
}

.look .main-img:hover {
    filter: brightness(97%) saturate(65%);
}

.badge {
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 50px;
    height: auto;
    z-index: 10;
}

.seal {
    position: absolute;
    top: -340px;
    right: 25%;
    z-index: 10;
    width: 150px;
    opacity: 7;
}

.collection-wrapper .look:nth-of-type(2) .badge {
    width: 60px;
}

/* 画像それぞれに微妙な傾き */
.collection-wrapper .look:nth-of-type(1) .main-img {
transform: rotate(-0.2deg);
}

.collection-wrapper .look:nth-of-type(2) .main-img {
transform: rotate(0.2deg);
}

.collection-wrapper .look:nth-of-type(3) .main-img {
transform: rotate(-0.2deg);
}




.modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25000;
    cursor: pointer;
}

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

.modal-content {
    background: #fff;
    padding: 10px 40px;
    max-width: 80%;
    height: 90%;
    overflow: auto;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.modal-look {
    display: flex;
    height: 100%;
}

.projects-modal-look {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.modal-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-modal-left {
    width: 100%;
    align-items: center;
    justify-content: center;
}

.projects-modal-right-text h2{
    font-size: 2vh;
}

.projects-modal-right-text p {
    font-size: 1.8vh;
}
.modal-left img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.projects-modal-left img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    margin-bottom: 20px;
}

.modal-right {
    width: 50%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-sub-img {
    width: 100%;
    height: auto;
    cursor: pointer;
    object-fit: contain;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.modal:not(.show) .modal-content {
    display: none;
}


/*-------contact---------*/
.contact-page {
    height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 50%;
    margin-top: 8vh;
}

.contact-section {
    height: 100%;
    width: 100%;
}

.contact-section .contact-header {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    color: black;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid black;
    margin: 0;
}

.contact-section .intro {
    font-size: 14px;
    color: black;
    margin-top: 5px;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

.contact-form label {
    font-size: 0.9rem;
}

.form-group {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-weight: 200;
    color: black;
}

.contact-form input,
.contact-form textarea {
    border: none;                /* まず全て消す */
    border-bottom: 1px solid #333; /* 下線だけ残す */
    border-radius: 0;            /* 角丸も消す（iOSやSafari対策） */
    background: transparent;  
    padding: 0.5em 0;
    outline: none;
    width: 100%;
    font-size: 1rem;
    box-shadow: none;            /* 影や内側枠を消す（ブラウザ依存対策） */
    appearance: none;            /* OSやブラウザの独自装飾を無効化 */
}

.contact-form textarea {
    height: 90px;
    resize: none;
}

.contact-form button {
    padding: 10px 14px;
    font-size: 0.95rem;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 200;
    align-self: flex-end;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 5%;
}

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

/*-----------projects------------*/

.projects {
    display: flex;
    height: 90%;
    margin-top: 5vh;
}

.projects-nav {
    width: 24%;
    box-sizing: border-box;
    margin-left: 2%;
}

.projects-header p {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
}

.projects-list {
    text-align: left;
    margin-top: 10%;
}

.projects-list p {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 300;
    color: #333;
}

.projects-list ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.projects-list li {
    padding-left: 0;
    margin-left: 0;
}

.projects-title {
    font-size: 1rem;
    color: #000;
    margin-bottom: 8px;
    border-left: 2px solid #000;
    padding-left: 10px;
}

.projects-sub {
    font-size: 1.2rem;
}

.projects-wrapper {
    display: flex;
    gap: 2rem;
    width: 60%;
    margin-left: 2%;
}

.project-card {
    max-width: 200px;
    max-height: 480px; /* 高さを画面サイズに対して割合指定 */
    background-color: white;
    margin-top: 10%;
    margin-left: 4%;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* スムーズなアニメーション */
}

.project-card:hover {
    cursor: pointer;
    transform: translateY(-2px); /* 上に少し浮かせる */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* 柔らかい影を追加 */
}

.project-card:hover {
    cursor: pointer;
}

.project-info {
    padding: 5px;
}

.project-image {
    width: 100%;
    z-index: 2;
    background-color: #ccc;
    transform: translate(15px, -15px); /* X方向10px、Y方向10px */
}

.project-title {
    font-weight: 600;
    font-size: 18px;
}

.project-description {
    color: #444;
    font-weight: 300;
    font-size: 12px;
}

.project-author {
    color: #666;
    font-size: 12px;
}

.project-date {
    color: #999;
    text-align: right;
}

.modal-look {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.modal-left img {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
}

.modal-right-text {
    max-width: 400px;
    overflow-y: auto;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-author,
.modal-description,
.modal-date {
    margin-bottom: 15px;
    line-height: 1.6;
}

/*---------gallery----------*/

.gallery-wrapper {
    width: 95%;
    height: 90%;
    display: flex;
    flex-direction :column;
    margin-top:5vh;
    max-height: 80vh;
}

.gallery-wrapper img {
    height: auto;
    object-fit: contain;
    margin: 20px;
    padding: 0;
    display: block;
}

.gallery-header {
    width: 70%;
    margin: 0 auto 0 auto;
    border-bottom: 1px solid black;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding-bottom: 4px;
    margin-bottom: 16px;
}

.mood-board {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 95%, transparent 100%);
    mask-mode: match-source;

    width: 70%;
    margin: 0 auto;
    max-height: 70vh;
    direction: rtl;
    overflow-y: scroll;

    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Chrome, Safari */
.mood-board::-webkit-scrollbar {
    width: 8px;
}

.mood-board::-webkit-scrollbar-track {
    background: transparent;
}

.mood-board::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.gallery-top{
    flex-wrap: wrap;
    direction: ltr;    
    padding-bottom: 20px;
}

.gallery-center {
    display: flex;
}

.top-separate {
    display: flex;
    width: 100%;
}

.img-hands {
    width: 60%;
}

.img-drawing {
    width: 50%;
    height: auto;
}

.img-yellow {
    width: 40%;
    height: auto;
}

.img-blue {
    width: 40%;

}

.img-red {
    width: 40%;
}

/* ブレイクポイント：中間 */
@media screen and (max-width: 950px) {

    #colophon.site-footer {
        font-size: 10px;
        height: 4%;
    }
    
    nav {
        display: none;
    }

    .nav-link {
        position: relative;
        display: inline-block;
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 25%;
        width: 90px;
        height: 90px;
        background-image: url('/wp-content/uploads/2024/06/circle.png');
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        transform: translate(-50%, -35%);
    }

    .name-tag {
        height: 100%;
        font-size: 18px;
    }

    .background {
        background-image: url("/wp-content/uploads/2025/08/middle-back-scaled.jpg");
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        min-width: 100vw;
    }

    .paper-background {
        background-image: url("/wp-content/uploads/2025/08/middle-paper-back-scaled.jpg");
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        min-width: 100vw;
    }

    .project-card {
        margin-top: 15%;
    }

    .hamburger {
        position: relative;
        display: flex;
        width: 20px;
        height: 15px;
        cursor: pointer;
        z-index: 20000;
        margin-left: auto;
        margin-right: 2%;
    }
    
    /* 3本線を絶対配置＋トランジション */
    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: black;
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
        transform-origin: center; /* 回転の基点を中央に */
    }
    
    /* 初期位置（上・中・下） */
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }
    
    /* ✖️状態：中央に集めてから回転 */
    .hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
    opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
    bottom: auto;         /* bottom指定を解除 */
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    }
      

    /* ハンバーガーメニュー表示用ナビゲーション */
    .slide-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 150px;
        height: 100vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 1.5rem;
        z-index:10000;
        transition: right 0.5s ease;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    }

    .slide-menu.show {
        right: 0;
    }

    .slide-menu .nav-link {
        font-size: 18px;
        color: black;
        text-decoration: none;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
        z-index: 999; /* メニューより背面にならないように */
        display: none;
    }
    
    /* 表示状態 */
    .overlay.show {
        display: block;
    }

    .contact-section .intro {
        font-size: 14px;
    }

    .contact-page {
        width: 60%;
    }

    .collection-title {
        font-size: 0.9rem;
    }

    .collection-sub {
        font-size: 0.9rem;
    }
    
    .about-title-ja {
        font-size: 1.6vh;
        margin: 0;
    }
    
    .about-subtitle {
        font-size:1.6vh;
        margin: 0;
    }

    .flex2 {
        max-height: 75vh;
    }

    .flex2 h2 {
        font-size: 1.8vh;
        margin: 0;
    }
    
    .flex2 p {
        font-size: 1.8vh;
        margin: 0;
    }
    

}


/* ブレイクポイント：スマホ */
@media screen and (max-width: 700px) {

    #colophon.site-footer {
        font-size: 10px;
        height: 4%;
    }

    .nav {
        display: none;
    }

    .nav-link {
        position: relative;
        display: inline-block;
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 25%;
        width: 80px;
        height: 80px;
        background-image: url('/wp-content/uploads/2024/06/circle.png');
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        transform: translate(-50%, -35%);
    }


    /* ハンバーガーメニュー表示用ナビゲーション */
    .slide-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 150px;
        height: 100vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 1.5rem;
        z-index:10000;
        transition: right 0.5s ease;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    }

    .slide-menu.show {
        right: 0;
    }

    .slide-menu .nav-link {
        font-size: 18px;
        color: black;
        text-decoration: none;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
        z-index: 999; /* メニューより背面にならないように */
        display: none;
    }
    
    /* 表示状態 */
    .overlay.show {
        display: block;
    }

    nav {
        display: none;
    }

    .name-tag {
        height: 100%;
        font-size: 14px;
        margin-left: 1%;
        margin-top: 1vh;
        letter-spacing: 2px;
    }
    

    .background {
        background-image: url("/wp-content/uploads/2025/08/mobile-back-scaled.jpg");
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        min-width: 100vw;
    }

    .paper-background {
        background-image: url("/wp-content/uploads/2025/08/mobile-paper-back-scaled.jpg");
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        min-width: 100vw;
    }

/*---------about------------*/

    .about-box {
        display: block;
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 3vh;
        max-height: 75vh;
        direction: rtl;
    }

    .about-box > * {
        direction: ltr;
    }

    .flex1 {
        width: 100%;
    }

    .flex2 {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .name {
        margin-left: 0;
        margin-top: 0;
        text-align: center;
    }

    .about-title-ja {
        font-size: 1.8vh;
    }

    .about-section {
        width: 100%;
    }

    .about-subtitle {
        font-size: 1.8vh;
        margin-top: -1%;
    }

    .flex2 {
        margin-top: 1.2rem;
        padding: 0 1rem;
    }

    .flex2 h2 {
        font-size: 1.6vh;
    }

    .flex2 p {
        font-size: 1.4vh;
    }

/*------collection--------*/

    .collection {
        display: block;
        width: 95%;
        margin: 0 auto;
    }

    .collection-header p {
        padding-bottom: 0;
        margin-bottom: 0;
        font-size: 0.8rem;
    }
    
    .collection-nav {
        width: 80%;
    }

    .collection-list {
        margin-top: 3%;
    }

    .collection-list p {
        font-size: 0.8rem;
        font-weight: 300;
        color: #333;
        margin: 0;
    }
    

    .collection-title {
        font-size: 0.8rem;
        color: #000;
        position: relative;
        cursor: pointer;
        border-left: 2px solid #000;
        padding-left: 10px;
    }

    .collection-sub {
        font-size: 0.8rem;
        color: #444;
        font-weight: 300;
        margin-left: 0;
        font-family: 'Noto Sans JP', sans-serif;
        line-height: 1.5;
    }

    .collection-wrapper {
        width: 90%;
        margin: 0;
        justify-content: space-evenly;
    }

    .look {
        width: 28%;
        margin: 0;
    }

    .badge {
        width: 30px;
    }

    .collection-wrapper .look:nth-of-type(2) .badge {
        width: 40px;
    }

/*---------collection---------*/

    .projects {
        width: 95%;
        margin: 0 auto;
    }

    .projects-header p {
        padding-bottom: 0;
        margin-bottom: 0;
        font-size: 0.8rem;
    }
    
    .projects-nav {
        width: 30%;
    }

    .projects-list {
        margin-top: 3%;
        margin-right: 12%;
    }

    .projects-list p {
        font-size: 0.8rem;
        font-weight: 300;
        color: #333;
        margin: 0;
    }

    .projects-title {
        font-size: 0.6rem;
        color: #000;
        position: relative;
        cursor: pointer;
        border-left: 2px solid #000;
        padding-left: 5px;
        white-space: nowrap;
    }

    .projects-wrapper {
        width: 50%;
        margin-top: 30px;
    }

    .project-card {
        max-width: 180px;
        max-height: 440px;
        background-color: white;
        margin-top: 14%;
        margin-left: 4%;
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* スムーズなアニメーション */
    }
    
    .project-title {
        font-weight: 600;
        font-size: 16px;
    }

/*--------gallery--------*/
    .top-separate {
        display: block;
    }

    .img-hands {
        width: 100%;
    }
    
    .img-drawing {
        width: 100%;
        height: auto;
    }
    
    .img-yellow {
        width: 100%;
        height: auto;
    }
    
    .img-blue {
        width: 100%;
        height: auto;
    }

    .img-red {
        width: 100%;
        height: auto;
    }


    .gallery-center {
        display: flex;
        flex-direction: column;
        justify-content: center; /* ← 中央揃え */
        align-items: center;     /* ← 垂直中央揃え（高さがある場合） */
    }

    .gallery-header {
        font-size: 1rem;
    }

    .gallery-wrapper {
        margin-top:3vh;
    }

    .gallery-top{
        padding-bottom: 0;
    }


    /*--------modal--------*/
    
    .modal-content {
        max-width: 60%;
        height: 80%;
    }

    .modal-left {
        width: 50%;
        margin: 30px auto 0 auto; /* 上:1rem、左右:自動、下:0 */
    }

    .modal-left img {
        max-width: 100%; /* スマホでは全幅表示 */
        height: auto;
    }

    .modal-right-text {
        max-width: 100%;
        padding: 1rem; /* 余白追加（任意） */
    }

    .modal-title {
        font-size: 20px; /* フォントサイズ調整（任意） */
    }

    .modal-author,
    .modal-description,
    .modal-date {
        font-size: 14px; /* テキストサイズ調整（任意） */
    }

    /*--------contact--------*/

    .contact-section .intro {
        font-size: 12px;        
    }

    .contact-page {
        width: 65%;
    }

    .contact-section .contact-header {
        font-size: 1rem;
    }

    /*--------projects--------*/

    .projects-modal-left img {
        max-height: 30vh;
    }

}
