/*
 * 一般向け画面(トップ・応募フォーム)の共通スタイル。
 * レイアウトは resources/views/components/site-layout.blade.php。
 * 応募フォームでは Tailwind(app.css) の後に読み込むため、同じ詳細度ならこちらが優先される。
 */
:root {
  --yellow-light: #fad178;
  --yellow: #f8be3e;
  --red: #ed1c24;
  --orange: #f7821e;
  --cream: #fdfbe8;
  --ink: #1a1a1a;
  --footer-bg: #25242b;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* 本文が短い画面でもフッターを画面下に置く */
.site-main { display: flex; flex-direction: column; flex: 1; }

/* ヘッダー */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 64px;
  height: 90px;
  background: #fff;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.site-logo img { width: 30px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.tel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 15px;
  letter-spacing: .04em;
}
.tel-pill svg { width: 14px; height: 14px; }

/* ストライプ背景の本文エリア */
.site-content {
  flex: 1;
  padding: 56px 16px 120px;
  background: repeating-linear-gradient(-45deg, var(--yellow-light) 0 6px, var(--yellow) 6px 14px);
}

/* 白い枠のカード */
.site-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 8px;
}
.site-card + .site-card { margin-top: 56px; }
/* 応募フォーム用の幅の狭いカード */
.site-card--form { max-width: 720px; padding: 32px 40px 40px; }

/* オレンジの帯見出し */
.site-heading {
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .14em;
}
.site-heading + * { margin-top: 20px; }

/* 赤い立体ボタン(<a> と <button> の両方で使う) */
.site-cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(505px, 100%);
  height: 104px;
  padding: 0 72px;
  border: 3px solid #000;
  border-radius: 12px;
  background: linear-gradient(#c9252b, #f04a50);
  box-shadow: 0 8px 0 #000;
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: .18em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.site-cta-button:hover { transform: translateY(4px); box-shadow: 0 4px 0 #000; }
.site-cta-button:focus-visible { outline: 3px solid #000; outline-offset: 4px; }
.site-cta-button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 8px 0 #000; }
.site-cta-button::after {
  content: "→";
  position: absolute;
  right: 28px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  transform: translateY(-50%);
}
/* 応募フォーム内で使う小さめのボタン */
.site-cta-button--sm {
  width: min(360px, 100%);
  height: 68px;
  padding: 0 56px;
  font-size: 24px;
  box-shadow: 0 6px 0 #000;
}
.site-cta-button--sm:hover { box-shadow: 0 3px 0 #000; transform: translateY(3px); }
.site-cta-button--sm:disabled { box-shadow: 0 6px 0 #000; transform: none; }
.site-cta-button--sm::after { right: 18px; width: 26px; height: 26px; font-size: 14px; }
/* 灰色のボタン(「修正する」など前の画面に戻る操作)。矢印は左側・左向き */
.site-cta-button--gray { background: linear-gradient(#6b6b6b, #9c9c9c); }
.site-cta-button--gray::after { content: "←"; right: auto; left: 28px; }
.site-cta-button--sm.site-cta-button--gray::after { left: 18px; }
/* 白いボタン(「参加店舗一覧を見る」など応募以外の補助的な移動) */
.site-cta-button--white { background: #fff; color: var(--ink); }
.site-cta-button--white::after { color: #fff; }

/* フォームの送信ボタン・リンクの並び */
.site-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

/* フッター */
.site-footer {
  padding: 80px 64px 96px;
  background: var(--footer-bg);
  color: #c8c8cc;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  letter-spacing: .1em;
}
.footer-logo img { width: 30px; filter: invert(.85); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  font-size: 16px;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-address {
  margin: 40px 0 0;
  font-size: 14px;
  font-style: normal;
  line-height: 2.2;
}
.copyright { margin: 40px 0 0; font-size: 12px; }

@media (max-width: 900px) {
  .site-header { padding: 0 16px; height: 64px; }
  .site-logo { font-size: 18px; }
  .site-logo img { width: 24px; }
  .site-nav a:not(.tel-pill) { display: none; }
  .tel-pill { padding: 6px 12px; font-size: 13px; }

  .site-content { padding: 40px 16px 80px; }
  .site-card { padding: 20px 16px 24px; }
  .site-card + .site-card { margin-top: 40px; }
  .site-card--form { padding: 24px 16px 32px; }
  .site-heading { font-size: 16px; }

  .site-cta-button { height: 76px; padding: 0 56px; font-size: 26px; }
  .site-cta-button::after { right: 16px; width: 26px; height: 26px; font-size: 14px; }
  .site-cta-button--sm { height: 60px; font-size: 20px; }

  .site-footer { padding: 48px 16px 56px; }
  .footer-logo { font-size: 20px; }
  .footer-nav { gap: 8px 24px; font-size: 14px; }
}
