/* ==========================================================================
   Base & Reset Setup
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #337FC2;
  font-family: "Noto Sans JP", sans-serif;
  color: #ffffff;
  line-height: 1.6;
}

body {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Main & Layout Containers
   ========================================================================== */
.main_area {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   1. First View Section
   ========================================================================== */
.firstview {
  width: 100%;
  /* min-height: 800px; */
  background-image: url('../image/KV_background.jpg');
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 101%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 20px 120px 20px;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .firstview {
    padding: 50px 10px 80px 10px;
  }
}

.firstview .kv_inner {
  width: 100%;
  /* max-width: 700px; */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.firstview .kv_title {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
}

.firstview .kv_title img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.firstview .kv_characters {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
}

.firstview .kv_characters img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   Content Body & Wood Board Sections
   ========================================================================== */
.content_body {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.section {
  width: 100%;
}

/* ==========================================================================
   Wood Board Frame (Pure CSS Multiple Backgrounds)
   ========================================================================== */
.wood-board {
  width: 100%;
  box-shadow: 3px 3px 6px #000;
  border-radius: 2px;
  padding: 28px 28px 27px 28px;
  background-image:
    url('../image/table_border/PCwood_TLC.png'),
    url('../image/table_border/PCwood_TRC.png'),
    url('../image/table_border/PCwood_ULC.png'),
    url('../image/table_border/PCwood_URC.png'),
    url('../image/table_border/PCwood_top.png'),
    url('../image/table_border/PCwood_bottom.png'),
    url('../image/table_border/PCwood_sideL.png'),
    url('../image/table_border/PCwood_sideR.png'),
    url('../image/table_border/PC-SP_table_background_chalkboard.png');
  background-position:
    top left,
    top right,
    bottom left,
    bottom right,
    top 0 left 28px,
    bottom 0 left 28px,
    top 28px left 0,
    top 28px right 0,
    center center;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    repeat-x,
    repeat-x,
    repeat-y,
    repeat-y,
    repeat;
  background-size:
    28px 28px,
    28px 28px,
    28px 27px,
    28px 27px,
    calc(100% - 56px) 29px,
    calc(100% - 56px) 27px,
    28px calc(100% - 55px),
    28px calc(100% - 55px),
    auto;
}

.board-inner {
  width: 100%;
  padding: 20px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 540px;
  margin: 0 auto;
}

/* Section Title */
.section_title {
  width: 100%;
  text-align: center;
  margin-bottom: 35px;
}

.section_title picture,
.section_title img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* Section 2: OVERVIEW */
.overview_list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.overview_item {
  width: 100%;
  text-align: center;
  max-width: 420px;
}

.overview_item picture,
.overview_item img {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Section 3: STORES */
.stores_list {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 10px 0 20px 0;
}

.store_item {
  flex: 1;
  max-width: 180px;
  text-align: center;
}

.store_item picture,
.store_item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Section 4: PRIZES */
.prizes_content {
  width: 100%;
  text-align: center;
  margin: 20px 0 30px 0;
}

.prizes_content picture,
.prizes_content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Section 5: NOTICE */
.notice_content {
  width: 100%;
  /* max-width: 520px; */
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
  color: #ffffff;
  text-align: left;
  opacity: 0.8;

}

.notice_content p {
  margin-bottom: 4px;
}

/* Board Footer Decoration */
.board_footer {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.table_deco {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   Footer & Copyright
   ========================================================================== */
footer {
  background-color: #604540;
  width: 100%;
}

.copyright {
  text-align: center;
  padding: 16px 20px;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Mobile / Responsive Layout Adjustment
   ========================================================================== */
@media screen and (max-width: 768px) {
  .wood-board {
    padding: 36px 24px 38px 24px;
    background-image:
      url('../image/table_border/SPwood_TLC.png'),
      url('../image/table_border/SPwood_TRC.png'),
      url('../image/table_border/SPwood_ULC.png'),
      url('../image/table_border/SPwood_URC.png'),
      url('../image/table_border/SPwood_top.png'),
      url('../image/table_border/SPwood_bottom.png'),
      url('../image/table_border/SPwood_sideL.png'),
      url('../image/table_border/SPwood_sideR.png'),
      url('../image/table_border/PC-SP_table_background_chalkboard.png');
    background-position:
      top left,
      top right,
      bottom left,
      bottom right,
      top 0 left 24px,
      bottom 0 left 24px,
      top 36px left 0,
      top 36px right 0,
      center center;
    background-repeat:
      no-repeat,
      no-repeat,
      no-repeat,
      no-repeat,
      repeat-x,
      repeat-x,
      repeat-y,
      repeat-y,
      repeat;
    background-size:
      24px 36px,
      24px 36px,
      24px 38px,
      24px 38px,
      calc(100% - 48px) 36px,
      calc(100% - 48px) 38px,
      24px calc(100% - 74px),
      24px calc(100% - 74px),
      auto;
  }

  .content_body {
    padding: 30px 20px 60px 20px;
    gap: 40px;
  }
  .overview_list {
    gap: 32px;
    margin-bottom: 50px;
  }

  .stores_list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
  }

  .store_item {
    max-width: 210px;
    width: 100%;
  }

  .notice_content {
    font-size: 9px;
  }
}