:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --blue-600: #2563eb;
  --blue-800: #1e3a8a;
  --green-600: #16a34a;
  --ink: #172033;
  --muted: #647084;
  --line: #e6e9ef;
  --paper: #ffffff;
  --soft: #f7f8fb;
  --warning: #92400e;
  --shadow: 0 18px 40px rgba(23, 32, 51, 0.11);
}

.machikin-app * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.machikin-app {
  margin: 0;
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  background-color: #fbfcfd;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
}

.machikin-app a {
  color: inherit;
  text-decoration: none;
}

.machikin-app main {
  display: flex;
  flex-direction: column;
}

.machikin-app button,
.machikin-app input,
.machikin-app select,
.machikin-app textarea {
  font: inherit;
}

.machikin-app .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.machikin-app .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.machikin-app .brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: var(--orange-600);
  font-weight: 900;
}

.machikin-app .brand strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.machikin-app .brand small {
  display: block;
  color: var(--orange-700);
  font-weight: 800;
}

.machikin-app .global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 42px);
  color: var(--blue-800);
  font-weight: 800;
}

.machikin-app .global-nav a {
  position: relative;
  padding: 10px 0;
}

.machikin-app .global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.machikin-app .global-nav a:hover::after,
.machikin-app .global-nav a:focus-visible::after {
  transform: scaleX(1);
}

.machikin-app .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.machikin-app .menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 26px;
  width: min(1760px, calc(100% - 8vw));
  min-height: 520px;
  margin: 48px auto 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 248, 240, 0.76);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 780px;
  padding: clamp(30px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-700);
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.no-break {
  white-space: nowrap;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: #344057;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.button::after {
  margin-left: 10px;
  content: ">";
}

.button.primary {
  color: #fff;
  background: var(--orange-600);
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.24);
}

.button.secondary,
.button.ghost {
  color: var(--orange-700);
  border-color: var(--orange-500);
  background: #fff;
}

.button.ghost::after {
  content: "";
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.13);
}

.hero-stats {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 10px;
  padding: 0 clamp(20px, 3vw, 42px) clamp(28px, 5vw, 56px) 0;
}

.hero-stats div {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.hero-stats strong {
  color: var(--blue-800);
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-stats span {
  color: var(--muted);
  font-weight: 800;
}

.notice-bar {
  width: min(1600px, calc(100% - 8vw));
  margin: 0 auto 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notice-toggle {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  color: #374151;
  background: #f4f5f7;
  text-align: left;
  cursor: pointer;
  font-weight: 900;
}

.notice-toggle::before {
  margin-right: 10px;
  content: "v";
}

.notice-body {
  display: none;
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.notice-bar.is-open .notice-body {
  display: block;
}

.section {
  width: min(1600px, calc(100% - 8vw));
  margin: 0 auto 44px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.reviews-section {
  order: 90;
}

.page-hero {
  width: min(1600px, calc(100% - 8vw));
  margin: 48px auto 32px;
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.88)),
    url("../images/hero-local-loan.png") center / cover;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 800px;
  margin: 0;
  color: #344057;
  font-weight: 800;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 860px;
  margin-bottom: 26px;
}

.section-heading.compact {
  max-width: none;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p {
  margin-top: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 700;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-800);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.tab-button.is-active {
  color: #fff;
  border-color: var(--blue-800);
  background: var(--blue-800);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-list {
  display: grid;
  gap: 18px;
}

.simple-ranking-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simple-loan-card {
  position: relative;
  display: grid;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.08);
}

.simple-loan-card.is-first {
  grid-column: 1 / -1;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 170px;
  border-left: 6px solid var(--orange-500);
}

.simple-loan-body {
  display: grid;
  gap: 8px;
}

.simple-loan-body h3 {
  margin: 0;
  color: var(--blue-800);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.simple-loan-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.simple-card-link {
  align-self: end;
  justify-self: start;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-800);
  font-weight: 900;
}

.simple-loan-card.is-first .simple-card-link {
  align-self: center;
  justify-self: end;
}

.section-link {
  margin-top: 18px;
}

.loan-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(210px, 270px);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange-500);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.08);
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff;
  border-radius: 8px;
  background: var(--orange-600);
  font-size: 1.25rem;
  font-weight: 900;
}

.loan-main h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 6px;
  color: var(--blue-800);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.rating {
  color: #b45309;
  font-size: 0.95rem;
  font-weight: 900;
}

.loan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 0;
  list-style: none;
}

.loan-meta li {
  padding: 5px 9px;
  border: 1px solid var(--orange-200);
  border-radius: 999px;
  color: #7c2d12;
  background: var(--orange-50);
  font-weight: 800;
}

.loan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.loan-tags span,
.local-tags span,
.review-topics span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.loan-side {
  display: grid;
  gap: 10px;
}

.loan-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.loan-side dt {
  color: var(--ink);
}

.loan-side dd {
  margin: 0;
}

.side-panel {
  display: grid;
  gap: 14px;
}

.side-panel h3 {
  margin: 0;
  padding: 13px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-800);
  font-size: 1.05rem;
}

.feature-banner {
  display: grid;
  gap: 4px;
  min-height: 120px;
  padding: 20px;
  border: 1px solid #f4c790;
  border-radius: 8px;
  color: #713f12;
  background: var(--orange-50);
}

.feature-banner strong {
  font-size: 1.6rem;
  line-height: 1.2;
}

.feature-banner.blue {
  color: #1e3a8a;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.feature-banner.green {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.feature-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-entry {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.06);
}

.feature-entry strong {
  color: var(--blue-800);
  font-size: 1.25rem;
}

.feature-entry span {
  color: var(--muted);
  font-weight: 800;
}

.feature-entry.is-primary {
  color: #fff;
  border-color: var(--orange-600);
  background: var(--orange-600);
}

.feature-entry.is-primary strong,
.feature-entry.is-primary span {
  color: #fff;
}

.finder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: start;
}

.finder-form,
.review-form {
  display: grid;
  gap: 20px;
}

.machikin-app fieldset {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.machikin-app legend {
  padding: 0 8px;
  color: var(--blue-800);
  font-weight: 900;
}

.finder-form fieldset:first-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.machikin-app label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

.machikin-app select,
.machikin-app textarea,
.machikin-app input[type="text"],
.machikin-app input[type="url"],
.machikin-app input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.machikin-app textarea {
  resize: vertical;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 0.94rem;
}

.chip input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange-600);
}

.finder-results,
.review-feed,
.local-lenders {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-header,
.local-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.result-header h3,
.local-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.result-header span,
.local-header > span {
  min-width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--orange-700);
  background: var(--orange-50);
  font-weight: 900;
}

.mini-results,
.review-list,
.local-lender-list {
  display: grid;
  gap: 0;
}

.mini-result,
.review-item,
.local-lender {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.mini-result:last-child,
.review-item:last-child,
.local-lender:last-child {
  border-bottom: 0;
}

.mini-result h4,
.local-lender h4,
.review-item h4 {
  margin: 0 0 6px;
  color: var(--blue-800);
  font-size: 1.1rem;
}

.mini-result p,
.local-lender p,
.review-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
}

.area-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 30px;
  align-items: start;
}

.prefecture-map {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.map-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 240px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  color: var(--blue-800);
  background:
    radial-gradient(circle at 50% 24%, rgba(249, 115, 22, 0.18), transparent 18%),
    linear-gradient(180deg, #eff6ff, #fff);
  text-align: center;
}

.map-placeholder strong {
  font-size: 1.35rem;
}

.map-placeholder span {
  color: var(--muted);
  font-weight: 800;
}

.prefecture-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.prefecture-button {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e3a8a;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.prefecture-button.is-active {
  color: #fff;
  border-color: var(--orange-600);
  background: var(--orange-600);
}

.local-lender dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 4px 10px;
  margin: 0 0 12px;
}

.local-lender dt {
  color: var(--ink);
  font-weight: 900;
}

.local-lender dd {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.local-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 30px;
  align-items: start;
}

.review-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

.check-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange-600);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-stars {
  color: #b45309;
  font-weight: 900;
}

.review-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-grid span {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #166534;
  background: #f0fdf4;
  font-size: 0.84rem;
  font-weight: 900;
}

.article-grid h3 {
  margin: 0;
  color: var(--blue-800);
}

.article-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.article-grid a {
  color: var(--orange-700);
  font-weight: 900;
}

.ranking-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.ranking-toolbar h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  letter-spacing: 0;
}

.detail-tab {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-800);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.detail-tab.is-active {
  color: #fff;
  border-color: var(--blue-800);
  background: var(--blue-800);
}

.detailed-ranking-list {
  display: grid;
  gap: 28px;
}

.ranking-detail-card {
  overflow: hidden;
  border: 1px solid #d9b54c;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.1);
}

.ranking-detail-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(260px, auto) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  background: linear-gradient(90deg, #fde68a, #fff3b0);
  border-bottom: 4px solid #b99739;
}

.medal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #7c4a03;
  background: radial-gradient(circle, #fff8c5, #facc15);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.ranking-detail-head h3 {
  margin: 0;
  color: #0047c7;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-decoration: underline;
}

.detail-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-weight: 900;
}

.detail-rating strong {
  color: #b45309;
  font-size: 1.25rem;
}

.review-link {
  min-width: max-content;
  color: #0047c7;
  font-weight: 900;
  text-decoration: underline;
}

.ranking-detail-main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.promo-tile {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 230px;
  padding: 20px;
  border: 3px dotted #ef4444;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.92), rgba(249, 115, 22, 0.74)),
    url("../images/hero-local-loan.png") center / cover;
}

.promo-tile span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #b91c1c;
  font-size: 1.4rem;
  font-weight: 900;
}

.promo-tile strong {
  font-size: 1.15rem;
  line-height: 1.35;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.recommend-box {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px 28px;
  border-radius: 8px;
  background: #f0f1f3;
}

.recommend-box p {
  margin: 0;
  color: #2f3542;
  font-size: 1.18rem;
  font-weight: 900;
}

.recommend-box span {
  margin-right: 10px;
  color: var(--orange-600);
}

.atm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 28px 24px;
}

.atm-row strong {
  padding: 9px 18px;
  border-radius: 8px;
  color: #fff;
  background: #55aeca;
  font-size: 1.1rem;
}

.atm-row span {
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: var(--blue-800);
  background: #eff6ff;
  font-weight: 900;
}

.spec-table {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px minmax(0, 1fr);
  margin: 0 28px 24px;
  overflow: hidden;
  border: 1px solid #93c5fd;
  border-radius: 8px;
}

.spec-label,
.spec-value {
  padding: 18px 22px;
  border-bottom: 1px dashed #cbd5e1;
}

.spec-label {
  color: #2f3542;
  background: #eaf2ff;
  font-weight: 900;
}

.spec-value {
  color: #ea580c;
  font-weight: 900;
}

.spec-label:last-of-type,
.spec-value:last-of-type {
  border-bottom: 0;
}

.apply-button {
  display: grid;
  place-items: center;
  width: min(680px, calc(100% - 56px));
  min-height: 74px;
  margin: 0 auto 24px;
  border: 3px dotted #ef4444;
  border-radius: 8px;
  color: #fff;
  background: var(--orange-500);
  font-size: 1.5rem;
  font-weight: 900;
}

.detail-notes {
  margin: 0;
  padding: 0 28px 28px 48px;
  color: #4b5563;
  font-weight: 800;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
}

.machikin-app .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 6vw;
  color: #fff;
  background: #172033;
}

.machikin-app .site-footer p {
  margin: 6px 0 0;
  color: #cbd5e1;
}

.machikin-app .site-footer a {
  min-width: max-content;
  color: #fed7aa;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .content-layout,
  .finder-shell,
  .area-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-ranking-list,
  .feature-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-toolbar,
  .ranking-detail-head,
  .ranking-detail-main {
    grid-template-columns: 1fr;
  }

  .ranking-toolbar {
    display: grid;
  }

  .spec-table {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .side-panel h3 {
    grid-column: 1 / -1;
  }

  .finder-form fieldset:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 clamp(24px, 5vw, 72px) clamp(28px, 5vw, 56px);
  }

  .hero-stats div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .machikin-app .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .machikin-app .menu-toggle {
    display: block;
  }

  .machikin-app .global-nav {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .machikin-app .global-nav.is-open {
    display: flex;
  }

  .machikin-app .global-nav a {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .machikin-app .global-nav a:last-child {
    border-bottom: 0;
  }

  .hero,
  .notice-bar,
  .section,
  .page-hero {
    width: calc(100% - 28px);
    margin-top: 22px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }

  .no-break {
    white-space: normal;
  }

  .hero-stats,
  .side-panel,
  .article-grid,
  .simple-ranking-list,
  .feature-entry-grid {
    grid-template-columns: 1fr;
  }

  .simple-loan-card.is-first {
    grid-template-columns: 1fr;
  }

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

  .rank-badge {
    width: 56px;
    height: 56px;
  }

  .finder-form fieldset:first-child,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 22px;
  }

  .prefecture-map {
    padding: 14px;
  }

  .ranking-detail-head,
  .ranking-detail-main {
    padding: 18px;
  }

  .spec-table {
    grid-template-columns: 1fr;
    margin: 0 18px 20px;
  }

  .spec-label,
  .spec-value {
    border-bottom: 0;
  }

  .atm-row {
    padding: 0 18px 20px;
  }

  .apply-button {
    width: calc(100% - 36px);
  }

  .machikin-app .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Clean redesign layer */
:root {
  --orange-50: #fff8f1;
  --orange-100: #ffead8;
  --orange-200: #ffd0a8;
  --orange-500: #f46f1b;
  --orange-600: #e85d04;
  --orange-700: #a84408;
  --blue-600: #2563eb;
  --blue-800: #153e75;
  --green-600: #15803d;
  --ink: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --soft-strong: #eef2f6;
  --focus: #2563eb;
  --shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.machikin-app {
  background-color: #f7f8fa;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  color: var(--ink);
  line-height: 1.72;
}

.machikin-app a:focus-visible,
.machikin-app button:focus-visible,
.machikin-app select:focus-visible,
.machikin-app textarea:focus-visible,
.machikin-app input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 3px;
}

.machikin-app .site-header {
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.machikin-app .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--orange-600), #fb923c);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.28);
}

.machikin-app .brand strong {
  font-size: 1.22rem;
}

.machikin-app .brand small,
.eyebrow {
  color: var(--orange-700);
}

.machikin-app .global-nav {
  gap: clamp(14px, 2.4vw, 34px);
  color: #243b63;
  font-size: 0.95rem;
}

.machikin-app .global-nav a {
  border-radius: 6px;
}

.hero,
.page-hero,
.section,
.notice-bar {
  width: min(1200px, calc(100% - 8vw));
}

.hero,
.page-hero {
  min-height: 460px;
  margin-top: 40px;
  border: 1px solid rgba(228, 231, 236, 0.95);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.page-hero {
  display: grid;
  align-content: center;
  min-height: 300px;
  padding: clamp(32px, 5vw, 64px);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255, 248, 241, 0.95), rgba(255, 248, 241, 0.8) 48%, rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.2);
}

.hero-copy {
  max-width: 720px;
  padding: clamp(32px, 5vw, 64px);
}

.hero h1,
.page-hero h1 {
  color: #101828;
  font-size: clamp(2.1rem, 4.2vw, 4.25rem);
  line-height: 1.08;
}

.page-hero h1 {
  max-width: 760px;
}

.page-hero h1 span {
  display: block;
}

.hero-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  color: #475467;
  font-weight: 700;
}

.hero-stats {
  gap: 12px;
  padding-right: clamp(24px, 4vw, 48px);
}

.hero-stats div {
  min-height: 72px;
  border-color: rgba(228, 231, 236, 0.95);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-stats strong {
  color: #153e75;
}

.button,
.tab-button,
.detail-tab,
.prefecture-button,
.simple-card-link {
  min-height: 44px;
  border-radius: 10px;
}

.button {
  padding: 10px 18px;
  box-shadow: none;
}

.button.primary {
  background: var(--orange-600);
  box-shadow: 0 8px 18px rgba(232, 93, 4, 0.18);
}

.button.secondary,
.button.ghost {
  color: var(--orange-700);
  border-color: #f7b27a;
}

.button:hover,
.button:focus-visible,
.feature-entry:hover,
.feature-banner:hover,
.article-grid article:hover,
.simple-loan-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.notice-bar,
.section {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.section {
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
}

.notice-toggle {
  border-radius: 12px 12px 0 0;
  background: #f2f4f7;
  color: #344054;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.ranking-toolbar h2 {
  color: #101828;
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
}

.tabs {
  gap: 8px;
}

.tab-button,
.detail-tab {
  border-color: #d0d5dd;
  color: #344054;
  background: #fff;
}

.tab-button.is-active,
.detail-tab.is-active {
  border-color: #153e75;
  background: #153e75;
}

.content-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.simple-ranking-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simple-loan-card,
.loan-card,
.feature-entry,
.feature-banner,
.article-grid article,
.review-form,
.finder-results,
.review-feed,
.local-lenders,
.prefecture-map {
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.simple-loan-card {
  min-height: 190px;
  padding: 22px;
}

.simple-loan-card.is-first {
  min-height: 152px;
  border-left: 0;
  background: linear-gradient(90deg, #fff8f1, #fff);
}

.rank-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff1e6;
  color: var(--orange-700);
}

.simple-loan-body h3,
.loan-main h3,
.mini-result h4,
.local-lender h4,
.review-item h4,
.article-grid h3 {
  color: #153e75;
}

.simple-card-link {
  padding: 8px 14px;
  background: #153e75;
}

.loan-tags span,
.local-tags span,
.review-topics span {
  color: #184e8a;
  background: #eef6ff;
}

.side-panel {
  gap: 12px;
}

.side-panel h3 {
  border-radius: 12px;
  background: #153e75;
}

.feature-banner {
  min-height: 112px;
  border-color: #ffd0a8;
}

.feature-entry {
  min-height: 116px;
}

.feature-entry.is-primary {
  background: #153e75;
  border-color: #153e75;
}

.machikin-app fieldset {
  border-color: var(--line);
  border-radius: 12px;
}

.machikin-app legend,
.machikin-app label {
  color: #344054;
}

.machikin-app select,
.machikin-app textarea,
.machikin-app input[type="text"] {
  min-height: 46px;
  border-color: #d0d5dd;
  border-radius: 10px;
  background: #fff;
}

.machikin-app select:hover,
.machikin-app textarea:hover,
.machikin-app input[type="text"]:hover,
.machikin-app input[type="url"]:hover,
.machikin-app input[type="number"]:hover {
  border-color: #98a2b3;
}

.chip {
  border-color: #d0d5dd;
  border-radius: 10px;
}

.chip:has(input:checked) {
  border-color: #f7b27a;
  background: #fff8f1;
}

.result-header,
.local-header {
  background: #fcfcfd;
}

.map-placeholder {
  border-color: #f7b27a;
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.88), rgba(255, 255, 255, 0.9)),
    url("../images/hero-local-loan.png") center / cover;
}

.prefecture-button {
  border-color: #d0d5dd;
  color: #344054;
}

.prefecture-button.is-active {
  border-color: var(--orange-600);
  background: var(--orange-600);
}

.ranking-toolbar {
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.detailed-ranking-list {
  gap: 24px;
}

.ranking-detail-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.ranking-detail-head {
  grid-template-columns: 64px minmax(0, 1fr) minmax(220px, auto) auto;
  padding: 20px 24px;
  background: #fff8f1;
  border-bottom: 1px solid #ffd0a8;
}

.medal {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--orange-700);
  background: #fff;
  border: 1px solid #ffd0a8;
  font-size: 1.35rem;
  box-shadow: none;
}

.ranking-detail-head h3 {
  color: #153e75;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  text-decoration: none;
}

.detail-rating strong {
  color: var(--orange-700);
}

.review-link {
  color: #153e75;
}

.ranking-detail-main {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.promo-tile {
  min-height: 210px;
  border: 1px solid #ffd0a8;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(168, 68, 8, 0.16), rgba(21, 62, 117, 0.72)),
    url("../images/hero-local-loan.png") center / cover;
}

.promo-tile span {
  color: var(--orange-700);
  font-size: 1.1rem;
}

.promo-tile strong {
  font-size: 1rem;
}

.recommend-box {
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.recommend-box p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #344054;
  font-size: 1rem;
  line-height: 1.7;
}

.recommend-box span {
  margin: 0;
}

.atm-row {
  padding: 0 24px 20px;
}

.atm-row strong {
  background: #153e75;
  font-size: 0.95rem;
}

.atm-row span {
  border-color: #d0d5dd;
  color: #344054;
  background: #fff;
}

.spec-table {
  grid-template-columns: 160px minmax(0, 1fr) 160px minmax(0, 1fr);
  margin: 0 24px 22px;
  border-color: var(--line);
}

.spec-label,
.spec-value {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.spec-label {
  color: #344054;
  background: #f2f4f7;
}

.spec-value {
  color: var(--orange-700);
}

.apply-button {
  width: min(560px, calc(100% - 48px));
  min-height: 60px;
  border: 0;
  border-radius: 12px;
  background: var(--orange-600);
  font-size: 1.15rem;
  box-shadow: 0 10px 18px rgba(232, 93, 4, 0.18);
}

.detail-notes {
  padding: 0 24px 24px 42px;
  color: #667085;
  font-weight: 700;
}

.admin-hero {
  min-height: 260px;
}

.admin-section {
  display: grid;
  gap: 24px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  color: #344054;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.admin-tab.is-active {
  color: #fff;
  border-color: #153e75;
  background: #153e75;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-list-panel,
.admin-form,
.admin-json-layout {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-list-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-form {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.admin-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475467;
  font-weight: 800;
}

.admin-summary strong {
  color: #153e75;
  font-size: 1.15rem;
}

.admin-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-actions {
  margin-top: 0;
}

.admin-json-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
}

.admin-json-layout h2 {
  margin: 0 0 8px;
  color: #101828;
}

.admin-json-layout p {
  margin: 0 0 14px;
  color: #667085;
  font-weight: 700;
}

.admin-status {
  min-height: 28px;
  margin: 0;
  color: var(--orange-700);
  font-weight: 900;
}

.machikin-app .site-footer {
  background: #101828;
}

@media (max-width: 1120px) {
  .hero,
  .page-hero,
  .section,
  .notice-bar {
    width: min(960px, calc(100% - 40px));
  }

  .content-layout,
  .finder-shell,
  .area-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .simple-ranking-list,
  .feature-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-toolbar {
    display: grid;
    align-items: start;
  }

  .ranking-detail-head,
  .ranking-detail-main,
  .admin-grid,
  .admin-json-layout {
    grid-template-columns: 1fr;
  }

  .admin-list-panel {
    position: static;
  }

  .spec-table {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .machikin-app .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .machikin-app .global-nav {
    top: 66px;
  }

  .hero,
  .notice-bar,
  .section,
  .page-hero {
    width: calc(100% - 28px);
    margin-top: 20px;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-stats,
  .side-panel,
  .article-grid,
  .simple-ranking-list,
  .feature-entry-grid {
    grid-template-columns: 1fr;
  }

  .simple-loan-card.is-first {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero {
    padding: 22px;
  }

  .ranking-detail-head,
  .ranking-detail-main {
    padding: 18px;
  }

  .spec-table {
    display: block;
    margin: 0 18px 20px;
  }

  .spec-label {
    border-bottom: 0;
  }

  .spec-value {
    border-bottom: 1px solid var(--line);
  }

  .atm-row {
    padding: 0 18px 18px;
  }

  .apply-button {
    width: calc(100% - 36px);
  }

  .admin-spec-grid {
    grid-template-columns: 1fr;
  }
}


/* SWELL child integration */
.machikin-app {
  margin: 0 auto;
  min-height: 100vh;
}
.machikin-app .page-hero,
.machikin-app .section,
.machikin-app .hero,
.machikin-app .notice-bar {
  width: min(1180px, calc(100% - 32px));
}
.machikin-app .hero {
  margin-top: 28px;
}
.machikin-app .site-header,
.machikin-app .site-footer {
  display: none;
}
@media (max-width: 640px) {
  .machikin-app .page-hero,
  .machikin-app .section,
  .machikin-app .hero,
  .machikin-app .notice-bar {
    width: min(100% - 20px, 1180px);
  }
}

/* Machikin SWELL top override */
#body_wrap.home #main_visual,
#body_wrap.home .p-postSlider,
#body_wrap.home .p-pickupBanners,
#body_wrap.home .p-homeContent,
#body_wrap.home .p-postList,
#body_wrap.home .p-postList__item {
  display: none !important;
}

#body_wrap.home #content {
  padding-top: 0;
}

#body_wrap.home .l-mainContent,
#body_wrap.home .l-mainContent__inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.machikin-app .machikin-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 4vw, 56px);
  width: 100vw;
  min-height: clamp(620px, 78vh, 780px);
  margin: 0 calc(50% - 50vw) 42px;
  padding: clamp(38px, 6vw, 88px) max(6vw, calc((100vw - 1180px) / 2));
  overflow: hidden;
  color: #172033;
  background:
    radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.18), transparent 32%),
    radial-gradient(circle at 18% 84%, rgba(37, 99, 235, 0.13), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 46%, #eef5ff 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.machikin-app .machikin-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(23, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

.machikin-app .machikin-hero::after {
  position: absolute;
  right: max(4vw, calc((100vw - 1180px) / 2));
  bottom: 34px;
  width: min(44vw, 560px);
  height: min(44vw, 560px);
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28)),
    url("../images/hero-local-loan.png") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(23, 32, 51, 0.16);
  transform: rotate(1.5deg);
  opacity: 0.86;
}

.machikin-app .machikin-hero__copy,
.machikin-app .machikin-hero__panel,
.machikin-app .machikin-hero__stats {
  position: relative;
  z-index: 2;
}

.machikin-app .machikin-hero__copy {
  align-self: center;
  max-width: 760px;
}

.machikin-app .machikin-hero__copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  font-size: 0.9rem;
}

.machikin-app .machikin-hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  color: #101828;
  font-size: clamp(2.9rem, 6.2vw, 5.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.machikin-app .machikin-hero h1 span {
  display: block;
}

.machikin-app .machikin-hero__copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #344054;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.9;
}

.machikin-app .machikin-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.machikin-app .machikin-hero__actions .button {
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 1rem;
}

.machikin-app .machikin-hero__actions .button.primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.28);
}

.machikin-app .machikin-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.machikin-app .machikin-hero__trust span {
  padding: 7px 10px;
  color: #344054;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(208, 213, 221, 0.8);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.machikin-app .machikin-hero__panel {
  align-self: center;
  display: grid;
  gap: 16px;
}

.machikin-app .machikin-hero__rank-card {
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow: 0 24px 68px rgba(23, 32, 51, 0.14);
  backdrop-filter: blur(16px);
}

.machikin-app .machikin-hero__rank-card .rank-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: #fff;
  background: #153e75;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.machikin-app .machikin-hero__rank-card strong {
  display: block;
  color: #101828;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.machikin-app .machikin-hero__rank-card p {
  margin: 12px 0 18px;
  color: #475467;
  font-weight: 600;
}

.machikin-app .machikin-hero__rank-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: #f97316;
  border-radius: 10px;
  font-weight: 900;
}

.machikin-app .machikin-hero__mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.machikin-app .machikin-hero__mini-grid a {
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.09);
}

.machikin-app .machikin-hero__mini-grid strong {
  display: block;
  color: #153e75;
  font-size: 1.08rem;
}

.machikin-app .machikin-hero__mini-grid span {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-weight: 700;
}

.machikin-app .machikin-hero__stats {
  position: absolute;
  right: max(6vw, calc((100vw - 1180px) / 2));
  bottom: 48px;
  left: max(6vw, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.12);
  backdrop-filter: blur(16px);
}

.machikin-app .machikin-hero__stats div {
  padding: 16px 18px;
  border-right: 1px solid rgba(208, 213, 221, 0.8);
}

.machikin-app .machikin-hero__stats div:last-child {
  border-right: 0;
}

.machikin-app .machikin-hero__stats strong {
  display: block;
  color: #ea580c;
  font-size: 1.55rem;
  line-height: 1.1;
}

.machikin-app .machikin-hero__stats span {
  display: block;
  margin-top: 4px;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .machikin-app .machikin-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 160px;
  }

  .machikin-app .machikin-hero::after {
    width: min(78vw, 420px);
    height: min(56vw, 280px);
    opacity: 0.34;
  }

  .machikin-app .machikin-hero__panel {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .machikin-app .machikin-hero {
    padding: 32px 18px 168px;
  }

  .machikin-app .machikin-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }

  .machikin-app .machikin-hero__mini-grid {
    grid-template-columns: 1fr;
  }

  .machikin-app .machikin-hero__stats {
    right: 18px;
    bottom: 24px;
    left: 18px;
    grid-template-columns: 1fr;
  }

  .machikin-app .machikin-hero__stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(208, 213, 221, 0.8);
  }

  .machikin-app .machikin-hero__stats div:last-child {
    border-bottom: 0;
  }
}

/* Database-style surface for top, ranking, and feature search */
#body_wrap.home .l-header,
#body_wrap.page-template-page-ranking .l-header,
#body_wrap.page-template-page-features .l-header,
#body_wrap.home .l-footer__nav,
#body_wrap.page-template-page-ranking .l-footer__nav,
#body_wrap.page-template-page-features .l-footer__nav {
  display: none !important;
}

#body_wrap.home #content,
#body_wrap.page-template-page-ranking #content,
#body_wrap.page-template-page-features #content {
  width: 100%;
  max-width: none;
  padding: 0;
  background: #f6f7f9;
}

#body_wrap.home .l-mainContent,
#body_wrap.home .l-mainContent__inner,
#body_wrap.page-template-page-ranking .l-mainContent,
#body_wrap.page-template-page-ranking .l-mainContent__inner,
#body_wrap.page-template-page-features .l-mainContent,
#body_wrap.page-template-page-features .l-mainContent__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.machikin-app.db-surface {
  --db-red: #d93a28;
  --db-red-dark: #b72f22;
  --db-orange: #f28c22;
  --db-cream: #fff8ef;
  --db-ink: #20242a;
  --db-muted: #667085;
  --db-line: #d9dee7;
  --db-bg: #f6f7f9;
  color: var(--db-ink);
  background: var(--db-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.machikin-app.db-surface main {
  display: block;
}

.db-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--db-red);
  box-shadow: 0 2px 10px rgba(32, 36, 42, 0.08);
}

.db-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.db-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.db-header__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--db-red);
  border-radius: 8px;
  font-weight: 900;
}

.db-header__brand strong {
  display: block;
  color: var(--db-red);
  font-size: 1.35rem;
  line-height: 1.05;
}

.db-header__brand small {
  display: block;
  color: #475467;
  font-size: 0.76rem;
  font-weight: 800;
}

.db-header__nav {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.db-header__nav a,
.db-header__review {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #344054;
  font-weight: 800;
  text-decoration: none;
}

.db-header__nav a:hover,
.db-header__nav a.is-active {
  color: #fff;
  background: var(--db-red);
}

.db-header__review {
  color: var(--db-red);
  border: 1px solid rgba(217, 58, 40, 0.28);
  background: #fff8f6;
}

.db-hero {
  padding: 26px 0 20px;
  background:
    linear-gradient(90deg, rgba(217, 58, 40, 0.96), rgba(242, 140, 34, 0.92)),
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.db-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 26px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.db-hero__copy {
  align-self: center;
  color: #fff;
}

.db-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 0.88rem;
  font-weight: 900;
}

.db-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.db-hero__copy > p:not(.db-kicker) {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.8;
}

.db-hero__badges,
.db-popular-links,
.db-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.db-hero__badges {
  margin-top: 18px;
}

.db-hero__badges span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
}

.db-search-box {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(86, 24, 12, 0.22);
}

.db-search-box__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: #fff;
  background: var(--db-red-dark);
}

.db-search-box__head strong {
  font-size: 1.08rem;
}

.db-search-box__head span {
  font-size: 0.88rem;
  font-weight: 700;
  opacity: .9;
}

.db-search-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--db-line);
}

.db-search-tabs a {
  padding: 12px 10px;
  color: #344054;
  background: #f8fafc;
  border-right: 1px solid var(--db-line);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.db-search-tabs a:last-child {
  border-right: 0;
}

.db-search-tabs a.is-active,
.db-search-tabs a:hover {
  color: var(--db-red);
  background: #fff;
}

.db-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.db-search-grid label,
.db-search-strip label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 900;
}

.db-search-grid select,
.db-search-strip select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #172033;
}

.db-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 36px);
  min-height: 52px;
  margin: 0 18px 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(180deg, #ff9f2f, #e85d18);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.16);
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
}

.db-popular-links {
  padding: 0 18px 18px;
}

.db-popular-links a {
  padding: 6px 10px;
  color: var(--db-red);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.db-hero__quick {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.db-hero__quick a {
  flex: 1 1 220px;
  padding: 14px 16px;
  border-radius: 7px;
  color: #344054;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.65);
  text-decoration: none;
}

.db-hero__quick strong,
.db-hero__quick span {
  display: block;
}

.db-hero__quick strong {
  color: var(--db-red);
  font-size: 1rem;
}

.db-hero__quick span {
  margin-top: 3px;
  color: #667085;
  font-size: .86rem;
  font-weight: 700;
}

.machikin-app.db-surface .notice-bar,
.machikin-app.db-surface .section,
.machikin-app.db-surface .page-hero {
  width: min(1180px, calc(100% - 32px));
}

.machikin-app.db-surface .page-hero {
  min-height: auto;
  margin: 18px auto 0;
  padding: 22px 24px;
  border: 1px solid var(--db-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.machikin-app.db-surface .page-hero h1 {
  margin-bottom: 8px;
  color: #20242a;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.machikin-app.db-surface .page-hero p {
  color: #667085;
}

.db-search-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px;
  border: 1px solid var(--db-line);
  border-radius: 8px;
  background: #fff;
}

.db-search-strip .db-search-submit {
  width: auto;
  min-width: 148px;
  margin: 21px 0 0;
}

.machikin-app.db-surface .ranking-detail-section,
.machikin-app.db-surface .filter-section,
.machikin-app.db-surface .area-section,
.machikin-app.db-surface .ranking-section {
  margin-top: 18px;
  border-radius: 8px;
  box-shadow: none;
}

.machikin-app.db-surface .section-heading {
  padding-bottom: 12px;
  border-bottom: 3px solid var(--db-red);
}

.machikin-app.db-surface .eyebrow {
  color: var(--db-red);
}

.machikin-app.db-surface .tabs,
.machikin-app.db-surface .ranking-toolbar .tabs {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--db-line);
  border-radius: 6px;
  background: #fff;
}

.machikin-app.db-surface .tab-button,
.machikin-app.db-surface .detail-tab {
  border: 0;
  border-right: 1px solid var(--db-line);
  border-radius: 0;
  background: #fff;
  color: #344054;
}

.machikin-app.db-surface .tab-button:last-child,
.machikin-app.db-surface .detail-tab:last-child {
  border-right: 0;
}

.machikin-app.db-surface .tab-button.is-active,
.machikin-app.db-surface .detail-tab.is-active {
  background: var(--db-red);
  color: #fff;
}

.machikin-app.db-surface .ranking-detail-card,
.machikin-app.db-surface .simple-loan-card,
.machikin-app.db-surface .loan-card,
.machikin-app.db-surface .review-form,
.machikin-app.db-surface .finder-results,
.machikin-app.db-surface .local-lenders,
.machikin-app.db-surface .prefecture-map {
  border-radius: 7px;
  box-shadow: none;
}

.machikin-app.db-surface .button.primary,
.machikin-app.db-surface .apply-button {
  background: linear-gradient(180deg, #ff9f2f, #e85d18);
  border-radius: 6px;
}

@media (max-width: 960px) {
  .db-header__inner,
  .db-hero__inner,
  .db-search-strip {
    grid-template-columns: 1fr;
  }

  .db-header__nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .db-header__review {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .db-header__inner {
    width: min(100% - 20px, 1180px);
    gap: 10px;
    padding: 10px 0;
  }

  .db-hero__inner,
  .db-hero__quick,
  .machikin-app.db-surface .notice-bar,
  .machikin-app.db-surface .section,
  .machikin-app.db-surface .page-hero,
  .db-search-strip {
    width: min(100% - 20px, 1180px);
  }

  .db-search-grid {
    grid-template-columns: 1fr;
  }

  .db-search-tabs {
    grid-template-columns: 1fr;
  }

  .db-search-tabs a {
    border-right: 0;
    border-bottom: 1px solid var(--db-line);
  }

  .db-hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
}

#body_wrap.home .p-spMenu,
#body_wrap.home .c-menuBtn,
#body_wrap.home .l-header__menuBtn,
#body_wrap.page-template-page-ranking .p-spMenu,
#body_wrap.page-template-page-ranking .c-menuBtn,
#body_wrap.page-template-page-ranking .l-header__menuBtn,
#body_wrap.page-template-page-features .p-spMenu,
#body_wrap.page-template-page-features .c-menuBtn,
#body_wrap.page-template-page-features .l-header__menuBtn {
  display: none !important;
}
