/* ===== Design tokens (beige theme) ===== */
:root {
  --bg: #f5ecdc;
  --bg-soft: #efe4d1;
  --card: #fffdf8;
  --text: #322b22;
  --muted: #8a7c69;
  --line: rgba(60, 45, 25, 0.12);
  --brand: #c2622e;       /* terracotta */
  --brand-2: #d99a4e;     /* warm gold */
  --gold: #b58a3c;
  --grad: linear-gradient(120deg, #c2622e 0%, #d99a4e 100%);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(80, 55, 25, 0.16);
  --shadow-soft: 0 10px 30px rgba(80, 55, 25, 0.1);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* 文章を文節ごとに区切り、語の途中で改行されないようにする（日本語向け） */
.nowrap { display: inline-block; }

/* ===== ログインゲート ===== */
.login {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #2a221b;
}
.login__bg {
  position: absolute;
  inset: 0;
  background: url("images/photo2.jpeg") center/cover no-repeat;
  transform: scale(1.05);
  filter: saturate(1.05);
}
.login__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(160deg, rgba(40, 30, 20, 0.55), rgba(30, 22, 14, 0.78)),
    radial-gradient(60% 60% at 50% 30%, rgba(194, 98, 46, 0.28), transparent 70%);
}
.login__card {
  position: relative;
  z-index: 3;
  width: min(100%, 380px);
  background: rgba(255, 251, 244, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 40px 30px 30px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.login__logo {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login__lead { color: var(--muted); margin: 8px 0 24px; font-size: 14px; }
.login__field {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.login__field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(194, 98, 46, 0.18);
}
.login__field input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.login__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.login__btn:hover { transform: translateX(2px); filter: brightness(1.06); }
.login__error { color: #c0392b; font-size: 13px; min-height: 18px; margin-top: 12px; }
.login__hint { color: var(--muted); font-size: 12px; opacity: 0.7; margin-top: 6px; }
.login.shake .login__card { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-9px); }
  40%, 80% { transform: translateX(9px); }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(245, 236, 220, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(80, 55, 25, 0.08);
  padding-top: 12px;
  padding-bottom: 12px;
}
/* ヘッダーのロゴ：フッターの画像(白抜き)をマスクにして、ブランド色で表示 */
.brand {
  display: block;
  width: 116px;
  height: 42px;
  background: var(--grad);
  -webkit-mask: url("images/raise-logo.png") left center / contain no-repeat;
  mask: url("images/raise-logo.png") left center / contain no-repeat;
}
@media (max-width: 480px) { .brand { width: 100px; height: 36px; } }
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width 0.25s;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(76vw, 300px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 0 40px;
    background: rgba(247, 240, 228, 0.97);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 40px rgba(80, 55, 25, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 20px; }
}

/* ===== Hero (ベージュ・集合写真は全体表示) ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 48px) 90px;
  background:
    radial-gradient(50% 50% at 12% 18%, rgba(217, 154, 78, 0.22), transparent 60%),
    radial-gradient(48% 48% at 90% 85%, rgba(194, 98, 46, 0.14), transparent 62%);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.hero__tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--brand);
  margin-bottom: 12px;
  animation: rise 0.7s 0.05s both;
}
.hero__title {
  font-size: clamp(72px, 13vw, 128px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.8s 0.1s both;
}
.hero__sub {
  font-size: clamp(20px, 4.2vw, 30px);
  font-weight: 700;
  margin-top: 10px;
  animation: rise 0.8s 0.2s both;
}
.hero__lead {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 17px);
  margin-top: 20px;
  max-width: 540px;
  animation: rise 0.8s 0.36s both;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  animation: rise 0.8s 0.44s both;
}
.hero__photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fffdf8;
  border: 6px solid #fffdf8;
  box-shadow: var(--shadow);
  rotate: 1deg;
  animation: rise 0.9s 0.2s both;
}
/* 集合写真は切り取らず全体を表示 */
.hero__photo img { width: 100%; height: auto; display: block; border-radius: 16px; }
@media (max-width: 820px) {
  .hero { padding-top: 110px; align-items: flex-start; }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__photo { rotate: 0deg; order: 2; }
}
/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px rgba(194, 98, 46, 0.32);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(194, 98, 46, 0.42); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brand); }
.btn--light {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.btn--light:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.22); }

/* ===== Sections ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 130px) clamp(20px, 5vw, 48px);
}
.section__head { text-align: center; margin-bottom: 56px; }
.section__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--brand);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__desc { color: var(--muted); margin-top: 14px; font-size: 15px; }

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 70px;
}
.about__text p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.about__text strong { color: var(--text); }
.stats { list-style: none; display: grid; gap: 16px; }
.stats li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}
.stats__num {
  font-size: 40px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stats__label { color: var(--muted); font-size: 14px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 154, 78, 0.2), rgba(194, 98, 46, 0.14));
  margin-bottom: 18px;
  color: var(--brand);
}
.feature__icon svg { width: 32px; height: 32px; }

/* テキスト中に置く小さなアイコン */
.ico-inline { width: 1.05em; height: 1.05em; vertical-align: -0.18em; }
.ico-inline--brand { color: var(--brand); }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ===== Champions ===== */
.champions__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.champions__photo {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fffdf8;
  rotate: -1.5deg;
}
.champions__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.champions__lead { color: var(--muted); font-size: 16px; margin: 16px 0 24px; }
.champions__lead strong { color: var(--brand); }
.champions__list { list-style: none; display: grid; gap: 10px; }
.champions__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.champions__list span {
  flex: 0 0 70px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
}
@media (max-width: 760px) {
  .champions__grid { grid-template-columns: 1fr; }
  .champions__photo { rotate: 0deg; max-width: 360px; margin: 0 auto; }
}

/* ===== Spirit (円陣・全体表示) ===== */
.spirit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.spirit__quote {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-top: 8px;
}
.spirit__lead { margin-top: 18px; font-size: 16px; color: var(--muted); max-width: 420px; }
.spirit__photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fffdf8;
  border: 6px solid #fffdf8;
  box-shadow: var(--shadow);
  rotate: -1deg;
}
/* 円陣の写真も切り取らず全体を表示 */
.spirit__photo img { width: 100%; height: auto; display: block; border-radius: 16px; }
@media (max-width: 760px) {
  .spirit__grid { grid-template-columns: 1fr; }
  .spirit__photo { rotate: 0deg; order: 2; }
}

/* ===== Schedule ===== */
.timeline { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.timeline__item {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline__item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.timeline__day {
  flex: 0 0 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
}
.timeline__body h3 { font-size: 18px; }
.timeline__time { color: var(--brand); font-weight: 700; font-size: 14px; margin: 2px 0 6px; }
.timeline__body p:last-child { color: var(--muted); font-size: 14px; }

/* ===== Join ===== */
.join { display: grid; place-items: center; }
.join__card {
  position: relative;
  width: 100%;
  max-width: 820px;
  text-align: center;
  padding: clamp(40px, 7vw, 70px);
  border-radius: 28px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(217, 154, 78, 0.18), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.join__card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 28px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.join__title { font-size: clamp(28px, 6vw, 44px); font-weight: 800; margin: 14px 0 16px; letter-spacing: -0.02em; }
.join__lead { color: var(--muted); font-size: 16px; }
.join__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.join__note { color: var(--muted); font-size: 12px; opacity: 0.7; margin-top: 22px; }

/* ===== Gallery (マソンリー・写真は全体表示) ===== */
.gallery-grid {
  column-count: 2;
  column-gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.gallery__item {
  position: relative;
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* タップ時のハイライトのチラつきを抑える */
  -webkit-tap-highlight-color: transparent;
}
/* 写真は全体表示。長押しでそのまま端末に保存できるよう、callout/選択は無効化しない */
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
/* ホバー演出はマウス端末だけ（タッチには干渉しない） */
@media (hover: hover) {
  .gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .gallery__item:hover img { transform: scale(1.05); }
}
/* ===== Roadmap (Next Action / 開発メモ) ===== */
.roadmap__list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.roadmap__list li {
  position: relative;
  padding: 15px 18px 15px 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}
.roadmap__list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--brand);
  border-radius: 5px;
}

/* 予約アタック準備への導線 */
.cal__attackwrap { text-align: center; margin-top: 22px; }
.cal__attackhint { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* ===== Footer (ロゴ・ダーク) ===== */
.footer {
  background: #15110d;
  padding: 28px 24px 24px;
  text-align: center;
}
.footer__logo {
  width: min(60vw, 260px);
  margin: 0 auto 12px;
  mix-blend-mode: screen;
}
.footer__copy { color: rgba(255, 255, 255, 0.55); font-size: 13px; }

/* ===== Movie ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }
.video__item { margin: 0; }
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}
.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* 非公開動画：YouTubeで開くリンクカード */
.video__frame--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(217, 154, 78, 0.22), transparent 70%),
    #1a1410;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video__frame--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.video__play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ff0000;
  position: relative;
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.4);
}
.video__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video__open {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.video__item figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.video__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 40px 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  line-height: 1.9;
}
.movie__subhead {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

/* 動画リスト（タイトル行）：限定動画ボックスと同じトーンに合わせる */
.video-list { display: flex; flex-direction: column; gap: 12px; }
.video-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.video-row__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  background: none;
  border: 0;
  font: inherit;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.video-row__link:hover { background: var(--bg-soft); }
.video-row__title { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.4; }
.video-row__hint { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.video-row__arrow { color: var(--muted); font-size: 14px; }
.video-row__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  position: relative;
}
.video-row__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
.video-row__icon--yt { background: #ff0000; color: #fff; }
.video-row__icon--play { background: rgba(194, 98, 46, 0.14); color: var(--brand); }
.video-row__chevron {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.video-row.is-open .video-row__chevron { transform: rotate(-135deg); }
.video-row__embed { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.video-row.is-open .video-row__embed { max-height: 60vw; }
@media (min-width: 720px) { .video-row.is-open .video-row__embed { max-height: 420px; } }
.video-row__embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-top: 1px solid var(--line);
}
.vault {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 30px);
}
.vault__head { display: flex; gap: 14px; align-items: flex-start; }
.vault__lock { color: var(--brand); line-height: 1; }
.vault__lock svg { width: 28px; height: 28px; }
.vault__head strong { font-size: 17px; }
.vault__head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.vault__form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.vault__form input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vault__form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(194, 98, 46, 0.15); }
.vault__form .btn { padding: 12px 26px; }
.vault__msg { color: var(--brand); font-size: 13px; min-height: 18px; margin-top: 12px; font-weight: 600; }
.vault #vaultGrid:not(:empty) { margin-top: 22px; }

/* ===== Availability calendar ===== */
.cal {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 3vw, 28px);
}
.cal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cal__gyms {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cal__gyms::-webkit-scrollbar { display: none; }
.cal__gym {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.cal__gym:hover { color: var(--text); }
.cal__gym.is-active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.cal__slotbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cal__slotlabel { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal__slots { display: flex; gap: 6px; flex-wrap: wrap; }
.cal__slot {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.cal__slot:hover { color: var(--text); }
.cal__slot.is-active { background: var(--brand); color: #fff; border-color: transparent; }
.cal__taphint { margin-left: auto; opacity: 0.8; }
.cal__nav { display: flex; align-items: center; gap: 10px; }
.cal__navbtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cal__navbtn:hover { border-color: var(--brand); }
.cal__month { font-weight: 800; font-size: 17px; min-width: 120px; text-align: center; }
.cal__legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--ok { background: #3f9b6b; }
.dot--ok2 { background: #2f8d5e; box-shadow: 0 0 0 2px rgba(47,141,94,0.35); }
.dot--few { background: #d9a23f; }
.dot--full { background: #c0563f; }
.dot--closed { background: #9b8f96; }
.dot--none { background: #cfc4b1; }
.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal__weekdays {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.cal__weekdays span:first-child { color: #c0563f; }
.cal__weekdays span:last-child { color: #4d7cff; }
.cal__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
.cal__cell--empty { background: transparent; }
.cal__cell { cursor: pointer; font-family: inherit; }
.cal__cell--empty { cursor: default; }
.cal__cell--today { border-color: var(--brand); }
.cal__cell--sel { outline: 2px solid var(--brand); outline-offset: 1px; }
.cal__cell .num { color: var(--text); }
.cal__cell--ok { background: rgba(63, 155, 107, 0.14); }
/* 2面以上の空き（◎）はより濃い緑で強調 */
.cal__cell--ok2,
.cal__cell--ok3 { background: rgba(63, 155, 107, 0.30); }
.cal__cell--ok2 .mark,
.cal__cell--ok3 .mark { color: #2f8d5e; font-weight: 800; }
/* 「すべて」で2館以上空いている日は、空き館数を右上にバッジ表示 */
.cal__cell--multi { background: rgba(63, 155, 107, 0.26); }
.cal__count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #3f9b6b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.cal__cell--few { background: rgba(217, 162, 63, 0.16); }
.cal__cell--full { background: rgba(192, 86, 63, 0.14); }
.cal__cell--closed { background: rgba(155, 143, 150, 0.16); }
.cal__cell .mark { font-size: 11px; line-height: 1; }
.cal__cell--ok .mark { color: #3f9b6b; }
.cal__cell--few .mark { color: #d9a23f; }
.cal__cell--full .mark { color: #c0563f; }
.cal__cell--closed .mark { color: #8a7f86; }
.cal__cell--none .mark { color: #b6a98f; }
.cal__meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.cal__updated { font-weight: 700; color: var(--text); }
.cal__source {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(194, 98, 46, 0.1);
  border: 1px solid rgba(194, 98, 46, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
}
.cal__empty { text-align: center; color: var(--muted); padding: 30px 0; }
.cal__detail:not(:empty) {
  margin-top: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.cal__detailhead { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.cal__slotlist { list-style: none; display: grid; gap: 6px; }
.cal__slotrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--card);
}
.cal__slotrow .mark { font-size: 13px; }
.cal__slotrow--ok { background: rgba(63, 155, 107, 0.12); }
.cal__slotrow--ok .mark { color: #3f9b6b; }
.cal__slotrow--ok2,
.cal__slotrow--ok3 { background: rgba(63, 155, 107, 0.22); }
.cal__slotrow--ok2 .mark,
.cal__slotrow--ok3 .mark { color: #2f8d5e; font-weight: 800; }
.cal__slotrow--full { color: var(--muted); }
.cal__slotrow--full .mark { color: #c0563f; }
.cal__slotrow--closed { color: var(--muted); }
.cal__slotrow--closed .mark { color: #8a7f86; }
.cal__slotrow--none .mark { color: #b6a98f; }
/* 選択中の時間帯の行を強調 */
.cal__slotrow--sel { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 8px; font-weight: 800; }

/* LINE 空き通知の案内＋ボタン */
.cal__notify { text-align: center; margin-top: 22px; }
.cal__notifylead { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #06c755; color: #fff; border: 0;
}
.line-btn:hover { background: #05b14c; transform: translateY(-2px); }
.line-btn svg { flex: none; }
/* 詳細：空いてる体育館のカードを横スライド表示 */
.cal__cardhint { font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 8px; }
.cal__cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.cal__card {
  flex: 0 0 min(82%, 290px);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.cal__card--single { flex-basis: 100%; }
.cal__cardname { font-weight: 800; font-size: 15px; margin-bottom: 10px; color: var(--brand); }
@media (max-width: 480px) {
  .cal__cell { font-size: 12px; border-radius: 8px; }
  .cal__month { font-size: 15px; min-width: 96px; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .timeline__item { gap: 16px; padding: 18px; }
  .timeline__day { flex-basis: 54px; height: 54px; font-size: 17px; }
}

/* =====================================================================
   ✦ Refined Warm — editorial theme (Fable)
   既存の構造はそのまま、見た目と動きを"温かみ×洗練"に底上げ。
   後置きの上書きなので、上のルールより優先されます。
   ===================================================================== */
:root {
  --font-display: "Fraunces", "Shippori Mincho", Georgia, serif;
  --font-body: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;

  --bg: #f6eee0;
  --bg-soft: #efe3d0;
  --card: #fffaf2;
  --text: #2a221a;
  --ink: #1b140f;
  --muted: #91826d;
  --line: rgba(58, 42, 24, 0.12);
  --brand: #bd5a2a;
  --brand-2: #d99a4e;
  --gold: #b0853a;
  --grad: linear-gradient(115deg, #bd5a2a 0%, #d99a4e 96%);
  --radius: 20px;
  --shadow: 0 30px 70px -28px rgba(74, 46, 18, 0.42);
  --shadow-soft: 0 18px 44px -26px rgba(74, 46, 18, 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.15, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  counter-reset: sec;
  /* background-attachment: fixed はiOS Safariで再描画バグ（画像のチラつき）を
     起こすため使わない。グラデは通常スクロールで描画する。 */
  background:
    radial-gradient(120% 80% at 6% -6%, rgba(217, 154, 78, 0.13), transparent 55%),
    radial-gradient(110% 70% at 100% 106%, rgba(189, 90, 42, 0.08), transparent 55%),
    var(--bg);
}

/* ===== Typography ===== */
.section__title,
.hero__title,
.hero__sub {
  font-family: var(--font-display);
}
.section__title {
  font-size: clamp(34px, 6.6vw, 60px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section__desc { font-size: 15.5px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* キッカー（タグ）＝ エディトリアルな通し番号「01 — ABOUT」 */
.section__head { margin-bottom: clamp(44px, 7vw, 72px); }
.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  counter-increment: sec;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brand);
}
.section__tag::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand-2);
}
.section__tag::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section__head::after {
  content: "";
  display: block;
  width: 0; height: 2px;
  margin: 26px auto 0;
  border-radius: 2px;
  background: var(--grad);
  transition: width 1s var(--ease) 0.2s;
}
.section__head.in::after { width: 72px; }

/* ===== Hero ===== */
.hero__title {
  font-weight: 600;
  font-size: clamp(82px, 14vw, 150px);
  letter-spacing: -0.03em;
  line-height: 0.92;
}
.hero__tag {
  font-family: var(--font-body);
  letter-spacing: 0.42em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero__tag::after {
  content: "";
  width: 46px; height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.hero__sub {
  font-weight: 500;
  font-size: clamp(22px, 4.4vw, 34px);
  color: var(--brand);
}
.hero__photo { border-radius: 26px; border-width: 8px; }
.hero__photo img { border-radius: 18px; }

/* ===== Header / Nav ===== */
.header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav a { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; }

/* ===== Buttons ===== */
.btn { letter-spacing: 0.02em; padding: 15px 32px; }
.btn--primary { box-shadow: 0 16px 34px -14px rgba(189, 90, 42, 0.6); }
.btn--primary:hover { transform: translateY(-3px) scale(1.01); }

/* ===== Cards: soft hover lift ===== */
.feature, .vault, .timeline__item {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
@media (hover: hover) {
  .feature:hover, .vault:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
}

/* ===== Footer ===== */
.footer { background: #1b1410; }

/* ===== Reveal: richer + per-item stagger（--rd はJSで付与） ===== */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-zoom { transform: scale(0.92); }
.reveal-left.in, .reveal-right.in, .reveal-zoom.in { transform: none; }

/* ===== Scroll progress bar（JSで生成） ===== */
.scrollprog {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--grad);
  z-index: 1000;
  box-shadow: 0 0 12px rgba(189, 90, 42, 0.5);
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrollprog { display: none; }
}

/* =====================================================================
   ✦ Refined Warm — v2 追加（ロゴ画像化／ログイン演出／写真トリミング／追加モーション）
   ===================================================================== */

/* ロゴ：ヒーローの「raise」をヘッダーと同じロゴ画像に（グラデ塗り） */
.hero__title {
  width: min(72vw, 520px);
  max-width: 100%;
  height: clamp(84px, 16vw, 168px);
  background: var(--grad);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: transparent;
  -webkit-mask: url("images/raise-logo.png") left center / contain no-repeat;
  mask: url("images/raise-logo.png") left center / contain no-repeat;
}
@media (max-width: 820px) {
  .hero__title { width: min(82vw, 460px); }
}

/* ロゴ：ログインの「raise」も同じロゴ画像に */
.login__logo {
  width: 156px;
  height: 52px;
  margin: 0 auto;
  background: var(--grad);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: transparent;
  -webkit-mask: url("images/raise-logo.png") center / contain no-repeat;
  mask: url("images/raise-logo.png") center / contain no-repeat;
}

/* ログイン背景：チーム写真がゆっくり切り替わるスライドショー（Ken Burns） */
.login__slides { position: absolute; inset: 0; overflow: hidden; }
.login__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  will-change: opacity, transform;
  transition: opacity 1.6s ease;
}
/* JSで .is-active を付け替えてクロスフェード＋ゆっくりズーム */
.login__slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: loginKen 8s ease-out forwards;
}
@keyframes loginKen {
  from { transform: scale(1.12); }
  to   { transform: scale(1.0); }
}

/* 円陣の写真を正方形でくり抜く */
.spirit__photo img {
  aspect-ratio: 1 / 1;
  height: auto;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* 写真ホバーでじんわりズーム */
@media (hover: hover) {
  .champions__photo img,
  .spirit__photo img,
  .hero__photo img {
    transition: transform 0.9s var(--ease);
  }
  .champions__photo:hover img,
  .spirit__photo:hover img,
  .hero__photo:hover img {
    transform: scale(1.06);
  }
}

/* プライマリボタンに光のスイープ */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after { left: 135%; }

/* 動画行・予約カードもホバーで持ち上げ */
@media (hover: hover) {
  .video-row, .vault {
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  }
  .video-row:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .login__slide:first-child { opacity: 1; }
}

/* =====================================================================
   ✦ Refined Warm — v3（ギャラリー刷新／ライトボックス／アップローダー／
     マーキー／グレイン／フッター刷新／カレンダー安定化）
   ===================================================================== */

/* ===== Gallery: 行優先グリッド（左上→右上→左下…の並び・全体表示） ===== */
.gallery-grid {
  column-count: unset;
  column-gap: unset;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;       /* 各画像は行の上端ぞろえ（高さは自然のまま） */
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.gallery__item {
  margin: 0;
  break-inside: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  position: relative;
}
/* 写真は自然な縦横比で全体表示（横長でも切れない） */
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}
/* キャプションは下からのグラデで重ねる（ホバー時のみ） */
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 20, 16, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .gallery__item:hover img { transform: scale(1.06); }
  .gallery__item:hover::after { opacity: 1; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== Lightbox ===== */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 14, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lbIn 0.3s var(--ease);
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__body { margin: 0; text-align: center; min-width: 0; padding: 0 8px; }
.lightbox__body img {
  max-width: min(90vw, 1100px);
  max-height: 80svh;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: lbZoom 0.35s var(--ease);
}
@keyframes lbZoom { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__body figcaption { color: rgba(255, 252, 246, 0.75); font-size: 13.5px; margin-top: 14px; padding: 0 16px; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background 0.25s, transform 0.25s;
}
.lightbox__close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); width: 44px; height: 44px; font-size: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; }
.lightbox__nav--prev { left: max(10px, env(safe-area-inset-left)); }
.lightbox__nav--next { right: max(10px, env(safe-area-inset-right)); }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.06); }
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-50%) scale(1.06); }

/* ===== Uploader（動画・写真の追加フォーム） ===== */
.uploader { max-width: 760px; margin: 26px auto 0; text-align: center; }
.uploader__toggle {
  background: none;
  border: 1px dashed rgba(58, 42, 24, 0.3);
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.uploader__toggle:hover { color: var(--brand); border-color: var(--brand); background: rgba(189, 90, 42, 0.06); }
.uploader__form {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  text-align: left;
}
.uploader__rows { display: flex; flex-direction: column; gap: 10px; }
.uploader__row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
.uploader__row input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  min-width: 0;
}
.uploader__row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(189, 90, 42, 0.14); }
.uploader__rowdel {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
}
.uploader__rowdel:hover { color: #c0392b; }
.uploader__addrow {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--brand);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
}
.uploader__drop {
  display: grid;
  place-items: center;
  border: 2px dashed rgba(58, 42, 24, 0.22);
  border-radius: 14px;
  padding: 30px 16px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.uploader__drop:hover { border-color: var(--brand); background: rgba(189, 90, 42, 0.05); }
.uploader__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.uploader__previews img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.uploader__foot { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.uploader__foot input {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.uploader__foot input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(189, 90, 42, 0.14); }
.uploader__msg { font-size: 13px; color: var(--brand); min-height: 18px; margin-top: 12px; font-weight: 600; }

/* 動画の種類切替（非公開／限定公開） */
.uploader__type { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 14px; }
.uploader__type label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; cursor: pointer; }
.uploader__type input { accent-color: var(--brand); }
.is-hidden { display: none !important; }

@media (max-width: 560px) {
  .uploader__row { grid-template-columns: 1fr; }
  .uploader__rowdel { justify-self: end; }
}

/* ギャラリー編集ツールバー */
.gallery-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.gallery-tools__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gallery-tools__count { font-size: 13px; font-weight: 600; color: var(--muted); }
.gallery-tools__del { background: #c83232; color: #fff; border: 0; }
.gallery-tools__del:hover { background: #b02a2a; }
.gallery-tools__hint { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }

/* 編集モードの選択・名前入力 */
.gallery-grid.is-editing .gallery__item { cursor: pointer; }
.gallery__item .gallery__check {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 24px; height: 24px; border-radius: 999px;
  background: rgba(20,20,20,0.45); border: 2px solid #fff;
}
.gallery__item.is-selected .gallery__check { background: var(--brand); }
.gallery__item.is-selected .gallery__check::after {
  content: "✓"; color: #fff; font-size: 14px; font-weight: 800;
  position: absolute; inset: 0; display: grid; place-items: center;
}
.gallery__item.is-selected { outline: 3px solid var(--brand); outline-offset: -3px; }
.gallery__item .gallery__name {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3;
  border: 0; border-radius: 8px; padding: 7px 10px;
  font: inherit; font-size: 12.5px; background: rgba(255,255,255,0.94);
}
.gallery__item .gallery__name:focus { outline: 2px solid var(--brand); }

/* 写真アップロードのプレビュー（名前入力つき） */
.uploader__preview { display: flex; flex-direction: column; gap: 6px; }
.uploader__caption {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 9px; font: inherit; font-size: 12.5px; background: #fff;
}
.uploader__caption:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(189,90,42,0.14); }

/* 削除ボタン（写真・動画 共通の丸い×） */
.gallery__del,
.video-row__del {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.62);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}
.gallery__del:hover,
.video-row__del:hover { background: rgba(200, 50, 50, 0.92); }
.gallery__del:active,
.video-row__del:active { transform: scale(0.92); }
.video-row { position: relative; }
.video-row__del { top: 11px; background: rgba(20, 20, 20, 0.42); }
.video-row__del:hover { background: rgba(200, 50, 50, 0.92); }
/* 削除ボタンぶんだけ本文の右に余白を作って重ならないようにする */
.video-row--del > .video-row__link { padding-right: 50px; }

/* 動画の編集モード：タイトル入力＋削除× */
.video-row--edit { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.video-row__edit {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font: inherit; font-size: 14px; background: #fff;
}
.video-row__edit:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(189, 90, 42, 0.14); }
.video-row--edit .video-row__del {
  position: static; transform: none; flex: none; top: auto;
  background: #c83232;
}
.video-row--edit .video-row__del:hover { background: #b02a2a; }

/* 追加フォームの見出し（編集モード内） */
.uploader__title { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 12px; }

/* お問い合わせフォーム */
.contact__form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.contact__form input,
.contact__form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
.contact__form textarea { resize: vertical; min-height: 120px; }
.contact__form input:focus,
.contact__form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(189, 90, 42, 0.14); }
.contact__form .btn { align-self: center; margin-top: 4px; }
.contact__msg { text-align: center; font-size: 13px; color: var(--brand); min-height: 18px; font-weight: 600; }

/* ===== Film grain ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Footer 刷新＋セーフエリア（下のベージュ枠を解消） ===== */
.footer {
  background: #15110d;
  padding: 56px 24px calc(28px + env(safe-area-inset-bottom));
  position: relative;
}
.footer__logo { margin-bottom: 22px; }
.footer__top {
  position: absolute;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 252, 246, 0.8);
  font-size: 18px;
  transition: background 0.25s, transform 0.25s;
}
.footer__top:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }

/* ===== カレンダー：選択時のスクロール飛びを防ぐ ===== */
.availability, #cal { overflow-anchor: none; }
.cal__cell { -webkit-tap-highlight-color: transparent; }

/* ===== ヒーロー写真の3Dチルト用 ===== */
.hero__photo { will-change: transform; transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
}
