/* ==================== */
/* CSS変数定義
/* ==================== */
:root {
    --primary-color: #ffffff;
    /* --secondary-color: #000000; */
    --secondary-color: #012760;
    /* --text-color: #333333; */
    --text-color: #000048;
    --light-text: #4d4d4d;
    /* --background-light: #f9f9f9; */
    --background-light: #E8F0FE;
    --border-light: #eee;
    --border-medium: #ddd;
    --hover-light: #f5f5f5;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --overlay-medium: rgba(0, 0, 0, 0.5);
    --success-bg: #d4edda;
    --success-text: #155724;
    --error-bg: #f8d7da;
    --error-text: #721c24;
}

/* ==================== */
/* リセット & ベーススタイル
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--secondary-color);
}

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

a:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

html {
    scroll-padding-top: 80px; 
    scroll-behavior: smooth;
}

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

img[loading="lazy"] {
    background-color: var(--hover-light);
}

/* ==================== */
/* レイアウト & コンテナ
/* ==================== */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 40px;
    font-weight: 400;
}

/* セクション説明文（共通スタイル） */
.section-description {
    margin: 0 auto 40px;
    max-width: 700px;
    text-align: center;
}

.section-description p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ==================== */
/* ヘッダー & ナビゲーション
/* ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.logo-img {
    height: 40px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ==================== */
/* メインビジュアル（スライダー）
/* ==================== */
.image-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.image-slide.active {
    opacity: 1;
}


.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-color);
    background-color: rgba(0, 40, 80, 0.5); /* 普通のブルー */
    padding: 20px 30px;
    max-width: 600px;
    z-index: 2; /* オーバーレイの上に表示 */
}

.slide-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.slide-content p {
    font-size: 1.1rem;
    font-weight: 400;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 3; /* 最前面に */
}

.slider-controls button {
    /* background-color: rgba(0, 0, 0, 0.5); */
    background-color: rgba(0, 40, 80, 0.5); /* 普通のブルー */
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: none;
    z-index: 4; /* さらに上に */
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 100; /* 最前面に */
}

/* ==================== */
/* 背景色がライトのセクション
/* ==================== */
.services,
.clients,
.contact {
    background-color: var(--background-light);
}

/* ==================== */
/* サービスセクション
/* ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    background-color: var(--primary-color);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.service-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
}

.service-icon {
    position: absolute;
    bottom: -25px;
    right: 15px;
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px var(--shadow-light);
    z-index: 2;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.service-info {
    padding: 40px 20px 25px;
    text-align: center;
}

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-info p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== */
/* 会社情報セクション
/* ==================== */
.company-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.company-info {
    flex: 1;
    min-width: 300px;
}

.company-info-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-right: 15px;
    color: var(--secondary-color);
    min-width: 100px;
    flex-shrink: 0;
}

.info-item p {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
}

/* ==================== */
/* お問い合わせフォーム
/* ==================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--primary-color);
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.required {
    color: #e74c3c;
}

.form-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-result {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.success {
    background-color: var(--success-bg);
    color: var(--success-text);
    display: block;
}

.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    display: block;
}

/* ==================== */
/* フッター
/* ==================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-logo-img {
    filter: brightness(0) invert(1);
}

.footer-info p {
    margin-bottom: 15px;
}

.footer-info address p {
    margin-bottom: 10px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    align-items: flex-start; /* center → flex-startに変更 */
}

.footer-info address{
    margin-top: 20px;
}

.footer-info i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-links h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

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

.footer-links ul li a {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

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

.footer-logo-img {
    height: 40px;
    margin-right: 10px;
}

/* ==================== */
/* 実績セクション
/* ==================== */
.performance-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* 左側：画像（並列） */
.performance-left {
    flex: 1;
}

.image-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.image-top,
.image-bottom {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.image-top img,
.image-bottom img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* 右側：実績情報 */
.performance-right {
    flex: 1;
}

.performance-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.performance-box {
    flex: 1;
    padding: 25px 15px;
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
}

.performance-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.performance-number .count {
    font-size: 2.5rem;
    line-height: 1;
}

.performance-number .suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
}

.performance-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.performance-box p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 売上高セクション */
.performance-sales {
    padding: 25px;
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.performance-sales h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

/* 売上内訳 */
.sales-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: var(--background-light);
}

.period {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.amount {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}　

/* 注記 */
.sales-note {
    text-align: center;
    /* padding-top: 15px;
    border-top: 1px solid var(--border-light); */
}

.sales-note p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* ==================== */
/* 主要取引先セクション
/* ==================== */
.clients {
    background-color: var(--background-light);
}

.clients-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.clients-left {
    flex: 1;
}

.clients-right {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

/* 左側：取引先グリッド */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.client-item {
    padding: 12px 10px;
    background-color: var(--primary-color);
    transition: transform 0.2s ease;
}

.client-item:hover {
    transform: translateX(5px);
}

.client-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

.client-subname {
    font-size: 0.8rem;
    color: var(--light-text);
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* 左側：注記 */
.clients-note p {
    font-size: 0.85rem;
    color: var(--light-text);
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* 右側：写真 */
.client-image {
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-medium);
    width: 100%;
}

.client-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}



.privacy .container {
    margin-top: 60px;
}

.privacy p {
    color: var(--light-text);
}

/* ==================== */
/* レスポンシブデザイン
/* ==================== */

/* タブレット (1024px以下) */
@media (max-width: 1024px) {
    .section {
        padding: 40px 0;
    }
    
    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--secondary-color);
        transition: left 0.3s;
        padding: 20px 0;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .slide-content {
        width: 90%;
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .company-content {
        flex-direction: column;
    }
    
    .company-info, .map-container {
        width: 100%;
    }
    
    .info-item h4 {
        margin-bottom: 5px;
    }
    
    /* 実績セクション */
    .performance-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .image-stack {
        flex-direction: row;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .image-top img,
    .image-bottom img {
        height: 200px;
    }
    
    .sales-breakdown {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 取引先セクション */
    .clients-content {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }
    
    .clients-right {
        height: auto;
    }
    
    .client-image img {
        max-height: 350px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* タブレット小 (768px以下) */
@media (max-width: 768px) {
    .performance-row {
        flex-direction: column;
    }
    
    .sales-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .client-name {
        font-size: 0.85rem;
    }
    
    .client-image img {
        max-height: 300px;
    }
}

/* スマホ (576px以下) */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description p {
        font-size: 0.95rem;
    }

    .slide-right-adjust {
        background-position: 30% center !important;
    }
    
    .slide-content h2 {
        font-size: 1.4rem;
    }
    
    .slider-controls button {
        display: none;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-info {
        padding: 35px 15px 20px;
    }
    
    /* 実績セクション */
    .image-stack {
        flex-direction: column;
    }
    
    .image-top img,
    .image-bottom img {
        height: 180px;
    }
    
    .sales-breakdown {
        grid-template-columns: 1fr;
    }
    
    .performance-sales {
        padding: 20px 15px;
    }
    
    .performance-number {
        font-size: 2rem;
    }
    
    .performance-number .count {
        font-size: 2rem;
    }
    
    /* 取引先セクション */
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-image img {
        max-height: 250px;
    }
    
    .client-name {
        font-size: 0.9rem;
    }
}