/* ============================================
   株式会社Gunshi — Corporate Site
   重厚・伝統・信頼感（紺 / 黒 / 金）
   ============================================ */

:root {
  --ink: #0A1628;           /* Midnight Navy - メインインク */
  --ink-90: #121E32;
  --ink-80: #1D2A42;
  --ink-60: #4A5670;
  --ink-40: #8791A6;
  --ink-20: #C9CFDB;
  --ink-10: #E8EBF1;

  --paper: #FAF8F3;          /* 上質な和紙 */
  --paper-warm: #F3EFE4;
  --paper-line: #E8E2D1;

  --gold: #C9A961;           /* 金 */
  --gold-dark: #A58A44;
  --gold-light: #E8D9A8;

  --crimson: #7A1A1A;         /* 深紅（印鑑のアクセント） */

  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "游ゴシック", "YuGothic", sans-serif;
  --latin-serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --mono: "JetBrains Mono", "Source Han Mono", monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* =============== Typography =============== */
.jp-serif { font-family: var(--serif); }
.latin { font-family: var(--latin-serif); letter-spacing: 0.04em; }
.mono { font-family: var(--mono); letter-spacing: 0.05em; }

.eyebrow {
  font-family: var(--latin-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-dark);
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.3;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: 20px;
}

.section-title .en {
  display: block;
  font-family: var(--latin-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.4em;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-top: 8px;
}

.body-text {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-80);
  max-width: 68ch;
}

/* =============== Container =============== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(80px, 10vw, 140px) 0;
}

/* =============== Header =============== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--paper-line);
}

.site-header.dark {
  background: rgba(10, 22, 40, 0.88);
  color: var(--paper);
}
.site-header.dark.scrolled {
  border-bottom-color: rgba(201, 169, 97, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
}

.brand-mark {
  width: 52px;
  height: 62px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { display: block; }

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name .jp {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.brand-name .en {
  font-family: var(--latin-serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  font-style: italic;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a .num {
  font-family: var(--latin-serif);
  font-size: 10px;
  color: var(--gold-dark);
  margin-right: 6px;
  font-style: italic;
}

.nav a:hover { color: var(--gold-dark); }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  padding: 10px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: background 0.2s;
  border: 1px solid var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.site-header.dark .nav-cta {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.site-header.dark .nav-cta:hover { background: var(--paper); border-color: var(--paper); }

.mobile-toggle { display: none; }

/* =============== Buttons =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}
.btn::after {
  content: "→";
  font-family: var(--latin-serif);
  transition: transform 0.25s ease;
}
.btn:hover::after { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--paper);
}

/* =============== Image Placeholder =============== */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper-warm) 0,
      var(--paper-warm) 8px,
      var(--paper-line) 8px,
      var(--paper-line) 9px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  overflow: hidden;
}
.img-placeholder.dark {
  background:
    repeating-linear-gradient(
      135deg,
      var(--ink-90) 0,
      var(--ink-90) 8px,
      var(--ink-80) 8px,
      var(--ink-80) 9px
    );
  color: var(--ink-20);
}
.img-placeholder span {
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
}
.img-placeholder.dark span {
  background: var(--ink);
  border-color: var(--ink-80);
}

/* =============== Page Hero (for sub-pages) =============== */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .breadcrumb {
  font-family: var(--latin-serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero .breadcrumb .sep { opacity: 0.5; }

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  max-width: 900px;
}
.page-hero h1 .en {
  display: block;
  font-family: var(--latin-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.35em;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 20px;
  text-transform: uppercase;
}

.page-hero .lead {
  margin-top: 40px;
  font-size: 16px;
  line-height: 2.1;
  max-width: 58ch;
  color: var(--ink-20);
}

/* =============== Footer =============== */
.site-footer {
  background: var(--ink);
  color: var(--ink-20);
  padding: 100px 0 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.footer-brand .brand-name .jp { color: var(--paper); font-size: 18px; }
.footer-brand .brand-name .en { color: var(--gold); }
.footer-brand p {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-40);
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--latin-serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 12px;
  font-size: 13px;
}
.footer-col a { color: var(--ink-20); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-40);
}

.footer-bottom .copy {
  font-family: var(--latin-serif);
  font-style: italic;
}

/* =============== Decorations =============== */
.section-number {
  font-family: var(--latin-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
}

.vertical-rule {
  width: 1px;
  background: var(--paper-line);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  opacity: 0.4;
  margin: 80px 0;
}

/* =============== Responsive =============== */
@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .nav a { font-size: 12px; }
}
@media (max-width: 1024px) {
  .nav { display: none; }

  /* ハンバーガーボタン */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
  }
  .mobile-toggle span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* モバイルナビ */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 14, 28, 0.97);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 80px 40px 40px;
  }
  .mobile-nav.open {
    display: flex;
  }
  .mobile-nav a {
    font-family: var(--mono, monospace);
    font-size: 13px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    padding: 14px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .mobile-nav a:hover { color: var(--gold, #C9A84C); }
  .mobile-nav a .num {
    font-size: 10px;
    color: var(--gold, #C9A84C);
    opacity: 0.7;
  }
  .mobile-nav-cta {
    margin-top: 16px !important;
    border: 1px solid var(--gold, #C9A84C) !important;
    border-bottom: 1px solid var(--gold, #C9A84C) !important;
    color: var(--gold, #C9A84C) !important;
    padding: 16px 40px !important;
    letter-spacing: 0.15em;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

/* =============== Scroll Reveal =============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
