:root {
    --color-primary: #308988;
    --color-primary-dark: #2a7675;
    --color-secondary: #ff6b6b;
    --color-secondary-dark: #ee5a6f;
    --color-white: #fff;
    --color-bg-light: #f8fafa;
    --color-text: #333;
    --color-text-light: #555;
    --color-border: #f0f0f0;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.site-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    padding: 0 25px;
    margin-bottom: 50px;
    line-height: 1.4;
}

.hamburger {
    display: none;
}

nav {
    flex: 1;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    padding: 18px 25px;
    display: block;
    transition: background-color 0.3s, padding-left 0.3s;
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--color-white);
    transition: right 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 35px;
    border-left-color: var(--color-secondary);
}

nav a:hover::after {
    right: 15px;
}

.main-content {
    margin-left: 280px;
}

.hero-slider {
    position: relative;
    height: 100vh;
    max-height: 700px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 8s ease-out forwards;
}

.slide.active .slide-bg {
    animation: zoomIn 8s ease-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    width: 90%;
    max-width: 800px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.7);
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    opacity: 0;
}

.slide.active .slide-content h1 {
    animation: slideInLeft 1s ease-out 0.3s forwards;
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.slide.active .slide-content p {
    animation: slideInRight 1s ease-out 0.6s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-white);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--color-secondary);
    width: 0;
    transition: width 0.1s linear;
    z-index: 10;
}

.fixed-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.cta-button {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    transition: transform 0.3s, filter 0.3s;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.05em;
    filter: drop-shadow(0 4px 10px rgba(255, 107, 107, 0.3));
}

.cta-button:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 6px 15px rgba(255, 107, 107, 0.4));
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
    font-weight: bold;
    position: relative;
    padding-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--color-primary);
}

.services-section {
    background-color: var(--color-white);
}

.service-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 50px;
}

.menu-item {
    background: var(--color-bg-light);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--color-primary);
    transition: transform 0.3s, background-color 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-item h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--color-border);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.service-card p {
    line-height: 1.8;
    color: var(--color-text-light);
}

.flow-section {
    background-color: var(--color-bg-light);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.flow-step {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    border-top: 4px solid var(--color-primary);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.flow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 auto 1.2rem;
}

.flow-step h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.flow-step p {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 0.9rem;
}

.policy-section {
    background-color: var(--color-white);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.policy-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.8rem;
}

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

.policy-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.about {
    background-color: var(--color-bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.director-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    text-align: center;
}

.director-photo {
    margin-bottom: 1.5rem;
}

.director-photo-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
}

.director-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
}

.director-name {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--color-primary);
    font-weight: bold;
}

.director-name ruby {
    font-size: 1.6rem;
}

.director-name rt {
    font-size: 0.75rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.credential-badge {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 2px solid var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.about-text {
    line-height: 1.9;
    color: var(--color-text-light);
}

.about-text p {
    margin-bottom: 1.2rem;
}

.access-section {
    background-color: var(--color-white);
}

.access-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}

.access-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.access-info h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.access-info p {
    margin: 0.6rem 0;
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.access-info .address {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item strong {
    color: var(--color-primary);
    display: inline-block;
    min-width: 70px;
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.icon-mobile {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23308988' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3C/svg%3E");
}

.icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23308988' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.icon-fax {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23308988' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M4 11V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5'/%3E%3Cline x1='6' y1='4' x2='6' y2='8'/%3E%3Cline x1='10' y1='4' x2='10' y2='8'/%3E%3Cline x1='14' y1='4' x2='14' y2='8'/%3E%3Cline x1='18' y1='4' x2='18' y2='8'/%3E%3C/svg%3E");
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    transition: transform 0.3s, filter 0.3s;
    position: relative;
    padding-left: 3rem;
}

.contact-btn::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.phone-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.email-btn {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
}

.email-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 2rem 0;
    margin-left: 280px;
}

@media (max-width: 1024px) {
    .site-header {
        width: 100%;
        height: auto;
        padding: 1rem 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .logo {
        margin-bottom: 0;
        padding: 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--color-white);
        margin: 3px 0;
        transition: 0.3s;
    }

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

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

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

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-primary);
        padding-top: 80px;
        transition: right 0.3s;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        padding: 20px 0;
    }

    nav li {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    nav a {
        padding: 18px 25px;
    }

    .main-content {
        margin-left: 0;
    }

    .site-footer {
        margin-left: 0;
    }

    .hero-slider {
        height: 70vh;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .container {
        padding: 50px 30px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .access-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .fixed-cta {
        bottom: 20px;
        right: 20px;
    }

    .cta-button {
        padding: 13px 35px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .service-menu {
        grid-template-columns: 1fr;
    }

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

    .map-container iframe {
        height: 300px;
    }

    .container {
        padding: 40px 20px;
    }
}
