/* レイアウト別スタイル */

/* ============ default ============ */
.layout-default.active {
  flex-direction: column;
  padding: 64px 96px;
}

/* 見出しだけのスライド（章扉風）：縦中央寄せ */
.layout-default.section-divider.active {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.layout-default.section-divider h1 {
  margin: 0;
  font-size: 72px;
}
.layout-default.section-divider h2 {
  margin: 0;
  font-size: 56px;
}
.layout-default.section-divider .content {
  display: none;
}

/* ============ cover =============== */
.layout-cover.active {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 96px;
}
.cover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cover-decoration {
  margin-bottom: 8px;
}
.cover-decoration img {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 220px;
  display: block;
}
.cover-title {
  font-size: 84px;
  line-height: 1.08;
  margin: 0;
  text-align: center;
  letter-spacing: 0.005em;
}
.cover-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
  font-family: var(--font-body), var(--font-ja-body), sans-serif;
}
.cover-author {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}
.cover-author-id {
  font-size: 20px;
  margin: 0;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.cover-event {
  font-size: 20px;
  margin: 12px 0 0;
  opacity: 0.85;
}
.cover-event strong {
  font-weight: 700;
}
.cover-date {
  margin-left: 10px;
  font-weight: normal;
  opacity: 0.75;
  letter-spacing: 0.04em;
}
.cover-venue {
  font-size: 18px;
  margin: 0;
  opacity: 0.7;
}

/* ============ cover-all =========== */
.layout-cover-all {
  padding: 0;
  background: #000;
}
.layout-cover-all.active {
  padding: 0;
}
.cover-all-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cover-all-caption {
  position: absolute;
  left: 0;
  right: 0;
  padding: 22px 64px;
  color: #fff;
  font-size: 28px;
  line-height: 1.4;
  text-align: center;
  font-family: var(--font-body), var(--font-ja-body), sans-serif;
  letter-spacing: 0.02em;
  z-index: 5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.cover-all-caption.upper {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0) 100%);
  padding-bottom: 40px;
}
.cover-all-caption.lower {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0) 100%);
  padding-top: 40px;
}

/* ============ 2column ============= */
/* パターンA: 左に画像、右にheading+本文 */
.layout-2column.pattern-a.active {
  flex-direction: row;
  padding: 0;
}
.two-col-left {
  width: 50%;
  height: 100%;
  flex: 0 0 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}
.two-col-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.two-col-right {
  flex: 1;
  height: 100%;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.two-col-right h1,
.two-col-right h2 {
  text-align: left;
  margin: 0 0 24px;
  font-size: 44px;
}
.two-col-right .content {
  font-size: 22px;
  line-height: 1.6;
}

/* パターンB: 上に h1、下に2列で h3+content */
.layout-2column.pattern-b.active {
  flex-direction: column;
  padding: 56px 80px 64px;
}
.layout-2column.pattern-b h1,
.layout-2column.pattern-b h2 {
  text-align: center;
  margin: 0 0 16px;
  font-size: 50px;
}
.two-col-intro {
  text-align: center;
  margin: 0 0 18px;
}
.two-col-intro img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 160px;
  display: inline-block;
}
.two-col-intro p {
  margin: 0;
  font-size: 22px;
}
.two-col-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  flex: 1;
  font-size: 22px;
  line-height: 1.6;
  overflow: hidden;
}
.two-col-col {
  overflow: hidden;
}
.two-col-col h3 {
  margin: 0 0 12px;
  font-size: 30px;
}
.two-col-col ul,
.two-col-col ol {
  margin: 0 0 12px;
  padding-left: 1.3em;
}
.two-col-col li {
  margin-bottom: 4px;
}
.two-col-col table {
  font-size: 20px;
}
.two-col-col p {
  margin: 0 0 10px;
}

/* フォールバック（h3 もimg もない場合） */
.layout-2column.pattern-fallback.active {
  flex-direction: column;
  padding: 64px 96px;
}

/* ============ end ================= */
.layout-end.active {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px;
}
.end-heading {
  font-size: 84px;
  line-height: 1.1;
  margin: 0 0 36px;
}
.end-image img {
  width: auto;
  height: auto;
  max-height: 280px;
  max-width: 60%;
  display: block;
  margin: 0 auto;
}
