@charset "utf-8";

/* ============================================================
   フォント設定
============================================================ */
@font-face {
  font-family: "DisplayFont";
  src: url("../fonts/SIMPLECANDY.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "HAKKOUMINCHO";
  src: url("../fonts/HakkouMincho.ttf") format("truetype");
  font-style: normal;
}

.noto-serif-jp-600 {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

/* ============================================================
   ルート変数
============================================================ */
:root {
  --bg: #303033;
  --text: #fafafa;
  --text-sub: rgba(250, 250, 250, 0.55);
  --g-start: #ac0fc4;
  --g-end: #80f1c8;
  --footer-bg: linear-gradient(
    to bottom,
    #303033 0%,
    #e1d0eb 86%,
    #ffffff 100%
  );
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  line-height: 1.8;
}

/* ============================================================
   HERO VISUAL（モックアップ）
============================================================ */
.hero-visual {
  width: 100%;
  min-height: 420px;
  background: #1e1e22;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem 2.5rem;
  margin-top: 3.5rem;
  overflow: hidden;
  position: relative; /* ← 追加 */
}

/* 背景装飾全体 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.hero-glow-1 {
  width: 420px; height: 420px;
  background: #ac0fc4;
  top: 10%; left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 350px; height: 350px;
  background: #80f1c8;
  bottom: 10%; right: 15%;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-circle-1 {
  width: 480px; height: 480px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-circle-2 {
  width: 620px; height: 620px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateSlow 60s linear infinite;
}
@keyframes rotateSlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* モックアップが背景より前面に出るように */
.mockup-scene {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}

/* デバイス並び */
.mockup-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}

/* 共通フレーム */
.mock-frame {
  background: #2a2a2e;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 6px 6px 10px;
}

/* スクリーン */
.mock-screen {
  background: #fff;
  overflow: hidden;
  position: relative;
  border-radius: 3px;
}
.mock-screen iframe {
  border: none;
  display: block;
  transform-origin: top left;
  pointer-events: none;
}
.mock-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; 
  display: block;
}

/* Desktop */
.mock-desktop .mock-frame  { padding: 8px 8px 14px; }
.mock-desktop .mock-screen { width: 300px; height: 188px; }
.mock-desktop .mock-screen iframe {
  width: 1200px; height: 750px;
  transform: scale(0.25);
}
.mock-stand {
  width: 60px; height: 8px;
  background: #555; border-radius: 2px; margin: 0 auto;
}
.mock-base {
  width: 100px; height: 4px;
  background: #555; border-radius: 2px; margin: 0 auto;
}

/* Tablet */
.mock-tablet .mock-frame  { border-radius: 14px; padding: 8px; }
.mock-tablet .mock-screen { width: 108px; height: 144px; border-radius: 6px; }
.mock-tablet .mock-screen iframe {
  width: 768px; height: 1024px;
  transform: scale(0.1406);
}

/* Mobile */
.mock-mobile .mock-frame  { border-radius: 18px; padding: 8px 6px 12px; }
.mock-mobile .mock-screen { width: 64px; height: 114px; border-radius: 10px; }
.mock-mobile .mock-screen iframe {
  width: 375px; height: 667px;
  transform: scale(0.1707);
}

/* ============================================================
   動画バナー用モックアップ（モバイルのみ・大きく表示）
============================================================ */

/* フレーム：スマホらしく大きく */
.bannermovie {
  border-radius: 30px;
  padding: 12px 10px 20px;
  background: #1a1a1e;
  border: 2px solid #555;
}

/* スクリーン */
.bannermovie-screen {
  border-radius: 14px;
  background: #000;
   position: relative; 
}

.bannermovie-screen iframe {
    position: absolute;
  inset: 0;
    width: 100% !important;      /* ← !important 追加 */
  height: 100% !important;     /* ← !important 追加 */
  transform: none !important;  /* ← !important 追加 */
  display: block;
  border: none;
  transform: none;
  pointer-events: auto; 
}

/* 正方形バナー（1枚目）*/
.mock-device:first-child .bannermovie-screen {
  width: 240px;
  height: 240px;
}

/* 縦長バナー（2枚目）*/
.mock-device:last-child .bannermovie-screen {
  width: 190px;
  height: 338px; /* 9:16比率 */
}

/* 高さが違う2つを中央揃えに */
.mockup-scene {
  align-items: center;
  gap: 32px;
}

/* ============================================================
   レスポンシブ：モックアップ
============================================================ */

/* タブレット（768px以下）: Desktopを小さく、Tabletを非表示 */
@media (max-width: 768px) {
  .hero-visual {
    min-height: 280px;
    padding: 3rem 1rem 1.5rem;
    margin-top: 3rem;
  }
  .mockup-scene { gap: 14px; }

  /* desktopを縮小 */
  .mock-desktop .mock-screen { width: 200px; height: 125px; }
  .mock-desktop .mock-screen iframe { transform: scale(0.1667); }
  .mock-stand { width: 40px; }
  .mock-base  { width: 70px; }

  /* tabletを非表示 */
  .mock-tablet { display: none; }

  /* mobileを少し縮小 */
  .mock-mobile .mock-screen { width: 52px; height: 92px; }
  .mock-mobile .mock-screen iframe { transform: scale(0.1387); }
}

/* スマホ（480px以下）: Desktopのみ表示 */
@media (max-width: 480px) {
  .hero-visual {
    min-height: 220px;
    padding: 2.5rem 1rem 1.5rem;
  }
  .mockup-scene { gap: 10px; }

  .mock-desktop .mock-screen { width: 220px; height: 138px; }
  .mock-desktop .mock-screen iframe { transform: scale(0.1833); }

  /* tabletとmobileを非表示、desktopだけ残す */
  .mock-tablet { display: none; }
  .mock-mobile { display: none; }
}

/* ============================================================
   MAIN CONTENT
============================================================ */
.work-detail {
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.work-meta {
  text-align: center;
  margin-bottom: 2.5rem;
}
.work-meta .category {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.work-meta h1 {
  font-family: "DisplayFont", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.work-meta .tools {
  font-size: 0.8rem;
  color: var(--text);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}
.work-meta a{
  text-decoration: none
}
.work-meta .link{
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-sub);
}
.work-meta .link:hover {
  background: linear-gradient(135deg, var(--g-start) 0%, var(--g-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

}

/* PREVIEW IMAGE */
.work-preview {
  width: 100%;
    max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}


.work-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
  will-change: transform;
}
.work-preview iframe{
  width: 100%;
  height: 100%;
}

/* SECTIONS */
.works-section{
    width: 100%;
    max-width: 680px;
      margin: 0 auto;

}

.detail-section { margin-bottom: 2.8rem; }
.detail-section h2 {
  font-family: "DisplayFont", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--g-start) 0%, var(--g-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.9rem;
}
.detail-section p {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 2;
}

/* BACK BUTTON */
.back-wrap { text-align: center; }

/* ============================================================
   PAGE TOP ボタン
============================================================ */
.to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "DisplayFont";
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--g-start), var(--g-end)) border-box;
  border: 1.5px solid transparent;
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
}
.to-top.show  { opacity: 1; visibility: visible; }
.to-top:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 20px rgba(172, 15, 196, 0.25),
    0 0 35px rgba(128, 241, 200, 0.15);
}

/* スマホではページトップボタンを小さく */
@media (max-width: 480px) {
  .to-top {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
    font-size: 0.75rem;
  }
}