@charset "utf-8";

/* =========================================================
   汐凪くらね / Shionagi Kurane
   生成りの紙・墨と藍・凪いだ昼の海辺
   ========================================================= */

:root {
  /* 紙 */
  --paper:        #fbf7ef;
  --paper-deep:   #f5eee0;
  --paper-card:   #fffdf8;
  /* 墨 */
  --sumi:         #2a2e33;
  --sumi-soft:    #5c6570;
  --sumi-faint:   #8b8f96;
  /* 藍 */
  --indigo:       #2e5c78;
  --indigo-deep:  #1f4159;
  /* 潮 */
  --tide:         #cbdee6;
  --tide-pale:    #e6f0f3;
  /* 珊瑚（差し色） */
  --coral:        #c07359;
  /* 罫 */
  --rule:         #e3dac9;

  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Sorts Mill Goudy", "Times New Roman", serif;
  --sans:  "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;

  --measure: 34rem;   /* 本文の読みやすい幅 */
  --wide:    46rem;   /* 作品まわりの幅 */
  --ease:    cubic-bezier(.22, .68, .26, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- base ---------- */
body {
  font-family: var(--serif);
  color: var(--sumi);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(203, 222, 230, .45) 0%, rgba(203, 222, 230, 0) 62%),
    linear-gradient(180deg, #fdfaf4 0%, var(--paper) 38%, var(--paper-deep) 100%);
  background-attachment: fixed;
  line-height: 1.95;
  font-size: 16px;
  letter-spacing: .045em;
  text-align: center;
  overflow-x: hidden;
}

/* 和紙の繊維感（ごく薄いノイズ） */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-head, .site-foot { position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  padding: .5rem 1.2rem;
  background: var(--indigo);
  color: #fff;
  border-radius: 0 0 .6rem .6rem;
  z-index: 50;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- header ---------- */
.site-head { padding-bottom: .5rem; }

.site-head__wave {
  width: 100%;
  max-width: none;
  height: clamp(84px, 18vw, 150px);
  object-fit: cover;
  object-position: center 60%;
  opacity: .55;
}

.site-nav { margin-top: 1.4rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem 1.5rem;
  font-size: .84rem;
  letter-spacing: .16em;
}
.site-nav a {
  display: inline-block;
  padding: .3rem .1rem;
  color: var(--sumi-soft);
  text-decoration: none;
  position: relative;
  transition: color .3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--indigo); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- section ---------- */
.section {
  width: min(100% - 2.4rem, var(--wide));
  margin-inline: auto;
  padding-block: clamp(3rem, 9vw, 5.5rem);
}
.section--profile { padding-top: clamp(1.5rem, 5vw, 2.5rem); }

.section__head { margin-bottom: clamp(2rem, 6vw, 3rem); }

.section__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  font-weight: 400;
}
.section__title-en {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  letter-spacing: .22em;
  text-indent: .22em;
  color: var(--indigo-deep);
}
.section__title-ja {
  font-size: .74rem;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--sumi-faint);
  font-family: var(--sans);
}
.section__title::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  margin-top: .9rem;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
}

.section__lead {
  margin-top: 1.2rem;
  font-size: .9rem;
  color: var(--sumi-soft);
  line-height: 2.1;
}

.subhead {
  margin: clamp(3rem, 8vw, 4rem) 0 1.6rem;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--sumi-faint);
}

/* 波形の区切り線 */
.wave-rule {
  width: min(100% - 3rem, 22rem);
  height: 14px;
  margin: 0 auto;
  border: 0;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 44px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14' viewBox='0 0 44 14'%3E%3Cpath d='M0 8 Q11 -1 22 8 T44 8' fill='none' stroke='%23c9c0ad' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: .85;
}

/* ---------- profile ---------- */
.avatar {
  width: clamp(122px, 34vw, 168px);
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  padding: 6px;
  background: var(--paper-card);
  box-shadow:
    0 0 0 1px var(--rule),
    0 10px 28px -18px rgba(42, 46, 51, .5);
}
.avatar img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-weight: 400;
}
.name__ja {
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  letter-spacing: .18em;
  text-indent: .18em;
  line-height: 1.4;
}
.name__en {
  font-size: .72rem;
  font-family: var(--sans);
  letter-spacing: .32em;
  text-indent: .32em;
  color: var(--sumi-faint);
}

.tagline {
  margin-top: 1rem;
  font-size: .84rem;
  font-family: var(--sans);
  letter-spacing: .2em;
  color: var(--sumi-soft);
}

.handmade-seal {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.4rem;
  padding: .4rem 1rem .45rem;
  font-size: .74rem;
  font-family: var(--sans);
  letter-spacing: .14em;
  color: var(--coral);
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 253, 248, .7);
}
.handmade-seal svg { width: 1.05em; height: 1.05em; }

.prose {
  max-width: var(--measure);
  margin: 2.2rem auto 0;
  text-align: left;
}
.prose p + p { margin-top: 1.4rem; }
.prose p {
  font-size: .96rem;
  line-height: 2.25;
  color: #383d44;
}

/* ---------- works ---------- */
.works-recent {
  display: grid;
  gap: clamp(2.2rem, 7vw, 3.4rem);
}

.work__btn,
.thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--paper-card);
}

.work--large .work__btn {
  border-radius: 3px;
  box-shadow:
    0 0 0 1px var(--rule),
    0 18px 40px -30px rgba(31, 65, 89, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work--large .work__btn img {
  width: 100%;
  transition: transform .8s var(--ease);
}
.work--large .work__btn:hover { box-shadow: 0 0 0 1px #d6cbb6, 0 26px 46px -28px rgba(31, 65, 89, .5); }
.work--large .work__btn:hover img { transform: scale(1.018); }

.work figcaption {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: 1rem;
}
.work__title {
  font-size: 1rem;
  letter-spacing: .14em;
}
.work__meta {
  font-size: .72rem;
  font-family: var(--sans);
  letter-spacing: .1em;
  color: var(--sumi-faint);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.5rem, 2.2vw, .9rem);
}
.thumb {
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--rule);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity .4s var(--ease);
}
.thumb:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #cfc3ac, 0 12px 20px -14px rgba(31, 65, 89, .55); }
.thumb:hover img { opacity: .88; }

/* ---------- commission ---------- */
.commission-art {
  margin-bottom: clamp(1.8rem, 5vw, 2.6rem);
}
.commission-art img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--rule);
}

.card {
  padding: clamp(1.6rem, 5vw, 2.6rem);
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 18px 40px -34px rgba(31, 65, 89, .6);
  text-align: left;
}

.spec__row + .spec__row {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dotted var(--rule);
}
.spec dt {
  font-size: .76rem;
  font-family: var(--sans);
  letter-spacing: .18em;
  color: var(--indigo);
  margin-bottom: .5rem;
}
.spec dd {
  margin: 0;
  font-size: .93rem;
  line-height: 2.15;
  color: #383d44;
}

.note {
  margin-top: 1.8rem;
  font-size: .78rem;
  font-family: var(--sans);
  line-height: 1.95;
  color: var(--sumi-faint);
}

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.btn--primary {
  gap: .7rem;
  margin-top: 2rem;
  padding: 1rem 1.6rem;
  background: var(--indigo);
  color: #fdfaf4;
  font-family: var(--sans);
  font-size: .9rem;
  letter-spacing: .14em;
  box-shadow: 0 12px 26px -18px rgba(31, 65, 89, .95);
}
.btn--primary:hover { background: var(--indigo-deep); transform: translateY(-2px); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(.25rem); }

.link-list {
  display: grid;
  gap: .8rem;
  max-width: var(--measure);
  margin-inline: auto;
}
.btn--link {
  flex-direction: column;
  gap: .3rem;
  padding: 1.05rem 1.2rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  color: var(--sumi);
}
.btn--link:hover {
  transform: translateY(-2px);
  border-color: var(--indigo);
  color: var(--indigo-deep);
  box-shadow: 0 14px 26px -20px rgba(31, 65, 89, .7);
}
.btn__name {
  font-size: 1.02rem;
  letter-spacing: .22em;
  text-indent: .22em;
}
.btn__sub {
  font-size: .72rem;
  font-family: var(--sans);
  letter-spacing: .1em;
  color: var(--sumi-faint);
}

/* ---------- footer ---------- */
.site-foot {
  padding: clamp(2.5rem, 8vw, 4rem) 1.2rem clamp(2rem, 6vw, 3rem);
}
.site-foot__mark {
  width: 96px;
  height: 20px;
  margin: 0 auto 1.2rem;
  color: var(--tide);
}
.copyright {
  font-size: .72rem;
  font-family: var(--sans);
  letter-spacing: .2em;
  color: var(--sumi-faint);
}

/* ---------- reveal ---------- */
/* JS が動くときだけ隠す。JS 無効／エラー時は最初から見えたまま。 */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(.8rem, 4vw, 2.5rem);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(247, 242, 232, .93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
  max-width: min(100%, 60rem);
  max-height: 100%;
}

.lightbox__figure {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  transform: scale(.985);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: none; }

.lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  object-fit: contain;
  background: var(--paper-card);
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -35px rgba(31, 65, 89, .7);
}
.lightbox__caption {
  font-size: .78rem;
  font-family: var(--sans);
  letter-spacing: .12em;
  color: var(--sumi-soft);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--sumi-soft);
  border-radius: 50%;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.lightbox__close:hover { color: var(--indigo-deep); background: rgba(255, 255, 255, .7); }

.lightbox__nav {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 3.4rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--sumi-faint);
  border-radius: 4px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.lightbox__nav:hover { color: var(--indigo-deep); background: rgba(255, 255, 255, .65); }

body.is-locked { overflow: hidden; }

/* ---------- 画面幅 ---------- */
@media (min-width: 600px) {
  body { font-size: 17px; }
  .thumb-grid { gap: 1rem; }
}

@media (max-width: 460px) {
  .lightbox__nav { width: 2rem; font-size: 1.6rem; }
  .lightbox__inner { gap: .15rem; }
}

@media print {
  .site-nav, .lightbox, .paper-grain, .skip-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
