@charset "UTF-8";

/* ==============================
   全体設定・壁紙
============================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: url('../images/yatoh-pic/back.gif') repeat;
  color: #000;
}

/* ★ここ重要：height 100%は不要（事故原因になりやすい） */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* リンク */
a {
  text-decoration: none;
}

/* ==============================
   ヘッダー高さ分の余白
============================== */
.nav-spacer {
  height: 64px;
  flex-shrink: 0;
}

/* ==============================
   メインラッパー（ここだけ伸びる）
============================== */
#wrapper {
  width: 100%;
  max-width: 750px;
  margin: 5px auto;
  padding: 0 16px;
  box-sizing: border-box;

  /* ★フッターを下に押し出す役割 */
  flex: 1 0 auto;
}

#wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==============================
   フッター
============================== */
.footer {
  margin-top: auto; /* ★これが重要（flexで下固定） */
  background: #0080ff;
  color: #fff;
  text-align: center;
  padding: 16px 10px;
  font-size: 13px;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 6px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0;
}

/* ==============================
   スマホ対応
============================== */
@media screen and (max-width: 768px) {
  .nav-spacer {
    display: none;
  }
}