/* ─── VARIABLES ─── */
:root {
  --black: #000000;
  --white: #ffffff;
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --text: #F5F5F5;
  --text-sub: rgba(255, 255, 255, 0.75);
  --surface: #050505;
  --border: rgba(255, 255, 255, 0.07);
  --gold-border: rgba(201, 168, 76, 0.25);
}

/* ─── ACCESSIBILITY ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--black);
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

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

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

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

nav::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}

nav.scrolled {
  padding: 16px 56px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--gold-border);
}

nav.scrolled::after {
  opacity: 0;
}

nav.menu-open {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 80px;
  width: auto;
  margin-top: -20px;
  /* 画像上部の余白を相殺して上に引き上げる */
  margin-bottom: -16px;
  /* ナビゲーション自体の高さが無駄に広がるのを防ぐ */
  transition: all 0.4s ease;
}

nav.scrolled .nav-logo img {
  height: 52px;
  margin-top: -8px;
  margin-bottom: -12px;
}

.nav-logo:hover img {
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: all 0.35s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.9) 100%),
    url('images/hero-new.jpg') center center / cover no-repeat;
}

.hero-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 420px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  padding-top: 48px;
  max-width: 960px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: -12px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s ease 0.3s forwards;
}

.hero-name {
  font-size: clamp(3.8rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.9s ease 0.55s forwards;
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 18px rgba(255, 210, 120, 0.55));
  }

  100% {
    filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.3));
  }
}

.hero-name-logo {
  display: block;
  max-width: clamp(320px, 52vw, 640px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 2px 16px rgba(201, 168, 76, 0.25));
  animation: glow 4s ease-in-out infinite alternate;
}

.hero-name .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUpAndGlow {
  0% {
    opacity: 0;
    transform: translateY(16px);
    text-shadow: 0 0 0 transparent;
  }

  15% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 16px rgba(255, 210, 120, 0.65);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 4px rgba(255, 210, 120, 0.25);
  }

  50% {
    text-shadow: 0 0 16px rgba(255, 210, 120, 0.65);
  }

  100% {
    text-shadow: 0 0 4px rgba(255, 210, 120, 0.25);
  }
}

.hero-japanese {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1rem, 2.8vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(16px);
  /* フェードアップした後に呼吸するグロウアニメーションに切り替える */
  animation:
    fadeUp 0.9s ease 0.8s forwards,
    textGlow 4s ease-in-out 1.7s infinite alternate;
}

.hero-rule {
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 28px;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.05s forwards;
}

.hero-tagline {
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-sub);
  opacity: 0;
  animation: fadeIn 0.8s ease 1.2s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 10px;
}

.tagline-sep {
  color: var(--gold);
  opacity: 0.5;
  letter-spacing: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
  z-index: 10;
}

.hero-scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.7);
}

.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollAnim 2.2s ease-in-out infinite;
}

/* ─── SHARED ─── */
section {
  padding: 128px 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-rule {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 44px;
}

.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── IDENTITY ─── */
#identity {
  background: var(--black);
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.identity-body p {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.identity-body p strong {
  color: var(--text);
  font-weight: 400;
}

.identity-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.tag {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--gold-border);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: all 0.3s ease;
  cursor: default;
}

.tag:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
  color: var(--gold);
}

.identity-visual {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.identity-visual-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.05) 100%),
    url('images/chieto-amano-pattaya.jpg') center top / cover no-repeat;
}

.identity-stats {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 65%);
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-sub);
}

/* Pattaya image placeholder in identity (top portion) */
.identity-photo-label {
  position: absolute;
  top: 32px;
  left: 32px;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.5);
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ─── STORY ─── */
.story-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  line-height: 1.9;
  margin-top: 24px;
  letter-spacing: 0.04em;
}

#story {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.story-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: 0.35;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.9);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.5) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.5) 100%);
  z-index: 0;
}

#story .container {
  position: relative;
  z-index: 1;
}

.timeline-wrap {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 76px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.3) 8%, rgba(201, 168, 76, 0.3) 92%, transparent);
}

.tl-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 52px;
  padding-bottom: 56px;
  position: relative;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-align: right;
  padding-top: 3px;
  padding-right: 18px;
  line-height: 1.5;
}


.tl-body {
  padding-left: 4px;
  margin-top: 28px;
  /* 年号よりもタイトル・本文を少し下にずらす */
}

.tl-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.tl-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.85;
}

/* ─── PROJECTS ─── */
#projects {
  background: var(--black);
}

.projects-intro {
  margin-bottom: 64px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pcard {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.pcard-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcard:hover .pcard-bg {
  transform: scale(1.06);
}

.pcard-bg-1 {
  background: url('images/project-kanpai.png') center center / cover no-repeat;
}

.pcard-bg-2 {
  background: url('images/project-napoli.png') center center / cover no-repeat;
}

.pcard-bg-4 {
  background: url('images/project-consulting.jpg') center center / cover no-repeat;
}

.pcard-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
}

.pcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 45%, rgba(0, 0, 0, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  transition: background 0.45s ease;
}

.pcard:hover .pcard-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.2) 100%);
}

.pcard-num {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.pcard-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.pcard-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}

.pcard-ref {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  line-height: 1.8;
}

/* ─── NETWORK ─── */
#network {
  background: var(--surface);
  overflow: hidden;
}

.network-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}

.network-text p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 20px;
}

.network-text .jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.network-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: default;
}

.pillar-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.pillar span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.pillar:hover .pillar-line {
  width: 56px;
  box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(201, 168, 76, 0.4);
}

.pillar:hover span {
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
}

.network-map-wrap {
  position: relative;
  height: 560px;
}

.map-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
}

.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  display: block;
  filter: brightness(0.9) contrast(1.05);
}

/* ─── MEDIA ─── */
#media {
  background: var(--black);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}

.mcard {
  padding: 52px 28px 44px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.mcard:hover {
  border-color: var(--gold-border);
  background: rgba(201, 168, 76, 0.04);
  transform: translateY(-5px);
}

.mcard-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcard-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
}

.mcard-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.mcard-handle {
  font-size: 0.8rem;
  color: rgba(136, 136, 136, 0.7);
}

/* ─── CONTACT ─── */
#contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.contact-intro h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.contact-intro h2 em {
  font-style: normal;
  color: var(--gold);
}

.contact-intro p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 14px;
}

.contact-intro .jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.clist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.citem {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, background 0.3s ease, padding-left 0.3s ease;
}

.citem:hover {
  border-color: var(--gold-border);
  background: rgba(201, 168, 76, 0.04);
  padding-left: 32px;
}

.citem-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.citem-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.citem-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 2px;
}

.citem-val {
  font-size: 0.92rem;
  color: var(--text);
}

/* ─── CONTACT FORM ─── */
.contact-form-wrap {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form-title {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  letter-spacing: 0.02em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-sub);
  font-weight: 300;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-border);
  background: rgba(201, 168, 76, 0.04);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.form-submit-btn {
  align-self: center;
  padding: 13px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-thanks {
  display: none;
  padding: 32px 0;
}

.form-thanks.visible {
  display: block;
}

.form-thanks p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  color: var(--gold);
  line-height: 1.8;
  margin-bottom: 8px;
}

.form-thanks .thanks-sub {
  font-size: 0.78rem;
  color: var(--text-sub);
}

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


#network {
  padding-bottom: 0;
}

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--gold-border);
  padding: 20px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-text a:hover {
  color: var(--gold-light);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 22px;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background: var(--gold);
  color: var(--black);
}

.cookie-btn-accept:hover {
  background: var(--gold-light);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}

.cookie-btn-decline:hover {
  border-color: var(--gold-border);
  color: var(--text);
}

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scrollAnim {
  0% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .identity-visual {
    height: 400px;
  }

  .network-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .network-map-wrap {
    height: 440px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 20px 24px;
  }

  nav.scrolled {
    padding: 14px 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 44px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }

  .nav-toggle {
    display: flex;
  }

  .container {
    padding: 0 24px;
  }

  section {
    padding: 88px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .pcard {
    aspect-ratio: 16/9;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .timeline-line {
    left: 64px;
  }

  .tl-item {
    grid-template-columns: 64px 1fr;
    column-gap: 36px;
  }

  .hero-tagline {
    flex-direction: column;
    gap: 10px;
    letter-spacing: 0.22em;
  }

  .tagline-sep {
    display: none;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .network-map-wrap {
    height: 420px;
  }

  .map-image-wrap {
    min-height: 420px;
  }

  .map-img {
    object-fit: cover;
    object-position: center center;
  }
}

/* ═══════════════════════════ INTRO SERVICE BANNER ═══════════════════════════ */

.intro-service-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 48px;
  border: 2px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.03);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(201, 168, 76, 0.15);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.intro-service-banner:hover {
  border-color: rgba(201, 168, 76, 0.6);
  background: rgba(201, 168, 76, 0.06);
}

.isb-eyebrow {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.isb-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

.isb-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 560px;
}

@media (max-width: 768px) {
  .isb-desc br {
    display: none;
  }
}

.isb-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  transition: gap 0.25s ease;
}

.intro-service-banner:hover .isb-cta {
  gap: 10px;
}

@media (max-width: 768px) {
  .intro-service-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 20px;
  }
}
