:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #00bcd4; /* Cyan */
    --dark-blue: #003d82;
    --text-color: #333;
    --background-color: #f4f7f6;
    --surface-color: #ffffff;
    --on-surface-color: #000000;
    --elevation-shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --elevation-shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

body {
    font-family: '游ゴシック体', YuGothic, '游ゴシック', 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 20px;
}

header.main-header {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--surface-color);
    padding: 20px;
    text-align: center;
    box-shadow: var(--elevation-shadow-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

header.main-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 500;
}

.header-logo {
    width: 60px;
    height: 60px;
    margin-right: 20px;
}

.animated-logo {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

nav.main-nav {
    background-color: var(--surface-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--elevation-shadow-2);
}

nav.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
}

nav.main-nav ul li {
    margin: 0 20px;
    position: relative;
}

nav.main-nav ul li a {
    color: var(--on-surface-color);
    text-decoration: none;
    font-weight: 500;
    padding: 22px 0;
    border-bottom: 4px solid transparent;
    transition: border-bottom-color 0.3s ease;
    display: flex;
    align-items: center;
}

nav.main-nav ul li a .material-icons {
    margin-right: 8px;
}

nav.main-nav ul li a:hover, nav.main-nav ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
    padding: 40px;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--elevation-shadow-1);
}

section h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

section h2 .material-icons {
    margin-right: 10px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5em;
    color: var(--dark-blue);
}

.page-subtitle {
    font-size: 1.2em;
    color: var(--text-color);
}

.service-category h3, .service-category h4 {
    font-size: 1.5em;
    color: var(--dark-blue);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.h3-dot {
    height: 8px;
    width: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.service-category ul {
    list-style-type: none;
    padding: 0 5px 0 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.service-category ul li {
    background-color: #e3f2fd;
    margin-top: 5px;
    margin-bottom: 1px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    border-bottom: 1px solid #ddd;
}

.service-category ul li:hover {
    background-color: #bbdefb;
    padding-left: 5%;
    transition: padding-left 0.3s ease
}

/* .service-category ul li.first-child {
    border-top: none;
} */

.service-category ul li:last-child {
    border-bottom: none;
    margin-bottom: 5px;
}

.service-category ul li .material-icons {
    margin-right: 10px;
    color: var(--primary-color);
}

.detailed-service-list li {
    background-color: #fff;
}

.nested-list {
    padding-left: 20px; /* Adjust this value as needed */
    list-style-type: none;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.nested-list li {
    background-color: #f1f8e9;
}

.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.list-toggle.active + .collapsible {
    max-height: 500px; /* Adjust as needed */
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-details, .map-container {
    flex: 1;
    min-width: 300px;
}

.qr-code-container {
    text-align: center;
    margin-top: 20px;
}

.qr-code-image {
    width: 150px;
    height: 150px;
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details .material-icons {
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.1em;
}

footer.main-footer {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--surface-color);
    text-align: center;
    padding: 20px;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header.main-header h1 {
        font-size: 2em;
    }

    section h2, .page-title {
        font-size: 1.5em;
    }

    .page-subtitle {
        font-size: 1em;
    }

    .service-category h3 {
        font-size: 1.2em;
    }

    nav.main-nav ul {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    nav.main-nav ul li {
        margin: 10px 0;
    }

    nav.main-nav ul li a {
        padding: 10px 0;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    header.main-header h1 {
        font-size: 1.8em;
    }

    section h2, .page-title {
        font-size: 1.3em;
    }

    .page-subtitle {
        font-size: 0.9em;
    }

    .service-category h3 {
        font-size: 1.1em;
    }

    section {
        padding: 20px;
    }
}
