@charset "utf-8";

/* =========================================================
   錦商事株式会社 / NISHIKI SHOUJI  corporate site
   ========================================================= */

:root {
  --ink:        #1b1b1d;
  --ink-soft:   #55555c;
  --line:       #e6e1dc;
  --bg:         #ffffff;
  --bg-warm:    #faf7f4;
  --bg-dark:    #17171a;
  --accent:     #b08968;
  --accent-lt:  #d8c3ae;
  --wrap:       1120px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --en: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; }

.inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.inner--narrow { max-width: 820px; }

/* ---------------- ヘッダー ---------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  transition: background .35s, box-shadow .35s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  transition: height .35s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line);
}

.header.is-scrolled .header__inner { height: 68px; }

/* 下層ページは常に白ヘッダー */
.header--solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  text-decoration: none;
  line-height: 1.3;
}

.logo__ja {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.16em;
}

.logo__en {
  display: block;
  font-family: var(--en);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  color: var(--accent);
  margin-top: 2px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  position: relative;
  display: block;
  text-decoration: none;
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.24em;
  padding: 4px 0;
}

.nav__list a small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: -2px;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .3s;
}

.nav__list a:hover::after,
.nav__list a.is-current::after { width: 100%; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 320;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px 8px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform .3s, opacity .3s, background .3s;
}

.nav-toggle.is-open span { background: #fff; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- ヒーロー ---------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center 40% / cover no-repeat;
  animation: heroZoom 16s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.15) 35%, rgba(255,255,255,.65) 100%);
}

.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.hero__en {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.44em;
  color: var(--accent);
  margin: 0 0 24px;
}

.hero__catch {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.55;
  letter-spacing: 0.1em;
  margin: 0 0 28px;
}

.hero__lead {
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.06em;
  max-width: 480px;
  margin: 0;
  color: var(--ink-soft);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  font-family: var(--en);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  padding-bottom: 76px;
  transform: translateX(-50%);
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------- セクション共通 ---------------- */
.section { padding: 120px 0; }
.section--warm { background: var(--bg-warm); }
.section--tight { padding: 88px 0; }

.sec-head { margin-bottom: 56px; }

.sec-en {
  display: block;
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: 0.38em;
  color: var(--accent);
  margin-bottom: 14px;
}

.sec-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  margin: 0;
}

.sec-title--sm { font-size: 22px; }

.text { font-size: 14.5px; letter-spacing: 0.05em; color: var(--ink-soft); }
.text p { margin: 0 0 1.4em; }
.text p:last-child { margin-bottom: 0; }

/* ---------------- メッセージ（画像＋テキスト） ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split--reverse .split__img { order: 2; }

.split__img {
  position: relative;
  overflow: hidden;
}

.split__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.split__img::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -14px;
  bottom: -14px;
  width: 96px;
  height: 96px;
  border-left: 1px solid var(--accent-lt);
  border-bottom: 1px solid var(--accent-lt);
}

/* ---------------- 事業カード ---------------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.work { display: block; text-decoration: none; }

.work__img {
  overflow: hidden;
  margin-bottom: 22px;
}

.work__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1s ease;
}

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

.work__no {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.work__title {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  margin: 8px 0 10px;
}

.work__text {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------------- 会社情報（ダーク） ---------------- */
.dark {
  background: var(--bg-dark);
  color: #fff;
  padding: 108px 0;
}

.dark .sec-title { color: #fff; }
.dark .text { color: rgba(255, 255, 255, 0.72); }

.dark__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------------- 定義リスト ---------------- */
.dl {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.dl__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.dl__row:first-child { border-top: 1px solid var(--line); }

.dl dt {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: 4px;
}

.dl dt small {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.dl dd { margin: 0; }

.dark .dl__row { border-color: rgba(255, 255, 255, 0.16); }
.dark .dl dt small { color: #fff; }

/* ---------------- リンク・ボタン ---------------- */
.more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-decoration: none;
  padding: 4px 0;
}

.more::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--accent);
  transition: width .35s;
}

.more:hover::after { width: 68px; }

/* ---------------- 下層ページヘッダー ---------------- */
.page-head {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  background: var(--bg-dark) center / cover no-repeat;
  color: #fff;
  margin-bottom: 0;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 22, 0.5);
}

.page-head__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 28px 0;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.18em;
  margin: 0;
}

.page-head .en {
  display: block;
  font-family: var(--en);
  font-size: 10.5px;
  letter-spacing: 0.4em;
  color: var(--accent-lt);
  margin-bottom: 12px;
}

.crumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* ---------------- 本文（規約系） ---------------- */
.doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.1em;
  margin: 48px 0 12px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.doc h2:first-of-type { margin-top: 0; }

.doc p, .doc li { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.04em; }
.doc ul { padding-left: 1.3em; }

/* ---------------- フッター ---------------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 28px;
  font-size: 13px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__ja {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.18em;
  color: #fff;
  margin: 0 0 8px;
}

.footer__en {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--accent-lt);
  margin: 0;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.footer__links a { text-decoration: none; transition: color .25s; }
.footer__links a:hover { color: var(--accent-lt); }

.copyright {
  margin: 56px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------------- スクロール表示アニメーション ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.is-shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  .hero__scroll::after { animation: none; }
}

/* ---------------- レスポンシブ ---------------- */
@media screen and (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__img { order: 0; }
  .works { grid-template-columns: 1fr; gap: 48px; }
  .dark__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media screen and (max-width: 768px) {
  body { font-size: 14px; }
  .inner, .hero__body, .header__inner, .page-head__body { padding-left: 20px; padding-right: 20px; }

  .header__inner { height: 68px; }
  .header.is-scrolled .header__inner { height: 60px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(23, 23, 26, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }

  .nav.is-open { opacity: 1; visibility: visible; }

  .nav__list {
    flex-direction: column;
    gap: 34px;
    text-align: center;
  }

  .nav__list a { color: #fff; font-size: 14px; letter-spacing: 0.3em; }
  .nav__list a small { color: rgba(255, 255, 255, 0.6); margin-top: 4px; }
  .nav__list a::after { display: none; }

  .hero { height: 88vh; min-height: 480px; }
  .hero__catch { letter-spacing: 0.06em; }
  .hero__scroll { display: none; }

  .section { padding: 76px 0; }
  .section--tight { padding: 64px 0; }
  .dark { padding: 76px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-title { font-size: 23px; }

  .page-head { height: 240px; }
  .page-head h1 { font-size: 22px; }

  .dl__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }

  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__links { gap: 20px 28px; }
}
