/*
Theme Name: やお「こころの色展」テーマ
Theme URI: https://www.instagram.com/tomoiro_links/
Author: TomoIro Links
Author URI: https://www.instagram.com/tomoiro_links/
Description: やお「こころの色展」公式Webサイト用のオリジナルWordPressテーマです。Tailwind CSSとインタラクティブなアニメーション機能を搭載しています。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, one-column, accessibility-ready
*/

/* ==================================================
   1. BASE STYLES
   ================================================== */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #d1d5db;
    color: #374151;
    overflow-x: hidden;
    margin: 0;
}
.font-heading {
    font-family: 'Kiwi Maru', 'Noto Sans JP', serif;
}

/* ==================================================
   2. HEADER
   ================================================== */
/* 固定ヘッダー */
.site-header,
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 64px;
    z-index: 9999;
}
/* ヘッダーの影 */
.site-header {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* ヘッダー内の高さ */
.site-header > div:first-child,
header > div:first-child {
    height: 80px !important;
}
/* ヘッダー固定によるコンテンツの隠れ防止 */
body {
    padding-top: 80px;
}

/* ==================================================
   3. PC HEADER NAVIGATION
   ================================================== */
header nav {
    display: flex;
    align-items: center;
    gap: 16px !important;
}
/* PC用画像ボタン */
.nav-image-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 125px;
    height: 50px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}
/* PC用画像 */
.nav-image-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
}
/* PCナビ ホバー */
.nav-image-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/*==================================================
   4. 旧GLOW BUTTON
  ==================================================*/
.glow-btn {
    position: relative;
    border: 2px dashed #a7f3d0;
    border-radius: 9999px;
    transition: all 0.4s ease;
    box-shadow:
        0 0 5px rgba(167, 243, 208, 0.2);
}
.glow-btn:hover {
    border-color: #34d399;
    box-shadow:
        0 0 18px rgba(52, 211, 153, 0.8),
        0 0 30px rgba(52, 211, 153, 0.5);
    background-color: rgba(52, 211, 153, 0.15);
    transform: translateY(-2px);
    color: #ffffff;
}

/*==================================================
   5. MOBILE HAMBURGER MENU
  ================================================== */
/* スマホメニュー */
#mobile-menu {
    width: 100%;
    box-sizing: border-box;
}
/* スマホメニュー 2列 */
.nav-menu-list,
.drawer-nav-list {
    display: grid !important;
    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 12px !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
}
/* スマホメニュー各項目 */
.nav-menu-list li,
.drawer-nav-list li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
/* スマホ用画像ボタン */
.mobile-nav-image-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}
/* スマホ画像 */
.mobile-nav-image-btn img {
    display: block !important;
    width: 100% !important;
    max-width: 140px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}
/* スマホ ホバー */
.mobile-nav-image-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}
/* 5個目を2列分にする */
.nav-menu-list li:last-child:nth-child(odd),
.drawer-nav-list li:last-child:nth-child(odd) {
    grid-column: span 2 !important;
}
/* スマホメニューの下段だけ小さくする */
.nav-menu-list li:nth-child(5) .mobile-nav-image-btn img {
    max-width: 100px !important;
}

/*==================================================
   6. PHOTO SLIDESHOW
  ==================================================*/
@keyframes marquee-right {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}
.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/*==================================================
   7. ROTATING IMAGE / MANDALA
  ================================================== */
@keyframes spin-clockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes spin-counterclockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}
/* 時計回り */
.spin-cw {
    animation:
        spin-clockwise 20s linear infinite;
}
/* 反時計回り */
.spin-ccw {
    animation:
        spin-counterclockwise 20s linear infinite;
}

/*==================================================
  8. SCROLL REVEAL
  ================================================== */
.reveal-left {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 2s ease,
        transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.show {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 2s ease,
        transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.show {
    opacity: 1;
    transform: translateX(0);
}
.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

/* ==================================================
   9. CARD
   ================================================== */
.rounded-card {
    background-color: #9ca3af;
    border-radius: 1.5rem;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.bg-custom-green {
    background-color: #34d399;
}

/* ==================================================
   10. COLOR CHANGING CARD
   ================================================== */
.color-changing-card {
    animation:
        colorChange 15s ease-in-out infinite;
}

@keyframes colorChange {
    0% {
        background-color: #d6d696;
    }
    16% {
        background-color: #7d9e7a;
    }
    33% {
        background-color: #a0dee0;
    }
    50% {
        background-color: #91aae2;
    }
    66% {
        background-color: #9c86b7;
    }
    83% {
        background-color: #eab5c6;
    }
    100% {
        background-color: #d6d696;
    }
}

/* ==================================================
   11. FULL WIDTH SECTION
   ================================================== */
.full-width-section {
    width: 100vw;
    margin-left:
        calc(50% - 50vw);
    margin-right:
        calc(50% - 50vw);
}

/* ==================================================
   14. VERY SMALL MOBILE
   ================================================== */
@media (max-width: 400px) {
    .nav-menu-list,
    .drawer-nav-list {
        gap: 8px !important;
        padding: 8px !important;
    }
    .mobile-nav-image-btn img {
        max-width: 150px !important;
    }
}

/* ==================================================
   15. メニューバーの調整
   ================================================== */
#concept,
#works,
#access,
#contact {
    scroll-margin-top: 50px;
}

/*==================================================
   16.スライドショー画像モーダル
  ==================================================*/
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}
/* モーダルを表示 */
.gallery-modal.is-open {
    display: flex;
}
/* 拡大画像 */
.gallery-modal img {
    display: block;
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ==================================================
   閉じるボタン
   ================================================== */
.gallery-close {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 100001;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* ==================================================
   前へ・次へボタン
   ================================================== */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100001;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 255, 255, 0.4);
}
/* 左ボタン */
.gallery-prev {
    left: 25px;
}
/* 右ボタン */
.gallery-next {
    right: 25px;
}

/* ==================================================
   画像クリックできることを分かりやすくする
   ================================================== */
.animate-marquee img {
    cursor: pointer;
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}
.animate-marquee img:hover {
    filter: brightness(1.08);
}

/* ==================================================
   スマホ
   ================================================== */
@media (max-width: 767px) {
    /* モーダル全体 */
    .gallery-modal {
        padding: 20px 60px;
        box-sizing: border-box;
    }
    /* モーダル画像を小さくする */
    .gallery-modal img {
        max-width: 75vw;
        max-height: 75vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    /* 閉じるボタン */
    .gallery-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    /* 前へ・次へボタン */
    .gallery-prev,
    .gallery-next {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }
    /* 左ボタン */
    .gallery-prev {
        left: 8px;
    }
    /* 右ボタン */
    .gallery-next {
        right: 8px;
    }
}
/* ==================================================
   作品紹介 モーダル
   ================================================== */

.works-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 99999;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.88);

    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;
}

/* 表示状態 */
.works-modal.is-open {
    display: flex;
}


/* モーダル中央 */
.works-modal-content {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    max-width: 85vw;
    max-height: 90vh;

    text-align: center;
}


/* 画像 */
.works-modal-content img {
    display: block;

    max-width: 80vw;
    max-height: 78vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6);
}


/* タイトル */
.works-modal-title {
    margin-top: 15px;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.6;

    text-align: center;
}


/* ==================================================
   閉じるボタン
   ================================================== */

.works-modal-close {
    position: absolute;

    top: 20px;
    right: 25px;

    z-index: 100001;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.2);

    color: #ffffff;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;
}

.works-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}


/* ==================================================
   前後ボタン
   ================================================== */

.works-modal-prev,
.works-modal-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 100001;

    width: 60px;
    height: 60px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.2);

    color: #ffffff;

    font-size: 42px;
    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;
}

.works-modal-prev:hover,
.works-modal-next:hover {
    background: rgba(255, 255, 255, 0.4);
}


/* 左 */
.works-modal-prev {
    left: 25px;
}


/* 右 */
.works-modal-next {
    right: 25px;
}


/* ==================================================
   スマホ
   ================================================== */

@media (max-width: 767px) {

    .works-modal {
        padding: 20px 60px;
    }

    .works-modal-content {
        max-width: 75vw;
        max-height: 85vh;
    }

    .works-modal-content img {
        max-width: 75vw;
        max-height: 70vh;
    }

    .works-modal-title {
        font-size: 14px;
        margin-top: 10px;
    }

    /* 閉じる */
    .works-modal-close {
        top: 10px;
        right: 10px;

        width: 45px;
        height: 45px;

        font-size: 28px;
    }

    /* 前後ボタン */
    .works-modal-prev,
    .works-modal-next {
        width: 42px;
        height: 42px;

        font-size: 30px;
    }

    .works-modal-prev {
        left: 8px;
    }

    .works-modal-next {
        right: 8px;
    }
}