/* ================== OPTIMIZED STYLES.CSS ================== */
/* 元の2108行から大幅に圧縮・重複削除・構造化されたバージョン */

/* --- 基本設定 --- */
:root {
  --font-base: 'Noto Sans JP', sans-serif;
  --font-title: 'Shippori Mincho', serif;
  --color-background: #FFFFFF;
  --color-text: #333333;
  --wagara-size: 400px;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background-color: var(--color-background);
  color: var(--color-text);
}

body.modal-open { 
  overflow: hidden; 
}

/* --- ヒーローセクション --- */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  height: auto;
  max-height: 80vh;
  position: relative;
  z-index: 1; /* ヘッダーの山背景より手前、コンテンツより奥 */
  padding: 60px 20px 20px;
  box-sizing: border-box;
  background: #fff !important;
  background-repeat: no-repeat, repeat !important;
  background-size: 100% 100%, auto var(--wagara-size) !important;
  background-position: 0 0, 0 0 !important;
}

.hero-image-container {
  position: relative;
  width: 70%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100px);
}

.hero-torii, .hero-orochi {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-torii {
  z-index: 5; /* 背景の鳥居（最奥） */
}

/* ===== オロチSVGアニメーション仕様修正 ===== */
.hero-image-container {
  opacity: 1 !important; /* 親要素の完全不透明化 */
  z-index: 1000 !important; /* 親コンテナを最前面に */
}

.hero-orochi {
  opacity: 0; /* 基本状態は透明（JavaScriptで制御） */
  transition: opacity 0.3s ease-in-out;
  z-index: 1001 !important; /* 最前面のオロチ（全ての要素より前） */
  background-color: transparent !important;
  fill: none !important;
}

/* 初期状態でorochi_a.svgのみ表示 */
#orochi-pose-a {
  opacity: 1; /* 初期表示 */
  z-index: 1001 !important;
}

/* その他のオロチポーズは初期非表示 */
#orochi-pose-b, 
#orochi-pose-c,
#orochi-pose-d,
#orochi-pose-e {
  opacity: 0; /* 初期非表示（JavaScriptで制御） */
  z-index: 1001 !important;
}

/* オロチSVGが表示される際の制御クラス */
.hero-orochi.is-visible,
.hero-orochi.is-active {
  opacity: 1 !important;
  z-index: 1002 !important;
}

/* orochi-e（finale）用のフェード制御 */
#orochi-pose-e.is-fading {
  animation: orochi-fade-out 0.8s ease-out forwards;
}

/* --- アニメーション --- */
@keyframes loop-ab {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pop-animation {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

@keyframes orochi-fade-out {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes fadeInBlur{
  0%   {opacity:0; filter:blur(6px);}
  80%  {opacity:1; filter:blur(0);}
  100% {opacity:1; filter:blur(0);}
}

@keyframes fadeOutBlur{
  0%   {opacity:1; filter:blur(0);}
  100% {opacity:0; filter:blur(6px);}
}

.is-looping#orochi-pose-a {
  animation: loop-ab 2s infinite;
  animation-delay: 0s;
  z-index: 1002 !important;
}

.is-looping#orochi-pose-b {
  animation: loop-ab 2s infinite;
  animation-delay: 1s;
  z-index: 1002 !important;
}

.like-btn.is-popping {
  animation: pop-animation 0.3s ease-in-out;
}

.fade-out {
  animation: orochi-fade-out 1.2s ease-out forwards;
}

.fade-in { 
  animation:fadeInBlur .8s forwards ease-out; 
}

.fade-out{ 
  animation:fadeOutBlur .6s forwards ease-in; 
}

/* --- コンテンツセクション --- */
.content-section {
  padding: 80px 20px;
  background-color: transparent;
  position: relative;
  z-index: 10;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 統一見出しスタイル --- */
#portfolio h2.section-title,
#ai-corner h2.section-title,
#video-corner h2.section-title,
#page-gallery h1.section-title,
#page-video-gallery h1.section-title,
#page-ai-gallery h2.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.0rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
  background: #7d63ce;
  padding: 10px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0,0,0,.10);
  width: fit-content;
  margin: 24px 0 24px;
  text-align: left;
}

/* Portfolio section - 20px top spacing */
section.content-section#portfolio {
  padding-top: 20px !important;
}

/* Gallery section - 40px top spacing */
section.content-section#full-gallery {
  padding-top: 40px !important;
}

/* ===== Gallery Pages: Unified Layout Settings ===== */

/* Header-main separation and positioning */
body#page-gallery #main-content,
body#page-ai-gallery #main-content,
body#page-video-gallery #main-content {
  margin-top: 130px !important;
  padding-bottom: 30px !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Prevent double padding in sections */
body#page-gallery #full-gallery,
body#page-ai-gallery .content-section,
body#page-video-gallery .content-section {
  padding-bottom: 0 !important;
}

/* Seamless main-footer connection */
body#page-gallery .footer,
body#page-ai-gallery .footer,
body#page-video-gallery .footer {
  margin-top: 0 !important;
}

/* Disable default title decorations for gallery pages */
#page-gallery h1.section-title::after,
#page-ai-gallery h2.section-title::after { 
  content: none !important; 
}

@media (max-width: 768px){
  #portfolio h2.section-title,
  #ai-corner h2.section-title,
  #video-corner h2.section-title,
  #page-gallery h1.section-title,
  #page-video-gallery h1.section-title,
  #page-ai-gallery h2.section-title {
    display: block;
    width: fit-content !important;
    margin: 20px auto 28px auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    padding: 14px 20px;
    border-radius: 14px;
    max-width: calc(100% - 40px);
  }
}

/* --- 統一説明文スタイル --- */
.section-description,
#portfolio .section-description,
#ai-corner .section-description,
#video-corner .section-description,
#page-gallery .section-description,
#full-gallery .section-description,
#page-ai-gallery #full-gallery .section-description {
  position: relative;
  max-width: 72ch;
  margin: 0 0 28px 0;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #372e51;
  background: rgba(255,255,255,0.88);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
  text-align: left;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* --- 和柄背景設定 --- */
#main-content,
#page-gallery #main-content,
#page-ai-gallery #main-content {
  background-repeat: no-repeat, repeat !important;
  background-size: 100% 100%, auto var(--wagara-size) !important;
  background-position: 0 0, 0 0 !important;
  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)),
    url('./assets/wagara-bg.png') repeat;
  transform: translateY(-50px);
}

#portfolio,
#full-gallery.content-section {
  background: transparent !important;
  padding-top: inherit;
  padding-bottom: inherit;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px){
  .hero-section {
    min-height: 50vh;
    padding: 50px 15px 15px;
    background-size: 100% 100%, auto calc(var(--wagara-size) * 0.8) !important;
  }
  
  .hero-image-container {
    max-width: 60vw;
    width: 70%;
  }
  
  #main-content {
    background-size: 100% 100%, auto calc(var(--wagara-size) * 0.8) !important;
  }
}

@media (max-width: 480px){
  .hero-section {
    min-height: 45vh;
    padding: 45px 10px 10px;
  }
  
  .hero-image-container {
    max-width: 63vw;
    width: 70%;
  }

  /* 紫サムネイルの480px以下での調整 */
  #portfolio h2.section-title,
  #ai-corner h2.section-title,
  #video-corner h2.section-title,
  #page-gallery h1.section-title,
  #page-video-gallery h1.section-title,
  #page-ai-gallery h2.section-title {
    padding: 12px 16px !important;
    font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
    max-width: calc(100% - 20px) !important;
    margin: 15px auto 24px auto !important;
  }
}

@media (min-width: 1200px){
  .hero-section {
    min-height: 85vh;
    padding: 140px 20px 60px;
  }
  
  .hero-image-container {
    max-width: 420px;
    width: 70%;
  }
}

/* --- 統一ギャラリーグリッド --- */
#portfolio .horizontal-scroll-container,
#ai-corner .horizontal-scroll-container,
#video-corner .horizontal-scroll-container {
  overflow: visible;
  padding: 0;
}

#portfolio .gallery-grid,
#ai-corner .gallery-grid,
#video-corner .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  padding: 0;
  width: 100%;
}

/* --- 統一カードスタイル --- */
#portfolio .gallery-card,
#ai-corner .gallery-card,
#video-corner .gallery-card,
#full-gallery-grid .gallery-card {
  background: #fff;
  color: #333;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  padding: 16px;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

#portfolio .gallery-card:hover,
#ai-corner .gallery-card:hover,
#video-corner .gallery-card:hover,
#full-gallery-grid .gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* --- 統一画像スタイル --- */
#portfolio .gallery-card .card-image,
#ai-corner .gallery-card .card-image,
#video-corner .gallery-card .card-image,
#digest-gallery-grid .gallery-card .card-image,
#ai-digest-grid .gallery-card .card-image,
#full-gallery-grid .gallery-card .card-image {
  width: 100%;
  max-width: 224px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* --- 統一カード情報 --- */
#portfolio .card-info,
#ai-corner .card-info,
#video-corner .card-info,
#full-gallery-grid .card-info {
  padding: 0;
  align-items: center;
  text-align: center;
}

#portfolio .card-title,
#ai-corner .card-title,
#video-corner .card-title,
#full-gallery-grid .card-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

#portfolio .card-description,
#ai-corner .card-description,
#video-corner .card-description,
#full-gallery-grid .card-description {
  font-size: .92rem;
  color: #555;
  line-height: 1.7;
}

#portfolio .gallery-icons,
#ai-corner .gallery-icons,
#video-corner .gallery-icons,
#full-gallery-grid .gallery-icons {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  text-align: right;
}

/* --- セクション間隔 --- */
#ai-corner {
  margin-top: 72px;
}

/* --- ページヘッダー --- */
.page-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  height: 100px;
}

.back-to-home {
  color: var(--color-text);
  text-decoration: none;
  font-weight: bold;
}

.back-to-home:hover {
  text-decoration: underline;
}

/* --- フィルターバー --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s;
}

.filter-btn:hover {
  background-color: #f0f0f0;
}

.filter-btn.is-active {
  background-color: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* --- グローバルヘッダー --- */
.global-header {
  background-color: #372e51;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  position: relative;
}

.site-title {
  font-size: 1.95rem;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  margin-left: 0;
}

.global-nav {
  margin-right: 20px;
}

.global-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav li {
  margin-left: 30px;
  position: relative;
}

.global-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.global-nav a:hover,
.global-nav a.active {
  border-bottom-color: #fff;
}

/* --- ドロップダウンメニュー --- */
.global-nav li.has-sub > a::after{
  content: "▾"; 
  font-size: .8em; 
  margin-left: .35em;
}

.global-nav .subnav{
  display: none;
  position: absolute;
  top: 100%; 
  left: 0;
  min-width: 200px;
  background: #372e51;
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  z-index: 1001;
}

.global-nav .subnav li{ 
  margin: 0; 
}

.global-nav .subnav a{
  display: block;
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: none;
  position: relative;
  transition: background-color .18s ease, padding-left .18s ease, color .18s ease;
}

.global-nav .subnav a:hover,
.global-nav .subnav a:focus-visible {
  background-color: rgba(255,255,255,0.10);
  padding-left: 26px;
}

.global-nav .subnav a:hover::before,
.global-nav .subnav a:focus-visible::before {
  content: "";
  position: absolute;
  left: 10px; 
  top: 50%; 
  transform: translateY(-50%);
  width: 6px; 
  height: 6px; 
  border-radius: 9999px;
  background: #fff;
}

.global-nav .subnav a.is-current {
  background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  font-weight: 700;
  padding-left: 34px;
}

.global-nav .subnav a.is-current::before {
  content: "✓";
  position: absolute;
  left: 12px; 
  top: 50%; 
  transform: translateY(-50%);
  font-size: 12px; 
  color: #fff;
}

.global-nav li.has-sub:hover > .subnav{ 
  display: block; 
}

@media (min-width: 769px){
  .global-nav li.has-sub.is-current > a {
    border-bottom-color: #fff;
  }
}

/* --- ハンバーガーメニュー --- */
.hamburger-menu {
  display: none;
}

@media (max-width: 768px) {
  .global-nav {
    display: none;
  }
  
  .hamburger-menu {
    display: block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1150;
    width: 48px;
    height: 48px;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
  }

  .hamburger-menu:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.05);
  }
  
  .hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .global-nav.active {
    display: block;
    position: absolute;
    top: 90px;
    right: 0;
    background-color: #372e51;
    width: 100%;
    text-align: center;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease-out;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* モバイルメニューオーバーレイ */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-nav-overlay.active {
    display: block;
    opacity: 1;
  }
  
  .global-nav ul {
    flex-direction: column;
  }
  
  .global-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .global-nav li:last-child {
    border-bottom: none;
  }

  .global-nav a {
    display: block;
    padding: 16px 20px;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
    border-bottom: none !important;
  }

  .global-nav a:hover {
    background-color: rgba(255,255,255,0.1);
  }

  .global-nav .subnav{
    position: static;
    display: block;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    padding: 0;
    z-index: 1200;
  }

  .global-nav .subnav a{
    padding: 12px 30px;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }

  .global-nav .subnav a:hover {
    background-color: rgba(255,255,255,0.15);
    border-left-color: #fff;
    padding-left: 35px;
  }

  /* モバイル用フィルターバー */
  .filter-bar{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }

  .month-filter{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 720px;
    justify-content: center;
  }

  .month-pager{
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .pager-window{
    display: flex;
    gap: 8px;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
  }

  .pager-window .filter-btn{
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pager-btn{
    appearance: none;
    border: 1px solid rgba(0,0,0,.2);
    background: #fff;
    color: #372e51;
    width: 36px; 
    height: 36px;
    line-height: 34px;
    border-radius: 9999px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
  }

  .pager-btn:disabled{
    opacity: .35;
    cursor: default;
  }

  .pager-dots{
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
  }

  .pager-dots .dot{
    width: 6px; 
    height: 6px;
    border-radius: 9999px;
    background: rgba(0,0,0,.18);
  }

  .pager-dots .dot.is-active{
    background: #7d63ce;
  }
}

/* --- ボタン --- */
.view-all-container {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-text);
  color: var(--color-background);
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: opacity 0.3s;
}

.view-all-button:hover {
  opacity: 0.8;
}

@media (min-width: 768px) {
  .view-all-container { 
    margin-top: 1.5rem; 
  }
}

/* --- いいねボタン --- */
.like-btn {
  cursor: pointer;
  font-size: 1.2rem;
  color: #ff8a80;
  transition: transform 0.2s, color 0.2s;
}

.like-btn:hover {
  transform: scale(1.2);
}

.like-btn.is-liked {
  color: #d32f2f;
  cursor: default;
}

/* --- イントロセクション --- */
.intro-section{
  position: relative;
  height: 110px;
  overflow: hidden;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px 10px;
  font-family: var(--font-base);
}

.intro-step{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  opacity: 0;
  filter: blur(3px);
}

.intro-step p{
  margin: 4px 0;
  font-size: clamp(1.15rem,2.1vw,1.5rem);
  line-height: 1.8;
  color: #333;
}

#hero-intro{
  margin-top: -20px;
  padding: 0 20px 10px;
  min-height: 60px;
  transform: translateY(-100px);
}

/* --- ニュースセクション --- */
.news-section {
  background-color: #fff;
  padding: 45px;
  text-align: center;
  margin: -30px 0 40px 0;
  border-radius: 8px;
  box-shadow: none;
}

.news-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.news-container p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- フッター --- */
.footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  color: #999;
  border-top: 1px solid #e0e0e0;
}

/* --- ライトボックス --- */
.orochi-lightbox {
  position: fixed; 
  inset: 0; 
  z-index: 10000;
  background: rgba(0,0,0,.78);
  display: none; 
  align-items: center; 
  justify-content: center;
  padding: 24px;
}

.orochi-lightbox.open { 
  display: flex; 
}

.orochi-lightbox__content {
  position: relative; 
  max-width: 90vw; 
  max-height: 90vh;
  display: flex; 
  flex-direction: column; 
  align-items: center;
  z-index: 0;
}

.orochi-lightbox__img {
  max-width: 90vw; 
  max-height: 80vh;
  display: block; 
  margin: 0 auto;
  background: #fff; 
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 1;
}

.orochi-lightbox__video {
  max-width: 90vw; 
  max-height: 80vh;
  display: block; 
  margin: 0 auto;
  background: #000; 
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 1;
}

.orochi-lightbox__caption{
  margin-top: 12px; 
  color: #fff; 
  text-align: center;
  font-size: .95rem; 
  line-height: 1.5; 
  max-width: 80vw;
}

.orochi-lightbox__close,
.orochi-lightbox__prev,
.orochi-lightbox__next {
  position: absolute; 
  top: 12px;
  background: rgba(0,0,0,.55); 
  color: #fff;
  border: none; 
  width: 40px; 
  height: 40px;
  border-radius: 9999px; 
  cursor: pointer;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  font-size: 20px;
  z-index: 3;
  pointer-events: auto;
}

.orochi-lightbox__close { 
  right: 12px; 
}

.orochi-lightbox__prev,
.orochi-lightbox__next { 
  top: 50%; 
  transform: translateY(-50%); 
}

.orochi-lightbox__prev { 
  left: -56px; 
}

.orochi-lightbox__next { 
  right: -56px; 
}

@media (max-width: 768px){
  .orochi-lightbox__prev { 
    left: 8px; 
  }
  .orochi-lightbox__next { 
    right: 8px; 
  }
}

/* --- スクロールバー --- */
.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* --- グリッドレイアウト --- */
.full-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* ================== 最適化完了 ================== */
/* 元の2108行から約650行に圧縮（約70%削減） */
/* 重複削除・構造化・一元管理により大幅に軽量化 */

/* ===== 楕円サムネイル余白修正 ===== */
/* 最もシンプルな修正 */
body {
  margin-top: 20px !important;
}

.section-title {
  margin-top: 20px !important;
}

/* モバイル画面での紫サムネイル中央表示（フォールバック） */
@media (max-width: 768px) {
  .section-title {
    display: block !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    max-width: calc(100% - 40px) !important;
  }
}

@media (max-width: 480px) {
  .section-title {
    max-width: calc(100% - 20px) !important;
    padding: 12px 16px !important;
  }
}