@charset "UTF-8";
/* ============================================================
   Works — Web Design Portfolio
   参照の格: 白1色 / 細明朝 / 縦書き / 透かし巨大タイポ /
   余白の緩急(120-180-280) / 角丸なし / 影なし / 太さ2種
   ============================================================ */

:root {
  --ink: #2b2b2b;          /* 墨 */
  --mist: #8d9aa5;         /* 淡青灰(ラベル・リンク) */
  --ghost: #eef1f3;        /* 透かしタイポ */
  --line: #e7e7e4;         /* 罫線 */
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --en: "Cormorant Garamond", Georgia, serif;
  --sp-s: 120px;
  --sp-m: 180px;
  --sp-l: 280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 1px solid var(--mist); outline-offset: 4px; }

p, li { text-wrap: pretty; }
h1, h2 { font-weight: 500; word-break: auto-phrase; }

.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

/* ---- ヘッダー(最小) ---- */
.head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px clamp(24px, 5vw, 64px);
  pointer-events: none;
}
.head__name {
  font-size: 13px;
  letter-spacing: 0.22em;
}
.head__name span {
  font-family: var(--en);
  font-style: italic;
  font-size: 13px;
  color: var(--mist);
  margin-left: 14px;
  letter-spacing: 0.1em;
}

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__wm {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  font-family: var(--en);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(130px, 21vw, 270px);
  line-height: 0.9;
  color: #f3f5f7;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  margin-bottom: 16vh;   /* 主コピーを透かしから離して上へ */
}
.hero__tate {
  writing-mode: vertical-rl;
  font-size: clamp(25px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 2.1;
  height: clamp(320px, 50vh, 470px);
}
.hero__sub {
  writing-mode: vertical-rl;
  font-size: 13px;
  color: var(--mist);
  letter-spacing: 0.26em;
  height: clamp(260px, 40vh, 380px);
}
@media (max-width: 767px) {
  .hero__inner { gap: 24px; }
}
.hero__scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
}
.hero__scroll span {
  font-family: var(--en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--mist);
  position: absolute;
  bottom: 84px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 72px;
  background: var(--mist);
  animation: drop 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- 実績 ---- */
.works { padding: 0 0 var(--sp-m); }
.works::before {
  content: "";
  display: block;
  width: 1px;
  height: 150px;
  background: var(--line);
  margin: 0 auto 88px;
}
.works__label {
  width: min(1152px, 100% - 48px);
  margin: 0 auto 96px;
  font-size: 12px;
  color: #5f6266;
  letter-spacing: 0.2em;
}
.works__label span {
  font-family: var(--en);
  font-style: italic;
  font-size: 17px;
  color: var(--mist);
  letter-spacing: 0.12em;
  margin-right: 20px;
}
.works__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-m);
}
.work {
  width: min(1152px, 100% - 48px);
  margin-inline: auto;
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .work { grid-template-columns: repeat(12, 1fr); align-items: start; gap: 0; }
  .work__shot { grid-row: 1; }
  .work__meta { grid-row: 1; padding-top: 8px; }
  /* 右寄せ写真 */
  .work--r .work__shot { grid-column: 5 / 13; }
  .work--r .work__meta { grid-column: 1 / 5; padding-right: 48px; }
  /* 左寄せ写真 */
  .work--l .work__shot { grid-column: 1 / 9; }
  .work--l .work__meta { grid-column: 9 / 13; padding-left: 48px; }
}
.work__shot {
  display: block;
  padding: clamp(12px, 1.6vw, 20px);
  background: #f7f8f9;
  border: 1px solid var(--line);
  transition: opacity 0.6s var(--ease);
}
.work__shot img { border: 1px solid #ececea; }
.work__shot:hover { opacity: 0.85; }
.work__num {
  font-family: var(--en);
  font-style: italic;
  font-size: 15px;
  color: var(--mist);
  letter-spacing: 0.12em;
}
.work__num span {
  font-family: var(--serif);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  margin-left: 12px;
}
.work__name {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-top: 20px;
  line-height: 1.75;
  text-wrap: balance;
}
.work__desc {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #74777a;
  line-height: 2.3;
  max-width: 17em;
}
.work__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.4s, border-color 0.4s;
}
.work__link::after { content: "　→"; }
.work__link:hover { color: var(--mist); border-color: var(--mist); }

/* ---- 制作について ---- */
.about {
  position: relative;
  padding: var(--sp-m) 0;
  margin-top: var(--sp-m);
  background: #f4f6f8;   /* ページ自身が持つ唯一の色面 */
  overflow: hidden;
}
.about__inner {
  width: min(760px, 100% - 48px);
  margin-inline: auto;
  position: relative;
}
.about__wm {
  position: absolute;
  right: -0.05em;
  top: -1.3em;
  font-family: var(--en);
  font-style: italic;
  font-size: clamp(90px, 14vw, 170px);
  line-height: 1;
  color: #e6ebef;
  user-select: none;
  pointer-events: none;
}
.about__title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: 0.24em;
  position: relative;
}
.about__list {
  list-style: none;
  padding: 0;
  margin-top: 56px;
  position: relative;
}
.about__list li {
  border-top: 1px solid #dde3e8;
  padding: 26px 4px;
  font-size: 14px;
}
.about__list li:last-child { border-bottom: 1px solid #dde3e8; }

/* ---- フッター ---- */
.foot {
  padding: var(--sp-s) 0 48px;
  text-align: center;
}
.foot p {
  font-family: var(--en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--mist);
}

/* ---- リビール(静かに) ---- */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.12s; }
.js-reveal[data-delay="2"] { transition-delay: 0.24s; }

/* ---- モーション停止(reduced-motion環境のみ表示) ---- */
.motion-stop {
  display: none;
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 20;
  padding: 10px 16px;
  font-size: 12px;
  font-family: var(--serif);
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .motion-stop { display: block; }
}
html.is-motion-off .js-reveal,
html.is-motion-off .hero__scroll::after {
  transition-duration: 0.01ms !important;
  animation: none !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }
