/*
Theme Name: Merry Japan Tours Theme  
Theme URI: https://viTuan.com
Author: ViTuan
Author URI: https://viTuan.com
Description: Merry Japan Tours main template is designed by Vituan.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: Merry Japan Tours Theme
Tags: Merry Japan Tours
*/

@font-face {
    font-family: 'quadroneregular';
    src: url('./fonts/quadrone/quadroneregular-dorg9.woff2') format('woff2'),
        url('./fonts/quadrone/quadroneregular-dorg9.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'momentum';
    src: url('./fonts/momentum/momentum-regular.woff2') format('woff2'),
        url('./fonts/momentum/momentum-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'savigny';
    src: url('./fonts/savigny/savigny-light-norm.woff2') format('woff2'),
        url('./fonts/savigny/savigny-light-norm.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Navigation links */
.nav-link {

    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


:root {
    --main-color: #ff69b4;
    --main-color-light: #ff9ec7;
    --main-color-dark: #D15391;
    --secondary-color: #00BFA6;
}

body {
    background: #ededed;
    font-size: 17px; /* Base font size increased by 1px (from default 16px) */
}

/* loader */
#loading {
    width: 100vw;
    height: 100vh;
    transition: all 1s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
}

.loader {
    color: var(--first-color);
    font-size: 16px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    margin: 50vh auto;
    animation: mulShdSpin 1.3s infinite linear;
    transform: translateZ(0);
}

@keyframes mulShdSpin {

    0%,
    100% {
        box-shadow: 0 -3em 0 0.2em,
            2em -2em 0 0em, 3em 0 0 -1em,
            2em 2em 0 -1em, 0 3em 0 -1em,
            -2em 2em 0 -1em, -3em 0 0 -1em,
            -2em -2em 0 0;
    }

    12.5% {
        box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em,
            3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em,
            -2em 2em 0 -1em, -3em 0 0 -1em,
            -2em -2em 0 -1em;
    }

    25% {
        box-shadow: 0 -3em 0 -0.5em,
            2em -2em 0 0, 3em 0 0 0.2em,
            2em 2em 0 0, 0 3em 0 -1em,
            -2em 2em 0 -1em, -3em 0 0 -1em,
            -2em -2em 0 -1em;
    }

    37.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
            3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em,
            -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    50% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
            3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em,
            -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }

    62.5% {
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em,
            3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0,
            -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
    }

    75% {
        box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em,
            3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em,
            -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
    }

    87.5% {
        box-shadow: 0em -3em 0 0, 2em -2em 0 -1em,
            3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em,
            -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
    }
}

.text-main-color {
    color: var(--main-color) !important;
}

.text-secondary-color {
    color: var(--secondary-color) !important;
}

/* Header style */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    background-color: #ededed;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-top: 6px solid #00bfa6;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--main-color);
    font-size: 1.7rem;
    font-family: "quadroneregular", sans-serif;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    margin: 0 auto;
}

.logo:hover {
    color: var(--main-color);
}

.right-section {
    gap: 0.5rem;
    display: flex;
    align-items: center;
    flex: 1;
}

/* Header menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    z-index: 100;
    order: 3;
}

.menu {
    list-style: none;
    text-align: left;
    margin-bottom: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.menu-item {
    margin: 0.5rem 0;
}

.menu-item.active {
    background: var(--secondary-color);
}

.menu-item.active a {
    color: white;

}

.menu-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    color: #ff69b4;
    transition: background-color 0.3s;
}


.menu-link:hover {
    background: var(--secondary-color);
    color: white;
}

/* Header search*/
.search-container {
    position: relative;
    width: 200px;
    min-width: 200px;
    margin-left: auto;
    order: 2;
}

.search-box {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    transition: width 0.3s ease;
    text-align: center;
}

.search-box::placeholder {
    color: var(--secondary-color);
    opacity: 1;
}

.search-box:-ms-input-placeholder {
    color: var(--secondary-color);
}

.search-box::-ms-input-placeholder {
    color: var(--secondary-color);
}

.search-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    cursor: pointer;
}

/* Main content style */
.with-fixed-header {
    padding-top: 130px;
}

/* Only homepage banner has no padding, uses margin instead */
.home .with-fixed-header {
    padding-top: 0;
}

.main-banner {
    margin-top: 80px;
    position: relative;
}

/* Remove margin on homepage to eliminate gap */
.home .main-banner,
body.home .main-banner {
    margin-top: 0 !important;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--main-color);
    font-size: 5rem;
    font-family: "quadroneregular", sans-serif;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.banner-content img {
    height: 100px;
}

/* Banner Slider Styles */
.banner-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    pointer-events: none;
}

.banner-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.banner-slide.slide-out {
    position: absolute;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* Banner Navigation Dots */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.banner-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-dot.active {
    background-color: var(--main-color);
    border-color: var(--main-color);
    transform: scale(1.3);
}

.line {
    position: relative;
    width: 100%;
    height: 2px;
    background: transparent;
    margin: 0 auto;
}

.line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--main-color);
    transform: translateY(-50%);
}

.area-dropdown {
    cursor: pointer;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
}

.area-container {
    margin-top: 10px;
}

.area-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-start;
}

.area-container button,
.area-container a {
    width: calc((100% - 50px) / 6);
}

.btn-area {
    color: #fff;
    border-radius: 0;
    border: 1px solid var(--main-color);
    background: var(--main-color-light);
}

.btn-area.active,
.btn-area:hover {
    color: #fff;
    background: var(--main-color);
}

/* Tour section styles */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.top-about-section {
    display: block;
    position: relative;
    margin: 0;
    padding: 0 0 0 6rem;
}

.top-about-image {
    display: grid;
    grid-template-columns: 69% 30%;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.top-about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    height: 100%;
}

.top-about-text {
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 1rem 0;
    text-align: justify;
}

/* AREA: Desktop View: 3 items per row */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 100%;
}

.city-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.city-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 2rem;
}

.city-header i {
    font-size: 1.3rem;
}

.tour-title {
    color: var(--secondary-color);
    background: #f4f9cd;
    text-align: center;
    font-size: 1.7rem;
    text-decoration: none;
}

.tour-card {
    overflow: hidden;
}

.tour-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #ffbcbc;
    margin-bottom: 0.5rem;
}

.tour-content {
    padding: 0rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.tour-details,
.tour-info {
    position: relative;
    display: flex;
    min-height: 100%;
    white-space: pre-line;
    line-height: 1.6;
}

.more-link {
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--secondary-color);
    background: #f4f9cd;
    padding: 1px 3px;
    text-decoration: none;
}

.read-more-btn {
    background-color: #f4f9cd;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 2px 8px;
    font-size: 17px;
}

.read-more-btn:hover {
    background-color: var(--secondary-color);
    color: #FFF;
}

.share-section {
    text-align: center;
    margin: 1rem 0;
}

.share-title {
    text-transform: uppercase;
    color: #000;
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 5rem;
}

.social-icon {
    width: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-icon img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}

.back-to-top {
    font-size: 1.5rem;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    opacity: 0.8;
    font-weight: 600;
}


/* Footer style */
.footer {
    text-align: center;
    margin: 0 auto;
    padding: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    max-width: 1200px;
}

.footer-documents {
    text-align: center;
    margin: 20px auto 10px;
    font-size: 0.85rem;
}

.footer-documents a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-documents a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.footer-documents .separator {
    margin: 0 10px;
    color: #999;
}


.post-thumbnail {
    text-align: center;
    margin-bottom: 20px;
}

.post-thumbnail img {
    width: 600px;
    height: auto;
    border-radius: 10px;
}

.post-title {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
}

.post-title .title {
    font-size: 29px;
    text-align: center;
    color: white;
    background: var(--main-color);
    display: inline-block;
    padding: 10px 20px;
}


.post-content {
    font-size: 19px !important;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-body {
    font-size: 19px !important;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-info-title {
    background: var(--secondary-color);
    color: #fff;
    display: inline-block;
    padding: 5px 15px;
    text-align: center;
}

.post-info {
    margin: 10px 0;
    position: relative;
    display: flex;
    min-height: 100%;
    white-space: pre-line;
    line-height: 1.6;
    color: var(--secondary-color);
}

.book-now {
    text-align: center;
    margin: 20px 0;
}

.book-now-btn {
    background: var(--main-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 19px;
    border-radius: 5px;
}

.book-now-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

.related-posts {
    margin-top: 30px;
}

.related-posts-list {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Main Blog Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

.section-title {
    color: var(--secondary-color);
    font-size: 25px;
    margin: 15px 0 26px;
    text-align: center;
}

.blog-detail {
    position: relative;
    width: 100%;
}

.blog-detail-image {
    float: left;
    width: 60%;
    height: auto;
    margin-right: 20px;
    margin-bottom: 10px;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.single-blog-title {
    color: #fff;
    padding: 3px 10px;
    background: var(--main-color);
    margin-bottom: 10px;
    text-align: center;
}

.single-blog-title label {
    font-size: 1.25rem;
}

.blog-detail-content {
    word-wrap: break-word;
    color: var(--secondary-color);
}


/* Blog Grid */
.blog-grid-title {
    grid-template-columns: repeat(1, 1fr);
}

.blog-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Update just the blog post related styles */
.blog-post {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    height: 250px;
    /* Set fixed height for all blog posts */
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-image {
    position: relative;
    height: 200px;
    /* Fixed height for image container */
    overflow: hidden;
    flex: 1;
    /* Allow image container to fill available space */
}

.post-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.blog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, rgba(255, 77, 140, 0.9) 0%, rgba(255, 51, 102, 0.9) 100%);
    color: #fff;
    text-align: left;
    backdrop-filter: blur(3px);
    opacity: 0.8;
    height: 60px;
}


.blog-content a {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: normal;
    text-decoration: none;
}

/* Sidebar */
.blog-sidebar {
    width: 250px;
    padding: 0 0 0 20px;
}

/* New Post Section */
.new-post-section {
    margin-bottom: 20px;
}

.new-post-section .new-post-header {
    text-align: center;
}

.new-post-header h3 {
    color: #fff;
    font-size: 17px;
    padding: 10px 15px;
    background: var(--secondary-color);
    display: inline-block;
}

/* Category Section */
.category-section {
    margin-top: 20px;
}

.category-section .category-header {
    text-align: center;
}

.category-header h3 {
    color: #fff;
    font-size: 17px;
    padding: 10px 15px;
    background: var(--main-color);
    display: inline-block;
}

.category-title-link{
    color: var(--secondary-color);
    text-decoration: unset;
}

.blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar li {
    margin-bottom: 10px;
}

.blog-sidebar a {
    color: var(--secondary-color);
    font-size: 17px;
}

.blog-sidebar a:hover {
    color: var(--main-color);
}

/* Search Form */
.search-section {
    margin-top: 20px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 25px;
    background: #fff;
    border-bottom: 2px solid var(--secondary-color);
    padding: 8px;
}

.search-field {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

/* About style */
.about-card {
    padding: 1rem;
    margin-top: 20px;
    border: 2px solid #ff69b4;
    border-radius: 15px;
    position: relative;
    background-color: #fff;
}

.about-text {
    background: #ffff;
    position: absolute;
    left: -3.5rem;
    top: 8rem;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.about-text::after {
    content: "→";
    margin-left: 0.5rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 18px;
    height: 17px;
    background-color: #ededed;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn i {
    font-size: 23px;
    color: var(--secondary-color);
}

.about-header {
    margin: 0rem 0 1.5rem;
}

.company-name {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'momentum', sans-serif !important;
    letter-spacing: 1.5px;
    font-weight: 400 !important;
}

.content-wrapper-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.representative-name {
    color: var(--secondary-color);
    font-size: 2rem;
    font-family: 'momentum', sans-serif;
    letter-spacing: 4px;
}

.about-nav-links {
    display: flex;
    gap: 1rem;
}

.about-nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    height: auto;
}

.profile-content {
    flex: 1;
    color: var(--secondary-color);
}

.profile-content p {
    font-family: "savigny", sans-serif;
    font-weight: 600;
}

.paragraph-box h5,
.paragraph-box h6 {
    font-weight: 400 !important;
}

.paragraph-box p {
    margin-bottom: 1.5rem;
}

/* Mobile (under 768px) */
@media (max-width: 768px) {
    .logo img {
        height: 30px;
    }

    .logo {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .search-container{
        width: 130px;
        min-width: 130px;
    }

    .right-section {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-toggle {
        display: block;
        color: var(--secondary-color);
    }

    .menu {
        display: none;
        width: 60%;
        position: absolute;
        top: 100%;
        right: 0;
        box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 99;
        background-color: #fff;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .menu.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-item:not(.footer-menu-list .menu-item) {
        margin: 0 0 1px;
        background-color: var(--main-color);
    }

    .menu-link {
        width: 100%;
        color: white;
    }

    .with-fixed-header {
        padding-top: 101px;
    }

    .home .with-fixed-header,
    body.home .with-fixed-header {
        padding-top: 101px !important;
    }

    .main-banner {
        margin-top: 0;
    }

    .home .main-banner,
    body.home .main-banner {
        margin-top: 0 !important;
    }

    .banner-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        gap: 5px;
        color: var(--main-color);
        font-size: 1.0rem;
        font-family: "quadroneregular", sans-serif;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .banner-content img {
        height: 45px;
    }

    /* Mobile Banner Dots */
    .banner-dots {
        bottom: 10px;
        gap: 8px;
    }

    .banner-dot {
        width: 10px;
        height: 10px;
        border: 1.5px solid rgba(255, 255, 255, 0.8);
    }

    .top-about-section {
        padding: 0;
    }

    .top-about-image {
        grid-template-columns: 1fr;
    }

    .top-about-image img {
        width: 75%;
    }

    .welcome-text {
        font-size: 1.4rem;
        margin: 1.5rem 0;
    }

    .area-container button,
    .area-container a {
        width: calc((100% - 20px) / 3);
    }

    .top-about-section {
        flex-direction: column;
    }

    .tour-grid {
        grid-template-columns: 1fr;
    }

    .top-about-image {
        flex-direction: column;
    }

    .top-about-image img:nth-child(1) {
        display: none;
    }

    .top-about-image img {
        width: 100%;
    }

    .post-thumbnail img {
        width: 100%;
    }

    /* .blog-container {
        flex-direction: column;
    } */

    .blog-sidebar {
        width: 30%;
        padding: 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        margin: 0;
        padding: 0;
    }

    .sp-none {
        display: none;
    }

    .blog-detail-image {
        width: 55%;
        margin-right: 10px;
    }

    .single-blog-title label {
        font-size: 1rem;
    }

    .blog-detail-content img {
        max-width: 100%;
    }

    .back-to-top {
        font-size: 1rem;
    }

    /* About mobi style */
    .representative-name {
        font-size: 1.5rem;
    }

    .about-card {
        margin-top: 30px;
    }

    .about-text {
        display: none;
    }

    .content-wrapper {
        display: block;
        position: relative;
    }

    .content-wrapper::after {
        content: "";
        display: table;
        clear: both;
    }

    .profile-image {
        float: left;
        width: 40%;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }

    .profile-content {
        width: auto;
    }

    .profile-content p {
        margin-bottom: 1rem;
    }

    .profile-content p:nth-child(n+4) {
        width: 100%;
        clear: both;
    }
}

/* Tablet (769px ~ 1120px) */
@media (min-width: 769px) and (max-width: 1120px) {
    .modal-dialog {
        max-width: 90%;
    }

    .right-section {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-toggle {
        display: block;
        color: var(--secondary-color);
    }

    .menu {
        display: none;
        width: 60%;
        position: absolute;
        top: 100%;
        right: 0;
        box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 99;
        background-color: #fff;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .menu.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-item:not(.footer-menu-list .menu-item) {
        margin: 0 0 1px;
        background-color: var(--main-color);
    }

    .menu-link {
        width: 100%;
        color: white;
    }

    .with-fixed-header {
        padding-top: 65px;
    }

    .home .with-fixed-header,
    body.home .with-fixed-header {
        padding-top: 65px !important;
    }

    .main-banner {
        margin-top: 65px;
    }

    .home .main-banner,
    body.home .main-banner {
        margin-top: -65px !important;
    }

    .banner-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--main-color);
        font-size: 3rem;
        font-family: "quadroneregular", sans-serif;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .banner-content img {
        height: 70px;
    }

    .post-thumbnail img {
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tablet-none {
        display: none;
    }

    .blog-detail-image {
        width: 60%;
        margin-right: 10px;
    }

    .single-blog-title label {
        font-size: 1.2rem;
    }

    .single-blog-title {
        width: 38.95%;
    }

    .blog-detail-content img {
        max-width: 100%;
    }

    .about-text {
        display: none;
    }

    .tour-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC */
@media (min-width: 1120px) {
    .pc-none {
        display: none;
    }

    /* Desktop: Remove gap between menu and slider */
    .home main.with-fixed-header,
    body.home main.with-fixed-header {
        margin-top: 0 !important;
    }

    /* Adjust for logged-in users with admin bar on desktop */
    body.admin-bar.home main.with-fixed-header {
        margin-top: 0 !important;
    }
}

/* Video and Calendar Container */
.video-calendar-container {
    display: flex;
    gap: 20px;
    margin: 50px auto;
    max-width: 1200px;
    padding: 0 1rem;
    align-items: stretch;
}

.video-container {
    position: relative;
    flex: 1;
    min-height: 500px;
}

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

.calendar-container {
    flex: 1;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.calendar-container > * {
    width: 100%;
    flex: 1;
    margin: 0 !important;
    max-width: none !important;
}

/* Override calendar's own styles */
.calendar-container .styled-calendar-wrapper {
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .video-calendar-container {
        flex-direction: column;
    }

    .video-container {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        min-height: 0;
    }

    .calendar-container {
        width: 100%;
        min-height: 0;
    }
}

/* Wrapper gallary about top page */
.top-gallery-wrapper {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.top-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 930px;
    align-items: stretch;
}

.welcome-text {
    text-align: center;
    color: var(--secondary-color);
    margin: 1rem 0;
    font-size: 1.5rem;
    font-family: ui-serif, sans-serif;
    letter-spacing: 0.5px;
    grid-column: 1 / -1;
    width: 100%;
}

.top-gallery-left,
.top-gallery-right {
    display: contents;
}

.top-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.top-gallery img:hover {
    transform: scale(1.05);
}

.top-gallery-content {
    grid-column: 1 / -1;
    font-size: 17px;
    line-height: 1.4;
    color: #333;
    text-align: justify;
    color: var(--secondary-color);
    margin: 1rem 0;
}

.about-me-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 200px;
    min-width: 125px;
}

.about-me-btn a {
    background-color: white;
    padding: 10px 20px;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: all 0.3sease;
}

.about-me-btn a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 31px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* Gallery show more button */
.gallery-img-hidden {
    display: none;
}

.gallery-show-more-btn {
    grid-column: 1 / -1;
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 10px auto 0;
    border-radius: 4px;
    width: fit-content;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-show-more-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

@media (max-width: 768px) {
    .top-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .top-gallery-left,
    .top-gallery-right {
        display: contents;
    }

    .top-gallery img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .top-welcome-text {
        font-size: 1.2rem;
    }

    .top-gallery-wrapper {
        gap: 1px;
    }
    .about-me-btn {
        position: absolute;
        padding-top: 280px;
        right: 0;
        min-width: 0;
    }
    .about-me-btn a {
        padding: 10px 15px;
    }
}

.modal-content {
    border: 2px solid #ff69b4;
}

/* Submenu styles */
.menu-item {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 100%;
    z-index: 1000;
}

.menu-item:hover > .sub-menu {
    display: block;
}

.sub-menu .menu-item {
    margin: 0;
    border-bottom: 1px solid #eee;
}

.sub-menu .menu-item:last-child {
    border-bottom: none;
}

.sub-menu .menu-link {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    text-align: center;
}

/* Company Information Section */
.company-info-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary-color);
}

.company-info-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'momentum', sans-serif;
    letter-spacing: 2px;
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.company-info-table th,
.company-info-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
    color: var(--secondary-color);
}

.company-info-table th {
    background-color: #f4f9cd;
    font-weight: 600;
    width: 30%;
    vertical-align: top;
}

.company-info-table td {
    background-color: #fff;
    font-family: "savigny", sans-serif;
}

.company-info-table tr:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .company-info-table {
        font-size: 0.85rem;
    }

    .company-info-table th,
    .company-info-table td {
        padding: 8px 10px;
        display: block;
        width: 100%;
    }

    .company-info-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .company-info-table td {
        border-top: none;
        padding-top: 5px;
        margin-bottom: 10px;
    }
}

/* Footer Menu Styles */
.footer-menu-nav {
    margin: 20px 0;
    text-align: center;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.footer-menu-list li {
    margin: 0;
}

.footer-menu-list a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-menu-list a:hover {
    color: #00BFA6;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-menu-nav {
        margin: 15px 0;
    }

    .footer-menu-list {
        gap: 10px 20px;
    }

    .footer-menu-list a {
        font-size: 14px;
    }

    /* フッターメニューのアイテムは背景色なし */
    .footer .footer-menu-nav .footer-menu-list .menu-item {
        background-color: transparent !important;
        margin: 0 !important;
    }

    .footer .footer-menu-nav .footer-menu-list .menu-link {
        color: #666 !important;
        padding: 5px 10px !important;
        background-color: transparent !important;
    }

    .footer .footer-menu-nav .footer-menu-list .menu-link:hover {
        background-color: transparent !important;
        color: #00BFA6 !important;
    }

    .footer .footer-menu-nav .footer-menu-list .menu-item.active {
        background: transparent !important;
    }

    .footer .footer-menu-nav .footer-menu-list .menu-item.active .menu-link {
        color: #666 !important;
        background-color: transparent !important;
    }
}
