:root {
    --brand-color: #0f4c81; /* 指定されたブランドカラー */
    --text-color: #333333;
    --bg-light: #f8f9fa;
}

body { 
    font-family: 'Noto Sans JP', sans-serif; 
    color: var(--text-color); 
    background-color: #ffffff; 
    letter-spacing: 0.03em; 
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   共通ヘッダー・ナビゲーション
   ========================================= */
.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}
.nav-item { margin: 0 10px; }
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff !important;
    transition: opacity 0.3s ease;
    padding: 0.5rem !important;
}
.nav-link:hover { opacity: 0.8; }
.nav-link .jp-text { font-size: 0.95rem; font-weight: 600; }
.nav-link .en-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -2px;
    letter-spacing: 0.05em;
}

.navbar-dark .navbar-toggler { border-color: rgba(255, 255, 255, 0.8); }
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: 4px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .navbar-nav .nav-item { border-bottom: 1px solid #eeeeee; }
    .navbar-nav .nav-item:last-child { border-bottom: none; }
    .nav-link {
        padding: 1rem 0.5rem !important;
        color: var(--brand-color) !important;
    }
    .nav-link .en-text { color: #888888 !important; }
}

/* =========================================
   共通コンポーネント (ページヘッダー, 見出し, トップに戻るボタン等)
   ========================================= */
.page-header {
    position: relative;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
    background-color: var(--brand-color);
    background-size: cover;
    background-position: center;
}
.page-header::before {
    display: none;
}
.page-header .container { position: relative; z-index: 2; }
.page-title {
    color: #000000;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;

    text-shadow:
        0 0 6px rgba(255,255,255,1),
        0 0 12px rgba(255,255,255,1),
        0 0 20px rgba(255,255,255,1),
        0 0 32px rgba(255,255,255,1);
}
.page-subtitle {
    color: #000000;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    text-shadow:
        0 0 4px rgba(255,255,255,1),
        0 0 8px rgba(255,255,255,1),
        0 0 16px rgba(255,255,2551),
        0 0 24px rgba(255,255,255,1);
}

.section-title {
    color: var(--brand-color);
    font-weight: 700;
    font-size: 2.2rem;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 3.5rem;
    position: relative;
    letter-spacing: 0.08em;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--brand-color);
}

#pageTopBtn {
    position: fixed;
    bottom: 100px;   /* 30px → 100px に変更（reCAPTCHAバッジの上に配置） */
    right: 30px;
    width: 38px;      /* 45px → 38px に変更（一回り小さく） */
    height: 38px;     /* 45px → 38px に変更（一回り小さく） */
    background-color: var(--brand-color);
    color: #ffffff;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;  /* 1.2rem → 1rem に変更（アイコンも少し小さく） */
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

#pageTopBtn.show { opacity: 0.8; visibility: visible; }
#pageTopBtn:hover { opacity: 1; transform: translateY(-3px); color: #ffffff; }

footer { border-top: 1px solid #eaeaea; color: #666; font-size: 0.9rem; }

/* =========================================
   各ページ専用スタイル
   ========================================= */
/* ----- トップページ (index.html) ----- */
/* スライス・分割エフェクト用スタイル */
.slice-slider-container { position: relative; width: 100%; height: 400px; overflow: hidden; background-color: var(--bg-light); }
.slice-slider-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; }
.slice-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; z-index: 2; }
.slice-item { flex: 1; height: 100%; position: relative; overflow: hidden; transform: translateY(-100%); transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.slice-item.active { transform: translateY(0); }
.slice-inner-image { position: absolute; top: 0; height: 100%; background-size: cover; background-position: center; }

/* スライダー上のテキスト */
.carousel-caption-custom {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: #000000; width: 90%;
    text-shadow: 2px 2px 0 #ffffff, -2px -2px 0 #ffffff, 2px -2px 0 #ffffff, -2px 2px 0 #ffffff, 0 2px 0 #ffffff, 0 -2px 0 #ffffff, -2px 0 0 #ffffff, 2px 0 0 #ffffff;
    z-index: 10; pointer-events: none;
}
.carousel-caption-custom h2 { font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.8rem); margin-bottom: 1rem; line-height: 1.4; }
.carousel-caption-custom p { font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 700; line-height: 1.6; }

.news-iframe-wrapper { width: 100%; height: 300px; border: 1px solid #000000; background-color: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.news-iframe-wrapper iframe { width: 100%; height: 100%; border: none; }

.video-thumbnail-container { width: 80%; margin: 0 auto; position: relative; cursor: pointer; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.video-thumbnail-container:hover { transform: translateY(-3px); }
.video-thumbnail-container img { width: 100%; height: auto; display: block; }
.video-thumbnail-container::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M6.271 5.055a.5.5 0 0 1 .52.038l3.5 2.5a.5.5 0 0 1 0 .814l-3.5 2.5A.5.5 0 0 1 6 10.5v-5a.5.5 0 0 1 .271-.445z'/%3E%3C/svg%3E");
    background-size: cover; opacity: 0.9; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.modal-backdrop.show { opacity: 0.5 !important; background-color: #000000 !important; }
.modal.fade .modal-dialog { transform: translateY(-50px); transition: transform 0.4s ease-out; }
.modal.show .modal-dialog { transform: none; }

.service-card { background: #fff; border: none; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 100%; padding: 2rem 1.5rem; text-align: center; }
.service-icon { font-size: 3rem; color: var(--brand-color); margin-bottom: 1.5rem; }
.service-title { font-weight: 600; font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-color); }

.link-banner { display: flex; align-items: center; justify-content: center; height: 120px; background-color: var(--bg-light); border: 1px solid #e0e0e0; border-radius: 8px; color: var(--brand-color); font-weight: 700; font-size: 1.2rem; text-decoration: none; transition: all 0.3s ease; }
.link-banner:hover { background-color: var(--brand-color); color: #ffffff; border-color: var(--brand-color); }

/* ----- 会社概要 (company) ----- */
.company-table { width: 100%; border-collapse: collapse; margin-bottom: 3rem; box-shadow: 0 4px 15px rgba(0,0,0,0.03); background-color: #fff; border-radius: 8px; overflow: hidden; }
.company-table th { background-color: var(--bg-light); color: var(--brand-color); width: 25%; padding: 1.5rem; font-weight: 600; border-bottom: 1px solid #eaeaea; vertical-align: middle; }
.company-table td { padding: 1.5rem; border-bottom: 1px solid #eaeaea; line-height: 1.8; color: var(--text-color); }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.message-box { background-color: #ffffff; border: 1px solid #eaeaea; border-left: 5px solid var(--brand-color); padding: 2.5rem; border-radius: 4px; line-height: 2; font-size: 1.05rem; box-shadow: 0 4px 15px rgba(0,0,0,0.02); margin-bottom: 4rem; }

/* ----- コンサルプラン (consulting) ----- */
.benefit-box { background: #fff; border: 1px solid #eaeaea; border-left: 5px solid var(--brand-color); padding: 2rem; margin-bottom: 3rem; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.plan-card { border: 1px solid #eaeaea; border-radius: 8px; text-align: center; padding: 2.5rem 1.5rem; height: 100%; transition: all 0.3s ease; }
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(15, 76, 129, 0.1); border-color: var(--brand-color); }
.plan-title { color: var(--brand-color); font-weight: 700; font-size: 1.4rem; margin-bottom: 1rem; }
.plan-price { font-size: 1.8rem; font-weight: bold; margin-bottom: 1.5rem; }
.plan-desc { color: #666; font-size: 0.95rem; margin-bottom: 2rem; }

/* ----- お問合せ / 見積依頼共通 (contact / estimate) ----- */
.empty-frame { border: 2px dashed #cccccc; border-radius: 8px; height: 400px; display: flex; align-items: center; justify-content: center; background-color: var(--bg-light); color: #999999; font-size: 1.2rem; font-weight: bold; }

/* ----- ISOについて (iso) ----- */
.iso-card { background: #fff; border: 1px solid #eaeaea; border-radius: 8px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.iso-card h3 { color: var(--brand-color); font-weight: 700; border-bottom: 2px solid var(--bg-light); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.iso-step { display: flex; align-items: flex-start; margin-bottom: 1.5rem; }
.iso-step-num { background: var(--brand-color); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; margin-right: 1.5rem; }
.iso-concept-img { width: 60%; height: auto; border-radius: 8px; box-shadow: none !important; border: none !important; }
@media (max-width: 991.98px) { .iso-concept-img { width: 100%; } }

/* ----- ポリシー関連共通 (privacy / security) ----- */
.policy-content { line-height: 2; padding: 3rem; background: #fff; border: 1px solid #eaeaea; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); color: #666; }
.policy-content h3 { color: var(--brand-color); font-weight: 700; font-size: 1.2rem; margin-top: 2rem; margin-bottom: 1rem; border-left: 4px solid var(--brand-color); padding-left: 1rem; }
.policy-meta { margin-top: 4rem; text-align: right; font-weight: bold; }
