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

:root {
  --bg:       #FFFFFF;
  --bg-alt:   #F4F4F4;
  --black:    #0A0A0A;
  --gray-d:   #333333;
  --gray-m:   #888888;
  --gray-l:   #CCCCCC;
  --border:   #E8E8E8;
  --accent:   #0A0A0A;
  --font-en:  'Oswald', sans-serif;
  --font-serif:'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--black);
  line-height: 1.8;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ===== CURTAIN REVEAL ===== */
.curtain {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}
.curtain-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.curtain.in .curtain-inner { transform: translateY(0); }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ===== BUTTONS ===== */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--black);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--black);
  transition: gap 0.3s ease, border-color 0.3s ease;
}
.btn-more::after { content: '→'; }
.btn-more:hover { gap: 16px; border-color: var(--gray-m); }

.btn-solid {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--black);
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--black);
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-solid:hover { background: var(--black); color: var(--bg); }

.btn-fill {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--black);
  border: 1px solid var(--black);
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--bg);
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.btn-fill:hover { background: var(--gray-d); }

/* ===== SECTION HEADER ===== */
.sec-head { margin-bottom: 80px; }
.sec-head__en {
  font-family: var(--font-en);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 20px;
}
.sec-head__ja {
  font-size: 0.85rem;
  color: var(--gray-m);
  letter-spacing: 0.15em;
  font-family: var(--font-serif);
}
.sec-head__line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--black);
  margin-top: 20px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo-en {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--black);
  line-height: 1;
  display: block;
}
.nav__logo-ja {
  font-size: 0.58rem;
  color: var(--gray-m);
  letter-spacing: 0.08em;
  margin-top: 3px;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__links li a {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--gray-d);
  transition: color 0.25s ease;
  position: relative;
}
.nav__links li a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}
.nav__links li a:hover { color: var(--black); }
.nav__links li a:hover::after { width: 100%; }
.nav__contact a {
  padding: 9px 22px;
  border: 1px solid var(--black) !important;
  color: var(--black) !important;
  font-weight: 400;
  transition: background 0.3s, color 0.3s !important;
}
.nav__contact a:hover { background: var(--black) !important; color: var(--bg) !important; }
.nav__contact a::after { display: none !important; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 26px; height: 1px;
  background: var(--black);
  transition: 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding-top: 72px;
}

/* 左：テキスト側 */
.hero__text-side {
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  z-index: 2;
}
.hero__label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gray-m);
  margin-bottom: 32px;
  display: block;
  opacity: 0;
  animation: fade-in 1s 0.3s ease forwards;
}
.hero__catch {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}
.hero__rule {
  width: 40px;
  height: 1px;
  background: var(--black);
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-in 1s 0.8s ease forwards;
}
.hero__sub {
  font-size: 0.85rem;
  color: var(--gray-m);
  line-height: 2;
  margin-bottom: 48px;
  max-width: 360px;
  opacity: 0;
  animation: fade-in 1s 1s ease forwards;
}
.hero__actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in 1s 1.2s ease forwards;
}

/* 縦書き社名 */
.hero__vert {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--gray-l);
  opacity: 0;
  animation: fade-in 1.5s 1.5s ease forwards;
}

/* 右：写真スライダー（右からスライドイン） */
.hero__photo-side {
  position: relative;
  overflow: hidden;
}
.hero__slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 各スライド：絶対配置、デフォルトは右側に待機 */
.hero__slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}
/* 表示中：画面内 */
.hero__slide.is-active {
  transform: translateX(0);
  z-index: 2;
}
/* 退場中：左へ少しだけ引く（次のスライドの下に隠れる） */
.hero__slide.is-prev {
  transform: translateX(-8%);
  z-index: 1;
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.88) saturate(0.8);
  /* Ken Burns: 表示中にゆっくりズームアウト */
  transform: scale(1.06);
  transition: transform 5s ease-out;
}
.hero__slide.is-active img {
  transform: scale(1.0);
}

/* ドットインジケーター */
.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero__dot.is-active {
  background: #fff;
  transform: scale(1.4);
}

/* スクロールインジケーター */
.hero__scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  opacity: 0;
  animation: fade-in 1s 1.8s ease forwards;
}
.hero__scroll-text {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gray-m);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gray-l), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes fade-in { to { opacity: 1; } }

/* ===== STRENGTHS ===== */
.strengths {
  padding: 160px 0;
  border-top: 1px solid var(--border);
}
.strengths__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 120px;
  align-items: start;
}
.strengths__cards { display: flex; flex-direction: column; }
.str-card {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: start;
}
.str-card:first-child { border-top: 1px solid var(--border); }
.str-card__num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray-l);
  padding-top: 4px;
}
.str-card__en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray-m);
  margin-bottom: 6px;
  font-weight: 400;
}
.str-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}
.str-card__text {
  font-size: 0.85rem;
  color: var(--gray-m);
  line-height: 1.9;
}

/* ===== TECHNOLOGY ===== */
.technology {
  padding: 160px 0;
  background: var(--bg-alt);
}
.technology__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.tech__tabs {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}
.tech__tab {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-top: none; border-left: none; border-right: none;
  color: var(--gray-m);
  cursor: pointer;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-align: left;
  transition: color 0.25s ease;
  position: relative;
}
.tech__tab:first-child { border-top: 1px solid var(--border); }
.tech__tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.4s ease;
}
.tech__tab.active,
.tech__tab:hover { color: var(--black); }
.tech__tab.active::after { width: 100%; }
.tech__tab-num {
  font-size: 0.62rem;
  color: var(--gray-l);
}
.tech__panels { position: relative; }
.tech__panel { display: none; }
.tech__panel.active {
  display: block;
  animation: panel-in 0.5s var(--ease);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tech__panel-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--border);
}
.tech__panel-img img {
  filter: brightness(0.92) saturate(0.8);
  transition: transform 0.7s ease;
}
.tech__panel-img:hover img { transform: scale(1.04); }
.tech__panel h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
}
.tech__panel p {
  font-size: 0.85rem;
  color: var(--gray-m);
  line-height: 1.9;
  margin-bottom: 28px;
}
.tech__specs { border-top: 1px solid var(--border); }
.tech__specs li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--black);
}
.tech__specs span { color: var(--gray-m); font-size: 0.75rem; }

/* ===== WORKS ===== */
.works { padding: 160px 0; }
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 0;
}
.work-card { background: var(--bg); overflow: hidden; }
.work-card__img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-alt);
}
.work-card__img img {
  filter: brightness(0.9) saturate(0.8);
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}
.work-card:hover .work-card__img img {
  transform: scale(1.05);
  filter: brightness(0.95) saturate(0.9);
}
.work-card__num {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: var(--black);
  padding: 3px 8px;
}
.work-card__body { padding: 28px 28px 36px; }
.work-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.4;
}
.work-card__body p {
  font-size: 0.82rem;
  color: var(--gray-m);
  line-height: 1.8;
  margin-bottom: 16px;
}
.work-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--gray-m);
  letter-spacing: 0.05em;
}

/* ===== EQUIPMENT ===== */
.equipment {
  padding: 160px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.equipment__slider { position: relative; overflow: hidden; margin-top: 80px; }
.equipment__track {
  display: flex;
  gap: 2px;
  transition: transform 0.6s var(--ease);
}
.equip-card {
  flex: 0 0 calc(33.333% - 2px);
  background: var(--bg);
  overflow: hidden;
}
.equip-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.75);
  transition: transform 0.6s ease;
}
.equip-card:hover img { transform: scale(1.04); }
.equip-card__body { padding: 20px 24px; }
.equip-card__body h4 {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.equip-card__body p { font-size: 0.76rem; color: var(--gray-m); }
.equipment__controls { display: flex; gap: 2px; margin-top: 20px; }
.equipment__btn {
  width: 48px; height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--black);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}
.equipment__btn:hover { background: var(--black); color: var(--bg); }

/* ===== ABOUT ===== */
.about { padding: 160px 0; border-top: 1px solid var(--border); }
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__table table { width: 100%; border-collapse: collapse; }
.about__table th,
.about__table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.7;
  vertical-align: top;
}
.about__table th { width: 120px; color: var(--gray-m); font-weight: 400; white-space: nowrap; }
.about__table td { color: var(--black); }
.about__table a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.about__map { overflow: hidden; border: 1px solid var(--border); }
.about__map iframe { width: 100%; height: 320px; display: block; }

/* ===== CONTACT ===== */
.contact {
  padding: 160px 0;
  background: var(--black);
  color: #fff;
}
.contact .sec-head__en { color: #fff; }
.contact .sec-head__ja { color: rgba(255,255,255,0.5); }
.contact .sec-head__line { background: #fff; }
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  align-items: start;
}
.contact__info-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  display: block;
}
.contact__tel {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
  transition: opacity 0.3s;
}
.contact__tel:hover { opacity: 0.7; }
.contact__hours { font-size: 0.76rem; color: rgba(255,255,255,0.45); margin-bottom: 40px; }
.contact__desc { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.9; }
.contact__form { display: flex; flex-direction: column; gap: 28px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; }
.required { color: rgba(255,255,255,0.4); }
.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 12px 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,0.7); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group textarea { resize: none; min-height: 100px; }
.btn-fill-white {
  display: block;
  width: 100%;
  padding: 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: #fff;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}
.btn-fill-white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.8); }

/* ===== FOOTER ===== */
.footer {
  padding: 72px 0 36px;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo-en {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
.footer__logo-ja { font-size: 0.68rem; color: rgba(255,255,255,0.4); display: block; margin-bottom: 20px; }
.footer__info { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.9; }
.footer__info a { transition: color 0.3s; }
.footer__info a:hover { color: #fff; }
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}
.footer__nav a {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer__nav a:hover { color: #fff; }
.footer__copy { text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.2); letter-spacing: 0.08em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .container { padding: 0 36px; }
  .nav__inner { padding: 0 36px; }
  .hero { grid-template-columns: 1fr; }
  .hero__text-side { padding: 0 36px 80px; justify-content: flex-end; min-height: 60%; }
  .hero__photo-side { position: absolute; inset: 0; z-index: 0; }
  .hero__photo-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.97) 40%, rgba(255,255,255,0.5) 80%, transparent 100%);
  }
  .hero__text-side { position: relative; z-index: 2; }
  .strengths__layout { grid-template-columns: 1fr; gap: 60px; }
  .technology__layout { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr 1fr; }
  .about__layout { grid-template-columns: 1fr; gap: 48px; }
  .contact__layout { grid-template-columns: 1fr; gap: 60px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav ul { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 12px 28px; }
  .equip-card { flex: 0 0 calc(50% - 2px); }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .nav__inner { padding: 0 24px; height: 64px; }
  .nav__links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--border); padding: 16px 0; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links li a { display: block; padding: 14px 24px; }
  .nav__hamburger { display: flex; }
  .works__grid { grid-template-columns: 1fr; }
  .equip-card { flex: 0 0 85%; }
  .strengths, .technology, .works, .equipment, .about, .contact { padding: 100px 0; }
  .sec-head { margin-bottom: 52px; }
  .sec-head__en { font-size: clamp(3.5rem, 14vw, 5rem); }
  .hero__catch { font-size: clamp(2rem, 8vw, 3.2rem); }
  .hero__vert { display: none; }
}
