:root {
  --color-text: #333333;
  --color-text-strong: #353535;
  --color-main: #7ebd7e;
  --color-main-strong: #63aa68;
  --color-accent: #4ebc8a;
  --color-surface-soft: #f1f9f3;
  --color-cta-membership: #4cbc89;
  --color-cta-contact: #93d784;
  --color-button-text: #6a9d6a;
  --color-line: #e8e8e8;
  --color-white: #ffffff;
  --color-footer-band: #9bcb9b;
  --font-base: "Zen Kaku Gothic Antique", sans-serif;
  --font-heading: "Zen Kaku Gothic New", sans-serif;
  --font-latin: "Montserrat", sans-serif;
  --radius-search-card: 8px;
  --radius-button: 7px;
  --radius-media: 20px;
  --radius-large: 30px;
  --guide-button-standalone-min-width: 232px;
  --shadow-search-card: 0 3px 24px rgba(115, 175, 115, 0.3);
  --shadow-hover: 0 10px 30px rgba(78, 150, 96, 0.26);
  --site-header-height: 100px;
  --site-header-compact-height: 80px;
  --content-width: 1200px;
  --tablet-gutter: 24px;
  --mobile-gutter: 20px;
}

html {
  scroll-behavior: smooth;
  color: var(--color-text);
  background: var(--color-white);
}

body {
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 500;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
a:visited {
  color: inherit;
}

a,
button {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.reference-frame {
  position: relative;
  width: min(100%, 1440px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  --site-header-current-height: var(--site-header-height);
}

.site-header.is-scrolled,
body.is-drawer-open .site-header {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(51, 51, 51, 0.08);
}

.site-header.is-scrolled {
  --site-header-current-height: var(--site-header-compact-height);
}

.site-header__container {
  width: min(100%, 1440px);
  height: var(--site-header-current-height);
  margin-inline: auto;
  padding: 0 35px 0 28px;
  display: flex;
  align-items: center;
  transition: height 0.3s ease, padding 0.3s ease;
}

.brand-lockup {
  display: flex;
  flex: 0 0 389.76px;
  width: 389.76px;
  height: 53.241px;
  align-items: center;
  gap: 11px;
  color: var(--color-text-strong);
}

.brand-lockup:visited {
  color: var(--color-text-strong);
}

.brand-lockup__mark {
  flex: 0 0 79px;
  width: 79px;
  height: 53.241px;
}

.brand-lockup__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.brand-lockup__legal {
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 10.98px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand-lockup__name {
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 24.313px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-lockup__tagline {
  white-space: nowrap;
  font-family: var(--font-latin);
  font-size: 10.98px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.site-header__right {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 50px;
  margin-left: auto;
}

.site-header__nav {
  align-self: center;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-header__nav-link,
.site-header__nav-link:visited {
  display: block;
  white-space: nowrap;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.05em;
}

.site-header__cta,
.site-header__cta:visited {
  display: grid;
  flex: 0 0 209px;
  width: 209px;
  height: 55px;
  padding-right: 12px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 0;
  border-radius: var(--radius-button);
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.site-header__cta span {
  justify-self: center;
}

.site-header__cta img {
  justify-self: end;
  flex: 0 0 28px;
  width: 28px;
  height: 31.576px;
  transition: transform 0.3s ease;
}

.site-header__toggle {
  position: relative;
  z-index: 101;
  display: none;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  margin-left: auto;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--color-main);
  cursor: pointer;
}

.site-header__toggle span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  transform: translateX(-50%);
  transition: top 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.site-header__toggle span:first-child { top: 17px; }
.site-header__toggle span:nth-child(2) { top: 25px; }
.site-header__toggle span:last-child { top: 33px; }
.site-header__toggle.is-open span:first-child { top: 25px; transform: translateX(-50%) rotate(45deg); }
.site-header__toggle.is-open span:nth-child(2) { opacity: 0; }
.site-header__toggle.is-open span:last-child { top: 25px; transform: translateX(-50%) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 99;
  width: min(400px, 100%);
  height: 100svh;
  overflow-y: auto;
  visibility: hidden;
  background: var(--color-white);
  box-shadow: -4px 0 12px rgba(51, 51, 51, 0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: visibility 0s linear 0.3s, opacity 0.3s ease, transform 0.3s ease;
}

.drawer.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
}

.drawer__content {
  min-height: 100%;
  padding: calc(var(--site-header-height) + 32px) 32px 40px;
}

.drawer__menu {
  display: grid;
  list-style: none;
}

.drawer__menu a,
.drawer__menu a:visited {
  display: block;
  border-bottom: 1px solid var(--color-line);
  padding: 18px 4px;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.7;
}

.drawer__cta {
  margin-top: 32px;
}

.drawer__cta a,
.drawer__cta a:visited {
  display: grid;
  min-height: 55px;
  padding-right: 12px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 0;
  border-radius: var(--radius-button);
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
}

.drawer__cta span {
  justify-self: center;
}

.drawer__cta img {
  justify-self: end;
  width: 28px;
  height: 31.576px;
}

body.is-drawer-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.hero-search-stack {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-search-stack__background {
  position: absolute;
  z-index: 0;
  top: -22.714px;
  left: calc(50% - 120.777px);
  width: 2545.82px;
  max-width: none;
  height: 1326.714px;
  transform: translateX(-50%);
}

.hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero__frame {
  padding-top: 118px;
  padding-bottom: 48.591px;
}

.hero__surface {
  position: absolute;
  z-index: -1;
  top: 162px;
  left: 50%;
  width: 1200px;
  height: 401px;
  transform: translateX(-50%);
}

.hero__layout {
  display: grid;
  width: min(1122px, calc(100% - 48px));
  margin-inline: auto;
  grid-template-columns: clamp(432px, calc(432px + 30 * (100vw - 1025px) / 415), 462px) minmax(0, 1fr);
  gap: clamp(24px, calc(24px + 44 * (100vw - 1025px) / 415), 68px);
}

.hero__copy {
  min-width: 0;
  padding-top: 54px;
}

.hero__title {
  width: 432px;
  height: 116px;
  font-family: var(--font-base);
  font-size: 36px;
  font-weight: 500;
  line-height: 57.6px;
  letter-spacing: 0.1em;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__lead {
  margin-top: 10px;
  color: var(--color-accent);
  font-family: var(--font-latin);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.05em;
}

.hero__body {
  margin-top: 47px;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.05em;
}

.hero__media {
  display: grid;
  min-width: 0;
  height: 433.409px;
  grid-template-columns: 285.002px 285.002px;
  gap: 21.998px;
}

.hero__photo {
  width: 285.002px;
  height: 368.207px;
  border-radius: var(--radius-large);
  object-fit: cover;
}

.hero__photo--medicine {
  position: relative;
  overflow: hidden;
  margin-top: 65.202px;
}

.hero__photo-source {
  position: absolute;
  top: 50%;
  left: 72.3%;
  width: auto;
  max-width: none;
  height: 119.57%;
  transform: translate(-72.3%, -50%);
}

.hero__photo--pharmacist {
  object-position: 68% center;
}

.hero__dots {
  position: absolute;
  z-index: -1;
  top: 389px;
  right: 74px;
  width: 168px;
  height: 168px;
}

.search {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.search__frame {
  position: relative;
  z-index: 2;
  padding-inline: clamp(24px, calc(24px + 96 * (100vw - 1025px) / 415), 120px);
  padding-top: 28px;
  padding-bottom: 122px;
}

.search__heading {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 55px;
  margin-inline: auto;
  align-items: flex-start;
  justify-content: space-between;
}

.search__title {
  width: 200px;
  height: 55px;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.05em;
  overflow: visible;
  white-space: nowrap;
}

.search__title-en {
  width: 520px;
  height: 56px;
  margin-top: 3px;
  color: rgba(126, 189, 126, 0.25);
  font-family: var(--font-latin);
  font-size: 46px;
  line-height: 56px;
  letter-spacing: 0.05em;
  text-align: right;
  white-space: nowrap;
}

.search__grid {
  display: grid;
  width: 100%;
  max-width: 1198px;
  margin: 20px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 26px;
}

.search-card,
.search-card:visited {
  display: flex;
  width: 100%;
  height: 116px;
  min-width: 0;
  align-items: center;
  gap: 20px;
  padding: 13px 19px;
  border-radius: var(--radius-search-card);
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-search-card);
}

.search-card__icon-wrap {
  display: grid;
  flex: 0 0 80px;
  width: 80px;
  height: 90px;
  place-items: center;
  background: #e5f5e2;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.search-card__icon-wrap img {
  width: auto;
  object-fit: contain;
}

.search-card--map .search-card__icon-wrap img { width: 52px; height: 40px; }
.search-card--outpatient .search-card__icon-wrap img { width: 46px; height: 43px; }
.search-card--home .search-card__icon-wrap img { width: 49px; height: 45px; }
.search-card--night .search-card__icon-wrap img { width: 46px; height: 45px; }
.search-card--holiday .search-card__icon-wrap img { width: 52px; height: 39px; }
.search-card--functions .search-card__icon-wrap img { width: 55px; height: 39px; }

.search__boundary {
  position: absolute;
  z-index: 0;
  top: -217px;
  left: calc(50% + 159.748px);
  width: 2406.636px;
  height: 1005.543px;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}

.search__boundary img {
  position: absolute;
  top: 38px;
  left: -260px;
  width: 2338.7px;
  max-width: none;
  height: 759.017px;
  transform: rotate(6.6deg);
  transform-origin: center;
}

.search-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.search-card__label {
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.search-card__label-en {
  white-space: nowrap;
  color: var(--color-main);
  font-family: var(--font-latin);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.news {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--color-white);
}

.news__frame {
  z-index: 1;
  padding-top: 30px;
  padding-bottom: 74px;
}

.news__layout {
  display: grid;
  width: 1000px;
  margin-inline: auto;
  grid-template-columns: 282px 718px;
  grid-template-rows: auto 1fr;
}

.news__heading {
  grid-column: 1;
  grid-row: 1;
}

.news__title {
  width: 143px;
  height: 49px;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.05em;
  overflow: visible;
  white-space: nowrap;
}

.news__title-en {
  margin: 7px 0 0 4px;
  color: var(--color-main);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.news__list {
  overflow: hidden;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 718px;
  height: auto;
  padding-inline: 22px 15px;
  border-radius: var(--radius-media);
  background: var(--color-white);
}

.news__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news__item:not(:last-child)::after {
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 1px;
  background: url("../images/news-divider.svg") center / 100% 1px no-repeat;
  content: "";
}

.news__item--first { min-height: 104px; }
.news__item--long { min-height: 105px; }
.news__item--last { min-height: 112px; }

.news__meta {
  display: grid;
  grid-template-columns: 10ch auto;
  align-items: center;
  column-gap: 16px;
  color: var(--color-main);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.news__meta > time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.news__category {
  justify-self: start;
}

.news__item-link,
.news__item-link:visited {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: inherit;
  padding-inline: 20px;
  padding-right: 63px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.news__item--first .news__item-link {
  padding-top: 7px;
}

.news__item--last .news__item-link {
  padding-bottom: 2px;
}

.news__item-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.news__item-title {
  min-width: 0;
}

.news__item-link img {
  position: absolute;
  top: 50%;
  right: 20px;
  flex: 0 0 27px;
  width: 27px;
  height: 30px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.news__more,
.news__more:visited {
  display: flex;
  width: 172px;
  height: 48px;
  margin: 0 0 16px;
  padding: 0 8px 0 20px;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  grid-column: 1;
  grid-row: 2;
  border: 1px solid var(--color-main);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.news__more-icon {
  position: relative;
  display: block;
  flex: 0 0 31.576px;
  width: 31.576px;
  height: 31.576px;
  transition: transform 0.3s ease;
}

.news__list--single + .news__more {
  margin-top: 28px;
}

.news__more-badge,
.news__more-chevron {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
}

.news__more-badge {
  width: 31.576px;
  height: 28px;
  transform: translate(-50%, -50%) rotate(90deg);
}

.news__more-chevron {
  width: 5px;
  height: 8.75px;
  transform: translate(-50%, -50%);
}

.message {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.message__frame {
  padding-top: 120px;
  padding-bottom: 102px;
}

.message__dots {
  position: absolute;
  z-index: 0;
  top: 73px;
  left: 57px;
  width: 135px;
  height: 135px;
}

.message__copy {
  position: relative;
  z-index: 1;
  width: 559px;
  margin-left: max(24px, calc(50% - 498px));
}

.message__heading {
  display: flex;
  height: 52px;
  margin-left: -6px;
  align-items: center;
  gap: 20px;
}

.message__title {
  flex: 0 0 188px;
  width: 188px;
  height: 52px;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.message__title-en {
  color: var(--color-main);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.message__body {
  width: 559px;
  height: 204px;
  margin-top: 31px;
  font-size: 16px;
  font-weight: 500;
  line-height: 30.08px;
  letter-spacing: 0.07em;
}

.message__signature {
  width: 559px;
  height: 59px;
  margin-top: 27px;
  text-align: right;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.05em;
}

.message__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.message__hex {
  position: absolute;
  top: 53px;
  right: max(24px, calc(50% - 510px));
  left: auto;
  width: clamp(220px, calc(220px + 45 * (100vw - 1025px) / 415), 265px);
  height: auto;
  aspect-ratio: 265 / 297;
  background: rgba(78, 188, 138, 0.32);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.message__photo {
  position: absolute;
  top: 166px;
  right: max(80px, calc(50% - 396px));
  left: auto;
  width: clamp(220px, calc(220px + 44 * (100vw - 1025px) / 415), 264px);
  max-width: none;
  height: auto;
}

.activities {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--color-white);
}

.activities__frame {
  padding-top: 128px;
  padding-bottom: 151px;
}

.activities__top-wave {
  position: absolute;
  z-index: 0;
  top: -269.192px;
  left: calc(50% - 114.388px);
  width: 2533.044px;
  max-width: none;
  height: 733.964px;
  transform: translateX(-50%);
}

.activities__decoration {
  position: absolute;
  z-index: -1;
  top: 125px;
  left: calc(-138px - clamp(24px, calc(50vw - 581px), 139px));
  width: 836px;
  max-width: none;
  height: 561.911px;
  pointer-events: none;
}

.home-care__top-wave {
  position: absolute;
  z-index: 0;
  top: 1080px;
  left: calc(50% + 159.749px);
  width: 2406.636px;
  max-width: none;
  height: 1005.543px;
  overflow: hidden;
  transform: translateX(-50%);
}

.home-care__top-wave img {
  position: absolute;
  top: 122.33px;
  left: -50px;
  width: 2338.7px;
  max-width: none;
  height: 759.017px;
  transform: rotate(6deg);
  transform-origin: center;
}

.activities__content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1190px, calc(100% - max(24px, calc(50% - 581px)) - 24px));
  margin-left: max(24px, calc(50% - 581px));
  grid-template-columns: minmax(260px, 428px) minmax(0, 1fr);
}

.activities__sticky-column {
  min-width: 0;
  clip-path: inset(0 -260px 0 -280px);
}

.activities__heading {
  position: sticky;
  z-index: 0;
  top: calc(var(--site-header-height) + 28px);
  min-height: 686.911px;
  align-self: start;
  isolation: isolate;
}

.activities__title {
  width: 318px;
  height: 55px;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.activities__title-en {
  margin-top: 20px;
  color: var(--color-main);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.activities__list {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  margin-top: 5px;
  flex-direction: column;
}

.activity-card {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 176px;
  min-width: 0;
  grid-template-columns: minmax(260px, 303px) minmax(0, 1fr);
  gap: clamp(24px, calc(24px + 15 * (100vw - 1025px) / 415), 39px);
}

.activity-card--second { margin-top: 51px; }
.activity-card--third { margin-top: 66px; }
.activity-card--fourth { margin-top: 63px; }
.activity-card--fifth { margin-top: 67px; }

.activity-card__image {
  width: 303px;
  height: 176px;
  border-radius: var(--radius-media);
  object-fit: cover;
}

.activity-card__copy {
  min-width: 0;
  padding-top: 15px;
}

.activity-card--first .activity-card__copy {
  padding-top: 10px;
}

.activity-card__heading {
  display: flex;
  align-items: baseline;
  gap: 13px;
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  white-space: normal;
}

.activity-card__number {
  flex: 0 0 auto;
  color: var(--color-main);
  font-family: var(--font-latin);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.activity-card__body {
  margin-top: 14px;
  font-size: 16px;
  line-height: 29px;
  letter-spacing: 0.05em;
}

.home-care {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-soft);
}

.home-care__frame {
  padding-top: 72px;
  padding-bottom: 71px;
}

.home-care__copy {
  position: relative;
  z-index: 2;
  width: 644px;
  margin-left: max(24px, calc(50% - 581px));
}

.home-care__title {
  width: 477px;
  height: 55px;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero__title-keep,
.home-care__title-keep {
  white-space: nowrap;
}

.home-care__underline {
  display: block;
  width: 98px;
  height: 3px;
  margin-top: 20px;
  border-radius: 2px;
  background: var(--color-main);
}

.home-care__body {
  width: 644px;
  height: 145px;
  margin-top: 47px;
  font-size: 18px;
  line-height: 29px;
  letter-spacing: 0.05em;
}

.home-care__body p + p {
  margin-top: 19px;
}

.home-care__cta,
.home-care__cta:visited {
  display: flex;
  width: 232px;
  height: 55px;
  margin-top: 56px;
  align-items: center;
  justify-content: center;
  gap: 35px;
  border-radius: var(--radius-button);
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.home-care__cta-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 31.576px;
  transition: transform 0.3s ease;
}

.home-care__visual {
  position: absolute;
  z-index: 1;
  top: 1px;
  right: max(24px, calc(50% - 590.152px));
  left: auto;
  width: clamp(300px, calc(300px + 100.152 * (100vw - 1025px) / 415), 400.152px);
  height: auto;
  aspect-ratio: 400.152 / 416;
}

.home-care__visual-dots {
  position: absolute;
  z-index: 0;
  top: 32.762%;
  left: 29.703%;
  width: 69.9%;
  max-width: none;
  height: auto;
}

.home-care__visual-photo {
  position: absolute;
  z-index: 1;
  top: 14.286%;
  left: 0;
  width: 75.843%;
  max-width: none;
  height: auto;
}

.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-soft);
}

.cta-section__frame {
  padding-top: 86.757px;
  padding-bottom: 42.243px;
}

.cta-section__grid {
  display: grid;
  width: min(1232px, calc(100% - 48px));
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.cta-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 320px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-large);
  color: var(--color-white);
}

.cta-card--membership {
  background: var(--color-cta-membership);
}

.cta-card--contact {
  background: var(--color-cta-contact);
}

.cta-card__dots {
  position: absolute;
  z-index: 0;
  top: -44px;
  right: -20px;
  width: 188px;
  max-width: none;
  height: 188px;
}

.cta-card__copy {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  text-align: center;
}

.cta-card__title {
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cta-card__body {
  margin-top: 18px;
  font-size: 18px;
  line-height: 35px;
  letter-spacing: 0.05em;
}

.cta-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(483px, calc(100% - 32px));
  height: 55px;
  margin-top: 36.757px;
  gap: 19px;
}

.cta-card__button,
.cta-card__button:visited {
  display: flex;
  width: 100%;
  height: 55px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-button-text);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cta-card__button-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 31.576px;
  transition: transform 0.3s ease;
}

.arrow-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  padding: 0 12px 0 0;
  justify-content: stretch;
  gap: 0;
}

.arrow-button > :first-child {
  justify-self: center;
}

.arrow-button > :last-child {
  justify-self: end;
}

.cta-card--contact .cta-card__copy {
  margin-top: 46px;
}

.cta-card--contact .cta-card__body {
  margin-top: 17px;
}

.cta-card__email,
.cta-card__email:visited {
  position: relative;
  z-index: 1;
  display: flex;
  width: 306px;
  height: 27px;
  margin-top: 17px;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-family: var(--font-latin);
  font-size: 22px;
  line-height: 27px;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-card__email img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-soft);
}

.site-footer__upper {
  padding-top: 23.757px;
  padding-bottom: 56.757px;
}

.site-footer__divider {
  width: min(1254px, calc(100% - 48px));
  height: 1px;
  margin-inline: auto;
  background: rgba(51, 51, 51, 0.15);
}

.site-footer__content {
  display: grid;
  width: min(1206px, calc(100% - max(24px, calc(50% - 591px)) - 24px));
  margin: 56px 0 0 max(24px, calc(50% - 591px));
  grid-template-columns: minmax(360px, 600px) minmax(509px, 1fr);
  gap: clamp(32px, calc(32px + 65 * (100vw - 1025px) / 415), 97px);
}

.site-footer__brand {
  width: 389.76px;
}

.site-footer__contact {
  display: flex;
  margin-top: 32.759px;
  flex-direction: column;
  gap: 7px;
  font-style: normal;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.02em;
}

.site-footer__contact a,
.site-footer__contact a:visited {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__contact img {
  width: 14px;
  height: 14px;
  filter: brightness(0.35);
}

.site-footer__menus {
  display: flex;
  width: min(509px, 100%);
  min-width: 0;
  padding-top: 91.243px;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.site-footer__nav {
  width: 100%;
  height: auto;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 36px;
}

.site-footer__nav ul {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(16px, 2.22vw, 32px);
  list-style: none;
}

.site-footer__nav a,
.site-footer__nav a:visited {
  display: block;
  white-space: nowrap;
  color: var(--color-text);
}

.site-footer__secondary-nav {
  display: flex;
  width: fit-content;
  height: 21px;
  align-items: center;
  gap: 21px;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 21px;
  white-space: nowrap;
}

.site-footer__secondary-link,
.site-footer__secondary-link:visited {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text);
}

.site-footer__secondary-link--last {
  gap: 5px;
}

.site-footer__secondary-badge {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 21px;
  background-image: url("../images/footer-secondary-link-badges.svg");
  background-repeat: no-repeat;
  background-size: 208px 21px;
}

.site-footer__secondary-link--last .site-footer__secondary-badge {
  background-position: right top;
}

.site-footer__copyright-bar {
  display: grid;
  width: 100%;
  height: 87px;
  place-items: center;
  background: var(--color-footer-band);
}

.site-footer__copyright {
  width: 564px;
  height: 20px;
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

[id="pharmacy-search"],
[id="message"],
[id="activities"] {
  scroll-margin-top: calc(var(--site-header-compact-height) + 40px);
}

[id="membership"],
[id="contact"] {
  scroll-margin-top: calc(var(--site-header-height) + 40px);
}

@media (max-width: 1218px) {
  .site-header__container {
    padding-inline: clamp(24px, 4vw, 48px);
  }

  .site-header__right {
    display: none;
  }

  .site-header__toggle {
    display: block;
  }

  .hero__layout {
    width: calc(100% - 48px);
    margin-inline: 24px;
    grid-template-columns: clamp(432px, calc(432px + 30 * (100vw - 1025px) / 415), 462px) minmax(0, 1fr);
    gap: clamp(24px, calc(24px + 44 * (100vw - 1025px) / 415), 68px);
  }

  .hero__media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 22px);
  }

  .hero__photo {
    width: 100%;
  }

  .hero__body br {
    display: none;
  }

  .home-care__top-wave {
    top: auto;
    bottom: -674px;
  }

  .site-footer__menus {
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  :root {
    --site-header-height: 84px;
    --site-header-compact-height: 72px;
  }

  .site-header__container {
    height: var(--site-header-current-height);
    padding-top: 0;
  }

  .brand-lockup {
    flex-basis: 320px;
    width: 320px;
    height: 48px;
  }

  .brand-lockup__mark {
    flex-basis: 71px;
    width: 71px;
    height: 48px;
  }

  .brand-lockup__name {
    font-size: 20px;
  }

  .brand-lockup__legal {
    font-size: 12px;
  }

  .hero__frame {
    padding-top: 112px;
    padding-bottom: 48px;
  }

  .hero__layout {
    width: calc(100% - 48px);
    margin-inline: 24px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
  }

  .hero__copy {
    padding-top: 42px;
  }

  .hero__title {
    width: auto;
    height: auto;
    font-size: 32px;
    line-height: 1.6;
  }

  .hero__body br {
    display: none;
  }

  .search__frame {
    padding-inline: 24px;
  }

  .search__heading,
  .search__grid {
    width: 100%;
  }

  .search__title-en {
    width: auto;
    font-size: clamp(34px, 4.6vw, 46px);
  }

  .search__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-card {
    width: 100%;
  }

  .news__frame {
    padding: 72px 24px;
  }

  .news__layout {
    width: 100%;
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 32px;
  }

  .news__heading,
  .news__list,
  .news__more {
    grid-column: 1;
  }

  .news__heading { grid-row: 1; }
  .news__list { grid-row: 2; }
  .news__more { grid-row: 3; }

  .news__list {
    width: 100%;
    height: auto;
    padding-inline: 12px;
  }

  .news__item {
    min-height: 104px;
    height: auto;
  }

  .news__item-link {
    padding-block: 20px;
  }

  .news__more {
    margin: 0 12px 0 0;
    align-self: auto;
    justify-self: end;
  }

  .message__frame {
    padding: 100px 24px 88px;
  }

  .message__copy {
    width: min(58%, 559px);
    margin-left: clamp(24px, 6vw, 72px);
  }

  .message__heading {
    margin-left: 0;
  }

  .message__body,
  .message__signature {
    width: 100%;
    height: auto;
  }

  .message__body br {
    display: none;
  }

  .message__visual {
    left: auto;
    right: 24px;
    width: 34%;
  }

  .message__hex {
    top: 64px;
    right: -20px;
    left: auto;
    width: min(265px, 26vw);
    height: auto;
    aspect-ratio: 265 / 297;
  }

  .message__photo {
    top: 178px;
    right: 0;
    left: auto;
    width: min(264px, 26vw);
    height: auto;
  }

  .activities__frame {
    padding: 104px 24px 128px;
  }

  .activities__content {
    width: 100%;
    margin: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .activities__sticky-column {
    clip-path: none;
  }

  .activities__heading {
    position: static;
    top: auto;
    min-height: 0;
  }

  .activities__decoration {
    top: 149px;
  }

  .activity-card {
    width: 100%;
    grid-template-columns: minmax(160px, 303px) minmax(0, 1fr);
    gap: 24px;
  }

  .activity-card__image {
    width: 100%;
  }

  .activity-card__heading {
    white-space: normal;
  }

  .home-care__frame {
    padding: 72px 24px 80px;
  }

  .home-care__copy {
    width: 62%;
    margin: 0;
  }

  .home-care__title,
  .home-care__body {
    width: 100%;
  }

  .home-care__title {
    height: auto;
    white-space: normal;
  }

  .home-care__body {
    height: auto;
  }

  .home-care__visual {
    top: 24px;
    right: 24px;
    left: auto;
    width: 34%;
    height: auto;
    aspect-ratio: 400.152 / 416;
  }

  .home-care__visual-dots {
    top: 33%;
    left: 30%;
    width: 70%;
    height: auto;
  }

  .home-care__visual-photo {
    top: 14%;
    width: 76%;
    height: auto;
  }

  .cta-section__frame {
    padding: 72px 24px;
  }

  .cta-section__grid {
    width: 100%;
    margin: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .cta-card {
    width: 100%;
  }

  .cta-card__title {
    font-size: clamp(28px, 4vw, 34px);
    white-space: normal;
  }

  .site-footer__upper {
    padding: 48px 24px 56px;
  }

  .site-footer__divider {
    width: 100%;
    margin: 0;
  }

  .site-footer__content {
    width: 100%;
    margin: 40px 0 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__menus {
    display: none;
  }

  .site-footer__copyright-bar {
    min-height: 87px;
    height: auto;
    padding: 24px;
  }

  .site-footer__copyright {
    width: auto;
    height: auto;
    text-align: center;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header__container {
    transition-duration: 0s;
  }
}

@media (max-width: 768px) {
  .brand-lockup {
    flex-basis: min(320px, calc(100% - 68px));
    width: min(320px, calc(100% - 68px));
  }

  .hero__frame {
    padding: 112px 24px 52px;
  }

  .hero__layout {
    width: 100%;
    margin: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero__copy {
    padding-top: 0;
  }

  .hero__title {
    max-width: 560px;
    font-size: clamp(28px, 5vw, 34px);
    line-height: 1.55;
  }

  .hero__lead {
    margin-top: 12px;
    font-size: 18px;
  }

  .hero__body {
    max-width: 620px;
    margin-top: 28px;
    line-height: 1.9;
  }

  .hero__media {
    width: min(100%, 580px);
    height: auto;
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__photo {
    height: auto;
    aspect-ratio: 285 / 368;
  }

  .hero__photo-source {
    height: 119.57%;
  }

  .hero__photo--medicine {
    margin-top: 36px;
  }

  .hero__dots {
    top: auto;
    right: 8px;
    bottom: 20px;
    width: 132px;
    height: 132px;
  }

  .search__title-en {
    display: none;
  }

  .search-card {
    min-height: 178px;
    height: auto;
    flex-direction: column;
    justify-content: center;
    gap: clamp(10px, 2vw, 18px);
    padding: 14px clamp(12px, 2.5vw, 19px);
    text-align: center;
  }

  .search-card__icon-wrap {
    flex-basis: 80px;
    height: 80px;
  }

  .search-card__copy {
    align-items: center;
  }

  .search-card__label {
    font-size: clamp(19px, 3.2vw, 23px);
  }

  .search-card__label-en {
    max-width: 100%;
    white-space: normal;
    font-size: clamp(12px, 2vw, 15px);
  }

  .activity-card {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .activity-card__heading {
    font-size: clamp(21px, 3.4vw, 26px);
  }

  .home-care__title {
    font-size: clamp(30px, 4.8vw, 38px);
  }
}

@media (max-width: 480px) {
  .site-header__container {
    padding-inline: 20px;
  }

  .brand-lockup {
    flex-basis: calc(100% - 60px);
    width: calc(100% - 60px);
    gap: clamp(6px, 2vw, 8px);
  }

  .brand-lockup__mark {
    flex-basis: clamp(44px, 12vw, 58px);
    width: clamp(44px, 12vw, 58px);
    height: auto;
  }

  .brand-lockup__name {
    font-size: clamp(15px, 4vw, 16px);
    letter-spacing: 0;
  }

  .brand-lockup__tagline {
    max-width: 100%;
    white-space: normal;
    font-size: 7.8px;
    line-height: 1.15;
  }

  .brand-lockup__legal {
    font-size: 10px;
  }

  .site-header__toggle {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .drawer {
    width: 100%;
  }

  .drawer__content {
    padding-inline: 20px;
  }

  .hero__frame {
    padding: 106px 20px 40px;
  }

  .hero__title {
    font-size: clamp(24px, 7.2vw, 32px);
    line-height: 1.5;
    letter-spacing: 0.06em;
  }

  .hero__title-line {
    white-space: normal;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__body {
    margin-top: 20px;
    line-height: 1.8;
    letter-spacing: 0.035em;
  }

  .hero__media {
    gap: 12px;
  }

  .hero__photo--medicine {
    margin-top: 24px;
  }

  .hero__dots {
    width: 100px;
    height: 100px;
  }

  .search__frame {
    padding: 56px 20px 84px;
  }

  .search__heading {
    height: auto;
  }

  .search__title {
    width: auto;
    height: auto;
    font-size: 32px;
  }

  .search__grid {
    margin-top: 28px;
    grid-template-columns: minmax(0, 1fr);
  }

  .search-card {
    min-height: 110px;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
    text-align: left;
  }

  .search-card__icon-wrap {
    flex-basis: 72px;
    width: 72px;
    height: 81px;
  }

  .search-card__copy {
    align-items: flex-start;
  }

  .search-card__label {
    font-size: 20px;
  }

  .search-card__label-en {
    white-space: normal;
    font-size: 14px;
  }

  .news__frame {
    padding: 60px 20px;
  }

  .news__title {
    width: auto;
    height: auto;
    font-size: 32px;
  }

  .news__list {
    padding-inline: 4px;
  }

  .news__meta {
    column-gap: 16px;
  }

  .news__item-link {
    padding-inline: 16px;
    padding-right: 59px;
  }

  .news__item-link img {
    right: 16px;
  }

  .news__item-title br {
    display: none;
  }

  .news__more {
    width: 172px;
    margin-right: 0;
    justify-self: center;
  }

  .message__frame {
    display: flex;
    padding: 72px 20px;
    flex-direction: column;
    gap: 40px;
  }

  .message__dots {
    top: 32px;
    left: -20px;
    width: 110px;
    height: 110px;
  }

  .message__copy {
    width: 100%;
    margin: 0;
  }

  .message__heading {
    height: auto;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .message__title {
    width: auto;
    height: auto;
    flex-basis: auto;
    font-size: 32px;
  }

  .message__body {
    margin-top: 28px;
    line-height: 1.9;
  }

  .message__signature {
    margin-top: 24px;
  }

  .message__visual {
    position: relative;
    right: auto;
    width: min(100%, 360px);
    height: 330px;
    margin-left: auto;
  }

  .message__hex {
    top: 0;
    right: 0;
    width: 240px;
  }

  .message__photo {
    top: 76px;
    right: 90px;
    width: 230px;
  }

  .activities__frame {
    padding: 80px 20px 104px;
  }

  .activities__decoration {
    top: 130px;
    left: -260px;
    width: 680px;
    height: auto;
  }

  .activities__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .activities__title {
    width: auto;
    height: auto;
    font-size: 32px;
  }

  .activities__list {
    margin: 0;
    gap: 48px;
  }

  .activity-card,
  .activity-card--second,
  .activity-card--third,
  .activity-card--fourth,
  .activity-card--fifth {
    height: auto;
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .activity-card__image {
    height: auto;
    aspect-ratio: 303 / 176;
  }

  .activity-card__copy,
  .activity-card--first .activity-card__copy {
    padding-top: 0;
  }

  .activity-card__heading {
    font-size: 24px;
  }

  .home-care__frame {
    display: flex;
    padding: 64px 20px 72px;
    flex-direction: column;
    gap: 44px;
  }

  .home-care__copy {
    width: 100%;
  }

  .home-care__title {
    height: auto;
    font-size: 30px;
    white-space: normal;
  }

  .home-care__body {
    margin-top: 36px;
    font-size: 16px;
    line-height: 1.9;
  }

  .home-care__cta {
    width: 100%;
    margin-top: 40px;
  }

  .home-care__visual {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 400px);
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .cta-section__frame {
    padding: 56px 20px;
  }

  .cta-card {
    height: auto;
    min-height: 320px;
    padding: 40px 20px;
  }

  .cta-card__copy,
  .cta-card--contact .cta-card__copy {
    margin-top: 0;
  }

  .cta-card__title {
    font-size: 28px;
    white-space: normal;
  }

  .cta-card__body {
    font-size: 16px;
    line-height: 1.9;
  }

  .cta-card__body br {
    display: none;
  }

  .cta-card__actions {
    width: 100%;
    height: auto;
    margin-top: 28px;
    flex-direction: column;
    gap: 14px;
  }

  .cta-card__button {
    width: 100%;
  }

  .cta-card__email {
    width: auto;
    max-width: 100%;
    margin-top: 24px;
    font-size: clamp(17px, 5vw, 22px);
    overflow-wrap: anywhere;
  }

  .site-footer__upper {
    padding-inline: 20px;
  }

  .site-footer__brand {
    width: min(100%, 320px);
  }

  .site-footer__contact {
    overflow-wrap: anywhere;
  }
}

@media (hover: hover) and (pointer: fine) {
  .brand-lockup:hover,
  .site-header__nav-link:hover,
  .drawer__menu a:hover {
    color: var(--color-main-strong);
    opacity: 0.78;
  }

  .site-header__cta:hover,
  .drawer__cta a:hover {
    background: var(--color-main-strong);
    color: var(--color-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
  }

  .site-header__cta:hover img {
    transform: translateX(3px);
  }

  .site-header__toggle:hover {
    background: var(--color-main-strong);
    box-shadow: var(--shadow-hover);
  }

  .search-card:hover {
    color: var(--color-main-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
  }

  .search-card:hover .search-card__icon-wrap {
    background: rgba(126, 189, 126, 0.22);
  }

  .news__item-link:hover,
  .news__more:hover {
    color: var(--color-main-strong);
  }

  .news__item-link:hover {
    background: rgba(126, 189, 126, 0.08);
  }

  .news__more:hover {
    border-color: var(--color-main-strong);
    background: rgba(126, 189, 126, 0.08);
    box-shadow: 0 6px 18px rgba(78, 150, 96, 0.16);
    transform: translateY(-2px);
  }

  .news__item-link:hover img {
    transform: translate(4px, -50%);
  }

  .news__more:hover .news__more-icon {
    transform: translateX(4px);
  }

  .home-care__cta:hover {
    background: var(--color-main-strong);
    color: var(--color-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
  }

  .home-care__cta:hover .home-care__cta-icon {
    transform: translateX(4px);
  }

  .cta-card__button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-main-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
  }

  .cta-card__button:hover .cta-card__button-icon {
    transform: translateX(4px);
  }

  .cta-card__email:hover {
    color: var(--color-white);
    opacity: 0.75;
    transform: translateY(-2px);
  }

  .site-footer a:hover {
    color: var(--color-main-strong);
    opacity: 0.7;
  }
}

/* WordPress 下層ページ */
.page-shell {
  overflow: hidden;
  background: var(--color-white);
}

.page-shell__hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  min-height: 350px;
  overflow: visible;
  align-items: flex-end;
  background: linear-gradient(135deg, #f7fcf8 0%, var(--color-surface-soft) 100%);
}

.page-shell__hero::after {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: -56px;
  width: 480px;
  height: 323px;
  background: url("../images/activities-hex-decoration.svg") center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.page-shell__hero-inner {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 48px));
  padding-top: calc(var(--site-header-height) + 72px);
  padding-bottom: 70px;
}

.page-shell__eyebrow {
  color: var(--color-main-strong);
  font-family: var(--font-latin);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.page-shell__title {
  margin-top: 10px;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.page-shell__body {
  position: relative;
  z-index: 0;
  padding: 96px 24px 112px;
  background: var(--color-white);
}

.page-shell + .site-footer .site-footer__upper {
  padding-top: 0;
}

.page-shell + .site-footer .site-footer__divider {
  display: none;
}

.page-shell__inner {
  width: min(1000px, 100%);
  margin-inline: auto;
}

.page-shell__body + .cta-section {
  border-top: 1px solid rgba(126, 189, 126, 0.14);
}

.news-archive__list {
  border-top: 1px solid var(--color-line);
}

.news-archive__item {
  border-bottom: 1px solid var(--color-line);
}

.news-archive__link,
.news-archive__link:visited {
  display: grid;
  min-height: 112px;
  padding: 28px 20px;
  align-items: center;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) 27px;
  gap: 28px;
  color: var(--color-text);
}

.news-archive__meta,
.news-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-main-strong);
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.news-archive__meta time,
.news-single__meta time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.news__category,
.news-archive__category,
.news-single__category {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  padding: 4px 12px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-surface-soft);
  color: var(--color-main-strong);
  font-size: 13px;
  line-height: 1.4;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.news__item-link:focus-visible .news__category,
.news-archive__link:focus-visible .news-archive__category {
  background: var(--color-white);
  color: var(--color-text-strong);
  box-shadow: 0 0 0 1px rgba(99, 170, 104, 0.72), 0 4px 12px rgba(78, 150, 96, 0.14);
  transform: translateY(-1px);
}

.news-archive__title {
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.news-archive__arrow {
  display: block;
  width: 27px;
  height: 30px;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.news-archive__empty {
  padding: 52px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-media);
  background: var(--color-surface-soft);
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
}

.news-pagination {
  margin-top: 56px;
}

.news-pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.news-pagination__item {
  list-style: none;
}

.news-pagination__item .page-numbers,
.news-pagination__item .page-numbers:visited {
  display: flex;
  min-width: 46px;
  height: 46px;
  padding-inline: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-main);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-latin);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.news-pagination__item .page-numbers.current {
  background: var(--color-main);
  color: var(--color-white);
}

.news-pagination__item .page-numbers.dots {
  border-color: transparent;
}

.news-single__inner {
  width: min(880px, 100%);
}

.news-single__header {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--color-line);
}

.news-single__title {
  margin-top: 20px;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.news-single__content {
  padding-top: 50px;
  color: var(--color-text);
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

.news-single__content p {
  margin-top: 24px;
}

.news-single__content h2 {
  position: relative;
  margin: 68px 0 28px;
  padding: 0 0 18px 54px;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.news-single__content h2::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 40px;
  height: 27px;
  background: url("../images/brand-mark.svg") center / contain no-repeat;
  content: "";
}

.news-single__content h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-main);
  content: "";
}

.news-single__content h3 {
  margin: 48px 0 22px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--color-main);
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.news-single__content h4,
.news-single__content h5,
.news-single__content h6 {
  margin: 36px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.news-single__content h2:first-child,
.news-single__content h3:first-child,
.news-single__content h4:first-child,
.news-single__content h5:first-child,
.news-single__content h6:first-child,
.news-single__content p:first-child {
  margin-top: 0;
}

.news-single__content h2 + p,
.news-single__content h3 + p,
.news-single__content h4 + p,
.news-single__content h5 + p,
.news-single__content h6 + p {
  margin-top: 0;
}

.news-single__content ul,
.news-single__content ol {
  margin: 24px 0;
  padding-left: 1.6em;
}

.news-single__content ul {
  list-style: disc;
}

.news-single__content ol {
  list-style: decimal;
}

.news-single__content li + li {
  margin-top: 8px;
}

.news-single__content li::marker {
  color: var(--color-main-strong);
  font-weight: 700;
}

.news-single__content strong {
  color: var(--color-text-strong);
  font-weight: 700;
}

.news-single__content a,
.news-single__content a:visited {
  color: var(--color-main-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.news-single__content img {
  height: auto;
  margin-block: 32px;
  border-radius: var(--radius-media);
}

.news-single__back {
  display: flex;
  margin-top: 72px;
  justify-content: center;
}

.news-single__back-link,
.news-single__back-link:visited {
  display: inline-flex;
  min-width: 230px;
  min-height: 52px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--color-main);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .page-shell__hero {
    min-height: 310px;
  }

  .page-shell__hero-inner {
    padding-top: calc(var(--site-header-height) + 56px);
    padding-bottom: 56px;
  }

  .page-shell__body {
    padding-top: 80px;
    padding-bottom: 96px;
  }

  .news-archive__link {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) 27px;
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .page-shell__hero {
    min-height: 270px;
  }

  .page-shell__hero::after {
    right: 12px;
    bottom: -38px;
    width: 280px;
    height: 188px;
  }

  .page-shell__hero-inner {
    width: calc(100% - 40px);
    padding-top: calc(var(--site-header-height) + 44px);
    padding-bottom: 44px;
  }

  .page-shell__eyebrow {
    font-size: 14px;
  }

  .page-shell__title {
    margin-top: 6px;
    font-size: 32px;
  }

  .page-shell__body {
    padding: 64px 20px 80px;
  }

  .news-archive__link {
    position: relative;
    min-height: 0;
    padding: 24px 50px 24px 8px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .news-archive__meta {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .news-archive__title {
    font-size: 17px;
    line-height: 1.65;
  }

  .news-archive__arrow {
    position: absolute;
    top: calc(50% - 15px);
    right: 8px;
    width: 27px;
    height: 30px;
  }

  .news-pagination {
    margin-top: 44px;
  }

  .news-pagination__list {
    gap: 8px;
  }

  .news-pagination__item .page-numbers,
  .news-pagination__item .page-numbers:visited {
    min-width: 40px;
    height: 40px;
    padding-inline: 9px;
    font-size: 14px;
  }

  .news-single__header {
    padding-bottom: 30px;
  }

  .news-single__meta {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .news-single__title {
    margin-top: 18px;
    font-size: 28px;
  }

  .news-single__content {
    padding-top: 40px;
    font-size: 16px;
    line-height: 1.9;
  }

  .news-single__content h2 {
    margin: 50px 0 22px;
    padding: 0 0 15px 44px;
    font-size: 25px;
  }

  .news-single__content h2::before {
    top: 7px;
    width: 32px;
    height: 22px;
  }

  .news-single__content h2::after {
    left: 0;
    width: 100%;
  }

  .news-single__content h3 {
    margin: 42px 0 18px;
    padding-bottom: 10px;
    font-size: 21px;
  }

  .news-single__content h4,
  .news-single__content h5,
  .news-single__content h6 {
    margin: 34px 0 15px;
    padding-bottom: 7px;
    font-size: 18px;
  }

  .news-single__back {
    margin-top: 56px;
  }
}

@media (max-width: 480px) {
  .news-pagination__item .prev,
  .news-pagination__item .next {
    padding-inline: 10px;
    font-size: 13px;
  }

  .news-pagination__item .dots {
    min-width: 24px;
    padding-inline: 4px;
  }

  .news-single__back-link {
    width: 100%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .news-archive__link:hover {
    background: rgba(126, 189, 126, 0.08);
    color: var(--color-main-strong);
  }

  .news-archive__link:hover .news-archive__arrow {
    transform: translateX(4px);
  }

  .news__item-link:hover .news__category,
  .news-archive__link:hover .news-archive__category {
    background: rgba(126, 189, 126, 0.16);
    color: var(--color-main-strong);
    box-shadow: none;
    transform: none;
  }

  .news-pagination__item a.page-numbers:hover,
  .news-single__back-link:hover {
    border-color: var(--color-main-strong);
    background: var(--color-main-strong);
    color: var(--color-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
  }

  .news-single__content a:hover {
    color: var(--color-accent);
  }
}

/* WordPress 汎用本文とフォールバック一覧 */
.page-shell__content,
.page-shell__entries {
  width: min(840px, 100%);
  margin-inline: auto;
}

.page-shell__content {
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.025em;
}

.page-shell__content > * + * {
  margin-top: 24px;
}

.page-shell__content a,
.page-shell__content a:visited,
.page-shell__entry-title a,
.page-shell__entry-title a:visited {
  color: var(--color-main-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-shell__entry {
  padding: 30px 8px;
  border-bottom: 1px solid var(--color-line);
}

.page-shell__entry:first-child {
  border-top: 1px solid var(--color-line);
}

.page-shell__entry-date {
  color: var(--color-main-strong);
  font-family: var(--font-heading);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.page-shell__entry-title {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.6;
}

.page-shell__entry-excerpt {
  margin-top: 12px;
  line-height: 1.8;
}

.page-shell__pagination {
  margin-top: 52px;
}

.page-shell__pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.page-shell__pagination a,
.page-shell__pagination span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-main);
  border-radius: var(--radius-button);
}

.page-shell__pagination .current {
  background: var(--color-main);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .page-shell__content {
    font-size: 16px;
    line-height: 1.9;
  }

  .page-shell__entry {
    padding-block: 24px;
  }

  .page-shell__entry-title {
    font-size: 20px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .page-shell__content a:hover,
  .page-shell__entry-title a:hover {
    color: var(--color-accent);
  }
}

/* 入会・リスト掲載・リンク集 */
.guide-page,
.link-collection {
  width: min(940px, 100%);
  margin-inline: auto;
}

.guide-page__intro {
  width: 100%;
}

.guide-page__intro h2 {
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

.guide-page__intro p {
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.025em;
}

.guide-page__intro h2 + p {
  margin-top: 18px;
}

.guide-page__intro p + p {
  margin-top: 10px;
}

.guide-section,
.link-group {
  margin-top: 88px;
  scroll-margin-top: calc(var(--site-header-compact-height) + 32px);
}

.guide-section__heading {
  position: relative;
  padding-left: 48px;
}

.guide-section__heading::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 34px;
  height: 23px;
  background: url("../images/brand-mark.svg") center / contain no-repeat;
  content: "";
}

.guide-section__heading p {
  color: var(--color-main-strong);
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.guide-section__heading h2 {
  margin-top: 3px;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.guide-section__lead {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.025em;
}

.guide-grid {
  display: grid;
  margin-top: 32px;
  gap: 20px;
}

.guide-grid--3,
.guide-grid--fees {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.guide-card {
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(78, 150, 96, 0.08);
}

.guide-card__tag {
  color: var(--color-main-strong);
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.guide-card h2,
.guide-card h3 {
  margin-top: 8px;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.035em;
}

.guide-card h2 {
  font-size: 25px;
}

.guide-card h3 {
  font-size: 22px;
}

.guide-card h3 span {
  display: block;
  margin-top: 2px;
  color: var(--color-main-strong);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.guide-card h2 + p,
.guide-card h3 + p,
.guide-card__tag + p {
  margin-top: 14px;
}

.guide-card p,
.guide-card li {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.guide-card--fee {
  display: flex;
  min-height: 330px;
  flex-direction: column;
}

.guide-fee-list {
  display: grid;
  margin-top: auto;
  padding-top: 24px;
  gap: 10px;
}

.guide-fee-list div {
  display: flex;
  padding: 11px 14px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-radius: 8px;
  background: var(--color-surface-soft);
}

.guide-fee-list dt {
  font-size: 14px;
}

.guide-fee-list dd {
  color: var(--color-main-strong);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.guide-step-list {
  display: grid;
  margin-top: 34px;
  counter-reset: guide-step;
  gap: 14px;
  list-style: none;
}

.guide-step {
  display: grid;
  min-height: 104px;
  padding: 24px 28px 24px 22px;
  align-items: center;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-white);
  counter-increment: guide-step;
}

.guide-step::before {
  display: grid;
  width: 46px;
  height: 52px;
  place-items: center;
  background: var(--color-main);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  color: var(--color-white);
  content: counter(guide-step, decimal-leading-zero);
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 700;
}

.guide-step h3 {
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.guide-step h3 + p {
  margin-top: 5px;
}

.guide-step p {
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.guide-step--action {
  padding-block: 28px;
  align-items: start;
}

.guide-step--action::before {
  margin-top: 2px;
}

.guide-step__content {
  min-width: 0;
}

.guide-step__documents {
  margin-top: 22px;
  padding: 24px;
  border-radius: 12px;
  background: var(--color-surface-soft);
  scroll-margin-top: calc(var(--site-header-compact-height) + 32px);
}

.guide-step__eyebrow {
  color: var(--color-main-strong);
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.guide-step__documents h4 {
  margin-top: 3px;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.guide-step__documents .guide-document-grid {
  margin-top: 18px;
}

.guide-step__action {
  margin-top: 18px;
}

#register-request {
  scroll-margin-top: calc(var(--site-header-compact-height) + 32px);
}

.guide-document-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-button,
.guide-button:visited {
  min-height: 55px;
  padding-block: 8px;
  align-items: center;
  border: 1px solid var(--color-main);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.guide-button img {
  width: 28px;
  height: 31.576px;
  transition: transform 0.3s ease;
}

.guide-button img.guide-button__download-icon {
  width: 24px;
  height: 24px;
  margin-right: 2px;
  filter: invert(64%) sepia(34%) saturate(748%) hue-rotate(71deg) brightness(96%) contrast(85%);
}

/* 資料グリッド外の単独ボタンは、文言に応じた必要幅だけを確保する。 */
.guide-button--standalone,
.guide-step__action > .guide-button {
  width: fit-content;
  min-width: min(var(--guide-button-standalone-min-width), 100%);
  max-width: 100%;
  padding-left: 24px;
  grid-template-columns: minmax(0, max-content) 28px;
  column-gap: 16px;
}

.guide-related {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--color-line);
}

.guide-related h3,
.guide-related h4 {
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.guide-related p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
}

.guide-related .guide-document-grid {
  margin-top: 18px;
}

.guide-section--details {
  margin-top: 44px;
}

.guide-detail-card {
  padding: 38px 40px;
  border-radius: 20px;
  background: var(--color-surface-soft);
}

.guide-detail-card h2 {
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

.guide-detail-list {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.guide-detail-list div {
  padding-left: 18px;
  border-left: 3px solid var(--color-main);
}

.guide-detail-list dt {
  color: var(--color-main-strong);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.guide-detail-list dd {
  margin-top: 7px;
  line-height: 1.8;
}

.guide-detail-card__note,
.guide-section__note {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.8;
}

.guide-contact {
  display: grid;
  margin-top: 88px;
  padding: 38px 42px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  border-radius: 20px;
  background: var(--color-cta-membership);
  color: var(--color-white);
}

.guide-contact p {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.guide-contact h2 {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.guide-contact span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
}

.guide-contact a,
.guide-contact a:visited {
  color: var(--color-white);
  font-family: var(--font-latin);
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-card--choice {
  display: flex;
  flex-direction: column;
}

.guide-check-list {
  display: grid;
  margin-top: 22px;
  gap: 12px;
  list-style: none;
}

.guide-check-list li {
  position: relative;
  padding-left: 22px;
}

.guide-check-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 12px;
  background: var(--color-main);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  content: "";
}

.guide-check-list strong {
  color: var(--color-text-strong);
  font-weight: 700;
}

.guide-card__actions {
  display: grid;
  margin-top: auto;
  padding-top: 26px;
  gap: 10px;
}

.guide-fee-summary {
  display: grid;
  margin-top: 28px;
  padding: 27px 30px;
  align-items: center;
  grid-template-columns: minmax(190px, 0.8fr) auto minmax(260px, 1.3fr);
  gap: 26px;
  border-radius: 14px;
  background: var(--color-surface-soft);
}

.guide-fee-summary p {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.6;
}

.guide-fee-summary strong {
  color: var(--color-main-strong);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;
}

.guide-fee-summary span {
  font-size: 14px;
  line-height: 1.75;
}

.actionlist-resource-grid {
  margin-top: 32px;
}

.actionlist-resource-card {
  display: flex;
  flex-direction: column;
}

.actionlist-resource-card__actions {
  display: grid;
  margin-top: auto;
  padding-top: 24px;
  gap: 10px;
}

.actionlist-section-button {
  margin-top: 22px;
}

.guide-page--actionlist .guide-contact span {
  font-size: 16px;
}

.link-group:first-of-type {
  margin-top: 0;
}

.emergency-consultation {
  display: grid;
  margin-top: 30px;
  padding: 34px 36px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
  gap: 36px;
  border: 1px solid rgba(126, 189, 126, 0.48);
  border-radius: 20px;
  background: var(--color-surface-soft);
  box-shadow: 0 10px 30px rgba(78, 150, 96, 0.1);
}

.emergency-consultation__availability {
  display: inline-flex;
  min-height: 30px;
  padding-inline: 14px;
  align-items: center;
  border-radius: 999px;
  background: var(--color-main-strong);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.emergency-consultation h3 {
  margin-top: 12px;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: clamp(23px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1.5;
}

.emergency-consultation__description {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.85;
}

.emergency-consultation__guidance {
  display: flex;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
}

.emergency-consultation__guidance li {
  position: relative;
  padding-left: 13px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.emergency-consultation__guidance li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-main);
  content: "";
}

.emergency-consultation__note {
  margin-top: 14px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.78;
}

.emergency-consultation__actions {
  display: grid;
  gap: 10px;
}

.emergency-consultation__phone,
.emergency-consultation__phone:visited {
  display: grid;
  min-height: 74px;
  padding: 12px 18px;
  place-content: center;
  border: 1px solid var(--color-main-strong);
  border-radius: 10px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.emergency-consultation__phone span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.emergency-consultation__phone strong {
  font-family: var(--font-latin);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.emergency-consultation__phone--primary,
.emergency-consultation__phone--primary:visited {
  background: var(--color-main-strong);
  color: var(--color-white);
}

.emergency-consultation__phone--alternate,
.emergency-consultation__phone--alternate:visited {
  background: var(--color-white);
  color: var(--color-main-strong);
}

.emergency-consultation__official-link,
.emergency-consultation__official-link:visited {
  margin-top: 4px;
  color: var(--color-main-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.link-card,
.link-card:visited {
  display: grid;
  min-height: 112px;
  padding: 24px 22px 24px 26px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 18px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 8px 24px rgba(78, 150, 96, 0.07);
}

.link-card__copy {
  min-width: 0;
}

.link-card__copy strong {
  display: block;
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.link-card__copy > span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--color-main-strong);
  font-family: var(--font-latin);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__icon {
  display: grid;
  width: 34px;
  height: 39px;
  place-items: center;
  background: var(--color-main);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.link-card__icon img {
  display: block;
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
  .guide-grid--3,
  .guide-grid--fees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid--fees .guide-card:last-child {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .guide-grid--fees .guide-card:last-child .guide-fee-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .emergency-consultation {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .emergency-consultation__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emergency-consultation__official-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .guide-page__intro p {
    font-size: 16px;
    line-height: 1.9;
  }

  .guide-grid--3,
  .guide-grid--fees,
  .guide-grid--2,
  .guide-document-grid,
  .link-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-section,
  .link-group {
    margin-top: 68px;
  }

  .guide-section__heading {
    padding-left: 42px;
  }

  .guide-section__heading::before {
    top: 9px;
    width: 30px;
    height: 20px;
  }

  .guide-grid--fees .guide-card:last-child {
    grid-column: auto;
  }

  .guide-grid--fees .guide-card:last-child .guide-fee-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-card--fee,
  .guide-card--choice {
    min-height: 0;
  }

  .guide-card__actions {
    margin-top: 0;
  }

  .guide-step {
    padding: 22px 20px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
  }

  .guide-step::before {
    width: 40px;
    height: 46px;
    font-size: 12px;
  }

  .guide-detail-card {
    padding: 30px 26px;
  }

  .guide-detail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-fee-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-fee-summary {
    gap: 8px;
  }

  .guide-contact {
    margin-top: 68px;
    padding: 32px 28px;
  }

  /* アクションリストの単独ボタンは、SPでは読み取り順の中心に置く。 */
  .guide-page--actionlist .guide-button--standalone {
    margin-inline: auto;
  }

}

@media (max-width: 480px) {
  .guide-card {
    padding: 26px 22px;
  }

  .guide-step {
    align-items: start;
  }

  .guide-step--action {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .guide-step--action::before {
    margin-top: 0;
  }

  .guide-step__documents {
    padding: 20px;
  }

  .guide-step h3 {
    font-size: 18px;
  }

  .guide-document-grid {
    gap: 10px;
  }

  .guide-button {
    font-size: 14px;
  }

  .guide-button--standalone,
  .guide-step__action > .guide-button {
    padding-left: 16px;
    column-gap: 8px;
  }

  .guide-contact a {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .link-card {
    min-height: 104px;
    padding-inline: 20px;
  }

  .emergency-consultation {
    padding: 28px 22px;
  }

  .emergency-consultation__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .emergency-consultation__official-link {
    grid-column: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  .guide-button:hover {
    border-color: var(--color-main-strong);
    background: var(--color-surface-soft);
    color: var(--color-main-strong);
    box-shadow: 0 8px 22px rgba(78, 150, 96, 0.14);
    transform: translateY(-2px);
  }

  .guide-button:hover img {
    transform: translateX(4px);
  }

  .guide-button--download:hover img {
    transform: translateY(3px);
  }

  .guide-contact a:hover {
    color: var(--color-white);
    opacity: 0.78;
  }

  .link-card:hover {
    border-color: rgba(126, 189, 126, 0.6);
    background: var(--color-surface-soft);
    box-shadow: 0 12px 30px rgba(78, 150, 96, 0.14);
    transform: translateY(-3px);
  }

  .link-card:hover .link-card__icon {
    background: var(--color-main-strong);
    transform: translate(2px, -2px);
  }

  .emergency-consultation__phone:hover {
    box-shadow: 0 8px 22px rgba(78, 150, 96, 0.18);
    transform: translateY(-2px);
  }

  .emergency-consultation__official-link:hover {
    color: var(--color-text-strong);
  }
}
