/*
 * 西尾歯科医院
 * common.css
 *
 * Aパターン / 高級クリニック
 * 0ベース制作
 */

 
 /* ==================================================
   Reset
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    --brown: #705440;
    --brown-dark: #503b2c;
    --beige: #e5d5c3;
    --beige-light: #f5f0e9;
    --bg: #fdfbf8;
    --text: #5b5148;
    --muted: #93877b;
    --line: #e5ded6;
    --recruit_bg: #f8f5f0;
    --recruit_white: #ffffff;
    --recruit_brown: #594238;
    --recruit_brown_light: #866b5b;
    --recruit_beige: #e9ded1;
    --recruit_text: #514941;
    --recruit_muted: #82786e;
    --recruit_border: #e6ddd3;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: #4d4037;
    background: rgba(255, 253, 250);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.2em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    margin: 0;
    padding: 0;
    background: none;
    color: inherit;
}


/* ==================================================
   Color / Common
================================================== */

:root {
    --color_bg: #fffdfa;
    --color_bg_beige: #f6f2eb;
    --color_bg_deep: #eee8df;

    --color_text: #4d4037;
    --color_text_light: #81756c;

    --color_accent: #806c59;
    --color_accent_dark: #604d3d;

    --color_line: #ddd4ca;

    --content_width: 1180px;
}


/* ==================================================
   Header
================================================== */

.site_header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: rgba(255, 253, 250, 0.96);
    border-bottom: 1px solid rgba(128, 108, 89, 0.12);
}

.site_header_inner {
    width: min(calc(100% - 80px), var(--content_width));
    height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}


/* ==================================================
   Logo
================================================== */

.site_logo {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;

    color: var(--color_text);
    line-height: 1;
}

.site_logo_ja {
    font-family: "Noto Serif JP", serif;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.site_logo_en {
    margin-top: 7px;

    font-family: "Noto Sans JP", sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.28em;
    color: var(--color_text_light);
    white-space: nowrap;
}


/* ==================================================
   PC Navigation
================================================== */

.site_nav {
    margin-left: auto;
}

.site_nav_list {
    display: flex;
    align-items: center;
    gap: 30px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.site_nav_item {
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.site_nav_link {
    position: relative;

    display: inline-block;
    padding: 8px 0;

    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.site_nav_link::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 0;

    width: 0;
    height: 1px;

    background: var(--color_accent);

    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.site_nav_link:hover {
    color: var(--color_accent);
}

.site_nav_link:hover::after {
    width: 100%;
}


/* ==================================================
   Contact Button
================================================== */

.site_nav_contact_link {
    display: inline-flex;
    align-items: center;
    gap: 17px;

    min-height: 44px;
    padding: 0 22px;

    color: #fff;
    background: var(--color_accent);

    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.site_nav_contact_link:hover {
    background: var(--color_accent_dark);
    transform: translateY(-1px);
}

.site_nav_contact_arrow {
    font-size: 14px;
    line-height: 1;
}


/* ==================================================
   Mobile Menu Button
================================================== */

.menu_button {
    display: none;

    position: relative;
    width: 42px;
    height: 42px;

    cursor: pointer;
}

.menu_button_line {
    position: absolute;
    left: 8px;

    width: 26px;
    height: 1px;

    background: var(--color_text);

    transition:
        transform 0.3s ease,
        top 0.3s ease,
        opacity 0.3s ease;
}

.menu_button_line:nth-child(1) {
    top: 13px;
}

.menu_button_line:nth-child(2) {
    top: 21px;
}

.menu_button_line:nth-child(3) {
    top: 29px;
}


/*
 * JSで .is_open を付けたときの状態
 */
.menu_button.is_open .menu_button_line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.menu_button.is_open .menu_button_line:nth-child(2) {
    opacity: 0;
}

.menu_button.is_open .menu_button_line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}


/* ==================================================
   Mobile Menu
================================================== */

.mobile_menu {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    background: rgba(255, 253, 250, 0.98);
    border-bottom: 1px solid var(--color_line);
}

.mobile_menu_list {
    margin: 0;
    padding: 15px 24px 25px;

    list-style: none;
}

.mobile_menu_item {
    margin: 0;
    padding: 0;

    border-bottom: 1px solid var(--color_line);
}

.mobile_menu_item:last-child {
    border-bottom: 0;
}

.mobile_menu_link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 4px;

    font-family: "Noto Serif JP", serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.mobile_menu_contact {
    margin-top: 20px;
    border: 0;
}

.mobile_menu_contact_link {
    display: block;

    padding: 14px 20px;

    color: #fff;
    background: var(--color_accent);

    text-align: center;

    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
}


/* ==================================================
   Main
================================================== */

.site_main {
    width: 100%;
}


/* ==================================================
   Common Typography
================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
}

p {
    margin-top: 0;
}


/* ==================================================
   Responsive
================================================== */

@media screen and (max-width: 1100px) {

    .site_header_inner {
        width: min(calc(100% - 50px), var(--content_width));
        gap: 30px;
    }

    .site_nav_list {
        gap: 20px;
    }

    .site_nav_contact_link {
        padding: 0 17px;
    }

}


@media screen and (max-width: 900px) {

    .site_header_inner {
        height: 72px;
    }

    .site_nav {
        display: none;
    }

    .menu_button {
        display: block;
    }

    .mobile_menu.is_open {
        display: block;
    }

}


@media screen and (max-width: 600px) {

    .site_header_inner {
        width: calc(100% - 36px);
        height: 68px;
    }

    .site_logo_ja {
        font-size: 18px;
    }

    .site_logo_en {
        margin-top: 6px;
        font-size: 7px;
        letter-spacing: 0.24em;
    }

    .menu_button {
        width: 38px;
        height: 38px;
    }

    .menu_button_line {
        left: 6px;
        width: 26px;
    }

}


/* ==================================================
   Reduced Motion
================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

}


/* ==================================================
   共通パーツ
================================================== */

    .ndc-common-main {
        background: var(--bg);
        color: var(--text);
        font-size: 14px;
        line-height: 2;
        letter-spacing: .045em;
        overflow-wrap: anywhere;
    }
    .ndc-common-main *,
    .ndc-common-main *::before,
    .ndc-common-main *::after {
        box-sizing: border-box;
    }
    .ndc-common-main p {
        margin-top: 0;
        font-size: 16px;
        font-weight: 550;
    }
    .ndc-common-main a {
        color: inherit;
        text-decoration: none;
    }
    .ndc-common-hero {
        padding: 42px 24px;
        background: linear-gradient(120deg, #f5f0e9, #e9ded1);
        text-align: center;
    }
    .ndc-common-eyebrow {
        display: block;
        margin-bottom: 8px;
        color: var(--brown);
        font-family: Georgia, serif;
        font-size: 11px;
        letter-spacing: .22em;
        text-transform: uppercase;
    }
    .ndc-common-title {
        margin: 0;
        color: var(--brown-dark);
        font-family: "Yu Mincho", "Noto Serif JP", serif;
        font-size: clamp(28px, 3.5vw, 38px);
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: .12em;
    }

    .ndc-common-description {
        margin: 12px 0 0;
        color: var(--text);
        font-size: 13px;
    }
