:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;  /* スクロールバー常設 */
  width: 100%;
  margin: 0;
}


body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #FFFAF0;
  color: #333333;
  line-height: 1.7;
  min-height: 100vh;
  margin: 0;
  padding: 0; 
}

/* ===== 全共通ラッパ ===== */
/* ===== 幅640以下は420px 絵的にこの幅が良い===== */

.page {
  padding: 0;
  max-width: 420px;
  margin: 0 auto;
}


/* 画面幅650pxより大きい場合（タブレット〜PC） 中央寄せ */
@media (min-width: 641px) {
  .page {
    max-width: 650px;
    margin: 0 auto;
  }
}




header {
  position: relative;    /* 追加：lang-switch / top-menu の基準 */
  display: flex;
  flex-direction: column;
  align-items: center;   /* タイトルやサブテキストは中央 */
  margin-bottom: 4px;
  min-height: 120px;     /* 追加：ロゴ＋タイトル分の高さを確保 */
}

/* 中央寄せ */
header .logo-link{
  align-self: center;       /*  flex-start から center に変更 */
  display: inline-block;
  width: fit-content;      /* 中身の幅に合わせる */
  line-height: 0;          /* 余計な行ボックスを消す（当たり判定安定） */
  margin-right: 0;          /* 左寄せ用マージンをリセット */
  margin-left: 0;
}


header .logo {
  width: clamp(200px, 60vw, 280px); /* ← 画面幅に応じてサイズ可変 */
  height: auto;
  display: block;
  border-radius: 30px;
  aspect-ratio: 400 / 128;
}


h1 {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
  color: #1d4ed8;
  font-weight: 700;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: #2563eb;
  font-weight: 600;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #2563eb;
  font-weight: 600;
}

p {
  margin: 4px 0 8px;
  font-size: 0.96rem;
}

section {
  margin-bottom: 28px;
}

section:last-of-type {
  margin-bottom: 0;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0 12px;
}

footer {
  margin-top: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  min-height: 80px;
}

footer p {
  text-align: center;
  font-size: 0.75rem;
  min-height: 1.7em;
}

footer a {
  color: #2563eb;
  text-decoration: none;
}

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

/* ヘッダー内のサブテキスト*/
header p {
  margin: 2px 0 0;
  line-height: 1.4;
  font-size: 0.75rem;   /* .text-xs 相当 */
  color: #6b7280;       /* .text-gray-500 相当 */
  min-height: 1.2rem;
}


/* ===== 汎用ユーティリティ ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.text-xs { font-size: 0.75rem; }
.text-gray-500 { color: #6b7280; }

.small-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}

.contact {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ===== カード共通レイアウト ===== */
.card {
  max-width: 420px;
  margin: 0 auto;
  background-color: #FFFAF0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  padding: 20px 28px;
  min-height: 80vh; 
}



/* ===== ボタン共通 ===== */
.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-primary:hover { background-color: #1d4ed8; }


/* ===== ul ===== */

/* 箇条書き */
ul {
  list-style-type: disc;
  list-style-position: inside;
  margin: 0.5em 0;
  padding-left: 0.1em;
  line-height: 1.7;
  min-height: 150px;
}

ul li {
  margin: 0.35em 0;
}


.list-card{
  margin: 1px 0;
  padding: 0px;
  border-radius: 4px;
  min-height: 180px; 
}



/* ===== ラッフルJS連携 ===== */


/* raffle result: 1クラスで統一 */
.result {
  color: #111827; /* ok: 黒 */
}

.result[data-variant="info"] {
  color: #6b7280; /* info: グレー */
}

.result[data-variant="err"] {
  color: #dc2626; /* err: 赤 */
}
.result[data-variant="ok"] {
  color: #10b981; /* 緑系（tailwindのemerald） */
  font-weight: 600;
}


