/*
Theme Name: tracking-tattoo Child
Template:       tracking-tattoo
Description:    tracking-tattoo の子テーマ
Version:        1.1
Author:         sample
*/

/* =========================================================
    Global Base
========================================================= */
html, body {
    height: 100%;
    margin: 0;
    background-color: #eeeeee;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    overflow-x: hidden;

    /* iPhoneノッチ／ホームバー避ける */
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);

    /* スムーススクロール */
    scroll-behavior: smooth;
}

html.menu-opened,
body.menu-opened {
  overflow: hidden;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100); /* ← iOS Safari対応 */
  background-color: #eeeeee; /* ← 背景色を維持 */
  touch-action: none;
}

/* ================================
 iOS Safari アドレスバー変動対応
=============================== */
:root {
    --vh: 100%;
}

/* iOS Safari専用: WebKit対応 */
@supports (-webkit-touch-callout: none) {
    html, body { height: -webkit-fill-available; }
    :root {
        --vh: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}

/* スマホ時のベース */
@media (max-width: 1300px) {
    body {
        background-color: #eeeeee;
    }
}




/* Safariでのアコーディオンタイトル改行バグ対策 */
.e-n-accordion-item-title-text,
.e-n-accordion-item__title-text {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: inline-block;
}

@supports (-webkit-touch-callout: none) {
  .e-n-accordion-item-title-text,
  .e-n-accordion-item__title-text {
    display: inline-block !important;
    word-break: keep-all !important;
  }
}

.artists_anton {
    font-family: "Anton";
}

ul,
ol {
    margin: 0;
}

p {
    margin: 0;
}

.section-title {
    font-size: 20px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 8px;
    }
}


/* =========================================================
    header pc
========================================================= */
@media (max-width: 1300px) {

    
    .header-content {
        box-shadow: none !important;
    }
}



/* =========================================================
 header sp (1300px以下)
========================================================= */
@media (max-width: 1300px) {
    .btn-trigger {
        position: relative;
        width: 50px;
        height: 44px;
        cursor: pointer;
        background-color: #eeeeee;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        z-index: 9999;
    }

    .btn-trigger span {
        position: absolute;
        left: 50%;
        width: 60%;
        height: 3px;
        background-color: #000;
        border-radius: 3px;
        transform: translateX(-50%);
        transition: all 0.4s ease;
    }

    .btn-trigger span:nth-of-type(1) { top: 12px; }
    .btn-trigger span:nth-of-type(2) {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .btn-trigger span:nth-of-type(3) { bottom: 12px; }

    /* アクティブ時（×に変形） */
    #burger.active span:nth-of-type(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    #burger.active span:nth-of-type(2) { opacity: 0; }
    #burger.active span:nth-of-type(3) {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* スマホナビ */
    .sp-nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: calc(var(--vh) * 100);
        background: #fff;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 999;
        padding-top: env(safe-area-inset-top);
    }

    .sp-nav-menu.open {
        transform: translateX(0);
    }
}



/* =========================================================
    FV（ファーストビュー）
========================================================= */

.e-con-full.fv-size.e-con {
    max-height: 1080px !important;
}


.page-title__img--sp { display: none !important; }
@media (max-width: 768px) {
    .page-title__img--pc { display: none !important; }
    .page-title__img--sp {
        display: block !important;
    }
}

.fv-chara-s {
    display: block;
    font: 300 clamp(12px, 1.6vw, 16px)/1.4 "Noto Sans JP", system-ui, sans-serif;
    letter-spacing: 0.06em;
    color: #111;
}
.fv-chara {
    display: block;
    font-size: clamp(48px, 8.9vw, 170px);
    font-weight: 400;
    letter-spacing: 1px;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 5px #000;
    position: relative;
    margin: 0 auto;
}
.fv-chara::before,
.fv-chara::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #000;
}
.fv-chara::before { top: -20px; }
.fv-chara::after { bottom: -15px; }

@media (max-width: 1280px) {
    .fv-chara {
        -webkit-text-stroke: 2px #000;
        letter-spacing: 3px;
    }
    .fv-chara::before,
    .fv-chara::after {
        height: 2px;
    }
}

.fv-movie {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80dvh;
    min-height: 450px;
    overflow: hidden;
    border-radius: 5px;
    filter: grayscale(30%) brightness(100%) contrast(100%);
}
@media (max-width: 350px) {
    .fv-movie-contaciner { width: 90vw; }
}
@supports not (aspect-ratio: 16 / 9) {
    .fv-movie::before {
        content: "";
        display: block;
        padding-top: 56.25%;
    }
}
.fv-movie > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
@media (max-width: 768px) {
    .fv-movie { min-height: 180px; }
}

/* =========================================================
    共通アクセシビリティ設定
========================================================= */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.page-title {
    margin: 0 auto 24px;
    text-align: center;
}

.page-title__img {
    width: 50vw !important;
}

@media (max-width: 768px) {
    .page-title__img--sp {
        width: 70vw !important;
    }
}

/* --- PC/SP 切り替え制御 --- */
.page-title__img--sp {
    display: none !important;
}

/* --- SP（768px以下）での画像切り替え --- */
@media (max-width: 768px) {
    .page-title__img--pc {
        display: none !important;
    }
    .page-title__img--sp {
        display: block !important;
        width: 100%; /* 念のため明示 */
    }
}

@media (min-width: 1920px) {
    .page-title__img {
        width: 900px !important;
    }

}


/* =========================================================
    Button Arrow Animation
========================================================= */

:root {
    --arrow-w: 83.44px;
    --arrow-h: 18.54px;
    --arrow-right: 6.56px;
    --arrow-url: url('https://tracking-tattoo.com/wp-content/uploads/2025/09/btn-arrow-icon.svg');
    --arrow-shift: 6px;
    --arrow-speed: 1.6s;
}
.btn-arrow .elementor-button-content-wrapper {
    position: relative;
    padding-right: calc(var(--arrow-w) + var(--arrow-padding));
}
.btn-arrow .elementor-button-content-wrapper::after {
    content: "";
    position: absolute;
    top: 20px;
    right: -40px;
    width: var(--arrow-w);
    height: var(--arrow-h);
    background-image: var(--arrow-url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(0, -50%);
    animation: arrowSlide var(--arrow-speed) ease-in-out infinite;
    will-change: transform;
}
@keyframes arrowSlide {
    0%, 100% { transform: translate(0, -50%); }
    50% { transform: translate(var(--arrow-shift), -50%); }
}
.btn-arrow:hover .elementor-button-content-wrapper::after {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .btn-arrow .elementor-button-content-wrapper::after {
        animation: none;
        transform: translate(0, -50%);
    }
}
.studio-gallery-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
@media (max-width: 768px) {
    :root {
        --arrow-w: 50px;
        --arrow-h: 11px;
    }
    .btn-arrow .elementor-button-content-wrapper::after {
        right: -15px;
        top: 25px;
    }
}

/* =========================================================
    Faq Section
========================================================= */

@media (max-width: 768px) {
    .e-n-accordion-item-title-icon svg {
        width: 25px;
        height: 25px;
    }
}
.e-n-accordion-item__title-text,
.e-n-accordion-item-title-text {
    display: flex;
    align-items: flex-start;
    gap: .5em;
    word-break: break-word;
}
.e-n-accordion-item__title-text::before,
.e-n-accordion-item-title-text::before {
    content: "Q";
    font-weight: 700;
    display: inline-block;
    flex: 0 0 1.2em;
    line-height: 1;
    margin-right: .25em;
}
@media (max-width: 768px) {
    .e-n-accordion-item__title-text::before,
    .e-n-accordion-item-title-text::before {
        font-size: 25px;
        flex-basis: 1.1em;
    }
}

/* =========================================================
    Access Section
========================================================= */

.access-info {
    font-family: "Noto Sans JP";
}



/* スクロールボタン */
#scroll-top-btn {
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
#scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}






/* =========================
   Tracking Tattoo Loader
========================= */
.loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #3E3E3E;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.loader[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInHoldOut 2.5s ease forwards;
}

.loader-logo {
    width: 200px;
    height: auto;
    display: block;
    opacity: 1;
}

/* PC */
@media (min-width: 769px) {
    .loader-logo {
        width: 220px;
    }
}

/* SP */
@media (max-width: 768px) {
    .loader-logo {
        width: 140px;
    }
}

/* === フェードイン → 保持 → フェードアウト === */
@keyframes fadeInHoldOut {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
    70% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}
