/* karuraru.net brand top — このファイルはTOP（/index.html）専用。
   product/ 配下は noodles.css を使うため、ここを変えても影響しない。
   配色はロゴから: 黒のレタリング / 白地 / 差し色はロゴの赤（.）のみ。 */
:root {
  --ink: #1a1a1a;
  --sub: #6b6b6b;
  --line: #e6e3dc;
  --bg: #ffffff;        /* ロゴ画像の地と同じ白 */
  --kinari: #f8f6f1;    /* 生成り（サムネ地など控えめに） */
  --red: #c92a19;       /* ロゴの赤丸から採色 */
  --mustard: #ffb703;   /* ロゴの猫耳から採色 */
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.brand {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
.brand img { max-width: 100%; height: auto; display: block; }
.brand a { color: inherit; text-decoration: none; }
.brand a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 2px; }

/* ---------- FV ---------- */
.fv {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 80px;
  text-align: center;
}


.fv__logo { margin: 0; width: min(560px, 82vw); line-height: 0; }
.fv__logo img, .fv__logo video { display: block; width: 100%; height: auto; }
.fv__lead {
  margin: clamp(40px, 7vw, 64px) 0 0;
  font-size: clamp(14px, 1.9vw, 16px);
  color: var(--ink);
}
.fv__nav {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--sub);
}
.fv__nav a { position: relative; padding: 4px 0; transition: color .3s; }
.fv__nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transition: opacity .3s;
}
.fv__nav a:hover { color: var(--ink); }
.fv__nav a:hover::after, .fv__nav a:focus-visible::after { opacity: 1; }

/* ---------- photo ---------- */
/* ---------- 背景のゆるやかな色の漂い（ページ全体の動き） ---------- */
body.brand::before,
body.brand::after {
  content: "";
  position: fixed;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
body.brand::before { /* ロゴの赤: 右上に淡く */
  top: -45vmax;
  right: -30vmax;
  background: radial-gradient(closest-side, rgba(201, 40, 25, .09), rgba(201, 40, 25, 0) 100%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
body.brand::after { /* マスタード: 左下に淡く */
  bottom: -50vmax;
  left: -35vmax;
  background: radial-gradient(closest-side, rgba(255, 183, 3, .11), rgba(255, 183, 3, 0) 100%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-7vmax, 6vmax) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(6vmax, -7vmax) scale(1); }
}

/* ---------- sections ---------- */
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) 24px 0;
}
.section__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
}
.section__title::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: .35em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: baseline;
}
  to   { transform: translateY(-3px); }
}
.section__note { margin: 8px 0 0; font-size: 13px; color: var(--sub); }

/* ---------- products ---------- */
.products {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.product:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 26, 26, .07);
}
.product__thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 14px;
  background: var(--kinari);
}
.product__thumb img { width: 44px; height: 44px; filter: saturate(.85); }
.product__body { display: flex; flex-direction: column; line-height: 1.7; }
.product__no { font-size: 11px; letter-spacing: .16em; color: var(--sub); }
.product__name { font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.product__desc { margin-top: 2px; font-size: 13px; color: var(--sub); }
.product__meta { margin-top: 10px; font-size: 12px; letter-spacing: .1em; }
.product__meta span { display: inline-block; transition: transform .3s; }
.product:hover .product__meta span { transform: translateX(3px); }

/* ---------- about ---------- */
.about { margin-top: 32px; }
.about p { margin: 0 0 1.4em; }
.about p:last-child { margin-bottom: 0; color: var(--sub); }

/* ---------- footer ---------- */
.footer {
  margin-top: clamp(120px, 16vw, 180px);
  padding: 56px 24px 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__logo { width: 140px; margin: 0 auto; }
.footer__mail { margin: 24px 0 0; font-size: 13px; }
.footer__mail a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.footer__mail a:hover { border-color: var(--ink); }
.footer__copy { margin: 8px 0 0; color: var(--sub); }
.footer__copy small { font-size: 11px; letter-spacing: .1em; }

/* ---------- motion ---------- */
.fade { animation: fade-in 1.2s ease both; }
.fade--2 { animation-delay: .5s; }
.fade--3 { animation-delay: .8s; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
/* スクロール出現（JSが .reveal--armed を付けた要素だけ隠す） */
.reveal--armed { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.brand::before, body.brand::after { animation: none; }
  .fade { animation: none; }
  .reveal--armed { opacity: 1; transform: none; transition: none; }
  .brand *, .brand *::before, .brand *::after { transition: none !important; }
}

@media (max-width: 480px) {
  .fv__nav { gap: 20px; }
  .product { padding: 20px; gap: 16px; }
}
