:root {
  --paper: #faf8f4;
  --ink: #211f1c;
  --ink-dim: #6b675f;
  --line: #e5e1d8;
  --accent: #a8402a;
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --sans: "Yu Gothic Medium", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

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

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
nav ul {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
nav ul a {
  color: #f2f2f2;
  opacity: .75;
  transition: opacity .3s;
  position: relative;
  padding-bottom: 4px;
}
nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: #f2f2f2;
  transition: width .4s ease;
}
nav ul a:hover { opacity: 1; }
nav ul a:hover::after { width: 100%; }
@media (max-width: 900px) {
  nav ul { gap: 1.2rem; }
}
@media (max-width: 480px) {
  nav { padding: 1rem .8rem; font-size: .6rem; letter-spacing: .12em; }
  nav ul { gap: .9rem; }
}

header {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
  color: #d6d6d6;
}
.mv-photo {
  position: absolute;
  inset: 0;
  background-image: url("images/shiro.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.15) brightness(.34);
  animation: zoom 24s ease-in-out infinite alternate;
}
@keyframes zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.mv-kage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.72) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.5), transparent 26%, transparent 70%, rgba(0,0,0,.65));
}
.noise {
  position: absolute;
  inset: -60px;
  z-index: 5;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  animation: noise-move 1.2s steps(6) infinite;
}
@keyframes noise-move {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-18px, 12px); }
  40%  { transform: translate(14px, -20px); }
  60%  { transform: translate(-10px, -14px); }
  80%  { transform: translate(20px, 16px); }
  100% { transform: translate(0, 0); }
}

.mv-text {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
}
.mv-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  letter-spacing: .3em;
  text-indent: .3em;
  color: #f2f2f2;
  margin: 1.2rem 0;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
  opacity: 0;
  animation: title-in 2.2s cubic-bezier(.2,.6,.2,1) .8s forwards;
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(26px); letter-spacing: .55em; text-indent: .55em; }
  to   { opacity: 1; transform: translateY(0); letter-spacing: .3em; text-indent: .3em; }
}
.welcome {
  font-size: .95rem;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #d6d6d6;
  opacity: 0;
  animation: fade-up 1.8s cubic-bezier(.2,.6,.2,1) 1.8s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  font-size: .6rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #8a8a8a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.scroll .tatesen {
  width: 1px;
  height: 64px;
  background: #555;
  overflow: hidden;
  position: relative;
}
.scroll .tatesen::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: #f2f2f2;
  animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  from { top: -100%; }
  to   { top: 100%; }
}

section { padding: 7rem 2.2rem; background: var(--paper); }
.naka { max-width: 1080px; margin: 0 auto; }

.midashi { margin-bottom: 3.5rem; text-align: center; }
.midashi h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  letter-spacing: .18em;
  text-indent: .18em;
  color: var(--ink);
}
.midashi h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin: 1.1rem auto 0;
  background: var(--accent);
}

.fadein {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
.fadein.show { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fadein { opacity: 1; transform: none; transition: none; }
  .mv-photo, .noise, .scroll .tatesen::after { animation: none; }
  .mv-title, .welcome { animation: none; opacity: 1; }
}

.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.2rem 1rem;
}
.item { display: flex; flex-direction: column; }
.item .pic {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eceae4;
}
.item .pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.item:hover .pic img { transform: scale(1.05); }
.item .pic .no-pic {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .4em;
  text-indent: .4em;
  color: #b7b2a6;
}
.item .shutten {
  position: absolute;
  bottom: 0; right: 0;
  font-size: .58rem;
  letter-spacing: .06em;
  background: rgba(0,0,0,.55);
  padding: .12rem .6rem;
}
.item .shutten a { color: rgba(255,255,255,.75); }
.item .shutten a:hover { color: #fff; }
.item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: .08em;
  color: var(--ink);
  margin: 1.4rem 0 .7rem;
}
.item p { font-size: .92rem; color: var(--ink-dim); flex: 1; text-align: justify; }
.item .link {
  margin-top: 1.1rem;
  align-self: flex-start;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--accent);
  transition: opacity .3s;
}
.item .link::after {
  content: "→";
  display: inline-block;
  margin-left: .6em;
  transition: transform .4s ease;
}
.item .link:hover { opacity: .7; }
.item .link:hover::after { transform: translateX(5px); }

.haikei {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("images/machinami.jpg");
  background-size: cover;
  background-position: center;
}

#tabemono, #tokusan { margin-top: 38vh; }
@media (max-width: 768px) {
  #tabemono, #tokusan { margin-top: 26vh; }
}

footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 5rem 2.2rem 3rem;
}
footer .naka { max-width: 1080px; }
footer h4 {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}
footer ul { list-style: none; columns: 2; }
@media (max-width: 640px) { footer ul { columns: 1; } }
footer li { margin-bottom: .6rem; break-inside: avoid; }
footer li a {
  font-size: .85rem;
  color: var(--ink-dim);
  transition: color .3s;
}
footer li a:hover { color: var(--ink); }
footer .note {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  line-height: 2;
  color: var(--ink-dim);
}
