:root {
    --primary-color: #00897b;
    --secondary-color: #ff9800;
    --link-color: #0277bd;
    --text-color: #565656;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --container-width: 1100px;
}

.seminars {
    position: relative;
    z-index: 1;
    background-color: #3d81c2;
    margin: 40px 40px 0;
    border-radius: 60px;
    padding-top: 100px;
    padding-bottom: 100px;
}

.seminars .section-title {
    color: var(--white) !important;
}

.seminars .section-title::after {
    display: none;
}

.seminars .section-title,
.seminars .seminar-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.seminars.revealed .section-title,
.seminars.revealed .seminar-card {
    opacity: 1;
    transform: translateY(0);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: var(--white); }

.section-padding {
    padding: 100px 0;
}

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

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: #3d81c2 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #3774af !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 129, 194, 0.3);
}

.line-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 20px !important;
}

.contact-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 20px !important;
}

.btn-icon-svg {
    stroke: #ffffff;
}

.btn-icon {
    height: 20px;
    width: auto;
}

.btn-outline {
    border: 2px solid #00bb00 !important;
    color: #00bb00 !important;
}

.btn-outline:hover {
    background-color: #00bb00 !important;
    color: #ffffff !important;
}

.header {
    background: transparent;
    backdrop-filter: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: none;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo-img {
    height: 44px;
    width: auto;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    line-height: 1.2;
}

.logo-subtext {
    font-size: 0.7rem;
    color: #555;
    white-space: nowrap;
    margin-top: 2px;
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav ul li:nth-child(1) {
    margin-right: 32px;
}

.nav ul li:nth-child(2) {
    margin-right: 72px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:not(.btn) {
    padding-left: 24px;
    transition: color 0.3s ease;
}

.nav a:not(.btn)::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background-color: #3d81c2;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav a:not(.btn):hover::before {
    width: 16px;
    height: 16px;
    opacity: 1;
}

.nav a:not(.btn):hover,
.nav a.active {
    color: #3d81c2;
}

.nav a.active {
    cursor: default;
    pointer-events: none;
}

.nav a.active::before {
    width: 16px;
    height: 16px;
    opacity: 1;
}

.seminar-container {
    width: 100%;
}

.hero {
    background: #fff;
    height: calc(100vh - 80px - 40px);
    display: flex;
    align-items: flex-start;
    padding-top: 42vh;
    margin: 0 40px 40px;
    border-radius: 60px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-overlay {
    display: none;
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: 8%;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.hero-title span.reveal {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease;
}

.hero-description.reveal {
    opacity: 1;
    transform: translateY(0);
}

.hero-pager {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    opacity: 0;
    transition: all 0.8s ease;
}

.hero-pager.reveal {
    opacity: 1;
}

.pager-item {
    display: block;
    height: 3px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.5s ease;
    border-radius: 3px;
}

.pager-item.active {
    width: 50px;
    background-color: var(--white);
}

.icon-primary {
    color: var(--primary-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

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

.section-title-small {
    font-size: 1.25rem;
    color: #3d81c2;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Seminar Cards */
.seminar-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.seminar-card {
    background: transparent;
    padding: 0;
    width: 320px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-shrink: 0;
}

.card-image {
    margin-bottom: 20px;
    width: 320px;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 20px;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.seminar-card:has(.btn-link:hover) .card-image img {
    transform: scale(1.1);
}

.seminar-card h4 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
    white-space: normal;
    height: 3.8rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.seminar-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    flex-grow: 1;
    padding: 0 10px;
}

.seminar-card .btn-link {
    display: inline-block;
    background-color: #1f2026;
    color: #fff;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-top: auto;
}

.seminar-card .btn-link:hover {
    background-color: #fff;
    color: #3d81c2;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* News */
.news {
    background-color: #fff;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.news-image-placeholder {
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 60%;
    height: auto;
    background-color: #eee;
    background-image: url('https://as2.ftcdn.net/v2/jpg/16/83/38/63/1000_F_1683386330_p3Q4nvYyj4wFwjVZlPpEAwEGlYlYkGTN.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    z-index: 1;
}

.news-panel { 
    background-color: #fff;
    border-radius: 40px;
    width: 90%;
    margin-left: 40%;
    position: relative;
    z-index: 2;
    padding: 60px 80px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.news-panel .section-title {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 15px;
    font-size: 1.8rem;
    color: #3d81c2;
}

.news-panel .section-title::after {
    display: none;
}

.news-list { 
    list-style: none; 
}
.news-item {
    display: flex;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: translateX(20px);
}
.news-item:hover .news-link {
    color: #3d81c2;
}
.news-date {
    width: 120px;
    color: var(--text-light);
    font-weight: 500;
}
.news-tag {
    background: #3d81c2;
    color: #fff;
    padding: 4px 0;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 20px;
    width: 90px;
    display: inline-block;
    text-align: center;
    font-weight: 500;
}
.news-link {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.news-link:hover { color: #3d81c2; }
.news-item:last-child {
    border-bottom: none;
}

.keyword-list {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.keyword-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #3d81c2;
}

.about-sub-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.sub-image-item {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background-color: #eee;
    border-radius: 10px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.reverse.grid-2 {
    grid-template-columns: 1.2fr 0.8fr;
}
.reverse .about-text { order: 2; }
.reverse .about-image { order: 1; }
.about-text h4, .greeting-text h4 { font-size: 1.75rem; margin-bottom: 20px; }
.about-image img, .greeting-image img, .map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.greeting-image {
    display: flex;
    align-items: flex-start;
}
.greeting-image img {
    height: 80% !important;
}
.greeting-text p {
    margin-bottom: 1.5rem;
}
.greeting-text p.signature {
    margin-bottom: 0;
}
.signature { margin-top: 30px; font-weight: 700; line-height: 1.8; }
.signature-name {
    font-size: 1.25rem;
    display: inline-block;
    margin-top: 10px;
}

/* Access */
.access {
    background-color: #3d81c2;
    margin: 0 40px 40px;
    border-radius: 60px;
    padding: 80px 80px !important;
}
.access .container {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 4fr 6fr;
    align-items: center;
}
.access .section-title {
    color: #fff;
    margin-bottom: 30px;
    text-align: left;
}
.access .section-title::after {
    display: none;
}
.access-info {
    padding-left: 0;
}
.access .section-title-small {
    color: #fff;
}
.map-container {
    height: 540px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.map-container iframe {
    width: 100%;
    height: 100%;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table th {
    text-align: left;
    width: 120px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}
.info-table td {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Related Sites */
.related-sites .section-title {
    color: #3d81c2;
}
.related-sites .section-title::after {
    display: none;
}

.image-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.image-link-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.image-link-item:hover {
    transform: translateY(-5px);
}

.image-link-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.image-link-item p {
    color: #565656;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.image-link-item img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Footer */
.footer { padding: 80px 0 0; background-color: #f1f1f1; }
.footer-logo-container { margin-bottom: 25px; }
.footer-logo-img { height: 50px; width: auto; object-fit: contain; }
.footer-company-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; color: #565656; }
.social-icons { margin: 40px 0; }
.footer-bottom {
    background-color: #3d81c2;
    padding: 15px 0;
    margin-top: 40px;
}
.copyright {
    font-size: 0.75rem;
    color: #fff !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2.5rem; }
    .mobile-menu-toggle { display: flex; }
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav ul.active { display: flex; }
    .reverse .about-text { order: 1; }
    .reverse .about-image { order: 2; }
}

@media (max-width: 600px) {
    .image-links-grid { grid-template-columns: 1fr; }
    
    /* Header Layout adjust - Logo Left, Burger Right */
    .header-container {
        flex-direction: row;
        padding: 0 5%;
        justify-content: space-between;
    }
    .logo {
        flex-direction: row;
        text-align: left;
        gap: 10px;
    }
    .logo-img { height: 31px; }
    .logo-text { font-size: 14px; line-height: 1.3; }
    
    /* Hamburger menu color - Pink */
    .mobile-menu-toggle span {
        background-color: #3d81c2;
    }
    
    /* Hero Layout for Mobile */
    .hero {
        margin: 0 5% 60px !important;
        width: 90vw;
        height: auto;
        padding-top: 0;
        border-radius: 20px;
        background: transparent;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }
    .hero-video-bg {
        position: relative;
        width: 100%;
        height: calc(90vw * 1.3);
        border-radius: 30px;
        overflow: hidden;
    }
    .hero-container {
        position: static;
    }
    .hero-content {
        position: relative;
        margin: 25px 0 0;
        padding: 0;
        color: #3d81c2;
        text-align: left;
    }
    .hero-title {
        color: #3d81c2;
        font-size: 1.6rem;
        margin-bottom: 15px;
        text-shadow: none;
        white-space: normal; /* Ensure natural wrap */
    }
    .hero-description {
        color: #565656;
        font-size: 1.0rem;
    }
    /* Navigation remains in visual, centered */
    .hero-pager {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        z-index: 100;
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    .pager-item {
        background-color: rgba(255, 255, 255, 0.5);
    }
    .pager-item.active {
        background-color: #fff;
    }

    /* General Image & Layout for Mobile */
    .about-image img, .greeting-image img, .map-container img {
        border-radius: 20px !important;
    }
    .grid-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    .reverse.grid-2 {
        flex-direction: column !important;
    }
    .about-text, .greeting-text {
        text-align: left;
    }
    .greeting-image img {
        height: auto !important;
        aspect-ratio: 1/1.3 !important;
    }

    /* Access (Overview) - 90% width and vertical stack */
    .access {
        width: 90% !important;
        margin: 0 auto 40px !important;
        padding: 40px 20px !important;
        border-radius: 20px !important;
    }
    .access .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .map-container {
        height: 300px !important;
        order: 2;
        border-radius: 10px !important;
    }
    .access-info {
        order: 1;
    }
    .info-table th {
        width: 80px !important;
    }

    /* Seminars Section - 90% width box */
    .seminars {
        width: 90%;
        margin: 0 auto;
        background-color: #3d81c2;
        border-radius: 20px;
        padding: 40px 20px !important;
    }
    .seminar-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .card-image {
        width: 100% !important;
        max-width: 100% !important;
    }
    .seminar-card img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/10 !important;
        object-fit: cover !important;
        margin: 0 !important;
    }
    .seminars .section-title {
        color: #fff;
        font-size: 1.6rem;
    }
    .seminars .section-title::after {
        background-color: #fff;
    }
    .seminar-grid {
        gap: 40px;
    }

    /* Footer Copyright ensure visibility */
    .footer-bottom {
        display: block !important;
        background-color: #3d81c2 !important;
        margin-top: 30px !important;
        padding: 15px 0 !important;
        width: 100% !important;
    }
    .footer-bottom .copyright {
        color: #fff !important;
        display: block !important;
    }
}

@media (max-width: 992px) {
    .news {
        padding: 60px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .news .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .news-image-placeholder {
        display: block !important;
        position: relative !important;
        width: 90% !important;
        max-width: 90% !important;
        height: 250px;
        margin: 0 0 30px 0 !important;
        left: 0 !important;
        top: 0 !important;
        z-index: 1;
        border-radius: 20px;
        box-sizing: border-box !important;
    }
    .news-panel {
        display: block !important;
        position: relative !important;
        width: 90% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        padding: 40px 20px !important;
        left: 0 !important;
        border-radius: 20px;
        box-sizing: border-box !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }
    .news-panel .section-title {
        margin-bottom: 20px !important;
        text-align: center;
    }
    .news-item {
        display: block !important;
        padding: 20px 0;
        text-align: left;
    }
    .news-date {
        display: inline !important;
        font-size: 0.95rem;
        margin-right: 15px;
        width: auto !important;
    }
    .news-tag {
        display: inline-block !important;
        padding: 2px 10px;
        vertical-align: middle;
        margin-right: 0 !important;
        width: auto !important;
    }
    .news-link {
        display: block !important;
        width: 100%;
        margin-top: 12px !important;
    }
    .news-item:hover {
        transform: none !important;
    }
}
