/* ==============================================
   Design Tokens — NAMI-RENSA Corporate風踏襲
   ============================================== */
:root {
  /* Brand */
  --primary-50:  #f0faf7;
  --primary-100: #d4ede8;
  --primary-200: #a8d9cf;
  --primary-500: #1a6b5a;
  --primary-600: #155a4c;
  --primary-700: #104639;
  --primary-900: #0f4f42;

  /* Accent (くすんだ茶) */
  --accent-500: #8b6f47;
  --accent-50:  #f5f2ed;

  /* Base palette */
  --background:  #faf8f5;    /* ベージュ基調 */
  --surface:     #ffffff;
  --surface-alt: #f5f2ed;    /* ライトベージュ */
  --border:      #e0dcd6;    /* 控えめベージュボーダー */
  --text-body:   #4a4a4a;
  --text-heading:#1a1a1a;
  --text-sub:    #8b6f47;

  /* Hero */
  --hero-bg:   #0f4f42;      /* 濃緑 */
  --hero-text: #ffffff;
  --hero-sub:  rgba(255,255,255,0.85);

  /* Radius - コーポレート風は最小限の角丸 */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 4px;
  --r-xl: 8px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);

  /* Transitions */
  --t-base: all 300ms cubic-bezier(0.2, 0, 0, 1);
  --t-fast: all 200ms ease;
}

/* ==============================================
   Base
   ============================================== */
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  color: var(--text-body);
  background: var(--background);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ==============================================
   Layout primitives
   ============================================== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.section { padding: 120px 32px; }
.section-sm { padding: 80px 32px; }
.section-alt { background: var(--surface-alt); }

/* ==============================================
   Typography
   ============================================== */
.label {
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-500);
}
.eyebrow { text-align: center; margin-bottom: 24px; }
.eyebrow .label { display: block; margin-bottom: 20px; }

h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.35; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.4; }
h3 { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.5; }
h4 { font-size: 16px; }

.text-body { color: var(--text-body); line-height: 1.95; }
.text-sub { color: var(--text-sub); font-size: 14px; }
.text-xs { font-size: 12px; color: var(--text-sub); font-weight: 500; letter-spacing: 0.05em; }

.center { text-align: center; }

/* ==============================================
   Card
   ============================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 40px 32px;
  transition: var(--t-base);
  display: block;
  color: inherit;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}
.card--sm { padding: 32px 24px; }
.card--lg { padding: 48px 40px; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ==============================================
   Buttons (NAMI-RENSA風 直角)
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 44px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 0;
  transition: var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
}
.btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.btn-outlined {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--text-heading);
}
.btn-outlined:hover {
  background: var(--text-heading);
  color: #fff;
}

.btn-lg { padding: 22px 56px; font-size: 15px; }
.btn-sm { padding: 12px 24px; font-size: 12px; }

.btn-inverted-primary {
  background: #fff;
  color: var(--primary-500);
  border-color: #fff;
}
.btn-inverted-primary:hover {
  background: var(--primary-100);
  border-color: var(--primary-100);
}

.btn-inverted-outlined {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-inverted-outlined:hover {
  background: #fff;
  color: var(--primary-500);
  border-color: #fff;
}

/* ==============================================
   Icon Badge
   ============================================== */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-50);
  color: var(--primary-500);
  border: 1px solid var(--primary-100);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--sm { width: 44px; height: 44px; }
.icon-badge--sm svg { width: 20px; height: 20px; }

/* ==============================================
   NavBar (NAMI-RENSA公式: fixed + ベージュ半透明)
   ============================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.navbar-menu a { color: #4a4a4a; }
.navbar-menu a.btn { color: inherit; }
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.05em;
}
.brand-sub {
  font-size: 11px;
  color: var(--accent-500);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.brand-badge {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--primary-500);
  color: #fff;
  letter-spacing: 0.1em;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-menu a {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-heading);
  letter-spacing: 0.1em;
  position: relative;
  padding: 4px 0;
}
.navbar-menu a:hover { color: var(--primary-500); }
.navbar-menu a.btn { font-family: 'Noto Sans JP', sans-serif; }

/* ページ先頭の余白（固定ヘッダー分） */
body { padding-top: 72px; }

/* ==============================================
   Breadcrumb
   ============================================== */
.breadcrumb {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.breadcrumb ol {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: 0.1em;
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--border);
}
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--primary-500); }
.breadcrumb li:last-child span { color: var(--text-heading); }

/* ==============================================
   Hero (NAMI-RENSA公式踏襲: ベージュ背景 + 独立写真)
   ============================================== */
.hero {
  background: var(--background);
  padding: 140px 32px 0;
  text-align: center;
  color: var(--text-heading);
  position: relative;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto 80px;
}
.hero .label {
  color: var(--accent-500);
  display: block;
  margin-bottom: 32px;
}
.hero h1 {
  color: var(--text-heading);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-bottom: 32px;
}
.hero p {
  color: var(--text-body);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2.0;
  max-width: 640px;
  margin: 0 auto 48px;
  letter-spacing: 0.03em;
}
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ヒーロー画像（ヒーローセクション直下の写真） */
.hero-image {
  width: 100%;
  max-width: 1400px;
  height: 480px;
  margin: 0 auto;
  background-image: url('https://images.unsplash.com/photo-1522673607200-164d1b6ce486?w=1400&q=80');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .hero { padding: 100px 20px 0; }
  .hero h1 { font-size: 28px; margin-bottom: 20px; }
  .hero p { font-size: 13px; margin-bottom: 36px; }
  .hero-inner { margin-bottom: 48px; }
  .hero-image { height: 240px; }
}

/* ==============================================
   Mission Block (深緑 #1a6b5a)
   ============================================== */
.mission-block {
  background: var(--primary-500);
  color: #fff;
  padding: 120px 32px;
  text-align: center;
}
.mission-block h2 {
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-top: 24px;
  font-weight: 700;
}
.mission-block p {
  color: var(--primary-100);
  font-size: 15px;
  line-height: 2.1;
  max-width: 720px;
  margin: 40px auto 0;
  letter-spacing: 0.04em;
}
.mission-block .label {
  color: var(--primary-200);
  letter-spacing: 0.3em;
}

/* ==============================================
   Category chip
   ============================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: var(--t-fast);
}
.chip:hover {
  border-color: var(--primary-500);
  color: var(--primary-500);
}
.chip--active {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
}
.chip svg { width: 14px; height: 14px; }

/* ==============================================
   Article card
   ============================================== */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.article-card__thumb {
  aspect-ratio: 16/9;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  overflow: hidden;
  margin: -1px -1px 0 -1px;
}
.article-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card__thumb svg { width: 56px; height: 56px; opacity: 0.6; }
.article-card > *:not(.article-card__thumb) {
  padding-left: 32px;
  padding-right: 32px;
}
.article-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 16px 0 12px;
  color: var(--text-heading);
}
.article-card p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-body);
  margin: 0 0 24px;
}
.article-card__meta {
  margin-top: auto;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

/* ==============================================
   Pagination
   ============================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 64px 0;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--t-fast);
}
.pagination .page-numbers.current {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
}
.pagination .page-numbers:hover:not(.current) { border-color: var(--primary-500); color: var(--primary-500); }

/* ==============================================
   FAQ
   ============================================== */
.faq-item { margin-bottom: 16px; }
.faq-q {
  display: flex;
  gap: 16px;
  color: var(--text-heading);
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.6;
}
.faq-q::before {
  content: "Q.";
  color: var(--primary-500);
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
}
.faq-a {
  display: flex;
  gap: 16px;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.95;
}
.faq-a::before {
  content: "A.";
  color: var(--text-sub);
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
}

/* ==============================================
   Form (NAMI-RENSA風 直角入力)
   ============================================== */
.nrt-form .form-group {
  margin-bottom: 32px;
}
.nrt-form label {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.nrt-form .req {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--primary-500);
  margin-left: 10px;
  padding: 3px 8px;
  border: 1px solid var(--primary-500);
  letter-spacing: 0.1em;
}
.nrt-form input[type="text"],
.nrt-form input[type="email"],
.nrt-form input[type="tel"],
.nrt-form select,
.nrt-form textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-heading);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 200ms;
  box-sizing: border-box;
  line-height: 1.6;
}
.nrt-form input:focus,
.nrt-form select:focus,
.nrt-form textarea:focus {
  outline: none;
  border-color: var(--primary-500);
}
.nrt-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b6f47' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}
.nrt-form textarea {
  resize: vertical;
  min-height: 180px;
}
.nrt-form button[type="submit"] {
  min-width: 240px;
}

/* ==============================================
   Company table (NAMI-RENSA風)
   ============================================== */
.nrt-company-table {
  width: 100%;
  border-collapse: collapse;
}
.nrt-company-table th,
.nrt-company-table td {
  padding: 24px 28px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}
.nrt-company-table tr:first-child th,
.nrt-company-table tr:first-child td {
  border-top: 1px solid var(--border);
}
.nrt-company-table th {
  width: 160px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  color: var(--text-heading);
  font-size: 13px;
  letter-spacing: 0.1em;
  vertical-align: top;
}
.nrt-company-table td {
  color: var(--text-body);
}

/* ==============================================
   Site footer (NAMI-RENSA風 濃緑)
   ============================================== */
.site-footer {
  background: var(--hero-bg);
  color: rgba(255,255,255,0.7);
  padding: 100px 32px 40px;
  border-top: none;
}
.site-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer h3 {
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.site-footer h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.site-footer a { color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 0.03em; }
.site-footer a:hover { color: #fff; }
.site-footer-copy {
  max-width: 1280px;
  margin: 72px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* ==============================================
   Article body
   ============================================== */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--text-body);
}
.article-body h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  margin: 72px 0 24px;
  padding-top: 32px;
  border-top: 2px solid var(--primary-500);
  line-height: 1.6;
}
.article-body h3 { font-size: 22px; margin: 48px 0 20px; }
.article-body p { margin-bottom: 28px; }
.article-body a { color: var(--primary-500); border-bottom: 1px solid var(--primary-200); }
.article-body a:hover { border-bottom-color: var(--primary-500); }
.article-body strong { color: var(--text-heading); font-weight: 700; }
.article-body blockquote {
  border-left: 3px solid var(--primary-500);
  padding: 20px 28px;
  background: var(--surface-alt);
  margin: 40px 0;
  font-style: normal;
}
.article-body ul, .article-body ol { margin: 0 0 28px 28px; }
.article-body li { margin-bottom: 12px; list-style-position: outside; }
.article-body ul li { list-style-type: disc; }
.article-body ol li { list-style-type: decimal; }
.article-body img { margin: 40px 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  border: 1px solid var(--border);
}
.article-body th, .article-body td {
  padding: 16px 20px;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.article-body th { background: var(--surface-alt); font-weight: 600; color: var(--text-heading); font-family: 'Noto Serif JP', serif; }

/* ==============================================
   Fade-in animation (NAMI-RENSA風)
   ============================================== */
@keyframes nrt-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section > .container,
.section > .container-narrow,
.section > .container-wide {
  animation: nrt-fade-in 0.8s cubic-bezier(0.2, 0, 0, 1) both;
}

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 1024px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  body { padding-top: 64px; }
  .navbar { height: 64px; }
  .navbar-inner { padding: 0 20px; }
  .navbar-menu { display: none; }
  .brand-sub, .brand-badge { display: none; }
  .section { padding: 80px 20px; }
  .section-sm, .mission-block { padding: 64px 20px; }
  .hero { padding: 120px 20px 100px; }
  .hero h1 { font-size: 28px; letter-spacing: 0.02em; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding: 64px 20px 32px; }
  .container, .container-narrow, .container-wide { padding: 0 20px; }
  .article-body { padding: 48px 20px; font-size: 15px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .nrt-company-table th,
  .nrt-company-table td { padding: 16px 20px; display: block; }
  .nrt-company-table th { width: auto; background: var(--surface-alt); border-bottom: none; }
  .btn { padding: 16px 32px; font-size: 13px; }
  .card { padding: 32px 24px; }
}
