:root {
  --bg: #fbf4ea;
  --bg-dark: #2a1a12;
  --ink: #2c2018;
  --muted: #7c6a5b;
  --line: #ecdfce;
  --accent: #c8743e;
  --accent2: #e0a45c;
  --accent3: #d98a6a;
  --serif-en: "Cormorant Garamond", serif;
  --serif-jp: "Noto Serif JP", serif;
  --sans-jp: "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans-jp);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

/* 共通：小見出しラベル */
.eyebrow {
  font-family: var(--serif-en);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  mix-blend-mode: difference;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.logo {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: #fff;
}

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

.nav-links a {
  font-family: var(--serif-en);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #fff;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.4s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ボタン */
.btn {
  display: inline-block;
  font-family: var(--serif-en);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1rem 3rem;
  border-radius: 999px;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.btn:hover {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent3) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(200, 116, 62, 0.3);
}

.btn-light {
  color: var(--accent2);
  border-color: var(--accent2);
}

.btn-light:hover {
  background: linear-gradient(120deg, var(--accent2) 0%, var(--accent3) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(224, 164, 92, 0.3);
}

/* ヒーロー */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background:
    radial-gradient(90% 60% at 15% 10%, #ffe9d0 0%, rgba(255,233,208,0) 60%),
    radial-gradient(80% 70% at 90% 20%, #fbdcc6 0%, rgba(251,220,198,0) 55%),
    radial-gradient(100% 90% at 50% 100%, #f7e3c9 0%, rgba(247,227,201,0) 60%),
    var(--bg);
}

.hero-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 2.2;
  margin-bottom: 3rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  font-family: var(--serif-en);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: var(--muted);
  margin: 0.8rem auto 0;
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* セクション共通 */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9rem 2.5rem;
}

.section-head { margin-bottom: 4rem; }

.section-no {
  font-family: var(--serif-en);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* About */
.about-body {
  max-width: 760px;
}

.about-body p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* Services（ダーク背景） */
.section-dark {
  max-width: none;
  background: #4e3020;
  color: var(--bg);
  padding-left: 0;
  padding-right: 0;
}

.section-dark .section-head,
.section-dark .cards {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.section-dark .section-title { color: var(--bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 2.4rem 3.4rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(224, 164, 92, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.card:hover::before { transform: scaleX(1); }

.card-no {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  font-family: var(--serif-en);
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  font-size: 1.3rem;
  color: var(--accent2);
  background: rgba(224, 164, 92, 0.12);
  border: 1px solid rgba(224, 164, 92, 0.25);
  margin-bottom: 1.6rem;
}

.card-eyebrow {
  font-family: var(--serif-en);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.6rem;
}

.card h3 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.card-text {
  font-size: 0.96rem;
  color: rgba(247, 245, 241, 0.68);
  line-height: 2;
}

.card-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-top: 1.8rem;
  transition: width 0.5s ease;
}

.card:hover .card-line { width: 70px; }

/* Works */
.work {
  max-width: 900px;
}

.work-head { margin-bottom: 3.5rem; }

.work-tag {
  display: inline-block;
  font-family: var(--serif-en);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.5rem;
}

.work-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.work-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 2.1;
}

/* フロー（3ステップ） */
.flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 3rem;
}

.flow-step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem 1.5rem;
  text-align: center;
}

.flow-no {
  font-family: var(--serif-en);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 2rem;
  margin: 1.2rem 0;
  line-height: 1;
}

.flow-step:nth-child(1) .flow-icon { background: linear-gradient(135deg, #ffd9b0, #f7b27a); }
.flow-step:nth-child(3) .flow-icon { background: linear-gradient(135deg, #ffc9a3, #ec9a6f); }
.flow-step:nth-child(5) .flow-icon { background: linear-gradient(135deg, #f6d39a, #e0a45c); }

.flow-label {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.flow-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: var(--accent);
}

.work-points {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.work-points li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.work-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Contact */
.section-contact {
  text-align: center;
  background: var(--bg-dark);
  color: var(--bg);
  max-width: none;
}

.section-contact .section-title { color: var(--bg); }

.contact-lead {
  color: rgba(247, 245, 241, 0.7);
  margin: 1.5rem 0 3rem;
}

/* フッター */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-dark);
  color: rgba(247, 245, 241, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: block;
  font-family: var(--serif-jp);
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: var(--bg);
  margin-bottom: 1rem;
}

.footer p { font-size: 0.8rem; letter-spacing: 0.1em; }

/* スクロール演出 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* スマホ対応 */
@media (max-width: 680px) {
  .nav { padding: 1.5rem; }
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.9rem; }
  .section { padding: 6rem 1.5rem; }
  .section-dark .section-head,
  .section-dark .cards { padding-left: 1.5rem; padding-right: 1.5rem; }
  .card { border-right: none; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; padding: 0.3rem 0; }
}
