@charset "UTF-8";
/* ---------------------------------------
  2026 リニューアル: 下層ページ共通（ヘッダー・SPメニュー）
  PC は Figma 1440×1024 を基準に画面に対する割合で配置し、上限・下限で止める。
  SP は rem（画面幅に比例、393px で 1rem=10px）で Figma の数値を使う。
  色: black/100 #505050, black/80 #8F8F8F, black/40 #C1C1C1, 背景 #F0F4F4
-----------------------------------------*/
/* ステータスバーやブラウザのツールバーの裏まで背景色を地続きにする */
html {
  background-color: #F0F4F4;
  min-height: 100lvh;
}
/* 画面の一番下（iPhone のツールバーの裏）まで背景色を敷く。Safari は画面端に固定された要素の色を下部の色に使う。
   スクロールしない作品詳細と 404 だけ。Works・Biography・Contact はツールバーの裏まで中身が続いて見えるよう敷かない */
body.single-work::after,
body.error404::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(env(safe-area-inset-bottom) + 1px);
  background-color: #F0F4F4;
  z-index: 1;
  pointer-events: none;
}
/* ページ表示時の幕（common.css の .second_loading）は、消えたあとも画面いっぱいに固定で残り、
   Safari がツールバーの裏を幕の色で塗ってしまうため、フェードが終わったら描画しない */
.second_loading.hidden {
  visibility: hidden;
  transition: opacity 1.5s cubic-bezier(0.39, 0.57, 0.56, 1), visibility 0s linear 1.5s;
}
/* スクロールするページ（Works・Biography・Contact）は幕を使わず、中身（main）をフェードインさせる。
   幕は画面いっぱいに固定されているため、フェード中は Safari がツールバーの裏を幕の色で塗ってしまう */
body.page_works .second_loading,
body.page .second_loading {
  display: none;
}
body.page_works main,
body.page main {
  animation: sh_page_in 1s cubic-bezier(0.39, 0.57, 0.56, 1) both;
}
@keyframes sh_page_in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.page_works main,
  body.page main {
    animation: none;
  }
}
:root {
  --sh-side: clamp(20px, 3.47vw, 50px);   /* 50 / 1440。大画面でも Figma の 50px を超えない */
  --sh-c100: #505050;
  --sh-c80: #8F8F8F;
  --sh-c40: #C1C1C1;
}
.site_head {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3.91vh, 48px) var(--sh-side) 0;   /* 40 / 1024 */
  pointer-events: none;
}
.site_head > * {
  pointer-events: auto;
}
.site_head_logo {
  display: block;
  width: clamp(130px, 11.11vw, 160px);   /* 160 / 1440（本人要望で 140→160）。大画面では 160px で止める */
}
.site_head_logo img {
  width: 100%;
  height: auto;
}
.site_head_logo .sp {
  display: none;
}
.site_head_nav ul {
  display: flex;
  gap: 20px;
}
/* 押せる範囲を文字の周りに広げる（見た目の位置は変えない） */
.site_head_nav li {
  position: relative;
}
.site_head_nav a {
  display: block;
  position: relative;
}
.site_head_nav a::before {
  content: "";
  position: absolute;
  inset: -14px -10px;
}
.site_head_nav a {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 12px;   /* 本人要望で 10→12px（Works 一覧と同じ） */
  line-height: 1.4;
  color: var(--sh-c80);
  transition: color 0.3s ease;
}
.site_head_nav a.is_current {
  color: var(--sh-c40);
}
@media (any-hover: hover) {
  .site_head_nav a:hover {
    color: var(--sh-c40);
    opacity: 1;
  }
  .site_head_logo:hover {
    opacity: 0.6;
  }
}
.site_head_btn {
  display: none;
}
.site_menu {
  display: none;
}

@media screen and (max-width: 767px) {
  .site_head {
    padding: calc(3rem + env(safe-area-inset-top)) 2rem 0;
    background-color: #F0F4F4;   /* ぼかし・グラデーションなしのベタ塗り（本人要望） */
    padding-bottom: 1.45rem;
  }
  .site_head_logo {
    width: 15.977rem;
  }
  .site_head_logo .pc {
    display: none;
  }
  .site_head_logo .sp {
    display: block;
  }
  .site_head_nav {
    display: none;
  }
  .site_head_btn {
    display: block;
    position: relative;
    z-index: 1001;
    width: 4.4rem;
    height: 3rem;
    margin-right: -1rem;
    padding: 1rem;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .site_head_btn img {
    display: block;
    width: 2.4rem;
    height: auto;
  }
  .site_head_btn .icon_close {
    display: none;
  }
  /* メニューを開いている間はヘッダーをメニューより前に出し、同じ位置で × に切り替える */
  .site_head {
    z-index: 1001;
  }
  body.is_menu_open .site_head_btn .icon_open {
    display: none;
  }
  body.is_menu_open .site_head_btn .icon_close {
    display: block;
  }
  .site_menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: calc(10.4rem + env(safe-area-inset-top)) 2rem calc(2rem + env(safe-area-inset-bottom));
    background-color: #F0F4F4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    will-change: opacity;
  }
  body.is_menu_open .site_menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
  }
  .site_menu li {
    opacity: 0;
    transform: translateY(0.6rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  body.is_menu_open .site_menu li {
    opacity: 1;
    transform: none;
  }
  body.is_menu_open .site_menu li:nth-child(2) { transition-delay: 0.04s; }
  body.is_menu_open .site_menu li:nth-child(3) { transition-delay: 0.08s; }
  body.is_menu_open .site_menu li:nth-child(4) { transition-delay: 0.12s; }
  .site_menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2.4rem;
  }
  .site_menu a {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;   /* 本人要望で Medium→Regular */
    font-size: 1.8rem;
    color: var(--sh-c80);
  }
  .site_menu_copy {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: #A0A0A0;
  }
}

/* ---------------------------------------
  404（ページが見つからない）
-----------------------------------------*/
.nf {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--sh-side);
  text-align: center;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--sh-c80);
}
.nf_code {
  font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: clamp(96px, 12.5vw, 200px);   /* 本人要望でサイトのルールより大きく。1440px 幅で 180px */
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--sh-c40);
}
.nf_ttl {
  margin-top: clamp(24px, 3vw, 40px);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--sh-c100);
}
.nf_txt {
  margin-top: 20px;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
}
.nf_links {
  display: flex;
  gap: 28px;
  margin-top: 40px;
}
.nf_links a {
  font-weight: 500;
  font-size: 12px;
  color: var(--sh-c80);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}
@media (any-hover: hover) {
  .nf_links a:hover {
    opacity: 1;
    color: var(--sh-c40);
  }
}
@media screen and (max-width: 767px) {
  .nf {
    padding: 10rem 2rem;
  }
  .nf_code {
    font-size: 9.6rem;
  }
  .nf_ttl {
    margin-top: 2.4rem;
    font-size: 1.5rem;
  }
  .nf_txt {
    margin-top: 1.8rem;
    font-size: 1.2rem;
  }
  .nf_links {
    gap: 2.4rem;
    margin-top: 3.2rem;
  }
  .nf_links a {
    font-size: 1.2rem;
  }
}
