/* ページ固有のレイアウト。トークンとリセットは base.css */

/* ---------- 一本の線 ---------- */
.journey {
  position: relative;
  padding-left: var(--content-left);
  padding-bottom: 72px;
}
.thread {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--line-x);
  width: 0;
}
.thread-nozzle {
  position: absolute;
  top: 0;
  left: -10px;
  width: 20px;
  height: 18px;
  fill: var(--ink);
}
.thread-line {
  position: absolute;
  top: 17px;
  bottom: 12px;
  left: -0.75px;
  width: 1.5px;
  background: var(--gold);
  transform-origin: top;
  animation: thread-grow var(--line-duration) cubic-bezier(0.45, 0, 0.25, 1) both;
}
.thread-star {
  position: absolute;
  bottom: 0;
  left: -12px;
  width: 24px;
  height: 24px;
  color: var(--gold);
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--line-duration) - 0.2s) both;
}

@keyframes thread-grow { from { transform: scaleY(0); } }
@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- ヒーロー ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px 40px;
  padding-block: clamp(48px, 8vw, 96px) clamp(80px, 12vw, 150px);
}
.hero-text { flex: 1 1 420px; }
.hero-title {
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.08em;
}
.hero-lead {
  margin-top: clamp(24px, 3vw, 40px);
  color: var(--sub-dark);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.2em;
  line-height: 2.1;
}
.hero-note {
  margin-top: 28px;
  color: var(--sub);
  font-size: 12.5px;
  letter-spacing: 0.14em;
}
.hero-mark {
  flex: 0 1 380px;
  margin-inline: auto;
  animation: fade-in 1.4s ease-out 0.3s both;
}
.hero-mark img { width: 100%; max-width: 380px; margin-inline: auto; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* ---------- セクション共通 ---------- */
.section { padding-bottom: clamp(96px, 12vw, 160px); }
/* 最後のセクションは線の終点の星がすぐ下に来るので余白を詰める */
.section:last-child { padding-bottom: 32px; }
/* 点は上のセクションから順に灯す */
.section--about { --node-delay: 0.9s; }
.section--shop { --node-delay: 1.4s; }
.section--works { --node-delay: 1.8s; }

.section-title {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
  font-weight: 400;
}
/* 見出しの位置で線に点（ノード）を灯す */
.section-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--line-x) - var(--content-left) - 6px);
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--node-delay) both;
}
.section-num {
  color: var(--sub);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
}
.section-en {
  font-family: var(--font-en);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.3;
}
.section-ja { color: var(--sub); font-size: 12px; letter-spacing: 0.14em; }

/* ---------- Works ---------- */
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px clamp(32px, 4.5vw, 56px);
}
.work + .work { margin-top: clamp(56px, 6vw, 80px); }
/* 作品写真は正方形で撮る前提。4:3だと耳やしっぽが切れるため */
.work-photo { aspect-ratio: 1 / 1; overflow: hidden; }
.work-photo > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work:hover .work-photo > * { transform: scale(1.02); }
.work-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--photo-from), var(--photo-to));
  color: var(--sub-dark);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.work-photo-placeholder svg { width: 22px; height: 22px; color: var(--gold); }
.work-no { color: var(--sub); font-family: var(--font-en); font-size: 12px; letter-spacing: 0.24em; }
.work-name {
  margin-top: 10px;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.6;
}
.work-desc { margin-top: 16px; font-size: 14px; line-height: 2; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.work-tags li {
  padding: 1px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--sub-dark);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}
.work-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- About ---------- */
.about-lead {
  max-width: 30em;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 2;
}
.about-text { max-width: 48em; margin-top: clamp(28px, 3.5vw, 44px); font-size: 14px; line-height: 2.1; }
.about-note { margin-top: 28px; color: var(--sub); font-size: 12px; letter-spacing: 0.06em; }

/* ---------- Shop ---------- */
.shop-group + .shop-group { margin-top: clamp(40px, 5vw, 56px); }
.shop-heading {
  margin-bottom: 18px;
  color: var(--sub-dark);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.24em;
}
.shop-links { display: flex; flex-wrap: wrap; gap: 14px; }
.shop-note { margin-top: 24px; color: var(--sub-dark); font-size: 12.5px; letter-spacing: 0.08em; }

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { flex-basis: 100%; max-width: 240px; }
  .hero-lead br { display: none; }
}

