/* Reset & Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

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

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden; /* 横スクロール防止 */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* Header */
.header {
    background-color: #111;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.header-logo span {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    gap: 30px;
    font-size: 13px;
    font-weight: bold;
}

.nav-item {
    position: relative;
    padding: 10px 0; /* ホバーエリアを広げる */
}

.nav-item a {
    color: #fff;
    transition: opacity 0.3s;
}

.nav-item a:hover {
    opacity: 0.7;
}

/* サブメニュー（スライドダウン） */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    /* transform: translateX(-50%); */
    background-color: #111;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-item:hover > .nav-submenu {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
    padding: 10px 0;
}

.nav-submenu li {
    width: 100%;
}

.nav-submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    transition: background-color 0.2s, opacity 0.2s;
    text-align: left;
}

.nav-submenu li a:hover {
    background-color: #333;
    opacity: 1;
}

/* Hero Section */
.hero {
    margin-top: 60px; /* Header height */
    position: relative;
    height: 600px;
    background-image: url('../images/top-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: #fff;
    text-align: center;
    padding-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(20, 24, 33, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

.hero-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    opacity: 1;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 80%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-divider {
    width: 100%;
    max-width: 400px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 auto 20px;
}

.hero-catchphrase {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
}

.hero-intro {
    font-size: 15px;
    margin-top: 30px;
    line-height: 2;
    opacity: 0.9;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
}

/* Image Grid Section */
.image-grid {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.image-grid-track {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.image-grid-track:hover {
    animation-play-state: paused;
}

.grid-item {
    width: 20vw; /* デスクトップでは画面幅の1/5 */
    flex-shrink: 0;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 25vw; /* レスポンシブな高さ */
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.grid-item:hover img {
    transform: scale(1.1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .grid-item {
        width: 50vw; /* スマホでは画面幅の半分（2枚表示） */
    }
    .grid-item img {
        height: 40vw;
    }
}

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

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    display: flex;
    align-items: baseline;
    gap: 30px;
}

.news-item:first-child {
    border-top: 1px solid #eee;
}

.news-date {
    font-size: 14px;
    color: #999;
    font-family: 'Noto Sans JP', sans-serif;
    min-width: 100px;
}

.news-text {
    font-size: 16px;
    color: #333;
    margin: 0;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #003366 0%, #005599 100%);
    padding: 100px 0 172px; /* 上部パディングを増やして斜め背景のスペース確保 */
    text-align: center;
    overflow: hidden;
}

/* 斜めの背景装飾 */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 100px 300px 0 0; /* サイズ調整 */
    border-color: rgba(255,255,255,0.1) transparent transparent transparent;
    z-index: 1;
    display: none; /* 一旦非表示、画像のデザインに合わせて調整が必要なら有効化 */
}

/* 添付画像の斜めカットを再現: 左上が高く右上が低い、あるいはその逆？ 
   画像を見ると、画像グリッドの下端は水平。CTAセクションの上端が水平。
   しかし、CTAセクションの背景内に斜めのラインがある。
   左側にある三角形の薄いエリア。
*/
.cta-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right bottom, rgba(255,255,255,0.1) 50%, transparent 50%);
    pointer-events: none;
}


.cta-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #fff;
    color: #003366;
}

/* Solutions Section */
.solutions {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 60px;
    position: relative;
    display: block;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 80%;
    height: 1px;
    background-color: #333;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 113px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.solution-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.solution-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
}

.solution-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

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

.footer-col a {
    color: #aaa;
}

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

.footer-col h4 a {
    color: #fff;
}

.footer-col h4 a:hover {
    color: #3FA9F5;
}

.footer-sns-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 0;
    padding-left: 0;
}

.copyright {
    text-align: center;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.copyright p {
    flex-grow: 1;
}



/* Company Page Styles */
.company-hero {
    background-image: url('../images/company-hero-bg.png');
}

/* Mission Section */
.mission-section {
    background-image: url('../images/mission-bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title-mission {
    font-size: 24px;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
    position: relative;
    display: block;
    font-weight: normal;
    color: #fff;
}

.section-title-mission::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 80%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.mission-heading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.mission-text {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.8;
}

/* Value Section */
.value-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.section-title-value {
    font-size: 24px;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
    color: #333;
    font-weight: normal;
    position: relative;
    display: block;
}

.section-title-value::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 80%;
    height: 1px;
    background-color: #333;
}

.value-heading {
    font-size: 24px;
    margin-bottom: 20px;
}

.value-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    text-align: left;
    padding: 20px;
}

.value-icon {
    margin-bottom: 20px;
    text-align: center;
}

.value-icon img {
    width: 200px;
    height: auto;
    margin: 0 auto;
}

.value-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #003366;
    text-align: center;
}

.value-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    text-align: justify;
}

/* Company CTA */
.company-cta {
    background-color: #333;
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.company-cta-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.company-cta-inner p {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}

.btn-blue {
    display: inline-block;
    padding: 15px 40px;
    background-color: #3FA9F5;
    color: #fff;
    font-size: 16px;
    border-radius: 0;
    transition: opacity 0.3s;
}

.btn-blue:hover {
    opacity: 0.8;
}

/* Members Section */
.members-section {
    padding: 100px 0 60px;
    background-color: #fff;
    text-align: center;
}

.section-title-members {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 60px;
    position: relative;
    display: block;
}

.section-title-members::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 80%;
    height: 1px;
    background-color: #333;
}

.members-cover {
    width: 100%;
    margin-bottom: 80px;
    max-height: 400px;
    overflow: hidden;
}

.members-cover img {
    width: 100%;
    height: 100%;
    display: inline;
    /* display: block; */
}

.manager-grid {
    position: relative;
    padding: 40px 0 80px;
    margin: 0;
    margin-bottom: 60px;
    max-width: 100%;
}

.manager-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/manager-bg.jpeg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.manager-area {
    position: relative;
    z-index: 1;
    margin-bottom: 100px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.manager-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.manager-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manager-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.manager-name {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.manager-text-block {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: left;
    padding: 0 10px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 840px;
    margin: 0 auto;
}

.members-grid:nth-child(2) {
    margin-top: 60px;
}

.member-card {
    text-align: center;
    background: #fff;
    max-width: 400px;
    margin: 0 auto;
}

.member-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 15px;
}

.member-card h5 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.member-desc-short {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    padding: 0 10px;
}

/* Bottom Decoration */
.bottom-decoration {
    width: 100%;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.decoration-bg {
    width: 100%;
    height: 100%;
    background-image: url('../images/mission-bg.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

.decoration-bg p {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 2;
}

/* ISO Page Styles */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
}

.page-desc {
    font-size: 16px;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.iso-hero-image-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.iso-hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.blue-message-bar {
    background-color: #003366;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    margin-top: -5px; /* Adjust for image gap */
    position: relative;
    z-index: 1;
}

.blue-message-bar h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

/* If the image is inside container, the blue bar should probably be full width.
   The wrapper has padding, so the image is not full bleed.
   But the blue bar is full bleed.
   Let's check the design again. The design likely has the image full width of the container, or full viewport width?
   The reference shows the image aligning with text?
   Let's assume container width for image.
   The blue bar is definitely full width background.
*/

.blue-message-bar {
    margin-top: 0;
}

.thinky-section {
    padding: 100px 0;
    text-align: center;
    background-color: #f0f0f0;
}

.thinky-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.thinky-desc {
    font-size: 16px;
    line-height: 2;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.thinky-image img {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    height: auto;
}

.cases-section {
    padding: 0 20px 100px;
    text-align: center;
    background-color: #f0f0f0;
}

.cases-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: left;
    border-bottom: 1px solid #333; /* Optional styling */
    padding-bottom: 10px;
    display: inline-block;
}

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

.case-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 15px;
}

.case-item p {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}

.cases-text-block {
    text-align: center;
    font-size: 15px;
    line-height: 2;
    max-width: 100%;
}

.iso-cta {
    position: relative;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iso-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.iso-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iso-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.iso-cta-content p {
    font-size: 24px;
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: bold;
    text-align: left;
}

.btn-iso-cta {
    display: inline-block;
    padding: 15px 60px;
    background-color: #3FA9F5;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.3s;
    border: none;
}

.btn-iso-cta:hover {
    opacity: 0.8;
}

/* Product Page Styles */
.product-hero {
    background-image: none;
}

.hero-overlay {
    background: linear-gradient(to bottom, transparent 10%, rgba(20, 24, 33, 0.9) 100%);
}


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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    animation: productSlideshow 10.5s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 3.5s;
}

.hero-slide:nth-child(3) {
    animation-delay: 7s;
}

@keyframes productSlideshow {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    43% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.product-concept {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.product-concept-text {
    font-size: 16px;
    line-height: 2;
    max-width: 800px;
    margin: 0 auto 40px;
}

.product-concept-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-concept {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3FA9F5;
    color: #fff;
    font-size: 16px;
    transition: opacity 0.3s;
}

.btn-concept:hover {
    opacity: 0.8;
}

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

.product-section-alt {
    background-color: #666; /* Based on image, grey background */
    color: #fff;
}

.product-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.product-block-reverse {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}


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

.iso-section-01 {
    text-align: center;
}

.iso-section-01 .iso-name {
    margin-bottom: 60px;
}

.iso-section-alt {
    background-color: #666; /* Based on image, grey background */
    color: #fff;
}

.iso-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.iso-block-reverse {
    flex-direction: row-reverse;
}

.iso-info {
    flex: 1;
}

.iso-image {
    flex: 1;
}

.iso-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.iso-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.iso-desc {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

ul.iso-desc {
    padding-top: 20px;
}

.iso-desc li {
    margin-left: 40px;
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.3;
    list-style: disc;
}

.flow-section {
    padding: 100px 0;
    background-color: #fff;
    color: #333;
    text-align: center;
}

/* 修正: flow-introとflow-noteは背景白なので黒色にする */
.flow-intro {
    font-size: 16px;
    margin-bottom: 30px;
    color: #333;
}

.flow-cta {
    margin-bottom: 20px;
}

.btn-flow {
    display: inline-block;
    padding: 15px 50px;
    background-color: #3FA9F5;
    color: #fff;
    font-size: 18px;
    border-radius: 30px;
    font-weight: bold;
}

.flow-note {
    font-size: 14px;
    margin-bottom: 20px; /* 矢印スペースのために少し詰める */
    color: #666;
    opacity: 1;
}

.flow-arrows {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 10px;
    height: 80px;
}

.flow-arrows svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.flow-steps {
    margin-bottom: 60px;
}

.flow-arrow-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    background-color: #003366;
    color: #fff;
    padding: 15px 30px;
    font-weight: bold;
    position: relative;
    min-width: 180px; /* 幅を広げる */
}

.flow-footer {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

.contact-banner {
    background-color: #444;
    padding: 60px 0;
    color: #fff;
}

.contact-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-banner-inner p {
    font-size: 20px;
    font-weight: bold;
}

.btn-contact {
    display: inline-block;
    padding: 15px 40px;
    background-color: #3FA9F5;
    color: #fff;
    font-size: 16px;
}
/* ハンバーガーメニュー */
.hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* ナビゲーションより上に */
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

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

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* ナビゲーションが開いたときのbody固定 */
body.nav-open {
    overflow: hidden;
}

.br-mb {
    display: none;
}

/* Responsive for common items */
@media (max-width: 768px) {
    .header {
        padding: 0;
    }
    .header-inner {
        padding: 0 20px;
        height: 60px; /* ヘッダーの高さを明示 */
    }

    .hamburger {
        display: block;
    }

    /* モバイルナビゲーション */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態は画面外 */
        width: 100%;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.95);
        flex-direction: column;
        justify-content: flex-start; /* centerから修正 */
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        margin: 0;
        padding: 80px 0 40px; /* 上下に余白を追加 */
        overflow-y: auto; /* スクロール可能にする */
    }

    .nav-list.active {
        right: 0; /* 画面内にスライド */
    }

    .nav-item {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s, transform 0.3s;
    }

    .nav-list.active .nav-item {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s; /* 少し遅れて表示 */
    }
    
    .nav-item a {
        font-size: 18px;
        display: block;
        padding: 10px;
    }

    /* モバイルでのサブメニュー表示 */
    .nav-submenu {
        position: static;
        transform: none;
        max-height: none;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 5px;
        text-align: center;
    }

    .nav-submenu li a {
        padding: 5px 0;
        font-size: 14px;
        color: #aaa;
        text-align: center;
    }

    .nav-item {
        padding: 5px 0;
        text-align: center;
    }

    /* Hero Section Adjustments */
    .hero {
        height: 40vh; /* 高さ調整 */
        min-height: 250px;
        margin-top: 60px;
    }

    /* 企業ページのヒーローセクション調整: コンテンツが多いのではみ出し防止 */
    .company-hero {
        height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
        justify-content: center;
    }

    .hero-intro br {
        display: none;
    }

    .hero-catchphrase {
        font-size: 24px; /* フォントサイズ縮小 */
        padding: 0 20px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col img {
        margin: 0 auto;
    }

    .footer-col-pconly {
        display: none;
    }

    .footer-sns-wrapper {
        justify-content: center;
    }
    

    /* セクションの余白調整 */
    .section-title {
        font-size: 20px;
        margin-bottom: 40px;
    }

    .solutions, .product-section, .contact-banner, .mission-section, .value-section, .members-section {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0 100px;
    }

    /* 言語メニュー調整 */
    .language-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
        margin-top: 10px;
        text-align: center;
        display: none; /* JSで制御するため初期は非表示だが、activeクラスなどで表示切り替えが必要 */
    }
    
    /* 言語メニューはクリックで開閉するので、JSの動作に合わせる */

    .br-pc {
        display: none;
    }

    .br-mb {
        display: block;
    }
}

/* Responsive for Top Page */
@media (max-width: 768px) {
    .news {
        padding: 40px 20px 40px;
    }

    .news-text {
        font-size: 14px;
    }

    .cta-section {
        padding: 40px 20px 40px;
    }

}


/* Responsive for Product Page */
@media (max-width: 768px) {
    .product-block, .product-block-reverse {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .product-image img {
        height: auto;
    }

    .flow-section {
        padding: 50px 0;
    }

    .flow-intro {
        font-size: 16px;
        line-height: 1.8;
    }

    .flow-note {
        font-size: 14px;
        line-height: 1.8;
        padding: 0 20px;
    }

    .flow-arrows {
        display: none; /* スマホでは3方向矢印を消す */
    }

    .flow-steps {
        margin-bottom: 30px;
    }

    .flow-arrow-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px; /* 矢印の代わりにマージン */
    }
    /* 簡易的な下矢印を疑似要素で追加してもよいが、シンプルにする */
    .flow-step {
        width: 100%;
        max-width: 300px;
        position: relative;
        margin-bottom: 0px;
    }

    .flow-footer {
        font-size: 14px;
        line-height: 1.8;
        padding: 0 20px;
    }
    
    .contact-banner-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .product-concept {
        padding: 40px 0;
    }
    
    .product-concept-text {
        line-height: 1.8;
    }

    .product-concept-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-concept {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .product-concept-text br,
    .hero-catchphrase br {
        display: none;
    }

    .product-concept-text {
        text-align: justify;
        padding: 0 15px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 20px;
    }
    
    .hero-catchphrase {
        font-size: 22px;
        line-height: 1.4;
    }

    .hero-intro {
        font-size: 14px;
        line-height: 1.8;
        padding: 0 40px;
    }

    .product-name {
        font-size: 20px;
        text-align: center;
    }
    
    .product-desc {
        text-align: justify;
        font-size: 14px;
        line-height: 1.8;
        padding: 0 20px;
    }
}

/* Responsive for ISO Page */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-header {
        padding: 80px 20px 40px;
    }

    .page-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .page-desc {
        font-size: 14px;
        text-align: left;
        line-height: 1.6;
        padding: 0 20px;
    }
    .page-desc br {
        display: none;
    }

    .blue-message-bar {
        padding: 40px 20px;
        font-size: 15px;
        text-align: left;
    }
    .blue-message-bar br {
        display: none;
    }

    .blue-message-bar h3 {
        font-size: 16px;
        margin-bottom: 30px;
        text-align: center;
        padding: 0 20px;
    }

    .blue-message-bar p {
        font-size: 14px;
    }

    .iso-section {
        padding: 40px 20px;
    }

    .iso-desc {
        font-size: 14px;
    }

    .iso-desc li {
        font-size: 14px;
    }

    .iso-section-01 {
        text-align: left;
    }
    
    .iso-section-01 .iso-name {
        margin-bottom: 30px;
        text-align: center;
    }

    .iso-block {
        flex-direction: column;
        gap: 30px;
    }

    .iso-block-reverse {
        flex-direction: column-reverse;
    }

    .iso-info {
        width: 100%;
    }

    .iso-name {
        text-align: center;
        font-size: 20px;
    }

    .iso-image {
        width: 100%;
    }

    ul.iso-desc {
        padding-top: 10px;
    }

    .iso-desc li {
        margin-bottom: 12px;
        text-align: left;
        line-height: 1.3;
        list-style: disc;
    }

    .thinky-section {
        padding: 60px 20px;
    }

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

    .thinky-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .thinky-desc br {
        display: none;
    }

    .cases-section {
        padding: 0 20px 60px;
    }
    
    .cases-text-block {
        font-size: 14px;
        /* text-align: left; */
        text-align: center;
    }
    .cases-text-block br {
        display: none;
    }

    /* Philosophy Section override */
    .philosophy {
        padding: 40px 0 !important;
    }
}


/* Responsive for Company Page */
@media (max-width: 768px) {
    .mission-heading {
        font-size: 22px;
    }
    .mission-text {
        font-size: 14px;
        line-height: 1.8;
        padding: 0 20px;
    }

    .value-heading {
        font-size: 22px;
    }
    .value-desc {
        font-size: 14px;
        line-height: 1.8;
        padding: 0 20px;
    }

    .value-card h4 {
        font-size: 16px;
    }
    .company-cta {
        padding: 40px 0;
    }

    .company-cta-inner p {
        font-size: 18px;
    }
    .value-grid {
        grid-template-columns: 1fr;
    }
    .members-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 20px;
    }
    .section-title-mission,
    .section-title-value,
    .section-title-members {
        font-size: 20px;
        margin-bottom: 40px;
    }
    .founder-title {
        font-size: 24px;
    }
    .company-cta-inner {
        flex-direction: column;
        gap: 30px;
    }
    .section-title-mission::after,
    .section-title-value::after,
    .section-title-members::after {
        width: 400px;
        max-width: 80%;
    }

    .decoration-bg {
        padding: 40px;
    }

    .manager-grid {
        padding: 40px 0 40px;
        margin-bottom: 40px;
    }
    .manager-area {
        margin-bottom: 40px;
    }
}


/* =========================================
   Solution Page Styles
   ========================================= */

/* Solution Hero */
.solution-hero {
    margin-top: 80px; /* Header height offset */
    padding: 60px 0 100px;
}

.solution-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.solution-hero-text {
    flex: 1;
}

.solution-hero-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.solution-hero-desc {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.solution-hero-image {
    flex: 1;
}

.solution-hero-image img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .solution-hero {
        margin-top: 60px;
        padding: 40px 0 60px;
    }

    .solution-hero-inner {
        flex-direction: column;
        gap: 30px;
    }

    .solution-hero-title {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
    }

    .solution-hero-desc {
        font-size: 14px;
        text-align: left;
        line-height: 2;
    }

    .solution-hero-desc br {
        display: none;
    }
}

/* Solution CTA Bar */
.solution-cta-bar {
    background-color: #003366; /* Match image blue/grey bar */
    padding: 30px 0;
    text-align: center;
}

.solution-cta-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.btn-solution-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: #3FA9F5;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.3s;
    min-width: 230px;
}

.btn-solution-cta:hover {
    opacity: 0.8;
}

/* Solution Intro */
.solution-intro {
    padding: 100px 0 60px;
    text-align: left;
}

.solution-intro-inner {
    max-width: 700px;
    margin: 0 auto;
}

.intro-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 40px;
}

.intro-desc {
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Cases Grid Section */
.solution-cases {
    background-color: #dbebf5; /* Light blue bg */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cases-grid-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 120px; /* Space for VISION text */
}

.cases-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.case-card {
    text-align: left;
}

.case-img {
    margin-bottom: 20px;
}

.case-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.case-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.case-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

/* Vision Overlay Text */
.vision-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', sans-serif; /* Or serif if desired */
    font-size: 120px;
    color: #fff;
    font-weight: bold;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

/* Philosophy Section */
.solution-philosophy {
    background-color: #dbebf5; /* Same light blue or slightly different */
    padding: 100px 0;
}

.philosophy-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.philosophy-images {
    flex: 1;
}

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

.philosophy-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.philosophy-content {
    flex: 1;
}

.philosophy-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.philosophy-desc {
    font-size: 16px;
    line-height: 2;
    color: #444;
}

.solution-bottom-cta {
    background: #1F5C80;
}

/* Responsive for Solution Page */
@media (max-width: 768px) {
    .solution-hero {
        padding: 60px 20px 40px;
    }

    .solution-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .solution-intro {
        padding: 40px 20px 40px;
    }

    .solution-intro-inner .intro-title {
        font-size: 20px;
        line-height: 1.8;
        margin-bottom: 30px;
    }

    .solution-intro-inner .intro-desc {
        font-size: 14px;
        line-height: 1.8;
    }

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

    .solution-cases {
        padding: 40px 20px 40px;
    }

    .cases-grid-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .vision-overlay-text {
        display: none; /* Hide on mobile to simplify */
    }
    .cases-grid-wrapper {
        gap: 40px;
    }

    .solution-philosophy {
        padding-top: 0;
    }
    .philosophy-inner {
        flex-direction: column-reverse; /* Image bottom on mobile? Or top? Usually top or bottom. */
    }
    .philosophy-title,
    .intro-title {
        font-size: 22px;
    }
}

@media (max-width: 900px) {
    .vision-overlay-text {
        font-size: 80px;
    }
    .cases-grid-wrapper {
        gap: 80px;
    }
}

/* Google翻訳のUI隠しとカスタマイズ */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}
#google_translate_element {
    display: none !important;
}
/* 言語切り替えメニュー */
.language-menu-wrapper {
    position: relative;
    cursor: pointer;
}
.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
    margin-top: 10px;
}
.language-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #333;
}
.language-dropdown li {
    padding: 0;
    margin: 0;
    list-style: none;
}
.language-dropdown li a {
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    transition: background-color 0.2s;
}
.language-dropdown li a:hover {
    background-color: #555;
    opacity: 1;
}
/* モバイル対応 */
@media (max-width: 768px) {
    .language-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #222;
        margin-top: 0;
        text-align: center;
    }
    .language-dropdown::before {
        display: none;
    }
    .language-dropdown li a {
        padding: 12px 0;
    }
}
