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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Display Classes */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* Flex Display Classes */
.pc-flex {
  display: flex;
}

.sp-flex {
  display: none;
}

@media (max-width: 768px) {
  .pc-flex {
    display: none;
  }

  .sp-flex {
    display: flex;
  }
}

/* Inline Display Classes */
.pc-inline {
  display: inline;
}

.sp-inline {
  display: none;
}

@media (max-width: 768px) {
  .pc-inline {
    display: none;
  }

  .sp-inline {
    display: inline;
  }
}

/* Inline-block Display Classes */
.pc-inline-block {
  display: inline-block;
}

.sp-inline-block {
  display: none;
}

@media (max-width: 768px) {
  .pc-inline-block {
    display: none;
  }

  .sp-inline-block {
    display: inline-block;
  }
}

/* Grid Display Classes */
.pc-grid {
  display: grid;
}

.sp-grid {
  display: none;
}

@media (max-width: 768px) {
  .pc-grid {
    display: none;
  }

  .sp-grid {
    display: grid;
  }
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo-image {
    width: 250px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
}*/

.logo-text {
    color: #000;
    font-size: 14px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-text {
/*    color: rgba(255, 255, 255, 0.8);*/
    color: #000;
    font-size: 14px;
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
/*    background: rgba(255, 255, 255, 0.1);*/
/*    border: 1px solid rgba(255, 255, 255, 0.2);*/
    background: #fff;
    border: 1px solid #184d85;
    border-radius: 6px;
    font-size: 14px;
/*    color: rgba(255, 255, 255, 0.8);*/
    color: #184d85;
    cursor: pointer;
}

.language-btn .triangle {
    display: inline-block;
    border-style: solid;
    border-width: 7px 4px 0;
    border-color: #184d85 transparent transparent;
    margin-top: 3px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 80px;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.language-option {
    display: block;
    padding: 4px 12px;
    text-decoration: none;
/*    color: #6b7280;*/
    color: #184d85;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover,
.language-option.active {
    background: #f3f4f6;
    color: #184d85;
}

.contact-btn {
    background: #195790;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 15em;
}

.contact-btn:hover {
    background: #1a6ebb;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
/*    filter: brightness(0.7);*/
}

.hero-content {
    color: white;
/*    width: 100%;
    position: absolute;
    left: 0;
    top: 50%;*/
    width: 1160px;
/*    transform: translateY(-50%);*/
/*    transform: translateY(-10%);*/
    transform: translateY(40%);
    padding-top: 40px;
}

.hero-title {
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-left: 0;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.3);
    color: #0b0054;
    padding: 20px 50px;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
    max-width: 768px;
}

.hero-title-en {
    display: inline-block;
    margin-bottom: 0.25em;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    margin-left: 50px;
    max-width: 500px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f9fafb;
}

.services-title {
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
/*    filter: brightness(0.6);*/
    filter: brightness(0.4);
}

.service-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    color: white;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-title {
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
/*    font-size: 24px;*/
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    min-height: 77px;
}

.service-subtitle {
    font-size: 16px;
    font-weight: 400;
}

.service-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #1f2937;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    justify-content: center;
    width: 20em;
    text-align: center;
    margin: auto;
    text-decoration: none;
}

.service-btn:hover {
    background: #f3f4f6;
}

/* Research Section */
.research {
    background: url('../img/bg_footer.jpg') center/cover;
    position: relative;
    padding: 80px 0;
    color: white;
}

.research::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background: rgba(59, 130, 246, 0.7);*/
    background: rgba(25, 87, 144, 0.7);
    z-index: 1;
}

.research-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.research-text {
    max-width: 300px;
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

.research-text p {
    margin-top: 1em;
}

.research-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 300px;
}

.research-placeholder {
    background: white;
    border-radius: 12px;
/*    border: 1px solid rgba(255, 255, 255, 0.2);*/
    border: 1px solid #1a629b;
    flex: 1;

}

.research-list {
    padding: 20px 30px;
    height: 100%;
    display: flex;
    align-items: center;
}

.research-list ul {
    list-style-type: disc;
    padding-left: 30px;
    margin: 0;
    width: 100%;
}

.research-list li {
    color: #1f2937;
    font-size: 16px;
/*    line-height: 1.8;*/
/*    margin-bottom: 15px;*/
    font-weight: 500;
    border-bottom: 1px dashed #1a629b;;
}

.research-list li:last-child {
    margin-bottom: 0;
}
.research-list li::marker {
    font-size: 200%;
    line-height: 1;
    color: #1a629b;
}
.research-list li a {
    color: #1a629b;
    text-decoration: none;
}
.research-list li a:hover {
    opacity: .7;
}
.research-list li span {
    vertical-align: 0.25em;
    line-height: 1;
}

/* Footer */
.footer {
    background: #fff;
    color: #666;
    padding: 30px 0;
}

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

.privacy {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    display: block;
    margin-bottom: 1em;
}
.privacy:hover {
    color: #AAA;
}

.copyright {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        gap: 10px;
    }

    .logo {
        width: 65vw;
        flex-direction: column;
        gap: 0;
    }

    .logo-image {
        width: 100%;
    }

    .nav {
        width: 35vw;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-around;
        flex-direction: column-reverse;
    }

    .nav-text {
        width: 100%;
        text-align: center;
    }

    .language-selector:hover .language-dropdown {
        display: none;
    }

    .language-selector .language-dropdown {
        display: none;
    }

    .language-selector .language-dropdown.disp {
        display: block;
    }

    .contact-btn {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    .hero-image {
        /*width: 100%;
        height: 100%;
        object-fit: cover;*/
/*        filter: brightness(0.8);*/
    }

    .hero-content {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
/*        padding: 130px 0 0 0;*/
/*        padding: 200px 0 0 0;*/
        padding-top: 0;
        width: 100%;
    }

    .hero-title {
        font-size: 32px;
        text-align: center;
        margin-left: 0;
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 8px;
        width: 100%;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.5);
    }

    .hero-title-en {
        margin-bottom: 0.5em;
    }

    .hero-subtitle {
        margin-left: 0;
        color: #fff;
    }

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

    .service-content {
        padding: 30px 20px;
        height: auto;
        min-height: 250px;
    }

    .service-title {
        min-height: auto;
    }

    .service-btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .research {
        padding: 40px 0;
    }

    .research-content {
        flex-direction: column;
        gap: 20px;
    }

    .research-title {
        min-width: auto;
        margin-bottom: 0;
    }

    .research-placeholder {
        width: 100%;
        flex: none;
    }

    .research-list {
        padding: 20px;
    }

    .research-list li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .footer .contact-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .services-title {
        font-size: 28px;
    }

    .service-title {
        font-size: 20px;
    }
}