@charset "utf-8";

/* ============================================
   リセット
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   ベーススタイル
   ============================================ */
body {
  font-family: 'Meiryo', 'Hiragino Kaku Gothic Pro', sans-serif;
  font-size: 16px;
  color: #383d5c;
  background-color: #f5f5f5;
  -webkit-text-size-adjust: 100%;
}

a:link, a:visited {
  color: #ffffff;
  text-decoration: underline;
}
a:hover, a:active {
  color: #d90909;
  text-decoration: underline;
}

img {
  border: none;
}

/* ============================================
   メインラッパー
   - PC：max-widthで横幅を制限（お好みで調整）
   - スマホ：自動で100%表示
   - 画像がimgタグなので高さは自動計算される
   ============================================ */
#page-wrap {
  max-width: 800px;   /* ← PCでの最大幅。お好みで変更 */
  margin: 0 auto;
  font-size: 0;        /* imgの隙間を消す */
  line-height: 0;      /* imgの隙間を消す */
}

/* 全画像：横幅100%で隙間なく並べる */
#page-wrap > img {
  display: block;
  width: 100%;
  height: auto;        /* ← 高さは画像比率から自動算出 */
}

/* ============================================
   ボタン付きセクション
   背景画像の上にボタンを重ねる
   ============================================ */
.section-with-btn {
  position: relative;
}

.section-with-btn > img {
  display: block;
  width: 100%;
  height: auto;
}

.btn-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-area a {
  display: block;
  text-align: center;
}

.btn-area img {
  width: 85%;
  max-width: 600px;
  height: auto;
}

/* ボタンのマウスオーバーで明るくする */
.btn:hover {
  filter: brightness(120%);
}

/* ボタンのパルスアニメーション */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ============================================
   フッター
   ============================================ */
footer {
  background-color: #202840;
  color: #ffffff;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  line-height: 1.8;
}

footer a:link,
footer a:visited {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover,
footer a:active {
  color: #d90909;
}

footer .copyright {
  margin-top: 10px;
}

/* ============================================
   スマホ用の微調整（基本的に追加不要）
   ============================================ */
@media (max-width: 768px) {
  #page-wrap {
    max-width: 100%;  /* スマホでは画面幅いっぱい */
  }
}