@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&display=swap');

:root {
    --key-color: #29A7E1;
    --text-color: #333;
    --background-color-light: #f9f9f9;
    --white: #fff;
    --border-color: #eee;
}

/* Basic Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--key-color);
}

h1,
h2,
h3 {
    font-weight: 300;
}

.sp {
    display: none;
}

@media (max-width: 767px) {
    .sp {
        display: inline;
    }
}

/* Header and Navigation */
.header {
    background: var(--white);
    padding: 0.5rem 2rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header__logo img {
    height: 60px;
    width: auto;
}

.header__nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

@media (max-width: 768px) {
    .header {
        padding: 0.25rem 1rem 0 1rem;
        /* Reduced padding for mobile */
    }

    .header__logo img {
        height: 40px;
        /* Reduced logo height for mobile */
    }

    .header__nav-links {
        position: absolute;
        left: 0;
        top: 45px;
        /* Adjusted top position to match new header height */
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .header__nav-links.is-active {
        max-height: 500px;
    }

    .header__nav-links li {
        padding: 1rem 0;
    }
}

.header__nav-link a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.header__nav-link a:hover {
    color: var(--key-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger__line {
        width: 25px;
        /* Further reduced width for mobile */
        margin: 2px 0;
        /* Further reduced margin for mobile */
    }

    .hamburger p {
        margin-top: 2px;
        /* Further reduced margin-top for mobile */
        font-size: 0.6rem;
        /* Further reduced font-size for mobile */
    }

    .hamburger.is-active .hamburger__line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.is-active .hamburger__line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active .hamburger__line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hamburger.is-active p {
        display: none;
        /* Hide menu text when hamburger is active */
    }
}

.hamburger__line {
    width: 40px;
    height: 2px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger p {
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
    overflow: hidden;
    height: calc(75vh - 60px);
    min-height: 70vh;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
        min-height: 60vh;
    }
}

.hero__slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 24s infinite;
}

.hero__slideshow .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 6s;
}

.slide:nth-child(3) {
    animation-delay: 12s;
}

.slide:nth-child(4) {
    animation-delay: 18s;
}

@keyframes fade {

    0%,
    35%,
    100% {
        opacity: 0;
    }

    10%,
    25% {
        opacity: 1;
    }
}

.hero__text-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.hero__text-box h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: "Hina Mincho", serif;
    font-weight: 400;
    font-style: normal;
}

@media (max-width: 768px) {
    .hero__text-box h1 {
        font-size: 2rem;
    }
}

.hero__text-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero__text-box p {
        font-size: 1rem;
    }
}

/* Buttons */
.btn {
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.btn--primary {
    background: var(--key-color);
    margin-top: 1rem;
}

.btn--primary:hover {
    background: #1f8ac7;
}

.btn--secondary {
    background: #555;
}

.btn--secondary:hover {
    background: #333;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.8rem;
    writing-mode: vertical-rl;
}

.scroll-down span {
    position: relative;
    padding: 10px 10px 30px 10px;
}

.scroll-down::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 20px;
    background: var(--white);
    animation: scrollAnime 1.5s ease-out infinite;
}

@keyframes scrollAnime {

    0%,
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform-origin: bottom;
    }
}

/* General Section Styling */
.section {
    padding: 4rem 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: var(--key-color);
}

@media (max-width: 768px) {
    .section__title {
        font-size: 1.8rem;
    }
}

.special-offers {
    max-width: 600px;
    margin: 3rem auto;
    padding: 1.5rem;
    background-color: var(--background-color-light);
    border: 2px dashed var(--key-color);
    border-radius: 8px;
    text-align: center;
}

.special-offers h3 {
    font-size: 1.8rem;
    color: var(--key-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--key-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .special-offers {
        padding: 1rem;
    }

    .special-offers h3 {
        font-size: 1.5rem;
    }
}

.highlight-text {
    background-image: linear-gradient(transparent 60%, #ffeb3b 60%);
    /* 蛍光マーカーのような背景 */
    padding: 0 0.2em;
    /* 蛍光マーカーの線の太さ */
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    /* notesとの間隔を調整 */
    display: block !important;
    /* 強制的にブロック要素にする */
    text-align: center !important;
    /* 強制的に中央寄せ */
    font-size: 1.2rem;
    /* フォントサイズ調整 */
    width: fit-content;
    /* テキストの幅に合わせる */
    margin-left: auto !important;
    /* 強制的に中央寄せ */
    margin-right: auto !important;
    /* 強制的に中央寄せ */
}

@media (max-width: 768px) {
    .highlight-text {
        font-size: 1rem;
        padding: 0 0.1em;
        margin-bottom: 1rem;
        /* notesとの間隔を調整 */
    }
}

.notes {
    text-align: center;
    margin-top: 1.5rem;
    /* highlight-textとの間隔を調整 */
    color: #e74c3c;
    font-weight: bold;
}

@media (max-width: 768px) {
    .notes {
        margin-top: 1rem;
    }
}

/* Service Section */
.service-items {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-items::after {
    content: "";
    flex-grow: 1;
    width: 30%;
}

.service-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.276);
    width: 32%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    gap: 1rem;
}

@media (max-width: 768px) {
    .service-item {
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.276);
        width: 48%;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        gap: 0.5rem;
    }
}

@media (max-width: 767px) {
    .service-item {
        width: 100%;
        /* flex-direction: column;
        text-align: center; */
    }
}

.service-item:last-of-type {
    flex-direction: column;
}

.service-item:last-of-type a {
    margin-top: 0 !important;
    background: var(--key-color);
}

.service-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.service-item-text {
    text-align: left;
    width: 100%;
}


.service-item h3 {
    margin-top: 0;
    font-size: 1rem;
}

.service-item p {
    margin-bottom: 1em;
    text-align: right;
}


/* Gallery Section */
.gallery-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gallery-images {
        width: 100%;
        height: auto;
    }
}

.gallery-images img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .gallery-images img {
        width: 100%;
        height: auto;
    }
}

/* Contact Section */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.contact-info__list {
    padding: 0;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {

    /* Combined from style.css and style2.css */
    .contact-info__list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.contact-info__list dt {
    font-weight: bold;
    text-align: right;
    width: 25%;
}


.contact-info__list dd {
    margin-left: 0;
    width: calc(75% - 1rem);
}

/* @media (max-width: 768px) {
    .contact-info__list dd {
        margin-left: 1rem;
    }
} */

.contact-info__map {
    height: 450px;
}

.contact-info__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-message {
    text-align: center;
    margin-top: 20px;
}

.contact-button-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 1rem;
    /* Added margin-bottom as requested */
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
}

/* Calendar Section */
#calendar {
    background-color: var(--background-color-light);
}

.calendar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.calendar-group {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    /* 2 calendars + gap */
}

.calendar-slider {
    display: flex;
    /* width is now set by JS */
    transition: transform 0.5s ease-in-out;
}

.calendar {
    flex: 0 0 calc(100% / 6 - 20px);
    /* Base for 6 calendars in total */
    box-sizing: border-box;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
}

.calendar-nav {
    background: var(--key-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 10px;
    flex-shrink: 0;
    /* Prevent buttons from shrinking */
}

.calendar-nav:hover:not(:disabled) {
    background-color: #1f8ac7;
}

.calendar-nav:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .calendar-container {
        max-width: 100%;
        padding: 0 5px;
        /* Add some padding to the container */
        box-sizing: border-box;
    }

    .calendar-group {
        max-width: calc(100% - 80px);
        /* Adjust for smaller buttons and margin */
    }

    .calendar {
        /* min-width: 100%; */
        /* This was causing the issue */
        flex: 0 0 calc(100% / 6 - 10px);
        /* Base for 6 calendars in total */

        padding: 1.5rem 1rem;
        margin: 0 5px;
        /* Reduce margin */
    }

    .calendar-nav {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        margin: 0 5px;
    }
}

.calendar__header {
    margin-bottom: 1.5rem;
}

.calendar__header h3 {
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar__grid div,
.calendar__day {
    text-align: center;
    padding: 0.8rem 0;
}

@media (max-width: 767px) {

    .calendar__grid div,
    .calendar__day {
        padding: 0.5rem 0;
        /* Reduce padding on mobile */
    }
}

.calendar .calendar__grid:first-of-type div {
    font-weight: bold;
}

.calendar__day {
    background-color: #f4f4f4;
    border-radius: 4px;
}

.calendar__day--today {
    background-color: var(--key-color);
    color: var(--white);
    font-weight: bold;
}

.calendar__day--close {
    background-color: #ffdddd;
    color: #e74c3c;
    /* text-decoration: line-through; */
}

.calendar__day--special {
    background-color: #fff1b3;
    color: #333;
}

.calendar__day--other-month {
    color: #ccc;
    background-color: #fafafa;
}

.calendar-legend {
    margin: 1rem auto;
    display: inline-block;
    text-align: left;
}

.calendar-legend p {
    margin: 0;
    padding: 0.25rem 0;
}

.calendar-legend__color-chip {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ffdddd;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.calendar-legend__color-chip--special {
    background-color: #fff1b3;
}

.calendar-pagination {
    text-align: center;
    margin-top: 1rem;
}

.calendar-pagination__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-pagination__dot.is-active {
    background-color: var(--key-color);
}

/* Animations */
.animate-on-load {
    animation: bgextendAnimeBase 1s forwards;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

@keyframes bgextendAnimeBase {
    to {
        opacity: 1;
    }
}

.animate-on-load__inner {
    animation: bgextendAnimeSecond 1s 0.6s forwards;
    opacity: 0;
}

@keyframes bgextendAnimeSecond {
    to {
        opacity: 1;
    }
}

.animate-on-load::before {
    animation: bgDUextendAnime 1s forwards;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--white);
}

@keyframes bgDUextendAnime {
    0% {
        transform-origin: bottom;
        transform: scaleY(0);
    }

    50% {
        transform-origin: bottom;
        transform: scaleY(1);
    }

    50.001% {
        transform-origin: top;
    }

    100% {
        transform-origin: top;
        transform: scaleY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Screen */
#loader-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

#loader-bg img {
    width: 200px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#loader-bg.is-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Menu Page Styles */
#menu-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    #menu-full {
        padding: 3rem 1rem;
    }
}

#menu-full h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.menu-category {
    margin-bottom: 2.5rem;
}

.menu-category h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--key-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.menu-category h3 small {
    font-size: 0.9rem;
    color: #666;
    margin-left: 1rem;
}

.menu-category ul {
    list-style: none;
    padding: 0;
}

.menu-category li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px dotted #ccc;
}

@media (max-width: 768px) {
    .menu-category li {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.menu-category li span:first-child {
    flex-basis: 70%;
}

.menu-category li span:last-child {
    font-weight: bold;
    color: #333;
    text-align: right;
}

.notes {
    text-align: center;
    margin-top: 3rem;
    color: #e74c3c;
    font-weight: bold;
}

/* Top Page Service Section Adjustment */
#services .cta-button {
    margin-top: 2rem;
    display: inline-block;
}

/* Google Map */
.map-container {
    margin-top: 2rem;
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 0;
    overflow: hidden;
    height: 450px;
    margin: 1rem auto;
}

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

/* About Page Styles */
#shop-introduction {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    #shop-introduction .shop-photo {
        width: 100%;
        height: auto;
    }
}

#shop-introduction .shop-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

#shop-introduction .shop-photo {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#shop-introduction .shop-text p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

#greeting {
    background-color: #fff;
}

@media (max-width: 768px) {
    #greeting .representative-info {
        padding: 0 1rem;
    }
}

#greeting .representative-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#greeting .representative-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#greeting h3 {
    font-size: 1.8rem;
    color: var(--key-color);
    margin-bottom: 1rem;
}

#greeting p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.8;
}

#staff-introduction {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    #staff-introduction .staff-list {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

#staff-introduction .staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.representative-info p {
    text-align: center;
}

.representative-info span,
.staff-list span {
    font-size: 0.8em;
}

#staff-introduction .staff-member {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

#staff-introduction .staff-member h3 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

#staff-introduction .staff-member p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
