/* Heading hierarchy: one hero H1, section H2s, then item H3s.
   Article links and promotional slides retain their compact title sizes. */
.home-page { --home-heading-size: 24px; --home-item-heading-size: 20px; }
.home-page .hero__inner { background-color: rgba(0, 0, 0, 0.4); }
@media (min-width: 1100px) {
  .home-page { --home-heading-size: 32px; --home-item-heading-size: 22px; }
  .home-page .header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .home-page .header-search-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 999;
  }
}
.home-page :is(.feature__title, .case-gallery__title,
  .brands__title, .services__title, .promise__title, .access__title,
  .sns__title, .contact-cta__title) {
  font-family: inherit;
  font-size: var(--home-heading-size);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: normal;
  color: #333;
}
.home-page .curtain-strengths__title,
.home-page .services--unified .services__card-title,
.home-page .promise__card-title,
.home-page .promise__message-title {
  font-family: inherit;
  font-size: var(--home-item-heading-size);
  font-weight: 700;
  line-height: 1.6;
}
.home-page .home-heading--visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Homepage spacing, emphasis, service listing, and case gallery. */
.home-page .message__lead {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.6;
  text-align: center;
  color: #333;
}
.home-page .message__text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}
@media (max-width: 699px) {
  .home-page .message__lead { font-size: 20px; }
  .home-page .message__text { font-size: 15px; }
}
.home-page a.home-more-button {
  margin: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid #70877f;
  border-radius: 28px;
  background: #f1f5f2;
  color: #334d45;
  box-shadow: 0 2px 4px rgba(38, 60, 50, 0.06);
  text-decoration: none;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.home-page a.home-more-button span { font-family: inherit; }
.home-page a.home-more-button > span:last-child { flex-shrink: 0; }
.home-page a.home-more-button:hover { background: #e7eee9; border-color: #526d62; }
.home-page a.home-more-button:focus-visible { outline: 2px solid #526d62; outline-offset: 4px; }
@media (max-width: 699px) {
  .home-page a.home-more-button { padding: 13px 18px; font-size: 15px; }
}
.home-page .sns__title { margin-bottom: 16px; }
.home-page .sns__intro { margin: 0 0 28px; font-size: 15px; line-height: 1.8; text-align: center; color: #4b584e; }
.home-page .sns__banners { width: 80%; margin-inline: auto; }
.home-page .sns__banner-link { height: auto; }
.home-page .access__title { margin-bottom: 16px; }
.home-page .access__info { max-width: 1000px; margin: 0 auto 28px; padding: 0 20px; text-align: center; color: #4b584e; }
.home-page .access__intro { margin: 0 0 14px; font-size: 15px; line-height: 1.9; }
.home-page .access__routes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; line-height: 1.8; }
.home-page .access__stop-note { margin: 0 0 12px; font-size: 14px; line-height: 1.8; }
.home-page .access__timetable { display: inline-block; padding: 6px 0; color: #334d45; font-size: 14px; line-height: 1.8; text-underline-offset: 4px; }
.home-page .access__timetable:focus-visible { outline: 2px solid #526d62; outline-offset: 4px; }
.home-page .column-gallery .home-handdrawn-label > span { display: inline-block; }
@media (max-width: 699px) {
  .home-page .access__intro { font-size: 14px; }
  .home-page .access__routes { flex-direction: column; gap: 4px; }
  .home-page .column-gallery .home-handdrawn-label { text-wrap: balance; }
}
@media (min-width: 1100px) {
  .home-page .sns__banners { gap: 16px; }
  .home-page .sns__banner-link { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
}
.promise__message {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 32px 20px 0;
  border-top: 1px solid #dce3e1;
  text-align: center;
}
.promise__message-title { margin: 0 0 20px; font-size: 22px; line-height: 1.8; color: #333; }
.promise__message-signature { margin: 0 0 12px; font-size: 15px; }
.home-page .promise__description { font-size: 14px; line-height: 1.85; }
.promise__highlight {
  color: inherit;
  background: linear-gradient(transparent 55%, #e1eeea 55%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (max-width: 699px) {
  .promise__message-title { font-size: 18px; }
}
.curtain-strengths { display: grid; gap: 28px; }
.curtain-strengths__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid #e1e6e3;
  border-radius: 12px;
  background: #fff;
}
.curtain-strengths__item:nth-child(even) { background: #f5f7f5; }
.curtain-strengths__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: 8px;
  align-self: center;
}
.curtain-strengths__body { align-self: center; min-width: 0; }
.curtain-strengths__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #37616a;
}
.curtain-strengths__number {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  padding-right: 12px;
  border-right: 1px solid #a6bcb9;
}
.curtain-strengths__title { margin: 0 0 16px; font-size: 22px; line-height: 1.6; color: #263c40; }
.curtain-strengths__description { font-size: 16px; line-height: 1.95; color: #444; }
.curtain-strengths__description strong { font-weight: 700; background: linear-gradient(transparent 68%, #e1eeea 68%); }
@media (max-width: 699px) {
  .curtain-strengths__item { padding: 20px; gap: 20px; }
  .curtain-strengths__image { max-height: 210px; }
}
@media (min-width: 700px) {
  .curtain-strengths__item { grid-template-columns: minmax(200px, 30%) minmax(0, 1fr); gap: 32px; padding: 32px; }
  .curtain-strengths__title { font-size: 26px; }
}
.case-gallery {
  padding: 56px 24px;
  background: #edf0f2;
  border-radius: 32px;
  color: #333;
}
.case-gallery__inner { max-width: 1200px; margin: 0 auto; }
.case-gallery__title { margin: 0 0 16px; font-size: 32px; text-align: center; }
.case-gallery__achievement {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 20px;
  color: #506873;
}
.case-gallery__achievement-label { font-size: 14px; }
.case-gallery__achievement-number {
  font-family: inherit;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  min-width: 6ch;
  text-align: center;
}
.case-gallery__achievement-since { font-size: 12px; }
.case-gallery__intro { margin: 0 0 32px; text-align: center; line-height: 1.8; }
.case-gallery__status { padding: 24px 0; text-align: center; }
.case-gallery__grid { display: grid; grid-template-columns: 1fr; gap: 32px 24px; }
.case-gallery__grid[hidden] { display: none; }
.case-gallery__card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.case-gallery__visual {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #dce3e6;
}
/* Reserve a 3:2 frame independently of the image's intrinsic size.
   Safari can mis-size a percentage-height image in an aspect-ratio grid
   inside the mobile flex carousel. The spacer also supports older iOS. */
.case-gallery__visual::before { content: ''; grid-area: 1 / 1; width: 100%; padding-top: 66.666667%; }
.case-gallery__visual > span { grid-area: 1 / 1; }
.case-gallery__visual img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s ease;
}
.case-gallery__card:hover .case-gallery__visual img { transform: scale(1.03); }
.case-gallery__card-title { margin: 16px 0; font-size: 17px; font-weight: 600; line-height: 1.75; }
.case-gallery__categories { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.case-gallery__category { padding: 4px 12px; border: 1px solid #97a6ad; border-radius: 24px; background: #fff; font-size: 12px; }
.case-gallery__more { text-align: center; margin-top: 36px; }
.case-gallery__card:focus-visible { outline: 3px solid #005c7b; outline-offset: 5px; }
@media (min-width: 480px) {
  .case-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .case-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* A compact announcement strip directly below the hero. */
.home-news {
  padding: 18px 24px;
  border-bottom: 1px solid #dce3e1;
  background: #f5f7f5;
  color: #333;
}
.home-news__inner {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.home-news__title {
  margin: 0;
  padding: 4px 24px 4px 0;
  border-right: 1px solid #b8c9c1;
  color: #334d45;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}
.home-news__body { min-width: 0; }
.home-news__status { margin: 0; padding: 4px 0; color: #666; font-size: 14px; line-height: 1.8; }
.home-news__status a { color: #334d45; text-underline-offset: 4px; }
.home-news__link {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 40px;
  color: inherit;
  text-decoration: none;
}
.home-news__date {
  flex-shrink: 0;
  color: #69766f;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}
.home-news__text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.home-news__arrow { flex-shrink: 0; color: #526d62; font-size: 18px; }
.home-news__link:hover .home-news__text { color: #334d45; text-decoration: underline; text-underline-offset: 4px; }
.home-news__link:focus-visible { outline: 2px solid #526d62; outline-offset: 5px; }
.home-news [hidden] { display: none; }
@media (max-width: 699px) {
  .home-news { padding: 16px 20px; }
  .home-news__inner { grid-template-columns: 78px minmax(0, 1fr); align-items: start; gap: 16px; }
  .home-news__title { padding: 0 16px 0 0; font-size: 14px; }
  .home-news__link { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 12px; }
  .home-news__date { grid-column: 1; font-size: 12px; }
  .home-news__text { grid-column: 1; font-size: 14px; }
  .home-news__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .home-news__status { padding: 0; font-size: 13px; }
}
.home-page .feature { padding: 30px 0; }
.home-page .feature__title::after { bottom: -14px; }
.home-page .feature__description strong {
  font-weight: 700;
  background: linear-gradient(transparent 65%, #e1f0ed 65%);
}
.home-page .services--unified .services__title {
  margin: 0 0 16px;
}
.home-page .services__intro {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}
.home-page .services--unified .services__grid {
  grid-template-columns: 1fr;
  gap: 24px;
}
.home-page .services--unified .services__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}
.home-page .services--unified .services__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.home-page .services--unified .services__card:focus-visible {
  outline: 3px solid #005c7b;
  outline-offset: 4px;
}
.home-page .services--unified .services__card-image {
  display: block;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.home-page .services__card-media { position: relative; flex-shrink: 0; }
.home-page .services__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px;
}
.home-page .services--unified .services__card-title {
  margin: 0 0 10px;
  font-size: var(--home-item-heading-size);
  line-height: 1.6;
}
.home-page .services--unified .services__card-description {
  flex: 1;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.85;
}
.home-page .services__credentials {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(28, 38, 32, .72));
  list-style: none;
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.home-page .services__credentials li + li { margin-top: 2px; }
.home-page .services--unified .services__card-link {
  align-self: flex-start;
  padding: 6px 0;
  text-align: left;
}
@media (max-width: 399px) {
  .home-page .services__credentials { font-size: 11px; padding-inline: 10px; }
}
@media (min-width: 700px) {
  .home-page .services--unified .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .home-page .services--unified .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-page .feature { padding: 60px 0; }
  .home-page .feature__title { margin-bottom: 70px; }
  .home-page .feature__title::after { bottom: -16px; }
  .home-page .feature__item--pc {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .home-page .feature__more {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}
