@charset "utf-8";

/* =========================================================
   ベース（リセット）
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "M PLUS 1p", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", sans-serif;
  background: #d00000; /* 外周の真っ赤な帯イメージ */
}

/* =========================================================
   ページ全体ラッパ（青いドット背景＋赤枠）
   ========================================================= */
.am-page {
  min-height: 100vh;
  max-width: 980px;
  margin: 0 auto;
  background-color: #004b93;

  /* 青いドット柄（アメコミ） */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 2px, transparent 2px);
  background-size: 10px 10px;

  border: 10px solid #ff0000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.am-main {
  flex: 1;
}

/* =========================================================
   ヘッダー（星条旗っぽい帯）
   ========================================================= */
.am-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #ffffff;
  background: #002b5c;
  border-bottom: 4px solid #ffcc00;
}

/* 星条旗パターン */
.am-header::before {
  content: "";
  display: block;
  height: 24px;
  background-image:
    /* 白星の帯 */
    radial-gradient(circle, #ffffff 2px, transparent 2px),
    /* 赤白ストライプ */
    repeating-linear-gradient(
      90deg,
      #d00000 0 16px,
      #ffffff 16px 32px
    );
  background-size:
    18px 18px,
    32px 24px;
  background-position:
    0 3px,
    0 0;
  border-bottom: 3px solid #000000;
}

.am-header-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 8px 16px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ロゴ */
.am-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.am-logo-badge {
  font-family: "Bangers", system-ui;
  font-size: 18px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffcc00;
  color: #000;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0 #000000;
}

.am-logo-text {
  font-family: "Bangers", system-ui;
  font-size: 24px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000000;
}

/* ナビ */
.am-nav {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-family: "Bangers", system-ui;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.am-nav-link {
  position: relative;
  padding: 4px 0;
}

.am-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: #ffcc00;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.15s ease-out;
}

.am-nav-link:hover::after {
  transform: scaleX(1);
}

/* ログインボタン */
.am-header-cta {
  margin-left: 12px;
}

.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 14px;
  border: 3px solid #000;
  background: #ffcc00;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

.am-btn:hover {
  transform: translate(-1px, -1px);
}

/* =========================================================
   ヒーロー：上部メインビジュアル
   ========================================================= */
.am-index {
  padding: 18px 0 30px;
}

.am-hero {
  position: relative;
  padding: 16px 16px 18px;
}

/* 白いパネルの上にコンテンツを乗せる */
.am-hero-layout {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
}

/* ヒーロー全体の白い帯（少し傾ける） */
.am-hero::before {
  content: "";
  position: absolute;
  inset: 8px 10px;
  background: #ffffff;
  border: 4px solid #000000;
  box-shadow: 5px 5px 0 #000000;
  transform: skewX(-3deg);
}

/* 左側：吹き出し風のコピー */
.am-hero-copy {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 4px solid #000000;
  border-radius: 30px;
  padding: 16px 16px 14px;
  box-shadow: 4px 4px 0 #000000;
}

/* 吹き出しの尾 */
.am-hero-copy::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: 22px;
  width: 30px;
  height: 30px;
  background: #ffffff;
  border: 4px solid #000000;
  border-left: none;
  border-top: none;
  transform: skewX(-25deg) rotate(-8deg);
}

.am-hero-label {
  margin: 0 0 6px;
  font-family: "Bangers", system-ui;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d00000;
}

.am-hero-title {
  margin: 0 0 6px;
  font-family: "Bangers", system-ui;
  font-size: 28px;
  line-height: 1.2;
  color: #000;
}

.am-hero-title span {
  display: inline-block;
  padding: 2px 8px;
  background: #ffcc00;
  transform: skewX(-8deg);
  box-shadow: 3px 3px 0 #000;
}

.am-hero-text {
  margin: 6px 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.am-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.am-hero-badges {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}

.am-hero-badges li {
  padding: 3px 8px;
  border-radius: 999px;
  border: 2px solid #000;
  background: #ffe66a;
}

/* 右側：アメコミ風パネル */
.am-hero-preview {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  border: 4px solid #000;
  background-color: #004b93;
  overflow: hidden;

  /* ドット＋ストライプ */
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
    repeating-linear-gradient(
      135deg,
      #ffcc00 0 8px,
      #004b93 8px 16px
    );
  background-size:
    10px 10px,
    24px 24px;
}

/* 上部タブ */
.am-hero-switch {
  display: flex;
  gap: 0;
}

.am-hero-switch-btn {
  flex: 1;
  border: none;
  border-bottom: 3px solid #000;
  padding: 8px 0;
  font-family: "Bangers", system-ui;
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
  background: #ffd800;
  color: #000;
}

.am-hero-switch-btn + .am-hero-switch-btn {
  border-left: 3px solid #000;
}

.am-hero-switch-btn.is-active {
  background: #ffffff;
}

.am-hero-panels {
  padding: 10px;
}

.am-hero-panel {
  display: none;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  border: 3px solid #000;
  padding: 8px;
}

.am-hero-panel.is-active {
  display: block;
}

/* スタンプグリッド */
.am-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.am-hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 3px solid #000;
}

.am-hero-card figcaption {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 6px;
  font-family: "Bangers", system-ui;
  font-size: 11px;
  letter-spacing: 0.16em;
  background: #ffcc00;
  border: 2px solid #000;
}

/* 壁紙プレビュー */
.am-hero-wall {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8px;
}

.am-hero-wall-main {
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #000;
  background: #fff;
}

.am-hero-wall-thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.am-hero-wall-thumbs img {
  border-radius: 8px;
  border: 2px solid #000;
}

.am-hero-note {
  margin: 6px 2px 0;
  font-size: 11px;
  color: #444;
}

/* =========================================================
   共通セクション（下部）
   ========================================================= */
.am-section {
  padding: 18px 16px 24px;
}

.am-section-inner {
  max-width: 940px;
  margin: 0 auto;
}

/* セクション見出し */
.am-section-head {
  margin-bottom: 10px;
}

.am-section-label {
  margin: 0 0 4px;
  font-family: "Bangers", system-ui;
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  color: #ffcc00;
}

.am-section-title {
  margin: 0 0 6px;
  font-family: "Bangers", system-ui;
  font-size: 22px;
  color: #ffffff;
}

.am-section-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #f3f4f6;
}

/* === PICK UP セクション（赤い帯＋チェック模様） === */
.am-section--dark {
  background:
    linear-gradient(#b00000, #b00000) padding-box,
    linear-gradient(#000, #000) border-box;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* 内側の白いパネル */
.am-section--dark .am-section-inner {
  background-color: #ffffff;
  border-radius: 0;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 12px 14px 14px;
}

/* タイトル色を赤に */
.am-section--dark .am-section-title {
  color: #b00000;
}

/* チェック柄のボーダー */
.am-section--dark .am-section-inner::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    #ffffff 0 12px,
    #ff0000 12px 24px
  );
}

/* === WALL セクション（青ベース＋白パネル） === */
.am-section--light {
  background-color: transparent;
}

.am-section--light .am-section-inner {
  background-color: #ffffff;
  border-radius: 0;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 12px 14px 16px;
}

.am-section--light .am-section-title {
  color: #004b93;
}

.am-section--light .am-section-lead {
  color: #222;
}

/* 壁紙レイアウト */
.am-wall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.am-wall-main {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #000;
}

.am-wall-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.am-wall-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  background: #ffeef2;
  border-radius: 14px;
  border: 2px solid #000;
}

.am-wall-item img {
  border-radius: 10px;
  border: 2px solid #000;
}

.am-wall-item figcaption {
  font-size: 12px;
}

/* 壁紙一覧ボタン */
.am-section-cta {
  margin-top: 12px;
}

.am-btn--border {
  background: #ffcc00;
}

/* === HOW TO ステップ（黄色帯＋チェック） === */
.am-section--steps {
  background-color: transparent;
}

.am-section--steps .am-section-inner {
  background-color: #fff6bf;
  border-radius: 0;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 10px 14px 14px;
}

.am-section--steps .am-section-title {
  color: #b00000;
}

.am-steps {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.am-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 14px;
  border: 3px solid #000;
}

.am-step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ffcc00;
  border: 3px solid #000;
  font-family: "Bangers", system-ui;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-step-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.am-step-text {
  margin: 0;
  font-size: 12px;
}

/* === 下部カテゴリ（Menu Recipe 風） === */
.am-section--bottom {
  background-color: transparent;
}

.am-section--bottom .am-section-inner {
  background-color: #ffe100;
  border-radius: 0;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 10px 14px 14px;
}

/* Menu Recipe 風タイトルカラー */
.am-section--bottom .am-section-title {
  font-size: 20px;
  color: #b00000;
  text-align: center;
}

.am-chip-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.am-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 3px solid #000;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   PICK UP カード（レシピ風ボックス）
   ========================================================= */
.am-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.am-card {
  background-color: #ffffff;
  border-radius: 0;
  border: 3px solid #000;
  padding: 8px 10px 10px;
  position: relative;
}

/* 上部に赤チェック */
.am-card::before {
  content: "";
  display: block;
  height: 10px;
  margin: -8px -10px 6px;
  background-image: repeating-linear-gradient(
    90deg,
    #ffffff 0 10px,
    #ff0000 10px 20px
  );
}

.am-card-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #b00000;
}

.am-card-tag {
  margin: 0 0 6px;
  font-size: 11px;
  color: #333333;
}

.am-card-stamps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.am-card-stamps img {
  border-radius: 8px;
  border: 2px solid #000;
}

.am-card-text {
  margin: 0;
  font-size: 12px;
}

/* =========================================================
   フッター
   ========================================================= */
.am-footer {
  background: #ffffff;
  border-top: 4px solid #000;
  padding: 10px 16px 14px;
}

.am-footer-inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  font-size: 11px;
}

.am-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 6px;
}

.am-footer-link {
  color: #b00000;
}

.am-footer-copy {
  margin: 0;
  color: #555555;
}

/* =========================================================
   フェードイン（JS 用）
   ========================================================= */
.am-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.am-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   画像のコピー抑止（トップのみ）
   ========================================================= */
.am-index img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* =========================================================
   スマホ対応
   ========================================================= */
@media (max-width: 768px) {
  .am-header-inner {
    padding-inline: 10px;
  }

  .am-nav {
    display: none;
  }

  .am-header-cta {
    margin-left: auto;
  }

  .am-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .am-hero-copy::after {
    display: none;
  }

  .am-card-grid,
  .am-wall-grid,
  .am-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================
   文字色を読みやすくリセット
   ===================================== */

/* 基本は濃いグレーの文字 */
body,
.am-page,
.am-main,
.am-section-inner {
  color: #111827;
}

/* ヘッダー / フッターは白文字 */
.am-header,
.am-header-inner,
.am-footer,
.am-footer-inner {
  color: #ffffff;
}

/* ヒーロー吹き出しの中（白背景） */
.am-hero-copy,
.am-hero-title,
.am-hero-text {
  color: #111827;
}

/* 吹き出しの黄色帯 */
.am-hero-title span {
  background: #ffe600;
  color: #000000;
}

/* セクション見出しラベル（黄色） */
.am-section-label {
  color: #ffcc00;
}

/* --- PICK UP STAMP（白パネル） --- */
.am-section--dark .am-section-title {
  color: #b00000;   /* 赤タイトル */
}
.am-section--dark .am-section-lead {
  color: #333333;
}

/* --- WALL セクション（白パネル） --- */
.am-section--light .am-section-title {
  color: #004b93;   /* 濃い青タイトル */
}
.am-section--light .am-section-lead {
  color: #333333;
}

/* --- HOW TO USE（黄色パネル） --- */
.am-section--steps .am-section-title {
  color: #b00000;
}
.am-section--steps .am-section-lead,
.am-step-text {
  color: #333333;
}

/* --- カテゴリ（黄色パネル） --- */
.am-section--bottom .am-section-title {
  color: #b00000;
}

/* カード・壁紙・その他テキスト */
.am-card-title {
  color: #b00000;
}
.am-card-text,
.am-wall-item figcaption {
  color: #333333;
}
.am-hero-note {
  color: #444444;
}

/* 下部カテゴリチップ */
.am-chip {
  background: #ffffff;
  color: #000000;
}

/* フッターリンク */
.am-footer-link {
  color: #b00000;
}
.am-footer-copy {
  color: #555555;
}

/* ボタン類（黄色背景に黒文字） */
.am-btn,
.am-btn--border {
  color: #000000;
}

/* STAMP / WALL タブ */
.am-hero-switch-btn {
  color: #000000;
}
.am-hero-switch-btn.is-active {
  color: #d00000;
  font-weight: bold;
}
    
 /* =====================================
料金ボックス（550円）
===================================== */

    .am-section--price {
  background-color: transparent;
}

.am-section--price .am-section-inner {
  background-color: #ffffff;
  border-radius: 0;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 14px 16px 18px;
}

.am-price-box {
  text-align: center;
}

.am-price-label {
  margin: 0 0 4px;
  font-family: "Bangers", system-ui;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b00000;
}

.am-price-main {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.am-price-main span {
  display: inline-block;
  padding: 4px 14px;
  background: #ffe600;
  border-radius: 999px;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
}

.am-price-note {
  margin: 0 0 8px;
  font-size: 11px;
  color: #555;
}

/* =====================================
   各セクション共通の登録ボタンエリア
   ===================================== */

.am-section-cta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.am-section-cta .am-btn {
  min-width: 210px;
  text-align: center;
}

/* スマホで幅を少し縮める */
@media (max-width: 768px) {
  .am-section-cta .am-btn {
    min-width: 80%;
  }
}

/* ==========================================
   見出しを黄色に＋うっすら赤枠を追加
   ========================================== */
.am-section-label,
.am-section-title {
  display: inline-block;
  background: #ffe600;
  padding: 3px 10px;
  border: 2px solid rgba(200, 0, 0, 0.4);
  box-shadow: 2px 2px 0 rgba(200, 0, 0, 0.25);
  color: #00F !important;
  text-align: left;
}

/* PRICE セクション用 見出しも同じスタイル */
.am-price-heading {
  display: inline-block;
  background: #ffe600;
  padding: 3px 10px;
  border: 2px solid rgba(200, 0, 0, 0.4);
  box-shadow: 2px 2px 0 rgba(200, 0, 0, 0.25);
  color: #00F;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  text-align: left;
}

/* ==========================================
   PRICE セクションの左寄せ
   ========================================== */
.am-section--price .am-section-inner,
.am-section--price .am-price-box,
.am-section--price p,
.am-section--price .am-price-main,
.am-section--price .am-price-note,
.am-section--price .am-section-cta {
  text-align: left !important;
}

/* PRICE の金額を左寄せに */
.am-price-main span {
  margin-left: 0;
}

/* 料金ボックスのボタンも左に寄せる */
.am-section--price .am-section-cta {
  justify-content: center !important;
}