/* ==============================================
   HAKUTEN Communication Design®
   公式サイト 再現版 v2.0
   ============================================== */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-gray-50: #fafafa;
  --c-gray-100: #f5f5f5;
  --c-gray-200: #e8e8e8;
  --c-gray-300: #d0d0d0;
  --c-gray-400: #b0b0b0;
  --c-gray-500: #888888;
  --c-gray-600: #666666;
  --c-gray-700: #444444;
  --c-gray-900: #111111;
  --c-accent: #c8a96e;
  --c-red: #d0021b;

  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;

  --header-h: 72px;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;
  --max-w: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-jp);
  color: var(--c-gray-900);
  background: var(--c-white);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading {
  position: fixed;
  inset: 0;
  background: var(--c-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out-expo), visibility 0.7s;
}

#loading.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-inner {
  text-align: center;
}

.loading-logo {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--c-black);
  overflow: hidden;
  margin-bottom: 6px;
}

.loading-h {
  display: inline-block;
  animation: loading-reveal 0.8s var(--ease-out-expo) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.loading-rest {
  display: inline-block;
  animation: loading-reveal 0.8s var(--ease-out-expo) 0.15s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes loading-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.loading-sub {
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: 28px;
  animation: loading-reveal 0.6s var(--ease-out-expo) 0.4s forwards;
  opacity: 0;
  transform: translateY(10px);
}

.loading-bar-wrap {
  width: 100px;
  height: 1px;
  background: var(--c-gray-200);
  overflow: hidden;
  margin: 0 auto;
}

.loading-bar {
  height: 100%;
  background: var(--c-black);
  width: 0;
  animation: bar-fill 1.4s var(--ease-out-expo) 0.3s forwards;
}

@keyframes bar-fill { to { width: 100%; } }

/* ============================================
   COOKIE NOTICE
   ============================================ */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  z-index: 9000;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12.5px;
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
}

.cookie-notice.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-notice p { flex: 1; }
.cookie-notice a { text-decoration: underline; text-underline-offset: 2px; opacity: 0.75; }
.cookie-notice a:hover { opacity: 1; }

.cookie-btn {
  background: var(--c-white);
  color: var(--c-black);
  border: none;
  padding: 10px 28px;
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--duration-normal) ease;
  flex-shrink: 0;
}

.cookie-btn:hover { background: #e0e0e0; }

/* ============================================
   HEADER
   ============================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background var(--duration-slow) ease,
              box-shadow var(--duration-slow) ease;
}

#site-header.is-top {
  background: transparent;
}

#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark-wrap {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-mark {
  width: 100%;
  height: 100%;
  color: var(--c-black);
  transition: color var(--duration-normal);
}

#site-header.is-top .logo-mark { color: var(--c-white); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-jp {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--c-gray-500);
  transition: color var(--duration-normal);
}

.logo-en {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: var(--font-en);
  color: var(--c-black);
  transition: color var(--duration-normal);
}

#site-header.is-top .logo-jp,
#site-header.is-top .logo-en {
  color: var(--c-white);
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-en);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray-700);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--duration-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover { color: var(--c-black); }
.nav-link:hover::after { width: 100%; }

#site-header.is-top .nav-link {
  color: rgba(255,255,255,0.8);
}

#site-header.is-top .nav-link:hover {
  color: rgba(255,255,255,1);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-contact {
  font-size: 10.5px;
  font-family: var(--font-en);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid currentColor;
  color: var(--c-black);
  transition: background var(--duration-normal) ease,
              color var(--duration-normal) ease;
}

.btn-contact:hover {
  background: var(--c-black);
  color: var(--c-white);
}

#site-header.is-top .btn-contact {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}

#site-header.is-top .btn-contact:hover {
  background: rgba(255,255,255,0.15);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 10;
}

.hamburger-line {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out-expo),
              opacity 0.2s ease,
              width 0.3s ease;
  transform-origin: center;
}

.hamburger-line:nth-child(1) { width: 22px; }
.hamburger-line:nth-child(2) { width: 16px; }
.hamburger-line:nth-child(3) { width: 22px; }

#site-header.is-top .hamburger { color: var(--c-white); }

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  width: 22px;
  color: var(--c-black) !important;
}

.hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  width: 22px;
  color: var(--c-black) !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 490;
  pointer-events: none;
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: var(--c-white);
  clip-path: circle(0% at calc(100% - 64px) 36px);
  transition: clip-path 0.7s var(--ease-out-expo);
}

.mobile-menu.is-open .mobile-menu-bg {
  clip-path: circle(150% at calc(100% - 64px) 36px);
}

.mobile-menu.is-open { pointer-events: all; }

.mobile-menu-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 48px 60px;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}

.mobile-menu.is-open .mobile-menu-content { opacity: 1; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.mobile-nav-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-gray-200);
  transition: opacity 0.2s;
}

.mobile-nav-link:hover { opacity: 0.5; }

.mn-num {
  font-size: 10px;
  font-family: var(--font-en);
  color: var(--c-gray-400);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.mn-text {
  font-size: 28px;
  font-family: var(--font-en);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-black);
}

.mobile-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.mobile-contact-btn {
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--c-black);
  color: var(--c-black);
  transition: background var(--duration-normal), color var(--duration-normal);
}

.mobile-contact-btn:hover {
  background: var(--c-black);
  color: var(--c-white);
}

.mobile-social {
  display: flex;
  gap: 16px;
}

.mobile-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--c-gray-500);
  border: 1px solid var(--c-gray-300);
  transition: color 0.2s, border-color 0.2s;
}

.mobile-social a:hover {
  color: var(--c-black);
  border-color: var(--c-black);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--c-black);
}

/* Slides */
.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.35) 100%
  );
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s var(--ease-out-expo);
}

.hero-slide.active .hero-slide-img {
  transform: scale(1.0);
}

/* Hero Content */
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 80px 60px;
}

.hero-content-inner {
  max-width: 680px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-eyebrow {
  font-size: 10px;
  font-family: var(--font-en);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(22px, 3.5vw, 44px);
  font-weight: 300;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
  color: var(--c-white);
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 13px;
  font-family: var(--font-jp);
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  font-weight: 300;
}

.hero-client {
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}

.hero-cta:hover {
  color: var(--c-white);
  border-color: rgba(255,255,255,0.8);
}

/* Hero Side Info */
.hero-side-info {
  position: absolute;
  right: 80px;
  bottom: 100px;
  z-index: 20;
}

.hero-counter {
  font-family: var(--font-en);
  font-weight: 200;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-num-current {
  font-size: 22px;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  transition: opacity 0.3s;
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  right: 80px;
  bottom: 60px;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-dot {
  position: relative;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s;
}

.hero-dot.active { background: rgba(255,255,255,0.3); }

.hero-dot-fill {
  position: absolute;
  inset: 0;
  background: var(--c-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hero-dot.active .hero-dot-fill {
  animation: dot-fill 5s linear forwards;
}

@keyframes dot-fill { to { transform: scaleX(1); } }

/* Hero Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  right: 20px;
  bottom: 60px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-text {
  font-size: 9px;
  font-family: var(--font-en);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(255,255,255,0.7);
  animation: scroll-down 1.8s ease infinite;
}

@keyframes scroll-down {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* Hero Progress */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: rgba(255,255,255,0.5);
  z-index: 20;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
}

.section-head-left {}

.section-eyebrow {
  display: block;
  font-size: 9.5px;
  font-family: var(--font-en);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: 8px;
}

.section-title-en {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--c-black);
}

.section-title-jp {
  font-size: 12px;
  color: var(--c-gray-400);
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-black);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding-bottom: 3px;
  transition: gap 0.25s ease, border-color 0.25s;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.view-all-btn:hover {
  gap: 18px;
  border-color: var(--c-black);
}

.arrow-icon {
  width: 24px;
  height: 8px;
  flex-shrink: 0;
}

/* ============================================
   FADE-UP ANIMATION
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out-expo),
              transform 0.75s var(--ease-out-expo);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.45s; }

/* ============================================
   SERVICE TICKER
   ============================================ */
#service-ticker {
  background: var(--c-gray-100);
  overflow: hidden;
  border-top: 1px solid var(--c-gray-200);
  border-bottom: 1px solid var(--c-gray-200);
  margin-bottom: 100px;
}

.ticker-track {
  display: flex;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gray-600);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-dot {
  font-size: 5px;
  color: var(--c-gray-300);
  margin-right: 4px;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   WORKS SECTION
   ============================================ */
#works {
  padding: 100px 0 20px;
  background: var(--c-white);
}

/* Filter */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 44px;
}

.filter-tab {
  font-size: 10.5px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--c-gray-300);
  background: transparent;
  color: var(--c-gray-600);
  transition: background var(--duration-normal),
              color var(--duration-normal),
              border-color var(--duration-normal);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
}

/* Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.work-item { overflow: hidden; }

.work-link { display: block; }

.work-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}


.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.work-item:hover .work-img {
  transform: scale(1.06);
}

.work-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
}

.work-item:hover .work-hover-overlay { opacity: 1; }

.work-hover-label {
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 22px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out-expo);
}

.work-item:hover .work-hover-label { transform: translateY(0); }

.work-info {
  padding: 16px 4px;
  background: var(--c-white);
}

.work-client {
  font-size: 10.5px;
  color: var(--c-gray-400);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.work-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-gray-900);
  line-height: 1.45;
  margin-bottom: 10px;
}

.work-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.work-tag {
  font-size: 9.5px;
  font-family: var(--font-en);
  color: var(--c-gray-500);
  border: 1px solid var(--c-gray-200);
  padding: 2px 8px;
  letter-spacing: 0.04em;
  transition: color 0.2s, border-color 0.2s;
}

.work-item:hover .work-tag {
  color: var(--c-gray-700);
  border-color: var(--c-gray-300);
}

/* ============================================
   STORY SECTION
   ============================================ */
#story {
  padding: 100px 0;
  background: var(--c-gray-50);
  border-top: 1px solid var(--c-gray-200);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border: 3px solid var(--c-gray-50);
}

/* ============================================
   SERVICE HOME CARDS (トップページ用)
   ============================================ */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 48px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 28px;
  background: var(--c-gray-50);
  text-decoration: none;
  color: var(--c-gray-900);
  transition: background 0.25s, transform 0.25s;
  position: relative;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.service-card:hover {
  background: var(--c-black);
  color: var(--c-white);
  transform: translateY(-4px);
}

.service-card-icon {
  font-size: 22px;
  color: var(--c-accent);
}

.service-card:hover .service-card-icon { color: var(--c-accent); }

.service-card-name {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  min-height: 44px;
}

.service-card-desc {
  font-size: 12px;
  color: var(--c-gray-600);
  line-height: 1.75;
  flex: 1;
  margin: 0;
}

.service-card:hover .service-card-desc { color: rgba(255,255,255,0.6); }

.service-card-arrow {
  font-size: 16px;
  color: var(--c-gray-300);
  transition: color 0.2s, transform 0.2s;
  align-self: flex-end;
}

.service-card:hover .service-card-arrow {
  color: var(--c-white);
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .service-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

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



.story-item {
  display: block;
  background: var(--c-white);
  transition: opacity 0.25s;
  overflow: hidden;
}

.story-item:hover { opacity: 0.88; }

.story-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.story-item:hover .story-img-wrap img { transform: scale(1.05); }

.story-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  transition: background 0.3s;
}

.story-item:hover .story-img-overlay { background: rgba(0,0,0,0.22); }

.story-body {
  padding: 24px 28px 28px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.story-date {
  font-size: 10px;
  font-family: var(--font-en);
  color: var(--c-gray-400);
  letter-spacing: 0.1em;
}

.story-client-name {
  font-size: 10px;
  color: var(--c-gray-500);
  letter-spacing: 0.04em;
}

.story-subtitle {
  font-size: 11px;
  color: var(--c-gray-400);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.story-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-gray-900);
  line-height: 1.6;
  margin-bottom: 14px;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.story-tag {
  font-size: 9px;
  font-family: var(--font-jp);
  color: var(--c-gray-500);
  border: 1px solid var(--c-gray-200);
  padding: 2px 8px;
  letter-spacing: 0.03em;
}

/* ============================================
   PURPOSE SECTION
   ============================================ */
#purpose {
  background: var(--c-black);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.purpose-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(60px, 15vw, 200px);
  font-family: var(--font-en);
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

.purpose-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.purpose-label {
  display: block;
  font-size: 9.5px;
  font-family: var(--font-en);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 60px;
}

.purpose-body {
  max-width: 900px;
  margin: 0 auto 60px;
}

.purpose-text {
  font-size: clamp(15px, 2vw, 21px);
  color: rgba(255,255,255,0.7);
  line-height: 2.2;
  font-weight: 300;
  font-family: var(--font-jp);
  letter-spacing: 0.07em;
  margin-bottom: 52px;
}

.purpose-text em {
  color: rgba(255,255,255,0.95);
  font-style: normal;
}

.purpose-title {
  font-size: clamp(18px, 2.5vw, 30px);
  color: var(--c-white);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.06em;
  font-family: var(--font-jp);
}

.purpose-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.purpose-cd {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.28em;
  font-family: var(--font-en);
  text-transform: uppercase;
}

.purpose-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}

.purpose-link:hover {
  color: var(--c-white);
  border-color: rgba(255,255,255,0.7);
  gap: 18px;
}

/* ============================================
   SERVICE SECTION
   ============================================ */
#service {
  padding: 100px 0;
  background: var(--c-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-gray-200);
  border: 1px solid var(--c-gray-200);
}

.service-item {
  background: var(--c-white);
  padding: 48px 36px;
  transition: background var(--duration-normal);
}

.service-item:hover { background: var(--c-gray-50); }

.service-icon {
  font-size: 22px;
  color: var(--c-gray-300);
  margin-bottom: 20px;
}

.service-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-black);
  margin-bottom: 14px;
  line-height: 1.4;
}

.service-desc {
  font-size: 12.5px;
  color: var(--c-gray-500);
  line-height: 1.8;
}

/* ============================================
   REPORTS SECTION
   ============================================ */
#reports {
  padding: 100px 0 20px;
  background: var(--c-white);
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
  padding: 100px 0;
  background: var(--c-gray-50);
  border-top: 1px solid var(--c-gray-200);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-visual {
  position: relative;
}

.about-img-main {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.about-visual:hover .about-img-main img { transform: scale(1.04); }

.about-img-sub {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--c-gray-50);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.about-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  padding-top: 20px;
}

.about-title {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  color: var(--c-black);
  line-height: 1.5;
  margin-bottom: 24px;
  font-family: var(--font-jp);
  margin-top: 14px;
}

.about-text {
  font-size: 13.5px;
  line-height: 2;
  color: var(--c-gray-600);
  margin-bottom: 40px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 44px;
  border-top: 1px solid var(--c-gray-200);
  border-left: 1px solid var(--c-gray-200);
}

.stat-item {
  padding: 24px 20px;
  border-right: 1px solid var(--c-gray-200);
  border-bottom: 1px solid var(--c-gray-200);
}

.stat-num {
  font-size: 36px;
  font-family: var(--font-en);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--c-black);
  line-height: 1;
  margin-bottom: 2px;
}

.stat-unit {
  font-size: 12px;
  color: var(--c-gray-400);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 10px;
  color: var(--c-gray-400);
  letter-spacing: 0.05em;
}

/* ============================================
   NEWS SECTION
   ============================================ */
#news {
  padding: 80px 0;
  background: var(--c-white);
}

.news-list {
  border-top: 1px solid var(--c-gray-200);
}

.news-item {
  display: block;
  border-bottom: 1px solid var(--c-gray-200);
  transition: background 0.2s;
}

.news-item:hover { background: var(--c-gray-50); }

.news-item-inner {
  display: grid;
  grid-template-columns: 130px 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 16px;
}

.news-date {
  font-size: 11.5px;
  font-family: var(--font-en);
  color: var(--c-gray-400);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.news-category {
  font-size: 9.5px;
  font-family: var(--font-en);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  text-align: center;
  background: var(--c-gray-100);
  color: var(--c-gray-500);
  flex-shrink: 0;
}

.news-cat-award { background: rgba(200, 169, 110, 0.15); color: #8a6e2a; }
.news-cat-event { background: rgba(0, 100, 200, 0.08); color: #1565c0; }
.news-cat-project { background: rgba(0, 150, 80, 0.08); color: #1b5e20; }

.news-title {
  font-size: 13.5px;
  color: var(--c-gray-900);
  line-height: 1.55;
}

.news-arrow {
  font-size: 14px;
  color: var(--c-gray-300);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.news-item:hover .news-arrow {
  color: var(--c-black);
  transform: translateX(4px);
}

/* ============================================
   CONTACT BANNER
   ============================================ */
#contact-banner {
  background: var(--c-black);
  padding: 100px 0;
}

.contact-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.contact-eyebrow {
  display: block;
  font-size: 9.5px;
  font-family: var(--font-en);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.contact-title {
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--c-white);
  line-height: 1.45;
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-block;
  background: var(--c-white);
  color: var(--c-black);
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 36px;
  text-align: center;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.btn-primary:hover {
  background: var(--c-gray-200);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 36px;
  text-align: center;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--c-white);
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: #0a0a0a;
  color: var(--c-white);
  padding: 90px 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-logo-en {
  font-size: 18px;
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-white);
}

.footer-logo-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em;
  font-family: var(--font-en);
}

.footer-company-jp {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.footer-address {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  color: var(--c-white);
  border-color: rgba(255,255,255,0.45);
}

.footer-nav-simple {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-size: 11px;
  font-family: var(--font-en);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  font-weight: 500;
}

.footer-nav-link:hover { color: var(--c-white); }

.footer-bottom {
  padding: 28px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 10.5px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }

.footer-copyright {
  font-size: 10.5px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.08em;
  font-family: var(--font-en);
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }

  #site-header { padding: 0 32px; }
  .header-nav { gap: 24px; }

  .section-inner { padding: 0 32px; }
  .footer-inner { padding: 0 32px; }
  .contact-banner-inner { padding: 0 32px; }

  .works-grid.grid-with-featured {
    grid-template-columns: 1fr 1fr;
  }
  .work-item.work-featured {
    grid-row: 1;
    grid-column: 1 / 3;
  }
  .work-item.work-featured .work-img-wrap {
    min-height: auto;
    height: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-img-sub {
    bottom: -20px;
    right: -20px;
    width: 160px;
  }

  .footer-top { gap: 60px; }

  .contact-banner-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-actions { flex-direction: row; }

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

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  #site-header { padding: 0 20px; }
  .header-nav, .header-right .btn-contact { display: none; }
  .hamburger { display: flex; }

  .section-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
  .contact-banner-inner { padding: 0 20px; }

  section { padding: 72px 0; }

  #hero {
    height: 100svh;
    min-height: 100svh;
  }
  .hero-slide-img {
    object-position: center 24%;
    transform: scale(1.02);
  }
  .hero-slide.active .hero-slide-img {
    transform: scale(1);
  }
  .hero-content { padding: 60px 24px; }
  .hero-side-info { right: 60px; bottom: 90px; }
  .hero-indicators { right: 60px; bottom: 56px; }
  .hero-scroll-hint { display: none; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
  }

  .works-grid,
  .works-grid.grid-with-featured {
    grid-template-columns: 1fr;
  }

  .reports-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-sub { display: none; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }

  .news-item-inner {
    grid-template-columns: 100px 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    padding: 18px 12px;
  }
  .news-category { display: none; }
  .news-title { grid-column: 1 / -1; font-size: 13px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 48px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0 32px;
  }

  .contact-actions { flex-direction: column; }

  .cookie-notice {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .purpose-bg-text { font-size: 60px; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 20px; }
}

/* ============================================
   NEWS PAGE
   ============================================ */
.news-page-section {
  padding: 80px 0 120px;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  display: block;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s var(--ease-standard);
  opacity: 0;
  transform: translateY(20px);
}

.news-card.fade-up {
  animation: fadeUpAnim 0.6s var(--ease-out-expo) forwards;
}

.news-card:hover {
  border-color: var(--c-gray-400);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.news-card-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.news-card-date {
  color: var(--c-gray-600);
  font-family: var(--font-en);
  letter-spacing: 0.03em;
}

.news-card-category {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-cat-news { background: #e3f2fd; color: #1976d2; }
.news-cat-award { background: #fff3e0; color: #f57c00; }
.news-cat-event { background: #f3e5f5; color: #7b1fa2; }
.news-cat-project { background: #e8f5e9; color: #388e3c; }
.news-cat-press { background: #fce4ec; color: #c2185b; }

.news-card-title {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--c-gray-900);
  flex: 1;
}

.news-card-arrow {
  font-size: 18px;
  color: var(--c-gray-400);
  align-self: flex-end;
  transition: all 0.3s;
}

.news-card:hover .news-card-arrow {
  color: var(--c-accent);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .news-page-grid {
    grid-template-columns: 1fr;
  }
  .news-page-section {
    padding: 60px 0 80px;
  }
}
