html {
  box-sizing: border-box;
  font-size: 62.5%;
  height: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  position: relative;
  background-color: #EEEEEE;
  color: #444;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "ヒラギノ角ゴ ProN", "メイリオ", sans-serif;
  overflow-x: hidden;
}

/* 背景グラデーション */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #FFF886 0%, #F072B6 100%);
  z-index: -1;
}

/* コンテナ系 */
#container, #contents, #header, #footer {
  max-width: 810px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
}

/* セクション装飾例 */
.title {
  font-size: 1.6rem;
  color: #202020;
  padding: 3px 0 3px 20px;
  font-weight: bold;
  border-left: solid 15px #c8575c;
  border-bottom: solid 1px #c8575c;
  background: #fff;
  margin: 5px 5px 10px 5px;
}

.box, .box_f {
  font-size: 1.6rem;
  color: #333;
  padding: 1rem;
  border: 1px solid #888;
  margin-top: 10px;
  background-color: #fff;
}

.box_f {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.4;
  z-index: -1;
}

/* テーブル系 */
.table-wrap {
  overflow-x: auto;
  width: 100%;
}
table {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
}
td {
  padding: 5px;
}

/* 画像グループ */
.image-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.image-group img {
  max-width: 100%;
  height: auto;
}

/* ボタン */
.btn,
a.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s;
  text-align: center;
  cursor: pointer;
}
.btn-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border: none;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(102, 126, 234, 0.5);
}

/* メディアクエリ（600px以下） */
@media screen and (max-width: 600px) {
  .image-group {
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 300px;
  }

  .box_f,
  .bg_pattern {
    width: 100vw;
    max-width: 100%;
  }

  h1 {
    font-size: 1.5em;
    line-height: 1.4;
    word-break: keep-all;
  }

  h2 {
    font-size: 1.2em;
    line-height: 1.4;
  }

  .btn-border span,
  .ribbon h3 {
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    max-width: 100%;
    word-break: break-word;
  }

  #main, #side {
    width: 100%;
    margin: 0;
  }

  div.imagebox {
    float: none;
    width: 100%;
    margin: 10px auto;
  }
}

.btn-gradient2 {
  width: 100%;
  max-width: 220px;
  padding: 15px 40px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-gradient2:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(102, 126, 234, 0.5);
}

.purple {
  font-size:2.5em;
  text-align: center;
  line-height: 1.3em;
  font-weight: bold;
  color: transparent;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(100, 80, 140, 0.3);
}

.emphasis_design_purple {
  color: #fff;
  text-shadow:
    2px 2px 10px #6a0dad,     /* 濃い紫（影） */
   -2px 2px 10px #9b59b6,     /* 明るめ紫（光） */
    2px -2px 10px #d8b4f8,    /* 淡いラベンダー（ハイライト） */
   -2px -2px 10px #6a0dad;    /* 濃い紫（影） */
}








/* 共通レイアウト */
.wrapper {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  gap: 20px;
  align-items: stretch;
}

/* PCサイズ以上の表示 */
@media (min-width: 768px) {
  .wrapper {
    flex-direction: row; /* PCでは横並びに切り替え */
    align-items: flex-start;
  }

  .info {
    flex: 2;
  }

  .poster {
    flex: 1;
    margin-left: 20px;
  }
}

/* 情報行のレイアウト（日時・場所・出展など） */
.info-row {
  display: flex;
  margin-bottom: 1em; /* 行間スペース */
}

/* タイトル部分（日時・場所など） */
.info-title {
  width: 5em;
  font-weight: bold;
  flex-shrink: 0;
}

/* 内容部分 */
.info-content {
  flex: 1;
}

/* 「無料」など強調表示 */
.free {
  color: red;
  font-weight: bold;
}

/* ポスター画像のスタイル */
.poster img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ボタンの配置 */
.poster p {
  text-align: center;
  margin-top: 10px;
}

/* 印刷用スタイル */
@media print {
  html, body {
    height: auto !important;
    overflow: visible !important;
  }
}
