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

/* Font Loading - Hide until ready */
html {
    background: #eef2ed; /* bodyと同じ背景色 */
    min-height: 100vh;
    overflow-x: hidden; /* 横スクロールを防ぐ */
}

/* Flash overlay for page transitions */
#flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#flash-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Page fade-in animation */
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageFadeIn 0.8s ease;
}

html:not(.wf-active) body {
    visibility: hidden;
    opacity: 0;
}

html.wf-active body {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.8s ease;
}


/* Fallback for no-JS or timeout */
html.wf-inactive {
    visibility: visible;
    opacity: 1;
}

:root {
    --primary-color: #4a433d;
    --secondary-color: #4a433d;
    --bg-light: #f1f1ed;
    --bg-white: #fcfdfc;
    --gradient-purple: #d251ff;
    --gradient-cyan: #87deff;
    --border-color: #cccccc;
    --text-gray: #999;
    --accent-color: #0092c3;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--bg-light);
    background-image: url('../images/bg.svg');
    background-repeat: repeat;
    background-position: 0 0;
    background-size: 200px 200px;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;  /* 横スクロールを防ぐ */
}

/* Link Styles - Reset browser defaults */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}


/* Text links in content areas only */
.page-content a,
.ceo-message a,
p a:not(.service-card):not(.nav-section) {
    color: var(--gradient-purple);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.3s ease;
}

.page-content a:hover,
.ceo-message a:hover,
p a:not(.service-card):not(.nav-section):hover {
    color: var(--gradient-cyan);
}


/* English and Numbers Font */
.lang-en body,
time,
.news-date,
.service-name,
.logo-text,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
}

/* Header Styles */
.main-header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    padding: 20px 20px;
}

.main-header.scrolled {
    background: rgba(245, 250, 246, 0.0);
    backdrop-filter: blur(5px);
}

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

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

.logo a {
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-text {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-family: 'Barlow Condensed', sans-serif;
    align-self: flex-start;
    line-height: 1;
    margin-top: -5px;
}

.logo-divider {
    display: inline-block;
    width: 1px;
    height: 50px;
    background: var(--primary-color);
    transform: rotate(25deg);
    margin: 0 8px;
    position: relative;
    top: -2px;
}

.tagline {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 400;
    letter-spacing: 0.02em;
    align-self: flex-end;
}

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

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0px;
}

.lang-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 11px;
    padding: 5px 10px;
    transition: color 0.3s;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 500;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-separator {
    color: #ccc;
    font-size: 11px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 9999;
}

.menu-toggle.active {
    z-index: 10000;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s;
}

/* Hero Section - Index only */
.hero-section {
    text-align: center;
    padding: 120px 40px 60px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* 下層ページではhero-sectionを完全に非表示 */
body.subpage .hero-section {
    display: none !important;
}

/* 下層ページにindex-wrapperが残っても非表示にする */
body.subpage .index-wrapper {
    display: none !important;
}

.hero-title {
    font-size: 68px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    position: relative;
    z-index: 1;
    animation: glitchEffect 24s infinite;
}

.hero-title::before,
.hero-title::after {
    content: 'THINK CREATIVE';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    mix-blend-mode: multiply;
    clip-path: inset(0 0 0 0);
}

.hero-title::before {
    animation: glitchColorA1 24s infinite;
    text-shadow: -1px 0 currentColor;
    transform: translateX(-1px);
}

.hero-title::after {
    animation: glitchColorA2 24s infinite;
    text-shadow: 1px 0 currentColor;
    transform: translateX(1px);
}

/* Main glitch animation */
@keyframes glitchEffect {
    0%, 44% { transform: translate(0); }
    45% { transform: translate(-0.5px, 0.5px); }
    46% { transform: translate(0.5px, -0.5px); }
    47% { transform: translate(0, 0); }
    48%, 94% { transform: translate(0); }
    95% { transform: translate(-0.5px, 0.5px); }
    96% { transform: translate(0.5px, -0.5px); }
    97% { transform: translate(0, 0); }
    98%, 100% { transform: translate(0); }
}

/* Color Set A1: Magenta (first half of cycle) */
@keyframes glitchColorA1 {
    0%, 44% { 
        color: #ff00ff;
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }
    45% { 
        color: #ff00ff;
        opacity: 0.8;
        clip-path: inset(20% 0 60% 0);
    }
    46% { 
        color: #ff00ff;
        opacity: 0.8;
        clip-path: inset(40% 0 30% 0);
    }
    47% { 
        color: #ff00ff;
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }
    48%, 94% { 
        color: #00ffff;
        opacity: 0; 
    }
    95% { 
        color: #00ffff;
        opacity: 0.8;
        clip-path: inset(15% 0 65% 0);
    }
    96% { 
        color: #00ffff;
        opacity: 0.8;
        clip-path: inset(35% 0 35% 0);
    }
    97% { 
        color: #00ffff;
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }
    98%, 100% { opacity: 0; }
}

/* Color Set A2: Green / Yellow (second half of cycle) */
@keyframes glitchColorA2 {
    0%, 44% { 
        color: #00ff00;
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }
    45% { 
        color: #00ff00;
        opacity: 0.8;
        clip-path: inset(10% 0 70% 0);
    }
    46% { 
        color: #00ff00;
        opacity: 0.8;
        clip-path: inset(50% 0 20% 0);
    }
    47% { 
        color: #00ff00;
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }
    48%, 94% { 
        color: #ffff00;
        opacity: 0; 
    }
    95% { 
        color: #ffff00;
        opacity: 0.8;
        clip-path: inset(25% 0 55% 0);
    }
    96% { 
        color: #ffff00;
        opacity: 0.8;
        clip-path: inset(55% 0 15% 0);
    }
    97% { 
        color: #ffff00;
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }
    98%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    flex: 1;
}

.content-wrapper {
    flex: 1;
    padding-left: 100px;
    padding-right: 0;
    position: relative;
    z-index: 5;
}

/* 8bitファミコン風キューブキャンバスの強化 */
#cube-container canvas {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transform: scale(1.2);  /* 少し拡大してピクセルを目立たせる */
    filter: contrast(1.2) saturate(1.1);  /* コントラストと彩度を上げる */
}

/* Page Content Styles */
.page-content {
    padding: 0;  /* paddingを削除してフッターと位置を合わせる */
    width: 960px;  /* PC用: 他の下層ページと同じ幅 */
}

/* SP用は@media内で別途設定 */

/* 下層ページのcontent-wrapper調整 */
body.subpage .content-wrapper {
    padding-left: 0;  /* 一般の100pxを上書き */
}

.page-title {
    font-size: 48px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--primary-color);
    max-width: 1000px;
    width: 100%;
}

/* ページコンテンツの段落スタイル - Google Maps領域を除外 */
.page-content > p,
.page-content .license-list li {
    font-size: 16px;
    color: var(--primary-color);
    line-height: 1.8;
}

/* Google Mapsのgestureメッセージを白に */
.gm-style-mot {
    color: white !important;
    font-size: 14px !important;
}

/* その他のGoogle Maps要素はデフォルト */
.gm-style-cc,
.gm-style-cc * {
    color: initial !important;
}

/* Press Release Section */
.press-release {
    margin-bottom: 60px;
    width: 450px;
}

.page-title + .section-title,
.press-release .section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    padding-bottom: 25px;
    display: flex;
    gap: 20px;
}

.news-item a {
    display: flex;
    gap: 20px;
    transition: opacity 0.2s;
}

.news-item a .news-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.news-date {
    display: block;
    color: var(--primary-color);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.news-text {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

/* Service Cards */
.services {
    margin-top: 60px;
}

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

a.service-card,
.service-card {
    width: 450px;
    height: 130px;
    background: var(--bg-white);
    border-radius: 65px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

/* Common Banner Styles */
.service-image,
.service-icon {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
}

.service-card.konnichiworks .service-image {
    border-radius: 50%;
    overflow: hidden;
}

.service-card.konnichiworks .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employment-icon {
    width: 100px;
    height: 100px;
}

.service-content {
    padding: 0px 40px 0px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.service-logo {
    width: 240px;
    height: auto;
}

/* Side Menu */
.side-menu {
    width: 400px;
    background: transparent;
    border-radius: 40px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 120px;
    overflow: visible;
    z-index: 10;
    /* transitionを削除 - 不要 */
}

/* モバイルメニューが開いている時の設定 */
@media (max-width: 1100px) {
    .side-menu.mobile-active {
        z-index: 9998; /* ヘッダーより上、閉じるボタンより下 */
    }
}

/* 全ページのメニュー非表示（1100px以下） */
@media (max-width: 1100px) {
    .side-menu {
        display: none;
    }
}

/* 下層ページのメニュースタイル（PCのみ） */
@media (min-width: 1101px) {
    body.subpage .side-menu {
        width: 160px;
        position: fixed;
        left: 10px;  /* 10px離す */
        top: max(300px, 50%);  /* 50%と300pxの大きい方を使用 */
        transform: translateY(-50%);
        padding: 0;
        border-radius: 32px; /* 全体の角丸 */
    }
    
    body.subpage .side-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(245, 250, 246, 0.2);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 32px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        z-index: -1;
    }

    body.subpage .side-navigation {
        padding: 20px 0px;
        gap: 15px;
    }
    
    body.subpage .nav-section {
        padding: 0px 20px;
        cursor: pointer;
        position: relative;
        transition: color 0.3s;
        height: 40px;
        display: flex;
        align-items: center;
        color: var(--primary-color);
        text-decoration: none;
    }
    
    body.subpage .external-link {
        width: 13px;
        height: 13px;
    }

    /* アクティブなページのスタイル */
    body.subpage .nav-section.active {
        cursor: default;
        pointer-events: none;  /* クリック無効化 */
    }
    
    body.subpage .nav-section.active .nav-title {
        font-weight: 400;
    }
    
    /* アクティブページの左端インジケーター */
    body.subpage .nav-section.active::before {
        content: '';
        position: absolute;
        left: 0px;  /* 左端に配置 */
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 20px;
        background-color: var(--primary-color);  /* 文字と同じ色 */
    }

    /* アクティブページの帯を常に表示 */
    body.subpage .nav-section.active ~ .nav-backgrounds .nav-bg[data-index="0"],
    body.subpage .nav-section[data-index="0"].active ~ .nav-backgrounds .nav-bg[data-index="0"] {
        left: 0;
        opacity: 1;
        width: calc(100% + 10px);
    }

    body.subpage .nav-section[data-index="1"].active ~ .nav-backgrounds .nav-bg[data-index="1"] {
        left: 0;
        opacity: 1;
        width: calc(100% + 10px);
    }

    body.subpage .nav-section[data-index="2"].active ~ .nav-backgrounds .nav-bg[data-index="2"] {
        left: 0;
        opacity: 1;
        width: calc(100% + 10px);
    }

    body.subpage .nav-section[data-index="3"].active ~ .nav-backgrounds .nav-bg[data-index="3"] {
        left: 0;
        opacity: 1;
        width: calc(100% + 10px);
    }

    body.subpage .nav-section[data-index="4"].active ~ .nav-backgrounds .nav-bg[data-index="4"] {
        left: 0;
        opacity: 1;
        width: calc(100% + 10px);
    }

    /* 下層ページのコンテンツエリア調整 - フッターと同じ構造 */
    body.subpage .main-content {
        display: block;  /* flexを解除 */
        max-width: none;  /* 制限なし */
        padding: 100px 40px 40px 180px;  /* フッターと同じ左padding */
        margin: 0;  /* autoを削除 */
        flex: none;  /* flex:1を解除 */
    }

    body.subpage .content-wrapper {
        max-width: 960px;  /* footer-contentと同じ */
        margin: 0 auto;  /* footer-contentと同じ */
        padding: 0;  /* すべてのpaddingを削除 */
    }
}

.side-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 250, 246, 0.2);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    z-index: 0;
}


.side-navigation {
    display: flex;
    flex-direction: column;
    gap: 31px;
    padding: 40px 0;
    position: relative;
    /* transitionを削除 - 不要 */
    z-index: 2;
}

.nav-section {
    padding: 0 40px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    height: 58px;
    display: flex;
    align-items: center;
    z-index: 3;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-backgrounds {
    position: absolute;
    top: 40px;
    left: 0;
    right: -10px;
    bottom: 40px;
    z-index: 1;
    pointer-events: none;
}

.nav-bg {
    position: absolute;
    left: -10px;
    width: 0;
    height: 58px;
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    overflow: visible;
}

/* 下層ページの帯調整（PCのみ） */
@media (min-width: 1101px) {
    body.subpage .nav-backgrounds {
        top: 0;
        bottom: 0;
    }
    
    body.subpage .nav-bg {
        height: 40px;
    }
}


.nav-bg[data-index="0"] { top: 0; }
.nav-bg[data-index="1"] { top: 89px; }  /* 58px + 31px gap */
.nav-bg[data-index="2"] { top: 178px; } /* (58px + 31px) * 2 */
.nav-bg[data-index="3"] { top: 267px; } /* (58px + 31px) * 3 */
.nav-bg[data-index="4"] { top: 356px; } /* (58px + 31px) * 4 */
.nav-bg[data-index="5"] { top: 445px; } /* (58px + 31px) * 5 */

/* 下層ページの帯位置調整（PCのみ） */
@media (min-width: 1101px) {
    body.subpage .nav-bg[data-index="0"] { top: 20px; }
    body.subpage .nav-bg[data-index="1"] { top: 75px; }
    body.subpage .nav-bg[data-index="2"] { top: 130px; }
    body.subpage .nav-bg[data-index="3"] { top: 185px; }
    body.subpage .nav-bg[data-index="4"] { top: 240px; }
    body.subpage .nav-bg[data-index="5"] { top: 295px; }
}

.nav-section:hover ~ .nav-backgrounds .nav-bg[data-index="0"],
.nav-section[data-index="0"]:hover ~ .nav-backgrounds .nav-bg[data-index="0"] {
    width: calc(100% + 10px);
    opacity: 1;
}

@media (min-width: 1101px) {
    .nav-section:hover {
        color: white;
    }
    
    body.subpage .nav-section:hover {
        color: white;
    }
}

@media (min-width: 1101px) {
    .nav-section:hover .nav-title {
        transform: translateX(-3px);
    }
}

.nav-title {
    font-size: 34px;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    position: relative;
    z-index: 1;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    margin-top: -4px;
}

/* 下層ページのナビタイトル（PCのみ） */
@media (min-width: 1101px) {
    body.subpage .nav-title {
        font-size: 18px;
    }
}

.nav-title a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.external-link {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Company Description Section */
.company-description {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1; /* main-contentより下のレイヤー */
}

.description-container {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 300px;
}

.description-cubes {
    width: 300px;
    height: 300px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.description-cubes canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent !important;
}

/* PC時のみのマージン */
@media (min-width: 769px) {
    .description-cubes canvas {
        margin-left: -120px;
        margin-top: -150px;
    }
}

.description-content {
    flex: 1;
    max-width: calc(100% - 300px); /* 300px width only */
    position: relative;
    z-index: 15; /* キューブ(z-index: 10)より上 */
}

.description-content .description-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--primary-color);
    margin: 0;
    text-align: left;
    background: rgba(252, 253, 252, 0.6);
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-description {
        padding: 30px 20px 40px;
    }
    
    .description-container {
        flex-direction: column;
        gap: 0px;
        min-height: auto;
    }
    
    .description-cubes {
        /* width: 100%; */
        height: 500px;
        flex-shrink: 1;
        display: flex;
        justify-content: center;
        margin-top: -100px; /* 追加 */
    }
    
    .description-content {
        padding-left: 0;
        text-align: center;
        max-width: 100%;
        position: relative;
        z-index: 15; /* キューブ(z-index: 10)より上 */
    }
    
    .description-content .description-text {
        font-size: 18px;
        line-height: 1.7;
        background: rgba(252, 253, 252, 0.6);
        padding: 40px;
        backdrop-filter: blur(10px); /* ブラー効果 */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }
}

/* Footer */
.main-footer {
    background: transparent;
    padding: 60px 20px 20px;
    margin-top: auto;
}

/* Hidden Game Button */
.hidden-game-btn {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.6;
}

.hidden-game-btn:hover {
    transform: scale(1.1);
    opacity: 1;
    color: var(--gradient-cyan);
}

.hidden-game-icon {
    display: block;
}

/* Thank Page Button */
.back-home-btn {
    border-radius: 0 !important;
}

/* PC用フッターパディング調整 */
@media (min-width: 1101px) {
    body.subpage .main-footer {
        padding: 80px 40px 40px 180px;  /* 左側にサイドメニュー分のスペース */
    }
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.office {
    width: 270px;
}

.office.japan {
    text-align: left;
}

.office.vietnam {
    text-align: left;
}

.office h4 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    font-family: 'Barlow Condensed', sans-serif;
}

.office p {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    color: var(--primary-color);
    font-family: 'Barlow Condensed', sans-serif;
}

.footer-divider {
    display: inline-block;
    width: 1px;
    height: 130px;
    background: var(--primary-color);
    transform: rotate(25deg);
    margin: 0px 70px 0 50px;
    position: relative;
    top: -12px;
    flex-shrink: 0;
}

.footer-contact {
    width: 380px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.contact-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 20px 60px;
    font-size: 18px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.contact-btn:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.license-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}

.license-column {
    text-align: left;
}

.license-column p {
    font-size: 11px;
    color: var(--primary-color);
    line-height: 1.8;
    opacity: 0.8;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
}

.footer-links {
    text-align: center;
    margin: 15px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: var(--primary-color);
    font-size: 12px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.05em;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}


.copyright {
    font-size: 11px;
    color: var(--primary-color);
    line-height: 1.8;
    opacity: 0.8;
}

.copyright-text {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .content-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* 下層ページのモバイル調整 */
    body.subpage .main-content {
        padding: 80px 20px 20px 20px;  /* モバイル用padding */
        display: block;
        max-width: none;
        margin: 0;
        flex: none;
    }
    
    body.subpage .content-wrapper {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    
    .side-menu {
        width: 100%;
        position: static;
    }
    
    .main-header {
        padding: 15px 20px;
    }
    
    .logo a {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .logo-text {
        font-size: 24px;
        margin-top: 0;
        align-self: flex-start;
    }
    
    .logo-divider {
        display: none;
    }
    
    .tagline {
        align-self: flex-start;
        margin-bottom: 0;
        margin-top: 2px;
    }
    
    .menu-toggle {
        display: flex;
        top: 27px;
        right: 20px;
    }
    
    .header-right {
        margin-right: 40px;
    }
    
    .hero-section {
        padding: 120px 20px 50px;
    }
    
    .hero-title {
        font-size: 56px;
        letter-spacing: 0.02em;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.8;
        letter-spacing: 0.03em;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    /* ページコンテンツのモバイル調整 */
    .page-content {
        width: 100%;  /* SP用: 900px → 100% */
        max-width: 100%;  /* 画面幅を超えないように */
    }
    
    /* ページタイトルのモバイル調整 */
    .page-title {
        font-size: 36px;  /* 48px → 32px に縮小 */
        padding-bottom: 10px;  /* 下部の余白も調整 */
        margin-bottom: 15px;  /* マージンも調整 */
        max-width: 100%;  /* モバイルでは画面幅に収める */
        width: auto;  /* 自動調整 */
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .company-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    /* フッターレスポンシブ */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-divider {
        display: none;
    }
    
    .office {
        width: 100%;
        text-align: center;
    }
    
    .footer-contact {
        width: 100%;
        margin-top: 20px;
        justify-content: center;
    }
    
    .license-info {
        flex-direction: column;
        gap: 0;
    }
    
    .license-column {
        text-align: center;
    }
    
    .service-logo {
        width: 185px;
    }
    
    a.service-card,
    .service-card {
        width: 100%;
    }
    
    .press-release {
        width: 100%;
    }
    
    .nav-backgrounds {
        display: none;
    }
}

