/* ============================================
   VARIABLES
============================================ */
:root {
  --accent: #657d9e;
  --accent-dark: #4f647f;
  --gray-100: #f7f7f8;
  --gray-200: #ececec;
  --gray-300: #dcdcdc;
  --gray-400: #b8b8b8;
  --gray-500: #8a8a8a;
  --gray-700: #4a4a4a;
  --gray-900: #1c1c1e;
  --bg: #ffffff;
  --ff-jp: "Noto Sans JP", sans-serif;
  --ff-mincho: "Shippori Mincho", serif;
  --ff-en: "EB Garamond", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-jp);
  color: var(--gray-900);
  background: var(--bg);
  line-height: 1.9;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: inline; }
@media (min-width: 769px) {
  .sp-only { display: none; }
}

/* ============================================
   LOADER
============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.loader__mark {
  font-family: var(--ff-en);
  font-style: italic;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-size: 14px;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================
   REVEAL ANIMATION (scroll)
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.18s; }
.reveal--delay-3 { transition-delay: 0.32s; }
.reveal--delay-4 { transition-delay: 0.46s; }

/* ============================================
   HEADER
============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--gray-200);
}

.header__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}
.header__logo img {
  height: 28px;
  width: auto;
  display: block;
  transition: filter 0.4s var(--ease);
}
.has-hero-header .header__logo img {
  filter: brightness(0) invert(1);
}
.has-hero-header .header.is-scrolled .header__logo img {
  filter: none;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header__nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 4px;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.header__nav a:hover::after { width: 100%; }

.nav-link--cta {
  border: 1px solid var(--gray-900);
  padding: 9px 20px !important;
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 1001;
}
.header__burger span {
  width: 100%;
  height: 1px;
  background: var(--gray-900);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.header__burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger.is-active span:nth-child(2) { opacity: 0; }
.header__burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease);
}
.btn--outline {
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn--outline:hover {
  background: #fff;
  color: var(--gray-900);
}
.btn--fill {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn--fill:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}
.btn--large {
  padding: 18px 48px;
  font-size: 14px;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero__slides {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, #7c93b3 0%, #5c7292 55%, #3f5573 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
}
.hero__placeholder--alt {
  background: linear-gradient(200deg, #8b95a5 0%, #5f6b7d 55%, #3d4654 100%);
}
.hero__placeholder::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(255,255,255,0.25);
}
.hero__placeholder-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: right;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  padding: 0 40px 32px 0;
}
.hero__placeholder-label small {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.38) 35%, rgba(0,0,0,0.15) 65%, rgba(0,0,0,0.1) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.hero__eyebrow {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}
.hero__title {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: clamp(32px, 8vw, 58px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  max-width: 640px;
}
.hero__title span { display: block; }
.hero__lead {
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  right: 28px;
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: #fff;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
.hero__scroll-text {
  writing-mode: vertical-rl;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
}

/* ============================================
   SECTION HEAD
============================================ */
section { padding: 120px 0; }

.section-head { margin-bottom: 64px; }
.section-head--center { text-align: center; }
.section-head__en {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head__ja {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.06em;
}

/* ============================================
   PAGE HERO（下層ページの見出し帯）
============================================ */
.page-hero {
  padding: 168px 0 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--gray-200);
}
.page-hero__crumb {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.page-hero__crumb a { transition: color 0.3s var(--ease); }
.page-hero__crumb a:hover { color: var(--accent); }
.page-hero__crumb span { margin: 0 6px; color: var(--gray-400); }

/* ============================================
   WORKS
============================================ */
.works { background: var(--bg); }

.works__filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--gray-700);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: #fff;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.work-card { display: block; group: card; }
.work-card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.work-card__ph {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray-400);
}
.work-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work-card:hover .work-card__thumb::after { opacity: 0.06; }
.work-card:hover .work-card__thumb { border-color: var(--accent); }

.work-card__body { padding-top: 18px; }
.work-card__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.work-card__title {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  transition: color 0.3s var(--ease);
}
.work-card:hover .work-card__title { color: var(--accent); }
.work-card__desc {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.8;
}

.work-card.is-hidden { display: none; }

.works__more {
  margin-top: 56px;
  text-align: center;
}
.btn--dark {
  border: 1px solid var(--gray-900);
  color: var(--gray-900);
}
.btn--dark:hover {
  background: var(--gray-900);
  color: #fff;
}

/* ============================================
   SERVICE
============================================ */
.service { background: var(--bg); }

.service__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.service-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-300);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px 24px;
  align-items: baseline;
}
.service-item:first-child { border-top: 1px solid var(--gray-300); }
.service-item__num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}
.service-item__title {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.03em;
  grid-column: 2;
}
.service-item__desc {
  grid-column: 2;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.9;
  max-width: 560px;
}

/* ============================================
   ABOUT
============================================ */
.about { background: var(--bg); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.about__photo-ph,
.about__photo {
  aspect-ratio: 3 / 4;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  max-width: 340px;
}
.about__lead {
  font-family: var(--ff-mincho);
  font-size: 18px;
  letter-spacing: 0.04em;
  margin: 18px 0 20px;
}
.about__body {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 2;
  margin-bottom: 28px;
  max-width: 480px;
}
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about__skills li {
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--gray-700);
}

/* ============================================
   PHILOSOPHY
============================================ */
.philosophy {
  background: var(--bg);
  color: var(--gray-900);
  text-align: center;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.philosophy .section-head__en { color: var(--accent); }
.philosophy__statement {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: clamp(24px, 5vw, 36px);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.philosophy__desc {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 2;
  margin-bottom: 80px;
}
.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: left;
  max-width: 880px;
  margin: 0 auto;
}
.philosophy-item__num {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.philosophy-item__title {
  font-family: var(--ff-mincho);
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.philosophy-item__desc {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.9;
}
.philosophy-item {
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

/* ============================================
   FAQ
============================================ */
.faq { background: var(--bg); }
.faq__list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-300);
}
.faq-item:first-child { border-top: 1px solid var(--gray-300); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px;
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.faq-item__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--gray-900);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq-item__icon::before { left: 0; top: 50%; width: 100%; height: 1px; }
.faq-item__icon::after { top: 0; left: 50%; width: 1px; height: 100%; }
.faq-item.is-open .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item.is-open .faq-item__q { color: var(--accent); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-item__a p {
  padding: 0 4px 26px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.9;
  max-width: 640px;
}

/* ============================================
   CTA
============================================ */
.cta {
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--gray-200);
}
.cta .section-head__en { justify-content: center; }
.cta__title {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.05em;
  margin: 6px 0 20px;
}
.cta__desc {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 2;
  margin-bottom: 36px;
}

/* ============================================
   CONTACT PAGE
============================================ */
.contact-body { background: var(--bg); }
.contact-body__inner {
  max-width: 640px;
  text-align: center;
}
.contact-body__lead {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 2;
  margin-bottom: 36px;
}
.contact-body__note {
  font-size: 11.5px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin-top: 20px;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--bg);
  color: var(--gray-500);
  padding: 64px 0 32px;
  border-top: 1px solid var(--gray-200);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.footer__logo {
  display: inline-flex;
}
.footer__logo img {
  height: 32px;
  width: auto;
  display: block;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.footer__sns {
  display: flex;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.footer__copyright {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* ============================================
   FLOATING CONTACT (mobile)
============================================ */
.fab-contact {
  display: none;
}

/* ============================================
   RESPONSIVE — TABLET / DESKTOP
============================================ */
@media (min-width: 640px) {
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 340px 1fr; }
  .philosophy__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .service-item {
    grid-template-columns: 90px 260px 1fr;
  }
  .service-item__title { grid-column: 2; }
  .service-item__desc { grid-column: 3; }
}

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

  .header__nav {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .header__nav.is-open { transform: translateX(0); }
  .header__nav ul {
    flex-direction: column;
    gap: 32px;
  }
  .header__nav a { font-size: 16px; }

  .header__burger { display: flex; }

  section { padding: 88px 0; }

  .works__filter { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 11px; }

  .philosophy__desc { margin-bottom: 56px; }

  .fab-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.05em;
    z-index: 900;
    box-shadow: 0 6px 20px rgba(101, 125, 158, 0.4);
  }
}

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