@charset "utf-8";

/* ==========================================
   1. Base Reset & Tokens
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

:root {
  --c-primary: #5a2320;
  --c-primary-light: #7b3434;
  --c-primary-bg: #faf6f4;
  --c-accent-red: #c0392b;
  --c-accent-orange: #d4760a;
  --c-accent-green: #5a8a2d;
  --c-accent-blue: #2980b9;
  --c-accent-purple: #6c3483;
  --c-accent-pink: #d94e7a;
  --c-accent-pink-bg: #fdf0f5;
  --c-text: #333;
  --c-text-sub: #333;
  --c-border: #ddd;
  --c-bg: #f0ebe8;
  --font-base: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
}

body {
  font: 100%/1.6 var(--font-base);
  background: var(--c-bg);
  color: var(--c-text);
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--c-primary-light);
  text-decoration: none;
}
a:hover {
  opacity: 0.75;
}

/* ==========================================
   2. Layout & Header / Nav
   ========================================== */
.l-container {
  max-width: 1000px;
  background: #fff;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.site-header {
  background: var(--c-primary);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
}
.site-header__label {
  display: inline-block;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 10px;
}
.site-header__title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: bold;
  line-height: 1.6;
  margin: 0;
}
.site-header__sub {
  font-size: clamp(16px, 2vw, 22px);
  opacity: 0.85;
  margin-top: 4px;
}
.site-header__period {
  margin-top: 14px;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.8;
}

.site-nav {
  background: #3d1816;
}
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav__item {
  flex: 1;
  min-width: 0;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.site-nav__item:last-child {
  border-right: none;
}
.site-nav__link {
  display: block;
  padding: 13px 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: bold;
  transition: background 0.2s;
  text-align: center;
  white-space: normal;
}
.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  opacity: 1;
}
.site-nav__link--active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================
   3. Main Content & Typography
   ========================================== */
.main-content {
  padding: 20px 30px 30px;
}
.main-content h2 {
  color: var(--c-primary);
  font-size: 18px;
  font-weight: bold;
}
.main-content h3 {
  margin-top: 6px;
  font-weight: bold;
  font-size: 16px;
  padding-left: 18px;
}
.main-content p {
  padding-left: 20px;
  line-height: 1.8;
}
.main-content p.lg {
  font-size: 18px;
}
.main-content hr {
  margin: 28px 0;
  border: none;
  border-top: 1px solid var(--c-border);
}

.sec-heading {
  margin: 28px 0 12px;
  display: block;
  font-weight: bold;
  font-size: 20px;
  padding-left: 14px;
  line-height: 1.4;
}
.sec-heading--red { color: var(--c-accent-red); border-left: 6px solid var(--c-accent-red); }
.sec-heading--orange { color: var(--c-accent-orange); border-left: 6px solid var(--c-accent-orange); }
.sec-heading--green { color: var(--c-accent-green); border-left: 6px solid var(--c-accent-green); }
.sec-heading--blue { color: var(--c-accent-blue); border-left: 6px solid var(--c-accent-blue); }
.sec-heading--brown { color: var(--c-primary-light); border-left: 6px solid var(--c-primary-light); }
.sec-heading--purple { color: var(--c-accent-purple); border-left: 6px solid var(--c-accent-purple); }
.sec-heading--pink   { color: var(--c-accent-pink);   border-left: 6px solid var(--c-accent-pink); }

/* ==========================================
   4. Components (Blocks, Lists, News)
   ========================================== */
.news-area {
  padding: 12px 0 0;
}
.news-box {
  padding: 14px 18px;
  background: #fff8f5;
  border: 2px solid var(--c-primary-light);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(90, 35, 32, 0.08);
}
.news-box__heading {
  margin: 0 0 8px;
  font-weight: bold;
  color: var(--c-primary);
  font-size: 1.05rem;
}
.news-box__item {
  margin-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text);
}

.exb-block {
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--c-primary-bg);
  border-radius: 6px;
}
.exb-block h2,
.exb-block h3,
.exb-block p {
  padding-left: 0;
}

.example-list {
  background: rgba(90, 35, 32, 0.06);
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
}
.example-list strong {
  color: var(--c-primary);
}

figure {
  margin: 0; /* 固定値の margin を排除 */
  padding: 0;
  width: 100%; /* 親要素(grid)の幅いっぱいに広げる */
  overflow: hidden;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; /* 画像と画像の間隔はここ(gap)で一括管理するのが最も安全です */
  margin-top: 12px;
}
.photo-grid img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.photo-grid figcaption,
.photo-caption {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 4px;
}

/* ==========================================
   5. CTA & Forms
   ========================================== */
.cta-banner {
  background: var(--c-primary-light);
  color: #fff;
  text-align: center;
  padding: 28px 20px;
  margin-top: 30px;
}
.cta-banner__heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}
.cta-banner__text {
  opacity: 0.9;
  margin-bottom: 16px;
  font-size: 14px;
}
.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--c-primary-light);
  padding: 10px 32px;
  border-radius: 24px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.form-intro {
  background: var(--c-primary-bg);
  border-left: 4px solid var(--c-primary-light);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.8;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 15px;
}
.badge--required {
  display: inline-block;
  background: var(--c-accent-red);
  color: #fff;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge--optional {
  display: inline-block;
  background: #999;
  color: #fff;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group .form-hint {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

input[type="text"], input[type="url"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
input:focus, textarea:focus {
  border-color: var(--c-primary-light);
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 52, 52, 0.1);
}
textarea {
  resize: vertical;
  min-height: 140px;
}
.char-counter { font-size: 12px; color: #999; text-align: right; margin-top: 4px; }
.char-counter--over { color: var(--c-accent-red); font-weight: bold; }

.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--c-primary-light);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(122, 52, 52, 0.3);
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-back {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #999;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-back:hover { opacity: 0.85; }

/* ==========================================
   6. Tables, Messages, Footer
   ========================================== */
.confirm-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}
.confirm-table th {
  padding: 10px 12px;
  background: var(--c-primary-bg);
  border-bottom: 1px solid var(--c-border);
  font-weight: bold;
  font-size: 14px;
  width: 30%;
  vertical-align: top;
  text-align: left;
}
.confirm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.msg--error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 20px;
}
.msg--error li { color: var(--c-accent-red); font-size: 14px; margin-bottom: 4px; list-style: none; }

.msg--success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
}
.msg--success h2 { color: #27ae60; margin: 0 0 8px; font-size: 18px; font-weight: bold; }
.msg--success p { margin: 0; font-size: 14px; color: #555; }

.site-footer {
  background: var(--c-primary);
  text-align: center;
  padding: 24px 20px;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer a { display: inline-block; }
.site-footer__copy { font-size: 11px; margin-top: 10px; opacity: 0.6; }

#topcontrol {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}
#topcontrol svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }

/* ==========================================
   7. Responsive
   ========================================== */
@media (max-width: 720px) {
  .site-nav__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; align-items: stretch; }
  .site-nav__item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav__item:last-child { border-bottom: none; }
  .site-nav__link { padding: 12px 16px; }
}

@media (max-width: 600px) {
  .main-content { padding: 15px !important; }
  .sec-heading { font-size: 18px; }
  .photo-grid { grid-template-columns: 1fr; }
  .confirm-table th, .confirm-table td { display: block; width: 100%; }
  .confirm-table th { border-bottom: none; padding-bottom: 2px; }
}

@media (max-width: 420px) {
  .site-nav__list { grid-template-columns: 1fr; }
  .site-nav__item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-nav__item:last-child { border-bottom: none; }
  .site-nav__link { padding: 12px 18px; }
}

/* ==========================================
   8. Utility Classes (便利枠)
   ========================================== */
/* 要素の上部に適切な余白を空けるためのクラスです */
.margin-top-10 { margin-top: 10px !important; }
.margin-top-20 { margin-top: 20px !important; }

/* ==========================================
   9. Event Page – specific components
   ========================================== */

/* --- イベントヒーロー --- */
.event-hero {
  margin: 8px 0 20px;
  text-align: center;
}
.event-hero__img {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 14px;
  border-radius: 18px;
}
.event-hero__category {
  font-size: clamp(18px, 2.8vw, 22px);
  color: var(--c-text-sub);
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.event-hero__title {
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: bold;
  color: var(--c-primary);
  line-height: 1.7;
}

/* --- 開催情報リスト --- */
.info-list {
  margin: 10px 0 0;
  border-top: 1px solid var(--c-border);
}
.info-list__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--c-border);
}
.info-list__label {
  flex: 0 0 6em;
  font-weight: bold;
  font-size: 14px;
  color: var(--c-primary);
}
.info-list__value {
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
}
.info-note {
  font-size: 13px;
  color: var(--c-text-sub);
}

/* --- PDFリンク --- */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--c-accent-red);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pdf-icon {
  display: inline-block;
  width: 20px;
  height: auto;
}

/* --- プログラムリスト --- */
.program-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.program-list__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--c-border);
}
.program-list__part {
  flex: 0 0 4em;
  font-weight: bold;
  font-size: 14px;
  color: var(--c-primary);
}
.program-list__content {
  font-size: 15px;
  line-height: 1.6;
}

/* --- 出演者ブロック --- */
.speaker-block {
  display: flex;
  gap: 20px;
  padding: 18px 20px;
  background: var(--c-accent-pink-bg);
  border-radius: 6px;
  border: 1px solid #f0c0d0;
}
.speaker-block__info {
  flex: 1;
  min-width: 0;
}
.speaker-block__info p {
  padding-left: 0;
}
.speaker-block__photo {
  flex: 0 0 120px;
  width: 120px;
}
.speaker-block__photo img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.speaker-block__role {
  font-size: 14px;
  font-weight: bold;
  color: var(--c-accent-pink);
  display: block;
  margin-bottom: 6px;
}
.speaker-block__name {
  font-size: 18px;
  margin-bottom: 8px;
}
.speaker-block__kana {
  font-size: 13px;
  color: var(--c-text-sub);
  font-weight: normal;
  margin-left: 4px;
}

/* --- 情報ボックス（オンライン案内等） --- */
.info-box {
  background: #f0f6fb;
  border: 1px solid #b8d4ea;
  border-left: 5px solid var(--c-accent-blue);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.8;
}
.info-box p {
  padding-left: 0;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 540px) {
  .info-list__row {
    flex-direction: column;
    gap: 2px;
  }
  .info-list__label {
    flex: none;
  }
  .speaker-block {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .speaker-block__photo {
    flex: none;
    width: 100px;
  }
}

/* --- テキストハイライト（ピンク） --- */
.highlight-pink {
  color: var(--c-accent-pink);
  font-size: 1.1em;
}

/* --- 高さ揃え・幅auto（切り抜きなし）グリッド --- */
.photo-grid--fit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.photo-grid--fit figure {
  flex: 0 0 auto;
  width: auto;
  overflow: visible;
}
.photo-grid--fit img {
  display: block;
  height: 225px;
  width: auto;
  max-width: 100%;
  object-fit: unset;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
@media (max-width: 600px) {
  .photo-grid--fit {
    flex-direction: column;
  }
  .photo-grid--fit img {
    height: auto;
    width: 100%;
  }
}
