/* 04 — Pen Online. Self-contained, homepage-only editorial study. */
body.home {
  --ink: #171717; --dark: #171717; --gray: #bfbdbd; --light: #f6f6f6;
  --line: #d1d1d1; --tag: transparent; --tag-text: #555; --container: 1120px;
  --paper: #f7f7f7;
  --serif: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.85;
}
body.home :is(a, button) { transition: opacity .2s, background-color .2s, color .2s; }
body.home :is(a, button, input):focus-visible { outline: 2px solid #171717; outline-offset: 5px; }
body.home .container { width: min(var(--container), calc(100% - 112px)); }
body.home .site-header { background: var(--paper); color: var(--ink); }
body.home .header-top { position: relative; display: grid; grid-template-columns: 1fr 290px 1fr; gap: 24px; min-height: 137px; max-width: 1480px; padding: 24px 36px 12px; align-items: start; }
body.home .brand { grid-column: 2; grid-row: 1; margin: 2px auto 0; width: 290px; }
body.home .brand img { width: 100%; filter: brightness(0); }
body.home .header-links { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 8px; font-size: .875rem; }
body.home .header-links button { padding: 0; }
body.home .header-utilities { grid-column: 3; grid-row: 1; padding-top: 2px; gap: 18px; margin: 0; font-size: .875rem; white-space: normal; }
body.home .header-utilities .utility-box { padding: 6px 0; background: none; color: inherit; font-weight: 400; }
body.home .header-search { flex: 0 0 40px; width: 40px; height: 40px; margin: 0; }
body.home .search-icon { width: 16px; height: 16px; border-width: 1px; }
body.home .search-icon::after { height: 1px; width: 7px; right: -5px; bottom: -3px; }
body.home .brand-copy { display: block; text-align: center; white-space: normal; padding: 8px 24px 0; }
body.home .brand-copy p { font-size: .8125rem; letter-spacing: .1em; margin: 0; }
body.home .audiences { justify-content: center; gap: 12px; margin-top: 6px; color: #666; flex-wrap: wrap; }
body.home .audiences span { color: inherit; background: none; border-radius: 0; font-size: .75rem; font-weight: 400; padding: 0; }
body.home .audiences small { display: inline; font-size: .75rem; }
body.home .header-utilities > button.utility-box { display: block; }
body.home .site-nav { display: flex; background: none; color: inherit; flex-wrap: wrap; gap: 18px 25px; max-width: 1320px; margin: auto; padding: 32px 28px 42px; font-family: var(--serif); font-size: 1rem; font-weight: 500; line-height: 1.5; }
body.home .site-nav a { padding: 0; border: none; }
body.home .mobile-menu { display: none; }

/* A broad lead image, with a vertical index outside the image. */
body.home .home-hero { --hero-width: min(1120px, calc(100vw - 160px)); width: var(--hero-width); margin: 0 auto; padding: 0; color: var(--ink); background: none; overflow: visible; }
body.home .hero-window { width: 100%; overflow: hidden; }
body.home .hero-track { width: var(--hero-width); gap: 0; align-items: stretch; }
body.home .hero-slide { flex: 0 0 var(--hero-width); position: relative; isolation: isolate; min-height: clamp(390px, 43vw, 540px); display: grid; align-content: start; padding: 46px 54px; }
body.home .hero-slide:hover { opacity: 1; }
body.home .hero-image { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: -1; }
body.home .hero-kicker { display: block; font-family: var(--serif); font-size: 1rem; letter-spacing: .08em; margin-bottom: 18px; }
body.home .hero-slide h2 { max-width: 760px; font-size: clamp(1.5rem, 2.35vw, 2.125rem); margin: 0; font-weight: 600; line-height: 1.75; letter-spacing: .08em; }
body.home .hero-slide:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
body.home .carousel-dots { position: absolute; top: 24px; left: -61px; flex-direction: column; align-items: center; gap: 0; margin: 0; }
body.home .carousel-dots button { width: 44px; height: 36px; border-radius: 0; background: transparent; color: #6a6a6a; opacity: 1; font-family: var(--serif); font-size: .875rem; font-weight: 400; text-decoration: underline; text-underline-offset: 5px; }
body.home .carousel-dots button[aria-pressed="true"] { color: #111; font-weight: 700; text-decoration-thickness: 2px; }
body.home .home-hero > .arrow { top: 260px; width: 44px; height: 44px; background: transparent; color: var(--ink); font-family: var(--serif); font-size: .875rem; text-decoration: underline; text-underline-offset: 5px; }
body.home .home-hero > .previous { left: -61px; top: 304px; }
body.home .home-hero > .next { left: -61px; right: auto; }

/* Centered serif headings and a short rule recur throughout. */
body.home .editorial-heading { position: relative; text-align: center; padding-top: 27px; margin: 0 0 46px; color: var(--ink); }
body.home .editorial-heading::before { content: ""; position: absolute; top: 0; left: calc(50% - 18px); width: 36px; height: 2px; background: currentColor; }
body.home .heading-en { display: block; font-family: var(--serif); font-size: clamp(2.25rem, 3.5vw, 3rem); font-weight: 400; letter-spacing: .045em; line-height: 1.25; }
body.home .heading-ja { display: block; margin-top: 12px; font-family: "Yu Gothic", Meiryo, sans-serif; font-size: .875rem; font-weight: 400; letter-spacing: .12em; line-height: 1.8; }
body.home .home-finder { padding: 100px 0 80px; background: none; color: var(--ink); }
body.home .category-tabs { gap: 24px; }
body.home .category-tabs button { font-weight: 500; }
body.home .category-image { background: var(--gray); aspect-ratio: 2.4; }
body.home .category-label { background: none; font-family: var(--serif); font-size: 1rem; min-height: 70px; border-bottom: 1px solid #c8c8c8; padding: 14px 0; }
body.home .category-tabs [aria-selected="true"] .category-label { border-bottom: 2px solid var(--ink); }
body.home .category-tabs [aria-selected="true"]::after { display: none; }
body.home .category-panel { background: none; border-radius: 0; margin-top: 22px; padding: 20px 0 12px; }
body.home .category-panel-title { border-bottom: 1px solid var(--line); padding-bottom: 18px; gap: 20px; }
body.home .category-panel-title h3 { font-family: var(--serif); font-size: 1.3125rem; font-weight: 500; }
body.home .category-panel-title a { font-size: .875rem; font-weight: 400; }
body.home .genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; margin-top: 7px; }
body.home .genre-grid a { border-bottom: 1px solid #ddd; padding: 12px 0; font-size: .875rem; font-weight: 400; gap: 8px; }
body.home .genre-grid a span { font-family: var(--serif); font-size: 1.25rem; color: #555; }
body.home .genre-grid a:nth-last-child(-n+4) { border-bottom: 0; }
body.home .facility-links { margin-top: 28px; gap: 22px; }
body.home .facility-links .button { border: 1px solid #aaa; border-radius: 0; color: var(--ink); background: none; min-height: 58px; padding: 12px 16px; font-size: .9375rem; font-weight: 400; }
body.home .facility-links .button:hover { background: var(--ink); color: white; opacity: 1; }
body.home .home-finder .keyword-form { max-width: 760px; margin-top: 32px; gap: 0; border-bottom: 1px solid #777; }
body.home .keyword-form input { background: transparent; border-radius: 0; font-size: 1rem; padding: 18px 0; }
body.home .keyword-form input::placeholder { color: #737373; }
body.home .keyword-form .button { background: transparent; border: none; color: var(--ink); border-radius: 0; min-width: 80px; font-size: .9375rem; padding: 12px 18px; }
body.home .keyword-form .button:hover { background: #e6e6e6; }
body.home .pr-strip { width: min(1120px, calc(100% - 112px)); margin: 0 auto; padding: 24px 0; background: none; border-block: 1px solid #d5d5d5; }
body.home .pr-label { top: -12px; left: 0; background: var(--paper); border: none; padding: 0 10px 0 0; color: #666; font-size: .75rem; letter-spacing: .08em; }
body.home .pr-strip > div { justify-content: flex-start; overflow-x: auto; gap: 20px; padding-bottom: 8px; }
body.home .banner-box { min-width: 220px; height: 88px; background: #e5e5e5; border: none; color: #666; font-size: .8125rem; font-weight: 400; }

/* Open image-and-text columns with portrait image slots. */
body.home .home-products { padding-block: 100px 90px; }
body.home .cards-grid { gap: 48px 24px; }
body.home .card-image { aspect-ratio: 4 / 5; }
body.home .card-visual { overflow: hidden; }
body.home .new-badge { top: 17px; left: 11px; width: auto; height: auto; outline: 0; border-radius: 0; color: #242424; background: none; font-family: var(--serif); font-size: 1.1875rem; font-weight: 400; letter-spacing: .07em; writing-mode: vertical-rl; line-height: 1.3; }
body.home .card-meta { margin-top: 17px; color: #686868; font-size: .75rem; letter-spacing: .04em; }
body.home .content-card h3 { margin-top: 8px; font-size: 1rem; font-weight: 600; line-height: 1.85; letter-spacing: .03em; }
body.home .card-description { margin-top: 7px; font-size: 1rem; line-height: 1.8; }
body.home .content-card .tags { margin-top: 16px; gap: 4px 11px; max-height: none; overflow: visible; }
body.home .content-card .tag { font-size: .75rem; background: none; padding: 0; color: #555; border-bottom: 1px solid #bbb; }
body.home .card-facilities { margin-top: 11px; font-size: .75rem; color: #666; line-height: 1.7; }
body.home .more-link { margin-top: 50px; }
body.home .more-link .button { position: relative; width: 190px; justify-content: space-between; gap: 30px; padding: 10px 0; border: none; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: none; font-size: .875rem; min-height: 44px; }
body.home .more-link .button::after { content: "→"; font-family: var(--serif); font-size: 1.25rem; }
body.home .home-articles { background: #eee; padding: 86px 0 80px; }
body.home .home-articles .card-image { aspect-ratio: 4 / 5; }
body.home .card-carousel > .arrow { width: 42px; height: 42px; top: 150px; color: var(--ink); background: var(--paper); border: 1px solid #aaa; font-size: 1.75rem; }
body.home .card-carousel > .previous { left: -21px; }
body.home .card-carousel > .next { right: -21px; }
body.home .home-line { padding: 78px 0 60px; background: #e4e4e4; color: var(--ink); }
body.home .line-grid { gap: 42px; align-items: stretch; }
body.home .doctor-mosaic { gap: 7px; min-height: 205px; }
body.home .doctor-mosaic i { background: #bfbdbd; }
body.home .line-promo { padding: 18px 0 0; gap: 22px; border: none; background: none; }
body.home .line-promo p { font-size: 1rem; font-weight: 500; line-height: 1.9; }
body.home .line-pill { border-radius: 0; margin: 22px 0; padding: 10px 12px; white-space: normal; font-size: .875rem; }
body.home .phone-placeholder { width: 80px; min-width: 65px; background: #c8c8c8; border-color: #a0a0a0; box-shadow: inset 0 0 0 7px #eee; }
body.home .line-note { font-size: .75rem; color: #555; margin-top: 30px; }
body.home .footer-topics { padding-block: 56px; }
body.home .footer-topics > div + div { margin-top: 23px; }
body.home .footer-topics h3 { font-family: var(--serif); font-size: 1rem; font-weight: 500; margin-bottom: 5px; }
body.home .footer-topics p { font-size: .75rem; color: #767676; overflow-wrap: anywhere; }
body.home .network-band { background: none; border-top: 1px solid var(--line); padding-block: 36px; }
body.home .network-grid { gap: 14px 22px; }
body.home .network-link { flex: 0 0 calc((100% - 66px) / 4); min-height: 66px; border: none; border-bottom: 1px solid #bbb; background: none; font-family: var(--serif); font-size: 1rem; font-weight: 400; }
body.home .site-footer { background: #171717; color: #fff; padding: 56px 40px 30px; }
body.home .site-footer nav { gap: 12px 24px; font-size: .875rem; }
body.home .site-footer nav a { border: none; padding: 0; }
body.home .footer-utilities { margin-top: 24px; gap: 10px 24px; color: #c7c7c7; font-size: .75rem; }
body.home .site-footer > p { margin-top: 40px; color: #c7c7c7; font-size: .75rem; }
body.home #notice-dialog { border-color: var(--ink); }
body.home #notice-dialog .button { border-radius: 0; }

@media (min-width: 1500px) {
  body.home .home-hero { --hero-width: 1200px; }
  body.home .hero-slide { min-height: 560px; }
}
@media (max-width: 1100px) {
  body.home .header-top { grid-template-columns: 1fr 240px 1fr; gap: 18px; min-height: 122px; padding-inline: 24px; }
  body.home .brand { width: 240px; }
  body.home .header-links { font-size: .8125rem; gap: 6px 16px; }
  body.home .header-utilities { font-size: .8125rem; gap: 12px; }
  body.home .header-utilities > button:first-child { display: block; }
  body.home .site-nav { gap: 16px 22px; font-size: .9375rem; padding: 26px 40px 34px; }
  body.home .container { width: calc(100% - 80px); }
  body.home .home-hero { --hero-width: calc(100vw - 128px); }
  body.home .hero-slide { min-height: 400px; padding: 38px; }
  body.home .category-tabs { gap: 15px; }
  body.home .category-label { font-size: .875rem; min-height: 72px; }
  body.home .genre-grid { column-gap: 20px; }
  body.home .cards-grid { gap: 42px 20px; }
  body.home .pr-strip { width: calc(100% - 80px); }
  body.home .line-grid { gap: 28px; }
}
@media (max-width: 800px) {
  body.home .header-top { grid-template-columns: 1fr 224px 1fr; padding-inline: 22px; gap: 12px; min-height: 114px; }
  body.home .brand { width: 224px; }
  body.home .header-links { flex-direction: column; gap: 4px; align-items: flex-start; font-size: .75rem; }
  body.home .header-utilities { flex-wrap: wrap; gap: 0 14px; font-size: .75rem; }
  body.home .header-search { flex-basis: 36px; }
  body.home .container { width: calc(100% - 48px); }
  body.home .hero-slide { min-height: 350px; padding: 32px; }
  body.home .hero-slide h2 { font-size: 1.5rem; }
  body.home .home-finder { padding-top: 76px; }
  body.home .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .genre-grid a:nth-last-child(-n+4) { border-bottom: 1px solid #ddd; }
  body.home .genre-grid a:nth-last-child(-n+2) { border-bottom: 0; }
  body.home .facility-links { gap: 12px; }
  body.home .facility-links .button { font-size: .875rem; padding: 12px 8px; }
  body.home .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 24px; }
  body.home .home-products { padding-block: 76px; }
  body.home .home-articles { padding-block: 70px; }
  body.home .card-carousel > .arrow { top: 155px; }
  body.home .card-carousel > .previous { left: -16px; }
  body.home .card-carousel > .next { right: -16px; }
  body.home .line-grid { grid-template-columns: 1fr; max-width: 560px; margin: auto; }
  body.home .doctor-mosaic { min-height: 180px; }
  body.home .line-promo { padding-top: 0; }
  body.home .pr-strip { width: calc(100% - 48px); }
}
@media (max-width: 600px) {
  body.home .header-top { grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; min-height: 100px; padding: 17px 18px 9px; gap: 10px; }
  body.home .brand { width: min(224px, 100%); margin: 0 auto; }
  body.home .header-links { display: none; }
  body.home .header-utilities { padding: 0; display: flex; justify-content: flex-end; }
  body.home .header-utilities > button.utility-box { display: none; }
  body.home .header-utilities > a.header-search { display: flex; width: 40px; height: 44px; margin: 0; }
  body.home .mobile-menu { display: flex; grid-column: 1; grid-row: 1; flex-direction: column-reverse; align-items: center; gap: 1px; padding: 0; font-size: .75rem; color: var(--ink); }
  body.home .mobile-menu span { font-size: 1.375rem; line-height: 1; }
  body.home .brand-copy { padding: 8px 20px 0; }
  body.home .brand-copy p { font-size: .75rem; line-height: 1.7; letter-spacing: 0; }
  body.home .audiences { gap: 3px 12px; margin-top: 6px; }
  body.home .audiences small { flex-basis: 100%; }
  body.home .site-nav { display: none; margin: 22px 20px 0; padding: 4px 0; border-block: 1px solid #bbb; }
  body.home .site-nav.is-open { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  body.home .site-nav a { font-family: inherit; font-size: .9375rem; border-bottom: 1px solid #ddd; padding: 12px 4px; }
  body.home .site-nav a:last-child { border: 0; }
  body.home .home-hero { --hero-width: calc(100vw - 40px); margin-top: 28px; padding-bottom: 56px; }
  body.home .hero-slide { min-height: 380px; padding: 26px 24px; }
  body.home .hero-slide h2 { font-size: 1.375rem; letter-spacing: .045em; line-height: 1.85; }
  body.home .hero-kicker { font-size: .875rem; margin-bottom: 14px; }
  body.home .carousel-dots { top: auto; bottom: 2px; left: 40px; right: 40px; flex-direction: row; justify-content: center; }
  body.home .carousel-dots button { width: 34px; height: 44px; font-size: .8125rem; }
  body.home .home-hero > .arrow { top: auto; bottom: 2px; font-size: .8125rem; }
  body.home .home-hero > .previous { left: -3px; }
  body.home .home-hero > .next { left: auto; right: -3px; }
  body.home .container { width: calc(100% - 40px); }
  body.home .home-finder { padding: 58px 0 52px; }
  body.home .editorial-heading { margin-bottom: 30px; padding-top: 22px; }
  body.home .heading-en { font-size: 2.25rem; }
  body.home .heading-ja { font-size: .875rem; margin-top: 10px; }
  body.home .category-tabs { display: flex; gap: 17px; overflow-x: auto; padding: 0 0 10px; scroll-snap-type: x proximity; }
  body.home .category-tabs button { flex: 0 0 134px; scroll-snap-align: start; }
  body.home .category-image { aspect-ratio: 2; }
  body.home .category-label { min-height: 62px; font-size: .875rem; padding: 12px 0; line-height: 1.7; }
  body.home .category-panel { margin-top: 14px; padding-top: 8px; }
  body.home .category-panel-title { padding-bottom: 14px; gap: 10px; align-items: center; }
  body.home .category-panel-title h3 { font-size: 1.125rem; }
  body.home .category-panel-title a { font-size: .8125rem; flex-shrink: 0; }
  body.home .genre-grid { column-gap: 18px; }
  body.home .genre-grid a { font-size: .875rem; padding-block: 11px; }
  body.home .facility-links { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  body.home .facility-links .button { min-height: 48px; font-size: .9375rem; }
  body.home .home-finder .keyword-form { margin-top: 22px; }
  body.home .keyword-form input { font-size: .875rem; padding-block: 16px; }
  body.home .keyword-form .button { min-width: 54px; padding-inline: 8px; font-size: .875rem; }
  body.home .pr-strip { width: calc(100% - 40px); padding-block: 19px; }
  body.home .banner-box { min-width: 192px; height: 76px; }
  body.home .home-products { padding-block: 62px; }
  body.home .cards-grid { gap: 34px 18px; }
  body.home .card-meta { font-size: .75rem; margin-top: 12px; }
  body.home .content-card h3 { font-size: 1rem; line-height: 1.8; margin-top: 5px; letter-spacing: 0; }
  body.home .card-description { font-size: .9375rem; line-height: 1.8; }
  body.home .new-badge { font-size: 1rem; left: 9px; top: 12px; }
  body.home .content-card .tags { margin-top: 10px; gap: 5px 8px; }
  body.home .more-link { margin-top: 34px; }
  body.home .home-articles { padding-block: 58px; }
  body.home .card-carousel > .arrow { top: 74px; width: 36px; height: 40px; }
  body.home .card-carousel > .previous { left: -12px; }
  body.home .card-carousel > .next { right: -12px; }
  body.home .home-line { padding-block: 45px 36px; }
  body.home .line-grid { gap: 24px; }
  body.home .doctor-mosaic { min-height: 136px; gap: 5px; }
  body.home .line-promo { gap: 12px; }
  body.home .line-promo p { font-size: .9375rem; }
  body.home .line-promo p br { display: none; }
  body.home .phone-placeholder { width: 62px; min-width: 48px; }
  body.home .line-pill { font-size: .8125rem; padding: 10px; margin-block: 18px; }
  body.home .line-note { font-size: .75rem; margin-top: 20px; }
  body.home .footer-topics { padding-block: 36px; }
  body.home .network-grid { gap: 10px 20px; }
  body.home .network-link { flex-basis: calc((100% - 20px) / 2); min-height: 52px; padding: 10px 0; font-size: .9375rem; }
  body.home .site-footer { padding: 38px 22px 24px; }
  body.home .site-footer nav { gap: 12px 18px; font-size: .8125rem; }
  body.home .footer-utilities { gap: 12px 20px; font-size: .75rem; }
  body.home .site-footer > p { font-size: .75rem; margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home :is(a, button, .hero-track) { transition: none; }
}
