/*
Theme Name: AW Theme
Theme URI: https://avotw.jp
Author: 株式会社AW
Author URI: https://avotw.jp
Description: A View of the World — Brand Experience Design
Version: 1.0.0
License: Proprietary
Text Domain: aw-theme
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --black:      #0A0A0A;
  --surface:    #111111;
  --card:       #161616;
  --border:     #282828;
  --ivory:      #F5F0E8;
  --ivory-dim:  #A09080;
  --gold:       #C8B89A;
  --gold-faint: rgba(200,184,154,0.12);
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', 'Shippori Mincho B1', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  /* 和文は明朝（Shippori Mincho）を直立で。斜体だと漢字が潰れるため normal */
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.01em;
  /* 和文見出しの改行を語句単位でなるべく綺麗に */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.t-display em {
  font-style: normal;
  color: var(--gold);
}
.t-display--xl { font-size: clamp(3.4rem, 10vw, 11rem); }
.t-display--lg { font-size: clamp(2rem, 4.2vw, 3.9rem); }
.t-display--md { font-size: clamp(2rem, 4vw, 3.5rem); }

.t-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.t-body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.75;
  font-weight: 300;
  color: var(--ivory-dim);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.5rem, 5vw, 5rem);
  mix-blend-mode: difference;
}

.site-logo {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory);
}

.site-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.6;
  transition: opacity 0.25s;
}
.site-nav a:hover { opacity: 1; }

.nav-cta {
  opacity: 1 !important;
  border: 1px solid rgba(245,240,232,0.35);
  padding: 0.55rem 1.25rem;
  border-radius: 0;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover {
  background: var(--ivory) !important;
  color: var(--black) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(200,184,154,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.hero__headline {
  overflow: hidden;
}
.hero__headline-line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
}
.hero__headline-line:nth-child(1) { animation: slideUp 1s var(--ease-out) 0.4s forwards; }
.hero__headline-line:nth-child(2) { animation: slideUp 1s var(--ease-out) 0.55s forwards; }
.hero__headline-line:nth-child(3) { animation: slideUp 1s var(--ease-out) 0.7s forwards; }

.hero__sub {
  margin-top: 3.5rem;
  max-width: 36ch;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.5s forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out 2s infinite;
}

/* ============================================================
   MARQUEE BAND
   ============================================================ */
.marquee-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 120s linear infinite;
}
/* PC は横幅が広く流れが速く見えるため、さらに減速（スマホは120sのまま） */
@media (min-width: 769px) {
  .marquee-inner { animation-duration: 200s; }
}
.marquee-inner span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.marquee-inner .sep {
  color: var(--gold);
  letter-spacing: 0;
}

/* ============================================================
   SECTION INTRO (reusable)
   ============================================================ */
.section-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 5rem;
}
.section-intro__left { max-width: 56%; }
.section-intro__right { max-width: 36ch; padding-top: 1rem; }

/* ============================================================
   WHAT WE DO
   ============================================================ */
.what-we-do {
  padding: 10rem 0;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.service-item {
  background: var(--black);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-out);
}
.service-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.service-item:hover { background: var(--card); }
.service-item:hover::after { transform: scaleX(1); }

.service-item__num {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 2rem;
}
.service-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--ivory);
}
.service-item__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ivory-dim);
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  padding: 10rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.philosophy__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 20vw;
  font-style: italic;
  color: rgba(200,184,154,0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.philosophy__quote {
  max-width: 860px;
  position: relative;
}
.philosophy__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  color: var(--ivory);
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.philosophy__quote-mark {
  font-size: 6rem;
  line-height: 0;
  color: var(--gold);
  margin-bottom: 2rem;
  display: block;
  font-family: var(--font-display);
}
.philosophy__author {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.philosophy__author-line {
  width: 3rem;
  height: 1px;
  background: var(--gold);
}

/* ============================================================
   WORK / CASE STUDIES
   ============================================================ */
.work {
  padding: 10rem 0;
  border-top: 1px solid var(--border);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.work-item {
  position: relative;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.work-item--tall { aspect-ratio: 3/4; }
/* 縦型（Reels/Shorts等の縦型動画GIF向け） */
.work-item--portrait { aspect-ratio: 3/4; }

.work-item__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  filter: brightness(0.65) saturate(0.4);
}
/* 画像未設定時の空タイル */
.work-item__media--empty {
  background: var(--card);
  filter: none;
}
/* 動画タイル（Vimeo背景自動再生） */
.work-item__media--video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--card);
  filter: brightness(0.7) saturate(0.5);
  transition: filter 0.8s var(--ease-out);
}
.work-item__media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.work-item:hover .work-item__media--video {
  filter: brightness(0.55) saturate(0.4);
}
.work-item:hover .work-item__media {
  transform: scale(1.04);
  filter: brightness(0.5) saturate(0.3);
}

.work-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}
.work-item__client {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.work-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.15;
}
.work-item__arrow {
  margin-top: 1rem;
  width: 2rem;
  height: 1px;
  background: var(--ivory);
  position: relative;
  transition: width 0.3s var(--ease-out);
}
.work-item__arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid var(--ivory);
  border-top: 1px solid var(--ivory);
  transform: rotate(45deg);
}
.work-item:hover .work-item__arrow { width: 3rem; }

/* ============================================================
   APPROACH / PROCESS
   ============================================================ */
.approach {
  padding: 10rem 0;
  border-top: 1px solid var(--border);
}
.approach-steps {
  margin-top: 5rem;
  counter-reset: step;
}
.approach-step {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}
.approach-step:first-child { border-top: 1px solid var(--border); }
.approach-step__num {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.approach-step__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
}
.approach-step__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ivory-dim);
}

/* ============================================================
   CTA / CONTACT STRIP
   ============================================================ */
.cta-strip {
  padding: 10rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-strip__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(200,184,154,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--gold);
  padding: 1.25rem 3rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.cta-btn:hover { background: var(--gold); color: var(--black); }
.cta-btn__arrow {
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s;
}
.cta-btn:hover .cta-btn__arrow { width: 2.5rem; }
.cta-btn__arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--ivory); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--ivory-dim);
}

/* ============================================================
   SOLUTION / COMPARE（統合: 前回版を editorial 化）
   ============================================================ */
.solution { padding: 10rem 0; border-top: 1px solid var(--border); }
.aw-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.aw-compare th,
.aw-compare td {
  padding: 1.4em 1.6em;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.aw-compare thead th {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ivory-dim);
}
.aw-compare tbody th {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ivory);
}
.aw-compare .is-old { color: var(--ivory-dim); }
.aw-compare .is-aw { background: var(--gold-faint); color: var(--ivory); }
@media (max-width: 640px) {
  .aw-compare { display: block; overflow-x: auto; }
  /* 見出しをスマホで詰めて改行を綺麗に（漢字が潰れないサイズへ） */
  .t-display--xl { font-size: 2.9rem; line-height: 1.2; }
  .t-display--lg { font-size: 1.85rem; line-height: 1.4; }
  .t-display--md { font-size: 1.6rem; line-height: 1.35; }
  .philosophy__quote p { font-size: 1.55rem; line-height: 1.6; }
}

/* WORK — 実績の数字 / Other Works 導線 */
.work-item__stat {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--ivory-dim);
  margin-top: 0.75rem;
}
.work-more { text-align: center; margin-top: 4.5rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: top; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .approach-step { grid-template-columns: auto 1fr; }
  .approach-step__desc { display: none; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  /* 縦画面（スマホ）: 実績は1カラム。各タイルは自身の縦横比で表示され、
     縦型タイルはそのまま縦型動画サイズで見える */
  .work-grid { grid-template-columns: 1fr; }
  .work-item__overlay { padding: 1.75rem; }
  /* 縦画面では縦型タイルが画面を占有しすぎないよう上限を設定 */
  .work-item--portrait { aspect-ratio: 4/5; }
  .section-intro { flex-direction: column; gap: 2rem; }
  .section-intro__left,
  .section-intro__right { max-width: 100%; }
  .approach-step { grid-template-columns: 1fr; gap: 1rem; }
  /* スマホでは各ステップの説明文を表示する（1024pxで非表示にした分を戻す） */
  .approach-step__desc { display: block; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HERO INTRO（1画面目 — AVOTWロゴのみ）
   ============================================================ */
.hero-intro {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-intro__logo {
  font-family: 'Outfit', var(--font-body), sans-serif;
  font-size: clamp(3.5rem, 12vw, 10rem);
  font-weight: 200;
  letter-spacing: 0.35em;
  color: var(--ivory);
  line-height: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}

.hero-intro__sub {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
  letter-spacing: 0.3em;
}

.hero-intro__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.8s forwards;
}

.hero-intro__scroll-line {
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out 2.5s infinite;
}

/* ============================================================
   HERO VIDEO（2画面目 — 背景動画 + キャッチ）
   ============================================================ */
.hero-video {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  padding-bottom: 7rem;
  overflow: hidden;
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video__bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 */
  min-width: 100%;
  height: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.5) 40%,
    rgba(10,10,10,0.3) 100%
  );
  z-index: 1;
}

.hero-video__content {
  position: relative;
  z-index: 2;
}

.hero-video__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-video__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.hero-video__headline {
  overflow: hidden;
  cursor: default;
  transition: color 0.6s var(--ease-out);
}
.hero-video__headline:hover {
  color: var(--gold);
}
.hero-video__headline em {
  transition: color 0.6s var(--ease-out);
}
.hero-video__headline:hover em {
  color: var(--ivory);
}

.hero-video__sub {
  margin-top: 2.5rem;
  max-width: 36ch;
}

/* ============================================================
   LOGO サイズ（ヘッダー）
   ============================================================ */
.site-logo {
  font-family: 'Outfit', var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
}

/* ============================================================
   HERO INTRO — スマホでロゴを右にずらす
   ============================================================ */
@media (max-width: 768px) {
  .hero-intro__logo {
    padding-left: 0.35em;
  }
}

/* ============================================================
   HEADER LOGO — スクロール前は非表示
   ============================================================ */
.site-logo {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}
.site-logo.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   SERVICES VIDEO
   ============================================================ */
.services-video {
  margin-top: 5rem;
  /* コンテナを突き破って画面幅いっぱいに（フルブリード） */
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--card);
}
.services-video__inner {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.services-video__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   SERVICE ITEM — サブタイトル追加
   ============================================================ */
.service-item__sub {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ============================================================
   PHILOSOPHY BODY / DIVIDER
   ============================================================ */
.philosophy__body {
  max-width: 680px;
  margin-top: 4rem;
}
.philosophy__divider {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin: 6rem 0;
}
.philosophy__body2 {
  max-width: 680px;
}

/* ============================================================
   SERVICES GRID — 4カラム対応
   ============================================================ */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   FEATURED WORK — 短編映画『VALSALVA』（フラッグシップ実績）
   ============================================================ */
.featured-work {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}
.featured-work__media {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}
.featured-work__media--video {
  aspect-ratio: 16/9;
}
.featured-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-work__media-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.featured-work__media-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.featured-work__poster-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(200,184,154,0.10), transparent 60%),
    var(--card);
}
.featured-work__poster-empty span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: 0.05em;
  color: var(--gold);
  opacity: 0.55;
}
.featured-work__label { color: var(--gold); margin-bottom: 1.5rem; }
.featured-work__title { line-height: 1.1; }
.featured-work__lead { margin-top: 2rem; max-width: 48ch; }
.featured-work__facts {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.featured-work__facts > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.featured-work__facts dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.2rem;
}
.featured-work__facts dd {
  font-size: 0.9375rem;
  color: var(--ivory);
  line-height: 1.5;
}
.featured-work__cta { margin-top: 2.5rem; }

/* ============================================================
   ABOUT — 会社概要 + 代表プロフィール
   ============================================================ */
.about {
  padding: 10rem 0;
  border-top: 1px solid var(--border);
}
.about-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.about-profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.about-profile__photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}
.about-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) brightness(0.95);
}
.about-profile__photo-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
}
.about-profile__photo-empty span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--ivory-dim);
}
.about-profile__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.1;
}
.about-profile__name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-top: 0.75rem;
}
.about-profile__role {
  font-size: 0.875rem;
  color: var(--gold);
  margin: 1rem 0 1.5rem;
}
.about-profile__bio { font-size: 0.9375rem; }
.company-facts { border-top: 1px solid var(--border); }
.company-facts > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}
.company-facts dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding-top: 0.2rem;
}
.company-facts dd {
  font-size: 0.875rem;
  color: var(--ivory);
  line-height: 1.6;
}
.company-facts a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .featured-work { grid-template-columns: 1fr; gap: 2.5rem; }
  .featured-work__media { max-width: 340px; }
  .featured-work__media--video { max-width: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-profile { grid-template-columns: 1fr; }
  .about-profile__photo { max-width: 260px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   PLAYER BUTTON — AWオリジナルPlayer（視聴機）
   ============================================================ */
.player-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.player-btn__icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent currentColor;
  display: inline-block;
}
/* ghost（ヘッダー・フッター向けの控えめな線） */
.player-btn--ghost {
  color: var(--ivory-dim);
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.player-btn--ghost:hover { color: var(--ivory); border-color: var(--gold); }
/* solid（本文中の主役ボタン） */
.player-btn--solid {
  color: var(--black);
  background: var(--gold);
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--gold);
}
.player-btn--solid:hover { background: transparent; color: var(--gold); }
/* 準備中（非活性） */
.player-btn--soon {
  cursor: default;
  opacity: 0.75;
}
.player-btn--soon.player-btn--solid {
  background: transparent;
  color: var(--ivory-dim);
  border-color: var(--border);
}
.player-btn--soon:hover { color: var(--ivory-dim); border-color: var(--border); background: transparent; }
.player-btn__soon {
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  padding-left: 0.5rem;
  margin-left: 0.2rem;
  border-left: 1px solid var(--border);
}

/* ============================================================
   FOOTER SOCIAL — note / Threads / Player
   ============================================================ */
.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.25s var(--ease-out);
}
.footer-social a:hover { color: var(--gold); }

/* ============================================================
   NAV SOCIAL — note / Threads アイコン（ヘッダー）
   ============================================================ */
.site-nav__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.site-nav__social:empty { display: none; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--ivory-dim);
  border: 1px solid var(--border);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.social-link:hover { color: var(--gold); border-color: var(--gold); }
.social-ico { display: inline-flex; line-height: 0; }
.social-ico img { width: 18px; height: 18px; display: block; object-fit: contain; }

/* ============================================================
   ABOUT PAGE — Follow & Watch / CTA
   ============================================================ */
.about-connect {
  margin-top: 7rem;
  padding-top: 5rem;
  border-top: 1px solid var(--border);
}
.about-connect__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.about-connect__link {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2.5rem;
  background: var(--card);
  transition: background 0.25s var(--ease-out);
}
a.about-connect__link:hover { background: var(--surface); }
.about-connect__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ivory);
}
.about-connect__desc {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--ivory-dim);
}
.about-connect__link.is-soon .about-connect__desc { color: var(--gold); }
.about-connect__link--player .player-btn { margin-top: 0.75rem; align-self: flex-start; }
.about-cta { margin-top: 5rem; }

@media (max-width: 768px) {
  .about-connect__row { grid-template-columns: 1fr; }
}

/* ============================================================
   FX — フィルムグレイン + カスタムカーソル（AW仕様）
   ============================================================ */

/* フィルム映画風の軽いノイズ（全体に薄くかける） */
.aw-grain {
  position: fixed;
  inset: -60%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: awGrain 0.55s steps(2) infinite;
  will-change: transform;
}
@keyframes awGrain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -4%); }
  60%  { transform: translate(-3%, -2%); }
  80%  { transform: translate(2%, 4%); }
  100% { transform: translate(0, 0); }
}

/* カスタムカーソル（ドット＋遅れて追従するリング）。マウス環境のみ有効 */
.aw-cursor-dot,
.aw-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.aw-cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--ivory);
}
.aw-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
    background 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out);
}
body.aw-hovering .aw-cursor-ring {
  width: 64px;
  height: 64px;
  background: rgba(200, 184, 154, 0.15);
  border-color: transparent;
}

/* マウス環境（fine pointer）だけカーソルを差し替える。JSが aw-fx を付与 */
@media (hover: hover) and (pointer: fine) {
  body.aw-fx,
  body.aw-fx a,
  body.aw-fx button,
  body.aw-fx .hover-target { cursor: none; }
  body.aw-fx .aw-cursor-dot,
  body.aw-fx .aw-cursor-ring { opacity: 1; }
}

/* タッチ端末ではカーソル演出を出さない */
@media (hover: none), (pointer: coarse) {
  .aw-cursor-dot,
  .aw-cursor-ring { display: none; }
}

/* モーション軽減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .aw-grain { animation: none; }
}
