/* ===== Variables ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-dark: #1a2332;
  --text: #111;
  --muted: #111;
  --line: #d8e3ef;
  --accent: #ff6b2c;
  --accent-deep: #e35013;
  --accent-glow: rgba(255, 107, 44, 0.25);
  --sub: #e30000;
  --card: #ffffff;
  --shadow: 0 8px 20px rgba(13, 31, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(13, 31, 56, 0.12);
    --radius-lg: 10px;
    --radius-md: 7px;
    --radius-sm: 5px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "YakuHanJP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "メイリオ" , "Yu Gothic", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "YakuHanJP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "メイリオ" , "Yu Gothic", sans-serif;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }

.wrap {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.sp-only { display: none; }
.text-center { text-align: center; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(11, 26, 44, 0.06);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  display: block;
  width: auto;
  height: 50px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.header-nav a {
  color: #3a4d62;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent); }
.header-inner > .btn { margin-left: 8px; flex-shrink: 0; }
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.is-active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 7px;
  padding: 0 40px 2px 40px;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff8d2e 70%);
  box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-deep), #ff7a27 70%);
  box-shadow: 0 12px 28px var(--accent-glow);
}
.btn-phone {
  color: #fff;
  background: linear-gradient(135deg, #2f8b5f, #1d714a 70%);
  box-shadow: 0 8px 18px rgba(29, 113, 74, 0.24);
}
.btn-phone:hover {
  background: linear-gradient(135deg, #26734e, #165a3b 70%);
  box-shadow: 0 12px 24px rgba(29, 113, 74, 0.28);
}
.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: #fffc9f
}
.btn-outline:hover { border-color: #b8c9dc; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.93) 38%,
      rgba(255, 255, 255, 0.74) 62%,
      rgba(255, 255, 255, 0.42) 82%,
      rgba(255, 255, 255, 0.24) 100%
    ),
    url("./assets/jn-top-v1.jpg") right center / auto 100% no-repeat,
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 230, 210, 0.3), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(210, 240, 245, 0.28), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1120px; }

.hero-label {
    display: inline-block;
    background: var(--sub);
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 5px;
    margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 900;
  line-height: 1.4;
}
.hero-accent {
  color: var(--accent);
  display: block;
  font-size: 1.15em;
}
.hero-lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--muted);
}
.hero-lead strong { color: var(--text); }
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-badges li {
  background: #ecf4ff;
  border: 1px solid #d5e4f7;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: #2a4a6e;
}

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); }
#problems,
#solution,
#flow {
  background-color: #ffffff;
  background-size: 6px 6px;
  background-image: repeating-linear-gradient(
    45deg,
    #f7f7f7 0,
    #f7f7f7 0.6000000000000001px,
    #ffffff 0,
    #ffffff 50%
  );
}
.section-head { margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  line-height: 1.4;
  font-weight: 900;
  border-left: 10px solid #0b4bab;
  padding: 2px 0 10px 10px;
}
.section-lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}
.title-white { color: #fff; }
.lead-white { color: rgba(255, 255, 255, 0.7); }
.marker {
  background: linear-gradient(transparent 60%, rgba(255, 107, 44, 0.2) 60%);
  padding: 0 2px;
}
.marker-white {
  background: linear-gradient(transparent 60%, rgba(255, 255, 255, 0.2) 60%);
}
.section-cta {
  margin-top: 36px;
  text-align: center;
}
.section-cta p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ===== Problems ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.problem-card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid #e2ebf5;
  border-radius: var(--radius-md);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.problem-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.problem-card h3 {
  font-size: 1.18rem;
  font-weight: 900;
}
.problem-card p { margin-top: 6px; color: var(--muted); font-size: 0.88rem; }

/* ===== Priority ===== */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.priority-card {
  background: var(--card);
  border: 1px solid #e2ebf5;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
}
.priority-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff8d2e);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0;
}
.priority-card h3 {
  font-size: 1.38rem;
  font-weight: 900;
  flex: 1;
  min-width: 0;
}
.priority-card p {
  margin-top: 12px;
  color: var(--muted);
  width: 100%;
}
.priority-card ul {
  margin-top: 14px;
  padding-left: 20px;
  list-style: disc;
  width: 100%;
}
.priority-card ul li {
  margin-top: 6px;
  font-size: 0.92rem;
  color: #2d3e50;
}

/* ===== Solution ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.solution-card {
  background: var(--card);
  border: 1px solid #e2ebf5;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--sub));
}
.solution-icon {
  width: 316px;
  height: 60px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d6e2ee;
  margin: 0 auto 12px;
  display: block;
}
.solution-card h3 { font-size: 1.4rem; }
.solution-card p { margin-top: 10px; color: var(--muted); font-size: 0.9rem; text-align: left; }
.merit-box {
  margin-top: 28px;
  background: #fff7f0;
  border: 1px solid #ffe0c8;
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.merit-box h3 { font-size: 1.05rem; color: var(--accent-deep); }
.merit-box p { margin-top: 10px; color: var(--muted); }
.merit-box strong { color: var(--text); }

/* ===== Compare Table ===== */
.table-wrap {
  margin-top: 4px;
  overflow-x: auto;
  border: 1px solid #e2ebf5;
  border-radius: var(--radius-md);
  background: #fff;
}
.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  border-bottom: 1px solid #edf2f8;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: #f3f8ff;
  font-weight: 700;
  color: #26384a;
  white-space: nowrap;
}
.compare-table tbody th { font-weight: 600; width: 160px; white-space: nowrap;  }
.compare-highlight { background: #fff8f4; }
.compare-highlight th { color: var(--accent-deep); }
.rank-best { color: var(--accent); font-weight: 700; }
.rank-good { color: var(--sub); font-weight: 600; }
.rank-mid { color: #b58a1a; }
.rank-bad { color: #c55; }
.table-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== Flow ===== */
.flow-list {
  margin-top: 4px;
  counter-reset: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.flow-step {
  background: var(--card);
  border: 1px solid #e2ebf5;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sub);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0;
}
.flow-step h3 {
  font-size: 1.38rem;
  font-weight: 900;
  flex: 1;
  min-width: 0;
}
.flow-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
  width: 100%;
}

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid #dde8f4;
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 18px 50px 18px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  position: relative;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sub);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.3s;
}
.faq-question[aria-expanded="true"]::after {
  content: "−";
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Contact Ways ===== */
.contact-way-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-way {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid #e2ebf5;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.contact-way:hover {
  transform: translateY(-3px);
  border-color: #c3d5e8;
  box-shadow: var(--shadow);
}
.cw-icon { font-size: 2rem; margin-bottom: 4px; }
.contact-way strong { font-size: 1.5rem; }
.cw-detail { font-size: 1.58rem; color: var(--text); font-weight: 500; }
.cw-detail a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cw-note { font-size: 0.78rem; color: var(--muted); }
.contact-way-btn { margin-top: 10px; }

/* ===== Form ===== */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: grid; gap: 6px; }
.form-group > label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-req {
  display: inline-block;
  margin-left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  vertical-align: middle;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #c9d8e8;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sub);
  box-shadow: 0 0 0 3px rgba(0, 153, 169, 0.15);
}
.form-group input.is-error,
.form-group select.is-error {
  border-color: #e04040;
  box-shadow: 0 0 0 3px rgba(224, 64, 64, 0.1);
}
.form-error {
  font-size: 0.78rem;
  color: #e04040;
  min-height: 1.2em;
}
.form-radio-group, .form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.form-radio, .form-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  cursor: pointer;
}
.form-radio input, .form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--sub);
}
.form-privacy {
  text-align: center;
}
.form-privacy a {
  color: var(--sub);
  text-decoration: underline;
}
.form-submit { text-align: center; }
.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ===== Trust ===== */
.trust { padding-bottom: 60px; }
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}
.trust-table-wrap {
  background: #fff;
  border: 1px solid #e2ebf5;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.trust-image-wrap {
  background: #fff;
  border: 1px solid #e2ebf5;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 100%;
}
.trust-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}
.trust-table {
  width: 100%;
  border-collapse: collapse;
}
.trust-table th, .trust-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #edf2f8;
  font-size: 0.92rem;
  text-align: left;
}
.trust-table th {
  width: 120px;
  background: #f7fafd;
  font-weight: 600;
  color: #3a4d62;
  white-space: nowrap;
}
.trust-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #e2ebf5;
  padding: 20px 0 90px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-inner a:hover { color: var(--accent); }

/* ===== Mobile CTA ===== */
.mobile-cta { display: none; }

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 482px) {
  .compare-highlight th { white-space: nowrap; }
}

/* ====================================================
   Responsive: Tablet
   ==================================================== */
@media (max-width: 980px) {
  .header-nav { gap: 16px; }
  .problem-grid,
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: 1fr; }
  .contact-way-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================
   Responsive: Mobile (BP 481px)
   ==================================================== */
@media (max-width: 481px) {
  .sp-only { display: inline; }

  body.menu-open .site-header {
    background: #ffffff;
    backdrop-filter: none;
  }

  /* Header */
  .header-inner { min-height: 58px; gap: 8px; }
  .site-logo img { height: 50px; }
  .header-nav { display: none; }
  .header-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    backdrop-filter: none;
    z-index: 99;
    padding: 32px 24px;
    gap: 20px;
    align-items: flex-start;
    animation: slideDown 0.3s ease;
  }
  .header-nav.is-open a { font-size: 1.05rem; }
  .header-inner > .btn-small { display: none; }
  .hamburger { display: block; margin-left: auto; }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Hero */
  .hero { padding: 48px 0 56px; }
  .hero-bg {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 255, 255, 0.95) 48%,
        rgba(255, 255, 255, 0.82) 72%,
        rgba(255, 255, 255, 0.62) 100%
      ),
      url("./assets/jn-top-v1.jpg") 78% right / cover no-repeat;
  }

  .hero h1 { font-size: 1.9rem;}
  .hero-accent { font-size: 1.1em; }
  .hero-lead {font-size: 1.25rem; }
  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
            display: none;
  }
  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
      
  }
  .btn-lg { min-height: 52px; font-size: 1rem; }

  /* Section */
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 1.65rem; }

  /* Grids → 1col */
  .problem-grid,
  .priority-grid,
  .solution-grid,
  .flow-list,
  .contact-way-grid {
    grid-template-columns: 1fr;
  }

  /* Problem cards: icon smaller */
  .problem-card { padding: 16px; }
  .problem-icon { font-size: 1.3rem; }

  /* Priority, Solution cards */
  .priority-card, .solution-card, .flow-step { padding: 20px 18px; }
  .merit-box { padding: 20px; }

  /* Contact ways */
  .contact-way {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 16px;
    gap: 10px;
  }
  .cw-icon { font-size: 1.5rem; margin-bottom: 0; flex-shrink: 0; }
  .contact-way strong { font-size: 1.2rem; }
  .cw-detail { font-size: 1.12rem; line-height: 1.45; }
  .cw-note { font-size: 0.92rem; }
  .contact-way-btn {
    width: 100%;
    margin-top: 4px;
    font-size: 1rem;
  }

  /* Form */
  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .form-radio-group, .form-check-group { gap: 10px; }

  /* Table */
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }

  /* Trust */
  .trust-grid { grid-template-columns: 1fr; }
  .trust-image-wrap img { min-height: 240px; }
  .trust-table th { width: 90px; padding: 10px 12px; }
  .trust-table td { padding: 10px 12px; }

  /* Mobile CTA */
  .mobile-cta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .mobile-cta .btn {
    font-size: 0.92rem;
    min-height: 48px;
    width: 100%;
    padding: 0 10px;
  }

  .site-footer { padding-bottom: 100px; }
}
