/* 未来書家（ミライショカ）— 名刺（2015〜2017）のセピア・光のぼけ・細い線のロゴを引き継ぐ */
:root {
  --bg: #1c1612;
  --bg2: #241c17;
  --paper: #efe6da;
  --ink: #f4eee6;
  --muted: #b7a796;
  --line: rgba(239, 230, 218, .18);
  --seal: #c8332b;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: "Cormorant Garamond", "Shippori Mincho", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ヘッダー */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(rgba(28, 22, 18, .85), rgba(28, 22, 18, 0));
}
.top .mark { display: block; color: var(--ink); line-height: 0; }
.top .mark svg { height: 18px; width: auto; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); font-family: var(--latin); font-size: 15px; letter-spacing: .14em; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; }
.top nav .lang { border-left: 1px solid var(--line); padding-left: clamp(14px, 3vw, 28px); }

/* ヒーロー：光のぼけの上にロゴ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40px;
  background: url(img/hero-bokeh.jpg) center / cover no-repeat;
  filter: blur(6px) saturate(.9);
  transform: scale(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(28, 22, 18, .15), rgba(28, 22, 18, .75) 75%, var(--bg));
}
.hero .inner { position: relative; z-index: 1; padding: 0 16px; }
.hero .logo { width: min(440px, 78vw); margin: 0 auto; }
.hero .logo-row { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.hero .seal { width: clamp(14px, 2.6vw, 20px); margin-bottom: 2px; }
.hero .tagline { margin: 36px 0 0; font-size: clamp(17px, 2.6vw, 22px); letter-spacing: .3em; }
:lang(en) .hero .tagline { letter-spacing: .14em; font-family: var(--latin); font-size: clamp(19px, 3vw, 26px); }
.hero .tagline-en { margin: 6px 0 0; font-family: var(--latin); font-style: italic; color: var(--muted); letter-spacing: .12em; }
.hero .scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; width: 1px; height: 48px; background: linear-gradient(var(--ink), transparent); opacity: .5; }

/* 見出し */
section { padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 64px); }
.head { text-align: center; margin-bottom: clamp(40px, 7vw, 72px); }
.head h2 { margin: 0; font-family: var(--latin); font-weight: 400; font-size: clamp(30px, 5vw, 44px); letter-spacing: .24em; }
.head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .3em; }

/* 作品 */
.works { background: var(--bg2); }
.grid { max-width: 1200px; margin: 0 auto; columns: 3 320px; column-gap: 18px; }
.grid button {
  all: unset; cursor: zoom-in; display: block; width: 100%;
  margin: 0 0 18px; break-inside: avoid; overflow: hidden;
}
.grid img { width: 100%; height: auto; transition: transform .8s ease, opacity .8s ease; opacity: .92; }
.grid button:hover img, .grid button:focus-visible img { transform: scale(1.03); opacity: 1; }
.grid button:focus-visible { outline: 1px solid var(--muted); outline-offset: 4px; }
.note { max-width: 1200px; margin: 24px auto 0; color: var(--muted); font-size: 13px; text-align: center; }

/* パフォーマンス（2本を横に並べる） */
.videos { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.videos figure { margin: 0; }
.videos video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.videos a { position: relative; display: block; text-decoration: none; }
.videos .play {
  position: absolute; right: 12px; bottom: 12px; padding: 4px 12px;
  background: rgba(28, 22, 18, .7); color: var(--ink); font-size: 12px; letter-spacing: .14em;
  opacity: .85; transition: opacity .3s, background .3s;
}
.videos a:hover .play, .videos a:focus-visible .play { opacity: 1; background: rgba(28, 22, 18, .9); }
.videos figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; letter-spacing: .2em; text-align: center; }
@media (max-width: 720px) { .videos { grid-template-columns: 1fr; } }

/* 作家 */
.about { background: var(--bg2); }
.about .wrap { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about figure { margin: 0; position: relative; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 30%; filter: sepia(.15); }
.about .sign { position: absolute; left: 5%; bottom: 5%; width: 13%; filter: drop-shadow(0 0 12px rgba(0, 0, 0, .35)); }
.about .name { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; color: var(--ink); }
.about .name .kana { width: 180px; }
.about .name .saeko { width: 180px; }
.about .name .sub { margin: 6px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .24em; }
.about p { margin: 0 0 1.2em; }

/* Instagram */
.follow { text-align: center; }
.follow p { margin: 0 0 32px; }
.btn {
  display: inline-block; padding: 14px 40px; border: 1px solid var(--ink);
  text-decoration: none; font-family: var(--latin); letter-spacing: .24em; font-size: 15px;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.btns .btn { min-width: 220px; text-align: center; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

footer { padding: 48px 16px 56px; text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .16em; border-top: 1px solid var(--line); }
footer .brand { font-family: var(--latin); font-size: 14px; letter-spacing: .3em; }

/* 拡大表示 */
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92svh; }
dialog::backdrop { background: rgba(14, 11, 9, .94); }
dialog img { max-width: 96vw; max-height: 92svh; width: auto; height: auto; }
dialog form { position: fixed; top: 12px; right: 16px; }
dialog form button { all: unset; cursor: pointer; color: var(--ink); font-size: 32px; line-height: 1; padding: 8px; }

/* 現れ方 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 720px) {
  .about .wrap { grid-template-columns: 1fr; }
  .top nav .hide-sm { display: none; }
}
