:root {
    --primary-gold: #c5a059;
    --border-gray: #666;
    --accent-blue: #2563eb;
    --card-bg: rgba(20, 20, 20, 0.4);
    --input-bg: rgba(20, 20, 20, 0.4);
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #000;
    color: #fff;
}

    /* 背景画像の設定（共通） */
.page-wrapper {
    /*background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), */
    background: linear-gradient(rgba(50,20,0,0.5), rgba(20,10,0,0.5)), 
                url('../images/Background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ナビゲーション */
.navbar {
    padding: 1.5rem 2rem;
}
.navbar-brand {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    letter-spacing: 0.1rem;
}
.nav-link-custom {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
}
/*
.nav-link-custom:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
*/
.nav-link-custom.active {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}
.nav-link-custom:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary-gold);
}

/* TOP メインコンテンツ */
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.brand-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.5rem;
    margin-bottom: 0;
}
.brand-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.brand-text {
    font-family: 'Noto Serif JP', serif;
    /*font-size: 1.5rem;
    margin-bottom: 2rem;*/
}
.logo-img {
    max-width: 300px;
    height: auto;
    filter: brightness(0) invert(1); /* ロゴが黒い場合、白く反転させます */
}

.description-text {
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.05rem;
}
.cta-button {
    border: 2px solid #1e3a8a; /* 青系のボーダー */
    color: #3b82f6;
    background: transparent;
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 2rem;
    transition: 0.3s;
}
.cta-button:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* PROJECTS メインコンテンツ */
/* プロジェクトカード */
.project-card {
    background-color: var(--card-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    text-align: center;
    transition: transform 0.3s;
}
.project-card:hover {
    transform: translateY(-5px);
    .project-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto 2rem;
        display: block;
        filter: sepia(100%) saturate(300%) hue-rotate(10deg) brightness(90%); /* アイコンをゴールド調に */
    }
}

.project-title {
    /*font-family: 'Noto Serif JP', serif;*/
    font-size: 1.25rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1rem;
}

.project-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: block;
    filter: sepia(100%) saturate(300%) hue-rotate(10deg) brightness(45%); /* アイコンをゴールド調に */
}

.project-description {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    min-height: 4.8rem; /* 説明文の高さを揃える */
}

/* ステータスタグ */
.status-labels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.status-tag {
    border: 1px solid #fff;
    color: #fff;
    padding: 4px 20px;
    border-radius: 5px;
    font-size: 0.85rem;
    width: 160px;
    background: transparent;
}
.status-tag.poc {
    background: rgba(255,255,255,0.05);
}

/* contact */
/* フォームスタイル */
.contact-section {
    padding-top: 3rem;
    padding-bottom: 5rem;
}
.form-title {
    text-align: center;
    /*font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;*/
    font-size: 1.25rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1rem;
}
.form-label-custom {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: block;
}
.form-control-custom {
    background-color: var(--input-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    color: #fff;
    padding: 0.8rem 1.2rem;
}
.form-control-custom:focus {
    background-color: var(--input-bg);
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    outline: none;
}

/* 送信ボタン */
.submit-btn-wrapper {
    text-align: center;
    margin-top: 2rem;
}
.btn-submit {
    background: transparent;
    /*border: 1px solid #fff;
    color: #fff;*/
    border: 2px solid #1e3a8a; /* 青系のボーダー */
    color: #3b82f6;
    padding: 0.5rem 5rem;
    border-radius: 8px;
    transition: 0.3s;
}
.btn-submit:hover {
    /*background: rgba(255,255,255,0.1);
    color: #fff;*/
    border: 2px solid #1e3a8a; /* 青系のボーダー */
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* 右側エリア */
.info-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 3rem;
}
.signature {
    text-align: right;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 220px;
    filter: brightness(0) invert(1);
}

.flash-success {
    text-align: center;
    background-color:rgba(127, 255, 212, 0.1);/*127,255,212*/
    color: rgb(0, 255, 136);
    margin: auto;
    padding: 0.5rem 2rem;
    border: solid 1px;
    border-radius: 10px;
    min-width: 25%;
}
.flash-error {
    text-align: center;
    background-color:rgba(255, 255, 0, 0.1);/*127,255,212*/
    color: rgb(255, 255, 0);
    margin: auto;
    padding: 0.5rem 2rem;
    border: solid 1px;
    border-radius: 10px;
    min-width: 25%;
}

/* フッター */
footer {
    padding: 1rem 2rem;
    font-size: 0.8rem;
    color: #999;
    margin-top: auto;
}

@media (max-width: 768px) {
    .brand-title { font-size: 2.5rem; }
    .navbar-nav { gap: 10px; margin-top: 1rem; }
}