/* =========================
   Reset & Base
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f6f1e8;
  --color-header: #fffaf2;
  --color-footer: #1bb6a0;
  --color-text: #25423f;
  --color-border: #e4d8c8;
  --footer-height: 56px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  color: var(--color-text);
  line-height: 1.6;

  background: var(--color-bg);

  /* bodyスクロールを成立させる */
  min-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* スクロールバー非表示 */
body::-webkit-scrollbar {
  display: none;
}
body {
  scrollbar-width: none;
}

/* =========================
   Typography
   ========================= */
h1, h2, h3 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

a {
  color: var(--color-footer);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================
   Header
   ========================= */
.content-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text);

  background: var(--color-header);

  box-shadow: 0 2px 8px rgba(80, 55, 30, 0.08);
  border-bottom: 1px solid var(--color-border);
}

/* =========================
   Layout
   ========================= */
/* ベース＝スクロール部分 */
.content-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;

  padding-top: 80px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(var(--footer-height) + 40px);

  /* stickyを殺さないために重要 */
  overflow: visible;
}
/* =========================
   Sticky Area（固定エリア）
   ========================= */
.sticky-area {
  position: sticky;
  top: 60px;
  z-index: 20;

  width: 100%;
  max-width: 720px;
  margin: 0 auto;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  padding-bottom: 8px;
}

/* =========================
   Tab UI
   ========================= */
.tab-header {
  display: flex;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

.tab-header button {
  flex: 1;
  padding: 10px 6px;

  border: none;
  background: #f0f0f0;
  color: #555;
  font-weight: bold;
  cursor: pointer;

  border-bottom: 2px solid transparent;
}

.tab-header button.active {
  background: #fff;
  color: #222;
  border-bottom: 2px solid #222;
}

.tab-header button:not(.active):hover {
  background: #e6e6e6;
}

/* =========================
   Tab Content
   ========================= */
/* スクロール部分 */
.tab-content-wrapper {
  overflow: visible;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* =========================
   Cards / Info
   ========================= */
.step-card,
.content-card,
.info-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-row {
  margin-bottom: 6px;
}

.subtle {
  color: #888;
  font-size: 0.85rem;
}

/* =========================
   Buttons
   ========================= */
button {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  background: #007bff;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

.btn-green {
  background: #28a745;
}
.btn-green:hover {
  background: #218838;
}

.btn-green.disabled {
  background: #ccc;
  pointer-events: none;
}

.btn-red {
  width: 100%;
  padding: 0.8rem;
  background: #f44336;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 1rem;
}

/* =========================
   Footer
   ========================= */
footer {
  background: none;
  height: auto;
  margin-top: 0;
  color: inherit;
}

/* フッター背景＋フェード */
.footer-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  z-index: 998;

  background: var(--color-footer);
}

/* フッターナビ */
.footer-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  background: transparent;
  border-top: none;

  display: flex;
  justify-content: space-around;
  padding: 8px 0 6px;
  z-index: 999;
}

.footer-tab {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.footer-tab.active {
  color: #fff7d1;
  font-weight: bold;
}

.footer-tab img {
  display: block;
  margin: 0 auto 2px;
  width: 28px;
  height: 28px;
  transition: transform 0.2s;
}

.footer-tab span {
  display: block;
  line-height: 1;
}

.footer-tab.active img {
  width: 34px;
  height: 34px;
  transform: scale(1.1);
}
