:root {
/* 色の定義 */
    --neutral-light: #F4F1EC;
    --neutral-dark: #131E3D;
    --neutral-gray: #7A7A7A;

    --primitive-gold-l71: #694B1E;
    --primitive-gold-l47d31: #7E684A;
    --primitive-gold-l45d32: #8F672C;
    --primitive-gold-l31d48: #A18860;
    --primitive-gold-d77: #CDAD7D;
    --primitive-gold-d93: #DBBF94;
    --primitive-gold-d86: #E8D1AE;

    --dark-mode-background: var(--neutral-dark);
    --dark-mode-font1: var(--neutral-light);
    --dark-mode-font2: var(--primitive-gold-d77);
    --dark-mode-link-text: #ADD5FF;
    --dark-mode-link-visited: #FF86FF;
    --dark-mode-link-active: #FFBA94;
    --dark-mode-button-text: var(--neutral-dark);
    --dark-mode-button-default: var(--primitive-gold-d77);
    --dark-mode-button-hover: var(--primitive-gold-d93);
    --dark-mode-button-active: var(--primitive-gold-d86);
    --dark-mode-button-focus-outline: var(--neutral-light);
    --dark-mode-button-focus-shadow: var(--neutral-dark);
    --dark-mode-card-default: color-mix(in srgb, var(--neutral-dark), transparent 50%);
    --dark-mode-card-hover: var(--neutral-dark);

    --light-mode-background: var(--neutral-light);
    --light-mode-font1: var(--neutral-dark);
    --light-mode-font2: var(--primitive-gold-l45d32);
    --light-mode-link-text: #00118F;
    --light-mode-link-visited: #8B008B;
    --light-mode-link-active: #943500;
    --light-mode-button-text: var(--neutral-light);
    --light-mode-button-default: var(--primitive-gold-l31d48);
    --light-mode-button-hover: var(--primitive-gold-l47d31);
    --light-mode-button-active: var(--primitive-gold-l71);
    --light-mode-button-focus-outline: var(--neutral-dark);
    --light-mode-button-focus-shadow: var(--neutral-light);
    --light-mode-card-default: var(--primitive-gold-d77);
    --light-mode-card-hover: rgb(205 173 125 / 80%);
    --light-mode-semantic-success: #197A4B;
    --light-mode-semantic-error: #CE0000;
    --light-mode-semantic-warning: #856800;
}

/* フォントに関するスタイル */
.text-style-main-copy {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 57px;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--dark-mode-font2) !important;
}
.text-style-h1 {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.text-style-h2 {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 28px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}
.text-style-h3 {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.text-style-shoulder {
    font-family: "Libre Baskerville", serif;
    font-weight: 400; /* Regular */
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.02em;
}
.text-style-subtitle {
    font-family: "Noto Serif JP", serif;
    font-weight: 400; /* Regular */
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.02em;
}
.text-style-p-bold {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}
.text-style-p-regular {
    font-family: "Noto Serif JP", serif;
    font-weight: 400; /* Regular */
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}
.text-style-a-regular {
    font-family: "Noto Serif JP", serif;
    font-weight: 400; /* Regular */
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}
.text-style-button {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.02em;
}
.text-style-table-header {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: 0em;
}
.text-style-table-body {
    font-family: "Noto Serif JP", serif;
    font-weight: 400; /* Regular */
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: 0em;
}
.text-style-footer-bold {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}
.text-style-footer-regular {
    font-family: "Noto Serif JP", serif;
    font-weight: 400; /* Regular */
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* 共通の定義 */
* {
    box-sizing: border-box;
}
html {
    background-color: var(--light-mode-background);
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, blockquote, figure {
    margin: 0;
    padding: 0;
}
body {
    font-family: "Libre Baskerville", serif;
    color: var(--light-mode-font1);
}
input, button, textarea, select {
    color: var(--light-mode-font1);
    border: 1px solid var(--neutral-gray);
    border-radius: 3px;
}
button {
    cursor: pointer;
    padding: unset;
}

input[type="submit"] {
    background-color: var(--dark-mode-button-default);
    color: var(--dark-mode-button-text);
}
h2 {
    font-family: "Noto Serif JP", serif;
    font-weight: 700; /* Bold */
    font-size: 28px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}
p {
    font-family: "Noto Serif JP", serif;
    font-weight: 400; /* Regular */
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}
li {
    list-style: none;
    font-family: "Noto Serif JP", serif;
    font-weight: 400; /* Regular */
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}
a {
    text-decoration: underline;
    text-decoration-thickness: from-font;
    &:hover {
        text-decoration-thickness: 0.2rem;
    }
}
address {
    font-style: normal;
}
.dark-mode {
    background-color: var(--dark-mode-background);
    :focus {
        outline: none
    }
    :focus-visible {
        box-shadow: 0px 0px 0px 2px var(--dark-mode-button-focus-shadow);
        outline-offset: 2px;
        outline: 2px solid var(--dark-mode-button-focus-outline);
    }
    p, h1, h2, h3 {
        color: var(--dark-mode-font1);
    }
    a {
        color: var(--dark-mode-link-text);
        &:visited {
            color: var(--dark-mode-link-visited);
        }
        &:active {
            color: var(--dark-mode-link-active);
        }
    }
}
.light-mode {
    background-color: var(--light-mode-background);
    :focus {
        outline: none
    }
    :focus-visible {
        box-shadow: 0px 0px 0px 2px var(--light-mode-button-focus-shadow);
        outline-offset: 2px;
        outline: 2px solid var(--light-mode-button-focus-outline);
    }
    p, h1, h2, h3 {
        color: var(--light-mode-font1);
    }
    p.warning {
        color: var(--light-mode-semantic-warning);
    }
    p.text-style-shoulder {
        color: var(--light-mode-font2);
    }
    a {
        color: var(--light-mode-link-text);
        &:visited {
            color: var(--light-mode-link-visited);
        }
        &:active {
            color: var(--light-mode-link-active);
        }
    }
}
.min-h-100svh {
    min-height: 100svh;
}
.pt-4rem {
    padding-top: 4rem;
}
.container {
    padding: 0 4rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    min-width: 0;
}
.inner_container {
    padding: 5rem 0;
    flex: 1;
    min-width: 0;
}
.headings h1, .headings h2, .headings h3 {
    margin-bottom: 1rem;
}

/* コンポーネント */
a.button {
    min-width: 130px;
    min-height: 56px;
    padding: 1rem 2rem;
    border: 1px solid var(--neutral-gray);
    text-decoration: unset;
    display: flex;
    align-items: center;
}
.dark-mode a.button {
    background-color: var(--dark-mode-button-default);
    color: var(--dark-mode-button-text);
    &:hover {
        background-color: var(--dark-mode-button-hover);
    }
    &:active {
        background-color: var(--dark-mode-button-active);
    }
}
.light-mode a.button {
    background-color: var(--light-mode-button-default);
    color: var(--light-mode-button-text);
    &:hover {
        background-color: var(--light-mode-button-hover);
    }
    &:active {
        background-color: var(--light-mode-button-active);
    }
}
.card {
    border: 1px solid var(--neutral-gray);
    text-decoration: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    .card-icon svg {
        width: 90px;
        aspect-ratio: 1;
        color: var(--light-mode-font1);
    }
}
.dark-mode .card {
    background-color: var(--dark-mode-card-default);
    &:hover {
        background-color: var(--dark-mode-card-hover);
    }

}
.light-mode .card {
    background-color: var(--light-mode-card-default);
    &:hover {
        background-color: var(--light-mode-card-hover);
    }
}
.notification-banner {
    transition: all 1s ease;
    &.hidden {
        opacity: 0;
        visibility: hidden;
    }
    &:not(.hidden) {
        opacity: 1;
        visibility: visible;
    }
    width: 100%;
    height: 100svh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    .banner-contents {
        padding: 1.5rem;
        border-radius: 10px;
        border-width: 3px;
        border-style: solid;
        background-color: var(--light-mode-background);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        &.success {
            border-color: var(--light-mode-semantic-success);
            svg {
                color: var(--light-mode-semantic-success);
            }
        }
        &.error {
            border-color: var(--light-mode-semantic-error);
            svg {
                color: var(--light-mode-semantic-error);
            }
        }
        &.warning {
            border-color: var(--light-mode-semantic-warning);
            svg {
                color: var(--light-mode-semantic-warning);
            }
        }
        .banner-title-container {
            display: flex;
            justify-content: space-between;
            .banner-title {
                display: flex;
                align-items: center;
                gap: 1.5rem;
                svg.notification-icon {
                    width: 36px;
                    aspect-ratio: 1;
                }
            }
            button.banner-close {
                border: unset;
                background-color: unset;
                display: flex;
                align-items: center;
                gap: 0.25rem;
            }
        }
        p.banner-copy {
            padding-left: 60px;
        }
    }
}

/* ショートコード・テンプレート・共通ページ */
div.clinic-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    table {
        border-collapse: collapse;
        th, td {
            border: 1px solid var(--neutral-gray);
            text-align: center;
            align-content: center;
            padding: 5px;
        }
        th {
            padding: 12px 1em;
        }
        td {
            padding: 20px 1em;
        }
    }
}
header#entry-header {
    min-height: auto;
    padding-top: 4rem;
    div.headings {
        text-align: center;
    }
}
div#access {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    .clinic_info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }
    .access_map {
        iframe {
            width: 100%;
            height: 500px;
        }
    }
}
section#breadcrumb {
    min-height: auto;
    ol.breadcrumb-list {
        display: flex;
        gap: 0.5rem;
        li:not(:last-child)::after {
            content: ">";
            padding-left: 0.5rem;
        }
    }
}
body.error404 {
    section#main-section {
        .inner_container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    }
}
div.contact-form-7 {
    p, input {
        font-family: "Noto Serif JP", serif;
        font-weight: 400; /* Regular */
        font-size: 17px;
        line-height: 1.7;
        letter-spacing: 0.02em;
    }
}

@media screen and (max-width: 768px) {
    .card {
        aspect-ratio: 16 / 9;
    }
    .text-style-subtitle {
        line-height: 2;
    }
}

@media screen and (max-width: 480px) {
    .text-style-main-copy {
        font-family: "Noto Serif JP", serif;
        font-weight: 700; /* Bold */
        font-size: 28px;
        line-height: 1.5;
        letter-spacing: 0.01em;
    }
    .text-style-h1 {
        font-family: "Noto Serif JP", serif;
        font-weight: 700; /* Bold */
        font-size: 28px;
        line-height: 1.5;
        letter-spacing: 0.01em;
    }
    .text-style-h2 {
        font-family: "Noto Serif JP", serif;
        font-weight: 700; /* Bold */
        font-size: 24px;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
    .card {
        aspect-ratio: 1;
    }
    .container {
        padding: 0 1rem;
    }
    section {
        img.post-thumbnail {
            height: auto;
        }
    }
    section#clinic-hours {
        div.clinic-table-wrapper {
            overflow-y: hidden;
            overflow-x: scroll;
        }
    }
    .notification-banner {
        padding: 1rem;
        .banner-contents {
            padding: 1rem;
            .banner-title-container {
                .banner-title {
                    gap: 1rem;
                    svg.notification-icon {
                        width: 24px;
                    }
                }
                button.banner-close {
                    p {
                        display: none;
                    }
                }
            }
            p.banner-copy {
                padding-left: 40px;
            }
        }
    }
}