@charset "UTF-8";

/* ==========================================================
   SOMA WEB DESIGN — Works pages (list + detail)
   TOPページ(top.css)と同じ世界観で構築
   Colors: ink #1A1A1A / text #2A2A2A / accent #5B9BD5 / gray #F5F5F4
   ヘッダー / メニュー / フッターは top.css を共用
   ========================================================== */

.subpage { overflow-x: hidden; }
.subpage main { display: block; }

/* 白背景ページでもヘッダーを読みやすく */
.subpage .site-header {
  background: linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.6) 55%, rgba(255,255,255,0));
}

/* ---------- ページ見出し ---------- */
.page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 172px 48px 0;
}
.page-head .tick {
  width: 1.5px;
  height: 26px;
  background: #5B9BD5;
}
.page-head .en {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: .22em;
  color: #1A1A1A;
  text-indent: .22em;
}
.page-head .jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  letter-spacing: .22em;
  color: #2A2A2A;
}
.page-head .lead {
  max-width: 660px;
  margin: 14px auto 0;
  font-weight: 300;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: .05em;
  color: rgba(42,42,42,.85);
}
.page-head .count {
  margin: 6px 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  letter-spacing: .32em;
  color: rgba(42,42,42,.5);
}

/* ---------- 一覧グリッド ---------- */
.works-index {
  max-width: 1060px;
  margin: 0 auto;
  padding: 74px 48px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.wi-card {
  display: block;
  background: #FFFFFF;
  box-shadow: 0 2px 14px rgba(26,26,26,.05);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s;
}
.wi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(26,26,26,.10);
}
.wi-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #EDEDEC;
}
.wi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.wi-card:hover .wi-thumb img { transform: scale(1.05); }
.wi-thumb .view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,26,26,.30);
  opacity: 0;
  transition: opacity .4s;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #FFFFFF;
}
.wi-card:hover .wi-thumb .view { opacity: 1; }
.wi-cap { padding: 22px 24px 26px; }
.wi-cap .tag {
  font-size: 9.5px;
  letter-spacing: .3em;
  color: #5B9BD5;
}
.wi-cap h3 {
  margin: 12px 0 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: .07em;
  color: #1A1A1A;
  line-height: 1.7;
}
.wi-cap h3 small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .26em;
  color: rgba(42,42,42,.5);
  font-family: 'Noto Sans JP', sans-serif;
}
.wi-cap p {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: .04em;
  color: rgba(42,42,42,.8);
}
.wi-cap .more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: .26em;
  color: #1A1A1A;
}
.wi-cap .more::after {
  content: "";
  width: 34px;
  height: 1px;
  background: #5B9BD5;
  transition: width .4s;
}
.wi-card:hover .wi-cap .more::after { width: 52px; }

/* 一覧下の注記 */
.works-note {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 48px 130px;
  text-align: center;
  font-weight: 300;
  font-size: 12.5px;
  line-height: 2.2;
  letter-spacing: .04em;
  color: rgba(42,42,42,.72);
}
.works-note a {
  color: #1A1A1A;
  border-bottom: 1px solid #5B9BD5;
  padding-bottom: 2px;
}
.works-note a:hover { color: #5B9BD5; }

/* ==========================================================
   詳細ページ
   ========================================================== */
.crumbs {
  max-width: 960px;
  margin: 0 auto;
  padding: 126px 48px 0;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(42,42,42,.6);
}
.crumbs a { color: rgba(42,42,42,.6); }
.crumbs a:hover { color: #5B9BD5; }
.crumbs span { margin: 0 10px; color: rgba(42,42,42,.3); }

.wd {
  max-width: 960px;
  margin: 0 auto;
  padding: 44px 48px 0;
}

/* 詳細ヒーロー */
.wd-hero {
  text-align: center;
  margin-bottom: 48px;
}
.wd-hero .cat {
  font-size: 10px;
  letter-spacing: .3em;
  color: #5B9BD5;
}
.wd-hero h1 {
  margin: 22px 0 0;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: .12em;
  color: #1A1A1A;
}
.wd-hero h1 small {
  display: block;
  margin-top: 18px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .2em;
  color: rgba(42,42,42,.7);
}

/* キービジュアル */
.wd-visual { margin-bottom: 26px; }
.wd-visual .ph { aspect-ratio: 16 / 9; }
.wd-demo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  border: 1px solid rgba(91,155,213,.65);
  padding: 15px 40px;
  font-size: 11px;
  letter-spacing: .28em;
  color: #1A1A1A;
  transition: background .3s, color .3s;
}
.wd-demo::after {
  content: "";
  width: 30px;
  height: 1px;
  background: #5B9BD5;
}
.wd-demo:hover {
  background: rgba(91,155,213,.08);
  color: #1A1A1A;
}
.wd-visual-foot {
  display: flex;
  justify-content: center;
}

/* メタ情報 */
.wd-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 44px 0 64px;
  border-top: 1px solid rgba(26,26,26,.12);
  border-bottom: 1px solid rgba(26,26,26,.12);
}
.wd-meta > div {
  padding: 24px 20px;
  border-left: 1px solid rgba(26,26,26,.08);
}
.wd-meta > div:first-child { border-left: none; }
.wd-meta dt {
  font-size: 9.5px;
  letter-spacing: .24em;
  color: #5B9BD5;
  margin-bottom: 12px;
}
.wd-meta dd {
  margin: 0;
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: .04em;
  color: #1A1A1A;
}

/* 本文ブロック */
.wd-body { max-width: 760px; margin: 0 auto; }
.wd-block { margin-bottom: 60px; }
.wd-block h2 {
  margin: 0 0 24px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .14em;
  color: #1A1A1A;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.wd-block h2 small {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(42,42,42,.6);
}
.wd-block h2::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: #5B9BD5;
  transform: translateY(-6px);
}
.wd-block p {
  margin: 0 0 20px;
  font-weight: 300;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: .05em;
  color: #2A2A2A;
}
.wd-block p:last-child { margin-bottom: 0; }

/* ギャラリー */
.wd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 34px;
}
.wd-gallery .ph { aspect-ratio: 4 / 3; }
.wd-gallery .ph.-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* プレースホルダー / 画像枠 */
.ph {
  position: relative;
  overflow: hidden;
  background: #EDEDEC;
  border: 1px solid rgba(26,26,26,.06);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(42,42,42,.4);
}
.ph img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 前後 / 一覧ナビ */
.wd-nav {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 44px 48px 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(26,26,26,.12);
}
.wd-nav a { display: inline-flex; flex-direction: column; gap: 8px; }
.wd-nav .prev { align-items: flex-start; }
.wd-nav .next { align-items: flex-end; text-align: right; }
.wd-nav small {
  font-family: 'Playfair Display', serif;
  font-size: 10px;
  letter-spacing: .26em;
  color: #5B9BD5;
}
.wd-nav .prev, .wd-nav .next {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: .06em;
  color: #1A1A1A;
}
.wd-nav .to-list {
  font-size: 11px;
  letter-spacing: .24em;
  color: rgba(42,42,42,.7);
  border: 1px solid rgba(26,26,26,.15);
  padding: 12px 26px;
  white-space: nowrap;
}
.wd-nav .to-list:hover { border-color: #5B9BD5; color: #5B9BD5; }

/* ==========================================================
   デバイスモック（ライブデモを埋め込み・スクロール可）
   ========================================================== */
/* テキスト幅(960)を超えて広く見せる（中央基準でブレイクアウト） */
.device-stage {
  width: min(1160px, 94vw);
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.device-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.device-tabs button {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: .24em;
  text-indent: .24em;
  color: rgba(42,42,42,.6);
  background: none;
  border: 1px solid rgba(26,26,26,.15);
  padding: 9px 24px;
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.device-tabs button:hover { color: #1A1A1A; }
.device-tabs button.is-active {
  border-color: #5B9BD5;
  color: #1A1A1A;
  background: rgba(91,155,213,.06);
}

.device {
  position: relative;
  margin: 0 auto;
  transition: max-width .4s cubic-bezier(.16,1,.3,1);
}
.device iframe { border: 0; display: block; background: #FFFFFF; }
.device-screen {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}
.device .notch { display: none; }

/* PC と スマホ を横並び */
.device-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 50px;
}

/* 各デバイスの画面：中の iframe は原寸ビューポートを縮小表示 */
.device .device-screen iframe {
  position: absolute;
  top: 0; left: 0;
  transform-origin: top left; /* サイズと scale は JS で設定 */
  border: 0;
}

/* PC（Appleモニター：黒ベゼルなし・ブラウザ窓＋アルミスタンド） */
.device.-pc {
  flex: 1 1 0;
  min-width: 0;
  max-width: 820px;
  margin: 0;
}
.device.-pc .window {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(26,26,26,.10);
  box-shadow: 0 26px 60px rgba(26,26,26,.16);
  background: #FFFFFF;
}
.device.-pc .bar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: #F1F1EF;
  border-bottom: 1px solid rgba(26,26,26,.08);
}

/* アルミのスタンド（首 + フット） */
.stand { display: none; }
.device.-pc .stand {
  display: block;
  position: relative;
  width: 168px;
  height: 66px;
  margin: 0 auto;
  padding-bottom: 20px;   /* フット分の余白 */
}
/* 首（アーム） */
.device.-pc .stand::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 66px;
  background: linear-gradient(90deg, #9a9da1 0%, #d7d9dc 22%, #f4f5f6 50%, #cfd2d5 78%, #94979b 100%);
  clip-path: polygon(30% 0, 70% 0, 88% 100%, 12% 100%);
}
/* フット（台座） */
.device.-pc .stand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 290px;
  height: 16px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(180deg, #f3f4f5 0%, #d5d8db 55%, #b0b3b7 100%);
  box-shadow: 0 14px 26px rgba(26,26,26,.22), inset 0 1px 0 rgba(255,255,255,.7);
}
.device .dots { display: flex; gap: 7px; }
.device .dots i {
  display: block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #D9D9D6;
}
.device .dots i:nth-child(1) { background: #E9857D; }
.device .dots i:nth-child(2) { background: #EBC66B; }
.device .dots i:nth-child(3) { background: #9FCB8F; }
.device .url {
  flex: 1;
  margin-left: 14px;
  height: 24px;
  padding: 0 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(26,26,26,.08);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .05em;
  color: rgba(42,42,42,.55);
}
.device .url::before {
  content: "";
  width: 8px; height: 8px;
  border: 1.4px solid #9FCB8F;
  border-radius: 50%;
  flex: none;
}
.device.-pc .device-screen { height: 480px; }

/* スマートフォン */
.device.-sp {
  flex: none;
  width: 300px;
  margin: 0;
  padding: 13px;
  background: #1A1A1A;
  border-radius: 44px;
  box-shadow: 0 26px 60px rgba(26,26,26,.24);
}
.device.-sp .bar { display: none; }
.device.-sp .notch {
  display: block;
  position: absolute;
  top: 13px; left: 50%;
  transform: translateX(-50%);
  width: 116px; height: 22px;
  background: #1A1A1A;
  border-radius: 0 0 15px 15px;
  z-index: 3;
}
.device.-sp .device-screen {
  height: 500px;
  border-radius: 32px;
}

.device-hint {
  text-align: center;
  margin: 24px 0 0;
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(42,42,42,.5);
}

@media (max-width: 860px) {
  .device-row { flex-direction: column; align-items: center; gap: 48px; }
  .device.-pc { max-width: 640px; width: 100%; }
}
@media (max-width: 640px) {
  .device.-pc .stand { width: 130px; height: 50px; }
  .device.-pc .stand::before { height: 50px; }
  .device.-pc .stand::after { width: 210px; height: 13px; }
  .device.-sp { width: 280px; }
}

/* ---------- reveal ----------
   .reveal のスタイルは全ページで使うため style.css へ移動した。
   （固定ページ・404でも同じフェードインが効くようにするため） */

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .page-head { padding: 148px 32px 0; }
  .works-index { padding: 56px 32px 24px; grid-template-columns: 1fr 1fr; max-width: 720px; }
  .wd, .crumbs, .wd-nav { padding-left: 32px; padding-right: 32px; }
  .wd-meta { grid-template-columns: 1fr 1fr; }
  .wd-meta > div:nth-child(3) { border-left: none; }
  .wd-meta > div:nth-child(1),
  .wd-meta > div:nth-child(2) { border-bottom: 1px solid rgba(26,26,26,.08); }
}

@media (max-width: 640px) {
  .page-head { padding: 128px 20px 0; }
  .page-head .en { font-size: 32px; }
  .works-index { padding: 44px 20px 20px; grid-template-columns: 1fr; max-width: 420px; gap: 26px; }
  .works-note { padding: 20px 20px 80px; }
  .crumbs { padding: 100px 20px 0; }
  .wd { padding: 36px 20px 0; }
  .wd-meta { grid-template-columns: 1fr 1fr; }
  .wd-gallery { grid-template-columns: 1fr; gap: 16px; }
  .wd-gallery .ph.-wide { aspect-ratio: 4 / 3; }
  .wd-nav { grid-template-columns: 1fr; padding: 36px 20px 80px; gap: 22px; text-align: center; }
  .wd-nav .prev, .wd-nav .next { align-items: center; text-align: center; }
  .wd-nav .to-list { order: 3; }
}
