/* ===================================================
   PoiLink LP - style.css
   白ベース・ブルーアクセント・ミニマルデザイン
   =================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ----- Container ----- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 111, 200, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* PC Nav */
.nav-pc {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-pc a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}

.nav-pc a:hover { color: #1a6fc8; }

.nav-cta {
  background: #1a6fc8 !important;
  color: #ffffff !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 0.875rem !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: #1557a8 !important;
  transform: translateY(-1px);
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* SP Nav */
.nav-sp {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  padding: 8px 0 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-sp.open { display: flex; }

.nav-sp-link {
  display: block;
  padding: 13px 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
  transition: background 0.15s, color 0.15s;
}

.nav-sp-link:hover {
  background: #f0f7ff;
  color: #1a6fc8;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1245a8 0%, #1a6fc8 40%, #1bbde8 80%, #38d9f5 100%);
  color: #ffffff;
  overflow: hidden;
  padding-top: 68px;
}

/* Decorative floating coins */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.coin {
  position: absolute;
  opacity: 1;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.coin-dim {
  opacity: 0.15;
  animation: float-dim 9s ease-in-out infinite;
}

@keyframes float {
  0%,  100% { transform: translateY(0) rotate(0deg); }
  33%        { transform: translateY(-18px) rotate(4deg); }
  66%        { transform: translateY(-8px) rotate(-3deg); }
}

@keyframes float-dim {
  0%,  100% { transform: translateY(0) rotate(0deg); }
  33%        { transform: translateY(-9px) rotate(2deg); }
  66%        { transform: translateY(-4px) rotate(-1.5deg); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 88px 32px 96px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 5px 18px;
}

.hero-label-wrap {
  margin-bottom: 48px;
}

.hero-brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fde68a;
  margin-bottom: 20px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  line-height: 1;
  gap: 16px;
}

.hero-appni {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.12em;
}

.hero-poikatsu {
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-kantan {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.badge {
  background: #1a4fa8;
  border-radius: 100px;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 1.25rem;
  min-width: 160px;
  text-align: center;
  color: #ffffff;
}

.badge-plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-simultaneous {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 48px;
}

.hero-desc {
  font-size: 0.9rem;
  line-height: 2;
  opacity: 0.85;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #1a6fc8;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 44px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: #fff;
  animation: scroll-down 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

@keyframes scroll-down {
  0%       { transform: scaleY(0); transform-origin: top; }
  50%      { transform: scaleY(1); transform-origin: top; }
  50.001%  { transform: scaleY(1); transform-origin: bottom; }
  100%     { transform: scaleY(0); transform-origin: bottom; }
}

/* ===================================================
   SECTION COMMONS
   =================================================== */
.section { padding: 100px 0; }
.alt-bg  { background: #f8fafc; }

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #1a6fc8;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.blue { color: #1a6fc8; }

.section-sub {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===================================================
   FEATURES
   =================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 56px;
}

/* 5-card layout: row1=3cards, row2=2cards centered */
.feature-card:nth-child(1) { grid-column: 1 / 3; }
.feature-card:nth-child(2) { grid-column: 3 / 5; }
.feature-card:nth-child(3) { grid-column: 5 / 7; }
.feature-card:nth-child(4) { grid-column: 2 / 4; }
.feature-card:nth-child(5) { grid-column: 4 / 6; }

.feature-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 36px 28px 32px;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(26, 111, 200, 0.12);
  transform: translateY(-5px);
  border-color: #bfdbfe;
}

.feature-icon-wrap {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.5;
}

.feature-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.85;
  text-align: left;
}

/* ===================================================
   COMPANY
   =================================================== */
.table-wrap {
  overflow-x: auto;
  margin-top: 52px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  background: #fff;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 28px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 190px;
  font-weight: 700;
  color: #1a6fc8;
  white-space: nowrap;
  background: rgba(26, 111, 200, 0.03);
}

.company-table td a {
  color: #1a6fc8;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.company-table td a:hover {
  color: #1557a8;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-form {
  max-width: 660px;
  margin: 56px auto 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 48px 48px 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group:last-of-type {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #374151;
}

.required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a6fc8;
  box-shadow: 0 0 0 3px rgba(26, 111, 200, 0.14);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

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

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 5px;
  min-height: 16px;
}

.btn-submit {
  width: 100%;
  background: #1a6fc8;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}

.btn-submit:hover {
  background: #1557a8;
  box-shadow: 0 6px 20px rgba(26, 111, 200, 0.3);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
  color: #10b981;
  font-weight: 500;
  min-height: 22px;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 36px;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: #ffffff;
}

/* ===================================================
   FADE-IN ANIMATION
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for feature cards */
.feature-card.fade-in:nth-child(1) { transition-delay: 0ms; }
.feature-card.fade-in:nth-child(2) { transition-delay: 80ms; }
.feature-card.fade-in:nth-child(3) { transition-delay: 160ms; }
.feature-card.fade-in:nth-child(4) { transition-delay: 240ms; }
.feature-card.fade-in:nth-child(5) { transition-delay: 320ms; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4),
  .feature-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Header */
  .nav-pc    { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-content { padding: 56px 20px 72px; }
  .hero-label   { font-size: clamp(0.68rem, 3vw, 0.85rem); letter-spacing: 0.04em; padding: 4px 12px; }
  .hero-label-wrap { margin-bottom: 28px; }
  .hero-appni   { font-size: 1.75rem; }
  .hero-poikatsu { font-size: clamp(3.5rem, 18vw, 5rem); }
  .hero-kantan  { font-size: 1.75rem; }
  .hero-title   { gap: 8px; margin-bottom: 28px; }
  .badge        { min-width: 120px; font-size: 1rem; padding: 8px 20px; }
  .hero-badges  { gap: 8px; margin-bottom: 4px; }
  .hero-simultaneous { font-size: 1.2rem; margin-bottom: 28px; }
  .hero-desc    { font-size: 0.875rem; line-height: 1.9; margin-bottom: 32px; }
  .btn-primary  { padding: 14px 36px; font-size: 0.95rem; }
  .hero-scroll-hint { display: none; }

  /* Sections */
  .section { padding: 64px 0; }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card { padding: 28px 24px; }
  .feature-icon-wrap { width: 120px; height: 120px; }

  /* Company */
  .table-wrap { border-radius: 8px; }
  .company-table th,
  .company-table td { padding: 14px 16px; font-size: 0.85rem; }
  .company-table th { width: 110px; }

  /* Contact */
  .contact-form  { padding: 32px 20px 28px; }
  .form-row      { grid-template-columns: 1fr; gap: 0; }
}

/* iPhone SE（375px）など極小画面向け追加調整 */
@media (max-width: 390px) {
  .hero-appni   { font-size: 1.5rem; }
  .hero-kantan  { font-size: 1.5rem; }
  .hero-poikatsu { font-size: clamp(3rem, 19vw, 4rem); }
  .badge        { min-width: 100px; font-size: 0.9rem; padding: 7px 16px; }
  .company-table th { width: 90px; }
  .company-table th,
  .company-table td { font-size: 0.8rem; padding: 12px 12px; }
}

/* ===== コイン：タブレット（601〜1440px）===== */
/* iPad Mini(768px)もこのルールを適用する */
@media (max-width: 1440px) and (min-width: 601px) {
  /* 左エリア（元の位置が左半分）→ 左端に寄せる */
  .hero-bg .c1 { width: 120px !important; left: 8% !important;  top: 13% !important; }
  .hero-bg .c4 { width: 110px !important; left: 15% !important; top: 32% !important; }
  .hero-bg .d5 { width: 125px !important; left: -2% !important; top: 36% !important; }
  .hero-bg .c3 { width: 72px !important;  left: 6% !important;  top: 53% !important; }
  .hero-bg .d1 { width: 72px !important;  left: 0% !important;  top: 67% !important; }
  .hero-bg .d4 { width: 109px !important; left: 3% !important;  top: 77% !important; }
  /* 右エリア（元の位置が右半分）→ 右に寄せる */
  .hero-bg .c2 { width: 128px !important; left: 80% !important; }
  .hero-bg .c5 { width: 82px !important;  left: 74% !important; }
  .hero-bg .c6 { width: 120px !important; left: 82% !important; }
  .hero-bg .d2 { width: 127px !important; }
  .hero-bg .d3 { width: 82px !important; }
  .hero-bg .d6 { width: 114px !important; }
}

/* ===== コイン：スマホ（〜600px）===== */
@media (max-width: 600px) {
  /* 全コイン非表示 */
  .hero-bg .coin { display: none !important; }

  /* ---- 不透明度100%（5枚・ジグザグ配置） ---- */
  /* 右上（大）：ラベル上、右端から60px見える */
  .hero-bg .c2 {
    display: block !important;
    left: calc(100% - 72px) !important;
    top: 7% !important;
    width: 96px !important;
  }
  /* 左「アプリに」レベル（大）：左端から45px見える */
  .hero-bg .c1 {
    display: block !important;
    left: -28px !important;
    top: 26% !important;
    width: 80px !important;
  }
  /* 右「アプリに」レベル（中）：右端から40px見える */
  .hero-bg .c5 {
    display: block !important;
    left: calc(100% - 72px) !important;
    top: 29% !important;
    width: 55px !important;
  }
  /* 左「バッジ」レベル（中）：左端から32px見える */
  .hero-bg .c4 {
    display: block !important;
    left: 8px !important;
    top: 54% !important;
    width: 44px !important;
  }
  /* 右「同時にアップ」レベル（大）：右端から48px見える */
  .hero-bg .c6 {
    display: block !important;
    left: calc(100% - 38px) !important;
    top: 51% !important;
    width: 85px !important;
  }
  /* c3はスマホ非表示 */

  /* ---- 不透明度15%（4枚） ---- */
  /* 左上 */
  .hero-bg .d5 {
    display: block !important;
    left: -42px !important;
    top: 2% !important;
    width: 100px !important;
  }
  /* 左下（説明文レベル） */
  .hero-bg .d1 {
    display: block !important;
    left: -50px !important;
    top: 74% !important;
    width: 90px !important;
  }
  /* 右下（説明文レベル） */
  .hero-bg .d3 {
    display: block !important;
    left: calc(100% - 40px) !important;
    top: 85% !important;
    width: 85px !important;
  }
}
