/*
Theme Name: Namjai Child
Theme URI: https://namjai.pro
Description: Lightning child theme for Namjai Property Management.
Template: lightning
Author: Namjai Property Management
Version: 1.0.0
Text Domain: namjai-child
*/

/* =========================================================
   Namjai Property Management - Custom Styles
   Palette: Navy base + clean green accent (清潔感/信頼感)
   ========================================================= */

:root {
  --nj-navy:        #15233f;
  --nj-navy-2:      #243b5e;
  --nj-navy-soft:   #2c4a7c;
  --nj-green:       #1f8a6d;
  --nj-green-dark:  #176b54;
  --nj-text:        #2b2f36;
  --nj-muted:       #5b6470;
  --nj-line:        #e3e8ee;
  --nj-bg-soft:     #f5f7fa;
  --nj-white:       #ffffff;
  --nj-radius:      10px;
  --nj-shadow:      0 2px 8px rgba(21,35,63,.06);
  --nj-shadow-lg:   0 14px 40px rgba(21,35,63,.14);
  --nj-maxw:        1120px;
  --nj-font: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
             "BIZ UDPGothic", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

/* ---- base ---- */
.nj-page {
  font-family: var(--nj-font);
  color: var(--nj-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.nj-page img { max-width: 100%; height: auto; display: block; }
.nj-wrap { max-width: var(--nj-maxw); margin: 0 auto; padding: 0 24px; }
.nj-section { padding: 84px 0; }
.nj-section--soft { background: var(--nj-bg-soft); }

/* ---- section heading (editorial label + JP title) ---- */
.nj-head { text-align: center; margin-bottom: 48px; }
.nj-head__label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--nj-green);
  margin-bottom: 12px;
}
.nj-head__title {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  color: var(--nj-navy);
  line-height: 1.4;
  margin: 0;
}
.nj-head__title::after {
  content: "";
  display: block;
  width: 48px; height: 3px;
  background: var(--nj-green);
  margin: 18px auto 0;
  border-radius: 2px;
}
.nj-head--left { text-align: left; }
.nj-head--left .nj-head__title::after { margin-left: 0; }

/* ---- buttons ---- */
.nj-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--nj-radius);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1.3;
}
.nj-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.nj-btn--primary {
  background: var(--nj-green);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(31,138,109,.32);
}
.nj-btn--primary:hover { background: var(--nj-green-dark); transform: translateY(-2px); }
.nj-btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.55);
}
.nj-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.nj-btn--navy {
  background: var(--nj-navy);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(21,35,63,.25);
}
.nj-btn--navy:hover { background: var(--nj-navy-2); transform: translateY(-2px); }

/* =========================================================
   1) HERO
   ========================================================= */
.nj-hero {
  position: relative;
  background:
    linear-gradient(140deg, rgba(21,35,63,.92) 0%, rgba(36,59,94,.88) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 60L60 0M-15 15L15 -15M45 75L75 45" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>'),
    var(--nj-navy);
  color: #fff;
  overflow: hidden;
}
.nj-hero__inner { padding: 104px 0 96px; position: relative; z-index: 2; }
.nj-hero__eyebrow {
  font-size: 13px;
  letter-spacing: .18em;
  color: #bcd6cd;
  font-weight: 600;
  margin-bottom: 22px;
}
.nj-hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.42;
  margin: 0 0 22px;
  letter-spacing: .01em;
}
.nj-hero h1 .nj-accent { color: #7ed9c1; }
.nj-hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: #d6dde8;
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.9;
}
.nj-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
/* decorative corner glow */
.nj-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(31,138,109,.30) 0%, transparent 70%);
  z-index: 1;
}

/* =========================================================
   2) SERVICES (8 cards)
   ========================================================= */
.nj-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.nj-card {
  background: #fff;
  border: 1px solid var(--nj-line);
  border-radius: var(--nj-radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--nj-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.nj-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--nj-shadow-lg);
  border-color: transparent;
}
.nj-card__icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--nj-bg-soft);
  border-radius: 50%;
  transition: background .2s ease;
}
.nj-card:hover .nj-card__icon { background: #e7f4f0; }
.nj-card__icon svg { width: 28px; height: 28px; stroke: var(--nj-green); }
.nj-card__title { font-size: 16px; font-weight: 700; color: var(--nj-navy); margin: 0; }

/* =========================================================
   3) FOR MANAGEMENT COMPANIES (★ key section)
   ========================================================= */
.nj-mgmt {
  background:
    linear-gradient(135deg, var(--nj-navy) 0%, var(--nj-navy-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nj-mgmt::before {
  content: "";
  position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><circle cx="2" cy="2" r="1.2" fill="rgba(255,255,255,0.06)"/></svg>');
  z-index: 0;
}
.nj-mgmt__inner { position: relative; z-index: 1; }
.nj-mgmt__label {
  display: inline-block;
  background: var(--nj-green);
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  padding: 6px 14px; border-radius: 4px; margin-bottom: 20px;
}
.nj-mgmt h2 {
  font-size: clamp(23px, 3.4vw, 32px);
  font-weight: 800; line-height: 1.45; margin: 0 0 22px;
}
.nj-mgmt__lead {
  font-size: 17px; color: #dbe3ee; line-height: 1.95;
  max-width: 720px; margin: 0 0 40px;
}
.nj-points {
  list-style: none; margin: 0 0 44px; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px;
}
.nj-points li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; font-weight: 600;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 16px 18px;
}
.nj-points svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  stroke: #7ed9c1;
}
.nj-points li span { line-height: 1.6; }
.nj-points em {
  display: block; font-style: normal; font-weight: 400;
  font-size: 13px; color: #aebaccd0; margin-top: 2px;
}

/* =========================================================
   4) AREA
   ========================================================= */
.nj-area__box {
  background: #fff;
  border: 1px solid var(--nj-line);
  border-left: 4px solid var(--nj-green);
  border-radius: var(--nj-radius);
  padding: 34px 36px;
  max-width: 760px; margin: 0 auto;
  box-shadow: var(--nj-shadow);
}
.nj-area__box p { margin: 0; font-size: 17px; line-height: 2; }
.nj-area__box strong { color: var(--nj-navy); }
.nj-area__note { font-size: 14px; color: var(--nj-muted); margin-top: 14px !important; }

/* =========================================================
   5) COMPANY TABLE
   ========================================================= */
.nj-table {
  width: 100%; max-width: 760px; margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--nj-line);
  border-radius: var(--nj-radius);
  overflow: hidden;
  box-shadow: var(--nj-shadow);
}
.nj-table th, .nj-table td {
  padding: 18px 22px; text-align: left; font-size: 15.5px;
  border-bottom: 1px solid var(--nj-line); vertical-align: top;
}
.nj-table tr:last-child th, .nj-table tr:last-child td { border-bottom: none; }
.nj-table th {
  background: var(--nj-bg-soft);
  color: var(--nj-navy); font-weight: 700;
  width: 32%; white-space: nowrap;
}
.nj-center { text-align: center; }
.nj-mt-32 { margin-top: 32px; }

/* =========================================================
   6) CONTACT
   ========================================================= */
.nj-contact { background: var(--nj-bg-soft); }
.nj-contact__box {
  background: #fff; border: 1px solid var(--nj-line);
  border-radius: var(--nj-radius); padding: 40px;
  max-width: 720px; margin: 0 auto; box-shadow: var(--nj-shadow);
}
.nj-contact__tel {
  text-align: center; margin-bottom: 32px;
  padding-bottom: 28px; border-bottom: 1px dashed var(--nj-line);
}
.nj-contact__tel .num {
  font-size: 30px; font-weight: 800; color: var(--nj-navy);
  letter-spacing: .02em; text-decoration: none; display: inline-block;
}
.nj-contact__tel .hours { font-size: 14px; color: var(--nj-muted); margin-top: 6px; }

/* Contact Form 7 light styling */
.wpcf7 .nj-form p { margin: 0 0 18px; }
.wpcf7 .nj-form label { font-weight: 700; color: var(--nj-navy); display: block; margin-bottom: 6px; }
.wpcf7 .nj-req { color: var(--nj-green); font-size: 12px; margin-left: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%; padding: 12px 14px; font-size: 16px;
  border: 1px solid var(--nj-line); border-radius: 8px;
  font-family: inherit; background: #fcfdff; box-sizing: border-box;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none; border-color: var(--nj-green);
  box-shadow: 0 0 0 3px rgba(31,138,109,.12);
}
.wpcf7 .wpcf7-submit {
  background: var(--nj-green); color: #fff; border: none;
  padding: 15px 40px; font-size: 16px; font-weight: 700;
  border-radius: var(--nj-radius); cursor: pointer; width: 100%;
  transition: background .18s ease;
}
.wpcf7 .wpcf7-submit:hover { background: var(--nj-green-dark); }
.nj-form .nj-consent { font-size: 14px; font-weight: 400 !important; }

/* =========================================================
   Generic content pages (会社概要/プライバシー/サービス詳細)
   ========================================================= */
.nj-doc { max-width: 820px; margin: 0 auto; }
.nj-doc h2 { color: var(--nj-navy); font-size: 22px; border-left: 4px solid var(--nj-green);
  padding-left: 14px; margin: 40px 0 16px; }
.nj-doc h3 { color: var(--nj-navy); font-size: 18px; margin: 28px 0 10px; }
.nj-doc p, .nj-doc li { font-size: 15.5px; line-height: 1.95; }
.nj-lead { font-size: 17px; color: var(--nj-muted); margin-bottom: 28px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nj-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nj-section { padding: 56px 0; }
  .nj-wrap { padding: 0 18px; }
  .nj-hero__inner { padding: 72px 0 64px; }
  .nj-points { grid-template-columns: 1fr; }
  .nj-contact__box { padding: 26px 20px; }
  .nj-table th { width: 38%; padding: 14px; font-size: 14px; }
  .nj-table td { padding: 14px; font-size: 14px; }
  .nj-btn { width: 100%; justify-content: center; }
  .nj-hero__cta { flex-direction: column; }
}
