/* KEI HINOTANI — 今のサイトの白地・灰色の文字・Quattrocento を引き継いだ、すっきりした見た目 */
:root {
  --bg: #ffffff;
  --text: #333333;
  --muted: #888888;
  --line: #e6e6e6;
  --soft: #fafafa;
  --accent: #111111;
  --max: 1100px;
  --sans: 'Quattrocento Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --serif: 'Quattrocento', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.8 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { opacity: .7; }

/* 上の帯 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .inner { max-width: var(--max); margin: 0 auto; padding: 22px 16px 10px; display: flex; justify-content: center; align-items: center; }
.logo { font-family: var(--serif); font-size: 28px; letter-spacing: .12em; text-decoration: none; color: var(--accent); }
.hamburger { display: none; }
.site-nav { max-width: var(--max); margin: 0 auto; padding: 0 16px 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu.d0 { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 6px 12px; text-decoration: none; color: var(--text); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav .d1 a, .site-nav .d2 a { text-transform: none; letter-spacing: .02em; }
.site-nav a.current { color: var(--accent); font-weight: 700; }
.sub-toggle { display: none; }
@media (min-width: 821px) {
  .site-nav .menu.d1, .site-nav .menu.d2 { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.08); padding: 6px 0; max-height: 70vh; overflow-y: auto; }
  .site-nav .menu.d2 { left: 100%; top: -7px; }
  .site-nav li:hover > .menu, .site-nav li:focus-within > .menu { display: block; }
}
@media (max-width: 820px) {
  .site-header .inner { justify-content: space-between; padding: 14px 16px; }
  .logo { font-size: 22px; }
  .hamburger { display: block; width: 40px; height: 40px; border: 0; background: none; position: relative; cursor: pointer; }
  .hamburger span, .hamburger span::before, .hamburger span::after { position: absolute; left: 9px; width: 22px; height: 2px; background: var(--text); content: ""; }
  .hamburger span { top: 19px; } .hamburger span::before { top: -7px; left: 0; } .hamburger span::after { top: 7px; left: 0; }
  .site-nav { display: none; max-height: calc(100vh - 70px); overflow-y: auto; padding: 0 0 12px; }
  .nav-open .site-nav { display: block; }
  .site-nav .menu.d0 { display: block; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { padding: 12px 16px; font-size: 15px; }
  .site-nav .has-sub > a { padding-right: 56px; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 0; width: 52px; height: 48px; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
  .site-nav .menu.d1, .site-nav .menu.d2 { display: none; background: var(--soft); }
  .site-nav li.open > .menu { display: block; }
  .site-nav .d1 a { padding-left: 32px; } .site-nav .d2 a { padding-left: 48px; }
}

/* 本文 */
.content { max-width: var(--max); margin: 0 auto; padding: 32px 16px 64px; }
.page-title, .wsite-content-title, .post-title { font-family: var(--serif); font-weight: 400; color: var(--accent); line-height: 1.4; }
h2.wsite-content-title { font-size: 28px; margin: 24px 0 12px; }
.page-title { font-size: 32px; text-align: center; margin: 0 0 28px; letter-spacing: .08em; }
.paragraph { margin: 0 0 18px; overflow-wrap: anywhere; }
.image { margin: 12px 0; text-align: center; }
.image img { display: inline-block; }
.wsite-caption { display: block; font-size: 14px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.cols { display: flex; gap: 24px; }
.col { min-width: 0; flex: 1; }
@media (max-width: 700px) { .cols { flex-direction: column; gap: 0; } .col { flex: auto !important; } }
.button { display: inline-block; padding: 10px 24px; border: 1px solid var(--accent); text-decoration: none; margin: 8px 0; }

/* 作品の並び */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; margin: 16px 0 28px; }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); gap: 6px; } }

/* 動画 */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 800px; margin: 20px auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
iframe { max-width: 100%; }

/* ブログ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.card img, .card .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); display: block; }
.card-date { font-size: 13px; color: var(--muted); margin-top: 8px; }
.card-title { font-size: 15px; line-height: 1.5; }
.post { max-width: 820px; margin: 0 auto; }
.post-date { color: var(--muted); font-size: 14px; margin: 0; }
.post-title { font-size: 28px; margin: 4px 0 24px; }
.back { margin-top: 40px; }

/* フォーム */
.contact-form { max-width: 560px; margin: 20px 0; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 4px; font-size: 15px; }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1px solid #cccccc; background: var(--bg); color: var(--text); width: 100%; }
.contact-form button { justify-self: start; font: inherit; padding: 10px 32px; background: var(--accent); color: #fff; border: 0; cursor: pointer; }
.req { color: #c00; }

/* 画像の拡大表示 */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox figcaption { color: #ddd; font-size: 14px; margin-top: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 8px 16px; line-height: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* 下の帯 */
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 28px 16px; font-size: 13px; color: var(--muted); }
.site-footer .social a { margin: 0 10px; color: var(--text); text-decoration: none; }

/* exhibition の一覧 */
.ex-list { max-width: 760px; margin: 0 auto; }
.ex-year { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.ex-year h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0; color: var(--accent); line-height: 1.5; }
.ex-year ul { list-style: none; margin: 0; padding: 0; }
.ex-year li { padding: 3px 0; font-size: 17px; }
.ex-year li.sub { padding-left: 1.4em; font-size: 15px; }
.ex-year li.sub::before { content: "└ "; color: var(--muted); }
.ex-year a { text-decoration: none; }
.ex-year a:hover { text-decoration: underline; }
@media (max-width: 600px) { .ex-year { grid-template-columns: 1fr; gap: 4px; } }

/* COLUMN（note） */
.lead { text-align: center; color: var(--muted); font-size: 14px; margin: -12px 0 28px; }
.card-text { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
