/* ------------------------------
  Base: 色・余白・タイポ
------------------------------ */
:root {

    --mv: #101619;
    --bg: #f5ecdf;
    --orange: #E6A68A;
    --blue: #bfe2f4;
    --yellow: #F3ED9A;
    --pink: #f8cfd7;
    --ink: #222;
    --green: #A6CDCC;
    --gray: #D9D9D9;
    --card-stroke: #4a4d50;
    --sk: transparent;

    --radius: 18px;
    --header-h: 80px;

    --step-x: clamp(12px, 3vw, 48px);
    --offset-y: clamp(-280px, -20vw, -160px);
    --lift-x: clamp(-8px, -1.5vw, -20px);
    --lift-y: clamp(-40px, -7vw, -100px);
    --list-drop: clamp(10px, 2vw, 24px);

    /* fluid type */
    --fz-xs: clamp(10px, .75vw, 12px);
    --fz-sm: clamp(12px, 1vw, 14px);
    --fz-md: clamp(14px, 1.2vw, 16px);
    --fz-lg: clamp(18px, 1.8vw, 22px);
    --fz-xl: clamp(24px, 3.4vw, 40px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    /* border: none; */
    padding: 0;
    font: inherit;
}

html,
body {
    height: 100%;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

html,
body {
    overflow-x: clip;
}

/* or hidden */

body {
    display: grid;
    grid-template-rows: 1fr auto;
    font-family: "futura-pt-bold", sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    letter-spacing: 0.06em;
    margin-inline: auto;
    /* max-width: 1200px; */
    /* padding: 1rem; */
}

html {
    scroll-behavior: smooth;
}

@media (width >=768px) {
    body {
        font-size: 16px;
    }
}

a {
    color: #333;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

ul,
ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* =========================
  HEADER (single source of truth)
========================= */

/* ヘッダー本体 */
header.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: transform .25s ease;
    /* will-change: transform; */
}

/* 下スクロールで隠す（JSで付け外し） */
header.header.is-hide {
    transform: translateY(-110%);
}

/* メニュー展開中は隠さない（操作不能防止） */
body.is-open header.header.is-hide {
    transform: translateY(0);
}

/* 内枠（最大幅＋右寄せ） */
.header__inner {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    gap: 12px;
}

/* =========================
  HAMBURGER BUTTON
========================= */

.header__button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    margin-right: 1rem;
}

@media (min-width: 1000px) {
    .header__button-wrapper {
        display: none;
    }
}

.header__button {
    position: relative;
    z-index: 1100;
    /* header_nav(overlay)より上 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 45px;
    border: none;
    background: transparent;
}

.header__button span {
    position: relative;
    display: block;
    width: 45px;
    height: 6px;
    background: var(--card-stroke);
}

.header__button span::before,
.header__button span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background: inherit;
    transition: all .3s ease;
}

.header__button span::before {
    top: -15px;
}

.header__button span::after {
    top: 15px;
}

body.is-open .header__button span {
    background: transparent;
}

body.is-open .header__button span::before,
body.is-open .header__button span::after {
    top: 0;
    background: var(--card-stroke);
}

body.is-open .header__button span::before {
    rotate: 45deg;
}

body.is-open .header__button span::after {
    rotate: -45deg;
}

.header__button-wrapper p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    line-height: 1.2rem;
    text-shadow: 3px 5px var(--pink);
}

/* =========================
  NAV OVERLAY (SP) / INLINE (PC)
========================= */

/* SP：全画面オーバーレイ */
.header_nav {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    justify-content: center;
    background: #fff;

    transition: translate .3s ease;
    translate: 100% 0;
    /* ← 閉じてる時は画面外 */
}

body.is-open .header_nav {
    translate: 0 0;
    /* ← 開いたら出る */
    z-index: 20;
}

/* PCでは常時表示（横並び） */
@media (width >=1000px) {
    .header_nav {
        position: static;
        inset: auto;
        translate: none;
        flex-direction: row;
        background: transparent;
        justify-content: flex-end;
        align-items: center;
        gap: 1.2rem;
        z-index: 20;
    }
}

/* =========================
  MENU LIST (wp_nav_menu)
========================= */

.navigation {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    justify-content: center;

    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 900;
}

@media (min-width: 1000px) {
    .navigation {
        flex-direction: row;
        gap: 1.2rem;
    }
}

.navigation a {
    text-decoration: none;
    font-weight: 900;
}

/* iOS Safari のタップ時ハイライト（青）を消す */
a,
button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* タップ後に残る青いフォーカス枠を抑える（iOS対策） */
a:focus,
button:focus {
    outline: none;
}

/* キーボード操作のときだけフォーカスを見せる（PC/外付けKB向け） */
a:focus-visible,
button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* iOSのリンクフォーカスで背景が付くのも抑える */
a:active {
    background-color: transparent;
}


/* =========================
  SEARCH FORM (in menu)
========================= */

.header_info--inmenu {
    display: flex;
    align-items: center;
}

@media (min-width: 1000px) {
    .header_info--inmenu {
        margin-left: .8rem;
    }
}

.header_search {
    position: relative;
    display: flex;
    align-items: center;
}

.header_search>input {
    width: 100%;
    max-width: 260px;
    padding: 10px 35px 10px 15px;
    border: 1px solid #000;
}

.header_search>button {
    margin-left: -30px;
    border: none;
    background: transparent;
}

/* Font Awesome 保険（iOS向けも含む） */
.header_search button i.fa-solid,
.header_search button i.fa-magnifying-glass {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}


/* .footer */

.footer {
    width: 100%;
    padding: 1em;
    min-height: 100px;
}

.footer__text {
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 300;
    text-align: center;
}


/*.breadcrumb   */
/* パンくず全体の文字サイズ調整 */
.breadcrumb {
    font-size: 0.85rem;
}

.breadcrumb {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.7rem;
    }
}

.breadcrumb_inner {
    line-height: 1.4;
}

.breadcrumb_inner>span {
    margin: 0 0.25em;
}

/* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
/* body */

/* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */


body.top,
body.profile {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
}

/* 背景レイヤー */
body.top::before,
body.profile::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-position: center center;
    background-size: cover;
    /* ← 縮尺は常に一定 */
    background-repeat: no-repeat;

    opacity: 1;
    transition: opacity 1.8s ease;
    /* ← ゆったり */
}

/* フェードアウト中 */
body.is-fading::before {
    opacity: 0;
}


body.top {
    color: #fff;
}

body.top .header__button span {
    background-color: #fff;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
}

@media (width >=768px) {
    body.top .navigation__link {
        color: #fff;
        text-shadow: -10px 12px 0 #000;

    }
}

@media (width < 768px) {
    .hide-sp {
        display: none !important;
    }
}

@media (width >=768px) {
    .hide-pc {
        display: none !important;
    }
}




body.top .header__button span {
    background-color: #fff;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
}

body.is-open .header__button span {
    background: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
}

/* .main-visual */











.main__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    margin-inline: auto;
    margin-top: 6rem;
    position: relative;
    z-index: 1;
}

.main__title {
    margin-bottom: 1rem;
    font-family: "futura-pt-bold", sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 30px;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



.main__subTitle {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    font-size: 18px;
    text-align: center;
}

.main__subTitle span {
    display: flex;
    align-items: center;
}

.main__subTitle span::before {
    display: block;
    width: 1px;
    height: 15px;
    margin-block-end: -3px;
    margin-inline: 1em;
    content: "";
    background-color: #333;
}

main {
    padding: 1rem;
}

.main {
    width: 100%;
    height: 100%;
    padding: 50px 20px;
}

.main-visual {
    width: 100%;
    height: 100%;
    padding: 0;

}

@media (width >=768px) {
    .main {
        display: flex;
        padding: 50px;
        /* overflow-y: auto; */
    }

    .main-visual {
        width: 100%;
        height: 100%;
        padding: 0;

    }
}

/* =========================
   Main Visual (slideshow)
========================= */

.main-visual {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;

    /* 旧: background-image直差し替えは使わないので不要 */
    background: #000;
    /* 読み込み中の保険（任意） */
}



.front__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-top: 6rem;
    /* position: relative; */
    z-index: 1;
}

/* 2枚の背景レイヤー（JSが作る） */
.main-visual .mv-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 2500ms ease;
    will-change: opacity;
    z-index: 0;
}

.main-visual .mv-bg.is-active {
    opacity: 1;
}

/* 文字・タイトル類を乗せるレイヤー */
.main-visual .mv-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* クリック不要ならON。必要なら外す */
}

/* ・・///////////////////////////////// */
/* .topTitle {
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
}

.topTitle__image {
    width: 20vmax;
    height: auto;

    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));

}

.topTitle {
  position: relative;
}

.topTitle__image {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
} */



/* .topTitle {
    position: relative;
} */

/* ===== タイトル（画像）===== */
/* ===== タイトル（画像）===== */
.topTitle {
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    top: 48%;
    margin: 0;
}

/* 初期：ロゴは見せない・動かさない */

/* サイズは常に効かせる（is-ready 依存にしない） */
.topTitle__image{
  width: var(--h1-w, auto);
  max-width: none;            /* リセットCSSの max-width:100% 対策 */
  height: auto;
    --h1-y-use: var(--h1-y, 0);
  transform: translate3d(0, var(--h1-y-use, 0), 0);

  /* チラ見え対策：初期は隠す */
  opacity: 0;
  animation: none;
}

/* SP */
@media (max-width: 767px){
  .topTitle__image{
    width: var(--h1-w-sp, var(--h1-w, auto));
    --h1-y-use: var(--h1-y-sp, var(--h1-y, 0));
  }
}

/* is-ready になったらアニメ開始・表示 */
body.is-ready .topTitle__image{
    width: var(--h1-w, var(--h1-w-sp, auto));
  --h1-anim-use: var(--h1-anim, h1-fade-up);
  animation-name: var(--h1-anim-use, h1-fade-up);
  animation-duration: var(--h1-dur, 1.2s);
  animation-timing-function: var(--h1-ease, ease);
  animation-fill-mode: forwards;
}

/* SP のアニメ名 */
@media (max-width: 767px){
  body.is-ready .topTitle__image{
    --h1-anim-use: var(--h1-anim-sp, var(--h1-anim, h1-fade-up));
  }
}


/* ===== アニメーション（transform と位置調整を共存させる）===== */

/* fade-up：Y位置調整を足し込む */
@keyframes h1-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, calc(20px + var(--h1-y-use, 0)), 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }
}

/* scale-in：scale + Y位置調整を合成 */
@keyframes h1-scale-in {
    from {
        opacity: 0;
        transform: translate3d(0, var(--h1-y-use, 0), 0) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0) scale(1);
    }
}


/* slide-left：X移動 + Y位置調整を合成 */
@keyframes h1-slide-left {
    from {
        opacity: 0;
        transform: translate3d(30px, var(--h1-y-use, 0), 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }
}


/* slide-right（右からスッ） */

@keyframes h1-slide-right {
    from {
        opacity: 0;
        transform: translate3d(-30px, var(--h1-y-use, 0), 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }
}

/* slide-right（右からスッ！カク！） */

@keyframes h1-slide-right-snap {
    0% {
        opacity: 0;
        transform: translate3d(-40px, var(--h1-y-use, 0), 0);
    }

    70% {
        opacity: 1;
        transform: translate3d(6px, var(--h1-y-use, 0), 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }
}

/* blur-in（ぼけからクッと出る） */
@keyframes h1-blur-in {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translate3d(0, calc(6px + var(--h1-y-use, 0)), 0);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }
}

/* pop-snap（少し跳ねる：ロゴっぽい“ポン”） */

@keyframes h1-pop-snap {
    0% {
        opacity: 0;
        transform: translate3d(0, var(--h1-y-use, 0), 0) scale(0.92);
    }

    60% {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0) scale(1.04);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0) scale(1);
    }
}

/* reveal-clip（マスクで“スライス開封”） */

@keyframes h1-reveal-clip {
    from {
        opacity: 1;
        clip-path: inset(0 100% 0 0);
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }
}

/* float-in（ゆっくり浮遊しながら出る */

@keyframes h1-float-in {
    0% {
        opacity: 0;
        transform: translate3d(0, calc(16px + var(--h1-y-use, 0)), 0);
    }

    70% {
        opacity: 1;
        transform: translate3d(0, calc(-4px + var(--h1-y-use, 0)), 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }
}

/* rotate-in（ごく軽い回転で“違和感”を出す） */

@keyframes h1-rotate-in {
    from {
        opacity: 0;
        transform: translate3d(0, var(--h1-y-use, 0), 0) rotate(-2.5deg) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0) rotate(0deg) scale(1);
    }
}




/* 念のため：動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .topTitle__image {
        animation: none;
        opacity: 1;
        transform: translate3d(0, var(--h1-y-use, 0), 0);
    }
}






.subTitle {
    position: absolute;
    inset: 58% auto auto 50%;
    translate: -50% -50%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
}

.subTitle {
    white-space: nowrap;
    /* ← 1文字ずつ改行を止める */
    word-break: keep-all;
    /* 英字を途中で割らない */
    overflow-wrap: normal;
    /* 念のため */
}

@media (width <=600px) {
    .subTitle {
        inset: 57% auto auto 50%;
        font-size: 0.9rem;
    }
}






/* ===== サブタイトル（テキスト）===== */
.subTitle {
    position: absolute;
    left: 50%;
    top: 58%;
    /* transform: translate(-50%, -50%); */
    margin: 0;

    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;

    filter: drop-shadow(0 0 10px rgba(0, 0, 0, .7));
}

/* ===== レスポンシブ ===== */


@media (width <=600px) {
    .subTitle {
        top: 57%;
        font-size: 0.9rem;
    }
}

/*.section  */

.section {
    margin-top: 6rem;
}



body.profile::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    content: "";
    background-color: rgba(229, 229, 229, 0.8);
    backdrop-filter: blur(4px);
}

.profile .main__inner {
    max-width: 430px;
}

.profile__list {
    display: grid;
    grid-template-columns: 4em 1fr;
    gap: 0.5em;
    margin-bottom: 1em;
}





.works__gallery img {
    object-fit: contain;
}




h2 {
    /* padding: 1rem; */
    text-align: center;
    font-size: 1.4rem;
}

@media (width <=665px) {
    h2 {
        font-size: 0.9rem;
    }
}

h3 {

    font-size: 1.1rem;
    /* padding-bottom: 1rem; */
    text-align: center;

}

h3 img {

    width: 50%;
    min-width: 250px;
    max-width: 300px;

}




#tpp img {
    width: 20%;
    min-width: 100px;
    max-width: 150px;
}

.works p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* .works__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-inline: auto;
    list-style: none;
    margin-bottom: 3rem;
} */

.works__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    max-width: calc(3 * 80px + 2 * 16px);
    /* 3列 + gap2個分 */
    margin-inline: auto;
    list-style: none;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* カードの出現 */

.cardList_item {
  opacity: 0;
  transform: translateY(24px);
}

.cardList_item.is-show {
animation: cardFloatIn 3.2s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes cardFloatIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .cardList_item {
    transform: translateY(16px);
  }
}

/* //////////////////////////////////////////////////////////// */

.card_pic img {
    display: block;
    width: 100%;
    aspect-ratio: 1.5 / 1;
    margin-bottom: 1rem;
}

.card_body {
    font-size: 0.6rem;
}

.card_title {
    font-size: 0.8rem;
    text-align: left;
}

@media (width >=440px) {
    .works__gallery {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }

    .link img {
        aspect-ratio: 3/1;
        object-position: center center;
        object-fit: cover;
    }
}



.works__link {
    display: block;
}

.works__image {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
}

.link img {
    aspect-ratio: 2.5/1;
}

@media (width >=768px) {
    /* .works__gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    } */

    .link img {
        aspect-ratio: 3/1;
        object-position: center center;
        object-fit: cover;
    }
}

@media (width >=1024px) {
    .works__gallery {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }

    .works__gallery-wrapper {
        max-width: 900px;
    }
}


/* 外枠 */
.loopTxt {
    --gap: 2.5rem;
    /* アイテム間隔 */
    /* --speed: 18s; */
    /* 速度（小さいほど速い） */
    overflow: hidden;
    background: #e6e0d8;
    /* 近い色に調整してOK */
    border-top: 1px solid rgba(0, 0, 0, .2);
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    max-width: 1300px;
}

/* 中身：横一列に */
.loopTxt__track {
    display: flex;
    width: max-content;
    will-change: transform;
    /* animation: loopTxtMarquee var(--speed) linear infinite; */
}

/* 1グループ（これをJSで複製して途切れなくする） */
.loopTxt__group {
    display: inline-flex;
    align-items: center;
    gap: var(--gap);
    padding: 0.5rem var(--gap);
    white-space: nowrap;
}

/* アイテム */
.loopTxt__item {
    font-size: 2rem;
    letter-spacing: .06em;
    line-height: 1;
    color: #222;
}

.loopTxt img {
    display: block;
}

.loopTxt__img {
    width: 3rem;
    letter-spacing: .06em;
    flex: 0 0 auto;

}

.loopTxt__img img {
    width: 100%;
    height: auto;
    max-height: 5em;
    /* ← 文字高さに合わせて暴れ防止（好みで調整） */
    object-fit: contain;
    /* ロゴはcoverよりcontainが自然 */
}

.loopTxt__group {
    padding: .6rem var(--gap);
    min-height: 8rem;
    /* ← 行の高さの下限。好みで調整 */
}

/* 右→左へ。複製がある前提で「半分」移動すると継ぎ目が消える */
/* @keyframes loopTxtMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
} */

/* 動きが苦手な人へ配慮 */
/* @media (prefers-reduced-motion: reduce) {
    .loopTxt__track {
        animation: none;
    }
} */


.loopTxt {
    min-width: 0;
}

.loopTxt {
    width: 100%;
    max-width: 100%;
}

.loopTxt a {
    display: block;
    min-width: 0;
}

.loopTxt {
    overflow: hidden;
    max-width: 100%;
}

.loopTxt a {
    display: block;
}

/* aがinlineのままだと挙動が変になる事があるので固定 */
.loopTxt__track {
    display: inline-flex;
}

/* width:max-contentを外す */

.loopTxt {
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

.loopTxt__track {
    display: inline-flex;
    min-width: 0;
    width: auto;
    /* ← max-content をやめる */
}

/*  */




/* .contact */


.contact__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: 20px;
    margin-inline: auto;
    list-style: none;
    margin-bottom: 3rem;
    margin-top: 2rem;
}



.section_body ul {
    list-style: none;
}

.section_body h2 {
    text-align: left;
    font-size: 1.2rem;
}

.section_btn {
    display: flex;
    justify-content: flex-end;
}

.section_btn>h3 {
    font-size: 1rem;
}

/* .date */

.date {
    width: 100%;
    height: 100%;
    padding: 50px 20px;
    max-width: 1200px;
}

.date {
    width: 100%;
    height: 100%;
    padding: 50px 20px;
    max-width: 1200px;
    margin-inline: auto;
}



@media (width >=768px) {
    .date {

        padding: 50px;
        /* overflow-y: auto; */
    }
}

.date__inner {
    display: flex;
    flex-direction: column;

    justify-content: center;
    margin: auto;
    margin-top: 4rem;
}

.date__inner h1 {
    text-align: center;
    font-size: 1.8rem;
    /* margin-bottom: 6rem; */
}

@media(width <=450px) {
    .date__inner h1 {
        font-size: 1.4rem;

    }
}

.filter label {
    display: flex;
    justify-content: flex-end;
}

@media (width <=370px) {
    .filter label {
        font-size: 0.8rem;
    }
}

option {
    font-size: 0.8rem;
    font-weight: 300;
}


/* .archive {
    padding: 0 0 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
} */

.archive {
    width: 100%;
    height: 100%;
    padding: 1rem;
    /* margin-top: 1rem; */
}



/* @media (width >=768px) {
    .archive {
        display: flex;

        overflow-y: auto;
    }
} */

.section_desc {
    margin-bottom: 1rem;
}

.card_title {
    text-align: left;
}


.archive_title {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
    color: #000;
    margin-bottom: 10px;
    text-align: left;
}

/* .archive_category{
      max-width: 55%;
} */

.archive_list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: -10px;
    text-decoration: none;
    gap: 1rem;

}


.archive_list li {
    margin-bottom: 10px;
}


@media (width <=450px) {

    main .archive_list li a {
        font-size: 0.6rem;
    }
}

main .archive_list li a {
    position: relative;
    font-weight: bold;
    line-height: 1.4;
    display: inline-block;
    padding: 0.6rem;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.1em;
    /* text-transform: uppercase; */
    /* color: #fff; */
    border: 1px solid #707070;
    /* color: #000; */
    font-size: 0.9rem;
}

@media (width <=450px) {

    main .archive_list li a {
        font-size: 0.6rem;
    }
}



/* /////////////////////// */
.archive_tag {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.archive_sub-title {
    font-size: 1rem;
    display: flex;
    justify-content: flex-end;
}

.archive_tag .archive_list {
    display: flex;
    flex-wrap: nowrap;
    /* ← 折り返し禁止 */
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    margin: 0;
    padding: 8px 12px;
}

.archive_tag .archive_list > li{
     flex: 0 0 auto;             /* ← 横1列を維持 */
}

.archive_tag .archive_list > li {
    margin-bottom: 10px;
}

.archive_tag .archive_list li a {
    position: relative;
    align-items: center;
    font-weight: bold;
    line-height: 1.4;
     display: inline-flex;
    padding: 0.6rem;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.1em;
    /* text-transform: uppercase; */
    /* color: #fff; */
    border: 1px solid #707070;
    border-radius: 20px;
    background-color: var(--gray);
    /* color: #000; */
    font-size: 0.9rem;

}

/* 現在タグの強調 */
.archive_tag .archive_list li.is-active a{
  border-color: #000;
  box-shadow: 0 0 0 1px #000 inset;
}
    

.archive_tag .archive_list{
  scrollbar-width: none; /* Firefox */
}
.archive_tag .archive_list::-webkit-scrollbar{
  height: 0;             /* Chrome / Safari */
}

/* フェード（横に続いてる感） */

 .archive_tag{
  position: relative;
  overflow: hidden;
}

 .archive_tag::before,
 .archive_tag::after{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 2;
}

 .archive_tag::before{
  left: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.4),
    rgba(255,255,255,0)
  );
}

 .archive_tag::after{
  right: 0;
  background: linear-gradient(
    to left,
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.4),
    rgba(255,255,255,0)
  );
}


/* ///////////////////////////////// */


body.top {
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.top {
    position: relative;
    min-height: 100vh;
}

/* 背景レイヤー2枚 */
body.top::before,
body.top::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--fade, 1600ms) ease;
}

/* 表示切替 */
body.top::before {
    background-image: var(--bg1);
    opacity: var(--show1, 1);
}

body.top::after {
    background-image: var(--bg2);
    opacity: var(--show2, 0);
}

/* .single.php */


.section {
    scroll-margin-top: 86px;
    /* padding: 70px 0; */
}


.section .section_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


.section .section_header {
    position: relative;
    /* padding-bottom: 20px; */
}

.heading-primary {
    position: relative;
    display: block;
    /* margin-bottom: 15px; */
    /* padding-bottom: 15px; */
    letter-spacing: 0.05em;
    /* text-transform: uppercase; */
    color: #000;
    font-size: 1.2rem;
    text-align: center;
}



.post_content {
    /* padding: 50px 0 0; */
    min-height: 30vh;
    /* max-height: 600px; */
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single_header {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    /* display: block; */
    max-width: 800px;
    width: 100%;
    font-size: 10px;
    font-weight: bold;
    /* margin-inline: auto; */
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.sub-tag {
    padding: 0.5rem 1rem;
    border: solid 1px var(--card-stroke);
    border-radius: 24px;
    background-color: var(--gray);
}

.content {
    margin: 2rem 0 2rem 0;
}

.post_content time {
    padding: 0.5rem 1rem;
    border: solid 1px var(--card-stroke);
    background-color: white;
    /* border-radius: 6px; */
    /* display: block;
    max-width: 800px;
    text-align: right;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px; */
    /* margin-left: auto; */
}

.btn.is-active {
    /* color: #fff;
    background-color: #000;
    border-color: #000; */
    font-size: 1.5rem;
    margin-left: 1rem;
    padding: 0.6rem;
    border-radius: 16px;
}


.category_list {
    text-align: left;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-inline: auto;
    max-width: 500px;
}

/* @media (width >=900px) {
    .category_list {
        text-align: left;
        margin-left: 12rem;
    }
} */

.btn-sm {
    position: relative;
    font-weight: bold;
    line-height: 1.4;
    display: inline-block;
    padding: 0.5rem;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.1em;
    /* text-transform: uppercase; */
    /* color: #fff; */
    border: 1px solid var(--card-stroke);
    /* color: #000; */
    font-size: 0.9rem;
}

.post_footer {
    width: 100%;
}

.prevNext {
    padding-top: 50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    max-width: 800px;
    margin-inline: auto;
}




/* .prevNext .prevNext_item-prev {
    border-right: 1px solid #224163;
    margin-right: auto;
} */

.prevNext .prevNext_item {
    width: 50%;
}

.prevNext_item-prev a {
    display: flex;
    align-items: center;
}

.prevNext_item-prev a svg {
    min-width: 20px;
}

.prevNext .prevNext_item-next {
    border-right: 1px solid #224163;
    margin-right: auto;
}

.prevNext_item-next a {
    display: flex;
    align-items: center;
}

.prevNext_item-next a svg {
    margin-left: auto;
    min-width: 20px;
}

.prevNext span {
    font-size: 0.9rem;
    margin-inline: auto;
    text-align: center;
}

@media (width <=450px) {
    .prevNext span {
        font-size: 0.7rem;

    }
}

/* loop.php */

li.current-cat {
    a {
        color: #fff;
        background-color: #000;
        background-color: #000;
    }

}

li a[aria-current] {
    color: #fff;
    background-color: #000;
    background-color: #000;
    text-shadow: 1px 0px 4px black;
    /* padding-inline: 0.3rem; */
    padding: 0.5rem;
}

.card_label {
    display: flex;
    justify-content: flex-end;
}

.label-black {
    position: relative;
    font-weight: bold;
    line-height: 1.4;
    display: inline-block;
    padding-block: 0.2rem;
    padding-inline: 0.5rem;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.1em;
    /* text-transform: uppercase; */
    /* color: #fff; */
    border: 1px solid var(--card-stroke);
    /* color: #000; */
    font-size: 0.9rem;
}

.card_pic {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card_pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* .single.php */
/* .latest */

/* .latest {
    padding-top: 3rem;
} */

.heading-secondary{
    margin-block: 1rem;
}


.cardList{
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    gap: 1rem;
}


/* お問い合わせ */

.form_btn {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}


input[type="submit" i] {
    border-width: 3px;
    padding-inline: 2rem;
}

/* page-works.php */

/* タブ */


.tab {
    width: clamp(300px, 70%, 600px);
    margin-inline: auto;
    /* z-index: 10; */
}

.tab-list {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
    margin-right: 2rem;
    list-style: none;
    line-height: 0rem;
}

.tab-list li {
    display: block;
    padding: 1.1rem 1.2rem 0rem;
    border-radius: 5px 5px 0 0;
}

.tab-list li:nth-of-type(1) {
    color: var(--card-stroke);
    padding: 1rem;
}


#tab1 h3 {
    /* background-color: #fff; */
    color: var(--card-stroke);
    margin-bottom: 0;
    border-bottom: none;
}


.tab-list li:nth-of-type(2) {
    color: #fff;
    background-color: #fff;
    border: solid 1px #000;
}


#tab2 h3 {
    background-color: #fff;
    color: var(--card-stroke);
}

.tab-list li:nth-of-type(3) {
    color: #fff;
    background-color: var(--yellow);
}

#tab3 h3 {
    background-color: var(--yellow);
    color: var(--card-stroke);
}

.tab-list li:nth-of-type(4) {
    color: #fff;
    background-color: var(--blue);
}

#tab4 h3 {
    background-color: var(--blue);
    color: var(--card-stroke);
}

.tab-list li:nth-of-type(5) {
    color: #fff;
    background-color: var(--pink);
}

#tab5 h3 {
    background-color: var(--pink);
    color: var(--card-stroke);
}

.tab-list li:nth-of-type(6) {
    color: #fff;
    background-color: var(--card-stroke);
}

#tab6 h3 {
    background-color: var(--card-stroke);
    color: white;
}

.tab-list li:nth-of-type(7) {
    color: #fff;
    background-color: var(--green);
}

#tab7 h3 {
    background-color: var(--green);
    color: var(--card-stroke);
}

@media (width <=723px) {
    .tab-list li {
        padding-inline: 10px !important;
    }
}

@media (width <=577px) {
    .tab-list li {
        padding-inline: 5px !important;
    }
}

.tab-list li a:hover {
    background: #aaa;
}

.tab-list li.selected a {
    background-color: var(--bg);
}

.tab-list li.selected:nth-of-type(1) a {
    background-color: initial;
}

.tab-panel {
    margin-inline: auto;
    position: relative;
    /* お好みで */
    /* margin-inline: auto; */
    border-radius: 40px 40px 40px 40px;
    background: var(--gray);
    border: 3px solid var(--card-stroke);
    /* box-shadow: var(--card-shadow); */
    overflow: hidden;
    z-index: 1;
}


.tab-panel h3 {
    color: #fff;
    padding: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--card-stroke);
    letter-spacing: .04em;
}

.tab-panel__body {
    padding: 0 16px;
}

.tab-panel__body p {
    text-align: left;
    font-size: 0.8rem;
    margin-bottom: 2.5rem;
    color: var(--card-stroke);
}



/* 遅延表示の初期状態 */
.js-delay-show {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

/* 表示状態 */
.js-delay-show.is-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}



/* ///////////////////////////////////////////////////////// */

.page-link {
    margin-left: auto;
}

.page-link {
    margin-bottom: 0.5rem;
}

.page-link p {
    font-size: 0.6rem;
    display: flex;
    justify-content: right;
    margin-bottom: 0rem;
}

.link-text {
    display: flex;
    justify-content: right;
}

@media (width <=400px) {
    .page-link p {
        font-size: 0.6rem;

    }
}

.works__gallery-wrapper {
    margin-inline: auto;
    margin-bottom: 6rem;
    /* margin-top: 3rem; */
}




.works__gallery>.cardList_item:nth-of-type(1) .works-sub {
    color: #fff;
    text-shadow: 1px 1px 4px black;
}

.works__gallery>.cardList_item:nth-of-type(1) .works-sub {
    color: #fff;
}

.works__gallery>.cardList_item:nth-of-type(2) .works-sub {
    color: var(--yellow);
}

.works__gallery>.cardList_item:nth-of-type(3) .works-sub {
    color: var(--blue);
}

.works__gallery>.cardList_item:nth-of-type(4) .works-sub {
    color: var(--pink);
}

.works__gallery>.cardList_item:nth-of-type(5) .works-sub {
    color: var(--card-stroke);
}

.works__gallery>.cardList_item:nth-of-type(6) .works-sub {
    color: var(--green);
}




/* zoom */
/* 好みで微調整 */
:root {
    --zoom-dur: .28s;
    --zoom-ease: cubic-bezier(.2, .9, .2, 1);
    --hover-scale: 1.03;
    --backdrop: rgba(10, 10, 10, .55);
}

#zoom-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--zoom-dur) linear;
    z-index: 9999;
}

#zoom-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

#zoom-modal .zoom-backdrop {
    position: absolute;
    inset: 0;
    background: var(--backdrop);
    border: 0;
    padding: 0;
    margin: 0;
}

#zoom-modal .zoom-body {
    position: relative;
    margin: 0;
    padding: 0;
    max-width: min(75vw, 1200px);
    max-height: 80vh;
    display: grid;
    place-items: center;
    transform: scale(.96);
    opacity: 0;
    transition:
        transform var(--zoom-dur) var(--zoom-ease),
        opacity var(--zoom-dur) linear;
    will-change: transform, opacity;
}

#zoom-modal.is-open .zoom-body {
    transform: scale(1);
    opacity: 1;
}



@media (hover:hover) {
    #zoom-modal img:hover {
        transform: scale(var(--hover-scale));
    }

    #zoom-modal {
        cursor: zoom-out;
    }
}



/* 低モーション配慮 */
@media (prefers-reduced-motion: reduce) {

    #zoom-modal,
    #zoom-modal .zoom-body,
    #zoom-modal img {
        transition: none !important;
    }
}

#zoom-modal[aria-hidden="true"] {
    display: none;
}

#zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    border: 0;
}

.zoom-body {
    position: relative;
    margin: 0;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
}

/* 画像（transform-origin をクリック位置に変える） */
#zoom-img {
    max-width: min(1100px, 70vw);
    max-height: 80vh;


    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform .12s ease;

    user-select: none;
    -webkit-user-drag: none;


    width: auto;
    height: auto;
    object-fit: contain;

    background: #fff;
    /* 透過PNGの下に白を敷きたい場合 */
    box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
    transition: transform .18s ease-out;
}

/* @media(width <= 500px){
    #zoom-modal{
        max-height:50vh ;
    }
} */


/* Chrome由来の“なんか出る”を避けたいので、カーソルは自前にする */
.zoom-body {
    cursor: none;
}

@media(width <=500px) {
    #zoom-body {
        max-height: 50vh;
    }
}

/* 自作虫眼鏡（＋/−） */
.zoom-cursor {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    pointer-events: none;
    /* クリックを邪魔しない */
}

.zoom-cursor {
    pointer-events: auto;
    /* none をやめる */
    cursor: pointer;
}


/* web*/
.web {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    border-bottom: 3px solid var(--card-stroke);
    margin-bottom: 1.5rem;
}

.web:last-of-type {
    border-bottom: none;
}

.web h2 {
    text-align: left;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

@media (width <=400px) {
    .web h2 {
        font-size: 1rem;
    }
}

.web p {
    text-align: left;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    margin-inline: auto;
    max-width: 800px;
}

@media(width >=768px) {
    .web p {
        font-size: 0.9rem;

    }
}


.web-link {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
}

.web-link p {
    text-align: right;
    margin-bottom: 0.5rem;
}

.web-link h3 {
    font-size: 0.8rem;
    text-align: right;
}

.web-thubmnails {
    width: 100%;
}

.web-thubmnails img {
    display: block;
    width: auto;
    /* ← 100%をやめる */
    max-width: 100%;
    /* はみ出し防止 */
    height: auto;
    margin-left: auto;
    text-align: right;
    object-fit: contain;
}

/* .modal */
.modal-visual-wrapper {
    max-width: 900px;
    margin-inline: auto;
    margin-bottom: 1rem;

}

.modal-visual-wrapper p {
    text-align: left;
    /* margin-bottom: 1rem; */
    font-size: 0.6rem;
}

.modal-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 1rem;
}

.modal-visual a {
    display: flex;
    /* ← 親を flex に */
    align-items: center;
    /* 縦中央（テキスト基準に近い） */
    justify-content: center;
    /* 横中央 */
}

.modal-visual img {
    display: block;
    width: auto;
    /* ← 100%をやめる */
    max-width: 100%;
    /* はみ出し防止 */
    height: auto;
    object-fit: contain;
}


.modal-visual-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    width: 100%;
    margin: 3rem 0 3rem 0;
    gap: 1rem;
}

.modal-visual-small a {
    /* display: block; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-visual-small img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    /* 好きな比率に */
    object-fit: contain;
    /* contain or cover */
}

.modal-visual-single {
    display: block;
    width: 100%;
}

.modal-visual-single a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-visual-single img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.modal-visual:empty {
    display: none;
}

.modal-visual-single {
    width: 100%;
}

.modal-visual-single a,
.modal-visual-single img {
    display: block;
    width: 100%;
    height: auto;
}

.modal-visual {
    display: flex;
    gap: 16px;
}

.modal-visual a {
    flex: 1 1 0;
}

.modal-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* .modal-captions p {
  margin: .25em 0;
  font-size: .9rem;
  color: #555;
} */
.modal-opened {
    overflow-y: hidden;
    /*背景を固定*/
}



/* modaal 画像モーダルの中身 */


/* =========================
   Modaal（画像）最小構成
   - モーダルを少し大きめ
   - クリックで拡大/縮小（.is-zoom）
   ========================= */

/* ===============================
   Modaal：最小ズーム仕様（安定版）
================================ */

/* モーダル本体サイズ */
.modaal-image .modaal-container {
    width: clamp(320px, 80vw, 600px);
    background: none;
}

/* 余白なし */
.modaal-image .modaal-content-container {
    padding: 0;
    overflow: auto;
    /* ←拡大時にスクロール可能 */
    max-height: 90vh;
}

/* 画像：通常状態 */
.modaal-image .modaal-content-container img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;

    cursor: zoom-in;
    transition: transform .2s ease;
    transform-origin: center;
}


/* 通常状態：モーダル内で収める */
.modaal-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
}

.modaal-wrapper img.is-zoom {
    transform: scale(2);
    transform-origin: center;
    cursor: zoom-out;
}

/* ===== Modaalの中でズーム操作しやすくする ===== */
.modaal-content-container,
.modaal-wrapper {
    overscroll-behavior: contain;
    /* ホイールを外へ逃がしにくくする */
}

/* 画像に transform を当てる前提 */
.modaal-wrapper img,
.modaal-content-container img {
    transform: translate(0, 0) scale(1);
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    -webkit-touch-callout: none;
}

/* ドラッグ中のカーソル */
.modaal-wrapper img.is-dragging,
.modaal-content-container img.is-dragging {
    cursor: grabbing;
}

/* =========================
   Modaal：常に最前面
   ヘッダー（transform使用）対策
========================= */
/* headerよりモーダルを必ず前面に */
.modaal-overlay {
    z-index: 2000 !important;
}

.modaal-wrapper {
    z-index: 2001 !important;
}

.modaal-container {
    z-index: 2002 !important;
}

.modaal-close {
    z-index: 2003 !important;
}


@media only screen and (max-width: 1140px) {
    .modaal-gallery-next {
        left: auto;
        right: 20px;
        top: 50%;
    }

    .modaal-gallery-prev {
        right: auto;
        left: 20px;
        top: 50%;
    }
}



/* ------------------------------
  ページトップ
------------------------------ */

/* 外側：表示/非表示＆画面右下の固定だけ担当（見た目は持たせない） */
.pagetop {
    position: fixed;
    right: 25px;
    bottom: 35px;
    z-index: 900;
    display: grid;
    place-items: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;

}

.pagetop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .4s ease, transform .4s ease, visibility 0s;
}

/* 内側：ここに“丸の見た目”を全部移す → この要素をアニメ */
.pagetop__float {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--gray);
    border: 2px solid var(--card-stroke);

    display: grid;
    place-items: center;
    will-change: transform;
}

/* .active の間だけ、丸ごと（ドット本体）をふわふわ */
.pagetop.active .pagetop__float {
    animation: pt-float 6s ease-in-out infinite;
}

/* アイコンは中央のまま */
.pagetop i {
    font-size: 2rem;
    color: var(--card-stroke);
    line-height: 1;
}


/* //////////////////////////////////////////////////////////////// */




/* @media screen and (max-width: 900px) {
    #prev, #next {
        width: 40px;
        height: 40px;
        top: 114%;
    }
}

@media screen and (max-width: 900px) {
    #prev {
        left: 35%;
    }
}

@media screen and (max-width: 900px) {
    #next {
        right: 35%;
    }
} */
/* ページリンク */
.page-link {
    margin-left: auto;
}

.page-link {
    margin-bottom: 0.5rem;
}

.page-link p {
    font-size: 0.6rem;
    display: flex;
    justify-content: right;
    margin-bottom: 0rem;
}

.link-text {
    display: flex;
    justify-content: right;
}

@media (width <=400px) {
    .page-link p {
        font-size: 0.6rem;

    }
}

/* .index.php */

.sort{
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.sort_btn.is-active {
  color: #fff;
  background-color: #000;
  border-color: #000;

}

.sort_btn{
        position: relative;
  display: inline-block;
  padding: 0.3rem;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  border: 1px solid #707070;
  transition: 0.3s;
}