/* ============================================================
   出店・出演者募集要項ページ（template-guidelines.php）専用CSS
   親テーマのデザイントークン（style.css の :root 変数）を使用します。
   ============================================================ */

.g-guidelines {
  background-color: var(--color-paper);
}

.g-wrap {
  max-width: 920px;
}

/* ------------------------------------------------------------
   ヒーローセクション
   ------------------------------------------------------------ */
.g-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-cream);
  overflow: hidden;
  background-color: var(--color-ink);
}

@media (max-width: 600px) {
  .g-hero {
    min-height: 52vh;
  }
}

.g-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.g-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 6s ease-out;
}

.g-hero.is-loaded .g-hero__bg img {
  transform: scale(1);
}

.g-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(32, 26, 24, 0.6) 0%,
    rgba(32, 26, 24, 0.42) 45%,
    rgba(150, 22, 15, 0.55) 100%
  );
}

.g-hero__content {
  position: relative;
  z-index: 3;
  padding: 130px 24px 90px;
}

.g-hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.5;
  margin: 20px 0 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.g-hero__lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
  color: rgba(255, 250, 242, 0.92);
  line-height: 1.9;
}

.g-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  line-height: 0;
}

.g-hero__wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

.g-hero__wave path {
  fill: var(--color-paper);
}

@media (max-width: 600px) {
  .g-hero__content {
    padding: 110px 20px 70px;
  }
  .g-hero__wave svg {
    height: 36px;
  }
}

/* ------------------------------------------------------------
   共通タグ
   ------------------------------------------------------------ */
.g-tag {
  display: inline-block;
  background-color: rgba(255, 250, 242, 0.16);
  border: 1px solid rgba(255, 250, 242, 0.5);
  backdrop-filter: blur(2px);
  color: var(--color-cream);
  padding: 6px 20px;
  font-size: 13px;
  letter-spacing: 0.15em;
  border-radius: 100px;
  font-family: var(--font-accent);
  font-weight: 600;
}

/* ------------------------------------------------------------
   カード（各セクション共通）
   ------------------------------------------------------------ */
.g-content {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.g-card {
  background: var(--color-white);
  border: 1px solid rgba(32, 26, 24, 0.07);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 12px 32px rgba(32, 26, 24, 0.06);
}

@media (max-width: 600px) {
  .g-card {
    padding: 26px 20px;
    border-radius: 12px;
  }
}

.g-card__heading {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-primary);
  border-left: 5px solid var(--color-gold);
  padding-left: 14px;
  margin: 0 0 24px;
}

.g-card__heading--center {
  text-align: center;
  border-left: none;
  padding-left: 0;
}

.g-card__heading--center::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  margin: 0 auto 14px;
  border-radius: 2px;
}

.g-card p {
  margin: 0 0 12px;
  line-height: 1.9;
}

.g-card p:last-child {
  margin-bottom: 0;
}

.g-block {
  margin-bottom: 44px;
}

.g-block__heading {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-ink);
  text-align: center;
  margin: 0 0 8px;
}

.g-block__heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 14px auto 30px;
}

/* ------------------------------------------------------------
   基本情報テーブル
   ------------------------------------------------------------ */
.g-info-table {
  width: 100%;
  border-collapse: collapse;
}

.g-info-table th,
.g-info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(32, 26, 24, 0.08);
  text-align: left;
  vertical-align: top;
}

.g-info-table th {
  width: 28%;
  color: var(--color-primary);
  font-weight: 600;
  background-color: var(--color-paper);
  border-radius: 6px 0 0 6px;
}

.g-info-table tr:last-child th,
.g-info-table tr:last-child td {
  border-bottom: none;
}

/* ------------------------------------------------------------
   テーマ（コンセプトボックス）
   ------------------------------------------------------------ */
.g-concept-box {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--color-paper) 0%, #f1e6d3 100%);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

/* ------------------------------------------------------------
   出店区画カード
   ------------------------------------------------------------ */
.g-booth-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.g-booth {
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 10px 28px rgba(32, 26, 24, 0.07);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.g-booth:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(32, 26, 24, 0.13);
}

.g-booth__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-paper);
}

.g-booth__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.g-booth:hover .g-booth__photo img {
  transform: scale(1.06);
}

.g-booth__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.g-booth__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-ink);
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(32, 26, 24, 0.06);
}

.g-booth__icon {
  font-size: 1.3em;
}

.g-booth__price {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.g-booth__unit {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #6b6460;
  font-weight: 400;
  margin-left: 6px;
}

.g-booth__list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.g-booth__list li {
  margin-bottom: 6px;
  line-height: 1.8;
  font-size: 0.94rem;
}

/* ------------------------------------------------------------
   注意事項
   ------------------------------------------------------------ */
.g-notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 28px;
  align-items: start;
}

.g-notice {
  padding: 4px 0;
}

.g-notice--divider {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 2px dashed rgba(32, 26, 24, 0.15);
}

.g-notice--divider .g-notice__heading {
  font-size: 1.1rem;
  color: var(--color-primary);
}

.g-notice__heading {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-notice__body p {
  margin: 0 0 10px;
  line-height: 1.85;
  font-size: 0.95rem;
}

.g-notice__body ul {
  margin: 0 0 10px;
  padding-left: 20px;
  list-style: disc;
}

.g-notice__body li {
  margin-bottom: 4px;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Flow（お申し込みから当日までの流れ）
   ------------------------------------------------------------ */
.g-flow {
  display: flex;
  flex-direction: column;
}

.g-flow__step {
  position: relative;
  padding-left: 56px;
  padding-bottom: 32px;
  border-left: 2px solid var(--color-gold);
  margin-left: 19px;
}

.g-flow__step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.g-flow__num {
  position: absolute;
  left: -20px;
  top: -2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-cream);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(150, 22, 15, 0.3);
}

.g-flow__date {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.g-flow__title {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 4px 0 8px;
  font-size: 1.08rem;
}

.g-flow__body p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   FAQ（このページ専用のアコーディオン）
   ------------------------------------------------------------ */
.g-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.g-faq-item {
  background-color: var(--color-paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(32, 26, 24, 0.04);
  transition: box-shadow 0.3s ease;
}

.g-faq-item.is-open {
  box-shadow: 0 10px 28px rgba(150, 22, 15, 0.12);
  background-color: var(--color-white);
}

.g-faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.g-faq-item__q:hover {
  background-color: rgba(150, 22, 15, 0.04);
}

.g-faq-item__q-label {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-cream);
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-faq-item__q-text {
  flex: 1;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.6;
}

.g-faq-item__toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.g-faq-item__toggle::before,
.g-faq-item__toggle::after {
  content: "";
  position: absolute;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.g-faq-item__toggle::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.g-faq-item__toggle::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.g-faq-item.is-open .g-faq-item__toggle::before {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.g-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.g-faq-item__a[hidden] {
  display: block !important;
  visibility: hidden;
}

.g-faq-item__a:not([hidden]) {
  visibility: visible;
}

.g-faq-item__a-inner {
  display: flex;
  gap: 14px;
  padding: 0 22px 20px;
  align-items: flex-start;
}

.g-faq-item__a-label {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-gold);
  color: var(--color-ink);
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-faq-item__a-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.85;
  color: #4a4340;
  padding-top: 5px;
}

.g-faq-item__a-text p {
  margin: 0 0 0.8em;
}

.g-faq-item__a-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .g-faq-item__q {
    padding: 15px 16px;
    gap: 12px;
  }
  .g-faq-item__q-text {
    font-size: 14.5px;
  }
  .g-faq-item__a-inner {
    padding: 0 16px 16px;
    gap: 10px;
  }
}

/* ------------------------------------------------------------
   お問い合わせ
   ------------------------------------------------------------ */
.g-contact {
  text-align: center;
  background: linear-gradient(135deg, var(--color-paper) 0%, #f1e6d3 100%);
}

.g-contact__btn {
  margin: 18px 0 14px;
}

.g-contact__email {
  font-size: 0.95rem;
}

.g-contact__note {
  font-size: 0.88rem;
  color: #6b6460;
}

.g-footer-credit {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin: 0 0 60px;
}
