/* ==========================================================
   basic.css — 最大幅 1200px / 12カラムグリッド
   ========================================================== */

/* ---------- 1. 変数 ---------- */
:root {
  /* テーマカラー */
  --theme-color: #188fcf;
  /* サブテーマカラー */
  --theme-sub-color: #57c3e9;

  /* 基本色 */
  --bg-color: #000;
  --text-color: #fff;
  --text-sub-color: rgba(255, 255, 255, 0.85);
  --line-color: rgba(255, 255, 255, 0.2);

  /* レイアウト */
  --container-max: 1200px;
  --gutter: 24px; /* カラム間の余白 */
  --side-padding: 24px; /* 画面端の余白 */
  --section-space: 120px; /* セクション上下の余白 */

  /* フォント */
  --font-base:
    "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", Meiryo, sans-serif;
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --side-padding: 16px;
    --section-space: 72px;

    /* スマホ */
    --text-color: #dcdcdc;
    --text-sub-color: rgba(220, 220, 220, 0.8);
  }
}

/* ---------- 2. リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 60px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--theme-sub-color);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.7;
}

::selection {
  background: var(--theme-color);
  color: var(--bg-color);
}

/* ---------- 3. 12カラムグリッド ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--side-padding) * 2);
  margin-inline: auto;
  padding-inline: var(--side-padding);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--gutter);
}

/* スマホ：基本は全幅（12カラム）。.col-◯ は768px以上で有効 */
.row > * {
  grid-column: span 12;
  min-width: 0;
}

/* 小さい画面でも2分割したい場合に使う */
.sp-6 {
  grid-column: span 6;
}
.sp-4 {
  grid-column: span 4;
}
.sp-3 {
  grid-column: span 3;
}

/* タブレット・PC（768px〜） */
@media (min-width: 768px) {
  .col-1 {
    grid-column: span 1;
  }
  .col-2 {
    grid-column: span 2;
  }
  .col-3 {
    grid-column: span 3;
  }
  .col-4 {
    grid-column: span 4;
  }
  .col-5 {
    grid-column: span 5;
  }
  .col-6 {
    grid-column: span 6;
  }
  .col-7 {
    grid-column: span 7;
  }
  .col-8 {
    grid-column: span 8;
  }
  .col-9 {
    grid-column: span 9;
  }
  .col-10 {
    grid-column: span 10;
  }
  .col-11 {
    grid-column: span 11;
  }
  .col-12 {
    grid-column: span 12;
  }

  /* 開始位置の指定（例：.col-6.start-7 で右半分） */
  .start-1 {
    grid-column-start: 1;
  }
  .start-2 {
    grid-column-start: 2;
  }
  .start-3 {
    grid-column-start: 3;
  }
  .start-4 {
    grid-column-start: 4;
  }
  .start-5 {
    grid-column-start: 5;
  }
  .start-6 {
    grid-column-start: 6;
  }
  .start-7 {
    grid-column-start: 7;
  }
  .start-8 {
    grid-column-start: 8;
  }
  .start-9 {
    grid-column-start: 9;
  }
  .start-10 {
    grid-column-start: 10;
  }
  .start-11 {
    grid-column-start: 11;
  }
}

/* PC（1024px〜）専用：.col-lg-◯ */
@media (min-width: 1024px) {
  .col-lg-3 {
    grid-column: span 3;
  }
  .col-lg-4 {
    grid-column: span 4;
  }
  .col-lg-6 {
    grid-column: span 6;
  }
}

/* ---------- 4. 共通パーツ ---------- */
.section {
  padding-block: var(--section-space);
}
.section + .section {
  border-top: 1px solid var(--line-color);
}

.section-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-sub-color);
  margin-bottom: 1.5em;
}
@media (max-width: 767px) {
  #about .section-title {
    margin-top: 2.5em;
  }
}

.heading-lg {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.text-sub {
  color: var(--text-sub-color);
}
.text-theme {
  color: var(--theme-sub-color);
}
.access-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
.text-center {
  text-align: center;
}

.stack > * + * {
  margin-top: 1.2em;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 0.9em 2.4em;
  border: 2px solid var(--theme-sub-color);
  background: var(--theme-sub-color);
  color: var(--bg-color);
  font-weight: 700;
  letter-spacing: 0.1em;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}
.btn:hover {
  background: transparent;
  color: var(--theme-sub-color);
  opacity: 1;
}
.btn--outline {
  background: transparent;
  color: var(--theme-sub-color);
}
.btn--outline:hover {
  background: var(--theme-sub-color);
  color: var(--bg-color);
}

/* ---------- 5. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-color);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 60px;
}

.site-nav ul {
  display: flex;
  gap: 2em;
}
.site-nav a {
  color: var(--text-color);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.site-nav a:hover {
  color: var(--theme-sub-color);
  opacity: 1;
}

/* ハンバーガーボタン（PCでは非表示） */
.nav-toggle {
  display: none;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition:
      transform 0.25s,
      opacity 0.2s,
      top 0.25s;
  }
  .nav-toggle span:nth-child(1) {
    top: 14px;
  }
  .nav-toggle span:nth-child(2) {
    top: 21px;
  }
  .nav-toggle span:nth-child(3) {
    top: 28px;
  }
  .is-open .nav-toggle span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }
  .is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .is-open .nav-toggle span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  /* ヘッダー直下に開くメニュー */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--line-color);
  }
  .is-open .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--side-padding) 16px;
  }
  .site-nav li + li {
    border-top: 1px solid var(--line-color);
  }
  .site-nav a {
    display: block;
    padding: 1em 0;
    font-size: 14px;
  }
}

/* ---------- 6. ヒーロー ---------- */
.hero {
  padding-top: 0;
}
/* 演出：読み込み時に蛍光灯がつくときのような明滅*/
.hero h1 {
  animation: flicker-on 2.4s ease-out 0.3s both;
}
@keyframes flicker-on {
  0%,
  10% {
    opacity: 0.04;
  }
  11% {
    opacity: 0.85;
  }
  14% {
    opacity: 0.05;
  }
  30% {
    opacity: 0.05;
  }
  31% {
    opacity: 0.6;
  }
  34% {
    opacity: 0.08;
  }
  52% {
    opacity: 0.08;
  }
  53% {
    opacity: 1;
  }
  58% {
    opacity: 0.3;
  }
  62%,
  100% {
    opacity: 1;
  }
}
/* 動きを減らす設定の人には明滅させない */
@media (prefers-reduced-motion: reduce) {
  .hero h1 {
    animation: none;
  }
}

.hero h1 img {
  width: 100%;
  height: auto;
}
/* PC：画像の上の黒い余白（幅の約5%）を詰める */
@media (min-width: 768px) {
  .hero h1 {
    margin-top: -5%;
  }
}

/* ロゴ：画面右上に固定 */
.hero-logo {
  position: fixed;
  top: 76px;
  right: max(var(--side-padding), calc((100vw - var(--container-max)) / 2));
  z-index: 50;
  width: 64px;
}
.hero-logo img {
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .hero-logo {
    top: 68px;
    width: 44px;
  }
}

/* 基本情報（About内） */
.intro-label {
  display: inline-block;
  padding: 0.2em 1em;
  border: 1px solid var(--text-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 1.2em;
}
.intro-title {
  font-style: italic;
}
.intro-title small {
  font-size: 0.6em;
}
.intro-title span {
  display: block;
  font-style: normal;
  margin-top: 0.4em;
  font-size: 0.45em;
  line-height: 1.5;
  color: var(--theme-sub-color);
}
/* スマホ：タイトルサイズ */
@media (max-width: 767px) {
  .intro-title {
    font-size: 36px;
  }
  .intro-title span {
    font-size: 0.55em;
  }
  .intro-title small {
    font-size: 0.7em;
    white-space: nowrap;
  }
}
.intro-date span {
  font-size: 18px;
  font-weight: 500;
  margin-left: 0.6em;
}

.link-plain {
  color: inherit;
}
.link-plain:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  opacity: 1;
}
.intro-date .intro-free {
  white-space: nowrap;
}
.intro-date {
  margin: 1em 0 0.2em;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
}

/* ---------- 7. 画像・カード ---------- */
.ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  color: var(--text-sub-color);
  font-size: 14px;
}
.ph--wide {
  aspect-ratio: 16 / 9;
}

.card img,
.card .ph {
  width: 100%;
  object-fit: cover;
}
.card img {
  aspect-ratio: 4 / 3;
}

/* 画像クリックで拡大するボタン */
.card-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.card-zoom:hover {
  opacity: 0.8;
}

/* ---------- ライトボックス ---------- */
html.is-locked {
  overflow: hidden;
}
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 56px var(--side-padding) 24px;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: var(--text-color);
  cursor: zoom-out;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in 0.25s ease-out;
}
@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}
.lightbox-figure {
  max-width: 100%;
  text-align: center;
}
.lightbox-img {
  display: inline-block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  height: auto;
  object-fit: contain;
}
.lightbox-title {
  margin-top: 0.9em;
  font-size: 14px;
  font-weight: 700;
}
.lightbox-meta {
  font-size: 12px;
  color: var(--text-sub-color);
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.lightbox-close:focus:not(:focus-visible) {
  outline: none;
}
.lightbox-close span {
  position: absolute;
  left: 11px;
  top: 21px;
  width: 22px;
  height: 1px;
  background: var(--text-color);
}
.lightbox-close span:nth-child(1) {
  transform: rotate(45deg);
}
.lightbox-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.more {
  margin-top: 3em;
  padding: 1.6em 1em;
  text-align: center;
  color: var(--text-sub-color);
}
.more-en {
  display: block;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--text-sub-color);
}
.more-ja {
  display: block;
  margin-top: 0.4em;
  font-size: 14px;
}
.card-title {
  margin-top: 0.8em;
  font-weight: 700;
}
@media (max-width: 767px) {
  .card-title {
    font-size: 15px;
    line-height: 1.5;
  }
}
.card-meta {
  font-size: 14px;
  color: var(--text-sub-color);
}

/* ---------- 8. 開催概要（定義リスト） ---------- */
.info-list > div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: var(--gutter);
  padding-block: 1em;
  border-bottom: 1px solid var(--line-color);
}
.info-list dt {
  color: var(--theme-sub-color);
  font-weight: 700;
}
.info-list dd a {
  color: var(--text-color);
  text-decoration: none;
}
.info-list dd a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  opacity: 1;
}

@media (max-width: 767px) {
  .info-list > div {
    grid-template-columns: 1fr;
    gap: 0.2em;
  }
}

/* ---------- 8-2. トークイベント ---------- */
.talk {
  display: flex;
  flex-direction: column;
  padding: 1.5em;
  border: 1px solid var(--line-color);
  border-top: 3px solid var(--theme-color);
}
.talk-no {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-sub-color);
}
.talk-date {
  margin-top: 0.6em;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
}
.talk-date span {
  font-size: 14px;
  font-weight: 500;
}
.talk-time {
  font-size: 29px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}
.talk-title {
  margin-top: 1em;
  font-size: 18px;
  line-height: 1.5;
}

.talk-note {
  padding: 1em 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub-color);
}
/* PC・タブレット（768px〜）は中央揃え */
@media (min-width: 768px) {
  .talk-note {
    text-align: center;
  }
}
.talk-note a {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.talk-note a:hover {
  color: var(--theme-sub-color);
  opacity: 1;
}
.talk-series {
  display: block;
  font-size: 0.75em;
  font-weight: 500;
  line-height: 1.6;
}
.talk-guest {
  margin-top: 0.6em;
  font-size: 14px;
  color: var(--theme-sub-color);
}
.talk-desc {
  margin: 1em 0 0;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--text-sub-color);
}
.talk-desc .paren {
  font-size: 0.8em;
}
.talk-guest:empty {
  display: none;
}
.talk .btn {
  margin-top: auto;
  align-self: flex-start;
}

.btn--sm {
  padding: 0.5em 1.4em;
  font-size: 14px;
}

/* ---------- 8-3. Googleマップ埋め込み ---------- */
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 8-4. ページ先頭へ戻るボタン（右下固定） ---------- */
.totop {
  position: fixed;
  right: max(var(--side-padding), calc((100vw - var(--container-max)) / 2));
  bottom: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  transition: opacity 0.3s;
}
.totop.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.totop span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.totop span::before,
.totop span::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 15.7px;
  height: 1px;
  background: var(--text-color);
}
.totop span::before {
  left: 0;
  transform-origin: left center;
  transform: rotate(-40deg);
}
.totop span::after {
  right: 0;
  transform-origin: right center;
  transform: rotate(40deg);
}
.totop:hover {
  opacity: 0.6;
}
.totop.is-hidden:hover {
  opacity: 0;
}

/* ---------- 9. フッター ---------- */
.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line-color);
  color: var(--text-sub-color);
  font-size: 14px;
  text-align: center;
}

/* ---------- アナウンス（TALK EVENTS） ---------- */
.announce {
  margin-bottom: 48px;
  padding: 24px;
  border: 1px solid var(--theme-color);
}
.announce-text {
  margin-bottom: 20px;
  color: var(--text-sub-color);
  line-height: 1.8;
}
.announce-text strong {
  color: var(--text-color);
}
