@charset "UTF-8";

/* -------------------
  フォント設定
------------------- */
.zen-kurenaido-regular {
  font-family: "Zen Kurenaido", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.playwrite-ca {
  font-family: "Playwrite CA", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

html {
  font-family: sans-serif;
}

/* -------------------
  共通デザイン（PC用ベース）
------------------- */
h1 {
  font-size: 6rem;
  padding-top: 4rem;
}

h2 {
  font-size: 2em;
}

header {
  margin-top: 0;
  text-align: center;
  height: 100vh;
  background-image: url("../images/image.png");
  background-position: center center;
  background-size: cover;
}

/* ナビゲーション（PC時は横並び） */
nav {
  background-color: #003366;
  height: 20vh;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
}

nav a {
  text-decoration: none;
  color: #fff; /* PC時は白文字で見やすく */
  font-size: 1.2em;
}

/* コンテンツ */
.content {
  height: 100vh;
  background-color: #003366;
  color: #fff;
  padding: 2rem;
}

.soica {
  height: 100vh;
  background-color: azure;
  color: #000;
  padding: 2rem;
}

/* 画像共通 */
.content img,
.soica-img {
  display: block;
  margin: 2rem auto;
  max-width: 70%;   /* PCでは大きめ表示 */
  max-height: 80vh; /* 画面に収まるよう制限 */
  height: auto;     /* 縦横比を維持 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-radius: 2rem;
}

/* ボタン */
button {
  padding: 1rem;
  border-radius: 0;
  background-color: #003366;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 150ms ease, color 150ms ease;
}

button:hover,
button:focus {
  background-color: #ffffff;
  color: #003366;
  outline: none;
}

/* 招待セクション */
.invite {
  background-color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  padding: 1rem;
}

.invite h3 {
  color: #003366;
  font-size: 2rem;
  text-align: center;
}

.invite h3,
.invite button {
  margin: 1rem;
}

/* フッター */
footer {
  background-color: #003366;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* -------------------
  スマホ対応（幅768px以下）
------------------- */
@media screen and (max-width: 768px) {
  /* 見出しを少し小さく */
  h1 {
    font-size: 2.2rem;  /* ← 今は3remだったのを小さく */
    padding-top: 1.5rem;
  }

  h2 {
    font-size: 1.4rem;  /* ← 今は1.8remを小さく */
  }

  /* ナビゲーションを縦並びに */
  nav {
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0;
  }

  nav li {
    margin: 0;
    text-align: center;
  }

  nav a {
    font-size: 1.5rem; /* スマホで大きめ */
  }

  /* コンテンツを自動高さにして余白を調整 */
  .content,
  .soica {
    height: auto;
    padding: 1.5rem;
  }

  .content img,
  .soica-img {
    width: 100%;      /* 横幅いっぱい */
    max-width: 90%;   /* 余白を少し残す */
    height: auto;     /* 縦横比を維持 */
    max-height: none; /* 高さ制限を解除 */
  }

  /* ボタンを押しやすく大きく */
  button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
  }

  /* 招待セクションは縦並びに */
  .invite {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .invite h3 {
    font-size: 1.6rem;
  }

  footer {
    font-size: 1.1rem;
  }
}
