/* 0. 基本リセットとグローバル変数 */
/* ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- カラー変数 --- */
    --primary-blue: #1d4c6b; 
    --accent-blue: #285672;  
    --mono-silver: #A0A0A0;  
    
    /* [DARK MODE] */
    --bg-dark: #191919;      
    --bg-lightest-dark: #282828;  
    --text-light: #F0F0F0;   
    --text-muted: #B0B0B0;   
    
    /* [LIGHT MODE] */
    --bg-white: #FFFFFF;     
    --bg-lightest-white: #e1dede;
    --bg-f8: #F8F8F8;
    --text-dark: #222222;    
    --text-muted-dark: #666666; 

    /* --- フォント変数 --- */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    /* --- サイズ統一用 --- */
    --fs-h2: 3.5rem;
    --fs-h3: 1.5rem;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-light);
    background-image: url('../img/white-background.jpg'); /* 画像を指定 */
    background-size: cover;                        /* 画面いっぱいに広げる */
    background-position: center;                   /* 中央合わせ */
    background-attachment: fixed;                  /* スクロールしても背景を動かさない */
    background-repeat: no-repeat;
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================================== */
/* 1. ヘッダー */
/* ==================================== */
.header {
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

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

.logo img { height: 50px; transition: opacity 0.3s; }
.logo img:hover { opacity: 0.8; }

.nav ul { display: flex; }
.nav ul li { margin-left: 25px; }
.nav ul li a {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav ul li a:hover { color: var(--primary-blue); }

/* ==================================== */
/* 2. 共通要素 (Typography) */
/* ==================================== */
.section-padding { 
    padding: 120px 0; 
    text-align: center; 
}

/* --- セクションタイトル (h2) の統一 --- */
h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 黒背景用ストローク */
h2.dark-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-light);
    text-stroke: 1.5px var(--text-light);
}

/* 白背景用ストローク */
h2.light-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-dark);
    text-stroke: 1.5px var(--text-dark);
}

/* --- サブタイトル (h3) の統一 --- */
h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 600;
    margin-bottom: 20px;
}

.section-tag {
    font-family: var(--font-heading); 
    color: var(--primary-blue);
    letter-spacing: 3px; 
    font-size: 0.9rem; 
    margin-bottom: 10px;
    display: block;
}

/* ==================================== */
/* 3. ヒーローセクション */
/* ==================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end; 
    justify-content: center; 
    text-align: center;
    overflow: hidden;
    padding-bottom: 8vh; 
}

.hero-video-bg {
    position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%); z-index: 1; object-fit: cover; filter: brightness(0.6);
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(25,25,25,0.8) 100%);
    z-index: 2;
}

.hero-content { position: relative; z-index: 3; width: 100%; padding: 0 40px; }

.main-brand-title {
    font-family: var(--font-heading); font-size: 4rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light);
}
.main-brand-title .mono-color { color: var(--mono-silver); }
.main-brand-title .id-color { color: var(--accent-blue); }

.main-brand-title.japanese-reading {
    font-size: 3rem; font-weight: 400; letter-spacing: 0.8em; margin: 10px 0 30px;
}

.sub-concept-title {
    font-size: 3.5rem; font-weight: 300; margin-top: 40px; letter-spacing: 0.1em;
}

.btn-scroll {
    display: inline-block; color: var(--text-light); font-family: var(--font-heading);
    letter-spacing: 3px; padding: 10px 0; border-bottom: 1px solid var(--primary-blue);
    margin-top: 40px; transition: 0.3s;
}
.btn-scroll:hover { color: var(--primary-blue); border-color: var(--text-light); }

/* ==================================== */
/* 4. コンセプト (黒背景) */
/* ==================================== */
.concept-section { background-color: var(--bg-dark); }
.concept-grid { display: flex; align-items: center; text-align: left; gap: 80px; }
.text-content { flex: 1; }
.text-content h2 { font-size: 2.8rem; text-align: left; margin-bottom: 20px; }

.btn-more {
    display: inline-block; color: var(--primary-blue); border: 1px solid var(--primary-blue);
    padding: 12px 30px; font-family: var(--font-heading); transition: 0.3s;
}
.btn-more:hover { background-color: var(--primary-blue); color: var(--bg-white); }

/* ==================================== */
/* 5. NEWS (白背景) */
/* ==================================== */
.news-section { /* rgbaの最後の数値(0.8)で透け具合を調整してください */
    background-color: rgba(255, 255, 255, 0.1); 
    color: var(--text-dark); 
    
    /* 背後の画像を少しぼかすと、文字の視認性が一気に上がります */
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); /* Safari用 */
}

.news-grid {
    max-width: 1000px; margin: 0 auto; border-top: 1px solid #ddd;
}

/* ニュースのグリッド・アイテム */
.news-item {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    padding: 20px 0;
    border-bottom: 1px solid #eee; /* 薄い線で区切る */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 日付：幅を140pxに固定して縦のラインを揃える */
.news-date {
    width: 140px;
    flex-shrink: 0; /* 幅が縮まないように固定 */
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin: 0; /* 余計なマージンをリセット */
}

/* タイトル：中央で広がり、日付の直後から開始位置を揃える */
.news-item h3 {
    flex-grow: 1; /* 残りのスペースをすべて使う */
    margin: 0 30px; /* 左右に適切な余白を確保 */
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    text-align: left; /* 左揃えを強調 */
}

/* カテゴリ：右端に配置し、幅を固定して右揃えに */
.news-category {
    width: 160px;
    flex-shrink: 0;
    text-align: right; /* 右に寄せる */
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.1em;
    margin: 0;
}

/* ホバー時の演出（少しだけ浮き上がらせる） */
.news-item:hover {
    background-color: rgba(29, 76, 107, 0.02);
    padding-left: 10px;
}


/* ==================================== */
/* 6. COLLECTION (黒背景) */
/* ==================================== */
.works-section {

background-color: var(--bg-dark); /* 黒背景を維持 */

}



.work-grid {

display: flex;

justify-content: center;

flex-wrap: wrap;

gap: 40px;

margin-top: 40px;

}



.work-item {

position: relative;

overflow: hidden;

cursor: pointer;

box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

transition: transform 0.3s ease;

}

.work-item:hover {

transform: scale(1.03);

}



.work-item img {

width: 100%;

height: 100%;

display: block;

object-fit: cover;

transition: filter 0.5s ease;

}

.work-item:hover img {

filter: brightness(0.4);

}



/* PCサイズ */

.item-large {

width: 600px;

height: auto;

min-height: 550px;

}

.item-small {
    width: 450px;
    height: auto;
    min-height: 550px;
}
.work-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(49, 93, 146, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.work-item:hover .work-overlay {
    opacity: 1;
}
.work-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--text-light);
    margin-bottom: 10px;
}
.work-overlay p {
    color: var(--text-light);
    font-size: 1em;
}
.works-video-container {
    margin-top: 100px;
    max-width: 1090px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.works-video-container .video-title {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}
.works-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1); /* <- 修正 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); /* <- 修正 */
}
.works-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ==================================== */
/* 7. TECHNICAL WORKS (白背景) */
/* ==================================== */
.technical-works-section { background-color: rgba(255, 255, 255, 0.1); color: var(--text-dark); }
.technical-works-section .lead { color: var(--text-muted-dark); max-width: 800px; margin: 0 auto 50px; }

/* ==================================== */
/* 8. 業務フロー (黒背景) */
/* ==================================== */
.flow-section { background-color: var(--bg-dark); }
.flow-grid { display: flex; gap: 30px; margin-top: 60px; }
.flow-item {
    flex: 1; padding: 40px 20px; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px; transition: 0.3s;
}
.flow-item:hover { border-color: var(--primary-blue); transform: translateY(-5px); }
.step-number { font-size: 3rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 10px; }

/* ==================================== */
/* 9. 料金 (白背景) */
/* ==================================== */
.pricing-section { background-color: rgba(255, 255, 255, 0.1); color: var(--text-dark); }
.pricing-explanation {
    max-width: 900px; margin: 0 auto 40px; padding: 30px;
    background-color: var(--bg-f8); border-left: 4px solid var(--primary-blue); text-align: left;
}
.pricing-factors ul { display: flex; gap: 20px; }
.pricing-factors li {
    background: var(--bg-f8); border: 1px solid #ddd; flex: 1; padding: 25px; border-radius: 5px;
}

/* ==================================== */
/* 10. ショールームセクション用の調整 */
/* ==================================== */
/* --- ショールーム：一時的な準備中マスク --- */
.is-preparing {
    position: relative;
    pointer-events: none; /* 下にあるボタン等をクリック不可にする */
    user-select: none;    /* テキスト選択も不可に */
}

/* 磨りガラスのようなベール */
.is-preparing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.3); /* 既存のダーク背景を活かす薄墨色 */
    backdrop-filter: blur(5px);      /* 強めのぼかしで神秘的に */
    -webkit-backdrop-filter: blur(5px);
    z-index: 20;
}

/* 「COMING SOON」の文字 */
.is-preparing::after {
    content: "COMING SOON";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 21;
    
    /* ブランドの美意識を反映したタイポグラフィ */
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    white-space: nowrap;
}

/* スマホ対応：文字サイズを少し小さく */
@media (max-width: 768px) {
    .is-preparing::after {
        font-size: 1.2rem;
        letter-spacing: 0.4em;
    }
}
#showroom .concept-grid {
    display: flex;
    align-items: center;
    gap: 80px;
}

#showroom .text-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}
/* ショールーム専用ボタンユニット */
.btn-showroom-main,
.btn-showroom-sub {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 300px;
    height: 80px;
    padding: 0 30px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* メイン：MONOIDブルーを背景に */
.btn-showroom-main {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.btn-showroom-main:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* サブ：ゴーストスタイル */
.btn-showroom-sub {
    background: transparent;
    color: #fff;
}

.btn-showroom-sub:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ラベル構成 */
.btn-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.btn-sub {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 4px;
    font-weight: 400;
}

/* アイコンの配置 */
.btn-showroom-main i,
.btn-showroom-sub i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .btn-group-showroom {
        flex-direction: column;
        align-items: center;
    }
    .btn-showroom-main, .btn-showroom-sub {
        width: 100%;
        max-width: 340px;
    }
}

/* モバイル対応 */
@media (max-width: 1024px) {
    #showroom .concept-grid {
        flex-direction: column;
        gap: 40px;
    }
    #showroom .text-content {
        text-align: center;
    }
    #showroom .btn-group {
        justify-content: center !important;
    }
}

/* ==================================== */
/* 11. フッター */
/* ==================================== */
.footer {
    background: var(--bg-lightest-dark); padding: 40px 0; color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.social-links a { font-size: 1.5rem; margin-left: 20px; transition: 0.3s; }
.social-links a:hover { color: var(--primary-blue); }

/* ==================================== */

/* 12. レスポンシブ対応 (Media Queries) */

/* ==================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .section-padding {
        padding: 80px 0;
    }
    .nav ul li {
        margin-left: 15px;
    }
    .concept-grid {
        flex-direction: column;
        gap: 40px;
    }

    .text-content {
        text-align: center;
    }

    .text-content h2 {
        text-align: center;
        font-size: 2.2em;
    }
    /* WORKS (COLLECTION) のアイテム調整 */

    .work-grid {
        gap: 20px;
    }
    .item-large, .item-small {
        width: 100%;
        height: auto;
        min-height: 400px;
    }
    .works-video-container {
        margin-top: 60px;
        padding: 0;
    }
}

/* --- 768px 以下 (Mobile Landscape/Standard Mobile) --- */

@media (max-width: 768px) {

/* ヘッダー */

.header .container {
    flex-direction: column;
    gap: 15px;
}
.nav ul {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
}
.nav ul li {
    margin: 0 5px;
}
.nav ul li a {
    font-size: 0.8em;
}
/* ヒーローセクション */

.hero-section {
    /* SPサイズでの調整: 15vhの定義はここが優先されます */
    padding-bottom: 15vh;
}
.hero-content {
    padding: 0 20px;
}
.main-brand-title {
    font-size: clamp(1em, 12vw, 1em);
    letter-spacing: 0.08em;
}
.main-brand-title.japanese-reading {
    font-size: 1.5rem;
    letter-spacing: 0.6em;
    margin-top: 5px;
    margin-bottom: 20px;
}
.sub-concept-title {
    font-size: clamp(0.8em, 12vw, 1.1em);
    margin-top: 20px;
    letter-spacing: 0.05em;
    white-space: normal;
    line-height: 1.3;
}
.hero-subtitle {
    font-size: 1.5em;
}
.tagline {
    font-size: 1.0em;
    letter-spacing: 4px;
    margin-bottom: 20px;
}


/* 共通要素 */

h2 {
/* ストロークh2のSP調整 */
    font-size: 2.5em;
    margin-bottom: 30px;
}
/* FLOWセクション */

.flow-grid {
    flex-direction: column;
    gap: 20px;
}
/* PRICINGセクション */
.pricing-explanation {
    padding: 20px;
    margin: 30px auto;
}

.pricing-factors h3 {
    font-size: 1.5em;
}

.pricing-factors ul {
    flex-direction: column;
}



/* CONTACTセクション */

.contact-section h3 {

font-size: 2em;

margin-bottom: 30px;

}


/* NEWSセクション */

.news-item {

flex-direction: column;

align-items: flex-start;

padding: 15px 20px;

}


.news-date {

order: 1;

margin-bottom: 5px;

}


.news-item h3 {

order: 2;

margin: 0 0 10px 0;

font-size: 1.0em;

}


.news-category {

order: 3;

text-align: left;

min-width: auto;

}


/* WORKSアイテムの高さ調整 */

.item-large, .item-small {

min-height: 350px;

}

}



/* --- 480px 以下 (Small Mobile) --- */

@media (max-width: 480px) {

/* ヘッダー */

.nav ul li {

margin: 0 4px;

}

.nav ul li a {

font-size: 0.7em;

}



/* ヒーローセクション (768px以下の定義を継承) */



/* コンタクトフォーム */

.contact-form {

padding: 30px 20px;

}


/* フッター */

.footer .container {

flex-direction: column;

gap: 15px;

text-align: center;

}


.right-footer-group {

flex-direction: column;

gap: 15px;

}



.footer-links a {

margin: 0 10px;

}

}