/* ==============================================
   沖縄八重山日報 アプリ移行ガイド
   app-migration-guide.css
   ============================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --red: #C70029;
  --red-dark: #9e0020;
  --red-light: #fdf0f2;
  --red-mid: #f5c0cb;
  --ink: #1a1a1a;
  --ink-mid: #444;
  --ink-light: #777;
  --paper: #faf8f5;
  --border: #e0d8cc;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(199,0,41,0.07);
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== BASE ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

/* ===== HEADER (support.yaeyama-nippo.co.jp 準拠) ===== */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
  text-decoration: none;
}
.site-logo:hover {
  background: rgba(0,0,0,0.05);
}
.site-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* ===== HERO ===== */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 40px 20px 36px;
}
.hero-label {
  display: inline-block;
  background: var(--red-light);
  border: 1px solid var(--red-mid);
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--red);
  padding: 4px 16px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
}
.hero p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== NOTICE BOX ===== */
.notice-wrap {
  max-width: 820px;
  margin: 32px auto 0;
  padding: 0 20px;
}
.notice-box {
  background: var(--white);
  border: 1.5px solid var(--red-mid);
  border-left: 5px solid var(--red);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.notice-box .notice-title {
  font-weight: 700;
  color: var(--red);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.notice-box .notice-title::before {
  content: '！';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.notice-box p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.8;
}
.notice-box p + p {
  margin-top: 8px;
}
.notice-box .notice-sub {
  font-size: 0.83rem;
  color: var(--ink-light);
  margin-top: 8px;
}

/* ===== MAIN CONTENT ===== */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  border-left: 4px solid var(--red);
  padding-left: 14px;
  margin-bottom: 24px;
  margin-top: 48px;
}

/* ===== CHANGE SUMMARY ===== */
.change-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.change-box {
  text-align: center;
}
.change-box .cb-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.change-box .cb-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}
.cb-tag.old {
  background: #f0f0f0;
  color: #888;
  text-decoration: line-through;
}
.cb-tag.new {
  background: var(--red-light);
  color: var(--red);
  border: 1.5px solid var(--red-mid);
}
.change-box .cb-desc {
  font-size: 0.82rem;
  color: var(--ink-mid);
  margin-top: 10px;
  line-height: 1.6;
}
.change-arrow {
  font-size: 1.6rem;
  color: var(--red);
  font-weight: 700;
}
.change-note {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-top: 8px;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: var(--red-mid);
  z-index: 0;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 0 0 32px;
  position: relative;
  z-index: 1;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(199,0,41,0.25);
  border: 3px solid var(--white);
}
.step-num .sn-label {
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
  line-height: 1;
}
.step-num .sn-digit {
  font-size: 1.4rem;
  line-height: 1;
}
.step-body {
  flex: 1;
  background: var(--white);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-top: 6px;
}
.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-body p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.8;
}
.step-body .step-note {
  margin-top: 12px;
  background: var(--red-light);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--red-dark);
  line-height: 1.7;
}
.step-body .step-note strong { color: var(--red); }
.step-body .store-btns {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s;
}
.store-btn:hover { background: var(--red); }
.store-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.store-btn.ios { background: #1a1a1a; }
.store-btn.android { background: #2e7d32; }
.store-btn.primary {
  background: var(--red);
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 14px 18px;
}
.store-btn.disabled {
  background: #b0b0b0;
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
}
.store-btn.disabled:hover { background: #b0b0b0; }

/* 準備中バッジ */
.store-btn-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.coming-soon-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 10px;
  letter-spacing: 0.08em;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}
.faq-q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 1px;
}
.faq-q-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.faq-toggle {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--ink-light);
  transition: transform 0.25s;
  margin-top: 2px;
}
.faq-item.open .faq-toggle { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px 62px;
}
.faq-a-text {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.85;
}
.faq-item.open .faq-a { display: block; }

/* ===== CONTACT ===== */
.contact-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.contact-box h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.contact-box p {
  font-size: 0.87rem;
  color: var(--ink-mid);
  margin-bottom: 18px;
  line-height: 1.75;
}
.contact-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.contact-btn:hover { background: var(--red-dark); }

/* ===== FOOTER (support.yaeyama-nippo.co.jp 準拠) ===== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 24px 16px 16px;
  margin-top: auto;
  font-family: 'Noto Sans JP', sans-serif;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo {
  margin-bottom: 20px;
}
.footer-logo img {
  height: 32px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}
.footer-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-bottom: 20px;
}
.footer-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--red); }
.footer-copy {
  font-size: 0.72rem;
  color: #9ca3af;
  letter-spacing: 0.05em;
  text-align: center;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .change-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .change-arrow { transform: rotate(90deg); }
  .steps::before { left: 25px; }
  .step-num { width: 50px; height: 50px; }
  .step-body { padding: 18px 16px; }
  .faq-a { padding-left: 20px; }
}
