@charset "utf-8";

/* 全体リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* メインレイアウト */
#main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
#header {
  background-color: #3cb371;
  color: white;
  text-align: center;
  padding: 40px 0;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-title {
  font-size: 1.9em;
  font-weight: bold;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  #header {
    padding: 16px 0 !important; /* ← 40px → 16px に縮小 */
    min-height: auto !important;
  }

  .header-title {
    line-height: 1.2 !important; /* 行間も少し詰める */
  }
}
/* コンテンツ */
#contents {
  text-align: center;
  margin: 0 auto 20px auto;
  padding: 0;
  width: 100%;
}
.maruwaku_o2 {
  border: 2px solid #ccc;
  padding: 15px;
  margin: 10px auto;
  max-width: 900px;
  background-color: #4169e1;
  border-radius: 8px;
}

#contents p {
  text-align: left;
  font-size: medium;
  color: #000;
}

/* コピーライト */
#copyright {
  text-align: center;
  clear: both;
  padding: 16px 0;
  width: 100%;
  display: block;
}

#copyright p {
  margin: 0;
  text-align: center;
}
/* テーブル */
table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

table th {
  text-align: center;
  vertical-align: middle;
  padding: 8px;
  background-color: #eef;
  font-weight: bold;
}

table th:nth-child(1),
table td:nth-child(1) {
  width: 70px;
  word-break: break-word;
  white-space: normal;
  text-align: center;
}

/* ボタン */
.btn-apply,
.btn-cancel {
  font-size: 14px;
  padding: 4px 8px;
  width: 80px;
  max-width: 100%;
  line-height: 1.2;
  white-space: nowrap;
}

/* イラスト画像 */
.illust-top {
  display: block;
  margin: 0 auto 20px auto;
  width: 50%;
  max-width: 360px;
  height: auto;
}

/* メディアクエリ：スマホ対応 */
@media screen and (max-width: 768px) {
  .container,
  #main,
  #contents {
    width: 100% !important;
    padding: 0 8px !important;
  }

  table,
  td,
  th {
    width: 100% !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  iframe,
  object,
  img {
    width: 100% !important;
    height: auto !important;
    max-width: 100vw;
  }

  body {
    padding-top: 0 !important;
  }

  #contents {
    margin-bottom: 0 !important;
  }
}
.flyer-display iframe {
  width: 100%;
  max-width: 800px;
  height: 1100px; /* ← 必要に応じて調整可能 */
  border: none;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}
.p10 {
  font-size: 10px !important;
}
.p16 {
  font-size: 16px !important;
}
.p20 {
  font-size: 20px !important;
}
.p24 {
  font-size: 24px !important;
  line-height: 1.4 !important;
}
.p28 {
  font-size: 28px !important;
  line-height: 1.4 !important;
}
.p32 {
  font-size: 32px !important;
}
.bold {
  font-weight: bold !important;
}
.center {
  text-align: center !important;
}
.white {
  color: white !important;
}
.yellow {
  color: yellow !important;
}
.orange {
  color: orange !important;
}
.blue {
  color: blue !important;
}
/*スマホの時だけ表示*/
.mobile-message {
  display: none;
}

@media screen and (max-width: 768px) {
  .mobile-message {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 14px; /* ←ここでサイズ調整 */
    color: red;
  }
}
