/* * style.css
 * Industrial & Non-Grid Vanilla CSS (Fully Responsive with clamp & vw)
 */

:root {
    --bg-main: #f4f4f4;
    --text-main: #111111;
    --color-gray: #e0e0e0;
    --color-dark-gray: #2b2b2b;
    --color-steel-blue: #4a5c6a;
    
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Oswald', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}



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

}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-jp);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden; /* 横スクロールの発生を防止 */

}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    /* 画面幅に応じてパディングを可変 (最小20px ~ 最大40px) */
    padding: 0 clamp(20px, 5vw, 40px);
    position: relative;
}


img{
    max-width: 100%;
}
/* =========================================
   Staggered Animations (1つずつ出現)
========================================= */
.js-stagger-item {
    opacity: 0;
    transform: translateY(30px);
    /* 工業的デザインに合わせてシャープな動きに */
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-stagger-item.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* セクションの上下余白も画面幅で滑らかに変化 */
.section { padding: clamp(80px, 15vw, 140px) 0; }
.relative-box { position: relative; }

/* =========================================
   Typography & Industrial Accents
========================================= */
.mono-accent {
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.2vw, 13px);
    color: var(--color-steel-blue);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-en);
    /* clamp(最小値, 推奨値, 最大値) でフォントサイズを無段階調整 */
    font-size: clamp(32px, 6vw, 48px);
    text-transform: uppercase;
    margin-bottom: clamp(40px, 8vw, 80px);
    position: relative;
    z-index: 2;
}

.section-title::before {
    content: attr(data-title);
    position: absolute;
    top: clamp(-20px, -4vw, -40px);
    left: clamp(-10px, -2vw, -20px);
    font-size: clamp(50px, 12vw, 100px);
    color: rgba(0,0,0,0.03);
    z-index: -1;
    white-space: nowrap;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-main);
}

.bg-box { position: absolute; z-index: 0; }
.bg-blue { background-color: var(--color-steel-blue); }
.bg-gray { background-color: var(--color-gray); }

/* =========================================
   Header
========================================= */
.header {
position: fixed;
    top: 0;
    left: 0;
    /* width: 100% や right: 0 の代わりに、横幅いっぱいに広げる安全な指定 */
    width: 100%;
    z-index: 1000;
    mix-blend-mode: difference;
    color: #fff;
    /* 上下の余白のみ指定。左右の余白は .header-inner に任せます */
    padding: clamp(15px, 3vw, 30px) 0;
    box-sizing: border-box;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* ここで左右の余白を確実に確保します */
    padding: 0 clamp(20px, 5vw, 40px);
    margin: 0 auto;
    /* 幅の指定を削除（flexboxの性質で自動的に適切な幅になります） */
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-family: var(--font-en);
    font-size: clamp(18px, 3vw, 24px);
    letter-spacing: 0.1em;
}

.logo span {
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.5vw, 12px);
    margin-left: 10px;
    font-weight: normal;
}

.global-nav ul { 
    display: flex; 
    gap: clamp(15px, 3vw, 40px); 
    flex-wrap: wrap;
}

.global-nav a {
    font-family: var(--font-en);
    font-size: clamp(12px, 1.5vw, 14px);
    letter-spacing: 0.1em;
}




/* =========================================
   Hamburger Menu (Mobile Base)
========================================= */
/* PC表示ではボタンを隠す */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2000; /* メニューより上に配置 */
}

/* 3本線の基本スタイル */
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); /* シャープな動き */
}

/* スマホ用（768px以下）のレイアウト切り替え */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* スマホでボタンを表示 */
    }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態は画面外（右側）に隠す */
        width: 100%;
        height: 100vh;
        background-color: var(--color-dark-gray);
        transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 1500;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* is-activeが付いたら右からスライドイン */
    .global-nav.is-active {
        right: 0;
    }

    .global-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .global-nav a {
        font-size: 24px;
        color: #fff;
    }

    /* --- パターンC: マイナス収束 --- */
.hamburger-line:nth-child(1) { top: 8px; }
.hamburger-line:nth-child(2) { top: 19px; }
.hamburger-line:nth-child(3) { top: 30px; }

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(11px);
}
.hamburger.is-active .hamburger-line:nth-child(2) {
    transform: scaleX(0.8); /* 少しだけ短くなる */
}
.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-11px);
}
}





/* =========================================
   Hero (Non-Grid)
========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: clamp(5vw, 10vw, 10vw);
    padding-top: 80px; /* ヘッダー被り防止 */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero .bg-blue {
    width: clamp(250px, 40vw, 500px);
    height: clamp(300px, 60vh, 600px);
    top: -10vh;
    left: clamp(10vw, 20vw, 20vw);
}

.hero-text { position: relative; z-index: 2; }

.hero-title {
    font-family: var(--font-en);
    font-size: clamp(48px, 10vw, 120px);
    line-height: 0.9;
    margin-bottom: clamp(20px, 5vw, 40px);
}

.hero-desc-box {
    background: var(--color-dark-gray);
    color: #fff;
    padding: clamp(20px, 4vw, 30px);
    width: min(90%, 400px); /* スマホでは90%、最大400px */
    margin-left: clamp(0px, 15vw, 15vw); /* PCのみずらす */
    font-size: clamp(12px, 1.5vw, 14px);
    border-left: 4px solid var(--color-steel-blue);
}

/* =========================================
   About (Broken Grid)
========================================= */
.about-broken-grid {
    display: flex;
    flex-direction: column; /* ベースは縦積み */
    align-items: center;
    position: relative;
}

/* PC以上の画面幅（タブレット以上）で横並び・重ねを有効化 */
@media (min-width: 769px) {
    .about-broken-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .about-image-placeholder { width: 45%; }
    .about-text-box {
        width: 60%;
        margin-left: -15%;
        margin-top: 100px;
    }
}

.about-image-placeholder {
    width: 100%;
    height: clamp(300px, 50vw, 500px);
    background: #d5d5d5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}

.about-text-box {
    width: min(95%, 600px);
    background: #fff;
    padding: clamp(30px, 6vw, 60px);
    /* スマホ時は上にずらして重ねる（ノングリッドの維持） */
    margin-top: -50px; 
    box-shadow: 10px 10px 0px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.about-text-box h3 {
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: clamp(15px, 3vw, 30px);
    font-weight: 900;
}

.policy-block {
    margin-top: clamp(20px, 4vw, 40px);
    padding-top: clamp(15px, 3vw, 30px);
    border-top: 1px dashed #ccc;
}


/* =========================================
   Service (Staggered Layout)
========================================= */
.service-staggered {
    display: grid;
    /* auto-fit と minmax で画面幅に合わせて列数を自動調整 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 30px);
}

.tile {
    background: #fff;
    padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 30px);
    border: 1px solid var(--color-dark-gray);
    position: relative;
}

/* PC時のみ高さをずらす（スマホ時は整列させて見やすく） */
@media (min-width: 900px) {
    .item-1 { margin-top: 0; }
    .item-2 { margin-top: 80px; }
    .item-3 { margin-top: 40px; }
}

.tile .icon {
    font-size: clamp(20px, 3vw, 24px);
    color: var(--color-steel-blue);
    margin-bottom: 20px;
    text-align: center;
}

.tile h3 {
    font-family: var(--font-en);
    font-size: clamp(20px, 3vw, 24px);
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}


/* =========================================
   Credentials
========================================= */
.credentials { margin-bottom: clamp(50px, 10vw, 100px); }

.credentials .bg-gray {
    width: clamp(80%, 90vw, 100%);
    height: 100%;
    top: -30px;
    right: 0;
}

.cert-list {
    background: #fff;
    padding: clamp(30px, 6vw, 60px);
    border: 1px solid #ccc;
    width: min(100%, 800px);
    position: relative;
    z-index: 2;
}

.cert-list li {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cert-list .mono-accent { 
    display: inline-block; 
    margin-right: 15px; 
    margin-bottom: 0; 
}

.credentials-note {
    margin-top: 30px;
    font-size: clamp(12px, 1.5vw, 14px);
    color: #666;
}

/* =========================================
   Footer
========================================= */
.footer {
    background: var(--color-dark-gray);
    color: #fff;
    padding: clamp(60px, 12vw, 100px) 0 40px;
}

.footer-box { 
    text-align: center; 
    margin-bottom: clamp(60px, 10vw, 100px); 
}

.footer-title {
    font-family: var(--font-en);
    font-size: clamp(36px, 8vw, 60px);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    margin-top: clamp(20px, 4vw, 40px);
    padding: clamp(15px, 3vw, 20px) clamp(30px, 6vw, 50px);
    background: var(--color-steel-blue);
    color: #fff;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    font-size: clamp(12px, 2vw, 16px);
    position: relative;
    transition: 0.3s;
}

.btn-primary:hover { 
    background: #fff; 
    color: var(--color-dark-gray); 
}

.footer-bottom {
    display: flex;
    flex-direction: column; /* スマホは縦積み */
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

@media (min-width: 769px) {
    .footer-bottom {
        flex-direction: row; /* PCは横並び */
    }
}

.footer-bottom .mono-accent { color: #888; }