@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Noto+Sans+JP:wght@300;400;500;700&display=swap");

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f7f6f4;
  --color-text: #1c1c1c;
  --color-text-sub: #6f6f6f;
  --color-border: #dedcd6;
  --color-accent: #1f3550;
  --color-accent-soft: #48607c;
  --color-placeholder-bg: #e9e7e2;
  --color-placeholder-border: #cfccc4;
  --color-placeholder-text: #9b988f;
  --color-overlay: rgba(15, 22, 30, 0.42);

  --font-en: "Lato", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;

  --container-l: 1080px;
  --container-m: 960px;
  --container-s: 720px;

  --section-gap-pc: 160px;
  --section-gap-sp: 88px;

  --header-h-pc: 84px;
  --header-h-sp: 60px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;
  --ease-reveal: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
body.is-loaded { opacity: 1; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s var(--ease); }
a:hover { opacity: 0.5; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }
.en { font-family: var(--font-en); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { max-width: var(--container-l); margin: 0 auto; padding: 0 40px; }
.container-m { max-width: var(--container-m); margin: 0 auto; padding: 0 40px; }
.container-s { max-width: var(--container-s); margin: 0 auto; padding: 0 40px; }

main { display: block; padding-top: var(--header-h-pc); }

.section { padding: var(--section-gap-pc) 0; }
.section--tight { padding: 96px 0; }
.section--soft { background: var(--color-bg-soft); }

@media (max-width: 780px) {
  main { padding-top: var(--header-h-sp); }
  .section { padding: var(--section-gap-sp) 0; }
  .section--tight { padding: 64px 0; }
  .container, .container-m, .container-s { padding: 0 24px; }
}

/* ==========================================================================
   Scroll reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.5s var(--ease-reveal), transform 1.5s var(--ease-reveal);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s var(--ease-reveal), transform 1s var(--ease-reveal);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s var(--ease-reveal), transform 1s var(--ease-reveal);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 2s var(--ease-reveal);
}
.reveal-fade.is-visible { opacity: 1; }

.reveal-delay1 { transition-delay: 0.1s; }
.reveal-delay2 { transition-delay: 0.2s; }
.reveal-delay3 { transition-delay: 0.3s; }
.reveal-delay4 { transition-delay: 0.4s; }

/* ==========================================================================
   Section heading (EN over JP) — HOME WORK pattern
   ========================================================================== */
.sec-heading { text-align: center; margin-bottom: 64px; }
.sec-heading__en {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 10px;
}
.sec-heading__jp {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--color-accent);
}
.sec-heading--left { text-align: left; }
@media (max-width: 780px) {
  .sec-heading { margin-bottom: 40px; }
  .sec-heading__en { font-size: 26px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  height: 56px;
  padding: 0 28px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  position: relative;
  overflow: visible;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn span {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.4s var(--ease);
}
.btn svg { position: relative; z-index: 1; transition: transform 0.4s var(--ease); }
.btn:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); opacity: 1; }
.btn:hover svg { transform: translateX(4px); }
/* four-corner border grows on hover, mirrors HOME WORK's .border_tl/tr/br/bl */
.btn__border { display: block; position: absolute; background: var(--color-accent); pointer-events: none; z-index: 2; }
.btn__border--tl { top: -1px; left: -1px; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left center; }
.btn__border--br { bottom: -1px; right: -1px; width: 100%; height: 2px; transform: scaleX(0); transform-origin: right center; }
.btn__border--tr { top: -1px; right: -1px; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top center; }
.btn__border--bl { bottom: -1px; left: -1px; width: 2px; height: 100%; transform: scaleY(0); transform-origin: bottom center; }
.btn:hover .btn__border--tl, .btn:hover .btn__border--br { transform: scaleX(1); transition: transform 0.5s var(--ease-reveal); }
.btn:hover .btn__border--tr, .btn:hover .btn__border--bl { transform: scaleY(1); transition: transform 0.5s var(--ease-reveal) 0.15s; }
.btn--dark { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn--dark .btn__border { background: #fff; }
.btn--dark:hover { background: #fff; color: var(--color-accent); }
.btn--small { min-width: 0; height: 46px; padding: 0 22px; }

.arrow { width: 16px; height: 10px; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h-pc);
  z-index: 500;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}
.header--static { background: rgba(255,255,255,0.96); box-shadow: 0 2px 18px rgba(0,0,0,0.06); }
.header__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  transition: color var(--dur) var(--ease);
}
.header__logo small {
  display: block;
  font-family: var(--font-jp);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--color-text-sub);
  margin-top: 2px;
}
.header.is-transparent .header__logo,
.header.is-transparent .header__logo small { color: #fff; }
.header.is-transparent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,13,19,0.45) 0%, rgba(8,13,19,0) 100%);
  z-index: 0;
  pointer-events: none;
}

.gnav { display: flex; align-items: center; gap: 34px; }
.gnav a {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  position: relative;
  padding-bottom: 6px;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.gnav a span {
  display: block;
  font-family: var(--font-jp);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-top: 3px;
  color: var(--color-text-sub);
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.gnav a:hover::after { width: 100%; }
.header.is-transparent .gnav a,
.header.is-transparent .gnav a span { color: #fff; }
.gnav .btn-contact {
  border: 1px solid currentColor;
  padding: 10px 20px;
  letter-spacing: 0.1em;
}

.hamburger { display: none; position: relative; }
.hamburger::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}

@media (max-width: 1080px) {
  .gnav { gap: 22px; }
}

@media (max-width: 900px) {
  .gnav { display: none; }
  .hamburger {
    display: block;
    position: relative;
    width: 30px; height: 22px;
    z-index: 600;
  }
  .hamburger .bar {
    position: absolute; left: 0;
    width: 30px; height: 2px;
    background: var(--color-text);
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
  }
  .header.is-transparent .hamburger .bar { background: #fff; }
  .hamburger .bar:nth-child(1) { top: 0; }
  .hamburger .bar:nth-child(2) { top: 10px; }
  .hamburger .bar:nth-child(3) { top: 20px; }
  .hamburger.is-active .bar { background: #fff; }
  .hamburger.is-active .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .hamburger.is-active .bar:nth-child(2) { opacity: 0; }
  .hamburger.is-active .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  .header__inner { padding: 0 24px; }
}

/* Mobile full-screen nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-accent);
  z-index: 550;
  padding: 100px 32px 40px;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mobile-nav a span {
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Image placeholder component
   ========================================================================== */
.ph {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-placeholder-bg);
  border: 1px solid var(--color-placeholder-border);
}
.ph::before { content: ""; display: block; }
.ph__ratio-16-9::before { padding-top: 56.25%; }
.ph__ratio-4-3::before { padding-top: 75%; }
.ph__ratio-3-4::before { padding-top: 133.33%; }
.ph__ratio-1-1::before { padding-top: 100%; }
.ph__ratio-21-9::before { padding-top: 42.85%; }
.ph__ratio-3-2::before { padding-top: 66.66%; }
.ph__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
  color: var(--color-placeholder-text);
}
.ph__icon { width: 34px; height: 34px; opacity: 0.55; }
.ph__text {
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  max-width: 240px;
}
.ph__tag {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(28, 28, 28, 0.55);
  padding: 6px 12px;
}
.ph:hover .ph__icon { opacity: 0.75; }

/* Future <img> slot: sits under .ph__label, ready for src swap-in */
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-reveal);
}

/* Hero-scale placeholder gets a subtle zoom-ready wrapper */
.ph--hero { border: none; }

/* Gallery/Works thumbnails zoom on hover, matching HOME WORK's
   .gallery_item:hover img { transform: scale(1.1) } */
.gallery-grid .ph { cursor: zoom-in; }
.gallery-grid .ph__label { transition: transform 0.6s var(--ease-reveal); }
.gallery-grid .ph:hover .ph__label,
.gallery-grid .ph:hover img { transform: scale(1.1); }

/* Full-bleed background placeholders (hero / page-hero / cta / link-card):
   keep the caption clear of the text that sits on top of them. */
.hero .ph__label,
.page-hero .ph__label,
.cta .ph__label,
.link-card .ph__label {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px 32px;
}
.hero .ph__text,
.page-hero .ph__text,
.cta .ph__text {
  max-width: 300px;
  text-align: right;
  color: rgba(255, 255, 255, 0.4);
}
.link-card .ph__label { justify-content: center; }

/* ==========================================================================
   Hero (Home)
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,22,0.28) 0%, rgba(10,16,22,0.12) 40%, rgba(8,13,19,0.62) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 96px;
}
.hero__label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  margin-bottom: 22px;
  opacity: 0.92;
}
.hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.03em;
  margin-bottom: 30px;
}
.hero__lead {
  font-size: 15px;
  line-height: 2;
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0.92;
}
.hero__scroll {
  position: absolute;
  right: 40px; bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.hero__scroll span {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: #fff;
  animation: scrollLine 2.2s infinite var(--ease);
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

@media (max-width: 780px) {
  .hero { min-height: 560px; align-items: flex-end; }
  .hero__content { padding-bottom: 64px; }
  .hero__title { font-size: 28px; margin-bottom: 22px; }
  .hero__lead { font-size: 13.5px; }
  .hero__scroll { right: 24px; bottom: 24px; }
}

/* ==========================================================================
   Page hero (sub pages)
   ========================================================================== */
.page-hero {
  position: relative;
  height: 46vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__overlay { position: absolute; inset: 0; background: rgba(15,22,30,0.5); z-index: 1; }
.page-hero__content { position: relative; z-index: 2; width: 100%; }
.page-hero__en {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.page-hero__jp { font-size: 13px; letter-spacing: 0.24em; opacity: 0.9; }

@media (max-width: 780px) {
  .page-hero { height: 34vh; min-height: 260px; }
  .page-hero__en { font-size: 28px; }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-sub);
  padding: 20px 0;
}
.breadcrumb a { color: var(--color-text-sub); }
.breadcrumb a:hover { color: var(--color-accent); }

/* ==========================================================================
   Intro / lead text block
   ========================================================================== */
.intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.intro__lead {
  font-size: 21px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}
.intro__body { font-size: 15px; color: var(--color-text-sub); line-height: 2; }

/* ==========================================================================
   Strengths (Home)
   ========================================================================== */
.strengths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--color-border); }
.strength {
  padding: 48px 28px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.strength:last-child { border-right: none; }
.strength__num { font-family: var(--font-en); font-size: 13px; color: var(--color-accent); letter-spacing: 0.1em; margin-bottom: 18px; }
.strength__title { font-size: 17px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.strength__text { font-size: 13.5px; color: var(--color-text-sub); line-height: 1.9; }

@media (max-width: 900px) {
  .strengths { grid-template-columns: repeat(2, 1fr); }
  .strength:nth-child(2) { border-right: none; }
  .strength:nth-child(4) { border-right: none; }
}
@media (max-width: 560px) {
  .strengths { grid-template-columns: 1fr; }
  .strength { border-right: none !important; }
}

/* ==========================================================================
   Business zigzag list
   ========================================================================== */
.biz-item {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 64px 0;
  border-bottom: 1px solid var(--color-border);
}
.biz-item:first-child { padding-top: 0; }
.biz-item:last-child { border-bottom: none; }
.biz-item:nth-child(even) { flex-direction: row-reverse; }
.biz-item__media { flex: 0 0 46%; }
.biz-item__body { flex: 1; }
.biz-item__num { font-family: var(--font-en); font-size: 12px; color: var(--color-accent); letter-spacing: 0.2em; margin-bottom: 16px; }
.biz-item__en { font-family: var(--font-en); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.biz-item__jp { font-size: 18px; font-weight: 700; margin-bottom: 22px; }
.biz-item__text { font-size: 14.5px; color: var(--color-text-sub); line-height: 2; margin-bottom: 28px; }

@media (max-width: 900px) {
  .biz-item, .biz-item:nth-child(even) { flex-direction: column; gap: 28px; }
  .biz-item__media { flex: none; width: 100%; }
}

/* ==========================================================================
   Gallery / Works grid
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}
.year-tab {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.year-tab.is-active, .year-tab:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.works-block { margin-bottom: 96px; }
.works-block:last-child { margin-bottom: 0; }
.works-block__year { font-family: var(--font-en); font-size: 20px; font-weight: 700; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }

/* ==========================================================================
   Two-column split (Company / Message)
   ========================================================================== */
.split {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.split__media { flex: 0 0 42%; position: sticky; top: 120px; }
.split__body { flex: 1; }
@media (max-width: 900px) {
  .split { flex-direction: column; gap: 40px; }
  .split__media { position: static; flex: none; width: 100%; }
}

.info-table { width: 100%; border-top: 1px solid var(--color-border); }
.info-table dl {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.info-table dt {
  flex: 0 0 160px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  padding-top: 2px;
}
.info-table dd { flex: 1; font-size: 14px; line-height: 1.9; }
.info-table dd + dd { margin-top: 6px; }
@media (max-width: 560px) {
  .info-table dl { flex-direction: column; gap: 8px; }
  .info-table dt { flex: none; }
}

/* ==========================================================================
   Accordion link cards (Home bottom links)
   ========================================================================== */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.link-card {
  position: relative;
  height: 260px;
  overflow: hidden;
  color: #fff;
}
.link-card:hover { opacity: 1; }
.link-card__bg { position: absolute; inset: 0; z-index: 0; transition: transform 0.7s var(--ease); }
.link-card:hover .link-card__bg { transform: scale(1.05); }
.link-card__overlay { position: absolute; inset: 0; background: rgba(15,22,30,0.45); z-index: 1; transition: background var(--dur) var(--ease); }
.link-card:hover .link-card__overlay { background: rgba(31,53,80,0.65); }
.link-card__body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.link-card__en { font-family: var(--font-en); font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.link-card__jp { font-size: 12px; letter-spacing: 0.14em; }

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

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__overlay { position: absolute; inset: 0; background: rgba(15,22,30,0.62); z-index: 1; }
.cta__content { position: relative; z-index: 2; }
.cta__en { font-family: var(--font-en); font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.cta__jp { font-size: 13px; letter-spacing: 0.16em; margin-bottom: 40px; opacity: 0.9; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta__tel { font-family: var(--font-en); font-size: 26px; font-weight: 700; }
.cta__tel small { display: block; font-family: var(--font-jp); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; margin-top: 4px; }

@media (max-width: 780px) {
  .cta { padding: 72px 0; }
  .cta__en { font-size: 22px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--color-accent); color: #fff; padding: 96px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 60px; margin-bottom: 72px; flex-wrap: wrap; }
.footer__logo { font-family: var(--font-en); font-size: 22px; font-weight: 900; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer__logo small { display: block; font-family: var(--font-jp); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); margin-top: 6px; }
.footer__address { font-size: 12.5px; line-height: 2; color: rgba(255,255,255,0.75); max-width: 320px; }
.footer__nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__nav-col a {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: #fff;
  transition: opacity var(--dur) var(--ease);
}
.footer__nav-col a span { display: block; font-family: var(--font-jp); font-size: 10.5px; font-weight: 400; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); margin-top: 3px; }
.footer__nav-col a:hover { opacity: 0.7; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom a:hover { color: #fff; }

@media (max-width: 780px) {
  .footer { padding: 64px 0 32px; }
  .footer__top { flex-direction: column; gap: 40px; margin-bottom: 48px; }
  .footer__nav { gap: 36px; }
}

/* ==========================================================================
   Gallery lightbox — mirrors HOME WORK's .overlay_slider_wrap:
   click a thumbnail to open a fullscreen viewer (fade, 0.5s), navigate
   with prev/next, close via button / Escape / backdrop click.
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(31, 53, 80, 0.9); }
.lightbox__stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox__frame {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 4 / 3;
  background: var(--color-placeholder-bg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s var(--ease-reveal) 0.1s, transform 0.4s var(--ease-reveal) 0.1s;
}
.lightbox.is-open .lightbox__frame { opacity: 1; transform: scale(1); }
.lightbox__caption { font-size: 13px; line-height: 1.9; letter-spacing: 0.04em; color: var(--color-placeholder-text); max-width: 320px; }
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: opacity 0.3s var(--ease);
}
.lightbox__close:hover { opacity: 0.6; }
.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: opacity 0.3s var(--ease);
}
.lightbox__nav:hover { opacity: 0.6; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 20px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
}

/* ==========================================================================
   Page-to-top
   ========================================================================== */
.to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 48px; height: 48px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Utility
   ========================================================================== */
.mt-xs { margin-top: 8px; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.text-center { text-align: center; }
