@charset "utf-8";

/* ------------------ 共通 ------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html{
  overflow-y: scroll;
  scrollbar-gutter: stable;

  /* ✅ ABOUTと同じ雰囲気：右側は明るめグレー */
  background: linear-gradient(135deg, #000 50%, #fbfbfb 50%);
  background-attachment: fixed;
  min-height: 100%;
}

body{
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  background: transparent;
  color: #fff;
}

.site{
  position: relative;
  min-height: 100vh;
  z-index: 1;
  background: transparent;
}

/* フォント指定（blend無し） */
.invert-auto{
  color: #fff;
  font-family: "Luxurious Roman", sans-serif;
}

/* ------------------ ヘッダー（左：タイトル / 右：メニュー） ------------------ */
.site-header{
  position: fixed;
  top: 50px;
  left: 28px;
  right: 28px;
  z-index: 20;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  pointer-events: none;
}
.site-header .page-title{ pointer-events: none; }
.site-header .menu{ pointer-events: auto; }

/* ✅ ABOUTと同じ：右上メニューの“背面だけ”を薄く暗くする */
.site-header::after{
  content:"";
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 56vw);
  height: 160px;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(circle at 78% 32%,
      rgba(0,0,0,.22) 0%,
      rgba(0,0,0,.11) 46%,
      rgba(0,0,0,0) 76%);
}

/* タイトル（縁取りなし） */
.about-title{
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.about-title__main{
  font-size: 70px;
  color: rgba(255,255,255,0.45);
  text-shadow: none;
}

.about-title__sub{
  margin-top: 10px;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  text-shadow: none;
}

/* ------------------ MENU（文字＋SNS） ------------------ */
.menu{
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

/* 文字リンク */
.menu a{
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.12em;

  color: rgba(0,0,0,.75);
  position: relative;
  padding-bottom: 6px;
  display: inline-block;

  text-shadow: 0 1px 3px rgba(0,0,0,.40);
}

/* 下線（SNS以外） */
/* ✅ :has() 対応ブラウザならこれでOK */
.menu a:not(:has(img))::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:0%;
  height:1px;

  background: rgba(0,0,0,.65);
  transform: translateX(-50%);
  transition: width .3s ease;

  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.menu a:not(:has(img)):hover::after{ width:100%; }
.menu a.is-current:not(:has(img))::after{ width:100%; }

/* ✅ 保険：Safari古め対策 → HTML側でSNSリンクに class="is-icon" 付ける */
.menu a.is-icon{
  padding-bottom: 0;
}
.menu a.is-icon::after{
  content: none !important;
}

/* SNS（画像リンク） */
.menu a:has(img){
  padding-bottom: 0;
}
.menu a:has(img)::after{ content:none; }

.menu a img{
  width: 45px;
  height: 45px;
  display: block;
  object-fit: contain;
  opacity: .86;
  transform: translateY(1px);
  transition: opacity .2s ease, transform .2s ease;

  filter: drop-shadow(0 6px 14px rgba(0,0,0,.32));
}
.menu a:hover img{
  opacity: 1;
  transform: translateY(1px) scale(1.06);
}

/* ------------------ WORK レイアウト ------------------ */
.work{
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* ✅ 本文ブロック背面の薄ベール（ABOUTの思想） */
.work::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 52% 46%,
      rgba(0,0,0,.28) 0%,
      rgba(0,0,0,.14) 42%,
      rgba(0,0,0,0) 74%);
}

.work-inner{
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 170px 0 120px;
  position: relative;
  z-index: 1;
}

.work-right{
  width: min(760px, 92vw);
  margin: 0 auto;
}

/* イントロ：白＋影 */
.work-intro{
  margin: 0 0 26px;
  font-family: system-ui, -apple-system, "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 2.0;
  letter-spacing: 0.03em;
  opacity: 0.92;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 4px rgba(0,0,0,.40);
  text-align: center;
}

.work-group{ margin-top: 34px; }

/* 見出し：影強め */
.work-group__title{
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 0.18em;
  opacity: 0.92;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 4px rgba(0,0,0,.48);
}

/* グリッド */
.work-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* カード */
.work-card{
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  overflow: hidden;

  background: rgba(0,0,0,0.16);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.work-card__thumb{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.work-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
}

.work-card__thumb.is-placeholder{
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
}

.placeholder-text{
  font-family: system-ui, -apple-system, "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.82;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 4px rgba(0,0,0,.40);
}

.work-card__body{
  padding: 14px 14px 16px;
  font-family: system-ui, -apple-system, "Noto Sans JP", sans-serif;
}

.work-card__name{
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 4px rgba(0,0,0,.40);
}

.work-card__meta{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.82;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 4px rgba(0,0,0,.35);
}

.work-card__desc{
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  opacity: 0.92;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 4px rgba(0,0,0,.40);
}

.note{ opacity: 0.92; }

.work-card__actions{ margin-top: 12px; }

.btn-link{
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0.10em;
  font-size: 13px;

  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 4px rgba(0,0,0,.40);

  position: relative;
  padding-bottom: 4px;
}

.btn-link::after{
  content:"";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: rgba(255,255,255,.88);
  transition: width .25s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.40));
}
.btn-link:hover::after{ width: 100%; }

/* ------------------ 波（ABOUTと同じ雰囲気） ------------------ */
.bg-waves{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40vh;
  min-height: 120px;
  z-index: 5;
  pointer-events: none;
}

.waves{
  width: 100%;
  height: 100%;
  display: block;
  opacity: .22;
  filter: drop-shadow(0 -10px 22px rgba(0,0,0,.35));
}

.wave{ fill:#777; }
.wave1{ opacity:.45; }
.wave2{ opacity:.30; }
.wave3{ opacity:.18; }
.wave4{ opacity:.10; }

.parallax > use{
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1){ animation-delay:-2s; animation-duration:7s; }
.parallax > use:nth-child(2){ animation-delay:-3s; animation-duration:10s; }
.parallax > use:nth-child(3){ animation-delay:-4s; animation-duration:13s; }
.parallax > use:nth-child(4){ animation-delay:-5s; animation-duration:20s; }

@keyframes move-forever{
  0%{ transform: translate3d(-90px,0,0); }
  100%{ transform: translate3d(85px,0,0); }
}