/* Japanmap's search-led homepage visual system. Loaded after the legacy layers. */
:root{
  --ink:#132d35;
  --ink-2:#24434a;
  --navy:#112b33;
  --blue:#20604f;
  --blue-2:#174c40;
  --paper:#fff;
  --mist:#f6f8f6;
  --line:#dce5e1;
  --muted:#536870;
  --accent:#78a291;
}
body{color:var(--ink);background:#fff}
.trustbar{background:#f3f6f4;color:#45616a;border-bottom:1px solid #e1e8e4}
.trustbar a{color:#3b5962}
.trustbar p span{background:#3e9376;box-shadow:0 0 0 4px #3e937615}
.site-header{background:#fffffff5;border-bottom-color:#e7ece9}
.site-header.has-shadow{box-shadow:0 13px 30px #13313b0c}
.header-inner{min-height:78px;gap:30px}
.main-nav{gap:26px}
.main-nav a{font-size:14px;color:#23404a;font-weight:680;transition:color .18s}
.main-nav a:hover{color:#147057}
.header-search{width:43px;height:43px;border-color:#d8e3de;background:#f7faf8}
.header-search:hover{border-color:#77a391;background:#edf5f0}

.hero{display:block;min-height:0;background:#edf3ee url("japanmap-atlas-background-1600.webp") center 54%/cover no-repeat;color:var(--ink);overflow:visible;border-bottom:1px solid #dce8df}
.hero{background-image:linear-gradient(90deg,#f8faf6e8 0%,#f8faf6c9 47%,#f8faf650 100%),url("japanmap-atlas-background-1600.webp")}
.hero-inner{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:clamp(38px,5vw,80px);padding-top:70px;padding-bottom:62px}
.hero-content{display:block;min-width:0;padding:0;text-align:left}
.hero-kicker{margin:0 0 23px;color:#477666;font-size:11px;font-weight:850;letter-spacing:.18em}
.hero h1{max-width:600px;margin:0 0 15px;color:#122d35;font-size:clamp(44px,4.4vw,66px);font-weight:800;line-height:1.14;letter-spacing:-.075em;text-shadow:none}
.hero-lead{margin:0 0 34px;color:#496169;font-size:17px;line-height:1.65}
.hero-search{width:100%;max-width:690px;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;padding:7px 7px 7px 19px;border:1px solid #d4e1db;border-radius:12px;background:white;box-shadow:0 14px 36px #14333212;text-align:left}
.hero-search:focus-within{border-color:#438a70;box-shadow:0 0 0 4px #438a7022,0 14px 36px #14333212}
.hero-search svg{stroke:#46616a}
.hero-search input{height:55px;color:var(--ink);font-size:16px}
.hero-search input::placeholder{color:#71818a}
.hero-search button{min-width:90px;height:53px;border-radius:7px;background:#175b4b;font-size:15px}
.hero-search button:hover{background:#104837}
.popular-searches{justify-content:flex-start;gap:7px;margin-top:17px;color:#526a70;font-size:12px}
.popular-searches span{flex-basis:100%;font-weight:700;color:#59716f}
.popular-searches a{padding:5px 9px;border:1px solid #dce6e0;border-radius:5px;background:#fff;color:#3e5a60;font-size:12px}
.popular-searches a:hover{border-color:#82a997;background:#edf5f0;color:#173d35}
.hero-task-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;max-width:690px;margin-top:27px;border-top:1px solid #d9e2dc}
.hero-task-nav a{display:flex;justify-content:space-between;min-width:0;min-height:50px;padding:13px 8px 0 0;border:0;border-radius:0;background:transparent;color:#274851;text-decoration:none;font-size:13px;font-weight:760;backdrop-filter:none;box-shadow:none}
.hero-task-nav a span{color:#6f9887}
.hero-task-nav a:hover{transform:none;border:0;background:transparent;color:#11664c}
.hero-visual{position:relative;min-width:0}
.hero-visual picture{position:relative;display:block;aspect-ratio:1.23;overflow:hidden;border-radius:18px;background:#b8c7c4;box-shadow:0 25px 58px #0b2d381d}
.hero-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% center}
.hero-photo-note{margin:10px 2px 0;text-align:right;color:#677b7d;font-size:11px;text-shadow:none}

.category-rail{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding-top:67px;padding-bottom:12px}
.category-heading{margin-bottom:8px}
.category-heading h2{font-size:32px;color:#17333d}
.category-rail>a{--card-tint:#eaf3ed;min-height:148px;aspect-ratio:auto;border:1px solid #dfe9e2;border-radius:12px;background:var(--card-tint);color:#19363d;box-shadow:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.category-rail>a:nth-of-type(2){--card-tint:#eef3ef}
.category-rail>a:nth-of-type(3){--card-tint:#f4f1e9}
.category-rail>a:nth-of-type(4){--card-tint:#eaf1ee}
.category-rail>a:nth-of-type(5){--card-tint:#f5f1e9}
.category-rail>a:nth-of-type(6){--card-tint:#eaf0ee}
.category-rail>a::after{background:linear-gradient(90deg,var(--card-tint) 0%,var(--card-tint) 45%,transparent 81%)}
.category-rail>a>img{left:auto;right:0;width:53%;height:100%;object-fit:cover;object-position:center}
.category-rail>a:hover{transform:translateY(-2px);border-color:#99bbad;box-shadow:0 14px 30px #17393017}
.category-rail>a:hover>img{transform:scale(1.04)}
.category-label{top:0;bottom:0;left:22px;right:auto;width:58%;display:flex;flex-direction:column;justify-content:center}
.category-label strong{color:#16343d;font-size:20px;line-height:1.25}
.category-label small{margin-top:7px;color:#597075;font-size:12px;line-height:1.45}

.content-section{padding-top:83px;padding-bottom:89px}
.section-heading h2{font-size:36px;color:#19333b}
.section-heading .eyebrow{color:#3f8068}
.all-link{color:#255b4c;text-underline-offset:5px;border-bottom-color:#92b4a5}
.collection-grid{min-height:500px;gap:16px}
.collection-card{border-radius:13px}
.collection-copy strong{font-size:34px}
.collection-index a{padding-left:15px}
.collection-index a:hover{background:#f3f7f4}
.collection-index i{color:#447f68}
.dark-section{background:#112d35;padding-top:88px;padding-bottom:92px}
.section-heading.light h2{color:#fff}
.section-heading.light .eyebrow{color:#aacfc0}
.editor-grid{gap:16px}
.editor-grid article,.editor-grid article:nth-child(even){background:#1b3b43;border-color:#35545a;border-radius:12px}
.editor-grid article:nth-child(odd){border-color:#35545a}
.editor-grid p b{color:#b9dcc9}
.editor-grid h3{font-size:18px}
.editor-grid small{color:#bdd0d0}
.tool-grid{gap:15px}
.tool-grid>a{min-height:260px;border-color:#e2e9e4;border-radius:12px;background:#fff}
.tool-grid>a:hover{border-color:#88ad9a;box-shadow:0 16px 36px #163d3515}
.tool-icon{border-radius:11px;background:#e9f3ed;color:#21634e;font-size:20px}
.tool-grid small,.tool-grid b{color:#34735b}
.tool-grid strong{color:#15333b}
.primary-button{background:#195c4b;border-radius:8px}
.primary-button:hover{background:#124839}
.transit-visuals a{border-color:#e1e9e4;border-radius:12px;box-shadow:0 10px 24px #163d350c}
.trust-section{background:#f5f8f5;border-color:#e3ece5}
.trust-intro h2{color:#18343c}
.trust-intro>a{color:#20604f}
.trust-points article>span{color:#6c9a80}
.final-search{background:#1a4d43}
.final-search button{background:#102f35}
.site-footer{background:#102931}

@media(max-width:1120px){
  .hero-inner{gap:36px}
  .hero h1{font-size:clamp(40px,4.5vw,54px)}
  .category-rail{grid-template-columns:repeat(3,minmax(0,1fr))}
  .category-rail>a{min-height:132px}
  .category-label{left:15px}
  .category-label strong{font-size:17px}
  .category-label small{font-size:11px}
}
@media(max-width:860px){
  .hero-inner{grid-template-columns:1fr;gap:31px;padding-top:51px;padding-bottom:50px}
  .hero h1{font-size:clamp(37px,6vw,51px)}
  .hero-visual picture{aspect-ratio:1.85}
  .category-rail{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:47px}
  .category-rail>a{min-height:132px}
}
@media(max-width:600px){
  .hero{background-position:35% center;background-image:linear-gradient(180deg,#f8faf6ed 0%,#f8faf6e5 54%,#f8faf6c9 100%),url("japanmap-atlas-background-1600.webp")}
  .trustbar-inner{min-height:30px}
  .trustbar p{font-size:10px;line-height:1.3}
  .header-inner{min-height:65px;gap:12px}
  .hero-inner{gap:27px;padding-top:39px;padding-bottom:36px}
  .hero-kicker{margin-bottom:14px;font-size:10px}
  .hero h1{margin-bottom:11px;font-size:35px;line-height:1.22}
  .hero-lead{margin-bottom:22px;font-size:14px;line-height:1.6}
  .hero-search{grid-template-columns:19px minmax(0,1fr) auto;gap:8px;padding:5px 5px 5px 12px;border-radius:10px}
  .hero-search input{height:50px;font-size:14px}
  .hero-search button{height:48px;min-width:60px;padding:0 10px;font-size:13px}
  .popular-searches{gap:6px;margin-top:14px}
  .popular-searches span{font-size:11px}
  .popular-searches a{font-size:11px;padding:4px 7px}
  .hero-task-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px;margin-top:20px}
  .hero-task-nav a{min-height:42px;padding:9px 4px 0 0;font-size:13px}
  .hero-visual picture{aspect-ratio:1.42;border-radius:12px}
  .hero-media{object-position:67% center}
  .hero-photo-note{font-size:10px}
  .category-rail{grid-template-columns:1fr 1fr;gap:9px;padding-top:43px}
  .category-heading{margin-bottom:3px}
  .category-heading h2{font-size:26px}
  .category-rail>a{min-height:132px;border-radius:10px}
  .category-rail>a>img{width:63%}
  .category-rail>a::after{background:linear-gradient(90deg,var(--card-tint) 0%,var(--card-tint) 46%,transparent 100%)}
  .category-label{left:12px;width:85%}
  .category-label strong{font-size:15px}
  .category-label small{font-size:10px;margin-top:3px}
  .content-section{padding-top:61px;padding-bottom:70px}
  .section-heading h2{font-size:28px}
  .collection-grid{min-height:0}
  .collection-index a{padding-left:7px}
  .dark-section{padding-top:68px;padding-bottom:70px}
  .editor-grid h3{font-size:18px}
}
@media(max-width:360px){
  .hero h1{font-size:31px}
  .category-rail>a{min-height:117px}
  .category-label strong{font-size:14px}
  .category-label small{font-size:9px}
}
