.top-hero {
  position: relative;
  height: 920px;
  overflow: hidden;
  background: var(--color-bg);
}

.top-hero__background {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  object-fit: fill;
  pointer-events: none;
}

.top-hero__slide {
  position: absolute;
  right: 0px;
  bottom: 64px;
  z-index: 1;
  width: 70vw;
  height: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s linear 0.8s;
}

.top-hero__slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
}

.top-hero__link {
  display: block;
  width: 100%;
  height: 100%;
}

.top-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-hero__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.top-hero__shape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.top-hero__shape::before {
  display: none;
}

.top-hero__shape::after {
  display: none;
}

.top-hero__copy {
  position: absolute;
  left: 160px;
  bottom: 80px;
  z-index: 3;
  width: 542px;
}

.top-hero__copy img {
  width: 100%;
  height: auto;
}

.top-hero__indicator {
  position: absolute;
  right: 16px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.top-hero__indicator button {
  width: 64px;
  height: 4px;
  padding: 0;
  border: 0;
  background: var(--color-navy-light);
  cursor: pointer;
}

.top-hero__indicator button.is-active {
  background: var(--color-primary);
}

.top-hero__scroll {
  position: absolute;
  left: 64px;
  bottom: 32px;
  z-index: 4;
  display: block;
  width: 14px;
  height: 160px;
}

.top-hero__scroll::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 160px;
  background: #fff;
  content: "";
}

.top-hero__scroll span {
  position: absolute;
  left: 10px;
  top: -10px;
  display: grid;
  place-items: center;
  width: 12px;
  height: 62px;
  line-height: 0;
  transform: rotate(90deg);
  transform-origin: center;
}

.top-hero__scroll span img {
  display: block;
  width: 62px;
  max-width: none;
  height: 12px;
}

.top-hero__scroll i {
  position: absolute;
  left: -2px;
  top: 72px;
  width: 6px;
  height: 64px;
  border-radius: 5px;
  background: #fff;
  animation: top-scroll-guide 3s ease-in-out infinite;
}

@keyframes top-scroll-guide {
  0%, 100% {
    transform: translateY(-18px);
  }
  50% {
    transform: translateY(18px);
  }
}

.top-bg-word {
  position: absolute;
  z-index: 0;
  margin: 0;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 160px;
  font-weight: 800;
  line-height: 0.9;
  opacity: 0.5;
  white-space: nowrap;
  pointer-events: none;
}

.top-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2n);
}

.top-section-head h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
}

.top-section-head::after {
  display: block;
  width: 412px;
  height: 4px;
  background: linear-gradient(to right, var(--color-navy-dark) 0 292px, var(--color-primary) 292px 100%);
  content: "";
}

/* Keep a phrase together so a heading breaks before it instead of orphaning its last word. */
.top-section-head__nowrap {
  display: inline-block;
}

.top-section-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

.top-more-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 368px;
  max-width: 100%;
  min-height: 64px;
  padding: 16px 24px 16px 40px;
  border: 3px solid var(--color-navy-dark);
  border-radius: 40px;
  background: var(--color-navy-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.top-more-button::before {
  position: absolute;
  top: -30%;
  left: -60%;
  width: 36%;
  height: 160%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.02) 62%, transparent 100%);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
}

.top-more-button span {
  min-width: 0;
  word-break: break-word;
}

.top-more-button img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: 24px;
  max-width: none;
  transition: transform 0.2s ease;
}

.top-more-button:hover,
.top-more-button:focus-visible {
  background: var(--color-navy-dark);
}

.top-more-button:hover::before,
.top-more-button:focus-visible::before {
  animation: top-button-shine 0.7s ease-out forwards;
}

.top-more-button:hover img,
.top-more-button:focus-visible img {
  transform: translateX(4px);
}

@keyframes top-button-shine {
  from {
    left: -60%;
  }
  to {
    left: 125%;
  }
}

.top-medical {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 548px;
  gap: var(--sp-8n);
  padding: var(--sp-15n) var(--sp-8n);
  overflow: hidden;
  background: var(--color-bg);
}

.top-medical .top-bg-word {
  left: 64px;
  top: 64px;
}

.top-medical__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4n);
  max-width: 1160px;
}

.top-medical__image {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 548px;
  height: 752px;
  margin: 0;
  overflow: hidden;
}

.top-medical__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4n);
}

.top-category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  color: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.top-category-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.top-category-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: background-color 0.25s ease;
}

.top-category-card:hover,
.top-category-card:focus-visible {
  box-shadow: 0 12px 28px rgba(19, 42, 70, 0.22);
  transform: translateY(-4px);
}

.top-category-card:hover > img,
.top-category-card:focus-visible > img {
  transform: scale(1.04);
}

.top-category-card:hover .top-category-card__overlay,
.top-category-card:focus-visible .top-category-card__overlay {
  background: rgba(0, 0, 0, 0.5);
}

.top-category-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 40px 24px 24px;
}

.top-category-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.top-category-card em {
  width: 120px;
  height: 2px;
  margin: 8px 0;
  background: #fff;
  font-style: normal;
}

.top-category-card span span {
  font-size: 14px;
  line-height: 1.5;
}

.top-category-card b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
  margin-top: auto;
  font-size: 14px;
  line-height: 1.5;
}

.top-category-card b img {
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
}

.top-category-card:hover b img,
.top-category-card:focus-visible b img {
  transform: translateX(4px);
}

.top-medical__tools {
  display: flex;
  gap: var(--sp-4n);
  align-items: flex-start;
}

.top-search-box {
  width: 552px;
  padding: 24px;
  background: #fff;
}

.top-search-box p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 2;
}

.top-search-box form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}

.top-search-box input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 4px 14px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font: inherit;
}

.top-search-box button {
  min-width: 82px;
  border: 0;
  border-radius: 2px;
  background: var(--color-navy-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.medical-catalog-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 424px;
  height: 144px;
  padding: 16px 20px;
  overflow: hidden;
  border: 1px solid var(--color-primary);
  background: #fff var(--catalog-background) right center / cover no-repeat;
  color: var(--color-text);
  transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.medical-catalog-banner:hover,
.medical-catalog-banner:focus-visible {
  box-shadow: 0 12px 28px rgba(19, 42, 70, 0.18);
  filter: brightness(1.03);
  transform: translateY(-4px);
}

.medical-catalog-banner > * {
  position: relative;
  z-index: 1;
}

.medical-catalog-banner__eyebrow {
  color: var(--color-primary);
  font: 700 10px/1.2 Roboto, sans-serif;
  letter-spacing: 0.1em;
}

.medical-catalog-banner strong {
  margin-top: 4px;
  color: var(--color-primary);
  font-size: 26px;
  line-height: 1.2;
}

.medical-catalog-banner__text {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.medical-catalog-banner__more {
  align-self: flex-start;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid var(--color-navy-dark);
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.medical-catalog-banner:hover .medical-catalog-banner__more,
.medical-catalog-banner:focus-visible .medical-catalog-banner__more {
  border-color: var(--color-navy-dark);
  background: var(--color-navy-dark);
  color: #fff;
  transform: translateX(4px);
}

.top-resource-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border-left: 4px solid var(--color-primary);
  background: #fff url("../assets/img/banner-oyakudachi.png") right center / auto 100% no-repeat;
  color: var(--color-navy-dark);
  transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.top-resource-banner:hover,
.top-resource-banner:focus-visible {
  box-shadow: 0 12px 28px rgba(19, 42, 70, 0.18);
  filter: brightness(1.03);
  transform: translateY(-4px);
}

.top-resource-banner > * {
  position: relative;
  z-index: 1;
}

.top-resource-banner__eyebrow {
  color: var(--color-primary);
  font: 700 10px/1.2 Roboto, sans-serif;
  letter-spacing: 0.12em;
}

.top-resource-banner strong {
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.25;
}

.top-resource-banner__text {
  width: 72%;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
}

.top-resource-banner__more {
  align-self: flex-end;
  margin-top: 5px;
  padding: 4px 10px;
  border: 1px solid var(--color-navy-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.top-resource-banner:hover .top-resource-banner__more,
.top-resource-banner:focus-visible .top-resource-banner__more {
  border-color: var(--color-navy-dark);
  background: var(--color-navy-dark);
  color: #fff;
  transform: translateX(4px);
}

.top-resource-banner__more b {
  margin-left: 4px;
  font-size: 14px;
}

.top-general {
  position: relative;
  padding: var(--sp-20n) var(--sp-8n) var(--sp-15n);
  overflow: hidden;
  background: var(--color-border);
}

.top-general .top-bg-word {
  left: 64px;
  top: 64px;
  color: var(--color-bg);
}

.top-general__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 728px 880px;
  gap: var(--sp-4n);
  padding-right: var(--sp-19n);
}

.top-general__intro {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3n);
  padding-top: 0;
}

.top-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 272px);
  gap: var(--sp-4n);
  align-items: start;
  width: 880px;
}

.top-product-card {
  display: flex;
  flex-direction: column;
  width: 272px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.top-product-card:hover,
.top-product-card:focus-visible {
  box-shadow: 0 12px 28px rgba(19, 42, 70, 0.18);
  transform: translateY(-4px);
}

.top-product-card > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 272 / 181;
  overflow: hidden;
  margin: 0;
  background: #fff;
}

.top-product-card > span img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.top-product-card:hover > span img,
.top-product-card:focus-visible > span img {
  transform: scale(1.04);
}

.top-product-card strong {
  position: relative;
  display: block;
  margin: 0 16px;
  padding: 16px 0 11px;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-navy-dark);
  font-size: 16px;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.top-product-card:hover strong,
.top-product-card:focus-visible strong {
  color: var(--color-primary);
}

.top-product-card em {
  display: block;
  min-height: 42px;
  margin: 0;
  padding: 7px 16px 0;
  color: #6b6d75;
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.top-product-card b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
  margin: 8px 16px 16px 0;
  color: var(--color-navy);
  font-size: 14px;
  line-height: 1.5;
}

.top-product-card b img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(63%) sepia(91%) saturate(1023%) hue-rotate(359deg) brightness(101%) contrast(102%);
  transition: transform 0.25s ease;
}

.top-product-card:hover b img,
.top-product-card:focus-visible b img {
  transform: translateX(4px);
}

.top-general__resources {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 424px 424px;
  gap: var(--sp-4n);
  width: 880px;
}

.top-general-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 424px;
  padding: 24px;
  background: #fff;
}

.top-general-search p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

.top-general-search form {
  display: flex;
  gap: 12px;
  width: 368px;
  max-width: 100%;
}

.top-general-search input {
  min-width: 0;
  flex: 1 1 auto;
  height: 40px;
  padding: 4px 14px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font: inherit;
}

.top-general-search button {
  flex: 0 0 auto;
  min-width: 66px;
  padding: 4px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.top-catalog-banner--general {
  align-self: start;
  width: 424px;
  max-width: 100%;
}

.top-news {
  position: relative;
  display: grid;
  grid-template-columns: minmax(min(100%, 640px), 1fr) minmax(0, 760px);
  min-height: 760px;
  overflow: hidden;
  background: var(--color-border);
}

.top-news::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(245, 245, 243, 0.98) 0%, rgba(245, 245, 243, 0.96) 42%, rgba(245, 245, 243, 0.5) 55%, rgba(245, 245, 243, 0) 72%);
  content: "";
  pointer-events: none;
}

.top-news .top-bg-word {
  left: -9px;
  top: 110px;
  color: var(--color-border);
  opacity: 0.5;
  line-height: 1.3;
}

.top-news__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 120px 64px;
}

.top-news__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
}

.top-news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.top-news-list {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-news-list a {
  display: grid;
  grid-template-columns: 132px 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 56px;
  padding-bottom: 16px;
  padding-top: 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
  line-height: 2;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.top-news-list a:hover,
.top-news-list a:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(19, 42, 70, 0.1);
  transform: translateX(4px);
}

.top-news-list time {
  color: #6b6d75;
}

.top-news-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 32px;
  background: #08bdb8; /* カテゴリカラー未設定時（ニュース一覧と同じ）。設定済みならインラインで上書き */
  color: #fff;
  font-size: 16px;
  line-height: 2;
}


.top-news-list p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  transition: color 0.25s ease;
}

.top-news-list a:hover p,
.top-news-list a:focus-visible p {
  color: var(--color-primary);
}

.top-about {
  position: relative;
  padding: 120px 64px;
  overflow: hidden;
  background: var(--color-border);
}

.top-about .top-bg-word {
  left: 64px;
  top: 64px;
  color: var(--color-bg);
  line-height: 1.3;
  opacity: 0.5;
}

.top-about .top-bg-word--secondary {
  left: 64px;
  top: 90px;
  color: var(--color-border);
  opacity: 0.4;
}

.top-about__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 880px;
}

.top-about .top-section-head {
  gap: 16px;
  margin-bottom: 64px;
}

.top-about .top-section-head::after {
  order: 2;
  width: 412px;
  height: 4px;
  background: linear-gradient(to right, var(--color-navy-dark) 0 292px, var(--color-primary) 292px 100%);
}

.top-about .top-section-head p {
  display: none;
}

.top-about .top-section-head h2 {
  order: 1;
}

.top-about .top-section-lead {
  width: 921px;
  max-width: 100%;
  margin-bottom: 40px;
}

.top-about .top-more-button {
  display: none;
}

.top-about__tagline {
  width: 760px;
  max-width: 100%;
  margin-bottom: 40px;
}

.top-about-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 244px);
  gap: 28px 29px;
  width: 880px;
  max-width: 100%;
}

.top-about-link-grid a {
  position: relative;
  min-height: 108px;
  padding: 3px;
  overflow: hidden;
  color: var(--color-navy-dark);
}

.top-about-link-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-about-link-card {
  isolation: isolate;
  background-color: #c8c6c1;
  background-position: center;
  background-size: cover;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.top-about-link-card:hover,
.top-about-link-card:focus-visible {
  background-color: #b9b7b1;
  box-shadow: 0 10px 24px rgba(19, 42, 70, 0.16);
  transform: translateY(-4px);
}

.top-about-link-card::before {
  content: none;
}

.top-about-link-card--company { background-image: url("../assets/img/about-card-company.jpeg"); }
.top-about-link-card--message { background-image: url("../assets/img/about-card-message.jpeg"); }
.top-about-link-card--business { background-image: url("../assets/img/about-card-business.jpeg"); }
.top-about-link-card--history { background-image: url("../assets/img/about-card-history.jpeg"); }
.top-about-link-card--office { background-image: url("../assets/img/about-card-office.jpeg"); }

.top-about-link-card__body {
  filter: none;
  z-index: 1;
}

.top-about-link-card__body {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  min-height: 59px;
  padding: 16px;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  transition: color 0.25s ease;
}

.top-about-link-card:hover .top-about-link-card__body,
.top-about-link-card:focus-visible .top-about-link-card__body {
  color: var(--color-primary);
}

.top-about-link-card__body > span {
  line-height: 1.3;
}

.top-about-link-card__sub {
  font-size: 14px;
}

.top-about-link-card__body img {
  position: absolute;
  object-fit: fill;
  right: 16px;
  bottom: 14px;
  left: auto;
  width: 75px;
  height: 10px;
  max-width: none;
  transition: transform 0.25s ease;
}

.top-about-link-card:hover .top-about-link-card__body img,
.top-about-link-card:focus-visible .top-about-link-card__body img {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .medical-catalog-banner,
  .medical-catalog-banner__more,
  .top-resource-banner,
  .top-resource-banner__more,
  .top-category-card,
  .top-category-card > img,
  .top-category-card__overlay,
  .top-category-card b img,
  .top-product-card,
  .top-product-card > span img,
  .top-product-card strong,
  .top-product-card b img,
  .top-news-list a,
  .top-news-list p,
  .top-about-link-card,
  .top-about-link-card__body,
  .top-about-link-card__body img {
    transition: none;
  }
}

.top-about__photos {
  position: absolute;
  right: 0;
  top: -19px;
  width: 674px;
}

.top-about__photos img {
  width: 100%;
  height: auto;
  max-width: none;
}

@media (max-width: 1500px) {
  .top-hero {
    height: 760px;
  }

  .top-hero__slide {
    left: 455px;
    top: 45px;
    width: 1045px;
    height: 593px;
  }

  .top-hero__copy {
    left: 80px;
    top: 290px;
    width: 430px;
  }

  .top-hero__indicator {
    right: 40px;
    bottom: 64px;
  }

  .top-hero__scroll {
    left: 40px;
    bottom: 48px;
  }

  .top-bg-word {
    font-size: 118px;
  }

  .top-medical,
  .top-general,
  .top-news__body,
  .top-about {
    padding-right: var(--sp-8n);
    padding-left: var(--sp-8n);
  }

  .top-medical {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: var(--sp-5n);
  }

  .top-medical__image {
    width: 420px;
    height: 640px;
  }

  .top-medical__tools {
    flex-wrap: wrap;
  }

  .top-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .top-general__inner {
    grid-template-columns: 420px minmax(0, 1fr);
    gap: var(--sp-5n);
    padding-right: 0;
  }

  .top-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .top-product-card {
    width: auto;
  }

  .top-general__resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .top-general-search,
  .top-catalog-banner--general {
    width: auto;
  }

  .top-news {
    grid-template-columns: minmax(min(100%, 640px), 1fr) minmax(0, 520px);
  }

  .top-about__content {
    width: 760px;
  }

  .top-about-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 760px;
  }

  .top-about__photos {
    right: 40px;
    width: 520px;
  }

  .top-about__photos img {
    width: 520px;
  }
}

/* Keep the hero copy inside the visible small viewport, including browser UI. */
/* Keep the hero copy inside the visible desktop viewport. */
@media (min-width: 768px) {
  .top-hero {
    height: calc(100vh - 96px);
    height: calc(100svh - 96px);
  }
}

.top-hero__copy {
  top: auto;
  bottom: clamp(72px, 15svh, 200px);
  width: min(800px, 35vw);
}

@media (min-width: 1501px) {
  .top-hero__indicator {
    /* Slide bottom: 64px - indicator height: 4px - gap: 16px. */
    bottom: 44px;
  }
}

@media (max-width: 1500px) {
  .top-hero__slide {
    top: auto;
    right: 0;
    bottom: 64px;
    left: auto;
    width: min(80vw, 1400px);
    height: auto;

    img {
      object-position: left top;
    }
  }

  .top-hero__indicator {
    bottom: 44px;
  }
}

@media (min-width: 1501px) and (max-width: 1700px) {
  .top-general__inner {
    grid-template-columns: minmax(0, 728px) minmax(0, 1fr);
    padding-right: 0;
  }

  .top-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .top-product-card {
    width: auto;
  }

  .top-general__resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .top-general-search,
  .top-catalog-banner--general {
    width: auto;
  }
}

@media (min-width: 1501px) {
  .top-general__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    padding-right: 0;
  }

  .top-general__intro,
  .top-product-grid,
  .top-general__resources {
    min-width: 0;
  }

  .top-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .top-product-card {
    width: auto;
  }

  .top-general__resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .top-general-search,
  .top-catalog-banner--general {
    width: auto;
  }
}

/* Figma-aligned healthcare section layout. */
.top-medical {
  display: block;
  min-height: 992px;
}

.top-medical__content {
  width: min(1160px, 100%);
  max-width: 1160px;
}

.top-medical__image {
  position: absolute;
  top: 91px;
  right: var(--sp-8n);
  z-index: 0;
  align-self: auto;
  width: 548px;
  height: 752px;
}

.top-medical .top-bg-word {
  z-index: 1;
}

.top-medical__content {
  z-index: 2;
}

.top-medical__image img {
  position: absolute;
  top: 0;
  left: -83.15%;
  width: 212.98%;
  max-width: none;
  height: 103.4%;
  object-fit: fill;
}

.top-category-grid {
  grid-template-columns: repeat(4, minmax(0, 272px));
  gap: 8px;
  justify-content: start;
}

@media (max-width: 1500px) {
  .top-medical {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: var(--sp-5n);
  }

  .top-medical__content {
    width: auto;
  }

  .top-medical__image {
    position: relative;
    top: auto;
    right: auto;
  }

  .top-medical__image img {
    position: static;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .top-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .top-hero {
    /* 正方形のスライド画像（高さ＝画面幅）＋その下のキャッチコピー分。393px幅で640px。 */
    height: calc(100vw + 247px);
    min-height: 560px;
    background: var(--color-primary, #f6ab00);
  }

  .top-hero__background {
    display: none;
  }

  /* 英語版はヒーローにキャッチコピーが無いので、その分の高さを詰める（SCROLL表示80px＋余白の分だけ残す）。 */
  .top-hero--en {
    height: calc(100vw + 112px);
    min-height: 0;
  }

  .top-hero__slide {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .top-hero__link,
  .top-hero__slide picture {
    height: auto;
  }

  .top-hero__slide picture,
  .top-hero__slide img {
    border-radius: 0;
    object-position: center;
  }

  .top-hero__slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
  }

  .top-hero__copy {
    left: 24px;
    /* スライド画像（正方形＝高さが画面幅）の直下から開始する。 */
    top: calc(100vw + 16px);
    bottom: auto;
    width: calc(100% - 48px);
    max-width: 390px;
  }

  .top-hero__indicator {
    right: 16px;
    bottom: 28px;
    gap: 4px;
  }

  .top-hero__indicator button {
    width: 28px;
    height: 3px;
  }

  /* 背景がプライマリ（イエロー）なので、現在位置は白にして見えるようにする。 */
  .top-hero__indicator button.is-active {
    background: #fff;
  }

  .top-hero__scroll {
    left: 16px;
    bottom: 16px;
    height: 80px;
  }

  .top-hero__scroll::before {
    height: 80px;
  }

  .top-hero__scroll span {
    top: -2px;
    transform: rotate(90deg) scale(0.75);
  }

  .top-hero__scroll i {
    top: 42px;
    height: 30px;
  }

  .top-bg-word {
    font-size: clamp(48px, 16vw, 72px);
    line-height: 0.9;
  }

  .top-section-head {
    gap: 10px;
  }

  .top-section-head h2 {
    font-size: 26px;
    line-height: 1.4;
  }

  .top-section-head::after,
  .top-about .top-section-head::after {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--color-navy-dark) 0 72%, var(--color-primary) 72% 100%);
  }

  .top-section-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .top-section-lead br {
    display: none;
  }

  .top-more-button {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px 12px 24px;
    border-width: 2px;
    font-size: 14px;
  }

  .top-more-button img {
    width: 20px;
    height: 20px;
    margin-left: 16px;
  }

  .top-medical,
  .top-general,
  .top-news,
  .top-about {
    min-height: 0;
    padding: 72px 24px;
  }

  .top-medical {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .top-medical .top-bg-word,
  .top-general .top-bg-word,
  .top-about .top-bg-word,
  .top-about .top-bg-word--secondary {
    left: 24px;
  }

  .top-medical .top-bg-word,
  .top-general .top-bg-word {
    top: 24px;
  }

  .top-medical__content {
    width: 100%;
    gap: 24px;
  }

  .top-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .top-category-card,
  .top-category-card__body {
    min-height: 190px;
  }

  .top-category-card__body {
    padding: 24px 14px 14px;
  }

  .top-category-card strong {
    font-size: 16px;
  }

  .top-category-card em {
    width: 72px;
    margin: 7px 0;
  }

  .top-category-card span span,
  .top-category-card b {
    font-size: 14px;
  }

  .top-category-card b img {
    width: 18px;
    height: 18px;
  }

  .top-medical__tools {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .top-search-box,
  .top-catalog-banner {
    width: 100%;
  }

  .top-search-box {
    padding: 20px 16px;
  }

  .top-search-box p,
  .top-general-search p {
    font-size: 14px;
    line-height: 1.7;
  }

  .top-search-box form,
  .top-general-search form {
    gap: 8px;
  }

  .top-search-box input,
  .top-general-search input {
    font-size: 14px;
  }

  .top-search-box button,
  .top-general-search button {
    min-width: 64px;
    padding: 4px 14px;
    font-size: 14px;
  }

  .top-catalog-banner {
    height: auto;
    aspect-ratio: 424 / 144;
  }

  .top-medical__image {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    width: calc(100% + 48px);
    height: 230px;
    margin: 40px -24px -72px;
  }

  .top-medical__image img {
    position: static;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .top-general__inner {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .top-general__intro {
    gap: 20px;
    min-width: 0;
    padding: 0;
  }

  .top-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin-top: 32px;
  }

  .top-product-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    width: 100%;
    min-width: 0;
    min-height: 150px;
    box-sizing: border-box;
  }

  .top-product-card > span {
    grid-row: 1 / 4;
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto;
  }

  .top-product-card strong {
    min-width: 0;
    margin: 0 14px;
    padding: 16px 0 9px;
    font-size: 15px;
  }

  .top-product-card em {
    min-width: 0;
    min-height: 0;
    padding: 7px 14px 0;
    font-size: 14px;
  }

  .top-product-card b {
    justify-self: end;
    margin: 8px 12px 12px 0;
    font-size: 14px;
  }

  .top-product-card b img {
    width: 18px;
    height: 18px;
  }

  .top-general__resources {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 0;
  }

  .top-general-search,
  .top-catalog-banner--general {
    width: 100%;
    min-width: 0;
  }

  .top-general-search form {
    width: 100%;
  }

  .top-resource-banner__text {
    width: 100%;
    padding-right: 24%;
    box-sizing: border-box;
  }

  .top-general-search {
    box-sizing: border-box;
    gap: 10px;
    padding: 20px 16px;
  }

  .top-catalog-banner--general {
    box-sizing: border-box;
  }

  .top-news {
    display: block;
    background: var(--color-bg);
  }

  .top-news::before {
    background: rgba(245, 245, 243, 0.92);
  }

  .top-news .top-bg-word {
    left: 24px;
    top: 24px;
    line-height: 0.9;
  }

  .top-news__body {
    gap: 24px;
    padding: 0;
  }

  .top-news-list a {
    grid-template-columns: auto minmax(76px, 92px);
    gap: 8px 12px;
    min-height: 0;
    padding: 14px 0;
    font-size: 14px;
    line-height: 1.6;
  }

  .top-news-list span {
    justify-self: end;
    width: 100%;
    height: 26px;
    font-size: 14px;
    line-height: 1;
  }

  .top-news-list p {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .top-news__image {
    opacity: 0.2;
  }

  .top-about {
    padding-bottom: 64px;
  }

  .top-about .top-bg-word {
    top: 24px;
  }

  .top-about .top-bg-word--secondary {
    top: 38px;
  }

  .top-about__content {
    width: 100%;
  }

  .top-about .top-section-head {
    gap: 10px;
    margin-bottom: 32px;
  }

  .top-about__tagline {
    width: 100%;
    margin-bottom: 24px;
  }

  .top-about .top-section-lead {
    width: 100%;
    margin-bottom: 32px;
  }

  .top-about-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .top-about-link-grid a {
    min-height: 112px;
  }

  .top-about-link-card__body {
    min-height: 54px;
    padding: 13px 12px;
    font-size: 14px;
  }

  .top-about-link-card__body img {
    right: 10px;
    bottom: 10px;
    left: auto;
    width: 48px;
    height: auto;
  }

  .top-about__photos {
    display: none;
  }
}

@media (max-width: 390px) {
  .top-section-head h2 {
    font-size: 23px;
  }

  .top-category-grid,
  .top-about-link-grid {
    grid-template-columns: 1fr;
  }

  .top-category-card,
  .top-category-card__body {
    min-height: 168px;
  }

  .top-product-card {
    grid-template-columns: 40% minmax(0, 1fr);
  }
}

/* 2026-10-05 narrow-tall hero and tablet navigation fix */
@media (min-width: 768px) and (max-width: 1500px) and (max-aspect-ratio: 3 / 2) {
  .top-hero {
    height: clamp(600px, calc(45.5vw + 64px), 760px);
  }
}
/* 2026-10-05 desktop hero top alignment */
@media (min-width: 768px) {
  .top-hero__slide {
    top: 0;
    bottom: auto;
  }
}

/* Mobile and small tablet: total-catalog and useful-info banners share one height, and the text sits on a white fade so it never fights the photo. */
@media (max-width: 767px) {
  .top-catalog-banner,
  .top-catalog-banner--general {
    box-sizing: border-box;
    height: auto;
    min-height: 144px;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .medical-catalog-banner--top {
    background-size: auto 100%;
    background-position: right center;
  }

  .medical-catalog-banner--top::before,
  .top-resource-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.94) 52%, rgba(255, 255, 255, 0) 88%);
  }

  .medical-catalog-banner--top .medical-catalog-banner__text,
  .top-resource-banner__text {
    width: 78%;
    padding-right: 0;
  }
}


/* Tablet (iPad mini etc., 768-1000px): single-column sections closer to the mobile layout. */
@media (min-width: 768px) and (max-width: 1000px) {
  .top-bg-word {
    font-size: 96px;
  }

  .top-section-head h2 {
    font-size: 34px;
  }

  .top-medical,
  .top-general,
  .top-news__body,
  .top-about {
    padding-right: 40px;
    padding-left: 40px;
  }

  .top-medical,
  .top-general {
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .top-medical .top-bg-word,
  .top-general .top-bg-word,
  .top-about .top-bg-word,
  .top-about .top-bg-word--secondary {
    left: 40px;
  }

  .top-medical .top-bg-word,
  .top-general .top-bg-word {
    top: 40px;
  }

  /* Healthcare: one column, 2x2 category cards, photo as a banner below. */
  .top-medical {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .top-medical__content {
    width: 100%;
    max-width: none;
  }

  .top-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .top-category-card,
  .top-category-card__body {
    min-height: 200px;
  }

  /* Search box and catalog banner sit side by side, like the patients section. */
  .top-medical__tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    width: 100%;
  }

  .top-search-box,
  .top-catalog-banner {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
  }

  .top-search-box form {
    width: 100%;
  }

  .medical-catalog-banner--top {
    background-size: auto 100%;
    background-position: right center;
  }

  .top-medical__image {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    width: calc(100% + 80px);
    height: 300px;
    margin: 0 -40px -80px;
  }

  .top-medical__image img {
    position: static;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Patients: heading on top, product cards use the full width. */
  .top-general__inner {
    display: block;
    width: 100%;
    padding: 0;
  }

  .top-general__intro {
    gap: 24px;
  }

  .top-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 40px;
  }

  .top-product-card {
    width: auto;
    min-width: 0;
  }

  .top-product-grid,
  .top-general__resources {
    align-items: stretch;
  }

  .top-catalog-banner--general {
    align-self: stretch;
  }

  .top-general__resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
  }

  .top-general-search,
  .top-catalog-banner--general {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
  }

  .top-general-search form {
    width: 100%;
  }

  /* News: use the full width for titles, lighter background photo. */
  .top-news {
    display: block;
    min-height: 0;
  }

  .top-news::before {
    background: rgba(245, 245, 243, 0.9);
  }

  .top-news__body {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .top-news .top-bg-word {
    left: 40px;
    top: 40px;
    line-height: 0.9;
  }

  .top-news-list a {
    grid-template-columns: 150px 104px minmax(0, 1fr);
    justify-content: start;
    gap: 6px 16px;
    padding: 14px 0;
    font-size: 15px;
    line-height: 1.7;
  }

  .top-news-list time {
    white-space: nowrap;
  }

  .top-news-list p {
    grid-column: 1 / -1;
  }

  .top-news-list span {
    width: 104px;
    height: 28px;
    font-size: 14px;
    line-height: 1;
  }

  /* About: no diagonal photo over the text, smaller tagline, 2-column cards. */
  .top-about {
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .top-about .top-bg-word {
    top: 40px;
  }

  .top-about .top-bg-word--secondary {
    top: 66px;
  }

  .top-about__photos {
    display: none;
  }

  .top-about__content {
    width: 100%;
  }

  .top-about .top-section-head {
    margin-bottom: 40px;
  }

  .top-about .top-section-lead {
    width: 100%;
    margin-bottom: 32px;
  }

  .top-about__tagline {
    width: 70%;
    max-width: 480px;
    margin-bottom: 32px;
  }

  .top-about-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .top-about-link-grid a {
    min-height: 140px;
  }

  .top-about-link-card__body {
    min-height: 56px;
    padding: 14px 16px;
    font-size: 16px;
  }
}

/* Laptop / small desktop (1001-1500px): the healthcare photo becomes a background behind a 70% text column. */
@media (min-width: 1001px) and (max-width: 1500px) {
  .top-medical {
    display: block;
    min-height: 0;
  }

  .top-medical__content {
    width: 70%;
    max-width: none;
  }

  .top-medical__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 0;
    width: 52%;
    height: auto;
    margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
    mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  }

  .top-medical__image img {
    position: static;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
  }

  .top-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .top-medical__tools {
    flex-direction: column;
    gap: 16px;
  }

  .top-search-box,
  .top-catalog-banner {
    box-sizing: border-box;
    width: 100%;
  }
}

@media (min-width: 1251px) and (max-width: 1500px) {
  .top-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .top-medical__tools {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .top-search-box {
    flex: 1 1 360px;
    width: auto;
  }

  .top-catalog-banner {
    flex: 0 1 424px;
    width: auto;
  }
}

/* 1001-1500px: patients section is one column; heading left, product cards an 85% block centered. */
@media (min-width: 1001px) and (max-width: 1500px) {
  .top-general__inner {
    display: block;
    padding: 0;
  }

  .top-general__intro {
    gap: 24px;
  }

  .top-general .top-section-head h2 {
    white-space: nowrap;
  }

  .top-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 85%;
    margin: 48px auto 0;
    align-items: stretch;
  }

  .top-general__resources {
    align-items: stretch;
  }

  .top-catalog-banner--general {
    align-self: stretch;
  }

  .top-product-card {
    width: auto;
    min-width: 0;
  }

  .top-general__resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .top-general-search,
  .top-catalog-banner--general {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
  }

  .top-general-search form {
    width: 100%;
  }
}

/* 1001-1500px: the news list uses the full width; the photo stays faintly behind it. */
@media (min-width: 1001px) and (max-width: 1500px) {
  .top-news {
    display: block;
    min-height: 0;
  }

  .top-news__body {
    max-width: 1040px;
  }

  .top-news::before {
    background: linear-gradient(to right, rgba(245, 245, 243, 0.97) 0%, rgba(245, 245, 243, 0.94) 60%, rgba(245, 245, 243, 0.8) 100%);
  }
}

/* 1501px and wider: keep the news body from getting narrow next to the photo. */
@media (min-width: 1501px) {
  .top-news__body {
    min-width: 1240px;
  }
}

/* Hero slide indicator: the visible bar stays the same, but the tap area is much taller so it no longer hits the slide link underneath. */
.top-hero__indicator {
  gap: 0;
  margin-bottom: -14px;
}

.top-hero__indicator button {
  position: relative;
  width: 72px;
  height: 32px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.top-hero__indicator button::before {
  position: absolute;
  top: 50%;
  left: 0;
  right: 8px;
  height: 4px;
  background: var(--color-navy-light);
  content: "";
  transform: translateY(-50%);
}

.top-hero__indicator button.is-active {
  background: transparent;
}

.top-hero__indicator button.is-active::before {
  background: var(--color-primary);
}

@media (max-width: 767px) {
  .top-hero__indicator {
    margin-bottom: -20px;
  }

  .top-hero__indicator button {
    width: 60px;
    height: 44px;
  }

  .top-hero__indicator button::before {
    right: 4px;
    height: 3px;
  }

  .top-hero__indicator button.is-active {
    background: transparent;
  }

  .top-hero__indicator button.is-active::before {
    background: #fff;
  }
}
