/* Homepage: bold ocean blue, useful search, and a quieter editorial canvas. */
.naminoritai-home {
  --container: 1160px;
  --home-blue: #1644e8;
  --home-ink: #18202b;
  --home-muted: #59616b;
  --home-line: #d9dce0;
  --blue: var(--home-blue);
  --blue-dark: #1036bd;
  --ink: var(--home-ink);
  background: #fff;
  color: var(--home-ink);
}
.naminoritai-home .container { width: min(var(--container), calc(100% - 80px)); }
.naminoritai-home :is(a, button):focus-visible { outline: 3px solid var(--home-blue); outline-offset: 4px; }

/* The white artwork is a single image, with the search always just below it. */
.search-hero { padding: 28px 0 24px; background: var(--home-blue); color: #fff; }
.search-hero > .container { max-width: 960px; }
.home-hero-intro { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.home-hero-description { font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1.7; }
.home-hero-logo { width: 376px; height: auto; margin: 2px 0 0; }
.home-hero-intro h1 { color: #fff; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; line-height: 1.7; letter-spacing: .01em; }
.home-hero-intro h1 > span { display: block; }
.home-hero-mascot { position: absolute; top: 140px; width: 144px; height: auto; pointer-events: none; }
.hero-mascot-wave { left: 30px; transform: rotate(-8deg); }
.hero-mascot-girl { right: 30px; transform: rotate(6deg); }

/* Scope the hero treatment so the shared directory search keeps its layout. */
.search-hero .spot-finder { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.search-hero .finder-heading { margin-bottom: 12px; }
.search-hero .finder-heading h2 { color: #fff; font-size: 20px; font-weight: 800; }
.search-hero .finder-heading > span { color: #fff; font-size: 12px; }
.search-hero .finder-main-fields { grid-template-columns: 1fr 1.8fr auto; gap: 12px; }
.search-hero .finder-main-fields label { color: #fff; font-size: 12px; gap: 6px; }
.search-hero .spot-finder :is(input[type="search"], select) { height: 56px; padding-inline: 16px; background: #fff; color: var(--home-ink); border: 1px solid #fff; border-radius: 4px; font-size: 16px; font-weight: 500; }
.search-hero input::placeholder { color: #737982; opacity: 1; }
.search-hero .finder-submit { min-height: 56px; padding-inline: 32px; background: var(--home-ink); color: #fff; border: 1px solid #ffffff80; border-radius: 4px; font-size: 17px; font-weight: 800; }
.search-hero .finder-submit:hover { background: #fff; color: var(--home-blue); border-color: #fff; }
.search-hero .finder-submit span { margin-left: 22px; }
.search-hero :is(a, button, summary):focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.search-hero .spot-finder :is(input, select):focus-visible { outline: 3px solid var(--home-ink); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.search-hero .finder-details { margin-top: 12px; }
.search-hero .finder-details summary { min-height: 40px; color: #fff; font-size: 12px; border-bottom: 1px solid #ffffff59; }
.search-hero .finder-extra-fields { padding-top: 4px; }
.search-hero .finder-facilities input { accent-color: #18202b; }
.search-hero .finder-help { color: #fff; }
.home-quick-areas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 22px; margin-top: 10px; font-size: 12px; }
.home-quick-areas > span { font-size: 11px; }
.home-quick-areas a { padding: 8px 0; font-weight: 700; text-underline-offset: 4px; }
.home-quick-areas a:hover { text-decoration: underline; }

/* Content relies on typography and rules, with colour reserved for navigation. */
.home-section { padding: 64px 0; }
.home-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--home-blue); }
.home-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.home-heading .home-eyebrow { margin-bottom: 8px; }
.home-heading h2 { font-size: 30px; line-height: 1.5; font-weight: 800; letter-spacing: -.025em; }
.home-heading > a { font-size: 13px; font-weight: 700; color: var(--home-blue); white-space: nowrap; padding: 8px 0; }
.home-heading > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-heading > a span { margin-left: 12px; }
.home-heading p:not(.home-eyebrow) { font-size: 14px; line-height: 1.9; color: var(--home-muted); margin-top: 12px; }
.home-area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-area { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 20px 22px; border: 1px solid var(--home-line); border-radius: 4px; background: #fff; }
.home-area > span:first-child { font-size: 20px; font-weight: 800; }
.home-area small { font-size: 12px; color: var(--home-muted); grid-row: 2; }
.home-area > span:last-child { grid-column: 2; grid-row: 1 / 3; color: var(--home-blue); font-size: 20px; }
.home-area:hover { border-color: var(--home-blue); color: var(--home-blue); }
.home-level-section { padding-top: 0; }
.home-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 2px solid var(--home-ink); }
.home-level-grid > a { position: relative; padding: 26px; }
.home-level-grid > a + a { border-left: 1px solid var(--home-line); }
.home-level-grid > a:hover h3 { color: var(--home-blue); }
.level-mark { float: right; font-size: 28px; line-height: 1.5; font-weight: 800; color: var(--home-blue); font-variant-numeric: tabular-nums; }
.home-level-grid h3 { font-size: 24px; font-weight: 800; }
.home-level-grid p { font-size: 13px; line-height: 1.9; margin: 12px 0 24px; color: var(--home-muted); }
.level-action { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--home-blue); }
.home-fine-print { font-size: 11px; line-height: 1.9; color: var(--home-muted); margin-top: 18px; }
.home-recommend-section { background: #f3f4f5; border-block: 1px solid var(--home-line); }
.home-recommended-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-spot-card { display: flex; flex-direction: column; border: 1px solid var(--home-line); border-top: 3px solid var(--home-blue); border-radius: 0 0 4px 4px; background: #fff; }
.home-spot-card:hover { border-color: var(--home-blue); }
.home-spot-context { padding: 18px 20px; border-bottom: 1px solid var(--home-line); font-size: 11px; font-weight: 700; color: var(--home-blue); }
.home-spot-copy { display: flex; flex-direction: column; flex: 1; padding: 22px 20px; }
.home-spot-copy > p { font-size: 11px; color: var(--home-muted); }
.home-spot-copy h3 { display: flex; justify-content: space-between; align-items: center; font-size: 32px; font-weight: 800; margin: 6px 0 16px; }
.home-spot-copy h3 span { font-size: 20px; color: var(--home-blue); }
.home-spot-copy .spot-card-description { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--home-muted); font-size: 13px; line-height: 1.9; }
.home-spot-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 22px; margin-top: auto; }
.home-spot-tags span { font-size: 10px; color: #424a54; padding: 3px 6px; background: #f3f4f5; border-radius: 2px; }
.home-blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.home-blog-grid > a { display: flex; flex-direction: column; padding-bottom: 28px; border-bottom: 1px solid var(--home-line); }
.home-story-thumbnail { width: 100%; height: auto; aspect-ratio: 1280 / 671; object-fit: cover; margin-bottom: 22px; background: #f3f4f5; }
.home-story-category { font-size: 12px; font-weight: 700; color: var(--home-blue); }
.home-blog-grid h3 { margin: 16px 0 28px; font-size: 24px; line-height: 1.8; font-weight: 800; }
.home-blog-grid > a > span { display: flex; justify-content: space-between; margin-top: auto; color: var(--home-blue); font-size: 13px; font-weight: 700; }
.home-blog-grid a:hover h3 { color: var(--home-blue); }
.home-care-section { padding-top: 12px; }
.home-editorial-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.home-editorial-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 280px; padding: 30px 40px; color: #fff; }
.care-art { background: var(--home-blue); }
.learn-art { background: var(--home-ink); }
.home-editorial-art > span { font-size: 54px; line-height: 1.2; letter-spacing: -.04em; font-weight: 900; }
.home-editorial-art small { font-size: 12px; letter-spacing: .08em; margin-top: 22px; }
.home-care-mascot { position: absolute; right: 20px; top: 65px; width: 132px; height: auto; transform: rotate(8deg); pointer-events: none; }
.home-editorial-layout h2, .home-app-layout h2 { font-size: 30px; line-height: 1.5; font-weight: 800; letter-spacing: -.03em; }
.home-editorial-layout p:not(.home-eyebrow), .home-app-layout p:not(.home-eyebrow) { color: var(--home-muted); font-size: 14px; line-height: 2; margin-top: 18px; }
.home-text-link { display: inline-flex; gap: 28px; align-items: center; font-size: 13px; color: var(--home-blue); font-weight: 700; padding: 10px 0; margin-top: 18px; }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-learn-section { padding-top: 0; }
.home-guide-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.home-guide-links a { color: var(--home-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.home-guide-links a:hover { color: var(--home-blue); }
.home-app-section { background: #f3f4f5; border-block: 1px solid var(--home-line); }
.home-app-layout { display: grid; grid-template-columns: 1fr 210px; gap: 80px; align-items: center; }
.home-app-preview { display: grid; place-items: center; height: 220px; overflow: hidden; background: #e3e5e8; border-radius: 4px; }
.home-app-preview img { width: 110px; height: auto; margin-top: 26px; border-radius: 10px; }
.home-about { padding: 48px 0; text-align: center; }
.home-about-mascot { width: 90px; height: auto; margin: 0 auto 18px; }
.home-about p { color: var(--home-muted); font-size: 12px; line-height: 1.9; }
.home-about h2 { font-size: 18px; font-weight: 800; margin: 12px 0; }
.naminoritai-home .site-footer { background: #fff; border-top: 1px solid var(--home-line); }
.naminoritai-home .footer-bottom { border-color: var(--home-line); }

@media (max-width: 1080px) {
  .home-hero-mascot { width: 110px; }
  .hero-mascot-wave { left: 0; }
  .hero-mascot-girl { right: 0; }
  .home-care-mascot { width: 100px; right: 8px; top: 20px; }
  .home-recommended-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-editorial-layout { gap: 36px; }
  .home-area { padding: 18px; }
}
@media (max-width: 760px) {
  .naminoritai-home .container { width: calc(100% - 40px); }
  .search-hero { padding: 20px 0 16px; }
  .home-hero-intro { margin-bottom: 22px; }
  .home-hero-description { font-size: 11px; letter-spacing: 0; }
  .home-hero-logo { width: 252px; margin: 0; }
  .home-hero-mascot { width: 64px; top: 110px; }
  .home-hero-intro h1 { font-size: clamp(17px, 4.65vw, 25px); line-height: 1.8; letter-spacing: -.015em; }
  .search-hero .finder-heading { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 12px; }
  .search-hero .finder-heading h2 { font-size: 18px; }
  .search-hero .finder-heading > span { font-size: 10px; }
  .search-hero .finder-main-fields { grid-template-columns: 1fr auto; gap: 10px; }
  .search-hero .finder-main-fields label { font-size: 11px; gap: 4px; }
  .search-hero .spot-finder :is(input[type="search"], select) { height: 48px; padding-inline: 12px; }
  .search-hero .finder-submit { min-height: 48px; padding-inline: 18px; font-size: 14px; }
  .search-hero .finder-submit span { margin-left: 10px; }
  .search-hero .finder-details { margin-top: 10px; }
  .search-hero .finder-details summary { font-size: 11px; }
  .home-quick-areas { justify-content: flex-start; gap: 0 18px; font-size: 11px; }
  .home-quick-areas > span { flex-basis: 100%; font-size: 10px; }
  .home-quick-areas a { padding: 6px 0; }
  .home-section { padding: 44px 0; }
  .home-heading { align-items: flex-start; gap: 10px; margin-bottom: 22px; flex-direction: column; }
  .home-heading h2 { font-size: 24px; }
  .home-heading > a { font-size: 12px; }
  .home-eyebrow { font-size: 11px; }
  .home-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-area { padding: 16px; }
  .home-area > span:first-child { font-size: 18px; }
  .home-area small { font-size: 11px; }
  .home-level-section { padding-top: 0; }
  .home-level-grid { grid-template-columns: 1fr; }
  .home-level-grid > a { padding: 22px 0; }
  .home-level-grid > a + a { border-left: 0; border-top: 1px solid var(--home-line); }
  .home-level-grid h3 { font-size: 22px; }
  .home-level-grid p { margin: 8px 0 16px; }
  .home-level-grid p br { display: none; }
  .level-mark { font-size: 24px; }
  .home-recommended-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .home-spot-context { font-size: 10px; padding: 14px 12px; }
  .home-spot-copy { padding: 16px 12px; }
  .home-spot-copy h3 { font-size: 28px; }
  .home-spot-copy .spot-card-description { font-size: 12px; }
  .home-spot-tags { padding-top: 16px; }
  .home-spot-tags span { font-size: 9px; padding: 3px 4px; }
  .home-blog-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-blog-grid > a { padding: 0 0 24px; }
  .home-story-thumbnail { margin-bottom: 18px; }
  .home-blog-grid h3 { font-size: 21px; }
  .home-blog-grid h3 br { display: none; }
  .home-care-section { padding-top: 0; }
  .home-editorial-layout { grid-template-columns: 1fr; gap: 24px; }
  .home-editorial-art { min-height: 220px; padding: 28px; }
  .home-editorial-art > span { font-size: 44px; }
  .home-editorial-art small { margin-top: 18px; }
  .home-care-mascot { width: 108px; right: 18px; top: 38px; }
  .home-editorial-layout h2, .home-app-layout h2 { font-size: 25px; }
  .home-editorial-layout p:not(.home-eyebrow), .home-app-layout p:not(.home-eyebrow) { font-size: 13px; }
  .home-learn-section { padding-top: 0; }
  .home-app-layout { grid-template-columns: 1fr 95px; gap: 18px; }
  .home-app-preview { height: 180px; }
  .home-app-preview img { width: 76px; }
  .home-app-layout .home-text-link { font-size: 12px; }
  .home-about { padding: 32px 0; }
  .home-about h2 { font-size: 16px; }
}
@media (max-width: 380px) {
  .naminoritai-home .container { width: calc(100% - 32px); }
  .home-hero-description { font-size: 10px; }
  .home-hero-logo { width: 220px; }
  .home-hero-mascot { width: 48px; top: 100px; }
  .home-care-mascot { width: 82px; right: 12px; top: 35px; }
  .home-hero-intro h1 { font-size: 17px; letter-spacing: -.035em; }
  .search-hero .finder-heading h2 { font-size: 16px; }
  .search-hero .finder-heading > span { font-size: 9px; }
  .search-hero .finder-submit { padding-inline: 14px; }
  .home-quick-areas { gap: 0 14px; font-size: 10px; }
  .home-recommended-grid { grid-template-columns: 1fr; }
  .home-spot-context { padding-inline: 20px; }
  .home-spot-copy { padding: 20px; }
  .home-app-layout { grid-template-columns: 1fr; }
  .home-app-preview { display: none; }
}
