/* ---------- Site 1 (rkt-exp) — Rakuten Red · Information-organized concept ---------- */

:root {
  --red: #BF0000;
  --red-deep: #960000;
  --ink: #1A1A1A;
  --gray-9: #2C2C2C;
  --gray-7: #4A4A4A;
  --gray-5: #767676;
  --gray-3: #BFBFBF;
  --gray-1: #EAEAEA;
  --bg: #FFFFFF;
  --bg-soft: #F7F4F2;
  --bg-tint: #FBF1F1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 4px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-9);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--ink); line-height: 1.3; letter-spacing: -.02em; margin: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-1);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--red); font-size: 18px; }
.brand-name { font-size: 16px; }
.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 4px;
  color: var(--gray-7); font-weight: 500; font-size: 14.5px;
}
.nav-link:hover { background: var(--bg-tint); color: var(--red); text-decoration: none; }
.nav-link.active { color: var(--red); background: var(--bg-tint); }

/* ---------- Hero ---------- */
.hero, .page-hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, #FFFFFF 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--gray-1);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: .12em; font-weight: 700;
  color: var(--red);
  background: #fff; border: 1px solid var(--red);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.hero-title { font-size: 40px; font-weight: 900; margin-bottom: 16px; }
.page-title { font-size: 36px; font-weight: 900; margin-bottom: 14px; }
.hero-desc, .page-desc { font-size: 16.5px; color: var(--gray-7); margin: 0 0 24px; max-width: 560px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; font-size: 15px; font-weight: 700;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--gray-3); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: 14px 28px; font-size: 16px; margin-top: 24px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--gray-7); }
.hero-meta strong { color: var(--red); font-weight: 800; }

.hero-figure {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-1);
}
.hero-figure img { width: 100%; height: 380px; object-fit: cover; }
.hero-figure figcaption {
  padding: 10px 16px; font-size: 13px; color: var(--gray-7);
  background: #fff; border-top: 1px solid var(--gray-1);
}

/* ---------- Section base ---------- */
section { padding: 64px 0; }
.section-title { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.section-lead { font-size: 16px; color: var(--gray-7); max-width: 640px; margin: 0 0 32px; }
.section-head { margin-bottom: 32px; }
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--gray-7); border: 1px solid var(--gray-3); background: #fff;
  padding: 3px 8px; border-radius: 3px; margin-bottom: 12px;
}
.section-tag.tag-strong { color: #fff; background: var(--red); border-color: var(--red); }

/* ---------- Info grid (about) ---------- */
.info-block { background: #fff; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-card {
  background: var(--bg-soft); padding: 22px;
  border-radius: var(--radius-lg); border-left: 3px solid var(--red);
}
.info-card h3 { font-size: 15px; margin-bottom: 8px; color: var(--red-deep); }
.info-card p { font-size: 14px; color: var(--gray-7); margin: 0; line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { margin: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }
.gallery-item figcaption { font-size: 13px; padding: 10px 14px; color: var(--gray-7); border-top: 1px solid var(--gray-1); }

/* ---------- Code cards ---------- */
.codes { background: #fff; }
.codes-alt { background: var(--bg-tint); }
.code-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.code-grid-4 { grid-template-columns: repeat(4, 1fr); }

.code-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-1);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
}
.code-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.code-card-flat { background: #fff; }
.code-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.code-card-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--red); background: var(--bg-tint);
  padding: 3px 8px; border-radius: 3px;
}
.code-card-discount { font-size: 13px; font-weight: 800; color: var(--ink); }
.code-card-title { font-size: 17px; font-weight: 800; }
.code-card-desc { font-size: 13.5px; color: var(--gray-7); margin: 0; line-height: 1.6; flex: 1; }
.code-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px dashed var(--gray-1);
}
.code-pill {
  font-family: 'Courier New', ui-monospace, monospace;
  font-weight: 700; font-size: 13px;
  color: var(--red); background: var(--bg-tint);
  padding: 5px 10px; border-radius: 4px; border: 1px dashed var(--red);
}
.code-action { font-size: 12.5px; color: var(--gray-5); font-weight: 600; }

/* ---------- Howto ---------- */
.howto { background: var(--bg-soft); }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step-list li { display: flex; gap: 16px; background: #fff; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--gray-1); }
.step-num { font-weight: 900; font-size: 22px; color: var(--red); min-width: 44px; }
.step-list h3 { font-size: 16px; margin-bottom: 6px; }
.step-list p { font-size: 14px; color: var(--gray-7); margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq { background: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--gray-1); border-radius: var(--radius);
  background: #fff; overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--red); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; color: var(--red); font-weight: 700;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body { padding: 0 22px 20px; color: var(--gray-7); font-size: 14.5px; line-height: 1.7; }
.faq-body p { margin: 0; }

/* ---------- Support page specific ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.contact-card { background: #fff; border: 1px solid var(--gray-1); border-radius: var(--radius-lg); padding: 22px; }
.contact-card.primary { background: var(--red); color: #fff; border-color: var(--red); }
.contact-label { font-size: 12px; letter-spacing: .04em; font-weight: 700; opacity: .85; }
.contact-card.primary .contact-label { color: #ffe9e9; }
.contact-tel { display: block; font-size: 22px; font-weight: 900; color: var(--ink); margin-top: 10px; font-family: 'Courier New', ui-monospace, monospace; }
.contact-card.primary .contact-tel { color: #fff; }
.contact-tel:hover { text-decoration: none; opacity: .85; }
.contact-hours { font-size: 12.5px; color: var(--gray-7); margin: 8px 0 0; }
.contact-card.primary .contact-hours { color: #ffe2e2; }
.contact-list { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 12px 22px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--gray-1); gap: 16px; flex-wrap: wrap; }
.contact-row:last-child { border-bottom: none; }
.contact-row-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.contact-row-value { font-size: 14px; color: var(--gray-7); word-break: break-all; }

/* support banner */
.support-banner { padding: 48px 0; background: var(--bg-soft); }
.banner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.banner-img { margin: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.banner-img img { width: 100%; height: 160px; object-fit: cover; }
.banner-img figcaption { font-size: 12.5px; padding: 8px 12px; color: var(--gray-7); border-top: 1px solid var(--gray-1); }

.issue-block { background: #fff; }
.issue-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.issue-item { display: flex; gap: 16px; background: var(--bg-soft); padding: 22px; border-radius: var(--radius-lg); border-left: 3px solid var(--red); }
.issue-num { font-size: 24px; font-weight: 900; color: var(--red); min-width: 44px; }
.issue-item h3 { font-size: 16px; margin-bottom: 6px; }
.issue-item p { font-size: 14px; color: var(--gray-7); margin: 0; }

.prep-block { background: var(--bg-tint); }
.prep-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prep-list li { background: #fff; padding: 16px 20px; border-radius: var(--radius); border-left: 3px solid var(--red); font-size: 14.5px; color: var(--gray-7); }
.prep-list strong { color: var(--ink); display: block; margin-bottom: 4px; }

.self-block { background: #fff; }
.self-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.self-card { background: var(--bg-soft); padding: 24px; border-radius: var(--radius-lg); }
.self-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--red); }
.self-card p { font-size: 14px; color: var(--gray-7); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1A1A1A; color: #C4C4C4; padding: 40px 0 28px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { color: #fff; font-weight: 800; margin: 0 0 6px; font-size: 16px; }
.footer-desc { font-size: 13px; line-height: 1.6; max-width: 720px; margin: 0; color: #999; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: #C4C4C4; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 12.5px; color: #777; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid #333; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure img { height: 260px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .banner-grid { grid-template-columns: repeat(2, 1fr); }
  .code-grid, .code-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .step-list, .issue-list, .prep-list { grid-template-columns: 1fr; }
  .self-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  section, .hero, .page-hero { padding: 44px 0; }
  .hero-title { font-size: 30px; }
  .page-title { font-size: 28px; }
  .section-title { font-size: 22px; }
  .info-grid, .gallery-grid, .banner-grid { grid-template-columns: 1fr; }
  .code-grid, .code-grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-link { font-size: 13.5px; padding: 6px 10px; }
  .brand-name { font-size: 14.5px; }
}
