/*
Theme Name: ArrowDemo1
Description: Studio Arrows - Bridging Japanese Aesthetics and the World
Author: Studio Arrows Team
Author URI: https://studioarrows.com
Version: 1.0.0
License: MIT License
License URI: https://opensource.org/licenses/MIT
Text Domain: studio-arrows
Tags: art-gallery, custom-post-types, responsive, minimal
*/

/*
======================================
CONTENTS
======================================
1. リセット・ベーススタイル
2. ルート変数（カラー・スペース・フォント）
3. レイアウト（コンテナー・グリッド）
4. ヘッダー・ナビゲーション
5. ヒーローセクション
6. セクション共通
7. アーティストカード
8. 展示ギャラリー（横スクロール）
9. ニュースカード
10. コンタクト
11. フッター
12. レスポンシブ
*/

/*
======================================
1. リセット・ベーススタイル
======================================
*/
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }


html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  min-height: 100vh;
}

.note{
  font-size: .8rem;
  color: #b56868;
  font-style: italic;
}

/*
======================================
2. ルート変数
======================================
テーマカラー・スペース・フォントを一元管理。
将来的な変更はここだけ編集でOK。
*/
:root {
  /* ====== Theme Colors ====== */
  --bg: #ffffff;
  --muted: #f5f5f5;
  --ink: #111111;
  --accent: #2b2b3a; /* deep indigo-ish */

  /* ====== Layout ====== */
  --max-width: 1100px;
  --gap: 28px;

  /* ====== Spacing ====== */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 28px;
  --space-lg: 40px;
  --space-xl: 48px;

  /* ====== Typography ====== */
  --font-title: "Cormorant Garamond", serif; /* 高級感あるセリフ */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-serif: "Cormorant Garamond", serif;

  /* ====== Artist polaloid ====== */
      --pola-bg: #ffffff;
      --pola-shadow: rgba(0, 0, 0, 0.15);
      --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}


/*
======================================
3. レイアウト
======================================
*/
.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm);
}

/*
======================================
4. ヘッダー・ナビゲーション
======================================
*/

/* ========== Header ========== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

/* ブランド（サイトタイトル） */
.brand {
  font-family: var(--font-title);
  font-weight: 700; /* 太さを強調 */
  font-size: clamp(1.5rem, 6vw, 3.5rem); /* 画面幅に応じて調整 */
  letter-spacing: 1.2px; /* ゆとりをもたせて品格を演出 */
  line-height: 1.1;
  text-transform: uppercase; /* 少し格調高く */
  color: var(--accent); /* 深いインディゴで上品さ */
  margin: 0;
  padding: 0;
  position: relative;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

/* トップページ以外：ブランドロゴ小さい */
:not(.home) .site-header .brand,
body.page .site-header .brand,
body.search .site-header .brand,
body.archive .site-header .brand {
  font-size: 1.1rem;  /* トップページの70%程度 */
  letter-spacing: 0.05em;
}

/* トップページ：通常サイズ（維持） */
.home .site-header .brand {
  font-size: clamp(1.5rem, 6vw, 3.5rem); /* 画面幅に応じて調整 */
  letter-spacing: 1.2px; /* ゆとりをもたせて品格を演出 */
}

/* リンク時のみホバー効果（アンダーライン＋ツールチップ） */
.brand:hover,
.brand:focus {
    color: #1a1a2a;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* トップページに戻るツールチップ */
.brand[rel="home"]:hover::after,
.brand[rel="home"]:focus::after {
    content: "トップページに戻る";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.brand[rel="home"]:hover::after,
.brand[rel="home"]:focus::after {
    opacity: 1;
    visibility: visible;
}



/* ========== Navigation ========== */
nav {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
}
nav.open {
  opacity: 1;
  pointer-events: auto;
}
nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 18px;
}

/* ========== Hamburger Button ========== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
}
.hamburger span {
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== ACTIVE -Hamburger Button ========== */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/*
======================================
5. ヒーローセクション（スライダー）
======================================
*/

.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(500px, 85vh, 850px);
    background: #000;
    overflow: hidden;
}

/* スライドの基本設定 */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1.2s ease, visibility 1.2s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* 画像：ズームアウト演出（1.1 -> 1.0） */
.slide-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 文字を読みやすくするためのオーバーレイ */
.slide-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* 初期状態 */
    transition: transform 10s linear;
}

/* activeクラスがついたら縮小開始 */
.slide.active .slide-image {
    transform: scale(1);
}

/* -----------------------------------------
   テキスト：湧き上がり演出（時間差ディレイ）
   ----------------------------------------- */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 7% 80px;
    color: #fff;
    z-index: 10;
    pointer-events: none; /* テキストがクリックの邪魔をしない */
}

/* 共通の初期状態：透明 + 下に配置 */
.slide-meta,
.slide-title span,
.slide-link {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.slide-meta {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.slide-title {
    font-size: clamp(2.5rem, 6vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 30px;
    overflow: hidden; /* spanの動きを隠す */
}

.slide-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 5px;
    pointer-events: auto; /* リンクはクリック可能に */
}

/* --- active時の時間差演出 --- */

/* 1. 小見出し：0.4秒後に登場 */
.slide.active .slide-meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* 2. メインタイトル：0.6秒後に登場 */
.slide.active .slide-title span {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* 3. リンクボタン：0.8秒後に登場 */
.slide.active .slide-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* -----------------------------------------
   ドットナビゲーション（右側縦配置）
   ----------------------------------------- */
.slider-dots {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 2px;
    height: 30px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.dot.active {
    background: #fff;
    height: 60px; /* アクティブなドットを長くする */
}

/* -----------------------------------------
   ローディング表示
   ----------------------------------------- */
.hero-slider.loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 100;
}

.hero-slider.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    z-index: 101;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}


/*
======================================
6. セクション共通
======================================
*/

section
  {
  padding: var(--space-xl) 0;
}
.section-title{
  font-family: var(--font-title);
}

.artists h2, 
.exhibitions h2,
.editorial-label {
  font-family: var(--font-title);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--ink);
  display: inline-block;
  padding-top: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/*
======================================
Intro Section (Editorial Style)
======================================
*/

.intro-editorial {
  padding: var(--space-xl) 0;
  background-color: var(--bg);
}

.editorial-container {
  max-width: 900px; /* 雑誌として読みやすい一行の長さを維持 */
  margin: 0 auto;
}


.intro-image {
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--muted);
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.intro-content {
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: justify; /* 雑誌のような均等割り付け */
  color: var(--ink);
}

/* ========== Desktop Layout (min-width: 768px) ========== */
@media screen and (min-width: 768px) {


  .intro-image {
    width: 45%; /* テキストに対しての画像の大きさ */
    margin-bottom: 1rem;
    filter: sepia(0.2); /* 少し紙の質感に合わせる */
  }

  /* 画像を右に回り込ませる */
  .side-image-right {
    float: right;
    margin-left: 3rem;
  }

  /* 画像を左に回り込ませる */
  .side-image-left {
    float: left;
    margin-right: 3rem;
  }

  /* ドロップキャップ：セクションの最初の文字を大きく */
  .intro-content::first-letter {
    font-family: var(--font-title);
    font-size: 3.5rem;
    float: left;
    line-height: 0.85;
    margin-right: 0.1em;
    margin-top: 0.1em;
    color: var(--accent);
  }

  /* 回り込みの解除 */
  .editorial-body::after {
    content: "";
    display: table;
    clear: both;
  }

  .intro-image:hover img {
    transform: scale(1.03);
    filter: sepia(0);
  }
}

/* --- 代表者セクション独自の調整 --- */
/* --- 文末の署名スタイル --- */

.editorial-signature {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 1rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.5rem;
  justify-content: flex-end; /* 右寄せにして結びの印象を強める */
}

.signature-portrait {
  width: 60px; /* 文末なので少し控えめなサイズに */
  height: 60px;
}

.signature-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--ink);
}

.signature-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.signature-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.signature-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 2px;
}

/* ========== Desktop Layout (min-width: 768px) ========== */
@media screen and (min-width: 768px) {
  
  .editorial-signature {
    /* 回り込み（Float）の影響を受けないようにする */
    clear: both; 
  }

  .signature-portrait {
    width: 80px;
    height: 80px;
  }

  .signature-name {
    font-size: 1.6rem;
  }

  /* 署名のホバー演出 */
  .editorial-signature:hover .signature-portrait img {
    filter: grayscale(0%);
    transform: scale(1.05);
  }
}


/*
======================================
7. アーティストカード
======================================
*/
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.artist-card {
  border-radius: 6px;
  padding: 10px;
  background: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}

/* メインの作品画像 */
.artist-card img.main {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(0.15) contrast(0.95);
}

/* 作家情報＋丸写真 */
.artist-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.artist-info .name {
  margin-left: 60px;
  font-weight: 600;
  font-size: 1rem;
}

.artist-info .portrait {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: 12px;
  flex-shrink: 0;
  position: absolute;
  top: 185px;
  left: -5px;
}

/* 下部メタ情報 */
.artist-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #666;
  width: 100%;

  align-items: flex-end; /* 右寄せ */
  text-align: right;     /* テキストも右揃え */
}

.artist-meta a.profile-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.artist-meta a.profile-link:hover {
  text-decoration: underline;
}

/*
======================================
8. 展示ギャラリー（横スクロール）
======================================
*/
.exhibitions {
  margin-bottom: var(--space-xl);
}

.expo-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.expo-gallery::-webkit-scrollbar {
  height: 6px;
}

.expo-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.expo-gallery::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.expo-item {
  min-width: 320px;
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #eee;
}

.expo-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.35) brightness(0.9);
}

.expo-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--accent);
  backdrop-filter: blur(2px);
}

/*
======================================
9. ニュースカード
======================================
*/
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.news-card {
  background: var(--muted);
  padding: 14px;
  border-radius: 6px;
}

.news-card h4 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

.news-card p {
  font-size: 13px;
  color: #444;
  margin: 0 0 12px;
}

/*
======================================
10. コンタクト
======================================
*/
#contact {
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 60px;
}

#contact .container {
  max-width: var(--maxwidth);
  margin: 0 auto;
}

#contact .section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

#contact p {
  margin: 0 auto 24px;
  color: #444;
  font-size: 15px;
  max-width: 600px;
  line-height: 1.6;
}

.contact-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* CTAボタン */
.cta-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.cta-button svg {
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.cta-button:hover {
  background: #1f1f2a;
  transform: translateY(-2px);
}

.cta-button:hover svg {
  transform: scale(1.1);
}


/*
======================================
11. 特商法表記リンク
======================================
*/
.legal-link-container {
  text-align: center;
  margin: 20px 0 20px;
}

.legal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.legal-link-btn:hover {
  background: #e9ecef;
  color: #333;
  transform: translateY(-1px);
}


/*
======================================
12. フッター
======================================
*/
footer {
  padding: 28px 0;
  border-top: 1px solid #eee;
  margin-top: 20px;
  text-align: center;
  color: #666;
  font-size: 13px;
}


/*
======================================
13. レスポンシブ(幅拡張方向) 
======================================
*/
@media (min-width: 600px) {
  .brand {
    letter-spacing: 1.4px;
  }
  nav {
    position: static;
    background: none;
    flex-direction: row;
    opacity: 1;
    pointer-events: auto;
    gap: 18px;
  }
  .hamburger { display: none; }
  nav a { font-size: 14px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-media { height: 56vh; }
  .artist-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .intro { grid-template-columns: 1fr 1fr; }
  .rep { grid-template-columns: 160px 1fr; }
  .contact-icons {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  .cta-button {
    font-size: 16px;
    padding: 12px 24px;
  }
}
@media (min-width: 900px) {
  .brand {
    letter-spacing: 1.6px;
  }
  .artist-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }

  #contact {
    padding: 60px 40px;
  }
  #contact .section-title {
    font-size: 28px;
  }
}



/*
======================================
14. single-artist.php (幅拡張方向)
======================================
*/

:root {
  /* プロフィール背景と作品背景のコントラスト用 */
  --artist-sidebar-bg: var(--muted);
  --artist-main-bg: var(--bg);
  --pola-bg: #ffffff;
  --pola-shadow: rgba(0, 0, 0, 0.12);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Base Layout (Mobile First) --- */
.artist-single {
  background-color: var(--artist-main-bg);
  min-height: 100vh;
  color: var(--ink);
}

.artist-single .site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Header --- */
.artist-header {
  padding: var(--space-xl) 0 var(--space-md);
  text-align: center;
}

.artist-name {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.03em;
}

.artist-genre-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.genre-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border: 1px solid #ddd;
  padding: 2px 10px;
}

/* --- Content Layout --- */
.artist-main-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* --- Sidebar / Profile --- */
.artist-sidebar {
  width: 100%;
}

.portrait-container {
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.portrait-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.label-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  display: block;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.biography-text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* Official Website Link */
.official-link-wrap {
  margin-top: var(--space-md);
}

.official-site-link {
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.official-site-link .arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

.official-site-link:hover {
  opacity: 0.6;
}

.official-site-link:hover .arrow {
  transform: translateX(5px);
}

/* --- Works Grid --- */
.artist-works {
  width: 100%;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px;
}

/* Polaroid Style */
.work-polaroid {
  width: 100%;
}

.polaroid-frame {
  background: var(--pola-bg);
  padding: 12px 12px 24px 12px;
  box-shadow: 0 8px 20px var(--pola-shadow);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
  height: 100%;
}

.work-image-container {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-info {
  margin-top: 15px;
  text-align: left;
}

.polaroid-info h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 500;
}

.work-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================
   Desktop Layout (min-width: 992px)
   ======================================== */
@media screen and (min-width: 992px) {
  
  .artist-single {
    /* 左側35%をサイドバー背景色にするスプリット背景 */
    background: linear-gradient(to right, var(--artist-sidebar-bg) 35%, var(--artist-main-bg) 35%);
  }

  .artist-header {
    text-align: left;
    padding-left: 35%; /* サイドバー領域と合わせる */
    margin-left: 80px;
    padding-top: 100px;
  }

  .artist-genre-list {
    justify-content: flex-start;
  }

  .artist-main-layout {
    flex-direction: row;
    grid-template-columns: 320px 1fr;
    display: grid;
    gap: 80px;
    padding-top: 20px;
  }

  .artist-sidebar {
    position: sticky;
    top: 60px; /* スクロール追従 */
  }

  /* 作品グリッドを多段に */
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ポラロイドにランダムな傾き（オプション） */
  .work-polaroid:nth-child(odd) .polaroid-frame {
    transform: rotate(-1.5deg);
  }
  .work-polaroid:nth-child(even) .polaroid-frame {
    transform: rotate(1.5deg);
  }

  .work-polaroid:hover .polaroid-frame {
    transform: rotate(0deg) translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 10;
  }
}

/* =========================================
   Large Desktop (min-width: 1200px)
   ======================================== */
@media screen and (min-width: 1200px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr); /* 3列化 */
  }
}

/*
======================================
15. 固定ページ Legal Notice 特定商取引法表記
======================================
*/
.legal-section {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  padding: var(--section-padding) 20px;
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Header */
.legal-header {
  text-align: center;
  margin-bottom: 80px;
}

.legal-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.legal-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* Grid Layout */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: start;
}

.legal-card {
  padding-top: 20px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--text-main);
}

/* Definition List Style */
.legal-dl div {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.legal-dl dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legal-dl dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.legal-dl dd small {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 4px;
}

.legal-dl a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent-color), var(--accent-color));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s;
}

.legal-dl a:hover {
  background-size: 100% 1px;
}

/* Footer */
.legal-footer {
  margin-top: 100px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-section {
    padding: 60px 20px;
  }
  
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .legal-header {
    margin-bottom: 50px;
  }
}

/* ======================================
展示会詳細ページ (Single Exhibition)
======================================
*/

/* --- Base Styles (Mobile Standard) --- */
.exhibition-editorial {
    padding-bottom: 80px;
    background-color: var(--bg);
    color: var(--text-color);
}

/* ヒーローセクション：スマホでは高さを抑えめに調整可能 */
.exhibition-header {
    position: relative;
    width: 100%;
    height: 80vh; /* スマホでは80vh程度が見やすい */
    display: flex;
    align-items: center;
    justify-content: center;
}

.exhibition-hero {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 疑似要素を使って、画像の上に線を強制的に描画する */
.exhibition-hero::before,
.exhibition-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0,0,0,0.25);/*輪郭ぱきっと*/ 
    z-index: 5; /* 画像(z-index: 1)よりも上にする */
}

.exhibition-hero::before { top: 0; }    /* 上の線 */
.exhibition-hero::after  { bottom: 0; } /* 下の線 */

.exhibition-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.header-text-box {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 90%;
}

.category-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.exhibition-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* ボディコンテンツ */
.editorial-body {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* モバイルでは1カラム */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 40px;
}

.detail-info {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
}

.detail-item {
    margin-bottom: 25px;
}

.detail-item h3 {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 1.1rem;
    font-weight: 300;
}

.detail-description {
    /* トップページの .editorial-container の思想を継承 */
    max-width: 900px; 
    margin: 0 auto;
    
    /* トップページの .intro-content のタイポグラフィを継承 */
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify; /* 雑誌のような均等割り付け */
    color: var(--ink);   /* 墨色変数を使用 */
}

.lead-text {
    font-size: 1.05rem; /* 1.05remより一回り大きく */
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 5rem;
    color: var(--ink);
    border-left: 1px solid var(--accent); /* さりげないアクセント */
    padding-left: 30px;
}

/* 本文エディタ部分 */
.exhibition-content {
    font-size: 1.2rem;
    line-height: 2.0; /* 余白を多めにとって「高級な読み心地」に */
    text-align: justify;
    color: var(--ink);
    opacity: 0.65; /* 少しだけコントラストを下げて、導入文(lead-text)を際立たせる */
}

/* 本文内の段落間に少し大きめの隙間を */
.exhibition-content p {
    margin-bottom: 2rem;
}

/* ギャラリー（モバイル）: 2列 */
.exhibition-gallery {
    margin:  0 0 60px;
}

.exhibition-gallery .section-title {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(0.9);
    transition: transform 0.8s ease, filter 0.5s ease;
}

.gallery-item.item-large { grid-column: span 2; grid-row: span 2; }

/* フッター */
.exhibition-footer {
    text-align: center;
    margin-top: 60px;
}

.btn-back {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    padding: 12px 30px;
    transition: all 0.3s;
}

/* --- Tablets & Desktop (Expanding) --- */
@media (min-width: 768px) {
    .exhibition-header {
        /* 高さを抑える：黄金比に近いバランス */
        height: 65vh; 
        min-height: 450px; /* 小さくなりすぎないようにガード */
        
        /* 画像を上下中央でトリミングするための設定 */
        overflow: hidden; 
    }

    .exhibition-hero {
        /* 親（header）に対して少しだけ余裕を持たせて配置 */
        height: 100%;
        width: 100%;
    }

    .exhibition-hero img {
        /* object-fit: cover で、中央（50% 50%）を起点にトリミング */
        width: 100%;
        height: 100%;
        object-position: center 50%; /* 上下を均等にカット */
        object-fit: cover;
    }

    .exhibition-title {
        /* 高さが低くなった分、フォントサイズを少しだけ微調整 */
        font-size: clamp(3.5rem, 8vw, 6rem);
    }

    .editorial-body {
        padding: 0 5%;
    }

    /* 2カラムの雑誌風レイアウトへ */
    .grid-layout {
        display: grid;
        grid-template-columns: 1fr 2.5fr; /* 1:2比率 */
        gap: 100px; /* 隙間をトップページの余白感に合わせる */
        align-items: start;
    }
    
    .detail-description {
        /* 右カラム内での最大幅を維持 */
        max-width: 900px;
        margin: 0; /* 左寄せ（グリッドに従う） */
    }

    .detail-item p {
        font-size: 1.2rem;
    }

    .lead-text {
        font-size: 1.15rem;
    }

    /* ギャラリーを4列モザイクへ */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 220px;
        gap: 20px;
    }

    .gallery-item.item-tall { grid-row: span 2; }

    .gallery-item:hover img {
        transform: scale(1.08);
        filter: grayscale(0) contrast(1);
    }

    .exhibition-footer {
        margin-top: 100px;
    }

    .btn-back {
        padding: 15px 40px;
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-auto-rows: 280px; /* 大画面でタイルの高さを強調 */
    }
}