/* ============================================================
   Design Tokens
   ============================================================ */

:root {
  --bg:        #0c0c0c;
  --surface:   #161616;
  --gold:      #c9a74d;
  --gold-dim:  rgba(201, 167, 77, 0.16);
  --text:      #e8e0d0;
  --muted:     #7a7060;
  --border:    rgba(201, 167, 77, 0.15);

}

/* ============================================================
   Reset & Base — jp-ui-contracts 準拠
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* ナビ固定分のオフセット */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 2.0;
  letter-spacing: 0.04em;
  word-break: break-word;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

.en-mix {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-feature-settings: "palt" 1;
}

p { margin-bottom: 1.6em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; }

/* ============================================================
   スクロールアニメーション
   ============================================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  0.72s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate].is-visible { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: 0.10s; }
[data-delay="2"] { transition-delay: 0.20s; }
[data-delay="3"] { transition-delay: 0.30s; }
[data-delay="4"] { transition-delay: 0.40s; }
[data-delay="5"] { transition-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-bottom 0.35s ease;
}

/* スクロール後に背景を付ける */
.nav--scrolled {
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.nav-logo-wrap:hover .nav-logo { opacity: 0.7; }

.nav-brand {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
}

section { padding: clamp(5rem, 14vw, 10rem) 0; }

.section-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 2.5rem;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
  margin-top: 3rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.75rem 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background 0.28s ease, color 0.28s ease;
  cursor: pointer;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); }

.btn-fill {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: 0.9rem 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: opacity 0.28s ease;
  cursor: pointer;
}
.btn-fill:hover { opacity: 0.82; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: calc(2rem + 64px);
  position: relative;
  background:
    radial-gradient(ellipse at 50% 60%, var(--gold-dim) 0%, transparent 62%),
    var(--bg);
  overflow: hidden;
}

/* 和紙テクスチャ画像 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/paper_texture.png");
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* 「結」装飾文字 */
.hero::after {
  content: "結";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28rem, 55vw, 72rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 167, 77, 0.04);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* 青海波パターン */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black 70%);
}
.seigaiha-svg { width: 100%; height: 100%; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

/* ヒーロー中央ロゴ */
.hero-logo {
  width: 80px;
  height: 80px;
  max-width: 80px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 0.8rem;
}

.hero-en {
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.hero-ja {
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  font-size: clamp(4rem, 14vw, 10rem);
  letter-spacing: 0.2em;
  line-height: 1.05;
  color: var(--text);
  position: relative;
}

.hero-ja::after {
  content: "";
  display: block;
  width: 1px;
  height: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 1.5rem auto 0;
  opacity: 0.7;
}

.hero-sub {
  font-size: clamp(0.82rem, 2vw, 0.98rem);
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: var(--muted);
  opacity: 0.45;
  animation: bob 2.2s ease-in-out infinite;
  z-index: 1;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   About
   ============================================================ */

.about {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

/* 「結」ウォーターマーク */
.about::before {
  content: "結";
  position: absolute;
  top: -4rem;
  right: -2rem;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(18rem, 30vw, 38rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 167, 77, 0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* 青海波 — 右端に薄く */
.about::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background-image:
    radial-gradient(circle at 0% 100%, transparent 57%, rgba(201,167,77,0.08) 57.5%, rgba(201,167,77,0.08) 58.5%, transparent 59%),
    radial-gradient(circle at 0% 100%, transparent 37%, rgba(201,167,77,0.05) 37.5%, rgba(201,167,77,0.05) 38.5%, transparent 39%);
  background-size: 60px 30px;
  background-position: 0 0, 30px 15px;
  pointer-events: none;
  mask-image: linear-gradient(to left, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 0%, transparent 100%);
}

.about-tagline {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 3.5rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
  position: relative;
  z-index: 1;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.about-pillar {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.pillar-num {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.pillar-body {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 0;
}

.about-story {
  max-width: 640px;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.about-story p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
  line-height: 2.0;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .about-pillars { grid-template-columns: 1fr; gap: 1.5rem 0; }
}

/* ============================================================
   Business
   ============================================================ */

.business { background: var(--bg); }

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border);
}

.business-card {
  background: var(--bg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  position: relative;
  transition: background 0.25s ease;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.business-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.business-card:hover::before { width: 100%; }

.business-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.business-card:hover { background: #111; }
.business-card:hover::after { width: 100%; }

.business-num {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.business-card h3 {
  font-size: 1rem;
  letter-spacing: 0.09em;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text);
}

.business-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ============================================================
   Instagram
   ============================================================ */

.instagram { background: var(--surface); text-align: center; }
.instagram .section-label,
.instagram .section-title { text-align: center; }

.instagram-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.instagram-embed-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.instagram-embed-wrap .instagram-media {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

/* ============================================================
   Contact
   ============================================================ */

.contact { background: var(--bg); text-align: center; }
.contact .section-label,
.contact .section-title { text-align: center; }

.contact-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-logo-wrap:hover .footer-logo {
  opacity: 0.8;
}

.footer-name {
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.footer-addr {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.45;
  letter-spacing: 0.2em;
  margin-bottom: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 720px) {
  .business-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ja { letter-spacing: 0.12em; }
  .hero-logo-mark { opacity: 0.4; }
}

/* ============================================================
   Accessibility
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  html { scroll-behavior: auto; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
