/* -流水紋- 重富豪 Official Site — shared stylesheet */

:root {
  --ink: #1c1c1a;
  --paper: #faf7f0;
  --paper-soft: #f1ecdf;
  --muted: #6b6a60;
  --accent: #9b2d20;
  --line: #ddd6c2;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ece7d9;
    --paper: #131210;
    --paper-soft: #1c1a16;
    --muted: #a39d8a;
    --accent: #d9695c;
    --line: #322f27;
  }
}
:root[data-theme="dark"] {
  --ink: #ece7d9;
  --paper: #131210;
  --paper-soft: #1c1a16;
  --muted: #a39d8a;
  --accent: #d9695c;
  --line: #322f27;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand .ja {
  font-family: "Shippori Mincho", serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}
.brand .en {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
nav.primary {
  display: flex;
  gap: 28px;
}
nav.primary a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  position: relative;
  padding-block: 4px;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--ink);
}
nav.primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 40px; height: 36px;
  font-size: 1.1rem;
  color: var(--ink);
}

@media (max-width: 760px) {
  nav.primary {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 24px 20px;
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding-block: 12px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-block: 56px 72px;
}
.hero .art img { width: 100%; border-radius: 2px; }
.hero .copy .eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin: 0 0 18px;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 44ch;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 48px; }
  .hero .art { order: -1; }
}

/* ---------- Sections ---------- */
section { padding-block: 64px; }
section.soft { background: var(--paper-soft); }
.section-head { margin-bottom: 40px; }
.num {
  font-family: "Shippori Mincho", serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.18em;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 8px 0 0;
}
.section-head p.sub { color: var(--muted); margin-top: 10px; max-width: 60ch; }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: 56px;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

figure.art { margin: 0; }
figure.art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-soft);
}
figure.art figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Timeline (exhibitions) ---------- */
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.timeline-item:first-of-type { border-top: none; }
.timeline-item .year {
  font-family: "Shippori Mincho", serif;
  font-size: 2.6rem;
  color: var(--line);
  line-height: 1;
}
.timeline-item h3 { margin: 0 0 10px; font-size: 1.15rem; }
.timeline-item p { color: var(--ink); margin: 0 0 18px; }
.timeline-item .shots {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.timeline-item .shots img {
  width: 150px;
  height: 110px;
  object-fit: cover;
}
@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .timeline-item .year { font-size: 1.8rem; }
}

/* ---------- Quotes ---------- */
.quote {
  padding-block: 8px;
}
.quote blockquote {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 1.15rem;
  line-height: 2;
}
.quote blockquote::before { content: "「"; color: var(--accent); }
.quote blockquote::after { content: "」"; color: var(--accent); }
.quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- Kiyomizu essay ---------- */
.essay-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.essay-item:first-of-type { border-top: none; }
.essay-item img { width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.essay-item .num { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; }
.essay-item h3 { margin: 4px 0 8px; }
@media (max-width: 640px) {
  .essay-item { grid-template-columns: 1fr; }
}

/* ---------- Profile timeline list ---------- */
.bio-timeline dt {
  font-family: "Shippori Mincho", serif;
  color: var(--accent);
  margin-top: 26px;
  font-size: 1.02rem;
}
.bio-timeline dd {
  margin: 8px 0 0;
  color: var(--ink);
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  margin-top: 0;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site .small { font-size: 0.78rem; color: var(--muted); }

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 10px 22px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header utilities: lang switch + instagram ---------- */
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.lang-switch button {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 9px;
  cursor: pointer;
  font-family: inherit;
}
.lang-switch button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.ig-link {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.ig-link svg { width: 16px; height: 16px; }

/* lang visibility: default to JA; JS toggles [data-lang] on <html> */
[lang-en], [lang-fr] { display: none; }
html[data-lang="en"] [lang-ja] { display: none; }
html[data-lang="en"] [lang-en] { display: block; }
html[data-lang="fr"] [lang-ja] { display: none; }
html[data-lang="fr"] [lang-fr] { display: block; }
.lang-note {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin-bottom: 28px;
}

/* ---------- News timeline (Top page) ---------- */
.news-timeline { border-top: 1px solid var(--line); }
.news-year {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}
.news-year .year {
  font-family: "Shippori Mincho", serif;
  font-size: 2.2rem;
  color: var(--line);
  line-height: 1;
}
.news-year ul { list-style: none; margin: 0; padding: 0; }
.news-year li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--line);
}
.news-year li:last-child { border-bottom: none; }
.news-year li a { color: var(--ink); }
.news-year li a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .news-year { grid-template-columns: 1fr; gap: 6px; padding-block: 22px; }
  .news-year .year { font-size: 1.5rem; }
}

/* ---------- Big hero (Top) ---------- */
.hero-big { position: relative; }
.hero-big img { width: 100%; max-height: 640px; object-fit: cover; }
.hero-big .cap {
  position: absolute; left: 24px; bottom: 20px;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Poem + prose (elemental gallery) ---------- */
.poem-block { margin-bottom: 40px; }
.poem-block .poem {
  font-family: "Shippori Mincho", serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.poem-block .poem::before { content: "「"; color: var(--accent); }
.poem-block .poem::after { content: "」"; color: var(--accent); }
.poem-block p.prose { color: var(--muted); max-width: 62ch; }
.piece-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 28px;
}
.piece-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
@media (max-width: 620px) {
  .piece-grid { grid-template-columns: 1fr; padding-left: 18px; }
}

#goh .grid figure.art img { border: 1px solid var(--line); }

/* ---------- Hero: single image, slow pan + zoom (matches root site's billboard effect) ---------- */
.hero-slider { position: relative; height: min(80vh, 640px); overflow: hidden; background: var(--paper); }
@media (max-width: 640px) {
  .hero-slider { height: min(62vw, 46vh); }
}
.hero-slider img {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 130%;
  min-height: 130%;
  width: auto;
  height: auto;
  max-width: none;
  animation: panzoom 26s ease-in-out infinite alternate;
}
@keyframes panzoom {
  from { transform: translate(-32%, -50%) scale(1); }
  to   { transform: translate(-68%, -50%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider img { animation: none; transform: translate(-50%, -50%); }
}

/* ---------- Nav dropdown (Blog) ---------- */
nav.primary details { display: inline-block; position: relative; }
nav.primary summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-block: 4px;
}
nav.primary summary::-webkit-details-marker { display: none; }
nav.primary summary:hover { color: var(--ink); }
nav.primary details[open] summary { color: var(--ink); }
nav.primary .dropdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (min-width: 761px) {
  nav.primary .dropdown {
    position: absolute;
    top: 100%; left: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 10;
  }
}
nav.primary .dropdown a {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 6px;
  white-space: nowrap;
}
nav.primary .dropdown a:hover { color: var(--accent); }

/* ---------- Tao page decoration ---------- */
.tao-lede {
  font-family: "Shippori Mincho", serif;
  font-size: 1.2rem;
  line-height: 2;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-block: 24px 40px;
}
.tao-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-block: 20px 32px;
}
.tao-trio .card {
  border: 1px solid var(--line);
  padding: 20px 16px;
  text-align: center;
}
.tao-trio .card .n {
  font-family: "Shippori Mincho", serif;
  color: var(--accent);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}
@media (max-width: 620px) { .tao-trio { grid-template-columns: 1fr; } }
.tao-seasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-block: 24px;
}
.tao-seasons .card {
  background: var(--paper-soft);
  padding: 24px;
  border-radius: 2px;
}
.tao-seasons .card h3 { margin-top: 0; }
@media (max-width: 620px) { .tao-seasons { grid-template-columns: 1fr; } }

/* ---------- Gallery poem cards (image-text now transcribed) ---------- */
.poem-card {
  padding-block: 8px 48px;
}
.poem-card .num {
  font-family: "Shippori Mincho", serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.poem-card .title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  max-width: 44ch;
}
.poem-card .poem-text {
  font-family: "Shippori Mincho", serif;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--ink);
  max-width: 44ch;
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}
.poem-card .exhibit-list {
  margin-top: 28px;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.poem-card .exhibit-list li { margin-bottom: 6px; list-style: none; }

/* ---------- Wide testimonial images (native aspect, not cropped) ---------- */
.bonnon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
@media (max-width: 760px) {
  .bonnon-grid { grid-template-columns: 1fr; }
}
.wide-piece img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

/* ---------- Information: real post list ---------- */
.post-list { border-top: 1px solid var(--line); margin-top: 16px; }
.post-list li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}
.post-list a { color: var(--ink); }
.post-list a:hover { color: var(--accent); }
.post-list .date { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 520px) { .post-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Information: full post feed ---------- */
.post-feed { border-top: 1px solid var(--line); }
.post-feed .post {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
}
.post-feed .post .year-badge {
  font-family: "Shippori Mincho", serif;
  font-size: 2.1rem;
  color: var(--line);
  line-height: 1;
}
.post-feed .post h2 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  text-wrap: balance;
}
.post-feed .post time {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
@media (max-width: 620px) {
  .post-feed .post { grid-template-columns: 1fr; gap: 10px; }
  .post-feed .post .year-badge { font-size: 1.4rem; }
}
.post-body p { margin: 0 0 14px; line-height: 1.9; }
.post-body ul { margin: 0 0 14px; padding-left: 1.3em; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--accent); word-break: break-all; }
.post-body strong {
  color: var(--accent);
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.03em;
}
.post-body img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
}
.post-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.post-gallery img { max-width: 100%; margin: 0; }
@media (max-width: 560px) { .post-gallery { grid-template-columns: 1fr; } }

/* ---------- Social link card (Information: Facebook) ---------- */
.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s;
}
.social-card:hover { border-color: var(--accent); }
.social-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--accent);
}
.social-icon svg { width: 22px; height: 22px; }
.social-text { display: flex; flex-direction: column; gap: 4px; }
.social-text strong {
  font-family: "Shippori Mincho", serif;
  font-size: 1.02rem;
}
.social-text span { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
