/* Yokohama Lab homepage — shared typography, consolidated component styles.
 * This file is enqueued on the front page only.
 * Edit the size tokens here; do not add per-card or mobile font overrides.
 */
body:has(.ylplp-home) {
  --ylplp-navy: #123b68;
  --ylplp-blue: #087bd2;
  --ylplp-text: #173d67;
  --ylplp-muted: #58789a;
  --ylplp-line: #dcecfb;
  --ylplp-width: 1200px;
  --ylplp-description-size: 16px;
  --ylplp-card-title-size: 18px;
  --ylplp-action-size: 14px;
  --ylplp-meta-size: 12px;
  --ylplp-card-radius: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ylplp-text);
  background: #fff;
}
html:has(.ylplp-home) { scroll-behavior: smooth; scroll-padding-top: 100px; }
.ylplp-home { overflow: hidden; color: var(--ylplp-text); font-size: 16px; line-height: 1.8; }
.ylplp-home * { box-sizing: border-box; }

/* Shared text: the only size definitions for descriptions and card headings. */
body:has(.ylplp-home) :where(.ylplp-description) {
  font-size: var(--ylplp-description-size);
  font-weight: 400;
  line-height: 1.85;
  color: var(--ylplp-muted);
  margin: 0;
  overflow-wrap: anywhere;
}
body:has(.ylplp-home) :where(.ylplp-card-title) {
  font-size: var(--ylplp-card-title-size);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ylplp-navy);
  margin: 0;
  overflow-wrap: anywhere;
}
.ylplp-section-title { font-size: 31px; line-height: 1.4; font-weight: 700; color: #153d68; margin: 0; overflow-wrap: anywhere; }
.ylplp-price { font-size: var(--ylplp-card-title-size); line-height: 1.6; font-weight: 700; color: var(--ylplp-blue); margin: 0; }
.ylplp-kicker { margin: 0 0 7px; color: var(--ylplp-blue); font-size: var(--ylplp-meta-size); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ylplp-text-link { font-size: var(--ylplp-action-size); font-weight: 700; color: var(--ylplp-blue); text-decoration: none; }
.ylplp-text-link span { padding-left: 5px; }
.ylplp-text-link:hover { text-decoration: underline; }
.ylplp-label { font-size: var(--ylplp-meta-size); font-weight: 700; color: var(--ylplp-blue); border: 1px solid #9acdf5; background: #fff; border-radius: 3px; padding: 2px 7px; }

/* Homepage buttons. Primary buttons use a solid background. */
.ylplp-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 50px; padding: 10px 30px; border: 1px solid transparent; border-radius: 28px; text-decoration: none; text-align: center; font-size: var(--ylplp-action-size); font-weight: 700; line-height: 1.6; transition: transform .2s,box-shadow .2s; background: #fff; }
.ylplp-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,83,139,.14); }
.ylplp-button--primary { color: #fff; background: var(--ylplp-blue); border-color: var(--ylplp-blue); }
.ylplp-button--outline { color: var(--ylplp-blue); border-color: #2b9bf2; }
.ylplp-home a:focus-visible { outline: 3px solid #153d68; outline-offset: 4px; }

/* Layout and hero. Illustration size/position are declared once per viewport. */
.ylplp-container { width: min(var(--ylplp-width),calc(100% - 64px)); margin: 0 auto; position: relative; z-index: 1; }
.ylplp-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(105deg,#f1f9ff 0%,#f8fcff 52%,#eff8ff 100%); padding: 64px 0 0; }
.ylplp-orb { position: absolute; pointer-events: none; border-radius: 50%; background: linear-gradient(145deg,#d8edff,#edf7ff); }
.ylplp-orb--hero-a { width: 290px; height: 290px; right: -140px; top: -165px; z-index: 0; }
.ylplp-orb--hero-b { width: 230px; height: 230px; left: -125px; bottom: -105px; z-index: 0; }
.ylplp-hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; min-height: 320px; position: relative; isolation: isolate; }
.ylplp-hero__copy { min-width: 0; position: relative; z-index: 3; }
.ylplp-eyebrow { font-size: 16px; font-weight: 700; color: var(--ylplp-blue); letter-spacing: .02em; margin: 0 0 20px; }
.ylplp-hero h1 { font-size: clamp(38px,3.5vw,52px); line-height: 1.38; letter-spacing: 0; white-space: nowrap; color: #153d68; font-weight: 700; margin: 0 0 20px; }
.ylplp-hero__phrase { display: inline-block; white-space: nowrap; }
.ylplp-hero h1 .ylplp-hero__accent { color: var(--ylplp-blue); }
body:has(.ylplp-home) .ylplp-hero__lead { margin-bottom: 25px; }
.ylplp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ylplp-hero__visual { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; z-index: 1; pointer-events: none; }
.ylplp-hero__visual-orb { position: absolute; width: 350px; height: 350px; right: 3%; top: 50%; transform: translateY(-50%); border-radius: 50%; background: #e0f0ff; z-index: 0; }
.ylplp-hero__visual img {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 135%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translateX(-7%) translateY(65px);
  z-index: 1;
}
.ylplp-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 28px; padding: 20px 0 25px; border-top: 1px solid rgba(173,211,243,.38); }
.ylplp-benefit { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; border-right: 1px solid #d7eaf9; }
.ylplp-benefit:last-child { border-right: 0; }
.ylplp-benefit__icon { width: 58px; height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #e0f1ff; color: #0784df; }
.ylplp-benefit__icon svg { width: 33px; height: 33px; }

/* Section spacing. */
.ylplp-section { position: relative; padding: 54px 0 58px; }
.ylplp-section--services { background: #fff; }
.ylplp-section--tint { background: linear-gradient(120deg,#f4faff,#f8fbff 60%,#eff8ff); }
.ylplp-section-head { margin: 0 0 30px; position: relative; z-index: 1; }

body:has(.ylplp-home) .ylplp-section-desc { margin-top: 8px; }

/* Service cards. Typography comes from the shared classes above. */
.ylplp-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.ylplp-service { display: flex; align-items: center; gap: 25px; min-width: 0; padding: 28px 30px; border: 1px solid #d9eafb; border-radius: var(--ylplp-card-radius); background: linear-gradient(120deg,#f0f8ff,#f9fcff); text-decoration: none; color: inherit; transition: transform .2s,border-color .2s,box-shadow .2s; }
.ylplp-service:hover { transform: translateY(-3px); border-color: #9acdf5; box-shadow: 0 10px 22px rgba(27,91,145,.07); }
.ylplp-service__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 94px; height: 94px; border-radius: 15px; background: #e0f1ff; }
.ylplp-service__icon img { width: 74px; height: 74px; object-fit: contain; }
.ylplp-service__body { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }

/* Product cards: wider columns accommodate 18px titles and 16px descriptions. */
.ylplp-product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ylplp-product { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; min-width: 0; padding: 25px 22px; border: 1px solid #deebf8; border-radius: var(--ylplp-card-radius); background: #fff; text-decoration: none; color: var(--ylplp-text); transition: transform .2s,border-color .2s,box-shadow .2s; }
.ylplp-product:hover { transform: translateY(-3px); border-color: #9bcdf5; box-shadow: 0 8px 20px rgba(25,83,133,.08); }
.ylplp-product__icon { height: 60px; width: 66px; display: flex; align-items: center; justify-content: center; }
.ylplp-product__icon img { width: 56px; height: 56px; object-fit: contain; }
.ylplp-product .ylplp-description { flex: 1; }

/* Homepage works: reuse the product grid, card base and shared typography. */
.ylplp-section.ylplp-section--works { background: #fff; padding-top: 8px; }
.ylplp-product.ylplp-work { align-items: stretch; gap: 0; padding: 0; overflow: hidden; text-align: left; }
.ylplp-work__image { display: block; position: relative; flex: none; width: 100%; aspect-ratio: 8 / 5; border-bottom: 1px solid #deebf8; background: #f1f8ff; }
.ylplp-work__image img { display: block; position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.ylplp-work__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; flex: 1; }
.ylplp-work__body .ylplp-description { width: 100%; }
.ylplp-work-actions { display: flex; justify-content: center; margin-top: 24px; }

/* Reasons. */
.ylplp-section--reasons { background: #fff; overflow: hidden; padding-top: 52px; padding-bottom: 50px; }
.ylplp-orb--reason { width: 340px; height: 340px; right: -220px; top: -130px; background: linear-gradient(130deg,#e5f3ff,#f5fbff); }
.ylplp-reason-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.ylplp-reason { display: flex; align-items: flex-start; gap: 18px; min-width: 0; padding-right: 22px; border-right: 1px solid #d9eafb; }
.ylplp-reason:last-child { border-right: 0; padding-right: 0; }
.ylplp-reason > div { min-width: 0; display: grid; gap: 10px; }
.ylplp-reason__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; background: #e4f3ff; color: #0784df; font-size: 30px; font-weight: 700; }

/* Development flow: reuse the existing site's illustrations and open layout. */
.ylplp-section--flow { background: linear-gradient(110deg,#f0f8ff,#f8fcff); padding-top: 48px; padding-bottom: 52px; }
.ylplp-flow-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.ylplp-flow-step { position: relative; min-width: 0; padding: 0 12px; text-align: center; }
.ylplp-flow-step:not(:last-child)::after { content: '→'; position: absolute; right: -12px; top: 26px; z-index: 2; font-size: 24px; color: #c0d8ee; font-weight: 400; }
.ylplp-flow-icon { display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; margin: 0 auto 20px; }
.ylplp-flow-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ylplp-flow-step .ylplp-card-title { margin-bottom: 10px; }

/* Blog. Actual post titles share the same heading style as other cards. */
.ylplp-section--blog { padding-top: 40px; padding-bottom: 40px; }
.ylplp-blog-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 30px; align-items: start; }
.ylplp-blog-intro { display: grid; gap: 10px; }
.ylplp-blog-intro .ylplp-kicker { margin: 0; }
.ylplp-blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.ylplp-blog-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e0edf8; border-radius: var(--ylplp-card-radius); text-decoration: none; color: var(--ylplp-text); background: #fff; transition: border-color .2s,box-shadow .2s; }
.ylplp-blog-card:hover { border-color: #9bcdf5; box-shadow: 0 7px 16px rgba(25,83,133,.08); }
.ylplp-blog-card__thumb { display: flex; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 16 / 9; background: #e8f4ff; overflow: hidden; }
.ylplp-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ylplp-blog-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; min-width: 0; flex: 1; }
.ylplp-blog-card__body small { font-size: var(--ylplp-meta-size); color: #6f89a1; }
.ylplp-blog-card__body em { font-size: var(--ylplp-meta-size); line-height: 1.5; font-style: normal; color: var(--ylplp-blue); border: 1px solid #c4e4fb; border-radius: 12px; padding: 2px 7px; margin-top: auto; }
.ylplp-blog-placeholder { display: block; width: 100%; height: 100%; }

/* Homepage footer. The shared footer's other-page presentation is preserved. */
body:has(.ylplp-home) .yl-footer { padding: 42px 0 0; background: linear-gradient(110deg,#12375c,#163f69); color: #fff; }
body:has(.ylplp-home) .yl-footer-inner { width: min(var(--ylplp-width),calc(100% - 64px)); gap: 32px; padding-bottom: 30px; grid-template-columns: 1.6fr 1.2fr .8fr 1fr; }
body:has(.ylplp-home) .yl-footer-inner > div { min-width: 0; }
body:has(.ylplp-home) .yl-footer-logo { font-size: 23px; margin-bottom: 10px; }
body:has(.ylplp-home) .yl-footer .ylplp-description { color: #c1d7e9; }
body:has(.ylplp-home) .yl-footer .ylplp-card-title { color: #fff; margin-bottom: 12px; letter-spacing: 0; }
body:has(.ylplp-home) .yl-footer-col ul li { margin-bottom: 9px; }
body:has(.ylplp-home) .yl-footer-col ul li a { font-size: var(--ylplp-action-size); color: #c1d7e9; overflow-wrap: anywhere; }
body:has(.ylplp-home) .yl-footer-line-box { padding: 14px; background: rgba(255,255,255,.08); }
body:has(.ylplp-home) .yl-footer-line-box img { width: 92px; height: 92px; margin-bottom: 10px; }
body:has(.ylplp-home) .yl-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 14px 0 12px; }
body:has(.ylplp-home) .yl-footer-bottom-inner { width: min(var(--ylplp-width),calc(100% - 64px)); padding: 0; gap: 16px; color: #c1d7e9; }
body:has(.ylplp-home) .yl-footer-copy, body:has(.ylplp-home) .yl-footer-policy a { font-size: var(--ylplp-meta-size); color: #c1d7e9; }
body:has(.ylplp-home) .yl-footer-policy { gap: 12px; flex-wrap: wrap; }
body:has(.ylplp-home) .yl-footer-recaptcha { width: min(var(--ylplp-width),calc(100% - 64px)); margin: 12px auto 0; padding-bottom: 8px; font-size: var(--ylplp-meta-size); line-height: 1.8; color: #c1d7e9; }

/* Responsive layout only: description/title sizes remain 16px/18px. */
@media (min-width: 1400px) {
  body:has(.ylplp-home) { --ylplp-width: 1240px; }
  .ylplp-container { width: min(var(--ylplp-width),calc(100% - 96px)); }
}
@media (max-width: 1100px) {
  .ylplp-hero h1 { font-size: clamp(26px,3.2vw,39px); }
}
@media (max-width: 1050px) {
  .ylplp-container { width: calc(100% - 48px); }
  .ylplp-hero__grid { gap: 20px; }
  .ylplp-service { padding: 22px; gap: 17px; }
  .ylplp-service__icon { flex-basis: 66px; height: 66px; }
  .ylplp-service__icon img { width: 54px; height: 54px; }
  .ylplp-reason-grid { grid-template-columns: 1fr; gap: 24px; }
  .ylplp-reason { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid #d9eafb; }
  .ylplp-reason:last-child { border-bottom: 0; padding-bottom: 0; }
  .ylplp-flow-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 32px; }
  .ylplp-flow-step::after { display: none; }
  .ylplp-blog-layout { grid-template-columns: 1fr; gap: 24px; }
  body:has(.ylplp-home) .yl-footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body:has(.ylplp-home) .yl-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .ylplp-hero h1 { white-space: normal; }
  .ylplp-benefit { flex-direction: column; text-align: center; padding: 0 8px; gap: 10px; }
  .ylplp-benefit__icon { width: 46px; height: 46px; flex-basis: 46px; }
  .ylplp-benefit__icon svg { width: 27px; height: 27px; }
}
@media (max-width: 760px) {
  html:has(.ylplp-home) { scroll-padding-top: 84px; }
  .ylplp-container { width: calc(100% - 36px); }
  .ylplp-hero { padding-top: 36px; }
  .ylplp-hero__grid { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .ylplp-eyebrow { font-size: 13px; margin-bottom: 13px; }
  .ylplp-hero h1 { font-size: clamp(31px,8vw,40px); line-height: 1.42; margin-bottom: 15px; }
  body:has(.ylplp-home) .ylplp-hero__lead { margin-bottom: 18px; }
  .ylplp-desktop { display: none; }
  .ylplp-actions { gap: 10px; }
  .ylplp-button { min-height: 46px; padding: 10px 18px; }
  .ylplp-hero__visual { margin-top: 8px; overflow: visible; }
  .ylplp-hero__visual img { width: 118%; transform: translateX(0) translateY(0); }
  .ylplp-hero__visual-orb { width: 270px; height: 270px; right: 8%; }
  .ylplp-benefits { padding: 20px 0; }
  .ylplp-section { padding: 40px 0; }
  .ylplp-section-head { margin-bottom: 24px; }

  .ylplp-section-title { font-size: 25px; }
  .ylplp-service-grid { grid-template-columns: 1fr; gap: 16px; }
  .ylplp-service { padding: 20px; gap: 16px; }
  .ylplp-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .ylplp-product { padding: 22px 16px; }
  .ylplp-reason { gap: 16px; }
  .ylplp-reason__icon { flex-basis: 49px; width: 49px; height: 49px; font-size: 24px; }
  .ylplp-blog-grid { grid-template-columns: 1fr; }
  .ylplp-blog-card { display: grid; grid-template-columns: 30% minmax(0,1fr); }
  .ylplp-blog-card__thumb { aspect-ratio: auto; min-height: 150px; }
  .ylplp-blog-card__body { padding: 16px; }
  body:has(.ylplp-home) .yl-footer { padding-top: 32px; }
  body:has(.ylplp-home) .yl-footer-inner { width: calc(100% - 36px); gap: 28px; }
  body:has(.ylplp-home) .yl-footer-logo { font-size: 21px; }
  body:has(.ylplp-home) .yl-footer-bottom-inner, body:has(.ylplp-home) .yl-footer-recaptcha { width: calc(100% - 36px); }
}
@media (max-width: 600px) {
  .ylplp-flow-grid { grid-template-columns: 1fr; }
  body:has(.ylplp-home) .yl-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ylplp-product-grid { grid-template-columns: 1fr; }
  .ylplp-benefits { grid-template-columns: 1fr; gap: 16px; }
  .ylplp-benefit { flex-direction: row; justify-content: flex-start; text-align: left; border-right: 0; border-bottom: 1px solid #d7eaf9; padding: 0 8px 16px; gap: 16px; }
  .ylplp-benefit:last-child { border-bottom: 0; padding-bottom: 0; }
  .ylplp-service { align-items: flex-start; padding: 20px 16px; }
  .ylplp-service__icon { flex-basis: 52px; height: 52px; }
  .ylplp-service__icon img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.ylplp-home) { scroll-behavior: auto; }
  .ylplp-home * { transition: none !important; }
}
