/* ============================================
   全国潮見表 ランディングページ
   ============================================ */

/* --- Fonts (ローカル) --- */
@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('fonts/MPLUSRounded1c-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('fonts/MPLUSRounded1c-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(51, 255, 119, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(51, 255, 119, 0.03) 0%, transparent 50%),
    #0a0a0a;
}

.hero-inner {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

/* --- Hero Text --- */
.hero-text {
  flex: 1;
  max-width: 440px;
  text-align: center;
}

.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #33FF77;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.app-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.catchcopy {
  font-size: 1.15rem;
  color: #ccc;
  margin-bottom: 36px;
  line-height: 1.8;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #33FF77;
  color: #0a0a0a;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(51, 255, 119, 0.2);
}

.cta-btn:hover {
  background: #5fff94;
  box-shadow: 0 0 30px rgba(51, 255, 119, 0.35);
  transform: translateY(-2px);
}

.cta-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* --- Phone Mockup --- */
.hero-phone {
  flex-shrink: 0;
  text-align: center;
}

.hero-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.phone-frame {
  position: relative;
  width: 260px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #333,
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(51, 255, 119, 0.07);
}

.phone-notch {
  width: 100px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 8px;
}

.phone-screen {
  width: 100%;
  border-radius: 24px;
  display: block;
}

/* --- Features Section --- */
.features {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 48px;
  letter-spacing: 0.03em;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #33FF77;
  margin: 12px auto 0;
  border-radius: 2px;
}

.feature-card-wide {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
}

.feature-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-img {
  width: 50%;
  max-width: 160px;
  border-radius: 10px;
  margin: 0 auto 16px;
  display: block;
  border: 1px solid #222;
  clip-path: inset(6% 0 3% 0 round 10px);
}

.theme-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.theme-gallery img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #222;
  clip-path: inset(6% 0 3% 0 round 6px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(51, 255, 119, 0.05) 0%, transparent 70%);
}

.cta-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-sub {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.cta-main {
  font-size: 1.15rem;
  padding: 16px 48px;
}

.hero-qr {
  display: block;
  margin: 28px auto 0;
  width: 130px;
  height: 130px;
  border-radius: 8px;
  opacity: 0.85;
}

/* --- Install Guide --- */
.install-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.install-icon {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.install-desc {
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.install-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.install-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px;
}

.install-device {
  font-size: 0.85rem;
  font-weight: 700;
  color: #33FF77;
  margin-bottom: 8px;
}

.install-steps {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.8;
}

.install-steps strong {
  color: #ddd;
}

/* --- Notice Box --- */
.notice-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.notice-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.notice-top {
  padding-top: 0;
  padding-bottom: 20px;
}

.notice-desc {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.notice-install-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.notice-install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.notice-install-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}

.notice-install-device {
  font-weight: 700;
  color: #33ff77;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.notice-install-steps {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.7;
}

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 200, 50, 0.06);
  border: 1px solid rgba(255, 200, 50, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
}

.notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.notice-box p {
  font-size: 0.88rem;
  color: #ccc;
  line-height: 1.8;
}

/* --- YouTube Section --- */
.youtube-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}

.youtube-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Contact Link (top page) --- */
.contact-link-section {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid #1a1a1a;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 32px;
  border: 1px solid #444;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #33FF77;
  border-color: #33FF77;
  transform: translateY(-2px);
}

/* --- Contact Page --- */
.contact-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px;
}

.back-link {
  display: inline-block;
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #33FF77;
}

.contact-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.contact-sub {
  text-align: center;
  font-size: 0.88rem;
  color: #888;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
}

.form-group input,
.form-group textarea {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.95rem;
  color: #e0e0e0;
  background: #141414;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-btn {
  align-self: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Contact Result Page --- */
.result-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.result-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.result-message {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 40px;
}

.result-btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

/* --- Info Section (Developer) --- */
.info-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px 20px;
  border-top: 1px solid #1a1a1a;
}

/* --- Notes Section --- */
.notes-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-item h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.note-item p {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.7;
}

/* --- Developer --- */
.developer {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.developer-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
  flex-shrink: 0;
}

.developer-name {
  font-size: 1rem !important;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 4px !important;
}

.developer-info p {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.8;
}

.developer-youtube {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff4444;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.yt-icon {
  width: 42px;
  height: 42px;
}

.developer-youtube:hover {
  opacity: 0.7;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid #1a1a1a;
  color: #999;
  font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet & below */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px 32px;
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .app-title {
    font-size: 2.2rem;
  }

  .catchcopy {
    margin-bottom: 28px;
  }

  .phone-frame {
    width: 220px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features {
    padding: 60px 20px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .install-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .notice-install-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .developer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .app-title {
    font-size: 1.8rem;
  }

  .catchcopy {
    font-size: 1rem;
  }

  .cta-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .phone-frame {
    width: 200px;
  }
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-phone {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.feature-card {
  animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
