@charset "UTF-8";

/* トップページ（各セクション）
   各項目内に「PC → タブレット → スマートフォン」の順で設定をまとめています。
   PCの指定は基本値で、該当する画面幅では直後の@media指定が上書きされます。 */

/* ============================================================
   01｜メインビジュアル（PC・スマホの画像領域）
   ============================================================ */

/* PC・共通（基本設定） */
.hero {
    width: 100%;
    aspect-ratio: 1000/550;
    background: var(--nh-color-hero-placeholder);
    overflow: hidden;
}

.hero picture, .hero img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero img {
    object-fit: cover;
    object-position: center bottom;
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
    .hero {
        aspect-ratio: 678/915;
    }

    .hero img {
        object-fit: cover;
        object-position: top center;
    }
}

/* ============================================================
   02｜左端の「中内学園」画像ボタン
   ============================================================ */

/* PC・共通（基本設定） */
.gogaku-link {
    position: fixed;
    z-index: 60;
    top: 170px;
    left: 0;
    display: block;
    width: 104px;
    text-decoration: none;
    line-height: 0;
}

.gogaku-link img {
    display: block;
    width: 100%;
    height: auto;
}

/* タブレット・小さめのPC（1300px以下） */
@media (max-width: 1300px) {
    .gogaku-link {
        width: 68px;
        top: 170px;
    }
}

/* タブレット・モバイルメニュー（1020px以下） */
@media (max-width: 1020px) {
    .gogaku-link {
        display: block;
        position: fixed;

        top: auto;
        bottom: 20px;
        left: 0px;

        width: 64px;
        z-index: 60;
    }
}

/* ============================================================
   03｜サカエ薬局：ページ上部の紹介
   ============================================================ */

/* PC・共通（基本設定） */
.intro {
    background: var(--nh-color-background);
    padding: 112px 0 105px;
}

.intro-inner {
    max-width: 690px;
}

/* 見出し・短い説明文を囲み、両方の下に横線を引く。 */
.intro-heading-group {
    max-width: 580px;
    margin: 0 auto 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--nh-color-border-subtle);
}

/* サカエ薬局の淡いロゴを見出しの背面に表示。
   front-page.phpの .intro-heading-group に has-sakae-bg があるときだけ表示。
   別サイトで不要なら、PHPから has-sakae-bg を削除する。
   画像は assets/img/sakae.png を使用する。 */
.intro-heading-group.has-sakae-bg {
    position: relative;
    isolation: isolate;
}

.intro-heading-group.has-sakae-bg::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -25px;
    left: 50%;
    width: 205px;
    height: 132px;
    transform: translateX(-50%);
    background: url("../img/sakae.png") center / contain no-repeat;
    opacity: .65;
    pointer-events: none;
}

.intro-heading-group.has-sakae-bg > * {
    position: relative;
    z-index: 1;
}

.intro-title {
    font-family: var(--nh-serif);
    font-weight: 400;
    letter-spacing: .22em;
    line-height: 1.55;
    text-align: center;
    font-size: 40px;
    margin: 0;
    color: var(--nh-color-heading);
}

.intro-lead {
    display: block;
    font-size: 20px;
    letter-spacing: .36em;
}

/* 見出しと横線の間に配置する短い説明文。 */
.intro-catch {
    margin: 22px auto 0;
    font-family: var(--nh-serif);
    font-size: 20px;
    line-height: 1.9;
    letter-spacing: .02em;
    text-align: center;
    color: var(--nh-color-text);
}

/* 上部の紹介本文。文章は front-page.php 内に直接記述する。 */
.intro-copy {
    max-width: 780px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 2.2;
    letter-spacing: .02em;
}

.intro-copy p {
    margin: 0 0 1.7em;
}

.intro-copy p:last-child {
    margin-bottom: 0;
}

/* タブレット・モバイルメニュー（1020px以下） */
@media (max-width: 1020px) {
    .intro {
        padding: 90px 0;
    }
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
    .intro {
        padding: 85px 0 80px;
    }

    .intro-title {
        font-size: 27px;
        max-width: 100%;
    }

    .intro-heading-group.has-sakae-bg::before {
        top: -12px;
        width: 150px;
        height: 96px;
    }

    .intro-lead {
        font-size: 12px;
    }

    .intro-catch {
        font-size: 14px;
        line-height: 1.9;
        margin-top: 16px;
    }

    .intro-heading-group {
        max-width: 100%;
        padding-bottom: 16px;
    }

    .intro-copy {
        font-size: 12px;
        line-height: 2.15;
    }
}

/* ============================================================
   04｜施設紹介（案内図）
   ============================================================ */

/* PC・共通（基本設定） */
.facility-section {
    background: var(--nh-color-background);
    padding: 100px 0 115px;
}

.facility-section .section-heading {
    margin-bottom: 62px;
}

.facility-map {
    max-width: 1050px;
    margin: 0 auto;
}

.facility-map img {
    display: block;
    width: 100%;
    height: auto;
}

/* タブレット・モバイルメニュー（1020px以下） */
@media (max-width: 1020px) {
    .facility-section {
        padding: 90px 0;
    }
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
    .facility-section {
        padding: 70px 0 85px;
    }

    .facility-section .section-heading {
        margin-bottom: 32px;
    }
}

/* ============================================================
   05｜ご利用案内（開館時間・予約ボタン）
   ============================================================ */

/* PC・共通（基本設定） */
.about-section {
    background: var(--nh-color-background);
    padding: 115px 0 110px;
}

.about-grid {
    display: grid;
    grid-template-columns: 36% minmax(0, 64%);
    gap: 0;
}

.about-grid .section-heading {
    padding-top: 8px;
}

.about-body {
    max-width: 710px;
    min-width: 0;
    font-size: 16px;
    line-height: 1.95;
}

.hours-summary {
    margin: 0 0 42px;
    padding: 14px 28px;
    background: var(--nh-color-surface-soft);
    border-left: 3px solid var(--nh-color-heading);
}

.hours-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 13px 0;
}

.hours-row + .hours-row {
    border-top: 1px solid var(--nh-color-border-panel);
}

.hours-row dt {
    flex: 0 0 5.4em;
    color: var(--nh-color-heading);
    font-size: 14px;
    font-weight: 600;
}

.hours-row dd {
    min-width: 0;
    margin: 0;
    font-size: 16px;
}

.reservation-required {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 9px;
    border: 1px solid var(--nh-color-border-label);
    border-radius: 2px;
    color: var(--nh-color-heading);
    font-family: var(--nh-sans);
    font-size: 11px;
    line-height: 1.7;
    vertical-align: 1px;
    white-space: nowrap;
}

.opening-notice,
.visit-notice {
    line-height: 1.95;
}

.opening-notice h3,
.visit-notice h3 {
    margin: 0 0 22px;
    padding-left: 14px;
    border-left: 3px solid var(--nh-color-heading);
    color: var(--nh-color-heading);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.5;
}

.opening-notice p,
.visit-notice p {
    margin: 0 0 18px;
    overflow-wrap: anywhere;
}

.opening-notice .notice-caution,
.visit-notice .notice-caution {
    margin-top: 24px;
    color: var(--nh-color-text-muted);
    font-size: 14px;
}

.visit-notice {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--nh-color-border-section);
}

.visit-notice .office-phone {
    margin: 26px 0;
    color: var(--nh-color-heading);
    font-size: 16px;
}

.office-phone a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.reserve-action {
    margin: 32px 0 0;
}

/* 予約フォームへのリンクボタンには共通の主要カラーを適用する。 */
.reserve-action .action-button {
    background: var(--nh-color-primary);
    border-color: var(--nh-color-primary);
    color: var(--nh-color-on-primary);
}

/* タブレット・モバイルメニュー（1020px以下） */
@media (max-width: 1020px) {
    .about-section {
        padding: 90px 0;
    }

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

    .about-grid .section-heading {
        padding-top: 0;
        margin-bottom: 42px;
    }

    .about-body {
        width: 100%;
        max-width: 710px;
        margin-inline: auto;
    }
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
    .about-section {
        padding: 80px 0;
    }

    .about-grid .section-heading {
        margin-bottom: 32px;
    }

    .about-body {
        font-size: 14px;
    }

    .hours-summary {
        margin-bottom: 36px;
        padding: 10px 16px;
    }

    .hours-row {
        gap: 12px;
        padding: 12px 0;
    }

    .hours-row dt {
        flex-basis: 5em;
        font-size: 13px;
    }

    .hours-row dd {
        font-size: 14px;
    }

    .opening-notice h3,
    .visit-notice h3 {
        margin-bottom: 19px;
        font-size: 17px;
    }

    .opening-notice p,
    .visit-notice p {
        margin-bottom: 16px;
    }

    .opening-notice .notice-caution,
    .visit-notice .notice-caution {
        font-size: 12px;
    }

    .visit-notice {
        margin-top: 30px;
        padding-top: 30px;
    }

    .visit-notice .office-phone {
        font-size: 14px;
    }
}

/* ============================================================
   06｜交通アクセス・地図
   ============================================================ */

/* PC・共通（基本設定） */
.access-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--nh-color-surface);
    min-height: 470px;
}

.access-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 35px;
}

.access-info-content {
    width: min(100%, 550px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.access-info .section-heading {
    align-self: center;
    margin-bottom: 52px;
}

.access-description {
    font-size: 13px;
    line-height: 2.2;
    margin: 0 0 35px;
}

.access-detail {
    display: inline-flex;
    align-items: center;
    gap: 23px;
    border: 1px solid var(--nh-color-primary);
    background: var(--nh-color-background);
    min-width: 195px;
    padding: 13px 25px;
    text-decoration: none;
    font-size: 13px;
}

.access-detail span {
    margin-left: auto;
    font-size: 22px;
    line-height: 1;
}

.map-embed {
    width: 100%;
    min-height: 470px;
    overflow: hidden;
    background: var(--nh-color-map-placeholder);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 470px;
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
    .access-section {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .access-info {
        padding: 68px 24px;
    }

    .access-info .section-heading {
        margin-bottom: 35px;
    }

    .access-description {
        font-size: 12px;
    }

    .map-embed,.map-embed iframe {
        min-height: 320px;
    }
}

/* ============================================================
   07｜右端の追従バナー（表示位置・個別の幅）
   ============================================================ */

/* PC・共通（基本設定） */
.side-banners {
    position: relative;
    top: auto;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    width: max-content;
    height: 0;
    margin: 12px 12px 0 auto;
}

.side-banner {
    display: block;
    width: 216px;
    line-height: 0;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.side-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.side-banner--1 {
    width: 216px;
}

.side-banner--2 {
    width: 216px;
}

.side-banner--3 {
    width: 216px;
}

/* position: sticky は、メインビジュアル直後を初期位置とし、
   スクロール時は上端から12pxの位置に追従します。
   個別の幅は .side-banner--1 などで変更してください。
   バナーの数や配列の表示順が変わっても、このCSSの共通設定はそのまま使えます。 */

/* タブレット・小さめのPC（1300px以下） */
@media (max-width: 1300px) {
    .side-banners {
        right: 10px;
    }
}

/* タブレット・スマートフォン用のフッター直前バナー */
.footer-banners {
    display: none;
}

/* タブレット・モバイルメニュー（1020px以下） */
@media (max-width: 1020px) {
    .side-banners {
        display: none;
    }

    .footer-banners {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 12px;
        padding: 44px 20px;
        background: var(--nh-color-background);
    }

    .footer-banners .side-banner {
        flex: 0 1 216px;
        width: 100%;
        min-width: 0;
    }
}

/* スマートフォン（767px以下） */
@media (max-width: 767px) {
    .footer-banners {
        gap: 8px;
        padding: 32px 12px 36px;
    }
}
