/*
Theme Name: Natukano
Theme URI: https://natukano.jp/
Description: ナチュカノ東京のオリジナルテーマ。v1.2.1 ULTRA SIMPLE: スクロール絶対解決（最シンプルCSS）+ フォントFOUT防止 + 表示速度大幅改善。絶対完璧版。
Author: Natukano Dev
Version: 1.2.1
Text Domain: natukano

最適化:
✓ Tailwind CSSビルド版使用（350KB → 44KBに87%削減）
✓ 使用クラスのみを含む最小化済みCSS
✓ スマホスクロールパフォーマンス大幅改善
✓ GPU加速最適化
✓ 固定背景の軽量化
*/

/* --- UX Fixes --- */
/* ページ遷移/復帰時にヘッダーのトランジションが先に走って「上に何か出る」ように見えるのを抑止 */
.header-no-anim,
.header-no-anim * {
  transition: none !important;
}

/* モバイルは固定ヘッダーのトランジションで「上に一瞬何か出る」ように見えやすいので常時無効化 */
@media (max-width: 768px) {
  #header,
  #header * {
    transition: none !important;
  }
}

/* SNSアイコン（高さズレ防止・リンク有のみ色付き） */
.nat-sns-icons { line-height: 1; }
.nat-sns-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.nat-sns-icon i { font-size: 16px; line-height: 1; display: block; }
.nat-sns-icon .nat-x-svg { width: 16px; height: 16px; display: block; }
.nat-sns-icon .fa-x-twitter { display: none; }
.nat-sns-icon.is-active { color: var(--primary-color); }
.nat-sns-icon.is-inactive { color: #d1d5db; }

/* 一言コメント（背景マット無しで目立たせる） */
.nat-one-liner {
  display: inline-flex;
  align-items: center;
}

/* モバイル固定LINE CTA */
@media (max-width: 768px) {
  body.has-mobile-line-cta { padding-bottom: 84px; }
  .mobile-line-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 80;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  .mobile-line-cta a {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 9999px;
    background: #06C755;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  }
  .mobile-line-cta a i { font-size: 18px; }
}

/* --- Campaign banner section (ACF) --- */
.nat-campaign-section {
  /* soft pink-ish background that matches the brand */
  background: radial-gradient(900px 280px at 20% 20%, rgba(236,72,153,0.10), transparent 60%),
              radial-gradient(700px 260px at 85% 10%, rgba(99,102,241,0.10), transparent 55%),
              linear-gradient(180deg, rgba(249,250,251,1) 0%, rgba(255,247,252,1) 100%);
}

.nat-campaign-section::before,
.nat-campaign-section::after {
  content: "";
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background-image: radial-gradient(rgba(236,72,153,0.10) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  transform: rotate(-2deg);
}
.nat-campaign-section::after {
  opacity: 0.18;
  transform: rotate(3deg);
}

/* Wrapper: center the whole slider block (no full-bleed). Peek is handled by padding inside the slider. */
.nat-full-bleed{
  width: 100%;
  margin: 0 auto;
}
/* Slider: allow horizontal scroll + snap */
.campaign-slider{
  --campaign-card-max: 920px;
  --campaign-card-basis: 72vw;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: clamp(16px, 6vw, 80px);
  scroll-padding-right: clamp(16px, 6vw, 80px);
  scrollbar-width: none;
}
.campaign-slider::-webkit-scrollbar{ display:none; }

.campaign-track{
  display:flex;
  gap: 16px;
  padding: 0 clamp(16px, 6vw, 80px) 16px;
  align-items: stretch;
}

/* Spacers let the first/last banner center correctly on very wide displays */
.campaign-spacer{
  flex: 0 0 calc((100% - min(var(--campaign-card-max), var(--campaign-card-basis))) / 2);
}

/* Banner card sizing: use vw to show “peek” on both sides */
.campaign-item{
  /* 少し幅を絞って「左右に次のバナーが見える（peek）」状態を作る */
  flex: 0 0 min(var(--campaign-card-max), var(--campaign-card-basis));
  scroll-snap-align: center;
  scroll-snap-stop: always;
  max-width: 920px;
}

/* Active / inactive (gaussian-like) */
.campaign-item{
  position: relative;
  transition: filter .22s ease, opacity .22s ease, transform .22s ease;
}
.campaign-item::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 1rem; /* matches rounded-2xl */
  pointer-events:none;
  background: rgba(255,255,255,.34);
  opacity: 0;
  transition: opacity .22s ease;
}
.campaign-item:not(.is-active){
  filter: blur(10px) saturate(.92) brightness(1.06);
  opacity: .72;
  transform: scale(.985);
}
.campaign-item:not(.is-active)::after{
  opacity: 1;
}
.campaign-item.is-active{
  filter: none;
  opacity: 1;
  transform: none;
  z-index: 2;
}
.campaign-item.is-active::after{
  opacity: 0;
}
@media (min-width: 768px){
  .campaign-slider{ scroll-padding-left: clamp(16px, 5vw, 72px); scroll-padding-right: clamp(16px, 5vw, 72px); }
  .campaign-track{ padding-left: clamp(16px, 5vw, 72px); padding-right: clamp(16px, 5vw, 72px); }
  .campaign-slider{ --campaign-card-basis: 54vw; }
  .campaign-item{ flex-basis: min(var(--campaign-card-max), var(--campaign-card-basis)); }
}
@media (min-width: 1024px){
  .campaign-slider{ scroll-padding-left: clamp(16px, 4vw, 64px); scroll-padding-right: clamp(16px, 4vw, 64px); }
  .campaign-track{ padding-left: clamp(16px, 4vw, 64px); padding-right: clamp(16px, 4vw, 64px); }
  .campaign-slider{ --campaign-card-basis: 38vw; }
  .campaign-item{ flex-basis: min(var(--campaign-card-max), var(--campaign-card-basis)); }
}
/* Banner media ratio (16:9 mobile, ~4:3 desktop) */
.campaign-card-media { width: 100%; }
.campaign-card-media::before { content: ""; display: block; padding-top: 70%; }
.campaign-card-media > * { position: absolute; inset: 0; }
@media (min-width: 768px) {
  .campaign-card-media::before { padding-top: 56.25%; }
}

/* バナー画像は「見切れない」ことを優先（contain） */
.campaign-card-media{
  background: radial-gradient(1200px 500px at 20% 20%, rgba(255,255,255,.9), rgba(255,255,255,.65)),
              linear-gradient(135deg, rgba(59,130,246,.10), rgba(236,72,153,.08));
}
.campaign-card-media img.campaign-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ---------------------------------------------------------
   WordPress 標準設定
--------------------------------------------------------- */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.wp-caption { max-width: 100%; }

/* ---------------------------------------------------------
   ナチュカノ東京 カスタムスタイル
--------------------------------------------------------- */
body {
    background: #F0F9FF; /* 淡い水色 */
    color: #333;
    /* フォールバックフォント（システムフォント）を先に設定 */
    font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* フォント描画の最適化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* bodyにロゴパターン背景を追加（パフォーマンス最適化版） */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background-image: url('https://natukano.jp/wp-content/uploads/2026/01/cropped-名称未設定のデザイン-3.png');
    background-size: 120px auto;
    background-repeat: repeat;
    transform: rotate(-15deg);
    transform-origin: center;
    pointer-events: none;
    opacity: 0.25;
    /* GPU加速を削除してパフォーマンス向上 */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* モバイルでは非表示 */
}

@media (max-width: 767px) {
    body::before {
        display: none;
    }
}

/* ロゴパターンの上に薄い白色のオーバーレイ（パフォーマンス最適化） */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    backface-visibility: hidden;
}

@media (max-width: 767px) {
    body::after {
        display: none;
    }
}

/* タイトル用フォント */
.font-hand {
    font-family: "Zen Kurenaido", sans-serif !important;
}
.font-serif {
    font-family: "Playfair Display", serif !important;
}

/* コンテンツ全体を少し浮かせる */
main, header, footer {
    position: relative;
    z-index: 10;
}

/* mainをflex-growで伸ばす */
main {
    flex: 1;
}

/* footerを下に固定 */
footer {
    margin-top: auto;
}

/* 
   =========================================
   背景設定（パフォーマンス最適化版）
   =========================================
*/

/* オーロラ背景（トップページ用 - モバイル最適化） */
.bg-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0; 
    background: 
        radial-gradient(at 0% 0%, hsla(339, 100%, 94%, 1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(37, 100%, 94%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339, 100%, 94%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(339, 100%, 94%, 1) 0, transparent 50%),
        radial-gradient(at 50% 100%, hsla(37, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(339, 100%, 94%, 1) 0, transparent 50%);
    background-size: 200% 200%;
    opacity: 0.5;
    pointer-events: none;
    backface-visibility: hidden;
}

/* PC版のみアニメーション有効 */
@media (min-width: 768px) {
    .bg-aurora {
        animation: aurora 20s ease infinite alternate;
    }
}

/* モバイルではアニメーションを無効化してパフォーマンス向上 */
@media (max-width: 767px) {
    .bg-aurora {
        background-position: 0% 50%;
        animation: none;
    }
}

@keyframes aurora {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* おしゃれな背景（幾何学模様 - パフォーマンス最適化） */
.bg-stylish {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #f8faff;
    background-image: 
        radial-gradient(at 15% 15%, hsla(339, 100%, 93%, 0.4) 0px, transparent 50%),
        radial-gradient(at 85% 15%, hsla(190, 60%, 92%, 0.6) 0px, transparent 50%),
        radial-gradient(at 85% 85%, hsla(339, 100%, 93%, 0.4) 0px, transparent 50%),
        radial-gradient(at 15% 85%, hsla(190, 60%, 92%, 0.6) 0px, transparent 50%);
    background-attachment: fixed;
    pointer-events: none;
    /* GPU加速 */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* iOS Safari 対策：fixed背景はスクロールがカクつくため無効化 */
@supports (-webkit-touch-callout: none) {
  .bg-stylish {
    position: absolute;
    background-attachment: scroll;
    transform: none;
    will-change: auto;
  }
}

/* モバイルでは幾何学模様を簡略化 */
@media (max-width: 767px) {
    .bg-stylish::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            linear-gradient(30deg, #dce7f3 12%, transparent 12.5%, transparent 87%, #dce7f3 87.5%, #dce7f3),
            linear-gradient(150deg, #dce7f3 12%, transparent 12.5%, transparent 87%, #dce7f3 87.5%, #dce7f3);
        background-size: 80px 140px;
        background-position: 0 0, 40px 70px;
        opacity: 0.1;
        pointer-events: none;
    }
}

/* PC版は複雑な模様 */
@media (min-width: 768px) {
    .bg-stylish::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            linear-gradient(30deg, #dce7f3 12%, transparent 12.5%, transparent 87%, #dce7f3 87.5%, #dce7f3),
            linear-gradient(150deg, #dce7f3 12%, transparent 12.5%, transparent 87%, #dce7f3 87.5%, #dce7f3),
            linear-gradient(30deg, #dce7f3 12%, transparent 12.5%, transparent 87%, #dce7f3 87.5%, #dce7f3),
            linear-gradient(150deg, #dce7f3 12%, transparent 12.5%, transparent 87%, #dce7f3 87.5%, #dce7f3),
            linear-gradient(60deg, #dce7f377 25%, transparent 25.5%, transparent 75%, #dce7f377 75%, #dce7f377),
            linear-gradient(60deg, #dce7f377 25%, transparent 25.5%, transparent 75%, #dce7f377 75%, #dce7f377);
        background-size: 80px 140px;
        background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
        opacity: 0.15;
        pointer-events: none;
    }
}

/* セクション限定の背景（トップページ用 - パフォーマンス最適化） */
.bg-stylish-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #f8faff;
    background-image: 
        radial-gradient(at 15% 15%, hsla(339, 100%, 93%, 0.4) 0px, transparent 50%),
        radial-gradient(at 85% 15%, hsla(190, 60%, 92%, 0.6) 0px, transparent 50%),
        radial-gradient(at 85% 85%, hsla(339, 100%, 93%, 0.4) 0px, transparent 50%),
        radial-gradient(at 15% 85%, hsla(190, 60%, 92%, 0.6) 0px, transparent 50%);
    pointer-events: none;
    /* GPU加速 */
    transform: translateZ(0);
}

/* ロゴパターン背景（リクルートページなど） */
.bg-logo-pattern {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    background-image: url('https://natukano.jp/wp-content/uploads/2026/01/cropped-名称未設定のデザイン-3.png');
    background-size: 120px auto;
    background-repeat: repeat;
    transform: rotate(-15deg); /* 回転角度を緩やかに（-30deg→-15deg） */
    transform-origin: center;
    pointer-events: none;
    opacity: 0.35; /* 少し濃くして存在感UP */
    /* GPU加速 */
    will-change: transform;
    transform: translateZ(0) rotate(-15deg);
    backface-visibility: hidden;
}

.bg-logo-pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    /* GPU加速 */
    transform: translateZ(0);
}

/* 
   =========================================
   グラスモーフィズム パネル
   =========================================
*/
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* GPU加速 */
    will-change: transform;
    transform: translateZ(0);
}

/* 
   =========================================
   フェードイン アニメーション（最適化版 - スクロール干渉防止）
   =========================================
*/
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    backface-visibility: hidden;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 
   =========================================
   プライマリーカラー
   =========================================
*/
:root {
    --primary-color: #FF1493;
    --secondary-color: #FF69B4;
}

.bg-primary { background-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }

.bg-secondary { background-color: var(--secondary-color); }
.text-secondary { color: var(--secondary-color); }

/* 
   =========================================
   ボタンとホバーエフェクト（最適化版）
   =========================================
*/
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    /* GPU加速 */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 14px rgba(255, 20, 147, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}

/* カード ホバーエフェクト（最適化版） */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backface-visibility: hidden;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 画像 ホバーエフェクト（最適化版） */
.image-hover {
    transition: transform 0.2s ease;
    overflow: hidden;
}

.image-hover img {
    transition: transform 0.2s ease;
    backface-visibility: hidden;
}

.image-hover:hover img {
    transform: scale(1.05);
}

/* 
   =========================================
   タグとバッジ
   =========================================
*/
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    background: rgba(255, 20, 147, 0.1);
    color: var(--primary-color);
}

/* 
   =========================================
   スクロールバーのスタイリング（オプション）
   =========================================
*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 
   =========================================
   モバイル最適化（タッチ操作のスムーズ化）
   =========================================
*/
@media (max-width: 767px) {
    /* スクロールのスムーズ化 - smooth削除してネイティブ動作に */
    html {
        -webkit-overflow-scrolling: touch;
        /* scroll-behavior: smooth; を削除 - 干渉を防ぐ */
    }
    
    /* タップハイライトを無効化 */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* アニメーションを軽量化 */
    .fade-in-up {
        transition: all 0.4s ease-out;
    }
    
    /* ホバーエフェクトを簡略化 */
    .card-hover:hover,
    .image-hover:hover,
    .btn:hover {
        transform: none;
    }
    
    /* 固定背景をシンプルに */
    body::before {
        opacity: 0.2;
        background-size: 100px auto;
    }
}

/* 
   =========================================
   パフォーマンス向上のための追加最適化
   =========================================
*/

/* 画像の遅延読み込みサポート */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* レイアウトシフト防止 */
img {
    max-width: 100%;
    height: auto;
}

/* フォント読み込み最適化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* === Performance Patch (2026-01-04) === */
/* TOPページのみ：ロゴ回転背景（body::before/after）を無効化（デザイン要件により削除） */
.home body::before,
.home body::after {
    content: none !important;
}

/* TOPページのキャストセクション：スクロール時の再描画範囲を局所化（見た目は維持） */
.home #cast .reveal-on-scroll,
.home #cast [class*="backdrop-blur"] {
    contain: paint;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 
   =========================================
   タグカラー設定（v1.5.0）
   =========================================
*/
.tag-swimwear {
    background-color: #E0F2FE !important; /* 淡い水色 */
    color: #0369A1 !important;            /* 深い青 */
    font-weight: 600;
    border: 1px solid #BAE6FD;
}

.tag-cosplay {
    background-color: #FCE7F3 !important; /* 淡いピンク */
    color: #BE185D !important;            /* 深いピンク */
    font-weight: 600;
    border: 1px solid #FBCFE8;
}

.tag-photo {
    background-color: #F3E8FF !important; /* 淡い紫 */
    color: #7E22CE !important;            /* 深い紫 */
    font-weight: 600;
    border: 1px solid #E9D5FF;
}

/* 
   =========================================
   画像切り替えアニメーション（v1.5.0）
   =========================================
*/
#main-image {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

#main-image.changing {
    opacity: 0;
    transform: scale(0.98);
}

/* サムネイルのホバーエフェクト強化 */
.thumbnail-item {
    transition: all 0.2s ease;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 
   =========================================
   SNSアイコン（v1.5.0 - 常時表示対応）
   =========================================
*/
.sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    position: relative;
}

.sns-icon.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sns-icon.inactive {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.sns-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.sns-instagram.inactive {
    background: #D1D5DB;
    color: #9CA3AF;
}

.sns-x {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

.sns-x i,
.sns-x .fa-brands,
.sns-x .fa-x-twitter {
    color: #FFFFFF !important;
    background: none !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.sns-x.inactive {
    background: #D1D5DB !important;
    color: #9CA3AF !important;
    border: 2px solid #D1D5DB !important;
}

.sns-x.inactive i,
.sns-x.inactive .fa-brands,
.sns-x.inactive .fa-x-twitter {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
}

.sns-tiktok {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.sns-tiktok.inactive {
    background: #D1D5DB;
    border: 2px solid #D1D5DB;
}

.sns-tiktok.inactive i {
    color: #9CA3AF !important;
    background: none !important;
    -webkit-text-fill-color: #9CA3AF !important;
}

.sns-tiktok.active i {
    color: #FFFFFF;
    background: none;
    -webkit-text-fill-color: #FFFFFF;
}

/* トップページのスクロールパフォーマンス最適化 */
@media (max-width: 767px) {
    /* モバイルでアニメーションを軽量化（但し過度な短縮はしない） */
    .fade-in-up {
        transition-duration: 0.4s !important;
    }
    
    /* スクロール時のリフロー削減 */
    .fade-in-up {
        contain: layout style paint;
    }
    
    /* スクロール位置の自動調整を無効化 */
    html {
        scroll-padding-top: 0;
        overflow-anchor: none; /* スクロールアンカーを無効化 */
    }
    
    body {
        overflow-anchor: none;
    }
}

/* 
   =========================================
   運営コメント折りたたみアニメーション
   =========================================
*/
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
}

details summary:hover {
    background-color: rgba(255, 105, 180, 0.1);
}

/* 折りたたみコンテンツのアニメーション */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

details[open] > *:not(summary) {
    animation: slideDown 0.3s ease-out;
}

/* 
   =========================================
   v1.5.4 スクロール最適化（カクつき防止）
   =========================================
*/

/* スクロールのスムーズ化とカクつき防止 */
html {
    scroll-behavior: auto !important;
    overflow-anchor: none;
    overflow-y: auto !important;
}

body {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

/* iOS向けスクロール最適化 */
@supports (-webkit-touch-callout: none) {
    body {
        /* position: fixed; を削除 - スクロールを阻害 */
        /* overflow-y: scroll; */
        /* width: 100%; */
        /* height: 100%; */
        -webkit-overflow-scrolling: touch;
    }
}

/* スクロール時のレイアウトシフト防止（限定適用に変更：全要素指定は重くなりがち） */
.fade-in-up,
.card-hover,
.image-hover img,
.btn,
.btn-primary,
.thumbnail-item,
#main-image,
.bg-aurora,
.bg-stylish,
.glass-panel {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* GPU加速の最適化（必要最小限に） */
.card-hover,
.image-hover,
.btn-primary {
    transform: translateZ(0);
}

/* アニメーション中のみwill-changeを適用 */
.reveal-on-scroll.revealed {
    will-change: auto;
}

/* Intersection Observer用の最適化 */
img[loading="lazy"] {
    content-visibility: auto;
}


/* 
   =========================================
   背景パターン（格子・ドット）
   =========================================
*/
.bg-pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(236, 72, 153, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.bg-pattern-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(236, 72, 153, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* 背景パターンのバリエーション */
.bg-pattern-grid-dense {
    background-size: 20px 20px;
}

.bg-pattern-dots-dense {
    background-size: 10px 10px;
}


/* 青い枠線（outline）を削除 */
*:focus,
*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* アンダーラインを削除 */
.underline {
    text-decoration: none !important;
}

a {
    text-decoration: none !important;
}


/* Flow page CTA panel fix (avoid overlap/transparent) */
.cta-panel-flow{position:relative; z-index:20;}


/* Flow page CTA panel fix v2 (avoid overlap/transparent) */
.cta-panel-flow{position:relative; z-index:50;}
.cta-panel-flow::before{content:''; position:absolute; inset:-10px; border-radius:24px; background:rgba(255,255,255,0.35); filter:blur(0px); z-index:-1;}


/* ---------------------------------------------------------
   Readability patches (mobile UX)
--------------------------------------------------------- */

/* Prevent text overflow in cards/boxes (emails, long words) */
p, li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Do not break words/numbers awkwardly in UI elements and tables */
button, a, span, td, th {
    overflow-wrap: normal;
    word-break: normal;
}
/* Japanese line-breaking: avoid awkward justification on mobile */
@media (max-width: 767px) {
    .text-justify {
        text-align: left !important;
    }
}

/* Improve readability for long paragraphs on mobile */
@media (max-width: 767px) {
    .leading-loose {
        line-height: 2.0 !important;
    }
}


/* ---------------------------------------------------------
   Mobile readability improvements (v1.6.2)
--------------------------------------------------------- */

/* Prevent text from overflowing containers on small screens */
*, *::before, *::after { box-sizing: border-box; }

p, li, td, th, a, span, strong {
    overflow-wrap: break-word;
    word-break: break-word;
    line-break: strict;
}

/* Improve paragraph readability */
p { line-height: 1.9; }

@media (max-width: 767px) {
    /*
      Mobile readability:
      - Keep default center alignment as authored.
      - For long copy that should be left-aligned on mobile, add class="sp-left".
    */
    .text-center p.sp-left { text-align: left !important; }

    /*
      Exception: short lead copy is sometimes designed to remain centered for visual balance.
      Add class="keep-center" to opt-out of the readability patch.
    */
    .text-center p.keep-center { text-align: center !important; }

    /* Reduce excessive spacing that can cause awkward wraps */
    .tracking-widest { letter-spacing: 0.08em; }

    /* Ensure cards and panels never clip text */
    .glass-panel, .rounded-2xl, .rounded-3xl { overflow: visible; }
}



/* FIXED CTA SAFE AREA */
@media (max-width: 767px){
  /*
    Avoid adding padding to <body> (it creates a blank gap after the footer).
    Instead, extend the footer padding only when a fixed CTA exists.
    JS adds .has-fixed-cta to <body> when .mobile-line-cta is present.
  */
  body.has-fixed-cta footer{ padding-bottom: 120px !important; }

  /* Toggle helper */
  .mobile-line-cta.is-hidden{ display: none !important; }
}


/* --- Mobile alignment hardening (Recruit page) --- */
/* Some blocks can appear left-aligned on mobile depending on nested element defaults.
   Keep copy and headings centered on mobile, while preserving table readability. */
@media (max-width: 767px) {
  body.page-template-page-recruit :is(h1, h2, h3, h4, p, ul, ol, li) { text-align: center; }
  body.page-template-page-recruit table,
  body.page-template-page-recruit th,
  body.page-template-page-recruit td { text-align: left; }
}

/* FV（ヒーロー）と次セクションのつなぎ目の段差を吸収（SP/PC） */
/* モバイルでは微量の重なりだけ入れて、境界線（1pxの隙間）を確実に潰す */
.news-seam-fix{
  margin-top: -8px;
  padding-top: calc(3rem + 8px); /* もともとのpt-12(=3rem)にオフセットを足す */
}

/* PCは重なりを大きくして、背景の繋ぎ目をより自然に */
@media (min-width: 1024px){
  .news-seam-fix{
    margin-top: -40px;
    padding-top: calc(3rem + 40px);
  }
}

/* === Fix: sticky footer on mobile (iOS svh) === */
html, body { min-height: 100%; }
body { min-height: 100svh; }
main { flex: 1 0 auto; }

/* === Fix: prevent horizontal page scroll on pricing page === */
body.page-template-page-pricing { overflow-x: hidden; }
body.page-template-page-pricing .table-scroll-container { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.page-template-page-pricing table { max-width: 100%; }

/* === Fix: home pricing table currency should not wrap === */
#pricing td { white-space: nowrap; }

/* === Fix: thank you page text wrapping === */
body.page-template-page-contact-thanks span, 
body.page-template-page-contact-thanks p { overflow-wrap: normal; word-break: normal; }


/* === v5 Fix: pricing page should not allow horizontal scroll (mobile) === */
body.page-template-page-pricing, 
body.page-template-page-pricing html,
html:has(body.page-template-page-pricing) { overflow-x: hidden; }

/* iOS Safari doesn't support :has widely; keep direct html rule */
html { 
    overflow-x: hidden;
    overflow-y: auto !important;
}

@media (max-width: 767px){
  body.page-template-page-pricing .table-scroll-container{
    overflow-x: hidden; /* disable horizontal scroll container */
  }
  body.page-template-page-pricing table.pricing-table{
    width: 100%;
    table-layout: fixed;
  }
  body.page-template-page-pricing table.pricing-table th,
  body.page-template-page-pricing table.pricing-table td{
    padding: 0.5rem !important;
    font-size: 0.75rem;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  body.page-template-page-pricing table.pricing-table th:first-child,
  body.page-template-page-pricing table.pricing-table td:first-child{
    width: 22%;
  }
  body.page-template-page-pricing table.pricing-table th:not(:first-child),
  body.page-template-page-pricing table.pricing-table td:not(:first-child){
    width: 26%;
    text-align: center;
  }
  body.page-template-page-pricing table.pricing-table td{
    white-space: nowrap; /* prevent 12,000円 breaking */
  }
}

/* ============================================
   スクロール修正 v1.2.1 ULTRA SIMPLE
   最もシンプルで確実な解決策
   ============================================ */

/* HTMLとBODYは常にスクロール可能（例外なし） */
html, body {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
}

/* メニューが開いている時だけスクロールを無効化 */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    top: 0;
    left: 0;
}