:root {
  --ink: #2a2a28;
  --sub: #8a8780;
  --line: #e7e4dc;
  --bg: #ffffff;
  --accent: #b9712f;
  --tap: 48px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic Medium", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--ink); text-decoration: none; }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-header .menu-btn {
  width: var(--tap);
  height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--ink);
}

/* メインメニュー（大きいタップ領域のリスト） */
.menu-panel {
  display: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.menu-panel.open { display: block; }
.menu-panel a {
  display: block;
  padding: 16px 20px;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
  min-height: var(--tap);
}
.menu-panel a:active { background: #faf8f4; }

/* コンテナ */
.page { max-width: 720px; margin: 0 auto; padding: 24px 18px 60px; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--sub);
  margin-bottom: 6px;
}
h1.page-title {
  font-size: 23px;
  font-weight: 500;
  margin: 0 0 22px;
}

/* ホーム：作品集への大きなカード入口 */
.entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  min-height: var(--tap);
}
.entry-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.entry-card .t { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.entry-card .s { font-size: 13px; color: var(--sub); }
.entry-card .arrow { margin-left: auto; color: var(--sub); font-size: 20px; }

/* 作品集ページ：操作バー */
.gallery-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  color: var(--ink);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

/* グリッド一覧 */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 480px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
.grid figure { margin: 0; }
.grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f4f2ec;
  border-radius: 8px;
  margin-bottom: 6px;
}
.grid figcaption { font-size: 14px; color: var(--ink); line-height: 1.4; }

/* スライドショー オーバーレイ */
.slideshow-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: none;
  flex-direction: column;
}
.slideshow-overlay.open { display: flex; }
.ss-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  color: #fff;
}
.ss-top button {
  width: var(--tap);
  height: var(--tap);
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
}
.ss-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ss-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ss-nav {
  position: absolute;
  top: 0; bottom: 0;
  width: 25%;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 30px;
}
.ss-nav.prev { left: 0; justify-content: flex-start; padding-left: 8px; }
.ss-nav.next { right: 0; justify-content: flex-end; padding-right: 8px; }

.ss-info {
  padding: 6px 18px 8px;
  text-align: center;
  flex-shrink: 0;
  max-height: 36vh;
  overflow-y: auto;
}
.lang-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.lang-tab {
  min-width: 40px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}
.lang-tab.active {
  background: #fff;
  color: #111;
  font-weight: 500;
}
.ss-caption {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 2px;
  position: static;
  text-shadow: none;
}
.ss-location {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 8px;
}
.ss-body {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}

.ss-bottom {
  padding: 10px 14px 16px;
  flex-shrink: 0;
}
.ss-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}
.ss-controls-row button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ss-controls-row button.play {
  width: 64px;
  height: 64px;
  background: #fff;
  color: #111;
  font-size: 26px;
}

/* スライドショー設定パネル */
.ss-settings {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
}
.ss-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.ss-settings-row + .ss-settings-row { border-top: 1px solid rgba(255,255,255,0.12); }
.ss-settings-label { font-size: 14px; color: rgba(255,255,255,0.85); }
.seg {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 3px;
}
.seg button {
  border: none;
  background: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 6px;
}
.seg button.active { background: #fff; color: #111; }
.speed-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.speed-stepper button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 18px;
}
.speed-stepper .val { font-size: 15px; color: #fff; min-width: 48px; text-align: center; }

/* プロフィールページ */
.profile-photo {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
}
.profile-block {
  margin-bottom: 30px;
}
.profile-block h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.profile-block p, .profile-block li {
  font-size: 16px;
  color: #3a3a38;
}
.history-list { margin: 0; padding: 0; list-style: none; }
.history-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.history-list .yr { color: var(--accent); flex-shrink: 0; min-width: 90px; }
.lang-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.lang-toggle button {
  flex: 1 1 30%;
  min-width: 90px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  padding: 0 8px;
}
.lang-toggle button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lang-block { display: none; }
.lang-block.active { display: block; }
.memorial-block {
  background: var(--bg-soft, #faf8f4);
  border-radius: 12px;
  padding: 16px 18px;
}
.memorial-block h2 { border-bottom: none; }
.memorial-block p { font-size: 15px; line-height: 1.9; color: #444; }

/* 展覧会ページ */
.exhibit-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.exhibit-card .status {
  display: inline-block;
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 6px;
}
.exhibit-card h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 8px;
}
.exhibit-card .detail { font-size: 14px; color: #555; margin: 3px 0; }
.exhibit-card .photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.exhibit-card .photos img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }

/* ダウンロードページ */
.terms-box {
  background: var(--bg-soft, #faf8f4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 26px;
  font-size: 14px;
  color: #555;
}
.terms-box h3 { font-size: 15px; margin: 16px 0 8px; color: var(--ink); }
.terms-box h3:first-child { margin-top: 0; }
.terms-box ul { margin: 6px 0; padding-left: 20px; }
.dl-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.dl-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.dl-item .t { font-size: 16px; margin-bottom: 4px; }
.dl-item .loc { font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.dl-item a.dlbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
}

footer.site-footer {
  text-align: center;
  padding: 30px 18px 50px;
  color: var(--sub);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
