/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ===== Variables — TAGUMU Brand ===== */
:root {
  --bg: #FAF8F3;
  --panel: #FFFFFF;
  --ink: #2B2A28;
  --muted: #6B6964;
  --line: #D8D4CC;
  --accent: #0F3D3E;
  --accent-strong: #0A2E2F;
  --accent-soft: #DDE8DF;
  --secondary: #8DB6A1;
  --secondary-soft: rgba(141, 182, 161, 0.15);
  --highlight: #F4A261;
  --highlight-soft: rgba(244, 162, 97, 0.12);
  --danger: #c0392b;
  --danger-soft: #fde8e6;
  --warning: #e67e22;
  --warning-soft: #fef3e2;
  --success: #27ae60;
  --success-soft: #e8f8f0;
  --shadow: 0 16px 40px rgba(15, 61, 62, 0.07);
  --shadow-sm: 0 4px 12px rgba(15, 61, 62, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.2s ease;
}

/* ===== Reset ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 61, 62, 0.06), transparent 32%),
    linear-gradient(180deg, #FDFCF8 0%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  font-size: 15px;
}

a {
  color: var(--accent-strong);
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

p, h1, h2, h3, h4 {
  margin-top: 0;
}

h1 { font-size: 1.75rem; line-height: 1.3; }
h2 { font-size: 1.35rem; line-height: 1.3; }
h3 { font-size: 1.1rem; line-height: 1.4; }

img { max-width: 100%; }

/* ===== Site Header ===== */
.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 243, 0.92);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.site-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: all var(--transition);
}

.site-nav a:hover,
.site-nav .nav-link:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.site-nav .nav-accent {
  background: var(--highlight);
  color: var(--ink);
  padding: 6px 14px;
}

.site-nav .nav-accent:hover {
  background: #E8923A;
  color: var(--ink);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--accent-strong);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 80px;
  padding: 48px 24px 0;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-brand .site-logo {
  color: #fff;
  font-size: 1.1rem;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.footer-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 48px;
    padding: 32px 24px 0;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ===== Hamburger Toggle ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 248, 243, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 24px 16px;
    gap: 2px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-link {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .site-nav .nav-accent {
    text-align: center;
    justify-content: center;
    margin-top: 4px;
  }
}

/* ===== Flash Messages ===== */
.flash {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}

.flash-notice {
  background: var(--success-soft);
  color: #1a7a42;
  border: 1px solid #b8e6cf;
}

.flash-alert {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #f5c6c0;
}

.form-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #f5c6c0;
  background: var(--danger-soft);
  color: var(--danger);
}

.form-errors-title {
  margin-bottom: 8px;
  font-weight: 700;
}

.form-errors-list {
  margin: 0;
  padding-left: 20px;
}

.field_with_errors input,
.field_with_errors textarea,
.field_with_errors select {
  border-color: var(--danger);
}

/* ===== Page Container ===== */
.page-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ===== Page Header ===== */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--accent-soft);
}

.page-header h1 {
  margin-bottom: 6px;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.page-header p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.92rem;
}

.page-header-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-header-with-action .page-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.page-header-with-action h1 {
  margin-bottom: 0;
}

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-strong);
  color: white;
}

.button-secondary {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button-secondary:hover {
  background: #c8dece;
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-highlight {
  background: var(--highlight);
  color: var(--ink);
  border-color: var(--highlight);
}

.button-highlight:hover {
  background: #E8923A;
  color: var(--ink);
  border-color: #E8923A;
}

.button-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.button-danger:hover {
  background: var(--danger-soft);
}

.button-sm {
  padding: 6px 14px;
  font-size: 0.84rem;
}

/* button_to form inline */
form.button_to {
  display: inline;
}

form.button_to button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}

form.button_to button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

form.button-primary-form button,
button.button-primary-form {
  border-color: var(--accent);
  color: white;
  background: var(--accent);
  font-size: 0.95rem;
  padding: 10px 24px;
}

form.button-primary-form button:hover,
button.button-primary-form:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: white;
}

form.button-danger-form button {
  border-color: var(--danger);
  color: var(--danger);
  background: transparent;
}

form.button-danger-form button:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ===== Cards ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 24px 24px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--accent);
}

.card-clickable:hover {
  transform: translateY(-2px);
}

.card h2 {
  margin-bottom: 8px;
}

.card h2 a {
  text-decoration: none;
  color: var(--ink);
  transition: color var(--transition);
}

.card h2 a:hover {
  color: var(--accent);
}

.card h3 {
  margin-bottom: 6px;
}

.card h3 a {
  text-decoration: none;
  color: var(--ink);
  transition: color var(--transition);
}

.card h3 a:hover {
  color: var(--accent);
}

.card-meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.card-body p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 6px;
  line-height: 1.7;
}

.card-body p:last-child {
  margin-bottom: 0;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-list {
  display: grid;
  gap: 16px;
}

/* ===== Stats Table ===== */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.stats-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.stats-table tr:last-child td {
  border-bottom: none;
}
.stats-value {
  text-align: right;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

/* ===== Tags ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-muted {
  background: #EDEAE4;
  color: var(--muted);
}

.tag-industry {
  background: var(--secondary-soft);
  color: #3D7A5A;
}

.tag-help {
  background: var(--highlight-soft);
  color: #A85A20;
}

.tag-partner {
  background: #E8F0ED;
  color: var(--accent);
}

/* ===== Status Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-published {
  background: var(--success-soft);
  color: var(--success);
}

.badge-draft {
  background: #EDEAE4;
  color: var(--muted);
}

.badge-archived {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-matched {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge-expired {
  background: #EDEAE4;
  color: var(--muted);
}

.badge-count {
  background: var(--accent);
  color: white;
  min-width: 22px;
  text-align: center;
  padding: 2px 8px;
}

/* ===== Forms ===== */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label,
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  background: white;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 61, 62, 0.15);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

select[multiple] {
  min-height: 80px;
}

input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--accent-strong);
}

.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.required::after {
  content: "*";
  color: var(--danger);
  font-weight: 700;
  font-size: 0.75em;
  margin-left: 3px;
  vertical-align: super;
}

.form-required-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-required-note::before {
  content: "*";
  color: var(--danger);
  font-weight: 700;
  font-size: 0.75em;
}

.form-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
  letter-spacing: 0.02em;
}

.form-section-title:not(:first-child) {
  margin-top: 32px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.form-check input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--accent);
}

.form-check label {
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 0 0 16px 0;
  background: rgba(250, 248, 243, 0.5);
}

fieldset legend {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 8px;
}

/* ===== Form Alternate Action ===== */
.form-alternate-action {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.form-alternate-action a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.form-alternate-action a:hover {
  color: var(--accent-strong);
  border-bottom-style: solid;
}

/* ===== Search Filter ===== */
.search-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--highlight);
  border-radius: var(--radius);
  padding: 20px 20px 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.search-bar-inner {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-bar .form-group {
  margin-bottom: 0;
  flex: 1;
  min-width: 160px;
}

.search-bar .form-group label {
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.search-bar .search-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-bar .search-actions a {
  font-size: 0.84rem;
  white-space: nowrap;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawLine {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ===== Landing Page ===== */
.landing-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  gap: 56px;
}

.summary-grid article,
.sample-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.sample-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 72px 48px 64px;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(244, 162, 97, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 80%, rgba(141, 182, 161, 0.10) 0%, transparent 50%),
    linear-gradient(160deg, #FDFCF8 0%, #F5F8F5 40%, #FDF6EE 100%);
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-decoration {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 200px;
}

.hero-deco-line {
  position: absolute;
  width: 3px;
  height: 160px;
  border-radius: 2px;
  transform-origin: top center;
  animation: drawLine 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-deco-line-1 {
  left: 30px;
  top: 0;
  background: var(--secondary);
  opacity: 0.5;
  animation-delay: 0.4s;
}

.hero-deco-line-2 {
  left: 50px;
  top: 20px;
  background: var(--highlight);
  opacity: 0.4;
  animation-delay: 0.6s;
}

.eyebrow,
.sample-meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero .eyebrow {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 16ch;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.hero-copy {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 24px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0;
  padding-left: 14px;
  border-left: 3px solid var(--highlight);
  line-height: 1.6;
}

/* --- Summary Grid --- */
.summary-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid article {
  padding: 32px 28px;
  border-top: 3px solid var(--secondary);
  position: relative;
}

.summary-grid article:nth-child(2) {
  border-top-color: var(--accent);
}

.summary-grid article:nth-child(3) {
  border-top-color: var(--highlight);
}

.summary-number {
  display: block;
  font-family: "Shippori Mincho B1", serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.summary-grid article:nth-child(1) .summary-number { color: rgba(141, 182, 161, 0.35); }
.summary-grid article:nth-child(2) .summary-number { color: rgba(15, 61, 62, 0.18); }
.summary-grid article:nth-child(3) .summary-number { color: rgba(244, 162, 97, 0.35); }

.summary-grid article h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.summary-grid article p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* --- Sample Sections --- */
.sample-section {
  padding-top: 8px;
}

.sample-card {
  padding: 24px 28px;
  border-left: 3px solid transparent;
}

.sample-section:nth-of-type(1) .sample-card { border-left-color: var(--secondary); }
.sample-section:nth-of-type(2) .sample-card { border-left-color: var(--accent); }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.section-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.section-link:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

/* ===== Dashboard ===== */
.dashboard-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
  overflow-x: auto;
}

.dashboard-nav a {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}

.dashboard-nav a:hover {
  color: var(--ink);
  background: rgba(141, 182, 161, 0.06);
}

.dashboard-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--highlight);
  background: rgba(141, 182, 161, 0.06);
}

.dashboard-quick-links {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.dashboard-quick-links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  transition: all var(--transition);
}

.dashboard-quick-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.dashboard-section {
  margin-bottom: 32px;
}

.dashboard-section h2 {
  margin-bottom: 16px;
}

.dashboard-section h3 {
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dashboard-section h3:first-child {
  border-top: none;
  padding-top: 0;
}

/* ===== Profile Detail ===== */
.profile-detail {
  display: grid;
  gap: 12px;
}

.profile-field {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(216, 212, 204, 0.5);
}

.profile-field:last-child {
  border-bottom: none;
}

.profile-field-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 120px;
  flex-shrink: 0;
}

.profile-field-value {
  font-size: 0.93rem;
}

/* ===== Detail Page ===== */
.detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px;
  margin-bottom: 24px;
}

.detail-card h1 {
  margin-bottom: 16px;
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  font-size: 1.5rem;
  color: var(--accent);
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--accent);
}

/* ===== Contact Request Cards ===== */
.request-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--highlight);
  border-radius: var(--radius-sm);
  padding: 20px 20px 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--transition);
}

.request-card:hover {
  box-shadow: var(--shadow-sm);
}

.request-card-info h3 {
  margin-bottom: 4px;
}

.request-card-info p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.request-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== Matched Contact ===== */
.matched-card {
  background: var(--panel);
  border: 1px solid var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.contact-info {
  background: rgba(141, 182, 161, 0.12);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  margin-top: 12px;
}

.contact-info p {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

/* ===== Section Divider ===== */
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.section-title .badge {
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== Public Links ===== */
.public-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.public-links li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.public-links li a::before {
  content: "\2197";
  font-size: 0.8em;
}

/* ===== Interaction Panel ===== */
.interaction-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-top: 24px;
  border-top: 3px solid var(--accent-soft);
}

.interaction-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.interaction-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.report-section {
  padding-top: 16px;
}

.report-section summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 0;
}

.report-section summary:hover {
  color: var(--danger);
}

/* ===== Onboarding ===== */
.onboarding-card {
  max-width: 520px;
  margin: 0 auto;
}

.onboarding-how-it-works {
  max-width: 520px;
  margin: 0 auto 28px;
  background: var(--panel);
  border: 1px solid var(--accent-soft);
  border-top: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.onboarding-how-it-works h2 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.onboarding-steps {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.onboarding-steps li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
}

.onboarding-how-it-works-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.consent-group {
  margin: 24px 0;
  padding: 20px;
  background: rgba(141, 182, 161, 0.08);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
}

.consent-group .form-check {
  margin-bottom: 10px;
}

.consent-group .form-check:last-child {
  margin-bottom: 0;
}

/* ===== Settings ===== */
.settings-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 24px 24px 24px 28px;
  margin-bottom: 20px;
}

.settings-section h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(216, 212, 204, 0.4);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.danger-zone {
  border-color: #f5c6c0;
  background: rgba(253, 232, 230, 0.3);
}

.danger-zone h3 {
  color: var(--danger);
  border-bottom-color: #f5c6c0;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-state p {
  font-size: 0.95rem;
}

/* ===== Overview Panel ===== */
.overview-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 24px;
}

.overview-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.overview-panel-header h2 {
  font-size: 1.1rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-panel-matched {
  border-color: var(--accent-soft);
  border-top-color: var(--highlight);
}

.overview-empty {
  text-align: center;
  padding: 20px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(216, 212, 204, 0.2);
  border-radius: var(--radius-sm);
}

/* ===== Stat Counters ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-card a {
  text-decoration: none;
  color: inherit;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a {
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
}

.pagination a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pagination span.current {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.pagination span.gap {
  border: none;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .landing-page {
    padding: 0 16px 48px;
    gap: 36px;
  }

  .page-container,
  .page-container-narrow {
    padding: 20px 16px 40px;
  }

  .hero {
    padding: 40px 24px 36px;
  }

  .hero-decoration {
    display: none;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .summary-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .search-bar-inner {
    flex-direction: column;
  }

  .search-bar .form-group {
    min-width: 100%;
  }

  .request-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header-with-action {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-field {
    flex-direction: column;
    gap: 2px;
  }

  .sample-card {
    border-left-width: 3px;
  }
}
