/* =========================================================
   Components & page sections — LiveFree
   ========================================================= */

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #143a7a 0%, var(--c-navy) 42%, var(--c-navy-deep) 100%);
  color: var(--c-on-dark);
  padding-block: clamp(90px, 13vw, 168px) clamp(80px, 11vw, 150px);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(91,141,239,0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(91,141,239,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 75%);
}
.hero__glow { display: none; }
.hero__glow--1 { background: rgba(37,99,235,0.55); top: -160px; right: -80px; }
.hero__glow--2 { background: rgba(56,189,248,0.28); bottom: -220px; left: -120px; }
.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; font-weight: 500;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 16px; border-radius: 999px; color: var(--c-on-dark);
  backdrop-filter: blur(6px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 4px rgba(56,189,248,0.25); }
.hero h1 { color: #fff; font-size: var(--t-hero); margin: 26px 0 0; letter-spacing: 0.005em; }
.hero h1 .grad { background: linear-gradient(100deg, #7cb0ff, #38BDF8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--c-on-dark-soft); font-size: var(--t-lead); margin-top: 28px; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: clamp(48px, 6vw, 76px); }
.hero__stat .num { font-family: var(--f-en); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; }
.hero__stat .lbl { font-size: 0.85rem; color: var(--c-on-dark-soft); margin-top: 4px; }
.hero__stat .num small { font-size: 0.55em; color: var(--c-cyan); margin-left: 3px; }

/* page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 85% -20%, #143a7a 0%, var(--c-navy) 48%, var(--c-navy-deep) 100%);
  color: #fff; padding-block: clamp(72px, 10vw, 128px) clamp(56px, 8vw, 96px);
}
.page-hero .hero__grid { mask-image: radial-gradient(120% 90% at 80% 0%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 20%, transparent 80%); }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: var(--t-h1); margin-top: 18px; }
.page-hero p { color: var(--c-on-dark-soft); font-size: var(--t-lead); margin-top: 20px; max-width: 56ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--c-on-dark-soft); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.5; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.svc-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.svc-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--c-blue), var(--c-cyan)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card__icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #eaf1ff, #d9e6ff); display: grid; place-items: center; margin-bottom: 22px; }
.svc-card__icon svg { width: 26px; height: 26px; stroke: var(--c-blue); }
.svc-card__no { font-family: var(--f-en); font-size: 0.8rem; font-weight: 600; color: var(--c-blue); letter-spacing: 0.1em; }
.svc-card h3 { font-size: 1.18rem; margin: 8px 0 12px; }
.svc-card p { color: var(--c-text-soft); font-size: 0.95rem; }

/* ---------- Feature / why list ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.feature {
  background: rgba(255,255,255,0.04); border: 1px solid var(--c-line-dark);
  border-radius: var(--radius); padding: 32px 28px;
}
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(56,189,248,0.12); display: grid; place-items: center; margin-bottom: 20px; }
.feature__icon svg { width: 24px; height: 24px; stroke: var(--c-cyan); }
.feature h3 { color: #fff; font-size: 1.12rem; margin-bottom: 10px; }
.feature p { color: var(--c-on-dark-soft); font-size: 0.93rem; }

/* ---------- Detailed service blocks ---------- */
.svc-detail { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: clamp(34px, 5vw, 52px); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.svc-detail + .svc-detail { margin-top: 22px; }
.svc-detail__num { font-family: var(--f-en); font-weight: 700; font-size: 1.5rem; color: #fff; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-blue), var(--c-navy)); box-shadow: 0 10px 26px -10px rgba(37,99,235,0.55); }
.svc-detail__body h3 { font-size: 1.45rem; margin-bottom: 14px; }
.svc-detail__body > p { color: var(--c-text-soft); font-size: 1rem; margin-bottom: 22px; }
.svc-detail__tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { font-family: var(--f-en); font-size: 0.8rem; font-weight: 500; color: var(--c-blue); background: #eef3fe; border: 1px solid #dbe6fc; padding: 6px 14px; border-radius: 999px; }
.svc-detail__list { list-style: none; display: grid; gap: 11px; margin-top: 6px; }
.svc-detail__list li { display: flex; gap: 12px; font-size: 0.96rem; color: var(--c-text); }
.svc-detail__list li svg { width: 20px; height: 20px; stroke: var(--c-blue); flex-shrink: 0; margin-top: 4px; }
@media (max-width: 620px) { .svc-detail { grid-template-columns: 1fr; gap: 20px; } .svc-detail__num { width: 56px; height: 56px; font-size: 1.3rem; } }

/* ---------- Operation record ---------- */
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.record-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.record-card__label {
  display: inline-flex;
  color: #0f766e;
  background: #e6f7f4;
  border: 1px solid #bde7df;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.record-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.record-card p { color: var(--c-text-soft); font-size: 0.94rem; }

/* ---------- Company info table ---------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 22px clamp(20px, 3vw, 34px); border-bottom: 1px solid var(--c-line); vertical-align: top; font-size: 0.98rem; line-height: 1.8; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 230px; background: var(--c-bg-alt); color: var(--c-ink); font-family: var(--f-jp); font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.info-table td { color: var(--c-text); }
.info-table td .muted { color: var(--c-text-soft); font-size: 0.9rem; }
.info-table td a { color: var(--c-blue); font-weight: 500; }
.info-table td a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 6px; }
  .info-table td { padding-top: 4px; }
  .info-table tr { border-bottom: 1px solid var(--c-line); padding: 8px 0; }
  .info-table tr:last-child { border-bottom: 0; }
}

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.profile__card { background: var(--c-navy); border-radius: var(--radius); padding: 38px 32px; color: #fff; position: relative; overflow: hidden; }
.profile__card .hero__grid { opacity: 0.4; }
.profile__avatar { width: 96px; height: 96px; border-radius: 24px; background: linear-gradient(135deg, var(--c-blue), var(--c-cyan)); display: grid; place-items: center; font-family: var(--f-en); font-weight: 700; font-size: 2.2rem; color: #fff; position: relative; z-index: 2; }
.profile__card .role { position: relative; z-index: 2; margin-top: 22px; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-cyan); font-family: var(--f-en); }
.profile__card .name { position: relative; z-index: 2; font-size: 1.5rem; color: #fff; margin-top: 8px; font-family: var(--f-jp); font-weight: 700; }
.profile__card .name small { display: block; font-size: 0.85rem; color: var(--c-on-dark-soft); font-weight: 400; margin-top: 4px; letter-spacing: 0.04em; }
.profile__body h3 { font-size: 1.3rem; margin-bottom: 16px; }
.profile__body p { color: var(--c-text-soft); margin-bottom: 18px; }
.profile__body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-blue-600) 130%); color: #fff; border-radius: clamp(20px, 3vw, 28px); padding: clamp(48px, 7vw, 84px) clamp(32px, 6vw, 80px); text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--t-h2); }
.cta-band p { color: var(--c-on-dark-soft); margin: 18px auto 34px; max-width: 52ch; font-size: var(--t-lead); }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 24px 26px; }
.contact-card__icon { width: 46px; height: 46px; border-radius: 12px; background: #eef3fe; display: grid; place-items: center; flex-shrink: 0; }
.contact-card__icon svg { width: 22px; height: 22px; stroke: var(--c-blue); }
.contact-card .label { font-size: 0.8rem; color: var(--c-text-soft); letter-spacing: 0.06em; }
.contact-card .value { font-size: 1.08rem; font-weight: 700; color: var(--c-ink); margin-top: 3px; font-family: var(--f-jp); }
.contact-card .value a { color: var(--c-ink); }
.contact-card .value a:hover { color: var(--c-blue); }
.contact-card .sub { font-size: 0.85rem; color: var(--c-text-soft); margin-top: 4px; }

.form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--c-ink); margin-bottom: 8px; font-family: var(--f-jp); }
.field .req { color: #e23; font-size: 0.78rem; margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--c-text);
  padding: 13px 16px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-bg-alt); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
.field textarea { resize: vertical; min-height: 140px; }
.form__note { font-size: 0.82rem; color: var(--c-text-soft); margin-top: 14px; line-height: 1.7; }
.form__ok { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: #e9f7ef; border: 1px solid #bfe6cf; color: #197a45; font-size: 0.92rem; }
.form__ok.show { display: block; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.step__no { font-family: var(--f-en); font-weight: 700; color: var(--c-blue); font-size: 0.9rem; letter-spacing: 0.1em; }
.step h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.step p { font-size: 0.92rem; color: var(--c-text-soft); }

/* ---------- Map embed ---------- */
.map-frame { width: 100%; aspect-ratio: 16 / 7; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }
