/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px; /* ヘッダーの高さ分のオフセット */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 70px;
    }
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Hide elements with data-lang attribute until translations are applied */
/* Only hide if the page is not in Japanese (to avoid hiding content on Japanese pages) */
html:not([lang="ja"]) [data-lang]:not(.lang-loaded) {
    visibility: hidden;
}

/* Show elements after translations are applied */
[data-lang].lang-loaded {
    visibility: visible;
}

/* For Japanese pages, show immediately */
html[lang="ja"] [data-lang] {
    visibility: visible;
}

/* Cookie Banner Responsive Styles */
#cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    background: #111;
    color: #fff;
    padding: 16px;
    display: none;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

#cookie-banner > div {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

#cookie-banner > div > div:first-child {
    flex: 1;
    min-width: 0; /* Allow shrinking below min-content */
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto; /* Enable hyphenation for long words */
}

#cookie-banner > div > div:first-child span {
    display: inline-block;
    width: 100%;
}

#cookie-banner > div > div:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

#cookie-banner button {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
}

#cookie-banner #cb-reject {
    background: #333;
    color: #fff;
    border: 1px solid #666;
}

#cookie-banner #cb-customize {
    background: #444;
    color: #fff;
    border: 1px solid #777;
}

#cookie-banner #cb-accept {
    background: #22a35a;
    color: #fff;
}

#cookie-banner a {
    color: #8ec5ff;
    text-decoration: underline;
}

/* iPhone SE and small screens (375px and below) */
@media (max-width: 375px) {
    #cookie-banner {
        padding: 12px;
    }
    
    #cookie-banner > div {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    #cookie-banner > div > div:first-child {
        font-size: 0.85rem;
        min-width: 0;
    }
    
    #cookie-banner > div > div:last-child {
        width: 100%;
        justify-content: space-between;
    }
    
    #cookie-banner button {
        flex: 1;
        min-width: 0;
        font-size: 0.8rem;
        padding: 8px 8px;
    }
}

/* Small screens (up to 480px) */
@media (max-width: 480px) {
    #cookie-banner > div > div:first-child {
        font-size: 0.85rem;
    }
    
    #cookie-banner button {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #1a4d7d;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2c5f8d 0%, #1a4d7d 100%);
    padding: 100px 0;
}

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

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.hero-text {
    color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-woman-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-align: left;
}

.title-line {
    display: block;
}

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: left;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: #1a4d7d;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Company Info Section */
.company-info {
    padding: 120px 0 80px;
    background-color: #f8f9fa;
}

.company-info h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.company-overview {
    max-width: 1000px;
    margin: 0 auto;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.info-item a {
    color: #1a4d7d;
    text-decoration: underline;
    transition: color 0.3s;
}

.info-item a:hover {
    color: #0d3d56;
}

.info-item h3 {
    color: #1a4d7d;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.info-item p {
    color: #666;
    line-height: 1.8;
}

/* Mission Section */
.mission-section {
    padding: 120px 0 80px;
    background: white;
}

.mission-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
}

/* Vision Section */
.vision-section {
    padding: 120px 0 80px;
    background: #f8f9fa;
}

.vision-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
}

/* Core Values Section */
.core-values-section {
    padding: 120px 0 80px;
    background: white;
}

.core-values-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.core-value-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid #1a4d7d;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.core-value-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.core-value-letter {
    font-size: 4rem;
    font-weight: 700;
    color: #1a4d7d;
    line-height: 1;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
}

.core-value-content {
    flex: 1;
}

.core-value-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a4d7d;
    margin-bottom: 0.5rem;
}

.core-value-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.core-value-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .mission-section, .vision-section, .core-values-section {
        padding: 90px 0 60px;
    }
    
    .mission-text, .vision-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .core-value-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .core-value-letter {
        font-size: 3rem;
        min-width: auto;
    }
    
    .core-value-title {
        font-size: 1.3rem;
    }
    
    .core-value-subtitle {
        font-size: 1rem;
    }
    
    .core-value-description {
        font-size: 0.95rem;
    }
}

.officers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.officer-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.officer-item h4 {
    color: #1a4d7d;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.officer-item p {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

.officer-photo-small {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder-small {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.photo-placeholder-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.officer-info-simple {
    text-align: center;
}

.officer-info-simple h3 {
    color: #1a4d7d;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.officer-info-simple h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

/* Services Section */
.services {
    padding: 120px 0 80px;
    background-color: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    color: #1a4d7d;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 120px 0 80px;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a4d7d;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label a {
    color: #1a4d7d;
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1a4d7d 0%, #0d3d56 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Officers Section */
.officers-section {
    padding: 140px 0 100px;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.officer-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.officer-card:hover {
    transform: translateY(-5px);
}

.officer-photo {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: linear-gradient(135deg, #1a4d7d 0%, #0d3d56 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.photo-placeholder p {
    color: white;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.officer-info {
    padding: 2rem;
}

.officer-info h3 {
    color: #1a4d7d;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.officer-info h4 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.officer-info p {
    color: #666;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a4d7d 0%, #0d3d56 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 50px;
    }


    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        padding: 2rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .navbar .container {
        gap: 1rem;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .hamburger {
        display: flex;
        margin-left: 0;
    }

    .company-info {
        padding: 90px 0 60px;
    }

    .services {
        padding: 90px 0 60px;
    }

    .contact {
        padding: 90px 0 60px;
    }

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

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-woman-img {
        max-width: 360px;
        border-radius: 12px;
    }

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

    .subsection-title {
        font-size: 1.5rem;
    }
    
    .mission-text, .vision-text {
        font-size: 1rem;
    }

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

    .company-info h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 0.4rem 0;
    }

    .logo-img {
        height: 45px;
    }


    .nav-menu {
        top: 55px;
    }

    .hero-content {
        padding: 1rem;
    }

    .company-info {
        padding: 80px 0 50px;
    }

    .services {
        padding: 80px 0 50px;
    }

    .contact {
        padding: 80px 0 50px;
    }

    .officers-section {
        padding: 90px 0 70px;
    }

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

