:root {
	--main-color: #a04040;
	--text-dark: #65553c;
	--text-light: #fff;
	--bg-gray: #f8f6f2;
	--accent: #ae3a25;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
    background-color: var(--bg-gray);
    font-size: 14px;
}

body {
	font-family: "Noto Sans JP", sans-serif;
	line-height: 1.6;
    letter-spacing: .08rem;
	color: var(--text-dark);
	background-color: var(--bg-gray);
}

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

h2 {
    font-family: "Noto Serif JP", serif;
    font-size: 1.857rem;
    font-weight: 500;
    line-height: 3.2rem;
}

h2 span {
    display: block;
}

.title-eng {
    font-family: "Inter", sans-serif;
	font-size: 0.857rem;
    font-weight: 600;
	color: var(--accent);
    letter-spacing: .1rem;
    display: inline-block;
    margin-bottom: 2rem;
}

p {
    line-height: 2.08rem;
}

span.block {
    display: block;
}

img {
    height: auto;
}


/* ----- ----- gloval ----- ----- */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

section {
	padding: 6rem 5%;
}

.description {
	line-height: 1.8;
}

.senko {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.senko.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ----- ----- header ----- ----- */
header {
	padding: 42px 5%;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
    transition: 0.3s;
}

header.scrolled {
    background-color: #fff;
	padding: 23px 5%;
    transition: 0.3s;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
	position: relative;
	margin: 0 auto;
}

header .logo {
    display: inline-block;
}

header .logo img {
    max-width: 250px;
    transition: 0.3s;
}

header.scrolled .logo img {
	max-width: 200px;
}

.header-buttons {
	position: absolute;
	right: 0;
	display: flex;
	gap: 20px;
}

.btn {
    display: flex;
    align-items: center;
    padding: 4px 10px;
	white-space: nowrap;
}

header .btn-line {
    font-size: 1.5rem;
}

header .btn-line:before {
    content: '';
    background-image: url(./images/line.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.btn-phone {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: .1rem;
    padding: 4px 24px 3px;
    border-radius: 20px;
    line-height: normal;
}

header .btn-phone {
	background-color: var(--accent);
    border: 1px solid var(--accent);
	color: #fff;
    font-size: 1.428rem;
    transition: 0.3s;
}

header .btn-phone:before {
    content: '';
    background-image: url(./images/tel1.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 21px;
    height: 21px;
    margin-right: 8px;
}


/* ----- ----- footer ----- ----- */
footer {
	background-color: #fff;
	text-align: center;
	padding: 40px 5% 0;
}

footer .footer-contact {
    margin: 2rem 0 4rem;
}

footer .logo {
    margin: 4rem 0 3rem;
}

footer .logo img {
    max-width: 200px;
}

footer .post-code {
    margin-right: 10px;
}

footer .btn-line {
    font-size: 1.571rem;
}

footer .btn-line:before {
    content: '';
    background-image: url(./images/line.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

footer .btn-phone:before {
    content: '';
    background-image: url(./images/tel2.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

footer .btn-wrapper {
    display: inline;
}

footer .btn-map {
    border: 1px solid var(--accent);
    border-radius: 15px;
    color: var(--accent);
    font-size: 10px;
    padding: 0px 7px 1px;
    margin-left: 10px;
    position: relative;
    bottom: 1px;
    transition: 0.2s;
}

footer .btn-map:hover {
    background-color: var(--accent);
    color: #ffffff;
}

footer .footer-contact .btn {
	font-size: 1.571rem;
    display: inline-flex;
	margin: 5px;
}

footer .copy {
    border-top: 1px solid #675738;
    margin: 0 calc(50% - 50vw);
    padding: 10px;
    width: 100vw;
}

/* ----- ----- hero ----- ----- */
.hero {
	padding: 0;
	position: relative;
	margin-top: 124px;
}

.hero-image {
    background-image: url('./images/main.webp');
	background-color: #ccc;
	background-size: cover;
	background-position: center;
	height: calc(100vh - 124px);
	position: relative;
    margin: 0 80px;
}

.hero-image::before {
	content: "";
	position: absolute;
	inset: 0;
	/* background: rgba(0, 0, 0, 0.2); */
}

.hero-text {
	position: relative;
	top: 12%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	padding: 0 60px;
	z-index: 2;
}

.hero-text h2 {
    font-family: "Noto Serif JP", serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: .3rem;
    line-height: 2.7rem;
}


/* ----- ----- intro ----- ----- */
.intro .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px;
    box-sizing: border-box;
}

.image-intro {
    position: relative;
    width: 50%;
    height: 392px;
}

.intro .row.reverse {
	flex-direction: row-reverse;
}

.intro .row .half {
	flex: 1;
	min-width: 300px;
}

.intro .text {
    padding: 4rem 0;
}

.intro h2 {
    margin-bottom: 2rem;
}

.box {
    position: absolute;
    width: 90%;
    height: 90%;
}

.gray {
    background-color: #e6e4dd;
    top: 30%;
    height: auto;
    width: 70%;
    left: -3%;
    z-index: 1;
    display: inline-block;
    aspect-ratio: 4 / 3;
    max-height: 280px;
}

.shadow {
    background-image: url(./images/intro.webp);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
    aspect-ratio: 4 / 3;
    top: 0;
    left: 8%;
    z-index: 2;
}


/* ----- ----- inside ----- ----- */
.inside {
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.inside .image {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
    aspect-ratio: 4 / 3;
}


/* ----- ----- service ----- ----- */
.service > h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.service h2 span {
    display: block;
}

.treatment-grid {
	display: grid;
    grid-template-columns: 1fr 1fr;
	gap: 20px;	
    max-width: 900px;
    margin: 6rem auto;
}

.treatment-box {
	background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.treatment-box .icon {
	min-width: 100px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
    aspect-ratio: 1 / 1;
}

.treatment-box h3 {
    font-family: "Noto Serif JP", serif;
    font-weight: 500;
}

.doctor {
    display: flex;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
	max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
    padding: 4rem 5rem;
}

.doctor .name {
    min-width: 270px;
}

.doctor span {
    display: block;
}

.doctor .hira {
    font-size: 1.857rem;
}

.doctor .kata {
    font-size: 0.857rem;
}


/* ----- ----- schedule ----- ----- */
.schedule-section {
	background-color: var(--accent);
	color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    gap: 30px;
    align-items: center;
    padding: 0;
}

.schedule {
    padding: 60px 70px;
    padding: 3rem 5rem;
}

.schedule-table {
	width: 100%;
	margin: 0 auto;
    margin-bottom: 2rem;
	border-collapse: collapse;
	text-align: center;
}

.schedule-table th,
.schedule-table td {
    font-size: 1.285rem;
    font-weight: 500;
    letter-spacing: .15rem;
	padding: 25px 10px;
	border-bottom: 1px solid #ffffff;
}

.schedule-table th {
	font-family: "Noto Serif JP", serif;
}

.schedule-table .senko {
	padding-left: 0;
    text-align: left;
}

.map {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    height: 0;
    min-height: 550px;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ----- ----- access ----- ----- */
.access-box {
    background: #5c4b34;
    color: #ffffff;
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 5%;
    margin: 0 auto;
    max-width: 600px;
}

.access > h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.access h2 span {
    display: block;
}

.illust-box {
    display: flex;
}

.map-image {
    flex: 2;
    /* display: flex;
    align-items: center;
    justify-content: center; */
    /* height: 500px; */
    margin-right: 20px;
    color: #ffffff;
}

.map-image img {
    width: 100%;
}

.map-photo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.photo-box {
    margin-bottom: 20px;
}

.access-title {
    margin-bottom: 5px;
    font-size: 14px;
}

.photo-link {
    position: relative;
    background-image: url(./images/main.webp);
    background-size: cover;
    background-position: center;
    width: 100%;
    aspect-ratio: 4 / 2.5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: transparent;
    font-size: 18px;
    overflow: hidden;
    transition: color 0.3s ease;
    cursor: zoom-in;
}

.photo-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.photo-link:hover::after {
    opacity: .7;
}

.photo-link:hover {
    color: #fff;
}

.photo-link span {
    position: relative;
    z-index: 1;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 99999;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox {
    cursor: zoom-out;
}


@media (min-width: 991px) {
    /* ----- ----- header ----- ----- */
    header .btn-phone:hover {
        background-color: var(--bg-gray);
        color:  var(--accent);
    }

    header.scrolled .btn-phone:hover {
        background-color: #ffffff;
        color:  var(--accent);
    }
    
}


@media (max-width: 1400px) {
    /* ----- ----- header ----- ----- */
    header .logo {
        justify-content: flex-start;
    }

    .header-container {
        justify-content: normal;
    }

}


@media (max-width: 1200px) {
    /* ----- ----- hero ----- ----- */
    .hero-text {
        padding: 0 40px;
    }


    /* ----- ----- schedule ----- ----- */
    header {
        padding: 42px 30px;
    }


    /* ----- ----- hero ----- ----- */
    .hero-image {
        margin: 0 30px;
    }


    /* ----- ----- hero ----- ----- */
    .gray {
        top: 34%;
    }


    /* ----- ----- schedule ----- ----- */
    .schedule-section {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 991px) {
    /* ----- ----- header ----- ----- */
    .header-container {
        justify-content: center;
    }

    header.scrolled {
        padding: 23px 30px;
    }

    header .logo {
        justify-content: center;
    }

    header .logo img {
        max-width: 200px;
    }

    .header-buttons {
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        background: #ffffff;
        transform: none;
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 1px;
    }

    .header-buttons a {
        background-color: var(--accent);
        color: #ffffff;
        font-size: 1.142rem;
        justify-content: center;
        line-height: 0;
        border-radius: 0;
        padding: 1rem 0;
        height: 100%; 
    }

    header .btn-line:before {
        background-image: url(./images/line_sp.png);
        width: 22px;
        height: 21px;
    }


    /* ----- ----- footer ----- ----- */
    footer .copy {
        margin-bottom: 51px;
    }


    /* ----- ----- service ----- ----- */
    .doctor {
        padding: 4rem 2rem;
    }

    .doctor .name {
        min-width: 190px;
    }


}


@media (max-width: 768px) {
    /* ----- ----- intro ----- ----- */
    footer .logo img {
        max-width: 200px;
    }


    /* ----- ----- intro ----- ----- */
    .intro .row {
        padding: 10px;
        gap: 0;
        flex-direction: column;
        align-items: center;
    }

    .intro .row .half {
        padding-top: 0;
        min-width: 100%;
    }

    .image-intro {
        max-width: 90%;
    }


    /* ----- ----- hero ----- ----- */
    .gray {
        top: 30%;
        left: 2%;
    }


    /* ----- ----- service ----- ----- */
    .treatment-grid {
        grid-template-columns: 1fr;
    }

    .doctor {
        display: block;
        padding: 4rem 2rem;
    }

    .doctor .name {
        min-width: auto;
        margin-bottom: 3rem;
    }


    /* ----- ----- schedule ----- ----- */
    .schedule {
        padding: 3rem 3rem;
    }

}


@media screen and (max-width: 600px) {
	.header-buttons {
		flex-direction: column;
		align-items: flex-end;
	}

	.hero-text h2 {
		font-size: 1.3rem;
	}
}


@media (max-width: 480px) {
    /* ----- ----- gloval ----- ----- */
    section {
        padding: 4rem 5%;
    }

    h2 {
        font-size: 1.614rem;
        line-height: 2.8rem;
    }


    /* ----- ----- header ----- ----- */
    header {
        padding: 10px 30px 10px;
    }

    header.scrolled {
        padding: 10px 30px;
    }

    header .logo img, header.scrolled .logo img {
        max-width: 150px;
    }

    /* ----- ----- footer ----- ----- */
    footer .logo img {
        max-width: 150px;
    }

    footer .btn-wrapper {
        display: block;
    }

    footer .btn-map {
        display: inline-block;
        margin: 1rem auto;
        line-height: normal;
    }


    /* ----- ----- hero ----- ----- */
    .hero {
        margin-top: 60px;
    }

    .hero-image {
        background-image: url('./images/main_sp.webp');
        height: 350px;
        margin: 0 20px;
    }

    .hero-text {
        top: 12%;
        padding: 0 20px;
    }

	.hero-text h2 {
		font-size: 1.142rem;
        line-height: 1.8rem;
	}

    /* ----- ----- intro ----- ----- */
    .image-intro {
        height: 300px;
    }

    .gray {
        top: 32%;
        left: 2%;
    }

    .shadow {
        left: 10%;
    }


    /* ----- ----- service ----- ----- */
    .doctor {
        display: block;
        padding: 4rem 0;
    }


    /* ----- ----- schedule ----- ----- */
    .schedule {
        padding: 3rem 2rem;
    }

    .schedule-table th, .schedule-table td {
        font-size: 1.142rem;
        padding: 25px 3px;
    }


    /* ----- ----- access ----- ----- */
    .access-box {
        display: block;
    }

    .map-image {
        margin-right: 0;
        margin-bottom: 50px;
    }

    a.photo-link {
        pointer-events: none;
    }

}