/* ===================================================
   UNIVERSAL Mobile – Redesign (docomo-inspired)
   2025
=================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #e60012;
  --red-dark:  #c0000f;
  --red-light: #fff0f0;
  --navy:      #1a2744;
  --gray-900:  #1a1a1a;
  --gray-700:  #444;
  --gray-500:  #767676;
  --gray-300:  #ccc;
  --gray-100:  #f5f5f5;
  --white:     #fff;
  --border:    #e8e8e8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --font: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
  --transition: .2s ease;
}

/* ======================
   HERO / SLIDER
====================== */
.top-hero-wrap {
  background: var(--white);
  padding: 0;
}

.hero-slider-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.hero-slider-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1300 / 380;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0d1b35;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }

.hero-slide-fallback {
  background: linear-gradient(130deg, #0d1b35 0%, #1a3a6b 60%, #ed3237 100%);
  display: flex;
  align-items: center;
  padding: 40px 56px;
}

.hero-slide-content {
  color: var(--white);
  max-width: 520px;
}

.hero-slide-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.hero-slide-title {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-slide-sub {
  font-size: 14px;
  opacity: .85;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 28px;
  border-radius: 24px;
  transition: background var(--transition), transform var(--transition);
}
.hero-slide-btn:hover { background: #f5f5f5; transform: translateY(-1px); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,.32); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 8px;
}
.slider-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active {
  background: var(--red);
  transform: scale(1.3);
}

/* ======================
   NEWS TICKER
====================== */
.top-news-wrap {
  background: var(--white);
  padding: 12px 0 0;
}
.top-news {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.top-news-label {
  flex-shrink: 0;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.top-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.top-news ul li {
  font-size: 13px;
  color: var(--gray-700);
}
.top-news ul li a {
  color: var(--gray-700);
  text-decoration: none;
}
.top-news ul li a:hover { color: var(--red); text-decoration: underline; }

/* ======================
   SECTION COMMON
====================== */
.top-section {
  padding: 64px 0;
}
.top-section-alt {
  background: var(--gray-100);
}
.top-section-tight {
  padding: 48px 0;
}

.top-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.top-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.top-section-title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.02em;
  margin: 0;
}

.top-section-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ======================
   WHY SECTION
====================== */
.top-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.top-why-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.top-why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.top-why-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

.top-why-text h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray-900);
  margin: 0;
}

/* ======================
   PLANS SECTION
====================== */
.top-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.top-plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.top-plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.top-plan-card.popular {
  border-color: var(--red);
}

.top-plan-badge {
  position: absolute;
  top: -1px; right: 18px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: .05em;
}

.top-plan-card-header {
  padding: 28px 24px 20px;
  background: var(--gray-100);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.top-plan-card.popular .top-plan-card-header {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
}

.top-plan-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.top-plan-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.top-plan-price-dollar {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  align-self: flex-start;
  margin-top: 6px;
}

.top-plan-price-num {
  font-size: 52px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  letter-spacing: -.04em;
}

.top-plan-price-mo {
  font-size: 14px;
  color: var(--gray-500);
  margin-left: 2px;
}

.top-plan-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-700);
}

.top-plan-feature .fa {
  color: var(--red);
  width: 16px;
  flex-shrink: 0;
  font-size: 13px;
}

.top-plan-feature strong {
  font-weight: 700;
  color: var(--gray-900);
}

.top-plan-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

.top-plan-card-footer {
  padding: 0 24px 24px;
}

.top-plan-card-btn {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid var(--red);
  color: var(--red);
  background: none;
}
.top-plan-card:hover .top-plan-card-btn { background: var(--red-light); transform: translateY(-1px); }

.top-plan-card.popular .top-plan-card-btn {
  background: var(--red);
  color: var(--white);
}
.top-plan-card.popular:hover .top-plan-card-btn { background: var(--red-dark); }

/* stamp (既存互換) */
.top-plan-stamp {
  display: none;
}

.top-plan-compare-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.top-plan-compare-link:hover { text-decoration: underline; }
.top-plan-compare-link .fa { margin-left: 4px; }

/* ======================
   OPTIONS SECTION
====================== */
.top-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.top-option-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.top-option-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.top-option-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--red);
}

.top-option-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 6px;
}

.top-option-body p {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

.top-option-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
}

/* ======================
   SHORT-TERM / eSIM SECTION
====================== */
.top-esim-banner {
  background: linear-gradient(120deg, #0d1b35 0%, #1a3a6b 100%);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.top-esim-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.top-esim-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; right: 120px;
  width: 200px; height: 200px;
  background: rgba(237,50,55,.12);
  border-radius: 50%;
}

.top-esim-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.top-esim-title {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.35;
}

.top-esim-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 24px;
}

.top-esim-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.top-esim-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 16px;
  backdrop-filter: blur(4px);
}
.top-esim-chip .fa {
  color: #7dd3fc;
  font-size: 11px;
}

.top-esim-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: #0d1b35;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.top-esim-btn:hover { background: #f0f4ff; transform: translateY(-1px); }

.top-esim-price-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  min-width: 180px;
}

.top-esim-price-from {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}

.top-esim-price-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.top-esim-price-unit {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

.top-esim-price-note {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 8px;
  line-height: 1.5;
}

/* ======================
   GUIDE STEPS
====================== */
.top-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.top-guide-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.top-guide-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px 24px;
  position: relative;
  z-index: 1;
}

.top-guide-step-num {
  width: 56px; height: 56px;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--white);
}

.top-guide-step h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
  line-height: 1.4;
}

.top-guide-step p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* ======================
   FAQ
====================== */
.top-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.top-faq-item {
  border-bottom: 1px solid var(--border);
}
.top-faq-item:last-child { border-bottom: none; }

.top-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  gap: 16px;
  transition: background var(--transition);
}
.top-faq-question:hover { background: var(--gray-100); }

.top-faq-q-label {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.top-faq-question-text { flex: 1; }

.top-faq-chevron {
  flex-shrink: 0;
  color: var(--gray-500);
  font-size: 12px;
  transition: transform var(--transition);
}
.top-faq-item.open .top-faq-chevron { transform: rotate(180deg); }

.top-faq-answer {
  display: none;
  padding: 4px 24px 20px 64px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.8;
  background: #fafafa;
}
.top-faq-item.open .top-faq-answer { display: block; }

/* ======================
   WIFI BANNER
====================== */
.top-wifi-banner {
  background: linear-gradient(120deg, #0a3d62 0%, #1565c0 100%);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.top-wifi-banner::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.top-wifi-banner-icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: var(--white);
}

.top-wifi-banner-body { flex: 1; }

.top-wifi-banner-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 6px;
}

.top-wifi-banner-body p {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  margin: 0;
}

.top-wifi-banner-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: #1565c0;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 24px;
  border-radius: 22px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.top-wifi-banner-btn:hover { background: #f0f4ff; transform: translateY(-1px); }

/* ======================
   CTA GRID
====================== */
.top-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.top-cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 22px;
  border-radius: var(--radius-md);
  transition: filter var(--transition), transform var(--transition);
  text-decoration: none;
}
.top-cta-card:hover { filter: brightness(1.07); transform: translateY(-2px); }

.top-cta-card .fa {
  font-size: 28px;
  color: var(--white);
  flex-shrink: 0;
  opacity: .9;
}

.top-cta-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
}

.top-cta-card-sub {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin-top: 3px;
  line-height: 1.4;
  margin-bottom: 0;
}

/* ======================
   TRUST / CORP STRIP
====================== */
.trust-corp-wrap {
  background: #f8f8f8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-corp-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-nums {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-num-item {
  text-align: center;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-num-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  display: block;
}

.trust-num-val .plus {
  font-size: 18px;
  color: var(--gray-500);
}

.trust-num-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 3px;
  display: block;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.trust-corp-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.trust-corp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trust-corp-tag {
  font-size: 11.5px;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 900px) {
  .top-why-grid { grid-template-columns: repeat(2, 1fr); }
  .top-plans-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .top-options-grid { grid-template-columns: repeat(2, 1fr); }
  .top-guide-steps { grid-template-columns: repeat(2, 1fr); }
  .top-guide-steps::before { display: none; }
  .top-cta-grid { grid-template-columns: 1fr; }
  .top-esim-banner { grid-template-columns: 1fr; gap: 24px; }
  .top-esim-price-box { max-width: 240px; }
}

@media (max-width: 600px) {
  .top-why-grid { grid-template-columns: 1fr; }
  .top-options-grid { grid-template-columns: 1fr; }
  .top-guide-steps { grid-template-columns: 1fr; }
  .top-wifi-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
  .trust-corp-inner { flex-direction: column; gap: 20px; }
  .trust-nums { gap: 20px; justify-content: center; }
  .top-esim-banner { padding: 28px 24px; }
  .hero-slider-inner { padding: 12px 16px 0; }
  .top-section { padding: 44px 0; }
}
