/* -------------------------
  リセットと基本設定
------------------------- */
* {
  margin: 0;
  padding: 0;
  font-size: 100%;
  box-sizing: border-box; /* パディングも幅に含める */
}

html, body {
  overflow-x: hidden; /* 横スクロール防止 */
}

body {
  font-size: 16px;
  text-align: center;
  font-family: "ＭＳ Ｐゴシック", Osaka, "ヒラギノ角ゴ Pro W3", sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

/* -------------------------
  コンテナ（中央寄せ＆レスポンシブ）
------------------------- */
#container {
  max-width: 540px;  /* PC向け最大幅 */
  width: 100%;       /* 画面幅に合わせる */
  margin: 0 auto;    /* 中央寄せ */
  padding: 0;        /* paddingを0にして幅計算を正確に */
  box-sizing: border-box; /* パディング込みの幅計算 */
}
/* -------------------------
  ヘッダー
------------------------- */
#container #header {
  width: 100%;
  height: auto;
}

#container #header a {
  display: block;
  text-indent: -500em;
  overflow: hidden;
  width: 80%;          
  max-width: 292px;    
  height: 40px;
  margin: 0 auto;
}

/* -------------------------
  コンテンツ
------------------------- */
#container dl#contents,
#container dl#contents_ov {
  min-height: 400px;
  margin-bottom: 8px;
}

dl#contents dt,
dl#contents_ov dt {
  width: 100%;
  line-height: 1.8;
  font-weight: bold;
}

dl#contents dt {
  text-align: center;
  font-size: 18px;
}

dl#contents_ov dt {
  text-align: left;
  font-size: 18px;
}

dl#contents dd,
dl#contents_ov dd {
  text-align: left;
  padding: 8px 12px;
  font-size: 16px;
  color: #333;
  font-weight: normal;
}

#contents_ov p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1em;
}

#contents_ov ol {
  margin: 0 0 1em 2em;
  padding: 0;
}

#contents_ov ol li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0.8em;
  color: #555;
  list-style-type: decimal;
}

/* -------------------------
  Instagramリンク
------------------------- */
.insta-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.insta-link img {
  display: block;
  max-width: 100%;
  height: auto;
  flex-shrink: 1; /* はみ出し防止 */
}

.link-text {
  font-size: 1.1em;
  line-height: 1.5;
  font-weight: bold;
  text-align: center;
}

/* -------------------------
  footer
------------------------- */
/* フッター全体 */
#footer {
  display: block;
  text-align: center;
  padding: 40px 0 20px 0; /* 上40px・下20pxの余白 */
  clear: both; /* float があれば解除 */
  /*background-color: #f9f9f9;  好みで背景色追加 */
}

/* フッター内のアドレス */
#footer address {
  display: block;
  font-style: normal;
  margin-bottom: 10px; /* アドレスとリンクの間隔 */
  color: #333;
}

/* フッター内のリンク */
#footer a {
  display: inline-block;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

/* -------------------------
  📱スマホ向け微調整
------------------------- */
@media (max-width: 540px) {
  body {
    font-size: 17px;
  }

  dl#contents dt {
    font-size: 17px;
  }

  dl#contents_ov dt {
    font-size: 18px;
  }

  .link-text {
    font-size: 1em;
  }

@media (max-width: 540px) {
  #container {
    padding: 0 10px; /* 少しだけ左右に余白 */
  }
}
}
