/* =========================
   A’27 / 或月  —  style.css
   ========================= */

/* ===== Design tokens ===== */
:root{
  --bg:#0b0b0d; --fg:#f3f4f6; --muted:#9aa0a6;
  --brand:#a31b3b; --brand-2:#27272a; --accent:#8b0000;
  --card:#15161a; --ring:0 0 0 3px rgba(216,27,96,.25);
  --radius:20px; --shadow:0 10px 30px rgba(0,0,0,.45);

  /* 固定ヘッダー対策 */
  --header-h: 64px;
  --anchor-extra: 0px; /* セクション位置の微調整用（気になったら 4px とかにしてOK） */
}

/* ===== Reset / Base ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-extra);
}

body{
  margin:0;
  padding-top: var(--header-h); /* 固定ヘッダーぶん下げる */
  font-family: ui-sans-serif, system-ui, -apple-system, "Noto Sans JP", Segoe UI, Roboto, Helvetica, Arial;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color:inherit; text-decoration:none; }

img{
  width:100%;
  height:auto;
  display:block;
}

.container{
  width:min(1100px, 92%);
  margin-inline:auto;
}

.focus-ring:focus-visible{
  outline:none;
  box-shadow: var(--ring);
}

/* ===== Header（固定） ===== */
header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  backdrop-filter:saturate(120%) blur(10px);
  background:linear-gradient(180deg, rgba(11,11,13,.85), rgba(11,11,13,.55));
  border-bottom:1px solid rgba(255,255,255,.06);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.brand-mark{
  width:36px; height:36px;
  border-radius:12px;
  background:
    radial-gradient(120% 120% at 0% 0%, var(--brand) 0%, transparent 60%),
    radial-gradient(120% 120% at 100% 0%, var(--brand-2) 0%, transparent 60%),
    #111;
  box-shadow:var(--shadow);
}
.brand h1{
  font-size:18px;
  letter-spacing:.04em;
  margin:0;
}

.menu{
  display:flex;
  gap:18px;
}
.menu a{
  color:var(--muted);
  font-size:14px;
}
.menu a:hover{
  color:#fff;
}

.cta{
  display:flex;
  gap:10px;
}
.btn{
  padding:10px 14px;
  border-radius:999px;
  background:#1f2937;
  color:#fff;
  font-weight:600;
  border:1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.4);
}
.btn--accent{
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  border:none;
}

/* ===== Hero ===== */
.hero{
  position:relative;
  min-height:78vh;
  display:grid;
  place-items:center;
  overflow:hidden;
}

/* 背景オーロラCanvas */
#aurora{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  filter:blur(28px) saturate(120%);
  opacity:.9;
  z-index:0;
  pointer-events:none;
}

/* 手前の黒グラ・テキスト */
.hero .overlay{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(124,58,237,.25), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.75));
}
.hero .inner{
  position:relative;
  z-index:2;
  text-align:center;
  padding:40px 0;
}

.kicker{
  color:var(--accent);
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
}
.title{
  font-size:clamp(30px, 6vw, 56px);
  line-height:1.12;
  margin:.35em 0;
}
.title .s3{
  font-size:50%;
}
.lead{
  color:#e5e7eb;
  max-width:780px;
  margin:0 auto 24px;
}
.actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ===== Sections ===== */
section{
  padding:56px 0;
  scroll-margin-top: calc(var(--header-h) + var(--anchor-extra));
}

h2{
  font-size:26px;
  margin:0 0 18px;
}

.grid{
  display:grid;
  gap:16px;
}

/* ===== Works ===== */
.grid-works{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(12, 1fr);
}

.work{
  grid-column:span 4;
  background:var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.work:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 38px rgba(0,0,0,.6);
  border-color:rgba(216,27,96,.35);
}

.work .meta{
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:14px;
  color:var(--muted);
}

/* ★ここが“背景画像＋高さ”を作る本体 */
.work-thumb{
  width:100%;
  padding-top:133.33%;          /* ←この行で高さを作ってる。絶対消さない。 */
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* 画像のパス（ここは前と同じファイル置き場ならこのままでOK） */
.work-thumb-1{ background-image:url("/image/004.png"); }
.work-thumb-2{ background-image:url("/image/002.png"); }
.work-thumb-3{ background-image:url("/image/003.png"); }

@media (max-width:920px){
  .work{ grid-column:span 6; }
}
@media (max-width:640px){
  .work{ grid-column:span 12; }
}


/* ===== News ===== */
.news{
  display:grid;
  gap:10px;
}
.news-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px;
  background:var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  transition:all .3s ease;
  transition: background 0.8s ease-in-out, border-color 0.8s ease-in-out, transform 0.4s ease;
}
.news-item:hover{
  background: linear-gradient(180deg, rgba(163,27,59,.16), rgba(39,39,42,.12));
  border-color: rgba(163,27,59,.35);
  transform: translateY(-3px);
}
.badge{
  font-size:12px;
  color:#fff;
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  padding:2px 8px;
  border-radius:999px;
}
time{
  color:var(--muted);
  font-size:13px;
}

/* ===== Shops ===== */
.shops{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}

.shop{
  background:#111;  /* ベースはフラットにして差を出す */
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
  transition:
    background 0.9s ease-in-out,
    border-color 0.6s ease-in-out,
    box-shadow 0.4s ease-in-out,
    transform 0.3s ease-in-out;
}

.shop h3{
  margin:8px 0 6px;
}

.shop p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.shop .go{
  margin-top:12px;
}

.shop .go .btn{
  width:100%;
  text-align:center;
}

/* ホバー時：深紅×墨がじわっと浮く */
.shop:hover{
  background:
    radial-gradient(circle at top left, rgba(163,27,59,.24), transparent 65%),
    radial-gradient(circle at bottom right, rgba(24,24,27,.85), transparent 70%);
  border-color: rgba(163,27,59,.55);
  box-shadow:0 18px 40px rgba(0,0,0,.8);
  transform:translateY(-4px);
}


@media (max-width:920px){
  .shops{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .shops{ grid-template-columns:1fr; }
}

/* ===== Footer ===== */
footer{
  padding:40px 0 60px;
  color:var(--muted);
}
.socials{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:#111;
  transition:all .3s ease;
  transition: background 0.8s ease-in-out, border-color 0.8s ease-in-out, transform 0.4s ease;
}
.chip:hover{
  background: linear-gradient(180deg, rgba(163,27,59,.16), rgba(39,39,42,.12));
  border-color: rgba(163,27,59,.35);
  transform: translateY(-3px);
}

/* ===== Back to Top ボタン ===== */
.back-to-top{
  position:fixed;
  right:14px; bottom:16px;
  padding:10px 12px;
  border-radius:999px;
  background:#1f2937;
  color:#fff;
  font-weight:600;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 20px rgba(0,0,0,.4);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  z-index:1100;
}
.back-to-top.show{
  opacity:1;
  pointer-events:auto;
}

/* ===== Intersection reveal ===== */
.reveal{
  opacity:0;
  transform:translateY(10px);
  transition:all .6s ease;
}
.reveal.in{
  opacity:1;
  transform:none;
}

/* ===== 旧ブラウザ用アンカー補正 ===== */
:target::before{
  content:"";
  display:block;
  height:calc(var(--header-h) + var(--anchor-extra));
  margin-top:calc(-1 * (var(--header-h) + var(--anchor-extra)));
}
