/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s ease;
    background-color: transparent;
}

.header.scrolled {
    background-color: #ffffff !important; /* 完全な白を指定 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ロゴコンテナ */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit; /* 必要なら色も継承させる */
}

/* ヘッダーロゴ */
.header-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    background-color: transparent !important;
    mix-blend-mode: multiply; /* 背景色とのブレンドモード変更 */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-right: 50px;
    transition: color 0.3s ease;
}

.scrolled .logo {
    color: #87CEFA;
}

/* ナビゲーション */
.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    margin-right: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.scrolled .nav-link {
    color: #87CEFA;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #87CEFA;
    transition: width 0.3s ease;
}

.nav-item:hover .nav-link::after {
    width: 100%;
}

/* サブメニュー */
/* PC版サブメニューのスタイル修正 */
.submenu-container {
    position: fixed;
    top: 67px;
    left: 0;
    width: 100vw;
    background-color: white;
    overflow: hidden;
    height: 0;
    transition: height 0.4s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.submenu-inner {
    max-width: 30%;
    margin: 0;
    padding: 20px 40px;
    display: flex;
}

.submenu-items {
    display: flex;
    flex-direction: column; /* 常に縦並び */
    width: 100%;
    gap: 10px; /* メニュー間隔を広げる */
}

.submenu-item {
    flex: 1;
    position: relative;
    padding-left: 15px;
}

.submenu-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
}

.submenu-item a::after {
    content: '>';
    position: absolute;
    right: 0;
    color: #87CEFA;
}

.nav-item:hover .submenu-container {
    height: auto;
    padding: 20px 0;
}

.submenu-title {
    width: 200px;
    color: #87CEFA;
    font-weight: bold;
    padding-right: 30px;
}

.submenu-item a:hover {
    color: #87CEFA;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    min-height: 100vh;
    overflow: hidden;
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-logo {
    position: absolute;
    top: 10%;
    right: 5%;
    height: 90vh;
    max-width: 50%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.2));
}

/* ヒーローテキスト */
.hero-text {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease !important;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 24px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* グラデーション背景 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #87CEFA;
    animation: trueGradient 20s linear infinite;
}

@keyframes trueGradient {
    0% { background-color: #87CEFA; }
    25% { background-color: #FFA07A; }
    25.01% { background-color: #FFA07A; }
    50% { background-color: #384040; }
    50.01% { background-color: #384040; }
    75% { background-color: #83d0ee; }
    75.01% { background-color: #83d0ee; }
    100% { background-color: #87CEFA; }
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    animation: colorSmoother 20s linear infinite;
    opacity: 0;
}

@keyframes colorSmoother {
    0%, 24% { background-color: #FFA07A; opacity: 0; }
    25% { opacity: 1; }
    49% { background-color: #384040; opacity: 1; }
    50% { opacity: 0; }
    74% { background-color: #83d0ee; opacity: 0; }
    75% { opacity: 1; }
    99% { background-color: #87CEFA; opacity: 1; }
    100% { opacity: 0; }
}

/* 流線形アニメーション */
.flow-line {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color), transparent 70%);
    border-radius: 50%;
    opacity: 0.7;
    z-index: 1;
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    outline: 1px solid rgba(255,255,255,0.3);
}

@keyframes flow-up {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

@keyframes flow-down {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    100% { transform: translateY(100vh) scale(0.5); opacity: 0; }
}

@keyframes flow-left {
    0% { transform: translateX(0) scale(1); opacity: 0.7; }
    100% { transform: translateX(-100vw) scale(0.5); opacity: 0; }
}

@keyframes flow-right {
    0% { transform: translateX(0) scale(1); opacity: 0.7; }
    100% { transform: translateX(100vw) scale(0.5); opacity: 0; }
}

/* サブコンテンツ */
.sub-content {
    padding: 80px 40px;
    background-color: white;
    color: #384040;
}

.sub-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sub-content-header {
    margin-bottom: 40px;
    text-align: left;
}

.sub-content-header-inner {
    display: inline-block;
}

.sub-content-description {
    font-size: 18px;
    color: #87CEFA;
    margin-bottom: 5px;
    font-weight: bold;
}

.sub-content-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    color: #384040;
}

.sub-content-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.content-box {
    background-color: #87CEFA;
    color: #333;
    padding: 0;
    border-radius: 0%;
    width: calc(31% - 10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-box-img {
    height: 40%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.content-box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-title-container {
    height: 20%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.9);
}

.box-title {
    font-size: 18px;
    font-weight: bold;
    color: #384040;
    text-align: center;
    width: 100%;
}

.box-content {
    font-size: 14px;
    height: 40%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255,255,255,0.9);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}





/* カルーセル用スタイル - シンプル版 */
.content-box-container {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
}

.carousel-inner {
    display: flex;
    overflow-x: auto; /* 横スクロールを有効に */
    scroll-snap-type: x mandatory; /* スクロールスナップ */
    scroll-behavior: smooth; /* スムーススクロール */
    -webkit-overflow-scrolling: touch; /* iOS用 */
    width: 100%;
    gap: 20px; /* アイテム間の間隔 */
    padding-bottom: 20px; /* スクロールバーのスペース */
}

/* カルーセル内のときだけ横幅指定 */
.carousel-inner .content-box {
    flex: 0 0 calc(30% - 14px);
    scroll-snap-align: start;
}


.carousel-inner::-webkit-scrollbar {
    height: 5px;
}

.carousel-inner::-webkit-scrollbar-thumb {
    background: #87CEFA;
    border-radius: 10px;
}

.carousel-inner .content-box {
    flex: 0 0 calc(33.333% - 14px); /* 3列表示 */
    scroll-snap-align: start; /* スクロールスナップ */
}

.carousel-next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #87CEFA;         /* 明るいスカイブルー */
    color: white;
    border: none;
    width: 60px;                 /* 幅を広げて視認性UP */
    height: 60px;
    border-radius: 50%;
    font-size: 28px;             /* 矢印を大きく */
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: none;             
    transition: all 0.3s ease;
  }
  
  .carousel-next:hover {
    background: #63bfe9;         /* 少し濃いめの青で反応感を */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  }
  




/* オフィスセクション */
.office-container {
    margin-top: 30px;
}

.office-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #384040;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #87CEFA;
    font-weight: bold;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #87CEFA;
}

.tab-button:hover:not(.active) {
    color: #87CEFA;
    opacity: 0.8;
}

.office-content {
    display: flex;
    height: 400px;
    border: 1px solid #ddd;
}

.tab-pane {
    display: none;
    width: 100%;
    height: 100%;
}

.tab-pane.active {
    display: flex;
}

.office-info {
    width: 30%;
    padding: 30px;
    background-color: rgba(56, 64, 64, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.office-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.office-info p {
    font-size: 14px;
}

.office-map {
    width: 70%;
    height: 100%;
}

/* フッター */
.footer {
    padding: 20px 0;
    text-align: center;
    background-color: white;
}

.footer-line {
    height: 1px;
    background-color: rgba(56, 64, 64, 0.8);
    margin-bottom: 15px;
    width: 100%;
}

.footer-text {
    color: rgba(56, 64, 64, 0.8);
    font-size: 12px;
}

/* ハンバーガーメニュー用スタイル */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: rgba(56, 64, 64, 0.8);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.scrolled .hamburger span {
    background-color: #87CEFA;
}

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

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

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

/* サブメニュートグルアイコン */
.submenu-toggle, .arrow {
    float: right;
    margin-left: 10px;
    font-size: 16px;
}


/* スマホ用スタイル */
@media (max-width: 768px) {
    .logo {
        font-size: 24px;
    }

    /* ハンバーガーメニュー基本スタイル */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 70px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .global-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 0;
    }

    .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    /* メニューリンクスタイル */
    .nav-link {
        color: rgba(56, 64, 64, 0.8);
        font-size: 16px;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* アイコン配置（右端） */
    .has-submenu .nav-link::after {
        /* content: '+'; */
        font-size: 18px;
        margin-left: 15px;
        transition: transform 0.3s ease;
    }

    .has-submenu .nav-link.active::after {
        /* content: '−'; */
    }

    .nav-item:not(.has-submenu) .nav-link::after {
        /* content: '>'; */
        font-size: 18px;
        margin-left: 15px;
    }

    /* サブメニューコンテナ */
    .submenu-container {
        position: static;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        background-color: #f9f9f9;
    }

    .submenu-container.active {
        height: auto;
    }

    
    .submenu-inner {
        max-width: 100%;
        margin: 0;
        padding: 20px 40px;
        display: flex;
    }

    /* サブメニューアイテム */
    .submenu-item a {
        padding: 12px 20px 12px 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: rgba(56, 64, 64, 0.8);
        font-size: 16px;
    }

    .submenu-item a::after {
        content: '>';
        font-size: 18px;
        margin-left: 15px;
    }

    /* ハンバーガーボタン */
    .hamburger {
        display: block;
    }

    /* メニューオープン時のスクロールロック */
    .no-scroll {
        overflow: hidden;
    }


    /* Heroテキストを半分のサイズに */
    .hero-title {
        font-size: 36px; /* 72px→36px */
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 18px; /* 24px→14px */
    }

    .hero-logo {
        height: 60vh;
        top: 20%;
        opacity: 0.8;
    }

    .sub-content {
        padding: 40px 20px;
    }

    .sub-content-title {
        font-size: 24px;
    }

    /* OLD  事例紹介を縦並びに */
    .sub-content-boxes {
        flex-direction: column;
    }


    /* カルーセル内のときだけ横幅指定 */
    .carousel-inner .content-box {
        flex: 0 0 calc(80% - 14px);
        scroll-snap-align: start;
    }

    .content-box {
        width: 100%;
        height: auto;
        min-height: 300px;
        margin-bottom: 20px;
    }

    .content-box-img {
        height: 180px;
    }

    .box-title {
        font-size: 16px; /* スマホ時のタイトルサイズ（18px→16px） */
    }
    
    .box-content {
        font-size: 12px; /* スマホ時の説明文サイズ（16px→14px） */
    }


    /* オフィス情報のテキストサイズ調整 */
    .office-info h3 {
        font-size: 16px;
    }

    .office-info p {
        font-size: 14px;
    }

    /* オフィスセクションを縦並びに変更 */
    .office-content {
        flex-direction: column;
        height: auto;
    }

    .office-info {
        padding: 20px;
        order: 1;
    }

    .office-map {
        height: 300px;
        order: 2;
    }

    /* タブボタンのスタイル調整 */
    .office-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* iOSでのスクロールをスムーズに */
    }

    .tab-button {
        flex: 0 0 auto;
        padding: 10px 20px;
        font-size: 14px;
    }

    /* タブボタンのアクティブスタイル */
    .tab-button.active::after {
        bottom: -5px; /* 下線の位置調整 */
    }

 
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px; /* さらに小さく */
    }

    .hero-title {
        font-size: 28px; /* さらに小さく */
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-logo {
        height: 50vh;
    }

    .content-box {
        min-height: 250px;
    }

    .content-box-img {
        height: 150px;
    }

    .office-info h3 {
        font-size: 12px;
    }

    .office-info p {
        font-size: 9px;
    }

    
    .office-info {
        padding: 10px;
    }

    .office-map {
        height: 250px;
    }

    
    /* メニューオープン時のスクロールロック */
    .no-scroll {
        overflow: hidden;
    
}