/*
Theme Name:  Yamada Hiroshi Gallery
Theme URI:
Author:      Yamada Hiroshi
Author URI:
Description: YAMADA HIROSHI Art Gallery — シングルページギャラリーテーマ。カラフルなイラスト・ミクストメディア作品向け。
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yamada-hiroshi-gallery
Tags:        one-page, portfolio, art, gallery
*/

/* ============================================================
   CSS カスタムプロパティ
   ============================================================ */
:root {
  /* 背景（クールグレー） */
  --bg:         #f2f2f5;
  --bg-2:       #eaeaee;
  --bg-3:       #e2e2e7;
  --white:      #f8f8fa;

  /* テキスト */
  --text:       #1a1714;
  --text-mid:   #2e2b28;
  --text-dim:   #555048;

  /* アクセント：ダスティラベンダー */
  --accent:     #8577a8;
  --accent-l:   #b5aacb;
  --accent-d:   #5a4e7e;
  --accent-bg:  rgba(133, 119, 168, 0.09);

  /* サブアクセント：テラコッタ */
  --warm:       #c48c72;
  --warm-l:     #dbb09a;

  /* ボーダー */
  --border:     #d8d8de;
  --border-l:   #e4e4e9;

  /* フォント */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Noto Serif JP', 'Times New Roman', serif;

  /* トランジション */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow:   0.9s var(--ease-out);
  --t-mid:    0.5s var(--ease-out);
  --t-fast:   0.22s ease;
}

/* ============================================================
   リセット・ベース
   ============================================================ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) { body { cursor: auto; } }

img { display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   ローディングスクリーン
   ============================================================ */
#loading {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease 0.2s, visibility 0.8s ease 0.2s;
}

#loading.done {
  opacity: 0;
  visibility: hidden;
}

.ld-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: ldPop 0.4s var(--ease-out) 0.4s forwards;
}

.ld-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--text);
  text-transform: uppercase;
  opacity: 0;
  animation: ldSlide 0.8s var(--ease-out) 0.6s forwards;
}

.ld-sub {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 0.35em;
  color: var(--text-mid);
  margin-top: 0.5rem;
  opacity: 0;
  animation: ldFade 0.6s ease 1s forwards;
}

.ld-bar-wrap {
  width: 160px;
  height: 1px;
  background: var(--border);
  margin-top: 2.4rem;
  overflow: hidden;
  opacity: 0;
  animation: ldFade 0.4s ease 1.1s forwards;
}

.ld-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  transition: width 1.2s var(--ease-out);
}

@keyframes ldFade  { to { opacity: 1; } }
@keyframes ldPop   { to { opacity: 1; transform: scale(1); } }
@keyframes ldSlide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   カスタムカーソル（PC専用）
   ============================================================ */
.cursor,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9992;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(133, 119, 168, 0.38);
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), border-color 0.3s ease;
}

.cursor.is-hover {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--accent);
}

.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  border-color: rgba(133, 119, 168, 0.55);
}

@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ============================================================
   ナビゲーション
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(242, 242, 245, 0);
  border-bottom: 1px solid transparent;
  transition: padding var(--t-mid), background var(--t-mid), border-color var(--t-mid);
}

nav.is-scrolled {
  padding: 1rem 4.5rem;
  background: rgba(242, 242, 245, 0.92);
  border-color: var(--border-l);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text);
  text-transform: uppercase;
}

.nav-logo-sub {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.48em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.nav-links {
  position: fixed;
  top: 0;
  right: 4.5rem;
  display: flex;
  align-items: center;
  gap: 2.8rem;
  padding: 1.5rem 0;
  z-index: 1001;
  list-style: none;
  margin: 0;
  padding-left: 0;
  transition: padding var(--t-mid);
}

nav.is-scrolled ~ .nav-links {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t-mid);
}

.nav-links a:hover          { color: var(--accent-d); }
.nav-links a:hover::after   { width: 100%; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero セクション
   ============================================================ */
#home {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(248, 246, 242, 0.72), rgba(248, 246, 242, 0.72)),
    url('assets/images/hero-bg.jpg') center center / cover no-repeat;
}

.hero-blob-a {
  position: absolute;
  top: -10%; right: -6%;
  width: 55vmax;
  height: 55vmax;
  border-radius: 44% 56% 60% 40% / 42% 48% 52% 58%;
  background: radial-gradient(
    ellipse at 38% 42%,
    rgba(133, 119, 168, 0.14) 0%,
    rgba(133, 119, 168, 0.04) 55%,
    transparent 80%
  );
  animation: blobMorph 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob-b {
  position: absolute;
  bottom: -12%; left: -4%;
  width: 42vmax;
  height: 42vmax;
  border-radius: 56% 44% 38% 62% / 60% 40% 52% 48%;
  background: radial-gradient(
    ellipse at 58% 55%,
    rgba(196, 140, 114, 0.12) 0%,
    rgba(196, 140, 114, 0.03) 55%,
    transparent 80%
  );
  animation: blobMorph 26s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-dot-1 {
  top: 22%; left: 18%;
  width: 5px; height: 5px;
  background: var(--accent-l);
  opacity: 0.45;
}
.hero-dot-2 {
  top: 68%; right: 24%;
  width: 3px; height: 3px;
  background: var(--warm-l);
  opacity: 0.4;
}
.hero-dot-3 {
  top: 38%; right: 18%;
  width: 8px; height: 8px;
  background: transparent;
  border: 1.5px solid rgba(133, 119, 168, 0.22);
}

.hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72vmin; height: 72vmin;
  border-radius: 50%;
  border: 1px solid rgba(133, 119, 168, 0.07);
  pointer-events: none;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 44% 56% 60% 40% / 42% 48% 52% 58%; }
  33%       { border-radius: 58% 42% 44% 56% / 54% 46% 40% 60%; }
  66%       { border-radius: 42% 58% 52% 48% / 60% 40% 58% 42%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  opacity: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 0.93;
  color: var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
}

.hero-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.63em;
  letter-spacing: 0.08em;
  margin-top: 0.18em;
}

.hero-medium {
  font-family: var(--font-display);
  font-size: 0.94rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-top: 2rem;
  opacity: 0;
}

.is-ready .hero-eyebrow {
  animation: heroUp 0.7s var(--ease-out) 0.1s forwards;
}
.is-ready .hero-name {
  animation: heroUp 0.9s var(--ease-out) 0.28s forwards;
}
.is-ready .hero-medium {
  animation: heroUp 0.7s var(--ease-out) 0.48s forwards;
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   セクション共通
   ============================================================ */
section {
  padding: 6rem 5rem;
}

.sec-head { margin-bottom: 3.5rem; }

.sec-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 400;
  color: var(--accent-d);
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.sec-rule {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.11s; }
.d2 { transition-delay: 0.22s; }
.d3 { transition-delay: 0.33s; }
.d4 { transition-delay: 0.44s; }
.d5 { transition-delay: 0.55s; }

/* ============================================================
   Gallery プレビューセクション（Hero直下・最新3件）
   ============================================================ */
#gallery-preview {
  background: var(--white);
  padding: 4rem 5rem 2rem;
}

/* ============================================================
   Gallery セクション
   ============================================================ */
#gallery {
  background: var(--white);
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.gallery-grid {
  columns: 3;
  column-gap: 14px;
  padding: 3rem 5rem 6rem;
}

/* トップページ：最新1件を中央表示 */
.gallery-featured {
  display: flex;
  justify-content: center;
  padding: 0 5rem 2rem;
}

.gallery-featured .gitem {
  width: 100%;
  max-width: 560px;
}

.gallery-featured .gimg {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}

/* トップページ：最新作 2カラム（画像左・説明右） */
.gallery-featured-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 0 5rem 3.5rem;
}

.gfs-image {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  transition: opacity var(--t-fast);
}

.gfs-image:hover { opacity: 0.92; }

.gfs-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gfs-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gfs-label-row {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
}

.gfs-label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
}

.gfs-date {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.gfs-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--accent-d);
  line-height: 1.15;
  margin: 0;
}

.gfs-rule {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 0.4rem 0;
}

.gfs-meta {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.gfs-size {
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.gfs-desc {
  font-size: 0.96rem;
  line-height: 2.0;
  color: var(--text);
  margin-top: 0.4rem;
}

.gfs-status {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-top: 0.4rem;
  align-self: flex-start;
}

.gfs-status--available {
  color: var(--accent-d);
  border: 1px solid rgba(133, 119, 168, 0.35);
}

.gfs-status--sold {
  color: var(--warm);
  border: 1px solid rgba(196, 140, 114, 0.4);
}

.gfs-status--nfs {
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.gfs-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.gfs-link:hover {
  color: var(--accent);
  border-color: var(--accent-l);
}

/* ============================================================
   Artwork 詳細ページ（single-artwork.php）
   ============================================================ */
.artwork-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  padding: 4rem 5rem 8rem;
  max-width: 1200px;
}

.artwork-detail-image {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.artwork-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.artwork-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.artwork-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  transition: color var(--t-fast);
}

.artwork-back:hover { color: var(--accent); }

.artwork-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--accent-d);
  line-height: 1.15;
  margin: 0;
}

.artwork-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 0.4rem 0 0.6rem;
}

.artwork-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-l);
}

.artwork-meta-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-l);
}

.artwork-meta-row dt {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.artwork-meta-row dd {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}

.artwork-status {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

.artwork-status--available {
  color: var(--accent-d);
  border: 1px solid rgba(133, 119, 168, 0.35);
}

.artwork-status--sold {
  color: var(--warm);
  border: 1px solid rgba(196, 140, 114, 0.4);
}

.artwork-status--nfs {
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.artwork-desc {
  font-size: 1rem;
  line-height: 2.1;
  color: var(--text-mid);
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .artwork-detail {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem 6rem;
  }
}

/* トップページ：2件目以降グリッド */
.gallery-grid--sub {
  padding-top: 0;
  padding-bottom: 3rem;
}

.gitem {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  display: block;
}

.gitem:nth-child(3n+1) .gimg { aspect-ratio: 3/4; }
.gitem:nth-child(3n+2) .gimg { aspect-ratio: 4/5; }
.gitem:nth-child(3n+3) .gimg { aspect-ratio: 1/1; }
.gitem:nth-child(4)  .gimg   { aspect-ratio: 5/7; }
.gitem:nth-child(5)  .gimg   { aspect-ratio: 16/9; }
.gitem:nth-child(8)  .gimg   { aspect-ratio: 2/3; }
.gitem:nth-child(11) .gimg   { aspect-ratio: 4/3; }

.gimg {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}

.gitem:hover .gimg {
  transform: scale(1.05);
}

.gov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(46, 42, 37, 0.75) 0%,
    rgba(46, 42, 37, 0.1)  42%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--t-mid);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1rem;
  border-radius: 3px;
}

.gitem:hover .gov { opacity: 1; }

.gov-inner {
  transform: translateY(6px);
  transition: transform var(--t-mid);
}

.gitem:hover .gov-inner { transform: translateY(0); }

.gtitle {
  display: block;
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-style: italic;
  color: #fff;
  line-height: 1.3;
}

.gmeta {
  display: block;
  font-family: var(--font-display);
  font-size: 0.87rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 0.2rem;
}

/* ============================================================
   About セクション
   ============================================================ */
#about {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: 'YH';
  position: absolute;
  right: -4%;
  bottom: -6%;
  font-family: var(--font-display);
  font-size: 28vw;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(133, 119, 168, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.about-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 7rem;
  align-items: start;
  position: relative;
  z-index: 1;
  padding: 4rem 6rem 6rem;
}

.about-frame {
  position: relative;
}

.about-frame::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 1px solid rgba(133, 119, 168, 0.2);
  border-radius: 2px;
  pointer-events: none;
}

.about-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-3);
}

.about-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-body { padding-top: 0.4rem; }

.about-en {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.7vw, 1.25rem);
  line-height: 2.0;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-hr {
  width: 36px;
  height: 1px;
  background: var(--accent-l);
  margin: 1.8rem 0;
}

.about-ja {
  font-size: 1rem;
  line-height: 2.3;
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.2rem;
}

.atag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(133, 119, 168, 0.32);
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.atag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   Biography セクション（About ページ）
   ============================================================ */
.bio-section {
  padding: 0 6rem 6rem;
  border-top: 1px solid var(--border-l);
  margin-top: 0;
}

.bio-head {
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.bio-list {
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.bio-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-l);
}

.bio-row:first-child {
  border-top: none;
}

.bio-year {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent-d);
  flex-shrink: 0;
}

.bio-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

@media (max-width: 900px) {
  .bio-section { padding: 0 2rem 5rem; }
}

@media (max-width: 500px) {
  .bio-section { padding: 0 1.2rem 4rem; }
  .bio-row { grid-template-columns: 4rem 1fr; gap: 1.2rem; }
}

/* ============================================================
   Contact セクション
   ============================================================ */
#contact {
  background: var(--bg);
  text-align: center;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--accent-l));
}

.contact-inner {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  text-align: center;
}

.contact-note {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-bottom: 2.4rem;
}

/* ここにメールアドレスを入れる */
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1px solid rgba(133, 119, 168, 0.32);
  padding-bottom: 0.35rem;
  display: inline-block;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.contact-email:hover {
  color: var(--accent-d);
  border-color: var(--accent);
}

.contact-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-mid);
  border-top: 1px solid var(--border-l);
  padding-top: 2.4rem;
}

.contact-body span {
  display: block;
  font-size: 0.96rem;
  color: var(--text-mid);
  margin-top: 0.5rem;
}

/* ============================================================
   フッター
   ============================================================ */
footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 2rem 5rem;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-mid);
}

/* ============================================================
   モバイルレスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  #gallery-preview { padding: 3rem 1.5rem 2rem; }

  .gallery-featured-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 0 3rem;
  }

  section         { padding: 6rem 2rem; }
  nav             { padding: 1.2rem 2rem; }
  nav.is-scrolled { padding: 0.9rem 2rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    padding: 0;
    z-index: 1001;
    background: rgba(242, 242, 245, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.8rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1rem; letter-spacing: 0.18em; }
  .nav-burger { display: flex; }

  .gallery-grid { columns: 2; padding: 2rem 2rem 5rem; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 3rem 2rem 5rem;
  }
  .about-frame::before { display: none; }

  footer { padding: 1.5rem 2rem; }
}

@media (max-width: 500px) {
  #gallery-preview  { padding: 2.5rem 1rem 1.5rem; }
  .gallery-grid     { columns: 2; column-gap: 10px; padding: 1.5rem 0 4rem; }
  section           { padding: 5rem 1.2rem; }
}

/* ============================================================
   Posts プレビューセクション（ホームページ）
   ============================================================ */
#notes-preview {
  background: var(--bg-2);
  padding: 4rem 5rem 5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border-l);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
  border-color: var(--accent-l);
}

.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-mid);
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-3);
}

.post-card-body {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card-date {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 0.3rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-d);
  line-height: 1.3;
  margin: 0;
}

.post-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text);
  flex: 1;
}

.post-card-more {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 0.4rem;
  transition: color var(--t-fast);
}

.post-card:hover .post-card-more { color: var(--accent-d); }

.notes-all-wrap {
  text-align: center;
  margin-top: 3.5rem;
}

.notes-all-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.notes-all-link:hover {
  color: var(--accent);
  border-color: var(--accent-l);
}

/* ============================================================
   内部ページ共通レイアウト（Notes アーカイブ / シングル）
   ============================================================ */
.inner-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 7rem; /* ナビの高さ分オフセット */
}

.inner-header {
  padding: 4.5rem 5rem 3.5rem;
  border-bottom: 1px solid var(--border-l);
}

/* ============================================================
   Notes アーカイブ一覧
   ============================================================ */
.notes-archive-list {
  padding: 0 5rem 6rem;
  max-width: 860px;
}

.nl-item {
  border-bottom: 1px solid var(--border-l);
}

.nl-item a {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  padding: 2.4rem 0;
  transition: opacity var(--t-fast);
}

.nl-item a:hover { opacity: 0.7; }

.nl-thumb {
  width: 200px;
  height: 145px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-3);
  align-self: center;
  flex-shrink: 0;
}

.nl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nl-date {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.nl-body { min-width: 0; }

.nl-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent-d);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.nl-excerpt {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.nl-more {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.notes-empty {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-dim);
  padding: 3rem 0;
}

/* ページネーション */
.notes-pagination {
  padding: 3rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.notes-pagination .page-numbers {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.notes-pagination .page-numbers.current,
.notes-pagination .page-numbers:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   シングルノートページ
   ============================================================ */
.single-note-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 5rem 8rem;
}

.note-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3.5rem;
  transition: color var(--t-fast);
}

.note-back:hover { color: var(--accent); }

.single-note-date {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.single-note-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--accent-d);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.single-note-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 3rem;
}

.single-note-thumbnail {
  margin-bottom: 3rem;
  border-radius: 4px;
  overflow: hidden;
}

.single-note-thumbnail img {
  width: 100%;
  height: auto;
}

/* 記事本文スタイル */
.single-note-body {
  font-size: 1rem;
  line-height: 2.1;
  color: var(--text-mid);
}

.single-note-body p        { margin-bottom: 1.6rem; }
.single-note-body h2       { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--accent-d); margin: 3rem 0 1rem; }
.single-note-body h3       { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--accent-d); margin: 2.5rem 0 0.8rem; }
.single-note-body img      { max-width: 100%; height: auto; margin: 2.5rem 0; border-radius: 3px; }
.single-note-body a        { color: var(--accent); border-bottom: 1px solid var(--accent-l); transition: color var(--t-fast); }
.single-note-body a:hover  { color: var(--accent-d); }
.single-note-body blockquote {
  border-left: 2px solid var(--accent-l);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--text-dim);
  font-style: italic;
}

/* 前後の記事ナビ */
.note-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-l);
}

.note-nav-prev,
.note-nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 45%;
  transition: opacity var(--t-fast);
}

.note-nav-next { text-align: right; margin-left: auto; }
.note-nav-prev:hover, .note-nav-next:hover { opacity: 0.7; }

.note-nav-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}

.note-nav-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}

/* ============================================================
   Notes/Posts レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  #notes-preview { padding: 3rem 1.5rem 4rem; }
  .posts-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .inner-header { padding: 3.5rem 2rem 2.5rem; }
  .notes-archive-list { padding: 0 2rem 5rem; }
  .nl-item a { grid-template-columns: 1fr; gap: 0.8rem; }
  .nl-thumb { width: 100%; height: 200px; }
  .single-note-inner { padding: 3rem 2rem 6rem; }
  .note-nav { flex-direction: column; }
  .note-nav-next { text-align: left; margin-left: 0; }
  .note-nav-prev, .note-nav-next { max-width: 100%; }
}

/* ============================================================
   Artwork — 販売状況バッジ
   ============================================================ */
.gbadge-sold {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(196, 140, 114, 0.85);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  pointer-events: none;
}

/* ============================================================
   Contact Form 7 — フォームスタイリング
   ============================================================ */
.contact-form-wrap {
  width: 100%;
  max-width: 560px;
  margin: 2.4rem auto 3.5rem;
  text-align: left;
}

.contact-form-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--t-mid);
  box-sizing: border-box;
}

.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
  color: var(--text-dim);
}

.contact-form-wrap textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form-wrap input[type="submit"] {
  align-self: flex-start;
  padding: 0.85rem 2.4rem;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--white);
  cursor: pointer;
  transition: background var(--t-mid);
}

.contact-form-wrap input[type="submit"]:hover {
  background: var(--accent-d);
}

.contact-form-wrap .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--warm);
}

.contact-form-wrap .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.contact-form-wrap .wpcf7-mail-sent-ok {
  border-color: var(--accent);
  color: var(--accent-d);
}

.contact-form-wrap .wpcf7-mail-sent-ng,
.contact-form-wrap .wpcf7-spam-blocked {
  border-color: var(--warm);
  color: var(--warm);
}
