/* ============================================
   ETERNAL d.c.t Portfolio — Dark × Gold
   ============================================ */
:root {
  --bg: #0c0d10;
  --bg-2: #111319;
  --bg-3: #171a22;
  --ink: #e8e6e0;
  --ink-dim: #9a9890;
  --gold: #c9a45c;
  --gold-light: #e3c98f;
  --line: rgba(201, 164, 92, 0.18);
  --serif: "Noto Sans JP", sans-serif;
  --sans: "Noto Sans JP", sans-serif;
  --en: "Cormorant Garamond", serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }

/* ---------- ローディング ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--en);
  font-size: 1.7rem; letter-spacing: 0.25em;
  color: var(--ink);
}
.loader-logo em { color: var(--gold); font-style: italic; }
.loader-bar {
  display: block; margin: 18px auto 0;
  width: 120px; height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.loader-bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: loadbar 1s ease forwards;
}
@keyframes loadbar { to { transform: translateX(0); } }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 5vw;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.header.scrolled {
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  padding: 14px 5vw;
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  font-family: var(--en);
  font-size: 1.25rem; letter-spacing: 0.18em;
}
.logo em { color: var(--gold); font-style: italic; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--en);
  font-size: 0.95rem; letter-spacing: 0.12em;
  color: var(--ink-dim);
  transition: color 0.3s;
  position: relative;
}
.nav a:hover { color: var(--gold-light); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-family: var(--sans) !important;
  font-size: 0.85rem !important;
  color: var(--bg) !important;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 9px 22px; border-radius: 99px;
  font-weight: 700;
  transition: opacity 0.3s, transform 0.3s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 38px; height: 38px;
  position: relative; z-index: 60;
}
.menu-btn span {
  display: block; width: 24px; height: 1.5px;
  background: var(--ink);
  margin: 7px auto;
  transition: transform 0.35s, opacity 0.35s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 5vw;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(201, 164, 92, 0.13), transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(60, 70, 110, 0.18), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
}
.hero-inner { position: relative; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-sub {
  font-family: var(--en);
  font-size: 1rem; letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.6vw, 4.3rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.hero-title em {
  font-family: var(--en);
  font-style: italic;
  color: var(--gold-light);
  padding: 0 0.08em;
}
.hero-title .line { display: block; overflow: hidden; }
.reveal-text {
  display: inline-block;
  transform: translateY(110%);
  animation: textUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}
.reveal-text.delay-1 { animation-delay: 1.05s; }
@keyframes textUp { to { transform: translateY(0); } }

.hero-desc {
  margin-top: 34px;
  color: var(--ink-dim);
  font-size: 1.05rem;
}
.hero-btns { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 36px; left: 5vw;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--en); font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--ink-dim);
}
.hero-scroll i {
  display: block; width: 60px; height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.hero-scroll i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 99px;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.3s, opacity 0.3s, background 0.3s, color 0.3s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #16130c;
  box-shadow: 0 8px 30px rgba(201, 164, 92, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-line {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-sm { padding: 11px 30px; font-size: 0.85rem; }
.btn-wide { width: 100%; text-align: center; border: none; cursor: pointer; font-family: var(--sans); }

/* ---------- ティッカー ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-2);
}
.ticker-track {
  display: flex; align-items: center; gap: 36px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker-track span {
  font-family: var(--serif);
  font-size: 0.95rem; letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.ticker-track i { color: var(--gold); font-size: 0.6rem; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- セクション共通 ---------- */
.section { padding: 130px 5vw; }
.section-dark { background: var(--bg-2); }
.container { max-width: 1100px; margin: 0 auto; }
.section-head { margin-bottom: 70px; }
.section-en {
  font-family: var(--en);
  font-size: 1rem; font-style: italic;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 22px;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 52px; height: 1px;
  background: var(--gold);
}
.section-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* ---------- サービスカード ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 42px 30px 36px;
  transition: transform 0.4s ease, border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
.card:hover::before { opacity: 1; }
.card-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--en); font-style: italic;
  font-size: 1.6rem; color: rgba(201, 164, 92, 0.25);
}
.card-icon {
  width: 46px; height: 46px;
  color: var(--gold);
  margin-bottom: 24px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--serif);
  font-size: 1.12rem; font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.card p { font-size: 0.88rem; color: var(--ink-dim); }

/* ---------- 制作実績 ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px;
}
.work {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s, border-color 0.4s;
}
.work:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
  border-color: var(--line);
}
.work-thumb {
  aspect-ratio: 16 / 9.5;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start;
  padding: 0 24px 20px;
  position: relative;
  overflow: hidden;
}
.work-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work:hover .work-thumb img { transform: scale(1.05); }
.work-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 11, 14, 0.65));
}
.thumb-1 { background: linear-gradient(135deg, #2e2436, #4d3a52, #8a6a72); }
.thumb-2 { background: linear-gradient(135deg, #1d2c3f, #2a4a66, #4b7ea0); }
.thumb-3 { background: linear-gradient(135deg, #20301f, #3a5234, #6e8a52); }
.thumb-4 { background: linear-gradient(135deg, #33271a, #5c4424, #9a7440); }
.thumb-5 { background: linear-gradient(135deg, #1a1f33, #2a3366, #5566aa); }
.thumb-6 { background: linear-gradient(135deg, #1a2820, #2d4a35, #4a7a50); }
.thumb-7 { background: linear-gradient(135deg, #2d1a1a, #4a2525, #8a3a3a); }
.thumb-label {
  font-family: var(--en);
  font-size: 0.7rem; letter-spacing: 0.35em;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10, 11, 14, 0.35);
  backdrop-filter: blur(6px);
  padding: 4px 12px; border-radius: 99px;
  position: relative; z-index: 1;
}
.work-info { padding: 26px 30px 30px; }
.work-info h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px;
}
.work-info p { font-size: 0.85rem; color: var(--ink-dim); margin-bottom: 16px; }
.work-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold-light);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 12px;
  margin-right: 8px;
}

/* ---------- 強み ---------- */
.strengths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.strength {
  padding: 44px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s;
}
.strength:hover { background: rgba(201, 164, 92, 0.04); }
.strength-num {
  font-family: var(--en); font-style: italic;
  font-size: 2.1rem;
  color: var(--gold);
  display: block; margin-bottom: 18px;
}
.strength h3 {
  font-family: var(--serif);
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 12px; letter-spacing: 0.06em;
}
.strength p { font-size: 0.88rem; color: var(--ink-dim); }

/* ---------- 制作の流れ ---------- */
.flow {
  display: grid;
  gap: 0;
  counter-reset: step;
  position: relative;
}
.flow li {
  position: relative;
  padding: 36px 0 36px 130px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.flow li:last-child { border-bottom: none; }
.flow-step {
  position: absolute; left: 0; top: 40px;
  font-family: var(--en); font-style: italic;
  font-size: 0.95rem; letter-spacing: 0.15em;
  color: var(--gold);
}
.flow h3 {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 8px; letter-spacing: 0.08em;
}
.flow p { font-size: 0.9rem; color: var(--ink-dim); }

/* ---------- 料金 ---------- */
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 44px 34px 38px;
  text-align: center;
  display: flex; flex-direction: column;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,0.35); }
.price-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.08), var(--bg-3) 45%);
}
.price-badge {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #16130c;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 20px; border-radius: 99px;
  letter-spacing: 0.15em;
}
.price-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.price-num {
  font-family: var(--en);
  font-size: 2.6rem; font-weight: 600;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 26px;
}
.price-num small { font-size: 1rem; color: var(--ink-dim); }
.price-card ul {
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}
.price-card li {
  font-size: 0.88rem;
  color: var(--ink-dim);
  padding: 9px 0 9px 26px;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute; left: 2px;
  color: var(--gold);
}

/* ---------- プロフィール ---------- */
.profile {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 54px;
}
.profile-avatar {
  flex-shrink: 0;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(201, 164, 92, 0.07);
}
.profile-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-body h3 {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 600;
  margin-bottom: 18px; letter-spacing: 0.08em;
}
.profile-body h3 small {
  font-family: var(--sans);
  font-size: 0.85rem; font-weight: 400;
  color: var(--ink-dim);
  margin-left: 8px;
}
.profile-body p {
  font-size: 0.95rem;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.profile-tags { margin-top: 22px; }
.profile-tags span {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold-light);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 16px;
  margin: 0 10px 10px 0;
}

/* ---------- お問い合わせ ---------- */
.contact {
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201, 164, 92, 0.08), transparent 60%),
    var(--bg);
}
.contact-cta {
  text-align: center;
  padding: 20px 0 10px;
}
.form-alt {
  margin-top: 22px;
  text-align: center;
  font-size: 0.83rem;
  color: var(--ink-dim);
}
.form-alt a { color: var(--gold-light); border-bottom: 1px solid var(--line); }

/* ---------- フッター ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 5vw;
  text-align: center;
}
.footer-logo {
  font-family: var(--en);
  font-size: 1.3rem; letter-spacing: 0.22em;
  margin-bottom: 14px;
}
.footer-logo em { color: var(--gold); font-style: italic; }
.footer-copy { font-size: 0.78rem; color: var(--ink-dim); }

/* ---------- スクロールアニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }
.hero .reveal { transition-delay: 0s; animation: heroFade 1s ease 1.2s both; opacity: 0; transform: none; }
.hero .reveal.delay-2 { animation-delay: 1.35s; }
.hero .reveal.delay-3 { animation-delay: 1.5s; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .section { padding: 90px 6vw; }

  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0;
    background: rgba(12, 13, 16, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    z-index: 55;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-size: 1.2rem; }

  .hero { padding-top: 90px; }
  .hero-btns .btn { width: 100%; text-align: center; }

  .flow li { padding: 30px 0 30px 0; }
  .flow-step { position: static; display: block; margin-bottom: 10px; }

  .profile { flex-direction: column; padding: 36px 26px; align-items: center; text-align: left; }


  .strength { border-right: none; }
}
