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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Yu Gothic UI', 'メイリオ', Meiryo, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}
body.zh-CN{
    font-family: 'Microsoft Yahei','Segoe UI', 'メイリオ', Meiryo, 'Hiragino Kaku Gothic ProN', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 50px;
    width: auto;
}

/* Navigation Menu */
.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    height: 100%;
    align-items: stretch;
    margin-right: 2%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: stretch;
}

.nav-link {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    padding-bottom: 8px;
    padding-top: 12px;
     border-bottom: 3px solid transparent;  /* 左から下に変更 */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;        /* 縦中央揃え */
    justify-content: center;    /* 横中央揃え */
    height: 100%;              /* ヘッダー高さいっぱい */
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: #40419B;  /* 下線が表示される */
}

/* Header Info (Language & Phone) */
.header-info {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    height: 100%;
    align-items: stretch;
}

.phone-icon {
    align-items: center;
    /* display: none; */
    font-size: 18px;
    color: #fff;
    background-color: #eaeff5;
    font-weight: bold;
    height: 100%;
    display: flex;
    width: 70px;
    justify-content: center;
}

.phone-icon img {
    width: 20px;
    height: 20px;
}

.language {
    display: flex;
    align-items: center;
    /*gap: 8px;*/
    font-size: 12px;
}

.lang-link {
    /*color: #666;
    transition: color 0.3s ease;
    padding: 4px 8px;*/
    background-color:#40419B;
    font-weight: 600;
    align-items: center;
    color: #ffffff;
    height: 100%;
    display: flex;
    width: 70px;
    justify-content: center;
}
.lang-link:nth-child(1){
    background-color: #b1b7c8;
}
.lang-link:nth-child(2){
    background-color: #0a3179;
}
.lang-link.active,
.lang-link:hover {
    color: #fff;
    font-weight: 600;
}

/* Hamburger Menu (Hidden on PC) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    height: 24px;
    padding: 0;
    background: none;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #40419B;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* ============================================
   FV Section (First View)
   ============================================ */
.fv {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.fv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 26, 77, 0.4);
    z-index: 2;
}

.fv-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 40px;
}

.fv-h1 {
     font-size: clamp(22px, 5.5vw, 56px);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.fv-h2 {
    font-size: clamp(14px, 3vw, 26px);
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Section Common Styles
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    letter-spacing: 3px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg); /* -45度に傾ける */
    width: 70px;
    height: 2px;
    background-color: #333333;
}

.section-subtitle {
    font-size: 18px;
    color: #0a3179;
    letter-spacing: 2px;
    font-weight: 500;
}
.section-subtitle.navy {
    color: #333;

}
/* ============================================
   Products Section
   ============================================ */





.products {
    background: linear-gradient(150deg, #ffffff 0%, #e0f0ff 60%, #c8e4ff 100%);
    color: #333;
}



.product_bg {
    padding: 80px 0 0;
    background-image: url('../images/product_bg.png');
    background-position: bottom;      /* 下に配置 */
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding-bottom: 120px;
}



.products > * {
    position: relative;
    z-index: 2;  /* コンテンツが最上位 */
}


.products .section-header {
    margin-bottom: 60px;
}

.products .section-title {
    color: #0a3179;
}

.products .section-title::before {
    background-color: #0a3179;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 5px 10px 20px rgba(0,0,0,0.25);
    /* box-shadow: 0 4px 16px rgba(10, 49, 121, 0.10); */
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(10, 49, 121, 0.18);
}

.product-image {
    overflow: hidden;
    height: 200px;
    background-color: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 12px 14px;
    background: linear-gradient(90deg, #0a3179 0%, #1565c0 100%);
    /* background: linear-gradient(90deg, #4f84e8 0%, #02c3df 100%); */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 48px;
    color: #ffffff;
}

.product-info span {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.product-card p {
    font-size: 14px;
    font-weight: 400;
    margin-top: 0;
    color: #444;
    line-height: 1.7;
    min-height: 70px;
    background-color: #fff;
    padding: 10px 14px 14px;
}

/* ============================================
   News Section
   ============================================ */
.news {
    padding: 80px 0;
    background-color: #f0f7ff;
}

.news-list {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 80px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;

}

.news-badge {
    background-color: #001a4d;
    color: #fff;
    padding: 6px 27px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
    letter-spacing: 2px;
    min-width: 126px;
    text-align: center;
}
.news-date {
    font-size: 14px;
    letter-spacing: 2px;
    padding-top: 6px;
}

.news-item h3 {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    padding-top: 8px;
    line-height: 1.5;
    white-space: nowrap;
}

.news-item a {
    color: #333;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #40419B;
}

.news-divider {
    display: none;
}

.news-item:last-child .news-divider {
    display: none;
}

.news-more-btn {
    text-align: center;
}

.news-more-btn a {
    display: inline-block;
    background: linear-gradient(90deg, #0099ff 0%, #40419B 100%);
    color: #fff;
    padding: 24px 68px;
    border-radius: 3px;
    font-weight: 600;
    transition: opacity 0.3s ease;
    font-size: 20px;
    letter-spacing: 2px;
}

.news-more-btn a:hover {
    opacity: 0.9;
}

.news-more-btn span {
    margin-left: 10px;
}

/* ============================================
   Greetings Section (2x2 Grid)
   ============================================ */
.greetings-grid {
    display: flex;
    flex-wrap: wrap;  /* 2行に分ける */
    gap: 0;
    grid-template-rows: 300px 300px;
}

/* 1行目: 70% + 30% */
.greeting-card:nth-child(1) { width: 30%;min-height: 30vh; }
.greeting-card:nth-child(2) { width: 70%;min-height: 30vh; }

/* 2行目: 30% + 70% */
.greeting-card:nth-child(3) { width: 70%;min-height: 30vh; }
.greeting-card:nth-child(4) { width: 30%;min-height: 30vh; }


.greetings {
    padding: 0;
    background-color: #f0f0f0;
}





.greeting-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 1hv;
}

.greeting-bg {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.greeting-card:hover .greeting-bg img {
    transform: scale(1.1);
}

.greeting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.6) 0%, rgba(0, 26, 77, 0.4) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 40px;
    color: #fff;
    z-index: 2;
}

.greeting-overlay h3 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.greeting-overlay p {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background-color: #fff;
    padding: 0;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.cta-left {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px;
    background-color: #f5f9ff;
    color: #001a4d;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: transform 0.4s ease;
}

.cta-left:hover .cta-bg img {
    transform: scale(1.1);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-left h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #001a4d;
}

.cta-left p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.cta-right {
    padding: 80px 0 0;
    background-image: url('../images/cta_right.png');
    background-position: center;      /* 下に配置 */
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;




    /*background: linear-gradient(135deg, #0a1a4d 0%, #1a2a5d 100%);*/
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.cta-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #0099ff 0%, #40419B 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
}

.cta-link:hover {
    background-color: rgb(0, 153, 255);
    padding-right: 30px;
}

.cta-link .arrow {
    font-size: 18px;
    margin-left: 10px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: #EBEBEB;
    color: #000;
    padding: 20px 0 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-content-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-col {
    font-size: 13px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #000;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #000;
}

.footer-logo svg {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-btn {
        display: flex;
    justify-content: space-between;
    border: 1px solid #000;
    color: #000000;
    padding: 18px 20px;
    border-radius: 3px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-btn:hover {
    background-color: #fff;
    color: #001a4d;
}

.footer-bottom {
    border-top: 1px solid #000;
    text-align: center;
    font-size: 12px;
    color: #000;
    line-height: 1.8;
}
.address {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.copy {
    margin-top: 20px;
}

/* ============================================
   Responsive Design (Tablet)
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header-container {
        padding: 0 0px;
    }

    .nav-menu {
        gap: 20px;
    }

    .fv-h1 {
        font-size: 42px;
    }

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

    .greetings-grid {
        grid-template-rows: repeat(2, 250px);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .footer-content-single {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    .footer-contact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive Design (Smartphone)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-container {
        height: 60px;
        padding: 0 15px 0;
        gap: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    .logo {
        flex-shrink: 0;
    }

    .logo svg {
        height: 40px;
    }
    /* JP/CN と電話を中央に */
    .header-info {
        position: absolute;
        left: 82%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        /*gap: 12px;*/
        order: 2;
        height: 100%;
    }
    .phone-icon {
        display: inline-block;
        font-size: 20px;
        color: #fff;
        margin-left: 8px;
        width: 50px;

        align-items: center;

    background-color: #e7ecf3;
    font-weight: bold;
    height: 100%;
    display: flex;
    justify-content: center;
    }

    .language {
        display: flex;
        align-items: center;
        font-size: 11px;
        height: 100%;
    }

    .lang-link {

        /*color: #666;
    transition: color 0.3s ease;
    padding: 4px 8px;*/
    background-color:#40419B;
    font-weight: 600;
    align-items: center;
    color: #ffffff;
    height: 100%;
    display: flex;
    width: 50px;
    justify-content: center;
    }

 /* ハンバーガーを右端に */
    .hamburger {
        display: flex;
        margin-left: auto;
    }



    .nav {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: calc(100vh - 50px);
        background: linear-gradient(180deg, #001a4d 0%, #1a2a5d 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 99;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        color: #fff;
        padding: 20px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 4px solid transparent;
        border-bottom: none;
        margin: 0;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        border-left-color: #0099ff;
        color: #0099ff;
        border-bottom: none;
    }

    .header-info {
        /*gap: 10px;*/
    }

    .phone-icon {
        color: #fff;
        margin-left: 8px;
        width: 50px;
        font-size: 14px;
        align-items: center;

    background-color: #eaeff5;
    font-weight: bold;
    height: 100%;
    display: flex;
    justify-content: center;
    }

    .language {
        /*display: none;*/
    }

    .fv {
        height: 350px;
    }

    .fv-h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .fv-h2 {
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-title::before {
        left: -20px;
        width: 40px;
       
    }

    .products {
        padding: 50px 0 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-image {
        height: 150px;

    }
    .product-image img {
    object-fit: contain;
    }

    .product-info h3 {
        font-size: 14px;
        min-height: auto;
    }

    .product-info p {
        font-size: 12px;
        min-height: auto;
    }

    .news {
        padding: 50px 0;
    }

    .news-list {
        max-width: 100%;
    }

    .news-item {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 8px;
        padding-bottom: 4px;
    }

    .news-badge {
        order: -1;
        font-size: 12px;
    }
    .news-date {
        font-size: 12px;
        padding-top: 0;
    }
    .news-item h3 {
        font-size: 13px;
        padding-top: 0;
    }
    .news-more-btn a {
        font-size: 16px;
    }
    .greetings-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .greeting-card {
        min-height: 200px;
    }

    .greeting-overlay {
        padding: 10px;
    }

    .greeting-overlay h3 {
        font-size: 16px;
        word-break: break-all;
    }

    .cta-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .cta-bg
     {
        padding: 10px;
     }
    .cta-left {
        min-height: 10px;
        padding: 40px;
    }

    .cta-left h2 {
        font-size: 24px;

    }

    .cta-right {
        padding: 40px;
        gap: 15px;
    }

    .cta-link {
        padding: 12px 15px;
        font-size: 13px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    .footer-content-single {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    .footer-contact {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .contact-btn {
        padding: 10px 15px;
        font-size: 11px;
    }

    .footer-bottom {
        font-size: 11px;
    }
    .product_bg {
        padding-bottom: 200px;
    } 
    .address {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 50px;
        padding: 10px;
    }

    .logo svg {
        height: 35px;
    }

    .fv {
        height: 280px;
    }

    .fv-h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .fv-h2 {
        font-size: 12px;
    }

    .section-title {
        font-size: 26px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .greeting-overlay h3 {
        font-size: 14px;
    }

    .greeting-overlay p {
        font-size: 12px;
    }

    .cta-left h2 {
        font-size: 20px;
    }

    .cta-left p {
        font-size: 13px;
    }

    .cta-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    .cta-link .arrow {
        font-size: 16px;
    }
}
@media (max-width: 425px) {
    .header-info {
        left: 68%;
    }
    .product_bg {
        padding-top: 10px;
        padding-bottom: 120px;
    }
}
@media (max-width: 375px) {
    .header-info {
        left: 65%;
    }
}

@media (max-width: 320px) {
    .header-info {
        left: 60%;
    }
}

img.logo {
    max-height: 50px;
    width: auto;
    padding: 8px;
} 

.product-content-wrapper,
article .post-content{
    max-width: 860px;
    margin: 0 auto;
}
