:root {
  --theme-red: #d92525;
  --theme-green: #1a5c3a;
  --theme-gold: #e6a23c;
  --theme-bg: #fcf9f2;
  --theme-text: #2c2c2c;
  --theme-gray: #666;
  --theme-border: #e0d8c8;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-main);
  background-color: var(--theme-bg);
  color: var(--theme-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Nav */
header {
  background-color: #fff;
  border-bottom: 1px solid var(--theme-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
  color: var(--theme-red);
}
.brand img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: none;
}
.nav-download {
  background-color: var(--theme-red);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a0a0a 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.hero h1 {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero p {
  font-size: 16px;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s, opacity 0.2s;
}
.btn:active {
  transform: scale(0.96);
}
.btn-android {
  background-color: var(--theme-green);
  color: #fff;
}
.btn-ios {
  background-color: #333;
  color: #fff;
}
.btn-other {
  background-color: var(--theme-gold);
  color: #fff;
}

/* Section Common */
section {
  padding: 40px 0;
}
.section-title {
  font-size: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--theme-red);
  border-radius: 2px;
}

/* Scroll Grid */
.scroll-grid {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-grid::-webkit-scrollbar {
  height: 4px;
}
.scroll-grid::-webkit-scrollbar-thumb {
  background: var(--theme-border);
  border-radius: 4px;
}
.card-item {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-item img {
  width: 100%;
  aspect-ratio: 3/4;
}
.card-info {
  padding: 10px;
}
.card-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 12px;
  color: var(--theme-gray);
  display: flex;
  justify-content: space-between;
}

/* Original & Calendar */
.layout-split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.layout-left {
  width: 100%;
}
.layout-right {
  width: 100%;
}
.story-intro {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 16px;
}
.story-intro h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.story-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.tag {
  font-size: 12px;
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 4px;
  color: var(--theme-gray);
}
.story-desc {
  font-size: 14px;
  color: var(--theme-gray);
  margin-bottom: 12px;
}
.story-time {
  font-size: 12px;
  color: #999;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--theme-red);
}
.timeline-item {
  margin-bottom: 16px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--theme-red);
  border-radius: 50%;
  border: 2px solid #fff;
}
.timeline-time {
  font-size: 14px;
  font-weight: bold;
  color: var(--theme-red);
}
.timeline-content {
  font-size: 14px;
  color: var(--theme-gray);
  margin-top: 4px;
}

/* Wish & Weekly (Tabular) */
.list-box {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.list-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.list-item:last-child {
  border-bottom: none;
}
.list-rank {
  font-size: 16px;
  font-weight: bold;
  color: var(--theme-gold);
  width: 30px;
}
.list-text {
  flex: 1;
  font-size: 14px;
}
.list-badge {
  font-size: 12px;
  color: #fff;
  background: var(--theme-red);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Comments */
.comment-box {
  display: grid;
  gap: 16px;
}
.comment-item {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.comment-content {
  flex: 1;
}
.comment-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}
.comment-text {
  font-size: 14px;
  color: var(--theme-gray);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--theme-border);
}
.faq-q {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--theme-text);
}
.faq-a {
  font-size: 14px;
  color: var(--theme-gray);
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-item {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-num {
  background: var(--theme-green);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}
.step-text {
  font-size: 14px;
  color: var(--theme-text);
}

/* Footer */
footer {
  background: #222;
  color: #888;
  padding: 40px 0 20px;
  text-align: center;
  font-size: 12px;
  margin-top: 40px;
}
footer p {
  margin-bottom: 8px;
}
footer a {
  color: #888;
}
.footer-update {
  font-size: 12px;
  color: #666;
  margin-top: 12px;
}

/* Modal */
.modal-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 80%;
  max-width: 320px;
  text-align: center;
}
.modal-text {
  font-size: 14px;
  color: var(--theme-text);
  margin-bottom: 16px;
}
.modal-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}
.modal-btn {
  background: var(--theme-red);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
}

/* Media Queries */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 20px;
  }
  .nav-links a {
    font-size: 14px;
    color: var(--theme-gray);
    font-weight: bold;
  }
  .nav-links a:hover {
    color: var(--theme-red);
  }
  .hero {
    padding: 80px 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  .scroll-grid {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-start;
  }
  .card-item {
    flex: 0 0 calc(25% - 12px);
  }
  .layout-split {
    flex-direction: row;
    gap: 32px;
  }
  .layout-left {
    width: 40%;
  }
  .layout-right {
    width: 60%;
  }
  .comment-box {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .step-item {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }
  .card-item {
    flex: 0 0 calc(20% - 12.8px);
  }
  .comment-box {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    flex-wrap: nowrap;
  }
  .step-item {
    flex: 1;
  }
}