/* ==========================================================================
   阿南町クリエイターチーム A.C.T
   白と黒（ロゴ）を土台に、色は写真と映像にだけ置く。
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --slate: #38435c;        /* 名刺の地色から */
  --rec: #f0595c;          /* Cinematic LiveView の LIVE バッジから */
  --rule: #d5d8de;
  --mute: #5a6172;
  --mute-on-dark: #b9bfcc;

  --mincho: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --gothic: "Zen Kaku Gothic New", "Yu Gothic Medium", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --content: 1120px;
  --header-h: 64px;
  --section-gap: clamp(64px, 8.5vw, 120px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--gothic);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 3px solid var(--rec);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--content));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 30;
  padding: 8px 16px;
  background: var(--white);
  color: var(--black);
}
.skip-link:focus { top: 8px; }

/* ---------- 見出し・本文 ---------- */

.heading {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.875rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  word-break: auto-phrase;
}

@media (max-width: 859px) {
  .br-wide { display: none; }
}

.prose {
  max-width: 38em;
  margin-top: clamp(20px, 3vw, 32px);
}
.prose p + p { margin-top: 1.2em; }

.actions { margin-top: clamp(28px, 4vw, 40px); }

/* ---------- ボタン ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.6em 1.6em;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button--primary {
  background: var(--rec);
  border-color: var(--rec);
  color: var(--black);
}
.button--primary:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.button--ghost { border-color: currentColor; }

/* 暗い地の上では、ホバーで白に反転する */
.hero__bar .button:hover,
.section--slate .button:hover,
.section--black .button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* ---------- ヘッダー（上の黒帯） ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--black);
  color: var(--white);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo { width: auto; height: 44px; }
.brand__name { display: grid; line-height: 1.25; }
.brand__abbr {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}
.brand__full { font-size: 0.75rem; letter-spacing: 0.06em; }

.site-nav__list {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
}
.site-nav a {
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { text-decoration: underline; }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--white);
  border-radius: 2px;
  background: none;
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1019px) {
  .js .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--black);
    border-top: 1px solid #333;
  }
  .js .site-nav { display: none; }
  .js .site-nav[data-open] { display: block; }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    font-size: 1rem;
  }
  /* スクリプトが動かない環境では、メニューを帯の下にそのまま並べる */
  html:not(.js) .site-nav { position: static; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
}

/* ---------- トップ：シネマスコープの画面 ---------- */

.hero {
  background: var(--black);
  color: var(--white);
}
.hero__frame {
  position: relative;
  overflow: hidden;
}
.hero__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 38% 50%;
}
.hero__title {
  padding: 28px var(--gutter) 4px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.375rem, 7.4vw, 3rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}

/* 幕が上下に開く（読み込み時の一度だけ） */
.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 50%;
  background: var(--black);
  animation: curtain 1.1s cubic-bezier(0.7, 0, 0.2, 1) 0.2s both;
}
.hero__frame::before { top: 0; transform-origin: top; }
.hero__frame::after { bottom: 0; transform-origin: bottom; }

@keyframes curtain {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

.hero__bar-inner {
  display: grid;
  gap: 24px;
  padding-block: 20px 44px;
}
.hero__lead { max-width: 30em; word-break: auto-phrase; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 860px) {
  .hero__image {
    aspect-ratio: 2.39 / 1;
    object-position: 50% 58%;
  }
  .hero__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    font-size: clamp(2.5rem, 4.6vw, 4.25rem);
    padding: 9% max(var(--gutter), (100% - var(--content)) / 2) clamp(28px, 4.2vw, 64px);
    background: linear-gradient(to top, rgb(0 0 0 / 0.58), rgb(0 0 0 / 0.3) 50%, rgb(0 0 0 / 0));
    text-shadow: 0 1px 18px rgb(0 0 0 / 0.35);
    animation: title-in 0.9s ease-out 1s both;
  }
  .hero__bar-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding-block: 28px 32px;
  }
}

@keyframes title-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- セクション共通 ---------- */

.section { padding-block: var(--section-gap); }
.section--ruled { padding-top: 0; }
.section--ruled > .wrap {
  padding-top: var(--section-gap);
  border-top: 1px solid var(--black);
}
.section--black { background: var(--black); color: var(--white); }
.section--slate { background: var(--slate); color: var(--white); }
.section--flush { padding-bottom: 0; }

.split {
  display: grid;
  gap: clamp(40px, 6vw, 56px);
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(48px, 7vw, 104px);
    align-items: start;
  }
}

/* ---------- チームについて ---------- */

.facts { border-top: 1px solid var(--black); }
.facts__row {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.7;
}
.facts dt { color: var(--mute); font-size: 0.9375rem; }
.facts dd { font-weight: 500; }

.scope {
  width: min(100% - var(--gutter) * 2, var(--content));
  margin: clamp(48px, 7vw, 88px) auto 0;
}
.scope img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 0%;
}
@media (min-width: 860px) {
  .scope img { aspect-ratio: 2.39 / 1; }
}

/* ---------- 名前の由来 ---------- */

.acts { margin-top: clamp(32px, 5vw, 56px); }
.acts__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 32px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.acts__item:first-child { border-top: 1px solid var(--rule); }
.acts__word {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #7b8294;                 /* 語尾。共通の語幹 “Act” だけを黒で立てる */
}
.acts__stem { color: var(--black); }
.acts__meaning {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.125rem;
}
.acts__text { color: var(--mute); }

@media (min-width: 860px) {
  .acts__item {
    grid-template-columns: minmax(0, 5.6fr) minmax(0, 2.4fr) minmax(0, 6fr);
    align-items: baseline;
  }
}

/* ---------- 活動内容 ---------- */

.activities { margin-top: clamp(32px, 5vw, 56px); }
.activities__item {
  display: grid;
  gap: 4px 32px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.activities__item:first-child { border-top: 1px solid var(--rule); }
.activities__title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.6;
}
@media (min-width: 860px) {
  .activities__item {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    align-items: baseline;
  }
}

/* ---------- これまでの活動（年表） ---------- */

.history { margin-top: clamp(32px, 5vw, 56px); }
.history__year {
  display: grid;
  gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--black);
}
.history__year + .history__year { margin-top: clamp(32px, 4vw, 48px); }
.history__label {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.history__unit { margin-left: 0.15em; font-size: 0.4em; }
.history__item {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  column-gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.7;
}
.history__item:first-child { padding-top: 4px; }
.history__month {
  grid-row: 1 / span 3;
  color: var(--mute);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.history__item p { grid-column: 2; font-weight: 500; word-break: auto-phrase; }
.history__source {
  margin-top: 16px;
  color: var(--mute);
  font-size: 0.875rem;
}
@media (min-width: 860px) {
  .history__year { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
}

/* ---------- 映像 ---------- */

.videos {
  display: grid;
  gap: 40px 32px;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (min-width: 760px) {
  .videos { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}
.video { display: block; text-decoration: none; }
.video__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #222;
}
.video__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.2s;
}
.video__play {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
}
.video__play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--black);
}
.video:hover .video__thumb img { opacity: 0.82; }
.video:hover .video__play { background: var(--rec); }
.video__title {
  display: block;
  margin-top: 16px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.6;
}
.video:hover .video__title { text-decoration: underline; }
.video__meta {
  display: block;
  margin-top: 4px;
  color: var(--mute-on-dark);
  font-size: 0.9375rem;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: clamp(40px, 6vw, 64px);
  font-weight: 700;
}

/* ---------- 映画までの道のり（フィルム） ---------- */

.strip {
  --hole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='16'%3E%3Crect x='12' width='22' height='16' rx='3' fill='%23fff'/%3E%3C/svg%3E");
  margin-top: clamp(40px, 6vw, 72px);
  padding: 48px 0;
  background:
    var(--hole) repeat-x left 16px,
    var(--hole) repeat-x left calc(100% - 16px),
    var(--black);
}
.strip__frames {
  display: grid;
  gap: 10px;
  width: min(100% - var(--gutter) * 2, var(--content));
  margin-inline: auto;
}
@media (min-width: 860px) {
  .strip__frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.strip__frame {
  padding: clamp(24px, 3vw, 36px) clamp(22px, 2.6vw, 34px) clamp(30px, 3.4vw, 44px);
  background: var(--white);
  color: var(--black);
}
.strip__number {
  display: block;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
}
.strip__title {
  margin-top: 18px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.5;
}
.strip__frame p { margin-top: 8px; line-height: 1.8; }

/* ---------- 代表紹介 ---------- */

.rep__banner { margin-top: clamp(28px, 4vw, 48px); }
.rep__banner img { width: 100%; }
.rep__body { margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) {
  .rep__body { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 32px; }
}
.rep__role { color: var(--mute); font-size: 0.9375rem; }
.rep__fullname {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.rep__kana { color: var(--mute); font-size: 0.875rem; letter-spacing: 0.12em; }
.rep__bio { margin-top: 0; }

/* ---------- メンバー募集 ---------- */

.welcome {
  padding-top: 20px;
  border-top: 1px solid var(--black);
}
.welcome__title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.25rem;
}
.welcome__title--next { margin-top: 36px; }
.welcome__list { margin-top: 12px; }
.welcome__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

/* ---------- 協賛 ---------- */

.tiers__unit {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.tiers__unit strong {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.tiers__table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  line-height: 1.7;
}
.tiers__table caption {
  padding-bottom: 8px;
  color: var(--mute-on-dark);
  font-size: 0.9375rem;
  text-align: left;
}
.tiers__table th,
.tiers__table td {
  padding: 14px 0;
  border-top: 1px solid rgb(255 255 255 / 0.35);
  text-align: left;
  vertical-align: top;
}
.tiers__table thead th {
  color: var(--mute-on-dark);
  font-size: 0.9375rem;
  font-weight: 400;
}
.tiers__table tbody th {
  width: 6.5em;
  padding-right: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.tiers__table tbody tr:last-child > * { border-bottom: 1px solid rgb(255 255 255 / 0.35); }
.tiers__note { margin-top: 16px; font-size: 0.9375rem; }

/* ---------- お問い合わせ・フッター（下の黒帯） ---------- */

.site-footer {
  padding-block: var(--section-gap) 40px;
  background: var(--black);
  color: var(--white);
}
.contacts {
  display: grid;
  gap: 0 40px;
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid #444;
}
@media (min-width: 860px) {
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
}
.contacts__item {
  display: grid;
  gap: 2px;
  padding: 18px 0 20px;
  border-bottom: 1px solid #444;
}
@media (min-width: 860px) {
  .contacts__item { border-top: 1px solid #444; }
}
.contacts__label { color: var(--mute-on-dark); font-size: 0.9375rem; }
.contacts__item a {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* 下書き用の注意書き（公開前に HTML ごと削除する） */
.draft-note {
  max-width: 44em;
  margin-top: 32px;
  padding: 14px 18px;
  border: 1.5px dashed var(--rec);
  color: var(--rec);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(64px, 9vw, 112px);
  padding-top: 28px;
  border-top: 1px solid #444;
}
.site-footer__logo { width: auto; height: 64px; }
.site-footer__copy { font-size: 0.875rem; letter-spacing: 0.06em; }

/* ---------- 動きを減らす設定の人には、動かさない ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__frame::before,
  .hero__frame::after { display: none; }
  .hero__title { animation: none; }
  .button, .video__thumb img { transition: none; }
}
