/* ========================================
   Reset CSS
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

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


/* ========================================
   基本 CSS
======================================== */
[id] {
    scroll-margin-top: clamp(9.531rem, 8.811rem + 1.31vw, 9.792rem);
}

html {
    font-size: 18px;
    color: #333333;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 0.05em;
}

body {
    font-size: 1rem;
    /* 18px */
}

main {
    padding-top: 156px;
}

section {
    padding: 75px 0;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

h1 {
    font-family: "Noto Serif JP", serif;
    font-weight: 900;
}

.top-h1 {
    font-size: clamp(1.6rem, 1rem + 1.5vw, 2rem);
    letter-spacing: 0.1px;
}

.top-h1 span {
    display: inline-block;
    font-size: 0.75em;
    letter-spacing: 0;
    font-weight: 650;
    margin-top: clamp(1.25rem, -0.895rem + 4.475vw, 3.3rem);
}

.sub-h1 {
    font-size: clamp(1.8rem, -0.326rem + 4.43vw, 3rem);
    letter-spacing: 0.1px;
}

h2 {
    font-family: "Noto Serif JP", serif;
    font-weight: 800;
}

.top-h2 {
    font-size: 1.75rem;
    margin-bottom: 50px;
}

.top-h2 span {
    font-size: 0.75em;
}

.sub-h2 {
    font-size: clamp(1.5rem, 0.26rem + 2.59vw, 2.2rem);
    border-bottom: solid 3px #e9ddd4;
    position: relative;
    padding-bottom: 2px;
}

.sub-h2:after {
    position: absolute;
    content: " ";
    display: block;
    border-bottom: solid 3px #C79A95;
    bottom: -3px;
    width: 20%;
}

h3 {
    font-family: "Noto Serif JP", serif;
}

.top-h3 {
    font-size: clamp(1.1rem, 0.7rem + 0.7vw, 1.2rem);
    margin-bottom: 15px;
}

.logo img {
    width: 250px;
    height: auto;
}

.sp-only {
    display: none !important;
}


/* ========================================
   header CSS
======================================== */
header,
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}

header.header--hidden,
#header.header--hidden {
    -webkit-transform: translateY(-100%);
}

.header__top {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    align-items: center;
}

.header__info {
    width: 80%;
    display: flex;
    justify-content: flex-end;
    gap: clamp(8px, 1.2vw, 15px);
    align-items: center;
}

.header__tel .tel {
    display: flex;
    align-items: center;
}

.header__tel .tel img {
    width: clamp(24px, 2vw, 35px);
    height: auto;
}

.header__tel .tel a {
    font-size: clamp(1.4rem, 1rem + 0.8vw, 2rem);
    font-weight: 700;
    line-height: 1;
}

.header__tel p {
    margin-top: 5px;
    text-align: center;
    font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.875rem);
    white-space: nowrap;
}

.header__contact {
    font-family: "Noto Serif JP", serif;
    font-weight: 800;
    background-color: #c79a95;
    padding: 15px clamp(15px, 2.5vw, 40px);
    border-radius: 5px;
    transition: opacity 0.3s ease;
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1rem);
    white-space: nowrap;
}

.header__contact:hover {
    opacity: 0.75;
}

#srchInput,
#srchBtn {
    height: 30px;
}

#srchInput {
    width: 150px;
}

.hamburger {
    display: none;
}

.header__nav ul {
    margin: 10px 0;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    font-size: clamp(1rem, 0.8rem + 0.5vw, 1.3rem);
    font-weight: 500;
}

.header__nav a {
    padding: 0 clamp(10px, 2vw, 30px);
    border-right: 2px solid #333333;
    transition: color 0.3s ease;
}

.header__nav a:first-child {
    padding: 0;
    border-right: none;
}

.header__nav a:nth-child(2) {
    padding-left: 0;
}

.header__nav a:last-child {
    padding-right: 0;
    border-right: none;
}

.header__nav a:hover {
    color: #c79a95;
}



/* ========================================
   contact CSS
======================================== */
.contact {
    font-family: "Noto Serif JP", serif;
    background-color: #c79a95;
    color: #fff;
    padding: clamp(40px, 5vw, 80px) 0;
}

.contact__info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 6.5vw, 130px);
    margin-top: 50px
}

.contact__tel .tel {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 15px);
    transition: opacity 0.3s ease;
}

.contact__tel .tel img {
    width: clamp(30px, 2.2vw, 40px);
    height: auto;
}

.contact__tel .tel a {
    font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.contact__tel p {
    font-size: clamp(0.95rem, 0.8rem + 0.35vw, 1.2rem);
    font-weight: 500;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
}

.contact__contact {
    color: #333333;
    font-weight: 800;
    background-color: #fff;
    padding: 20px clamp(25px, 3.2vw, 60px);
    font-size: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 7px 1px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.contact__contact:hover {
    box-shadow: 0 7px 14px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.contact__tel .tel:hover {
    opacity: 0.75;
}



/* ========================================
   footer CSS
======================================== */
footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.75;
}

.footer__main {
    background-color: #e9ddd4;
    padding: 50px 0;
}

.footer__nav {
    margin-top: 50px;
}

.footer__nav-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    row-gap: 50px;
    column-gap: 20px;
    padding-bottom: 50px;
}

.footer__nav-list>li {
    width: clamp(260px, 30%, 320px);
}

.js-accordion-title {
    padding-left: 5px;
    font-weight: 500;
}

.footer__nav-sublist {
    display: block;
    border-top: #333333 solid 1px;
    width: 100%;
    max-width: 280px;
    margin-top: 10px;
    padding-top: 5px;
}

.footer__nav-sublist li {
    padding-left: 5px;
}

.js-accordion-title::after {
    display: none;
}

.footer__line {
    width: 150px;
    margin: auto;
}

.footer__bottom {
    padding: 20px 0 30px;

}

.footer__bottom p {
    text-align: center;
}

.footer__related-list {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.footer__related-list li {
    padding: 0 30px;
    border-right: 2px solid #333333;
}

.footer__related-list li:first-child {
    padding-left: 0;
}

.footer__related-list li:last-child {
    padding-right: 0;
    border-right: none;
}

.footer__copyright {
    margin-top: 30px;
    font-size: 0.8rem;
}


/* ========================================
   トップへ戻るボタン
======================================== */
.pagetop {
    position: fixed;
    right: 40px;
    bottom: 100px;
    z-index: 90;
    width: 48px;
    height: 48px;
    background-color: #c79a95;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.pagetop.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pagetop:hover {
    background-color: #b0837e;
    transform: translateY(-2px);
}

.pagetop__arrow {
    display: block;
    width: 10px;
    height: 10px;
    margin: 3px auto 0;
    border-top: 2.5px solid #fff;
    border-right: 2.5px solid #fff;
    transform: rotate(-45deg);
}


/* ========================================
   サブページファーストビュー
======================================== */
.page-header {
    position: relative;
    padding: 0;
}

.page-header img {
    display: block;
    width: 100%;
    height: auto;
}

.page-header__text {
    font-family: "Noto Serif JP", serif;
    position: absolute;
    top: 13%;
    left: clamp(6%, 6vw, 12%);
}

.breadcrumb {
    font-size: 0.8rem;
    position: absolute;
    bottom: 7%;
    right: clamp(6%, 6vw, 12%);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__item+.breadcrumb__item::before {
    content: ">";
    margin: 0 8px;
    color: #888;
}

.breadcrumb__item a {
    color: #990000;
}




/* ========================================
   SP レスポンシブ
======================================== */
@media screen and (max-width: 767px) {

    /* --------------------基本-------------------- */
    [id] {
        scroll-margin-top: 70px;
    }

    html {
        font-size: 17px;
        letter-spacing: 0.05em;
    }

    main {
        padding-top: 60px;
    }

    section {
        padding: 50px 0;
    }

    .top-h1 {
        font-size: clamp(1.17rem, 0.466rem + 3.417vw, 2.1rem);
    }

    .top-h1 span {
        margin-top: clamp(1.4rem, 0.794rem + 2.936vw, 2.2rem);
    }

    .sub-h1 {
        font-size: clamp(1.5rem, 1.273rem + 1.1vw, 1.8rem);
    }

    .top-h2 {
        font-size: clamp(1.2rem, 0.73rem + 2.24vw, 1.75rem);
        margin-bottom: 40px;
    }

    .sub-h2 {
        font-size: clamp(1.25rem, 1.061rem + 0.92vw, 1.5rem);
    }

    .top-h3 {
        font-size: clamp(1.1rem, 0.93rem + 0.81vw, 1.3rem);
    }

    .logo img {
        width: 150px;
    }

    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block !important;
    }

    /* --------------------header-------------------- */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        background: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 101;
        /* Safari対策：描画レイヤーを強制的に固定化 */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .hamburger__lines {
        position: relative;
        width: 28px;
        height: 16px;
    }

    .hamburger__lines span {
        display: block;
        width: 100%;
        height: 1.9px;
        background-color: #c79a95;
        position: absolute;
        left: 0;
        transition: transform 0.5s ease, top 0.5s ease, opacity 0.5s ease;
        /* Safari対策：GPUレイヤーの再計算バグを防ぐ */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform, top, opacity;
    }

    .hamburger__lines span:nth-child(1) {
        top: 0;
    }

    .hamburger__lines span:nth-child(2) {
        top: 8px;
    }

    .hamburger__lines span:nth-child(3) {
        top: 16px;
    }

    .hamburger.is-open .hamburger__lines span:nth-child(1) {
        top: 8px;
        transform: rotate(45deg);
    }

    .hamburger.is-open .hamburger__lines span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-open .hamburger__lines span:nth-child(3) {
        top: 8px;
        transform: rotate(-45deg);
    }

    .hamburger__text {
        font-size: 9px;
        font-weight: bold;
        line-height: 1;
        margin-top: 4px;
        color: #c79a95;
        letter-spacing: 0.5px;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    header:has(.is-open) {
        transform: none !important;
    }

    .header__drawer {
        position: fixed;
        top: 0px;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        padding: 60px 10%;
        pointer-events: none;
        background-color: #f2f2f2;
        opacity: 0;
        visibility: hidden;
        transition: background-color 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
        z-index: 100;
        overscroll-behavior: contain;
    }

    .header__drawer.is-open {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }

    .header__nav ul {
        display: block;
        padding: 0;
        font-size: 1.1rem;
    }

    .header__nav a {
        display: block;
        border-right: none;
        padding: 18px 10px;
        border-bottom: 2px solid #e6e6e6;
    }

    .header__nav a:first-child,
    .header__nav a:nth-child(2) {
        padding: 18px 10px;
    }

    .header__drawer .header__info {
        width: 100%;
        padding-top: 40px;
        text-align: center;
    }

    .header__tel .tel {
        justify-content: center;
    }

    .header__contact {
        margin: 20px 0 40px;
        box-shadow: 0 4px 7px 1px rgba(0, 0, 0, 0.4);
    }



    /* --------------------contact-------------------- */
    .contact__info {
        flex-direction: column;
        gap: 30px;
    }

    .contact__tel .tel {
        justify-content: center;
    }

    .contact__tel .tel img {
        width: 35px;
    }

    .contact__tel .tel a {
        font-size: 2.1rem;
        letter-spacing: 0.02em;
    }

    .contact__tel p {
        font-size: 1.1rem;
    }

    .contact__contact {
        text-align: center;
        margin-top: 0;
    }

    .contact__contact:hover {
        transform: none;
    }



    /* --------------------footer-------------------- */
    .footer__nav-list {
        display: block;
    }

    .footer__nav-list>li {
        width: 100%;
    }

    .js-accordion-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 5px;
        cursor: pointer;
        border-bottom: 1px solid #333333;
    }

    .js-accordion-title::after {
        display: inline-block;
        content: "+";
        font-size: 18px;
        font-weight: normal;
        transition: transform 0.3s ease;
    }

    .js-accordion-title.is-open::after {
        content: "\2212";
        position: static;
        width: auto;
        height: auto;
        border: none;
    }

    .footer__nav-sublist {
        display: block;
        width: 100%;
        max-width: 100%;
        border-top: none;
        margin-top: 0;
        padding: 0 0 0 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    }

    .footer__nav-sublist li {
        padding: 5px 0;
    }

    .js-accordion-title.is-open+.footer__nav-sublist {
        padding-top: 10px;
        padding-bottom: 15px;
    }

    .footer__related-list {
        font-size: 0.77rem;
    }

    .footer__related-list li {
        padding: 0 5px;
        border-right: 1px solid #333333;
    }

    .footer__copyright {
        font-size: 0.6rem;
    }


    /*トップへ戻るボタン*/
    .pagetop {
        right: 15px;
        bottom: 40px;
        width: 44px;
        height: 44px;
    }
}