/* ═══════════════════════════════════════════════════════════
   global.css - メディアラボ 共通 + レスポンシブ
════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   CSS 変数
───────────────────────────────────────── */
:root {
  --color-black:   #050505;
  --color-white:   #FFFFFF;
  --color-gold:    #C9A84C;
  --color-gray:    #1A1A1A;
  --color-text:    #ede8df;
  --color-muted:   #888888;
  --color-border:  #2A2A2A;

  --font-en:       'Noto Sans JP', sans-serif;
  --font-ja:       'Noto Sans JP', sans-serif;
  --font-main:     'Noto Sans JP', sans-serif;

  --transition:    0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width:     min(92%, 1400px);
  --section-gap:   clamp(64px, 8vw, 120px);
  --container-pad: clamp(16px, 4vw, 48px);

  --header-h:      clamp(52px, 4.5vw, 72px);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */

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

html {
  font-size: clamp(12px, 0.667vw, 18px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #050505;
  color: #ede8df;
  font-family: var(--font-main);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 250px;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), border-color var(--transition);
}

a:hover {
  opacity: 0.8;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* テーブル要素の背景色リセット */
table {
  background: transparent;
}

th,
td {
  background: transparent;
}

/* WordPress 等のデフォルト白背景を上書き */
.page-about table,
.page-about th,
.page-about td {
  background-color: transparent;
}

/* ============================================
   CONTAINER（全セクション共通）
   ============================================ */

.inner {
  width: min(92%, 1400px);
  margin: 0 auto;
}

.container {
  width: min(92%, 1400px);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─────────────────────────────────────────
   セクション共通（下層ページ含む）
───────────────────────────────────────── */
.section {
  padding-block: var(--section-gap);
}

.section-header {
  margin-bottom: clamp(28px, 4vw, 60px);
  text-align: center;
}

.section-label {
  font-family: var(--font-en);
  font-size: clamp(0.65rem, 0.55vw + 0.5rem, 0.85rem);
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.section-cta {
  text-align: center;
  margin-top: clamp(36px, 5vw, 60px);
}

/* ─────────────────────────────────────────
   ページラベル・タイトル（.container 型ヒーロー内など）
───────────────────────────────────────── */
.page-label {
  font-family: var(--font-en);
  font-size: clamp(0.65rem, 0.55vw + 0.5rem, 0.85rem);
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-title {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 4.5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.page-description {
  margin-top: 1rem;
  color: var(--color-muted);
  max-width: min(100%, 600px);
}

/* ─────────────────────────────────────────
   ボタン
───────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: clamp(12px, 1.2vw, 16px) clamp(32px, 4vw, 48px);
  background-color: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 0.6vw + 0.55rem, 0.9rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-white);
  opacity: 1;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: clamp(10px, 1vw, 14px) clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 0.6vw + 0.55rem, 0.9rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color var(--transition), color var(--transition);
}

.btn-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
  opacity: 1;
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  transition: background-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.98);
}

.header-inner {
  width: min(92%, 1400px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: clamp(16px, 3vw, 32px);
  padding-inline: clamp(16px, 4vw, 48px);
}

.site-logo {
  font-family: var(--font-en);
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 700;
  letter-spacing: clamp(4px, 0.5vw, 8px);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.global-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav .nav-list li a {
  font-family: var(--font-en);
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: clamp(2px, 0.25vw, 4px);
  color: rgba(237, 232, 223, 0.55);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.global-nav .nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--transition);
}

.global-nav .nav-list li a:hover {
  opacity: 1;
  color: #ede8df;
}

.global-nav .nav-list li a:hover::after {
  width: 100%;
}

.global-nav .nav-list li a.nav-cta {
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: clamp(1.5px, 0.2vw, 3px);
  border: 1px solid rgba(201, 168, 76, 0.7);
  color: #C9A84C;
  padding: clamp(6px, 0.6vw, 10px) clamp(14px, 1.4vw, 24px);
}

.global-nav .nav-list li a.nav-cta:hover {
  background: #C9A84C;
  color: #000;
}

.global-nav .nav-list li a.nav-cta::after {
  display: none;
}

/* ハンバーガー（SP） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 1px;
  background: #ede8df;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* SPメニューオーバーレイ */
.sp-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 5, 5, 0.97);
  padding: clamp(32px, 10vw, 64px) clamp(24px, 6vw, 48px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  align-items: center;
  justify-content: center;
}

.sp-nav-overlay.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.sp-nav {
  width: 100%;
  max-width: min(92%, 420px);
}

.sp-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 6vw, 40px);
}

.sp-nav-list li a {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(237, 232, 223, 0.85);
  text-align: center;
}

.sp-nav-list li a.nav-cta {
  margin-top: clamp(8px, 2vw, 16px);
  padding: clamp(10px, 2.5vw, 14px) clamp(28px, 6vw, 36px);
  font-size: clamp(0.8rem, 2.6vw, 0.95rem);
  border: 1px solid rgba(201, 168, 76, 0.7);
  color: #C9A84C;
}

.sp-nav-list li a:hover {
  opacity: 1;
  color: #C9A84C;
}

/* メインコンテンツ */
.main-content {
  padding-top: var(--header-h);
}

.top-page {
  padding-top: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #030303;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: clamp(40px, 4vw, 72px) 0;
}

.footer-inner {
  width: min(92%, 1400px);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(32px, 3vw, 52px);
}

.footer-logo a {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  letter-spacing: clamp(4px, 0.5vw, 8px);
  color: #fff;
}

.footer-sns {
  color: #ede8df;
  transition: color var(--transition);
}

.footer-sns:hover {
  color: var(--color-gold);
  opacity: 1;
}

.footer-address,
.footer-addr {
  margin-bottom: clamp(32px, 3vw, 48px);
  font-size: clamp(10px, 0.75vw + 0.5rem, 12px);
  letter-spacing: 0.5px;
  color: var(--color-white);
  line-height: 1.9;
}

.footer-company-name {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.footer-nav {
  padding-top: clamp(24px, 2.5vw, 40px);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  margin-bottom: clamp(40px, 4vw, 60px);
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list li a {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: clamp(2px, 0.25vw, 4px);
  color: var(--color-white);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}

.footer-nav-list li a:hover {
  color: var(--color-gold);
  opacity: 1;
}

.footer-nav-heading,
.footer-col h4 {
  font-family: var(--font-en);
  font-size: clamp(8px, 0.6vw + 0.45rem, 10px);
  letter-spacing: clamp(3px, 0.35vw, 5px);
  color: #C9A84C;
  margin-bottom: clamp(10px, 1vw, 16px);
  font-weight: 400;
  text-transform: uppercase;
}

.footer-nav-col ul li a,
.footer-col a {
  display: block;
  font-size: clamp(10px, 0.75vw + 0.45rem, 12px);
  color: var(--color-white);
  margin-bottom: clamp(6px, 0.6vw, 10px);
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav-col ul li a:hover,
.footer-col a:hover {
  color: var(--color-white);
  opacity: 1;
}

.footer-copy {
  font-size: clamp(9px, 0.65vw + 0.45rem, 11px);
  color: rgba(237, 232, 223, 0.22);
  text-align: center;
  padding-top: clamp(28px, 3vw, 48px);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

/* ─────────────────────────────────────────
   共通コンポーネント
───────────────────────────────────────── */

.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(40px, 6vw, 60px);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(36px, 8vw, 40px);
  min-height: clamp(36px, 8vw, 40px);
  padding: 0 6px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: clamp(0.75rem, 0.6vw + 0.55rem, 0.875rem);
  transition: border-color var(--transition), color var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--color-gold);
  color: var(--color-gold);
  opacity: 1;
}

.no-posts {
  text-align: center;
  color: var(--color-muted);
  padding: clamp(40px, 8vw, 60px) 0;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 20px);
  padding-block: clamp(28px, 5vw, 40px);
  border-top: 1px solid var(--color-border);
  margin-top: clamp(40px, 8vw, 60px);
  font-size: clamp(0.8rem, 0.65vw + 0.55rem, 0.875rem);
}

.post-navigation a {
  color: var(--color-muted);
  transition: color var(--transition);
}

.post-navigation a:hover {
  color: var(--color-gold);
  opacity: 1;
}

/* ============================================
   PAGE HERO（全ページ共通）
   ============================================ */

/* About ページ .about-hero と同寸法（WORKS / NEWS / CONTACT ほか .page-hero 共通） */
.page-hero {
  position: relative;
  min-height: clamp(320px, 38vw, 520px);
  background: #080604;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(56px, 6vw, 96px) 0
           clamp(56px, 6vw, 96px)
           clamp(40px, 5vw, 80px);
  overflow: hidden;
  border-bottom: none;
}

.page-hero__vline {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 168, 76, 0.2),
    transparent
  );
}

.page-hero__hline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(201, 168, 76, 0.2),
    transparent
  );
}

/* ============================================
   PAGE HERO：扇形SVGアニメーション
   ============================================ */

.page-hero__svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  will-change: transform;
}

@keyframes heroFanDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heroOriginRing {
  0% {
    r: 12;
    opacity: 0;
  }
  60% {
    r: 6;
    opacity: 0.5;
  }
  100% {
    r: 6;
    opacity: 0.4;
  }
}

@keyframes heroOriginDot {
  to {
    opacity: 1;
  }
}

@keyframes heroSparkle {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  30% {
    opacity: 0.9;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.hero-fan__line--1 {
  fill: none;
  stroke: #c9a84c;
  stroke-width: 1.2;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: heroFanDraw 3s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: stroke-dashoffset;
}

.hero-fan__line--2 {
  fill: none;
  stroke: rgba(201, 168, 76, 0.65);
  stroke-width: 1;
  stroke-dasharray: 1050;
  stroke-dashoffset: 1050;
  animation: heroFanDraw 3s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: stroke-dashoffset;
}

.hero-fan__line--3 {
  fill: none;
  stroke: rgba(201, 168, 76, 0.42);
  stroke-width: 0.8;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: heroFanDraw 3s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: stroke-dashoffset;
}

.hero-fan__line--4 {
  fill: none;
  stroke: rgba(201, 168, 76, 0.25);
  stroke-width: 0.8;
  stroke-dasharray: 950;
  stroke-dashoffset: 950;
  animation: heroFanDraw 3s 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: stroke-dashoffset;
}

.hero-fan__line--5 {
  fill: none;
  stroke: rgba(201, 168, 76, 0.14);
  stroke-width: 0.8;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: heroFanDraw 3s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: stroke-dashoffset;
}

.hero-fan__line--6 {
  fill: none;
  stroke: rgba(201, 168, 76, 0.08);
  stroke-width: 0.8;
  stroke-dasharray: 850;
  stroke-dashoffset: 850;
  animation: heroFanDraw 3s 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: stroke-dashoffset;
}

.hero-fan__line--7 {
  fill: none;
  stroke: rgba(201, 168, 76, 0.04);
  stroke-width: 0.8;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: heroFanDraw 3s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: stroke-dashoffset;
}

.hero-fan__origin-ring {
  fill: none;
  stroke: #c9a84c;
  stroke-width: 1.5;
  opacity: 0;
  animation: heroOriginRing 0.8s 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-fan__origin-dot {
  fill: #c9a84c;
  opacity: 0;
  animation: heroOriginDot 0.4s 3.2s ease forwards;
}

.hero-fan__sparkle {
  fill: rgba(201, 168, 76, 0.75);
  opacity: 0;
  transform-origin: center;
  animation: heroSparkle 1.8s 3s ease forwards;
}

.hero-fan__sparkle--2 {
  animation-delay: 3.3s;
}

.hero-fan__sparkle--3 {
  animation-delay: 3.6s;
}

.page-hero__inner {
  position: relative;
  z-index: 3;
}

@keyframes pageHeroContent {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.page-hero__bread {
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: 3px;
  color: rgba(237, 232, 223, 0.22);
  margin-bottom: clamp(20px, 2.5vw, 36px);
  animation: pageHeroContent 1s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.page-hero__bread a {
  color: rgba(237, 232, 223, 0.22);
  text-decoration: none;
  transition: color 0.3s;
}

.page-hero__bread a:hover {
  color: rgba(201, 168, 76, 0.6);
}

.page-hero__bread span {
  color: rgba(201, 168, 76, 0.5);
}

.page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 7.5vw, 112px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -3px;
  color: #ede8df;
  margin-bottom: 14px;
  animation: pageHeroContent 1s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.page-hero__title em {
  font-style: italic;
  color: #c9a84c;
}

.page-hero__ja {
  font-size: clamp(9px, 0.75vw, 12px);
  letter-spacing: 6px;
  color: rgba(237, 232, 223, 0.28);
  animation: pageHeroContent 1s 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.about-hero__bread {
  animation: pageHeroContent 1s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.about-hero__title {
  animation: pageHeroContent 1s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.about-hero__ja {
  animation: pageHeroContent 1s 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@media (max-width: 374px) {
  .page-hero__title {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__inner,
  .about-hero__inner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-fan__line--1,
  .hero-fan__line--2,
  .hero-fan__line--3,
  .hero-fan__line--4,
  .hero-fan__line--5,
  .hero-fan__line--6,
  .hero-fan__line--7 {
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero-fan__origin-ring,
  .hero-fan__origin-dot,
  .hero-fan__sparkle {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .page-hero__bread,
  .page-hero__title,
  .page-hero__ja,
  .about-hero__bread,
  .about-hero__title,
  .about-hero__ja {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ── iPad: 861px ～ 1279px ── */
@media (min-width: 861px) and (max-width: 1279px) {

  .header-inner {
    padding-inline: 32px;
  }

  .footer-nav-list {
    gap: clamp(16px, 4vw, 24px);
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
  }

  .footer-address,
  .footer-addr {
    text-align: left;
  }
}

/* ── SP: 250px ～ 860px ── */
@media (max-width: 860px) {

  .global-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-top {
    flex-direction: column;
    gap: 12px;
  }

  .footer-address,
  .footer-addr {
    text-align: left;
  }

  .footer-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ── 超小型SP: 250px ～ 374px ── */
@media (max-width: 374px) {
  .service-card__body {
    padding: 16px;
  }
}

/* ── 大画面: 1920px ～ ── */
@media (min-width: 1920px) {
  .inner,
  .header-inner,
  .footer-inner,
  .container,
  .section-service__inner {
    width: min(88%, 2400px);
    max-width: none;
  }
}
