:root {
    --color-main: #4e9fc7;
    --color-dark: #344f5e;
    --color-bg: #f2f8fa;
    --color-line: #4e9fc7;
    --color-white: #ffffff;
    --color-placeholder: #d9d9d9;
    --font-jp: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
    --font-base: var(--font-jp);
    --font-latin: "Quicksand", sans-serif;
    --font-script: "Caveat", cursive;
    --frame: 1440px;
    --content: 1200px;
    --side-pad: 24px;
    --shadow-light: 0 4px 24px rgba(0, 0, 0, 0.07);
    --shadow-blue: 0 4px 24px rgba(34, 82, 105, 0.19);
    --radius-card: 8px;
    --radius-panel: 20px;
    --transition: 180ms ease;
    --header-height: 107px;
    --header-sticky-top: 0px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--header-sticky-top) + 12px);
}

html:has(body.admin-bar) {
    --header-sticky-top: 32px;
}

@media (max-width: 782px) {
    html:has(body.admin-bar) {
        --header-sticky-top: 46px;
    }
}

body {
    color: var(--color-dark);
    font-family: var(--font-base);
    font-weight: 500;
    letter-spacing: 0.08em;
    min-width: 320px;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

body.is-drawer-open {
    overflow: hidden;
}

img {
    display: block;
}

.sp-only {
    display: none;
}

a,
button {
    color: inherit;
    font: inherit;
}

button {
    background: transparent;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(78, 159, 199, 0.55);
    outline-offset: 4px;
}

.section-frame {
    margin: 0 auto;
    max-width: var(--frame);
    position: relative;
}

.section-frame--content {
    max-width: var(--content);
}

.section-heading {
    color: var(--color-dark);
}

.section-heading--center {
    text-align: center;
}

.section-heading--light {
    color: var(--color-white);
}

.section-heading__script {
    color: var(--color-main);
    font-family: var(--font-script);
    font-size: 37px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.05;
}

.section-heading--light .section-heading__script {
    color: var(--color-white);
}

.section-heading__title {
    color: inherit;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.45;
}

.section-heading-row {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.button {
    align-items: center;
    background: var(--color-main);
    border-radius: 4px;
    color: var(--color-white);
    display: inline-grid;
    font-size: 18px;
    font-weight: 500;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    letter-spacing: 0.06em;
    line-height: 1;
    overflow: hidden;
    transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
    white-space: nowrap;
}

.button span {
    grid-column: 2;
    justify-self: center;
}

.button img {
    flex: 0 0 auto;
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    max-width: none;
}

.button--small {
    height: 55px;
    padding: 0 14px;
    width: 220px;
}

.button--large {
    height: 76px;
    padding: 0 18px;
    width: 281px;
}

.news__button img {
    height: 11px;
    width: 6px;
}

.organization__button img {
    height: 15.2px;
    width: 7.675px;
}

.logo {
    color: var(--color-main);
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    white-space: nowrap;
}

.logo__legal {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.07em;
    line-height: 1.35;
}

.logo__name {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.07em;
    line-height: 1.45;
}

.logo__english {
    font-family: var(--font-latin);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.site-header {
    --site-header-current-height: var(--header-height);
    --site-header-scrolled-height: 82px;
    background: var(--color-white);
    height: var(--site-header-current-height);
    position: sticky;
    top: var(--header-sticky-top);
    transition: box-shadow var(--transition), height 260ms ease;
    width: 100%;
    z-index: 1300;
}

body.admin-bar .site-header {
    --header-sticky-top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        --header-sticky-top: 46px;
    }
}

.site-header.is-scrolled,
body.is-drawer-open .site-header {
    box-shadow: 0 8px 24px rgba(34, 82, 105, 0.12);
}

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

.site-header__inner {
    align-items: center;
    display: flex;
    height: var(--site-header-current-height);
    margin: 0 auto;
    max-width: var(--frame);
    padding-left: 37px;
    transition: height 260ms ease;
}

.site-header__logo {
    transform-origin: left center;
    transition: color var(--transition), transform 260ms ease;
    width: 232px;
}

.site-header.is-scrolled .site-header__logo {
    transform: scale(0.92);
}

.site-header__nav {
    margin-left: auto;
}

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

.site-header__nav-link {
    display: block;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 2;
    transition: color var(--transition), opacity var(--transition);
    white-space: nowrap;
}

.site-header__contact {
    align-items: center;
    background-image: linear-gradient(rgba(78, 159, 199, 0.3), rgba(78, 159, 199, 0.3)), url("../images/header-contact-bg.png");
    background-position: center, center -68px;
    background-repeat: no-repeat;
    background-size: cover, 100% 168%;
    color: var(--color-white);
    display: flex;
    flex: 0 0 209px;
    font-size: 18px;
    font-weight: 500;
    height: var(--site-header-current-height);
    justify-content: center;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-left: 57px;
    position: relative;
    transition: height 260ms ease, filter var(--transition), opacity var(--transition);
    white-space: nowrap;
}

.site-header.is-scrolled .site-header__contact {
    background-position: center, center -50px;
}

.site-header__menu-button {
    align-items: center;
    color: var(--color-main);
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 48px;
    justify-content: center;
    margin-left: auto;
    position: relative;
    width: 48px;
    z-index: 25;
}

.site-header__menu-line {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: transform var(--transition), opacity var(--transition);
    width: 28px;
}

.site-header__menu-text {
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
}

.drawer {
    background: rgba(242, 248, 250, 0.98);
    inset: 0;
    opacity: 0;
    padding: 104px 24px 40px;
    pointer-events: none;
    position: fixed;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    visibility: hidden;
    z-index: 18;
}

.drawer__nav {
    display: grid;
    gap: 12px;
    margin: 0 auto;
    max-width: 520px;
}

.drawer__link {
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius-card);
    display: flex;
    font-size: 18px;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 22px;
}

.drawer__link::after,
.drawer__contact::after {
    background: currentColor;
    content: "";
    flex: 0 0 auto;
    height: 12px;
    margin-left: auto;
    mask: url("../images/ui-arrow-small.svg") center / contain no-repeat;
    width: 8px;
}

.drawer__cta {
    margin: 30px auto 0;
    max-width: 520px;
}

.drawer__contact {
    align-items: center;
    background: var(--color-main);
    border-radius: var(--radius-card);
    color: var(--color-white);
    display: flex;
    font-size: 18px;
    min-height: 62px;
    padding: 0 24px;
}

.is-drawer-open .drawer {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.is-drawer-open .site-header__menu-line:nth-child(1) {
    transform: translateY(7px) rotate(38deg);
}

.is-drawer-open .site-header__menu-line:nth-child(2) {
    opacity: 0;
}

.is-drawer-open .site-header__menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-38deg);
}

.hero {
    height: 661px;
    overflow: hidden;
    position: relative;
}

.hero::before,
.hero::after {
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.hero::before {
    background: url("../images/hero-port-bg.jpg") center bottom / cover no-repeat;
    height: 100%;
    z-index: 0;
}

.hero::after {
    background: linear-gradient(90deg, rgba(44, 98, 124, 0.42) 0%, rgba(44, 98, 124, 0.16) 47%, rgba(44, 98, 124, 0) 100%);
    bottom: 0;
    top: 0;
    z-index: 0;
}

.hero__frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 402px;
    height: 661px;
    margin: 0 auto;
    max-width: var(--frame);
    padding: 34px 30px 0 121px;
    position: relative;
    z-index: 1;
}

.hero__copy {
    color: var(--color-white);
    padding-top: 159px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.hero__title {
    color: inherit;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.9;
}

.hero__title span {
    display: block;
}

.hero__lead {
    font-family: var(--font-script);
    font-size: 37px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin-top: 16px;
}

.hero__location {
    align-items: center;
    background: rgba(52, 79, 94, 0.7);
    border-radius: 999px;
    bottom: 23px;
    color: var(--color-white);
    display: flex;
    font-size: 16px;
    font-weight: 500;
    height: 40px;
    justify-content: center;
    left: 38px;
    letter-spacing: 0.05em;
    line-height: 1;
    position: absolute;
    width: 132px;
}

.hero-search {
    background: rgba(242, 248, 250, 0.9);
    border-radius: var(--radius-panel);
    height: 595px;
    padding: 23px 39px 31px;
    width: 402px;
}

.hero-search__title {
    color: var(--color-main);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-align: center;
}

.hero-search__grid {
    display: grid;
    gap: 18px 21px;
    grid-template-columns: repeat(2, 150px);
    margin-top: 20px;
}

.hero-search__card {
    align-items: center;
    align-content: start;
    background: var(--color-white);
    border-radius: var(--radius-card);
    color: var(--color-dark);
    display: grid;
    grid-template-rows: 63px auto auto;
    height: 150px;
    justify-items: center;
    padding-top: 17px;
    transition: box-shadow var(--transition), transform var(--transition), color var(--transition);
    width: 150px;
}

.hero-search__icon {
    align-self: start;
}

.hero-search__card--map .hero-search__icon {
    height: 58px;
    width: 58px;
}

.hero-search__card--outpatient .hero-search__icon {
    height: 42px;
    margin-top: 15px;
    width: 51px;
}

.hero-search__card--home-care .hero-search__icon {
    height: 49px;
    margin-top: 4px;
    width: 55px;
}

.hero-search__card--night .hero-search__icon {
    height: 40px;
    margin-top: 10px;
    width: 44px;
}

.hero-search__card--holiday .hero-search__icon {
    height: 46px;
    margin-top: 8px;
    width: 60px;
}

.hero-search__card--functions .hero-search__icon {
    height: 53px;
    width: 53px;
}

.hero-search__label {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-top: 0;
    white-space: nowrap;
}

.hero-search__english {
    color: var(--color-main);
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-top: 6px;
}

.news {
    background: var(--color-white);
    padding: 76px 0 92px;
}

.news__button {
    font-size: clamp(16px, calc(12px + 1.25vw), 18px);
    margin-top: 33px;
}

.news__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 44px;
}

.news-card {
    align-items: center;
    background: var(--color-bg);
    border-radius: var(--radius-card);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 6px;
    min-height: 118px;
    min-width: 0;
    padding: 24px 24px 24px 28px;
    transition: box-shadow var(--transition), transform var(--transition), background-color var(--transition);
}

.news-card__body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.news-card__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.news-card__date {
    color: var(--color-main);
    font-family: var(--font-latin);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.news-card__tag {
    align-items: center;
    background: var(--color-white);
    border: 1px solid rgba(78, 159, 199, 0.32);
    border-radius: 999px;
    color: var(--color-main);
    display: inline-flex;
    font-size: 13px;
    justify-content: center;
    letter-spacing: 0.04em;
    line-height: 1.2;
    max-width: 100%;
    min-height: 28px;
    padding: 0 12px;
    text-align: center;
}

.news-card__title {
    color: var(--color-dark);
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.news-card__arrow {
    background: var(--color-main);
    display: block;
    height: 11px;
    justify-self: end;
    mask: url("../images/ui-arrow-small.svg") center / contain no-repeat;
    -webkit-mask: url("../images/ui-arrow-small.svg") center / contain no-repeat;
    width: 6px;
}

.message {
    background: var(--color-bg);
    overflow: visible;
    padding-bottom: 90px;
}

.message__frame {
    margin: 0 auto;
    max-width: var(--frame);
}

.message__grid {
    display: grid;
    grid-template-columns: minmax(0, 682px) minmax(0, 483px);
    gap: 80px;
}

.message__left {
    min-width: 0;
    padding-top: 91px;
}

.message__title {
    color: var(--color-dark);
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.82;
    margin-left: 121px;
    width: 430px;
}

.message__photo {
    border-radius: 0 30px 40px 0;
    height: 389px;
    margin-top: 51px;
    max-width: 682px;
    object-fit: cover;
    width: 100%;
}

.message__right {
    min-width: 0;
    padding-top: 42px;
    position: relative;
}

.message__script {
    color: rgba(78, 159, 199, 0.11);
    font-family: var(--font-script);
    font-size: 120px;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-left: 159px;
    pointer-events: none;
    text-align: right;
    white-space: nowrap;
}

.message__body {
    display: grid;
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 500;
    gap: 28px;
    letter-spacing: 0.03em;
    line-height: 1.75;
    margin-top: 80px;
    max-width: 483px;
    width: 100%;
}

.message__signature {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.75;
    margin-top: 67px;
    text-align: right;
}

.activities {
    --activity-grid-col-gap: 64px;
    --activity-media-size: 324px;
    background: var(--color-white);
    overflow: hidden;
    padding-bottom: 96px;
    position: relative;
}

.activities::before {
    background: var(--color-main);
    content: "";
    height: 449px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.activities__frame {
    padding-top: 95px;
    z-index: 1;
}

.activities__grid {
    display: grid;
    gap: 96px var(--activity-grid-col-gap);
    grid-template-columns: repeat(3, var(--activity-media-size));
    justify-content: center;
    margin-top: 78px;
}

.activity-card {
    position: relative;
    text-align: center;
    width: var(--activity-media-size);
}

.activity-card--bottom-left {
    grid-column: 1 / 2;
    margin-left: calc((var(--activity-media-size) + var(--activity-grid-col-gap)) / 2);
}

.activity-card--bottom-right {
    grid-column: 2 / 3;
    margin-left: calc((var(--activity-media-size) + var(--activity-grid-col-gap)) / 2);
}

.activity-card__media {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-light);
    height: var(--activity-media-size);
    overflow: hidden;
    position: relative;
    width: var(--activity-media-size);
}

.activity-card__media > img {
    border-radius: inherit;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.activity-card--04 .activity-card__media > img {
    border-radius: 0;
    height: 171.08%;
    left: -51.12%;
    max-width: none;
    object-fit: fill;
    position: absolute;
    top: -58.16%;
    width: 256.62%;
}

.activity-card__badge {
    align-items: center;
    display: flex;
    height: 63px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: calc(var(--activity-media-size) - 35px);
    transform: translateX(-50%);
    width: 63px;
}

.activity-card__badge img {
    height: 63px;
    inset: 0;
    position: absolute;
    width: 63px;
}

.activity-card__badge span {
    color: var(--color-white);
    font-family: var(--font-latin);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.activity-card__title {
    color: var(--color-dark);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.09em;
    line-height: 2;
    margin-top: 36px;
}

.activity-card__line {
    background: var(--color-line);
    display: block;
    height: 3px;
    margin: 2px auto 16px;
    width: 48px;
}

.activity-card__body {
    color: rgba(52, 79, 94, 0.9);
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.7;
    text-align: left;
}

.activity-card__button {
    font-size: 16px;
    margin: 22px auto 0;
}

.activity-card__button img {
    height: 11px;
    width: 6px;
}

.organization {
    background: var(--color-bg);
    padding-bottom: 96px;
    padding-top: 95px;
}

.organization-table {
    border-collapse: collapse;
    color: var(--color-dark);
    margin-top: 54px;
    width: 100%;
}

.organization-table tr {
    border-bottom: 1px solid rgba(78, 159, 199, 0.42);
    min-height: 80px;
}

.organization-table th,
.organization-table td {
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 2;
    padding-bottom: 24px;
    padding-top: 24px;
    vertical-align: top;
}

.organization-table th {
    font-weight: 500;
    padding-left: 38px;
    width: 263px;
}

.organization-table td {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    font-weight: 500;
    gap: 7px 32px;
    padding-left: 40px;
}

.organization-table__row--large th,
.organization-table__row--large td {
    padding-bottom: 31px;
    padding-top: 24px;
}

.organization__button {
    display: grid;
    margin: 52px auto 0;
}

.contact {
    background-image: linear-gradient(rgba(44, 98, 124, 0.1), rgba(44, 98, 124, 0.1)), url("../images/contact-city-bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 76px 0 96px;
}

.contact__frame {
    display: grid;
    gap: 130px;
    grid-template-columns: 490px 575px;
    margin: 0 auto;
    max-width: var(--content);
}

.contact__lead {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 2;
    margin-top: 23px;
}

.contact-card {
    background: rgba(242, 248, 250, 0.9);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-blue);
    color: var(--color-dark);
    display: block;
    font-style: normal;
    min-height: 257px;
    padding: 48px 51px;
    width: 575px;
}

.contact-card__title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 2;
}

.contact-card__address {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.7;
    margin-top: 10px;
}

.contact-card__address-sp-break {
    display: none;
}

.contact-card__phone {
    align-items: center;
    display: flex;
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 700;
    gap: 0;
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin-top: 11px;
}

.contact-card__contact-label {
    flex: 0 0 3.4em;
}

.contact-card__phone a,
.site-footer__phone a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition), opacity var(--transition);
}

.contact-card__fax {
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin-top: 6px;
    display: flex;
    gap: 0;
}

.site-footer {
    background: var(--color-bg);
    height: 366px;
}

.site-footer__main {
    display: flex;
    height: 292px;
    margin: 0 auto;
    max-width: var(--content);
    padding-top: 45px;
}

.site-footer__info {
    width: 360px;
}

.site-footer__logo {
    width: 232px;
}

.site-footer__address {
    color: var(--color-main);
    font-style: normal;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.45;
    margin-top: 18px;
}

.site-footer__phone {
    align-items: center;
    color: var(--color-dark);
    display: flex;
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 700;
    gap: 0;
    letter-spacing: 0.04em;
    line-height: 1.45;
    margin-top: 11px;
}

.site-footer__contact-label {
    flex: 0 0 3.4em;
}

.site-footer__fax {
    color: var(--color-dark);
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.45;
    margin-top: 6px;
    display: flex;
    gap: 0;
}

.site-footer__nav {
    align-items: center;
    align-self: flex-end;
    color: var(--color-main);
    display: flex;
    gap: 37px;
    margin-bottom: 65px;
    margin-left: auto;
}

.site-footer__nav a {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 2;
    transition: color var(--transition), opacity var(--transition);
    white-space: nowrap;
}

.site-footer__copyright {
    align-items: center;
    background: var(--color-main);
    color: var(--color-white);
    display: flex;
    height: 74px;
    justify-content: center;
}

.site-footer__copyright small {
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

    .site-header__contact:hover {
        color: var(--color-white);
        filter: saturate(1.06) brightness(1.04);
    }

    .contact-card__phone a:hover,
    .site-footer__phone a:hover {
        color: var(--color-main);
        opacity: 0.78;
    }

    .button:hover,
    .hero-search__card:hover,
    .news-card:hover {
        box-shadow: 0 8px 26px rgba(34, 82, 105, 0.16);
        transform: translateY(-2px);
    }

    .button:hover {
        color: var(--color-white);
    }

    .site-header__logo:hover,
    .site-footer__logo:hover {
        color: var(--color-main);
    }

    .hero-search__card:hover {
        color: var(--color-main);
    }

    .news-card:hover {
        background: #eaf5f9;
    }
}

@media (max-width: 1315px) and (min-width: 1219px) {
    .message__script {
        margin-left: 0;
    }
}

@media (max-width: 1244px) and (min-width: 1219px) {
    .message__grid {
        grid-template-columns: minmax(0, calc(100% - 563px)) minmax(0, 483px);
        padding-right: 24px;
    }
}

@media (max-width: 1218px) {
    .site-header__inner {
        padding-left: 24px;
    }

    .site-header__nav-list {
        gap: 18px;
    }

    .site-header__nav-link {
        font-size: 16px;
    }

    .site-header__contact {
        flex-basis: 180px;
        margin-left: 24px;
    }

    .hero__frame {
        grid-template-columns: minmax(0, 1fr) clamp(360px, 30.5vw, 372px);
        padding-left: clamp(48px, 5.9vw, 72px);
        padding-right: 24px;
    }

    .hero-search {
        padding-left: clamp(19px, 2vw, 24px);
        padding-right: clamp(19px, 2vw, 24px);
        width: clamp(360px, 30.5vw, 372px);
    }

    .hero__title {
        font-size: clamp(38px, 3.75vw, 48px);
    }

    .hero__lead {
        font-size: clamp(31px, 3vw, 37px);
    }

    .section-frame--content,
    .contact__frame,
    .site-footer__main {
        max-width: calc(100% - 48px);
    }

    .message__grid {
        grid-template-columns: clamp(404px, 39vw, 520px) minmax(0, 1fr);
        gap: clamp(52px, 5vw, 64px);
        padding-right: 32px;
    }

    .message__title {
        font-size: clamp(32px, 3.3vw, 38px);
        margin-left: clamp(32px, 3vw, 44px);
        width: min(430px, calc(100% - clamp(32px, 3vw, 44px)));
    }

    .message__photo {
        height: clamp(300px, 30vw, 366px);
        width: 100%;
    }

    .message__script {
        font-size: clamp(88px, 9vw, 112px);
        margin-left: clamp(24px, 5vw, 80px);
    }

    .message__body {
        max-width: none;
        width: 100%;
    }

    .activities {
        --activity-grid-col-gap: clamp(24px, calc((100vw - 972px) / 2), 44px);
        --activity-media-size: clamp(300px, 26.6vw, 324px);
    }

    .activities__frame {
        padding-left: 32px;
        padding-right: 32px;
    }

    .contact__frame {
        gap: 60px;
        grid-template-columns: minmax(360px, 1fr) minmax(500px, 575px);
        max-width: calc(100% - 64px);
    }

    .contact-card {
        width: 100%;
    }

    .site-footer__nav {
        gap: 20px;
    }
}

@media (max-width: 1074px) {
    :root {
        --header-height: 82px;
    }

    .site-header,
    .site-header__inner {
        height: 82px;
    }

    .site-header__inner {
        padding: 0 0 0 var(--side-pad);
    }

    .site-header__logo {
        width: auto;
    }

    .site-header__nav,
    .site-header__contact {
        display: none;
    }

    .site-header__menu-button {
        background-image: linear-gradient(rgba(78, 159, 199, 0.3), rgba(78, 159, 199, 0.3)), url("../images/header-contact-bg.png");
        background-position: center, center -50px;
        background-repeat: no-repeat;
        background-size: cover, 100% 168%;
        color: var(--color-white);
        display: flex;
        gap: 8px;
        height: var(--header-height);
        width: var(--header-height);
    }

    .site-header__menu-line {
        width: 34px;
    }

    .is-drawer-open .site-header__menu-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .is-drawer-open .site-header__menu-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .site-header__menu-text {
        display: none;
    }

    .logo__legal {
        font-size: 16px;
    }

    .logo__name {
        font-size: 19px;
    }

    .logo__english {
        font-size: 10px;
    }
}

@media (max-width: 1023px) {
    :root {
        --header-height: 82px;
    }

    body {
        overflow-x: hidden;
    }

    .site-header,
    .site-header__inner {
        height: 82px;
    }

    .site-header__inner {
        padding: 0 0 0 var(--side-pad);
    }

    .site-header__logo {
        width: auto;
    }

    .site-header__nav,
    .site-header__contact {
        display: none;
    }

    .site-header__menu-button {
        display: flex;
    }

    .logo__legal {
        font-size: 16px;
    }

    .logo__name {
        font-size: 19px;
    }

    .logo__english {
        font-size: 10px;
    }

    .hero,
    .hero__frame,
    .site-footer {
        height: auto;
    }

    .hero__frame {
        display: flex;
        flex-direction: column;
        padding: 72px var(--side-pad) 84px;
    }

    .hero__copy {
        padding-top: 0;
    }

    .hero__title {
        font-size: 42px;
        line-height: 1.65;
    }

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

    .hero-search {
        align-self: flex-end;
        height: auto;
        margin-top: 48px;
        min-height: 545px;
    }

    .hero__location {
        left: var(--side-pad);
    }

    .news {
        padding: 68px var(--side-pad) 82px;
    }

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

    .news__button {
        margin-top: 20px;
    }

    .message {
        padding: 76px 0 92px;
    }

    .message__grid {
        display: flex;
        flex-direction: column;
        gap: 44px;
    }

    .message__left {
        padding-top: 0;
    }

    .message__title {
        margin-left: var(--side-pad);
        width: min(560px, calc(100% - 48px));
    }

    .message__photo {
        margin-top: 36px;
        max-width: 682px;
    }

    .message__right {
        margin: 0 auto;
        max-width: 640px;
        padding: 0 var(--side-pad);
        width: 100%;
    }

    .message__script {
        font-size: 82px;
        margin-left: 0;
    }

    .message__body {
        margin-top: 8px;
        width: 100%;
    }

    .activities {
        --activity-grid-col-gap: 40px;
        --activity-media-size: 324px;
        padding-bottom: 90px;
    }

    .activities::before {
        height: 360px;
    }

    .activities__frame {
        padding: 72px var(--side-pad) 0;
    }

    .activities__grid {
        gap: 72px 40px;
        grid-template-columns: repeat(2, 324px);
        margin-top: 64px;
    }

    .activity-card--bottom-left,
    .activity-card--bottom-right {
        grid-column: auto;
        margin-left: 0;
    }

    .organization {
        padding: 72px var(--side-pad) 90px;
    }

    .organization-table {
        margin-top: 42px;
    }

    .organization-table th {
        padding-left: 20px;
        width: 230px;
    }

    .organization-table td {
        padding-left: 24px;
    }

    .contact {
        padding: 68px var(--side-pad);
    }

    .contact__frame {
        display: grid;
        gap: 32px;
        grid-template-columns: 1fr;
        max-width: 700px;
        padding-top: 0;
    }

    .contact-card {
        width: 100%;
    }

    .site-footer__main {
        display: grid;
        gap: 36px;
        height: auto;
        padding: 48px var(--side-pad);
    }

    .site-footer__info {
        width: auto;
    }

    .site-footer__nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-heading-row {
        display: grid;
        gap: 22px;
    }

    .section-heading__script {
        font-size: 32px;
    }

    .section-heading__title {
        font-size: 32px;
    }

    .hero__title {
        font-size: 34px;
    }

    .hero-search {
        align-self: center;
        width: min(402px, 100%);
    }

    .hero-search__grid {
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 150px));
        justify-content: center;
    }

    .news-card {
        min-height: 112px;
        height: auto;
        padding-bottom: 22px;
        padding-top: 22px;
    }

    .message__title {
        font-size: 32px;
    }

    .message__script {
        font-size: 64px;
    }

    .activities__grid {
        grid-template-columns: 324px;
    }

    .organization-table,
    .organization-table tbody,
    .organization-table tr,
    .organization-table th,
    .organization-table td {
        display: block;
        width: 100%;
    }

    .organization-table tr {
        padding: 22px 0;
    }

    .organization-table th,
    .organization-table td,
    .organization-table__row--large th,
    .organization-table__row--large td {
        padding: 0;
    }

    .organization-table th {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .organization-table td {
        display: flex;
        gap: 8px 22px;
    }

    .contact-card {
        height: auto;
        min-height: 238px;
        padding: 36px 32px;
    }

    .site-footer__copyright {
        height: auto;
        min-height: 74px;
        padding: 18px var(--side-pad);
        text-align: center;
    }

    .site-footer__copyright small {
        display: block;
        font-size: 11px;
        line-height: 1.45;
        max-width: 100%;
    }
}

@media (min-width: 744px) and (max-width: 1023px) {
    .sp-only {
        display: inline;
    }

    .news .section-frame--content {
        max-width: min(920px, calc(100% - 48px));
    }

    .news .section-heading-row {
        align-items: flex-start;
        display: flex;
        gap: 24px;
        justify-content: space-between;
    }

    .news__button {
        margin-top: 33px;
    }

    .news__grid {
        gap: clamp(20px, 2.5vw, 28px);
        margin-top: 36px;
    }

    .news-card {
        gap: 14px;
        height: auto;
        min-height: 118px;
        padding: 20px 18px;
    }

    .news-card__date {
        font-size: 16px;
    }

    .hero {
        --tablet-hero-height: clamp(560px, 70vw, 600px);
        --tablet-hero-search-width: clamp(310px, 34vw, 342px);
        height: var(--tablet-hero-height);
    }

    .hero__frame {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--tablet-hero-search-width);
        height: var(--tablet-hero-height);
        padding: clamp(30px, 4vw, 34px) 24px 0 clamp(36px, 5vw, 52px);
    }

    .hero__copy {
        max-width: clamp(330px, 45vw, 445px);
        padding-top: clamp(102px, 13vw, 126px);
    }

    .hero__title {
        font-size: clamp(32px, 4.2vw, 42px);
        line-height: 1.62;
    }

    .hero__lead {
        font-size: clamp(25px, 3vw, 31px);
        margin-top: 12px;
    }

    .hero-search {
        --hero-card-size: 124px;
        align-self: auto;
        border-radius: var(--radius-panel);
        height: clamp(506px, 61vw, 520px);
        margin-top: 0;
        min-height: 0;
        padding: 20px clamp(16px, 2.3vw, 28px) 24px;
        width: 100%;
    }

    .hero-search__title {
        font-size: clamp(22px, 2.5vw, 26px);
    }

    .hero-search__grid {
        gap: clamp(12px, 1.8vw, 16px) clamp(12px, 1.7vw, 18px);
        grid-template-columns: repeat(2, var(--hero-card-size));
        justify-content: center;
        margin-top: 18px;
    }

    .hero-search__card {
        grid-template-rows: clamp(48px, 5.8vw, 52px) auto auto;
        height: var(--hero-card-size);
        padding: 13px 6px 12px;
        width: var(--hero-card-size);
    }

    .hero-search__label {
        font-size: 16px;
        margin-top: 4px;
    }

    .hero-search__english {
        font-size: 14px;
        margin-top: 6px;
    }

    .hero-search__card--map .hero-search__icon {
        height: 44px;
        width: 44px;
    }

    .hero-search__card--outpatient .hero-search__icon {
        height: 36px;
        margin-top: 7px;
        width: 44px;
    }

    .hero-search__card--home-care .hero-search__icon {
        height: 42px;
        margin-top: 3px;
        width: 47px;
    }

    .hero-search__card--night .hero-search__icon {
        height: 36px;
        margin-top: 8px;
        width: 40px;
    }

    .hero-search__card--holiday .hero-search__icon {
        height: 40px;
        margin-top: 6px;
        width: 52px;
    }

    .hero-search__card--functions .hero-search__icon {
        height: 42px;
        width: 42px;
    }

    .hero__location {
        bottom: 23px;
        left: clamp(24px, 3.7vw, 38px);
    }

    .message {
        padding: clamp(70px, 8vw, 82px) 0 clamp(84px, 9vw, 96px);
    }

    .message__grid {
        display: grid;
        gap: clamp(28px, 4vw, 40px);
        grid-template-columns: clamp(312px, 40vw, 350px) minmax(0, 1fr);
        height: auto;
        padding-right: clamp(24px, 3.5vw, 32px);
    }

    .message__left {
        padding-top: 0;
    }

    .message__title {
        font-size: clamp(26px, 3.3vw, 30px);
        line-height: 1.72;
        margin-left: clamp(24px, 3.2vw, 34px);
        width: min(360px, calc(100% - clamp(24px, 3.2vw, 34px)));
    }

    .message__photo {
        height: clamp(210px, 28vw, 250px);
        margin-top: clamp(28px, 4vw, 36px);
        max-width: none;
    }

    .message__right {
        margin: 0;
        max-width: none;
        padding: clamp(4px, 1vw, 10px) 0 0;
        width: 100%;
    }

    .message__script {
        font-size: clamp(54px, 8vw, 72px);
        margin-left: 0;
    }

    .message__body {
        margin-top: clamp(20px, 3vw, 30px);
        max-width: none;
        width: 100%;
    }

    .message__signature {
        margin-top: clamp(38px, 5vw, 50px);
    }
}

@media (min-width: 821px) and (max-width: 1023px) {
    .news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1001px) and (max-width: 1023px) {
    .message__grid {
        gap: 36px;
        grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
    }

    .message__title {
        width: 390px;
    }
}

@media (max-width: 820px) {
    .news .section-heading-row {
        align-items: flex-start;
        display: flex;
        gap: 24px;
        justify-content: space-between;
    }

    .news__button {
        margin-top: 33px;
    }

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

@media (max-width: 743px) {
    :root {
        --header-height: 72px;
    }

    .sp-only {
        display: inline;
    }

    .site-header,
    .site-header__inner {
        height: var(--header-height);
    }

    .site-header__inner {
        align-items: center;
        padding: 0 0 0 16px;
    }

    .site-header__logo {
        margin-top: 0;
    }

    .site-header__menu-button {
        background-image: linear-gradient(rgba(78, 159, 199, 0.3), rgba(78, 159, 199, 0.3)), url("../images/header-contact-bg.png");
        background-position: center, center -45px;
        background-repeat: no-repeat;
        background-size: cover, 100% 168%;
        color: var(--color-white);
        gap: 8px;
        height: var(--header-height);
        width: var(--header-height);
    }

    .site-header__menu-line {
        width: 34px;
    }

    .is-drawer-open .site-header__menu-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .is-drawer-open .site-header__menu-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .site-header__menu-text {
        display: none;
    }

    .logo__legal {
        font-size: 16px;
        line-height: 1.35;
    }

    .logo__name {
        font-size: 16px;
        line-height: 1.45;
    }

    .logo__english {
        font-size: 10px;
        white-space: normal;
    }

    .drawer {
        padding: calc(var(--header-height) + 24px) 18px 32px;
    }

    .hero {
        --hero-media-height: 473px;
        --hero-search-height: 614px;
        --hero-sp-height: calc(var(--hero-media-height) + var(--hero-search-height));
        background: var(--color-white);
        height: var(--hero-sp-height);
    }

    .hero::before {
        background-position: center;
        background-size: cover;
        height: var(--hero-media-height);
        top: 0;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(0, 80, 120, 0.25) 0%, rgba(0, 80, 120, 0.1) 50%, rgba(14, 29, 36, 0) 100%);
        height: var(--hero-media-height);
        top: 0;
    }

    .hero__frame {
        display: block;
        height: var(--hero-sp-height);
        padding: 0;
    }

    .hero__copy {
        left: 37px;
        padding-top: 0;
        position: absolute;
        top: 71px;
        width: calc(100% - 74px);
    }

    .hero__title {
        font-size: 30px;
        letter-spacing: 0.06em;
        line-height: 1.8;
    }

    .hero__lead {
        font-size: 22.5px;
        margin-top: 14px;
    }

    .hero-search {
        --hero-card-col-gap: clamp(24px, 11.916vw, 51px);
        --hero-card-size: clamp(130px, 35.047vw, 150px);
        border-radius: 0;
        height: var(--hero-search-height);
        left: 50%;
        margin-top: 0;
        min-height: 0;
        padding: 25px 0 41px;
        position: absolute;
        top: var(--hero-media-height);
        transform: translateX(-50%);
        width: 100vw;
    }

    .hero-search__title {
        font-size: 24px;
        letter-spacing: 0.09em;
    }

    .hero-search__grid {
        gap: 18px var(--hero-card-col-gap);
        grid-template-columns: repeat(2, var(--hero-card-size));
        justify-content: center;
        margin-top: 27px;
    }

    .hero-search__card {
        border-radius: 10px;
        grid-template-rows: 52px auto auto;
        height: var(--hero-card-size);
        min-height: 0;
        padding: 14px 8px 14px;
        width: var(--hero-card-size);
    }

    .hero-search__card--map .hero-search__icon {
        height: 46px;
        width: 46px;
    }

    .hero-search__card--outpatient .hero-search__icon {
        height: 36px;
        margin-top: 6px;
        width: 44px;
    }

    .hero-search__card--home-care .hero-search__icon {
        height: 42px;
        margin-top: 3px;
        width: 47px;
    }

    .hero-search__card--night .hero-search__icon {
        height: 36px;
        margin-top: 7px;
        width: 40px;
    }

    .hero-search__card--holiday .hero-search__icon {
        height: 40px;
        margin-top: 5px;
        width: 52px;
    }

    .hero-search__card--functions .hero-search__icon {
        height: 42px;
        width: 42px;
    }

    .hero-search__label {
        font-size: 16px;
    }

    .hero-search__english {
        font-size: 16px;
        margin-top: 6px;
    }

    .hero__location {
        bottom: auto;
        font-size: 16px;
        height: 30px;
        left: auto;
        right: 14px;
        top: 425px;
        width: 99px;
    }

    .message__grid {
        padding-right: 0;
    }

    .message__photo {
        height: clamp(210px, 52vw, 250px);
    }

    .message__right {
        max-width: none;
        padding-left: var(--side-pad);
        padding-right: var(--side-pad);
    }

    .message__body {
        max-width: none;
    }
}

@media (min-width: 560px) and (max-width: 743px) {
    .hero {
        --hero-card-col-gap: clamp(24px, 5vw, 36px);
        --hero-search-height: 468px;
    }

    .hero-search__grid {
        grid-template-columns: repeat(3, var(--hero-card-size));
    }
}

@media (max-width: 480px) {
    :root {
        --side-pad: 18px;
    }

    body {
        letter-spacing: 0.04em;
    }

    .section-heading__script {
        font-size: 29px;
    }

    .section-heading__title {
        font-size: 28px;
    }

    .news {
        padding-bottom: 72px;
        padding-top: 58px;
    }

    .news .section-heading-row {
        display: grid;
        gap: 12px;
        grid-template-columns: max-content minmax(0, 220px);
    }

    .news__button {
        justify-self: end;
        width: 100%;
    }

    .news-card {
        gap: 16px;
        padding: 20px 18px;
    }

    .news-card__date {
        font-size: 16px;
    }

    .news-card__meta {
        gap: 8px 10px;
    }

    .news-card__tag {
        font-size: 12px;
        min-height: 26px;
        padding: 0 10px;
    }

    .news-card__title {
        font-size: 16px;
    }

    .news-card__arrow {
        margin-top: 0;
    }

    .message {
        padding-bottom: 70px;
        padding-top: 62px;
    }

    .message__title {
        font-size: 27px;
    }

    .message__photo {
        height: clamp(210px, 52vw, 250px);
    }

    .message__body {
        font-size: 16px;
        line-height: 1.78;
    }

    .message__signature {
        font-size: 16px;
    }

    .activities::before {
        height: 320px;
    }

    .activities__frame {
        padding-left: 18px;
        padding-right: 18px;
    }

    .activities__grid,
    .activity-card,
    .activity-card__media {
        width: min(324px, 100%);
    }

    .activity-card {
        --activity-media-size: min(324px, calc(100vw - 36px));
    }

    .activities__grid {
        margin-left: auto;
        margin-right: auto;
    }

    .activity-card__media {
        aspect-ratio: 1;
        height: auto;
    }

    .activity-card__title {
        font-size: 22px;
    }

    .activity-card__body {
        font-size: 16px;
        line-height: 1.75;
    }

    .organization {
        padding-left: 18px;
        padding-right: 18px;
    }

    .organization-table th,
    .organization-table td {
        font-size: 16px;
        line-height: 1.8;
    }

    .organization__button {
        max-width: 281px;
        width: 100%;
    }

    .contact {
        padding-left: 18px;
        padding-right: 18px;
    }

    .contact__lead,
    .contact-card__address,
    .contact-card__phone {
        font-size: 16px;
    }

    .contact-card__address-space {
        display: none;
    }

    .contact-card__address-sp-break {
        display: block;
    }

    .contact-card {
        padding: 30px 24px;
    }

}

@media (max-width: 360px) {
    .news .section-frame--content {
        max-width: 100%;
    }
}

.page-shell__hero {
    background: linear-gradient(90deg, rgba(44, 98, 124, 0.62), rgba(44, 98, 124, 0.16)), url("../images/hero-port-bg.jpg") center 38% / cover no-repeat;
    color: var(--color-white);
    min-height: 300px;
    padding: 86px var(--side-pad) 74px;
}

.page-shell__hero-inner {
    margin: 0 auto;
    max-width: var(--content);
}

.page-shell__script {
    font-family: var(--font-script);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
}

.page-shell__title {
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.45;
    margin-top: 12px;
}

.page-shell__content {
    margin: 0 auto;
    max-width: var(--content);
    padding: 76px var(--side-pad) 104px;
}

.page-shell__button {
    display: grid;
    margin: 42px auto 0;
}

.page-shell__button img {
    height: 15.2px;
    width: 7.675px;
}

.school-pharmacist,
.member-pharmacies {
    max-width: 1040px;
}

.member-pharmacies {
    max-width: 1100px;
}

.school-pharmacist__group + .school-pharmacist__group {
    margin-top: 58px;
}

.school-pharmacist__heading {
    border-left: 8px solid var(--color-main);
    color: var(--color-dark);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.45;
    padding-left: 18px;
}

.school-pharmacist__table-wrap,
.member-pharmacies__table-wrap {
    border: 1px solid rgba(78, 159, 199, 0.26);
    border-radius: var(--radius-card);
    margin-top: 24px;
    overflow: hidden;
}

.member-pharmacies__table-wrap {
    margin-top: 0;
}

.school-pharmacist-table,
.member-pharmacies-table {
    border-collapse: collapse;
    color: var(--color-dark);
    width: 100%;
}

.school-pharmacist-table th,
.school-pharmacist-table td,
.member-pharmacies-table th,
.member-pharmacies-table td {
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 1.7;
    padding: 17px 24px;
    vertical-align: middle;
}

.school-pharmacist-table th,
.member-pharmacies-table th {
    background: #eaf5f9;
    color: var(--color-main);
    font-weight: 700;
}

.school-pharmacist-table td,
.member-pharmacies-table td {
    border-top: 1px solid rgba(78, 159, 199, 0.2);
    font-weight: 500;
}

.school-pharmacist-table th:first-child,
.school-pharmacist-table td:first-child {
    width: 38%;
}

.school-pharmacist-table th:nth-child(2),
.school-pharmacist-table td:nth-child(2) {
    width: 36%;
}

.member-pharmacies-table th:first-child,
.member-pharmacies-table td:first-child {
    width: 32%;
}

.member-pharmacies-table th:nth-child(2),
.member-pharmacies-table td:nth-child(2) {
    width: 20%;
}

.member-pharmacies-table td {
    overflow-wrap: anywhere;
}

.member-pharmacies-table a,
.member-pharmacies-table a:visited {
    color: var(--color-main);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.member-pharmacies-table a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-archive__list {
    display: grid;
    gap: 18px;
}

.news-list-card {
    align-items: center;
    background: var(--color-bg);
    border-radius: var(--radius-card);
    display: grid;
    gap: 18px;
    grid-template-columns: 128px 116px minmax(0, 1fr);
    min-width: 0;
    min-height: 92px;
    padding: 22px 28px;
    transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.news-list-card__date {
    color: var(--color-main);
    font-family: var(--font-latin);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.news-list-card__tag {
    align-items: center;
    background: var(--color-white);
    border: 1px solid rgba(78, 159, 199, 0.32);
    border-radius: 999px;
    color: var(--color-main);
    display: inline-flex;
    font-size: 14px;
    justify-content: center;
    letter-spacing: 0.04em;
    max-width: 100%;
    min-height: 32px;
    padding: 0 14px;
    text-align: center;
}

.news-list-card__title {
    color: var(--color-dark);
    font-size: 17px;
    line-height: 1.7;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 48px;
}

.pagination .page-numbers {
    align-items: center;
    background: var(--color-bg);
    border-radius: 4px;
    color: var(--color-dark);
    display: inline-flex;
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    padding: 0 14px;
}

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

.news-single__article {
    background: var(--color-bg);
    border-radius: var(--radius-panel);
    padding: 48px 56px 58px;
}

.news-single__meta {
    align-items: center;
    color: var(--color-main);
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-latin);
    font-size: 16px;
    font-weight: 700;
    gap: 14px;
    letter-spacing: 0.06em;
}

.news-single__title {
    border-bottom: 1px solid rgba(78, 159, 199, 0.32);
    color: var(--color-dark);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.55;
    margin-top: 24px;
    padding-bottom: 28px;
}

.entry-content {
    color: var(--color-dark);
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 1.9;
}

.news-single__content {
    margin-top: 38px;
}

.entry-content > * + * {
    margin-top: 22px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--color-dark);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.55;
    margin-top: 42px;
}

.entry-content h2 {
    border-left: 5px solid var(--color-main);
    font-size: 26px;
    padding-left: 16px;
}

.entry-content h3 {
    border-left: 4px solid rgba(52, 79, 94, 0.28);
    color: var(--color-dark);
    font-size: 22px;
    padding-left: 14px;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--color-dark);
    font-size: 19px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
}

.entry-content li + li {
    margin-top: 8px;
}

.entry-content strong {
    color: var(--color-main);
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
    .news-list-card:hover,
    .pagination a.page-numbers:hover {
        background: #eaf5f9;
        box-shadow: 0 8px 26px rgba(34, 82, 105, 0.16);
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .page-shell__hero {
        min-height: 240px;
        padding-bottom: 60px;
        padding-top: 70px;
    }

    .page-shell__script {
        font-size: 34px;
    }

    .page-shell__title {
        font-size: 34px;
    }

    .page-shell__content {
        padding-bottom: 84px;
        padding-top: 58px;
    }

    .news-list-card {
        align-items: center;
        gap: 10px 14px;
        grid-template-columns: auto minmax(0, 1fr);
        justify-content: start;
        padding: 22px;
    }

    .news-list-card__tag {
        justify-self: start;
    }

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

    .school-pharmacist,
    .member-pharmacies {
        max-width: 100%;
    }

    .school-pharmacist__group + .school-pharmacist__group {
        margin-top: 42px;
    }

    .school-pharmacist__heading {
        border-left-width: 6px;
        font-size: 23px;
        padding-left: 14px;
    }

    .school-pharmacist-table thead,
    .member-pharmacies-table thead {
        display: none;
    }

    .school-pharmacist-table,
    .school-pharmacist-table tbody,
    .school-pharmacist-table tr,
    .school-pharmacist-table td,
    .member-pharmacies-table,
    .member-pharmacies-table tbody,
    .member-pharmacies-table tr,
    .member-pharmacies-table td {
        display: block;
        width: 100%;
    }

    .school-pharmacist-table tr,
    .member-pharmacies-table tr {
        padding: 18px 20px;
    }

    .school-pharmacist-table tr + tr,
    .member-pharmacies-table tr + tr {
        border-top: 1px solid rgba(78, 159, 199, 0.2);
    }

    .school-pharmacist-table td,
    .member-pharmacies-table td {
        border-top: 0;
        display: grid;
        gap: 12px;
        padding: 0;
    }

    .school-pharmacist-table td {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .member-pharmacies-table td {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .school-pharmacist-table th:first-child,
    .school-pharmacist-table td:first-child,
    .school-pharmacist-table th:nth-child(2),
    .school-pharmacist-table td:nth-child(2),
    .member-pharmacies-table th:first-child,
    .member-pharmacies-table td:first-child,
    .member-pharmacies-table th:nth-child(2),
    .member-pharmacies-table td:nth-child(2) {
        width: 100%;
    }

    .school-pharmacist-table td + td,
    .member-pharmacies-table td + td {
        margin-top: 8px;
    }

    .school-pharmacist-table td::before,
    .member-pharmacies-table td::before {
        color: var(--color-main);
        content: attr(data-label);
        font-weight: 700;
    }

    .news-single__article {
        padding: 32px 22px 38px;
    }

    .news-single__title {
        font-size: 26px;
    }
}
