/* Homepage refresh: a simple hub for the four existing diagnostics. */
.home-mobile-break{display:none}
.site-brand-name{font-family:'Noto Sans JP',sans-serif;font-size:14px;letter-spacing:.04em;font-weight:700}
.home-hero{min-height:450px;grid-template-columns:1.15fr .85fr;align-items:center;padding-top:52px;padding-bottom:52px}
.home-hero-copy{padding:8px 0;position:relative;z-index:2}
.home-hero h1{font-size:clamp(38px,4.1vw,56px);line-height:1.45;margin:20px 0 14px}
.home-hero .hero-text{font-size:15px;max-width:460px}
.home-hero .hero-cta{min-height:52px;align-items:center;justify-content:center;font-size:16px;line-height:1.5;gap:20px;max-width:100%;text-align:center}
.home-hero-panel{align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:13px;margin:8px 0 8px 25px;padding:34px;background:linear-gradient(145deg,#173b30,#1f4435);border:1px solid #54705e;border-radius:8px;color:#f2f5ed}
.home-panel-kicker{font:600 10px 'DM Sans',sans-serif;letter-spacing:2px;color:#c4d7a9}
.home-hero-panel>b{font-size:24px;letter-spacing:.04em}
.home-hero-panel>span:not(.home-panel-kicker){color:#c3d0c6;font-size:13px}
.home-panel-items{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:7px 0}
.home-panel-items a{padding:12px;border:1px solid #ffffff26;border-radius:4px;color:#dbe6d5;text-align:center;font:500 11px 'DM Sans',sans-serif;letter-spacing:1.4px}
.home-hero-panel small{color:#b3c3b5;font-size:11px;line-height:1.75}
.gear-diagnoses{padding:56px 0 60px}
.gear-section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px}
.gear-section-heading h2{margin:10px 0 7px;font-size:24px;letter-spacing:.03em}
.gear-section-heading p{margin:0;color:#748075;font-size:13px;line-height:1.8}
.gear-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gear-card{min-width:0;display:flex;flex-direction:column;padding:22px 23px 18px;background:#fff;border:1px solid #e3e9e0;border-radius:7px;box-shadow:0 7px 22px #20352907}
.gear-card-featured{border-color:#a9bb9b;background:linear-gradient(145deg,#fff,#f6f8f1)}
.gear-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.gear-number{color:#57744d;font:600 11px 'DM Sans',sans-serif;letter-spacing:1px}
.gear-label{padding:5px 9px;border-radius:99px;background:#f0f4eb;color:#647860;font-size:11px}
.gear-card h3{margin:14px 0 7px;color:#213a2e;font-size:20px;letter-spacing:.02em}
.gear-card-answer{margin:0;color:#526157;font-size:13px;line-height:1.8}
.gear-card-for{margin:8px 0 16px;color:#849087;font-size:12px;line-height:1.7}
.gear-card-link{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding:0 14px;border:1px solid #dce5d8;border-radius:5px;color:#294a37;background:#f6f8f3;text-decoration:none;font-size:13px;font-weight:700;transition:background .18s,border-color .18s}
.gear-card-link span{font-size:17px}
.gear-card-link:hover,.gear-card-link:focus-visible{background:#eaf0e4;border-color:#a9bc9b}
.gear-card-featured .gear-card-link{background:#234634;border-color:#234634;color:#fff}
.gear-card-featured .gear-card-link:hover,.gear-card-featured .gear-card-link:focus-visible{background:#315b41;border-color:#315b41}
.home-trust-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:22px max(calc((100% - 1120px)/2),5%);border-top:1px solid #edf0ea}
.home-trust-strip>div{min-width:0;gap:10px}
.home-trust-strip b{font-size:12px}.home-trust-strip small{font-size:10px;line-height:1.55}
.diagnosis{scroll-margin-top:25px}
.seo-article-link{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:24px;padding:16px 18px;border:1px solid #e3e9e0;border-radius:6px;background:#fff}
.seo-article-link div{display:flex;flex-direction:column;gap:5px}
.seo-article-link b{font-size:13px;color:#34483a}.seo-article-link span{color:#7d887e;font-size:12px;line-height:1.7}
.seo-article-link>a{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:7px 12px;border:1px solid #d8e2d4;border-radius:4px;color:#36513c;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}
.seo-article-link>a:hover{background:#f0f4eb}
@media(max-width:760px){
  .topbar{height:auto;min-height:64px;gap:8px;padding:9px 15px}
  .topbar .brand{flex:1 0 auto}.site-brand-name{font-size:15px}
  .topbar .top-link{order:3;flex:0 0 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;margin-top:3px}
  .topbar .top-link>a{min-height:46px;padding:8px 5px;border-radius:6px;font-size:13px;white-space:normal;text-align:center}
  .home-hero{display:grid;grid-template-columns:1fr;min-height:0;gap:20px;padding:37px 22px 28px}
  .home-hero h1{font-size:clamp(34px,8vw,42px);line-height:1.4;margin:17px 0 12px}
  .home-mobile-break{display:block}
  .home-hero .hero-text{font-size:15px;line-height:1.85}
  .home-hero .hero-cta{min-height:52px;margin-top:20px}
  .home-hero-panel{margin:0;padding:19px 18px;gap:9px}
  .home-hero-panel>b{font-size:19px}
  .home-panel-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:2px 0}
  .home-panel-items a{padding:9px 3px;font-size:9px;letter-spacing:.8px}
  .home-hero-panel small{font-size:12px}
  .gear-diagnoses{padding:39px 0 40px}
  .gear-section-heading h2{font-size:21px;line-height:1.5}
  .gear-section-heading p{font-size:14px;line-height:1.8}
  .gear-card-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .gear-card{padding:18px 17px 15px;border-radius:8px}
  .gear-card h3{font-size:19px;margin-top:12px}
  .gear-card-answer{font-size:14px;line-height:1.8}
  .gear-card-for{font-size:13px;line-height:1.75;margin:7px 0 13px}
  .gear-card-link{min-height:50px;font-size:14px}
  .home-trust-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:18px 18px}
  .home-trust-strip>div{align-items:flex-start}.home-trust-strip b{font-size:12px}.home-trust-strip small{font-size:11px}
  .seo-article-link{align-items:stretch;flex-direction:column;gap:12px;padding:15px}
  .seo-article-link>a{justify-content:space-between;min-height:48px;white-space:normal;font-size:13px}
}
@media(max-width:390px){
  .topbar{padding-left:14px;padding-right:14px}
  .topbar .top-link>a{font-size:12px}
  .home-hero{padding:32px 18px 24px}
  .home-hero h1{font-size:34px}
  .home-hero .hero-note{font-size:12px;line-height:1.8}
  .home-panel-items a{font-size:8px}
  .gear-section-heading h2{font-size:20px}
  .home-trust-strip{padding:16px 14px;gap:14px 9px}
  .home-trust-strip>div{gap:7px}.home-trust-strip .trust-icon{flex:0 0 27px}
}

/* Keep the article lead-in readable as the SEO link count grows. */
.seo-article-link{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px}
.seo-article-link>div{grid-column:1/-1;min-width:0}
.seo-article-link>a{min-width:0;white-space:normal;overflow-wrap:anywhere;justify-content:space-between}
@media(max-width:760px){.seo-article-link{grid-template-columns:minmax(0,1fr);gap:10px}}

.fw-ut-entry{max-width:1120px;margin:20px auto;padding:20px 24px;border:1px solid #d5e0d5;border-radius:12px}.fw-ut-entry h2{font-size:1.25rem}.fw-ut-entry a{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;margin:4px 8px 4px 0;color:#205b45;font-weight:700}.topbar .top-link{flex-wrap:wrap}@media(max-width:600px){.fw-ut-entry{margin:16px 14px;padding:16px}.fw-ut-entry a{display:flex}}

/* Six diagnoses retain DOM order at every width. */
.home-panel-items{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.home-panel-items{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* My Bag is a separate utility, not a seventh diagnosis. */
.home-mybag{box-sizing:border-box;width:calc(100% - 32px);max-width:432px;margin:24px auto 32px;padding:24px;border:1px solid #304e40;border-radius:14px;background:#10251f;color:#f4f5ed;text-align:center}
.home-mybag-info{min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px}
.home-mybag-icon{flex-shrink:0;color:#c5d8ae}
.home-mybag-copy{min-width:0}.home-mybag h2{margin:0;font-size:26px;line-height:1.4;letter-spacing:.02em;color:inherit}
.home-mybag-description{margin:8px 0 0;font-size:14px;line-height:1.6;color:#e0e8dc}
.home-mybag-note{margin:7px 0 0;font-size:12px;line-height:1.6;color:#c2cebe}
.home-mybag-link{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:18px;padding:10px 12px;border:1px solid #d2e2be;border-radius:8px;background:#d2e2be;color:#172b20;font-size:15px;font-weight:700;line-height:1.4;text-decoration:none}
.home-mybag-link:hover{background:#e3edda}.home-mybag-link:focus-visible{outline:3px solid #fff;outline-offset:4px}
.home-mybag .mybag-mobile-text{display:none}
@media(max-width:760px){
 .home-mybag{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:center;gap:12px;margin:16px auto 20px;padding:14px;border-radius:12px;text-align:left}
 .home-mybag-info{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:9px}
 .home-mybag-icon{width:24px;height:30px}.home-mybag h2{font-size:18px;line-height:1.4}
 .home-mybag-description{margin-top:3px;font-size:12px;line-height:1.5}.home-mybag-note{margin-top:3px;font-size:11px;line-height:1.5}
 .home-mybag-link{margin:0;min-height:48px;padding:10px 6px;font-size:16px;white-space:nowrap}
 .home-mybag .mybag-pc-text{display:none}.home-mybag .mybag-mobile-text{display:inline}
}

/* Desktop: copy, six-gear guide and My Bag share one row.
   Below 1024px the existing hero and mobile bag card remain unchanged. */
@media(min-width:1024px){
 .home-hero-layout{display:grid;--hero-bag-width:clamp(180px,19vw,300px);grid-template-columns:minmax(0,1fr) var(--hero-bag-width);align-items:center;column-gap:clamp(24px,2.4vw,40px);min-height:450px;padding:52px max(24px,3%,calc((100% - 1600px)/2));background:#10251f;color:#f4f5ef;box-sizing:border-box}
 .home-hero-layout .home-hero{min-width:0;min-height:0;grid-template-columns:minmax(0,1fr) var(--hero-bag-width);gap:clamp(24px,2.4vw,40px);padding:0;background:transparent;overflow:visible}
 .home-hero-layout .home-hero-copy{min-width:0}
 .home-hero-layout .home-hero h1 em{display:inline-block;white-space:nowrap;font-size:1.07em}
 .home-hero-layout .home-hero-panel{min-width:0;margin:0;align-self:center;transform:translateX(-20px)}
 .home-hero-layout .home-mybag{width:var(--hero-bag-width);max-width:var(--hero-bag-width);min-height:365px;display:flex;flex-direction:column;justify-content:center;margin:0;padding:24px;border-radius:12px;align-self:center}
 .home-hero-layout .home-mybag-info{gap:8px}
 .home-hero-layout .home-mybag-icon{width:44px;height:50px}
 .home-hero-layout .home-mybag h2{font-size:24px;line-height:1.4}
 .home-hero-layout .home-mybag-description{font-size:14px;line-height:1.5;margin-top:5px}
 .home-hero-layout .home-mybag-description .mybag-pc-text{display:none}
 .home-hero-layout .home-mybag-description .mybag-mobile-text{display:inline}
 .home-hero-layout .home-mybag-note{font-size:12px;line-height:1.5;margin-top:5px}
 .home-hero-layout .home-mybag-link{min-height:48px;margin-top:18px;padding:10px 8px;font-size:16px}
 .home-hero-layout .home-mybag-link .mybag-pc-text{display:none}
 .home-hero-layout .home-mybag-link .mybag-mobile-text{display:inline}
}

/* Keep this homepage phrase together; wrap before it when needed. */
.home-hero .hero-text .hero-keep-phrase{display:inline-block;white-space:nowrap}
@media(min-width:1280px){
 .home-hero .hero-text{max-width:none;white-space:nowrap}
}

/* Gear chips are native links; preserve the six-item order and mobile stack. */
.home-panel-items a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;text-decoration:none;transition:background .15s}
.home-panel-items a:hover{background:#ffffff12}
.home-panel-items a:focus-visible{outline:3px solid #f0c65e;outline-offset:2px;background:#ffffff12}
@media(min-width:1024px){
 .home-hero-layout .home-hero{align-self:stretch}
 .home-hero-layout .home-hero-panel,.home-hero-layout .home-hero-sidebar{align-self:start}
}

/* Home only: six equal diagnosis links, with the existing PWA action below. */
.topbar.home-diagnosis-header{display:grid;grid-template-columns:minmax(0,1fr);height:auto;min-height:72px;gap:12px;padding:18px clamp(12px,3vw,48px)}
.home-diagnosis-header>.brand{grid-row:1;justify-self:start}
.topbar.home-diagnosis-header .top-link{grid-row:2;order:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:100%;min-width:0}
.topbar.home-diagnosis-header .top-link>a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;height:50px;min-height:50px;padding:8px;border-radius:5px;font-size:13px;line-height:1.4;text-align:center;white-space:nowrap}
.topbar.home-diagnosis-header .top-link>a>.home-nav-label{display:block;margin:0;color:inherit;font:inherit;letter-spacing:inherit;white-space:inherit}
.topbar.home-diagnosis-header>.pwa-install-button{grid-row:3;order:0;justify-self:start;width:min(100%,320px);min-height:44px;padding:10px 16px;border-radius:5px;font-size:13px;line-height:1.5;white-space:normal}
.topbar.home-diagnosis-header>.pwa-install-button[hidden]{display:none}
@media(min-width:981px){
 .topbar.home-diagnosis-header{grid-template-columns:minmax(0,1fr) auto;gap:10px 8px}
 .topbar.home-diagnosis-header .top-link{grid-row:2;grid-column:1;gap:6px}
 .topbar.home-diagnosis-header .top-link>a{height:46px;min-height:46px;padding:7px 6px;font-size:12px}
 .topbar.home-diagnosis-header>.pwa-install-button{grid-row:2;grid-column:2;align-self:stretch;width:auto;height:46px;min-height:46px;padding:7px 10px;font-size:12px;white-space:nowrap}
 .topbar.home-diagnosis-header:not(:has(>.pwa-install-button:not([hidden]))) .top-link{grid-column:1/-1}
}
@media(max-width:980px){
 .topbar.home-diagnosis-header{gap:12px;padding:14px 12px}
 .topbar.home-diagnosis-header .top-link{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .topbar.home-diagnosis-header .top-link>a{height:60px;min-height:60px;padding:8px 6px;font-size:12px;white-space:normal}
 .topbar.home-diagnosis-header .home-nav-label{word-break:keep-all;overflow-wrap:normal}
 .topbar.home-diagnosis-header>.pwa-install-button{width:100%;max-width:none}
}
