/* ==========================================================
   JNサービス LP - style.css
   Base: White / Navy / Gray / Orange accent, Mobile-first
   ========================================================== */

:root {
  --navy: #16264a;
  --navy-deep: #0e1a33;
  --navy-light: #2c4573;
  --orange: #f0791e;
  --orange-dark: #d9660f;
  --gray-900: #232833;
  --gray-700: #545b68;
  --gray-500: #838a97;
  --gray-200: #e6e8ec;
  --gray-100: #f4f5f7;
  --white: #ffffff;

  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --font-num: "Jost", var(--font-base);

  --inner-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; background: none; border: none; }

.inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sp-only { display: inline; }
@media (min-width: 769px) {
  .sp-only { display: none; }
}

/* -------------------- Section common -------------------- */

section { padding: 64px 0; }

.section-tag {
  font-family: var(--font-num);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-size: 13px;
  margin: 0 0 10px;
}
.section-tag--center { text-align: center; }

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin: 0 0 20px;
}
.section-title--center { text-align: center; }

.section-lead {
  text-align: center;
  color: var(--gray-700);
  margin: 0 auto 40px;
  max-width: 640px;
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.7);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

.btn--lg { padding: 18px 40px; font-size: 16px; width: 100%; }
@media (min-width: 481px) {
  .btn--lg { width: auto; }
}

/* ================= HEADER ================= */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-200);
}

.header__inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch__btn {
  padding: 6px 10px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gray-500);
  background: var(--white);
  transition: background .2s, color .2s;
}
.lang-switch__btn + .lang-switch__btn {
  border-left: 1px solid var(--gray-200);
}
.lang-switch__btn.is-active {
  background: var(--navy);
  color: var(--white);
}
.header__logo-main {
  font-weight: 900;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.header__logo-sub {
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.hamburger {
  width: 32px; height: 24px;
  position: relative;
  z-index: 210;
}
.hamburger span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transition: transform .25s, opacity .25s, top .25s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.gnav {
  position: fixed;
  top: 0; right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background: var(--navy);
  padding: 90px 30px 40px;
  transition: right .3s ease;
  z-index: 205;
  overflow-y: auto;
}
.gnav.is-open { right: 0; }

.gnav__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 34px;
}
.gnav__list a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
}

.gnav__cta {
  display: block;
  text-align: center;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  padding: 14px;
  border-radius: 4px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,26,51,0.5);
  z-index: 204;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1000px) {
  .hamburger { display: none; }
  .nav-overlay { display: none; }
  .gnav {
    position: static;
    width: auto; height: auto;
    max-width: none;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 34px;
  }
  .gnav__list {
    flex-direction: row;
    gap: 22px;
    margin-bottom: 0;
  }
  .gnav__list li { flex-shrink: 0; }
  .gnav__list a { color: var(--navy); font-size: 13.5px; white-space: nowrap; }
  .gnav__cta { padding: 11px 22px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
}

/* ================= FV ================= */

.fv {
  position: relative;
  margin-top: 62px;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.fv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,26,51,.78) 0%, rgba(14,26,51,.62) 45%, rgba(14,26,51,.88) 100%);
}
.fv__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.fv__inner {
  position: relative;
  z-index: 1;
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 60px 20px 50px;
  width: 100%;
}

.fv__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.fv__badges span {
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 3px;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.fv__title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.55;
  margin: 0 0 20px;
}

.fv__lead {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.92);
  margin: 0 0 30px;
}

.fv__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 481px) {
  .fv__cta { flex-direction: row; }
}

@media (min-width: 769px) {
  .fv { min-height: 640px; }
  .fv__title { font-size: 38px; }
  .fv__lead { font-size: 16px; }
}

/* ================= STATS ================= */

.stats {
  background: var(--navy);
  padding: 34px 0;
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 16px;
}
.stats__list li {
  text-align: center;
  color: var(--white);
}
.stats__num {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}
.stats__num-value {
  font-size: 34px;
  color: var(--orange);
  margin-right: 3px;
}
.stats__label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

@media (min-width: 769px) {
  .stats__list { grid-template-columns: repeat(4, 1fr); }
  .stats__num-value { font-size: 42px; }
  .stats__label { font-size: 12px; }
}

/* ================= CONCERN ================= */

.concern { background: var(--white); }

.concern__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.concern__image img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.concern__list {
  margin: 22px 0;
}
.concern__list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-900);
  font-size: 14px;
}
.concern__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 21px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.concern__note {
  background: var(--gray-100);
  border-left: 3px solid var(--navy);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--gray-700);
  border-radius: 2px;
}

@media (min-width: 900px) {
  .concern__grid {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .concern__image, .concern__body { flex: 1; }
}

/* ================= SERVICE ================= */

.service { background: var(--gray-100); }

.service__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(22,38,74,0.06);
}
.service-card__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.service-card__body { padding: 26px 24px 30px; }
.service-card__num {
  font-family: var(--font-num);
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 6px;
}
.service-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.service-card__text {
  color: var(--gray-700);
  font-size: 13.5px;
  margin: 0 0 18px;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-card__tags li {
  background: var(--gray-100);
  color: var(--navy);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

@media (min-width: 900px) {
  .service__list {
    flex-direction: row;
  }
  .service-card { flex: 1; display: flex; flex-direction: column; }
}

/* ================= REASON ================= */

.reason { background: var(--white); }

.reason__list {
  display: flex;
  flex-direction: column;
}
.reason-item {
  padding: 26px 0;
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 18px;
}
.reason-item:last-child { border-bottom: 1px solid var(--gray-200); }
.reason-item__num {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 600;
  color: var(--gray-200);
  grid-row: 1 / 3;
  line-height: 1;
}
.reason-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 2px 0 0;
}
.reason-item__text {
  color: var(--gray-700);
  font-size: 13.5px;
  margin: 8px 0 0;
}

@media (min-width: 769px) {
  .reason-item {
    grid-template-columns: 80px 320px 1fr;
    align-items: center;
    gap: 10px 30px;
  }
  .reason-item__num { font-size: 34px; grid-row: auto; }
  .reason-item__title { margin: 0; }
  .reason-item__text { margin: 0; }
}

/* ================= REGION ================= */

.region { background: var(--gray-100); }

.region__grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
}
.region__image img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.region__text {
  color: var(--gray-700);
  font-size: 13.5px;
  margin: 0 0 16px;
}

@media (min-width: 900px) {
  .region__grid {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .region__body, .region__image { flex: 1; }
}

/* ================= FLOW ================= */

.flow { background: var(--white); }

.flow__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: flow;
}
.flow-item {
  position: relative;
  padding: 24px 0 24px 0;
  border-top: 1px dashed var(--gray-200);
}
.flow-item:last-child { border-bottom: 1px dashed var(--gray-200); }
.flow-item__num {
  font-family: var(--font-num);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  background: var(--gray-100);
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 3px;
  margin: 0 0 10px;
}
.flow-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.flow-item__text {
  color: var(--gray-700);
  font-size: 13.5px;
  margin: 0;
}

@media (min-width: 769px) {
  .flow__list { flex-direction: row; gap: 20px; }
  .flow-item { flex: 1; border-top: none; border-left: 1px dashed var(--gray-200); padding: 0 22px; }
  .flow-item:first-child { border-left: none; padding-left: 0; }
  .flow-item:last-child { border-bottom: none; }
}

/* ================= CASE ================= */

.case { background: var(--gray-100); }

.case__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.case-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
}
.case-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.case-card__body { padding: 12px 14px 16px; }
.case-card__tag {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 4px;
}
.case-card__title {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 700;
  margin: 0;
}

@media (min-width: 769px) {
  .case__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

/* ================= VOICE ================= */

.voice { background: var(--white); }

.voice__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.voice-card {
  margin: 0;
  background: var(--gray-100);
  border-radius: 6px;
  padding: 26px 24px;
  border-left: 3px solid var(--orange);
}
.voice-card__text {
  color: var(--gray-900);
  font-size: 13.5px;
  margin: 0 0 14px;
}
.voice-card__name {
  color: var(--gray-500);
  font-size: 12px;
  margin: 0;
  font-weight: 500;
}

@media (min-width: 900px) {
  .voice__list { flex-direction: row; }
  .voice-card { flex: 1; }
}

/* ================= FAQ ================= */

.faq { background: var(--gray-100); }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 18px 44px 18px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}
.faq-item__q::before,
.faq-item__q::after {
  content: "";
  position: absolute;
  top: 50%;
  background: var(--navy);
  transition: opacity .2s;
}
.faq-item__q::before {
  right: 20px;
  width: 14px; height: 2px;
  transform: translateY(-50%);
}
.faq-item__q::after {
  right: 26px;
  width: 2px; height: 14px;
  transform: translateY(-50%);
}
.faq-item__q[aria-expanded="true"]::after { opacity: 0; }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item__a p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--gray-700);
  font-size: 13px;
}

/* ================= COMPANY ================= */

.company { background: var(--white); }

.company__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.company__table th,
.company__table td {
  text-align: left;
  padding: 15px 12px;
  border-top: 1px solid var(--gray-200);
  vertical-align: top;
}
.company__table tr:last-child th,
.company__table tr:last-child td {
  border-bottom: 1px solid var(--gray-200);
}
.company__table th {
  width: 118px;
  color: var(--white);
  background: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}
.company__table td { color: var(--gray-900); }

@media (min-width: 769px) {
  .company__table th { width: 200px; padding: 18px 20px; }
  .company__table td { padding: 18px 20px; }
}

/* ================= CTA ================= */

.cta {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.cta__bg {
  position: absolute; inset: 0;
}
.cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,51,.88), rgba(22,38,74,.88));
}
.cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
}
.cta__title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 16px;
}
.cta__text {
  font-size: 13.5px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 30px;
}

@media (min-width: 769px) {
  .cta__title { font-size: 30px; }
  .cta__text { font-size: 15px; }
}

/* ================= CONTACT FORM ================= */

.contact { background: var(--gray-100); }

.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 8px;
  padding: 30px 22px;
}

.form__row { margin-bottom: 20px; }
.form__row label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.req {
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.form__row input[type="text"],
.form__row input[type="tel"],
.form__row input[type="email"],
.form__row select,
.form__row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
}
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--navy-light);
}
.form__row textarea { resize: vertical; }

.form__row--checkbox { display: flex; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--gray-700);
}
.checkbox input { margin-top: 3px; }
.checkbox a { color: var(--navy-light); text-decoration: underline; }

.form__submit { text-align: center; margin-top: 28px; }
.form__submit .btn[disabled] { opacity: .6; pointer-events: none; }

.form__error {
  color: #c0392b;
  font-size: 12.5px;
  text-align: center;
  margin-top: 14px;
}

.form-success {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 8px;
  padding: 50px 24px;
  text-align: center;
}
.form-success__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.form-success__text {
  color: var(--gray-700);
  font-size: 13.5px;
  margin: 0;
}

/* ================= FOOTER ================= */

.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 44px 0 16px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer__logo {
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 8px;
}
.footer__tel {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.footer__nav a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
}
.footer__copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin: 34px 0 0;
}

@media (min-width: 769px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ================= STICKY CTA (mobile) ================= */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: flex;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  transform: translateY(0);
  transition: transform .25s;
}
.sticky-cta.is-hidden { transform: translateY(100%); }

.sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 15px 8px;
  font-size: 13.5px;
  font-weight: 700;
}
.sticky-cta__tel { background: var(--navy); color: var(--white); }
.sticky-cta__form { background: var(--orange); color: var(--white); }

@media (min-width: 1000px) {
  .sticky-cta { display: none; }
}

/* ================= PAGE TOP ================= */

.pagetop {
  position: fixed;
  right: 16px;
  bottom: 74px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.pagetop.is-visible { opacity: 1; pointer-events: auto; }

@media (min-width: 1000px) {
  .pagetop { bottom: 26px; }
}

/* ================= SCROLL FADE-IN ================= */

.fade-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}
