/* Global reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== カラートークン(白黒基調はそのまま、階調だけ整理) ===== */
:root {
  --bg-base: #FAFAF8;   /* ページの基本背景。純白より目に優しい微オフホワイト */
  --bg-alt: #F2F1ED;    /* セクションを区切るための、もう一段階濃いオフホワイト */
  --bg-pure: #FFFFFF;   /* TOP・SHOPなど「見せ場」用の純白 */
  --ink: #000000;       /* 見出し・強調用の最も濃い黒 */
  --ink-soft: #3D3D3D;  /* 本文用 */
  --ink-muted: #8A8A85; /* 日付・番号・補足情報など、控えめな情報用 */
  --ink-faint: #B5B4AF; /* 「開催予定」など、あえて薄く見せたい情報用 */
  --line: rgba(0, 0, 0, 0.12); /* セクション境界の罫線 */
}

body {
  overflow-x: hidden;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Typography Base */
.section-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 4rem;
  text-transform: uppercase;
  color: var(--ink);
}

.view-link {
  margin-top: 3rem;
}

/* ===== CTAボタン(VIEW〜/MORE〜)共通デザイン =====
   対象: .view-link / .project-link / .api-fallback-link (セクション全体の続きを見るCTA)
   .latest-new-link(個別投稿へのリンク)は下の専用スタイルで別デザインにする
   ヘッダー・フッター・本文中の通常リンク・スマホメニューには適用しない
   「大きなボタン」ではなく、控えめな案内ラベルとして本文より目立ちすぎないサイズに調整 */
.view-link,
.project-link,
.api-fallback-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background-color: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 2px;
  transition: background-color 0.25s ease;
}
.view-link:hover,
.project-link:hover,
.api-fallback-link:hover {
  opacity: 1; /* サイト共通の a:hover{opacity:0.5} を打ち消し、コントラストを保つ */
  background-color: #2E2E2E;
}

/* 個別投稿の「VIEW ON X →」: 黒ボタンとは競合しない、控えめな下線リンク
   本文よりは目立つが、セクション全体のCTA(黒ボタン)より弱い強さにする */
.latest-new-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.latest-new-link:hover {
  opacity: 0.5;
}

/* SECTIONS */
section {
  padding: 8rem 0;
}

/* HEADER */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 2rem 5%;
  z-index: 10;
}
.main-nav .nav-list {
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
  list-style: none;
}
.main-nav .nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  align-items: flex-end;
  justify-content: center;
  /* button要素化に伴うブラウザ標準の見た目を打ち消す(見た目・動作は維持) */
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.hamburger:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
.hamburger span {
  width: 25px;
  height: 1.5px;
  background: #000;
  margin: 3px 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
  display: block;
}

/* TOP */
.section-top {
  position: relative;
  height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
}
.top-content {
  text-align: center;
}
.top-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 4rem;
}
.top-info {
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 2;
}

/* LATEST */
.latest-feed {
  max-width: 900px;
}
.latest-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #eee;
  transition: opacity 0.3s ease;
}
.latest-item:last-child {
  border-bottom: none;
}
.latest-item:hover {
  opacity: 0.7;
}
.latest-content {
  flex: 1;
}
.latest-date {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.latest-text {
  font-size: 1.1rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-media {
  flex-shrink: 0;
}
.latest-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .latest-item {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }
  .latest-image {
    width: 250px;
    height: 160px;
  }
}


/* SHOP (AVAILABLE) */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6rem 3rem;
}
.shop-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-bottom: 1.5rem;
  background-color: #f8f8f8;
}
.shop-info {
  font-size: 1.1rem;
}
.shop-artist {
  margin-bottom: 0.2rem;
}
.shop-title {
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.shop-price {
  font-size: 1rem;
}

/* EXHIBITIONS */
.exhibitions-list {
  border-top: 1px solid #000;
}
.exhibition-row {
  display: flex;
  align-items: baseline;
  padding: 2.5rem 0;
  border-bottom: 1px solid #eee;
}
.ex-status {
  flex: 0 0 15%;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.ex-details {
  flex: 1;
}
.ex-title {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}
.ex-artist {
  font-size: 1.1rem;
}
.ex-date {
  flex: 0 0 25%;
  text-align: right;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  color: #000;
}
.current .ex-status {
  color: #000;
  font-weight: bold;
}

/* INSTAGRAM */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
/* 正方形の基準はラッパー(a.instagram-item)側に持たせる。
   img自体にはHTML側でwidth/height="400"の指定があり、img側にaspect-ratioを付けると
   グリッドの行の高さ計算と競合して正方形にならない場合がある。
   さらにimgを絶対配置にして、グリッドの行の高さ計算にimgの実サイズが
   一切影響しないようにする(先頭投稿を通常投稿と同じ高さにするための土台) */
.instagram-item {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.instagram-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.instagram-item:hover img {
  transform: scale(1.05);
}
/* 先頭(最新)の1枚だけ大きく扱い、写真グリッドに主役を作る(横2列分・高さは通常投稿と同じ1行分)
   独自の比率は持たせず、同じ行にある通常投稿(正方形)の高さにそのまま合わせる */
.instagram-grid .instagram-item:first-child {
  grid-column: span 2;
  aspect-ratio: auto;
}

/* PROJECTS (ALSO FROM SANGATSU) */
.projects-layout {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}
.project-block {
  display: flex;
  gap: 4rem;
  align-items: center;
}
.mirrorr-block {
  flex-direction: row-reverse; /* Asymmetry */
}
.project-image {
  width: 50%;
  height: auto;
  display: block;
}
.project-text {
  flex: 1;
}
.project-name {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 1rem;
}
.project-desc {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

/* ABOUT */
.about-text {
  font-size: 1.5rem;
  line-height: 2;
  max-width: 800px;
}

/* FOOTER */
.site-footer {
  padding: 6rem 0;
  border-top: 1px solid #000;
}
.footer-container {
  display: flex;
  justify-content: space-between;
}
.footer-left {
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-logo {
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.footer-copy {
  margin-top: 3rem;
  color: var(--ink-muted);
}
.footer-links {
  display: flex;
  gap: 4rem;
}
.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.link-group a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
/* SNS公式アイコン(Instagram/X)。Instagramガイドラインの最小サイズ29pxを満たす30pxで表示 */
.link-group a.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.sns-icon {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

/* Lock scroll when mobile menu is open */
body.menu-open {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Responsive */
@media (max-width: 900px) {
  /* CTAボタンは見た目は小さいまま、指で押しやすいよう縦方向だけ少し余裕を持たせる */
  .view-link,
  .project-link,
  .api-fallback-link {
    padding: 9px 14px;
  }
  .site-header {
    padding: 1.5rem 5%;
    z-index: 1000;
  }
  .main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .hamburger {
    display: flex;
    position: relative;
    z-index: 2002;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
  }
  .hamburger.active {
    position: fixed;
    top: 1.5rem;
    right: 5%;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .main-nav .nav-list {
    display: none; /* Controlled by .active class */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff;
    z-index: 2001;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem 36px 2rem 36px;
    gap: 22px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    margin: 0;
  }
  .main-nav .nav-list.active {
    display: flex;
  }
  .main-nav .nav-list li {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  /* グループの区切り線（HOME〜ACCESS / NUANCE・gallery mirrorr / SHOP・CONTACT） */
  .main-nav .nav-list li.nav-group-break {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }
  .main-nav .nav-link {
    display: inline-block;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #000;
    text-align: left;
    text-decoration: none;
    padding: 3px 0;
    transition: opacity 0.2s ease;
  }
  .main-nav .nav-link:hover {
    opacity: 0.5;
  }
  /* 外部サイトへのリンクであることが分かる小さな矢印（見出しやテキストは追加しない） */
  .main-nav .nav-list a.nav-link[target="_blank"]::after {
    content: "↗";
    display: inline-block;
    margin-left: 0.45em;
    font-size: 0.65em;
    opacity: 0.45;
    vertical-align: 0.15em;
  }
  .top-logo {
    max-width: 250px;
  }
  section {
    padding: 5rem 0;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .exhibition-row {
    flex-direction: column;
    gap: 1rem;
  }
  .ex-status, .ex-date {
    flex: auto;
    text-align: left;
  }
  .ex-title {
    font-size: 1.5rem;
  }
  .instagram-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .instagram-grid .instagram-item:first-child {
    grid-column: auto;
    aspect-ratio: 1 / 1; /* モバイルは1件のみ表示のため、他の投稿と同じ正方形に戻す */
  }
  .project-block, .mirrorr-block {
    flex-direction: column;
    gap: 2rem;
  }
  .project-image {
    width: 100%;
  }
  .about-text {
    font-size: 1.2rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 4rem;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 2rem 4rem;
  }
}
@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}


/* Moon UI */
#scroll-moon-indicator {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
  opacity: 0.7;
}
@media (max-width: 768px) {
  #scroll-moon-indicator {
    display: none; /* Hide on small screens per instruction */
  }
}

.section-moon-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  margin-top: -0.3rem;
  transition: transform 0.4s ease;
  width: 20px;
  height: 20px;
}
@media (min-width: 768px) {
  .section-title:hover .section-moon-icon {
    transform: rotate(-15deg);
  }
}

/* LATEST TICKER */
.latest-ticker-wrapper {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.6rem 0;
  background: transparent;
  white-space: nowrap;
}

.latest-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
}

.ticker-content {
  display: inline-flex;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-block;
  padding-right: 12rem; /* Wide gap */
  font-size: 0.8rem; /* Smaller text */
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.ticker-item:hover {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .latest-ticker-track {
    animation: none;
  }
  .latest-ticker-wrapper {
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .latest-ticker-wrapper {
    padding: 0.5rem 0;
  }
  .ticker-item {
    font-size: 0.75rem;
    padding-right: 6rem;
  }
}

/* EXHIBITIONS HUGE DATE TYPOGRAPHY */
.exh-huge-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: #000;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4rem 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}
.exh-huge-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
a.exh-huge-item:hover {
  opacity: 0.6;
}

.exh-huge-status {
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.exh-huge-date {
  font-size: 5rem;
  line-height: 1;
  font-weight: bold;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.exh-huge-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exh-huge-title {
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0;
}

.exh-huge-artist {
  font-size: 1rem;
  margin: 0;
}

/* Status Variations */
.exh-huge-item.current .exh-huge-date {
  color: #000;
}
.exh-huge-item.current .exh-huge-title {
  font-size: 2rem;
  font-weight: bold;
}
.exh-huge-item.upcoming .exh-huge-date {
  color: var(--ink-faint);
}
.exh-huge-item.upcoming .exh-huge-title {
  color: var(--ink-soft);
}
.exh-huge-item.upcoming .exh-huge-status {
  color: var(--ink-muted);
}

/* Arrow */
.exh-huge-arrow {
  position: absolute;
  right: 1rem;
  bottom: 4rem;
  font-size: 2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
a.exh-huge-item:hover .exh-huge-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  .exh-huge-item {
    padding: 2.5rem 0;
  }
  .exh-huge-date {
    font-size: clamp(2rem, 7.5vw, 2.8rem);
    margin-bottom: 1.5rem;
    word-break: break-word;
  }
  .exh-huge-item.current .exh-huge-title {
    font-size: 1.4rem;
  }
  .exh-huge-title {
    font-size: 1.1rem;
  }
  .exh-huge-arrow {
    font-size: 1.5rem;
    bottom: 2.5rem;
  }
}

/* TIME DESIGN (OSAKA CLOCK) */
.top-clock {
  position: absolute;
  bottom: 5rem;
  left: 2rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .top-clock {
    display: none;
  }
}

/* TIME DESIGN (ABOUT BACKGROUND) */
.about-time-bg {
  font-size: 10rem;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.015);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  .about-time-bg {
    font-size: 4rem;
  }
}

/* TIME DESIGN (EXHIBITIONS DAYS LEFT) */
.exh-huge-status-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.exh-huge-status-wrap .exh-huge-status {
  margin-bottom: 0;
}
.exh-huge-daysleft {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  font-weight: normal;
}
@media (max-width: 768px) {
  .exh-huge-daysleft {
    font-size: 0.75rem;
  }
}

/* Hide any auto-injected Netlify badges, HUD, overlays or drawers */
#nl-badge-frame,
#nl-hud-frame,
iframe[id^="nl-"],
iframe[src*="netlify"],
iframe[srcdoc*="netlify"],
.netlify-badge,
a[href*="netlify.com"] img,
[data-netlify-drawer],
[data-netlify-feedback] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
}

/* API Fallback Minimal Styles */
.api-fallback {
  grid-column: 1 / -1;
  width: 100%;
  padding: 2.5rem 0;
}

.api-fallback-msg {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}


a.exhibition-row:hover {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

html, body {
  overflow-x: hidden;
}

/* SECTION HEADERS (Numbers + Border) */
section[id] {
  border-top: 1px solid var(--line);
  padding-top: 5rem;
}
.section-top {
  border-top: none !important;
  padding-top: 0 !important;
  background: var(--bg-pure);
}

.section-header-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  gap: 1rem;
}

.section-number {
  font-size: 1.05rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.section-title {
  margin-bottom: 0 !important; /* Overriding previous margin */
}

/* HOMEの各セクションに背景の緩急を付け、境界を分かりやすくする */
.section-about      { background: var(--bg-base); }
.section-latest      { background: var(--bg-alt); }
.section-shop         { background: var(--bg-pure); }
.section-exhibitions  { background: var(--bg-base); }
.section-instagram    { background: var(--bg-alt); }
.section-projects     { background: var(--bg-pure); }

@media (max-width: 768px) {
  section {
    padding: 4.5rem 0;
  }
  section[id] {
    padding-top: 3.2rem;
    padding-bottom: 4.5rem;
  }
  /* HOMEの背景リズムはPCと同じトークンをそのまま使うため、ここでの上書きは行わない */

  .section-header-wrap {
    margin-bottom: 2rem;
  }
  .view-link {
    margin-top: 2rem;
  }
  .about-intro {
    margin-bottom: 2.5rem !important;
  }
  .latest-new-item {
    padding: 2rem 0;
  }
  /* Mobile: Show only latest 3 items for SHOP / BASE */
  .shop-grid .shop-item:nth-child(n+4) {
    display: none !important;
  }
  .shop-grid .skeleton-item:nth-child(n+4) {
    display: none !important;
  }
  /* Mobile: Show only latest 1 item for NEWS (X) and Instagram */
  .latest-feed .latest-new-item:not(:first-child) {
    display: none !important;
  }
  .latest-feed .skeleton-item:not(:first-child) {
    display: none !important;
  }
  .instagram-grid .instagram-item:not(:first-child) {
    display: none !important;
  }
  .instagram-grid .skeleton-item:not(:first-child) {
    display: none !important;
  }
  .projects-layout {
    gap: 3rem;
  }
}

/* NEW LATEST REDESIGN */
.latest-feed {
  display: flex;
  flex-direction: column;
}

.latest-new-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: 
    "header"
    "text"
    "media"
    "link";
  gap: 1.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.latest-new-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.latest-new-header {
  grid-area: header;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
}

.latest-new-num {
  font-weight: bold;
  color: #000;
}

.latest-new-text {
  grid-area: text;
  font-size: 1rem;
  line-height: 1.8;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-new-media {
  grid-area: media;
}

.latest-new-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.latest-new-link {
  grid-area: link;
  justify-self: start; /* グリッド内で幅いっぱいに伸びず、文字量に合わせる */
}

@media (min-width: 769px) {
  .latest-new-item {
    grid-template-columns: 50% 45%;
    justify-content: space-between;
    grid-template-areas:
      "header media"
      "text media"
      "link media";
    gap: 1.5rem 5%;
  }
  .latest-new-item.no-media {
    grid-template-columns: 100%;
    grid-template-areas:
      "header"
      "text"
      "link";
  }
}

/* SKELETON UI */
.skeleton-item {
  background: linear-gradient(90deg, #f5f5f5 25%, #eeeeee 50%, #f5f5f5 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.latest-skeleton { width: 100%; height: 120px; margin-bottom: 2rem; }
.shop-skeleton { width: 100%; aspect-ratio: 1/1; }
.exh-skeleton { width: 100%; height: 100px; margin-bottom: 2rem; }
.insta-skeleton { width: 100%; aspect-ratio: 1/1; }

/* LOAD ANIMATION CONTROL */
body:not(.loaded) .latest-ticker-track {
  animation-play-state: paused;
  opacity: 0;
}
body.loaded .latest-ticker-track {
  animation-play-state: running;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.activity-link {
  font-size: 1.2rem;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.activity-link:hover {
  text-decoration: underline;
  opacity: 0.7;
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */
.about-page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 9rem 5% 7rem;
}

.about-logo-wrap {
  text-align: center;
  margin-bottom: 6rem;
  margin-top: 1rem;
}

.about-top-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: inline-block;
}

.about-section {
  margin-bottom: 6.5rem;
}

.about-photo-wrap {
  margin-bottom: 3.5rem;
  text-align: center;
}

.about-profile-photo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-section-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

/* =========================================
   下層ページ(ABOUT/ACCESS/CONTACT/EXHIBITIONS)の背景色リズム
   HOMEと同じ3色(--bg-pure / --bg-base / --bg-alt)だけを使い、
   「意味のまとまり」単位で切り替える。短い項目ごとの縞模様にはしない。
   ========================================= */

/* 背景色は各要素自身の箱をそのまま塗り、負のマージンでの幅調整は行わない
   (.about-page-containerの左右5%パディングはビューポート基準の%のため、
   子要素側で同じ%を使って打ち消そうとすると値がずれる。安全のため
   「読みやすい版面の中を塗る」方式にし、パディングだけ足して余白を確保する) */

/* タイトル部分(ロゴ)は純白を基本にする */
.about-logo-wrap {
  background: var(--bg-pure);
  padding: 3rem 0 2rem;
  margin-bottom: 6rem;
}

/* ACCESS・CONTACT・EXHIBITIONSのように section が1つだけのページは、
   タイトル+主要な案内文をまとめて純白にする。
   about.html のように section が複数あるページ(下のnth-of-typeルール)が優先される */
.about-page-container > .about-section:first-of-type:last-of-type {
  background: var(--bg-pure);
  padding: 2.5rem 2rem;
}

/* ABOUT: 本文(導入文・レンタル案内)は基本の背景色 */
.about-page-container > .about-section:nth-of-type(1):nth-last-of-type(5),
.about-page-container > .about-section:nth-of-type(2):nth-last-of-type(4) {
  background: var(--bg-base);
  padding: 2.5rem 2rem;
}
/* ABOUT: ACTIVITIES(活動歴)は大きなまとまりとして区切る */
.about-page-container > .about-section:nth-of-type(3):nth-last-of-type(3) {
  background: var(--bg-alt);
  padding: 2.5rem 2rem;
}
/* ABOUT: プロフィール(写真あり)は純白で見せ場にする */
.about-page-container > .about-section:nth-of-type(4):nth-last-of-type(2) {
  background: var(--bg-pure);
  padding: 2.5rem 2rem;
}
/* ABOUT: 個展・イベントのアーカイブは、ACTIVITIESと同じ扱いで区切る */
.about-page-container > .about-section:nth-of-type(5):nth-last-of-type(1) {
  background: var(--bg-alt);
  padding: 2.5rem 2rem;
}

/* ACCESS/CONTACT/EXHIBITIONSのこれらのブロックは、既に2rem分の余白を持つ
   section(:first-of-type:last-of-typeルール)の内側に入れ子になっているため、
   左右の padding は付けない(付けると見出しの2倍の余白になってしまう)。
   上下だけ余白を足して、色の切り替わりに窮屈さが出ないようにする */

/* ACCESS: 地図は「明確に切り替わる大きなまとまり」として区切る */
.access-map-block {
  background: var(--bg-alt);
  padding: 2rem 0 2.5rem;
}

/* CONTACT: GALLERY RENTALの案内は、問い合わせ本文とは別の案内として区切る */
.contact-rental-block {
  background: var(--bg-alt);
  padding: 2rem 0 2.5rem;
}

/* EXHIBITIONS: 開催中・開催予定は本文の基本背景、アーカイブは大きなまとまりとして区切る。
   HOMEのセクションと同じく背景は画面幅いっぱい(フルブリード)にし、
   中身(見出し・年号・展示情報)だけは元の版面幅(.about-page-containerと同じ位置)に揃える。
   calc(50% - 50vw) は「直近の親の幅を基準にした50%」と「画面幅の半分」の差を使い、
   ネストの深さや親のpadding値に関係なく画面端まで正しく届く安全な書き方。 */
#page-exhibitions-list {
  background: var(--bg-base);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
#page-exhibitions-list > div:not(.archive-section) {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5%;
  padding-right: 5%;
}
#page-exhibitions-list > .archive-section {
  background: var(--bg-alt);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
.archive-nav,
.archive-year-group {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5%;
  padding-right: 5%;
}

.about-main-heading {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin: 0;
  color: #000;
}

.about-sub-title {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.about-block {
  margin-bottom: 3.5rem;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-subheading {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: #000;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 2.1;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.about-text.en p {
  color: var(--ink-soft);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* SNS Links */
.about-sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
  margin-top: 2.5rem;
}

.about-sns-link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.about-sns-link:hover {
  opacity: 0.5;
}

.about-rental-link {
  display: inline-block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
  margin-top: 1rem;
}

.about-rental-link:hover {
  opacity: 0.5;
}

/* Timeline */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}

.timeline-group {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.timeline-year {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #000;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-list li {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.about-timeline-footer {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-muted);
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* Exhibitions & Events */
.about-sub-section {
  margin-bottom: 3.5rem;
}

.about-sub-section:last-child {
  margin-bottom: 0;
}

.exhibitions-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
}

.exhibitions-timeline-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.exhibitions-year {
  font-size: 0.92rem;
  font-weight: bold;
  color: #000;
}

.exhibitions-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.exhibitions-note {
  font-size: 0.92rem;
  font-weight: bold;
  margin-top: 1.8rem;
  color: #000;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.event-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.event-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 768px) {
  .about-page-container {
    padding-top: 6rem;
    padding-bottom: 4.5rem;
  }
  .about-logo-wrap {
    margin-bottom: 3.5rem;
  }
  .about-top-logo {
    max-width: 100%;
  }
  .about-section {
    margin-bottom: 3.8rem;
  }
  .about-section-header {
    margin-bottom: 2rem;
  }
  .about-photo-wrap {
    margin-bottom: 2.5rem;
  }
  .about-block {
    margin-bottom: 2.5rem;
  }
  .timeline-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .timeline-year {
    display: inline-block;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .exhibitions-timeline-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* -------------------------------------
 * EXHIBITIONS ARCHIVE SECTION 
 * ------------------------------------- */
.archive-section {
  margin-top: 2rem;
}
.archive-year-group {
  margin-bottom: 5rem;
}
.archive-year-title {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
}

.archive-list {
  display: flex;
  flex-direction: column;
}

.archive-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(110px, 200px);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.archive-item:last-child {
  border-bottom: 1px solid #000;
}

.archive-date {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.archive-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: break-word;
}
.archive-title-link {
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
  position: relative;
}
.archive-title-link:hover {
  opacity: 0.5;
}
.archive-artist {
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-align: right;
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .archive-year-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
  .archive-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1.5rem 0;
  }
  .archive-artist {
    text-align: left;
  }
}

/* ARCHIVE NAV */
.archive-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.archive-nav-link {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.archive-nav-link:hover {
  color: var(--ink-soft);
}
.archive-nav-link.active {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Update archive-item for wider layout */
.archive-item {
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .archive-nav {
    gap: 1rem;
  }
}
