@charset "utf-8";
/* Bootstrapカスタム用: 必要な場合のみここに追記 */

/* ===== カラースキーム: クラシック・プロフェッショナル（最適化版） ===== */
:root {
    /* メインカラー: 深いブルー（信頼性・専門性） */
    --color-primary: #1e40af;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1e3a8a;
    --color-primary-ultra-light: #dbeafe;
    
    /* アクセントカラー: オレンジ/アンバー（革新性・エネルギー） */
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-accent-light: #fbbf24;
    
    /* サブアクセント: エメラルドグリーン（環境・持続可能性） */
    --color-sub-accent: #10b981;
    --color-sub-accent-dark: #059669;
    --color-sub-accent-light: #34d399;
    
    /* テキストカラー */
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-lighter: #9ca3af;
    
    /* 背景カラー */
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-bg-lighter: #f3f4f6;
    --color-border: #e5e7eb;
    
    /* セラミック・アースカラー（補助） */
    --color-earth: #d4a574;
    --color-earth-dark: #b8935f;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text);
    /* スムーズレンダリングのためのGPU加速 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

footer {
    background: #1E3A8A;
    color: #ffffff;
    padding: 4rem 0 2rem;
}


footer strong,
footer address,
footer p {
    color: #ffffff !important;
}



html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 100000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ローディング画面中央揃え */
#loader-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--color-primary-dark) 0%, 
        var(--color-primary) 50%, 
        var(--color-primary-dark) 100%);
    z-index: 99999;
}

#loader-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#loader-bg span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#loader-bg>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.loader-company-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Header Navigation - Modern Glassmorphism Design */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ページ外からのアンカーリンク遷移時のヘッダー高さ考慮 */
/* navbar padding: 1rem(16px) * 2 + コンテンツ高さ ≈ 85px */
html {
    scroll-padding-top: 85px;
}

section[id] {
    scroll-margin-top: 85px;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.site-header .navbar {
    padding: 1rem 1.5rem;
}

.site-header .navbar-brand {
    padding: 0;
    margin-right: 3rem;
}

.site-header .brand-text {
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.site-header .navbar-brand:hover .brand-text {
    color: var(--color-primary-dark);
    letter-spacing: 0.12em;
}

.site-header .nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 6px;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--color-primary);
    background: rgba(30, 58, 138, 0.05);
}

.site-header .nav-link.active {
    color: var(--color-primary);
    background: rgba(30, 58, 138, 0.08);
    font-weight: 600;
}

.site-header .nav-link-contact {
    background: var(--color-primary);
    color: white !important;
    border-radius: 6px;
    margin-left: 1rem;
    padding: 0.5rem 1.5rem;
}


.site-header .nav-link-contact:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.site-header .navbar-toggler {
    border: 1px solid rgba(30, 58, 138, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.site-header .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.site-header .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%2830, 58, 138, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero以外の全体フォント指定 */
body {
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

h2.card-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

h3.desc-card {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1rem;
}

h5 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.03em;
}

.small {
    font-size: 0.875rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}



/* Heroセクションテキストフォント */
.hero-section h1,
.hero-section h2,
.hero-section p {
    font-family: 'Noto Serif JP', serif;
}

.hero-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.hero-section .small {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-section .lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 2.2;
    letter-spacing: 0.05em;
}


/* Philosophyセクション背景画像透過 */
.parallax-bg {
    opacity: 0.4;
}

/* Philosophyセクション オーバーレイ */
.philosophy-overlay {
    z-index: 2;
    background: 
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.5) 0%, 
            rgba(0, 0, 0, 0.4) 50%, 
            rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(135deg, 
            rgba(30, 58, 138, 0.6) 0%, 
            rgba(30, 64, 175, 0.5) 50%, 
            rgba(30, 58, 138, 0.6) 100%);
}

.philosophy-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.12) 0%, transparent 45%);
}

/* Philosophyセクション テキストシャドウ */
.philosophy-section .card-body * {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Philosophyセクション タイポグラフィ */
.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.philosophy-title {
    font-size: 2.5rem;
    font-weight: 300 !important;
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin-bottom: 3rem !important;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.philosophy-lead {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-left: 0;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.philosophy-lead-en {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    padding-left: 0;
    margin-bottom: 3.5rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Philosophy カード分割レイアウト */
.philosophy-cards-container {
    margin-top: 3rem;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 50%),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(59, 130, 246, 0.3),
                0 0 0 2px rgba(16, 185, 129, 0.15);
}

.philosophy-card:hover::before {
    opacity: 1;
}

.philosophy-card-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card:hover .philosophy-card-number {
    color: rgba(52, 211, 153, 0.8);
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.philosophy-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.philosophy-card-text {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    letter-spacing: 0.03em;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Heroセクション高さ調整 */
.hero-section {
    min-height: 80vh;
}

/* Hero背景動画のスムーズ再生設定 */
.hero-bg-video {
    /* GPU加速を有効化 */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    
    /* スムーズレンダリング */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    
    /* アンチエイリアシング */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* パフォーマンス最適化 */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* スムーズなスクロール */
    -webkit-overflow-scrolling: touch;
}

/* Hero オーバーレイ - 微細なドットパターン */
.hero-overlay {
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)),
        radial-gradient(ellipse at top, rgba(30, 64, 175, 0.15), transparent 50%);
    background-size: 
        20px 20px,
        20px 20px,
        100% 100%,
        100% 100%;
    background-position: 
        0 0,
        10px 10px,
        0 0,
        0 0;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Philosophyセクション高さ調整 */



.contact-btn {
    background-color: #1e40af !important;
    color: white !important;
    border-color: #1e40af !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 0.875rem 2.5rem;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--color-primary) !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: rgba(255, 255, 255, 1) !important;
    color: var(--color-primary-dark) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}


/* Business セクションのジグザグレイアウト */
.business-cards-container {
    max-width: 900px;
    margin: 0 auto;
}

.business-card {
    margin-bottom: 4rem;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.business-card:hover {
    opacity: 1;
}

.business-card-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
}

.business-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.92) contrast(1.08) saturate(0.95);
}

.business-card:hover .business-card-img img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1) saturate(1);
}

.business-card-content {
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.business-card-content .card-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--color-text) !important;
    position: relative;
    padding-bottom: 0.75rem;
}

.business-card-content .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-sub-accent) 100%);
    border-radius: 2px;
}

.business-card-content .card-text {
    font-size: 0.9375rem;
    line-height: 1.85;
    letter-spacing: 0.02em;
    color: var(--color-text-light) !important;
}

/* hr */
hr.hr-bk {
    margin: 0;
}

/* Page Top ボタン右下固定 */
.apagetop {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: block;
    text-align: center;
}

.apagetop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.apagetop a {
    display: inline-block;
    width: 110px;
    height: 110px;
    background: none;
    text-decoration: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.apagetop a:hover {
    transform: translateY(-4px);
}

.apagetop img,
.apagetop svg {
    display: block;
    margin: 0 auto 4px auto;
    width: 100px;
    height: 100px;
}

.apagetop a span,
.apagetop a p {
    display: block;
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.apagetop a:hover span,
.apagetop a:hover p {
    color: var(--color-sub-accent);
}

#business,
#news,
#aboutus {
    background-color: var(--color-bg) !important;
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

#about-bioceramics,
#Philosophy,
#contactCta {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* セクション共通のヘッダースタイル */
#business .mb-4.text-center,
#news .mb-4.text-center,
#aboutus .mb-4.text-center,
#news-list .mb-4.text-center {
    margin-bottom: 4rem !important;
}

#about-bioceramics h2.card-title,
#business h2.card-title,
#Philosophy h2.card-title,
#news h2.card-title,
#aboutus h2.card-title,
#contactCta h2.card-title,
#news-list h2.card-title {
    font-size: 2.75rem;
    font-weight: 300 !important;
    letter-spacing: 0.08em;
    margin-bottom: 1rem !important;
}

#business .text-muted,
#news .text-muted,
#aboutus .text-muted {
    color: var(--color-text-light) !important;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

#business .small,
#news .small,
#aboutus .small,
#news-list .small {
    color: var(--color-text-light) !important;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footerInner {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-company strong {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.95);
}

.footer-address {
    font-style: normal;
    line-height: 1.8;
}

.footer-address .small {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.footer-nav {
    flex-shrink: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: rgba(255, 255, 255, 1);
}

.footer-links a:hover::after,
.footer-links a:focus::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 0;
}

.footer-bottom small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--color-primary-dark);
    --bs-btn-hover-border-color: var(--color-primary-dark);
    --bs-btn-focus-shadow-rgb: 30, 58, 138;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1e40af;
    --bs-btn-active-border-color: #1e40af;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--color-primary);
    --bs-btn-disabled-border-color: var(--color-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--color-primary);
    --bs-btn-hover-border-color: var(--color-primary);
    --bs-btn-focus-shadow-rgb: 30, 58, 138;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--color-primary-dark);
    --bs-btn-active-border-color: var(--color-primary-dark);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--color-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--color-primary);
    --bs-gradient: none;
}

@media (max-width: 767px) {
    body {
        font-size: 15px !important;
        line-height: 1.75;
    }

    h1 {
        font-size: 1.75rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.25rem !important;
    }

    h2,
    h2.card-title {
        font-size: 1.875rem !important;
        font-weight: 700;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
    }

    h3,
    h3.desc-card {
        font-size: 1.125rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1.25rem !important;
    }

    h4 {
        font-size: 1.0625rem !important;
        line-height: 1.6 !important;
    }

    h5,
    h5.card-title {
        font-size: 1rem !important;
        font-weight: 700;
        line-height: 1.6 !important;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
        line-height: 1.6 !important;
    }

    .hero-section .lead {
        font-size: 1rem !important;
        line-height: 2 !important;
    }

    .hero-section .small {
        font-size: 0.6875rem !important;
    }

    .lead {
        font-size: 1rem !important;
        line-height: 1.85 !important;
    }

    p {
        font-size: 0.9375rem !important;
        line-height: 1.8 !important;
        margin-bottom: 1.25rem !important;
    }

    li {
        font-size: 0.9375rem !important;
        line-height: 1.75 !important;
    }

    .small {
        font-size: 0.8125rem !important;
    }

    #business,
    #news,
    #aboutus {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    #about-bioceramics,
    #Philosophy,
    #contactCta {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    #about-bioceramics h2.card-title,
    #business h2.card-title,
    #Philosophy h2.card-title,
    #news h2.card-title,
    #aboutus h2.card-title,
    #contactCta h2.card-title,
    #news-list h2.card-title {
        font-size: 2rem !important;
        font-weight: 300 !important;
        margin-bottom: 0.75rem !important;
    }

    .business-card {
        margin-bottom: 3rem !important;
    }

    .business-card-img {
        min-height: 200px !important;
    }

    .business-card-content {
        padding: 1.5rem 1rem !important;
    }

    .business-card-content .card-title {
        font-size: 1.125rem !important;
        margin-bottom: 0.875rem !important;
        padding-bottom: 0.625rem !important;
    }

    .business-card-content .card-title::after {
        width: 40px !important;
    }

    .business-card-content .card-text {
        font-size: 0.875rem !important;
        line-height: 1.75 !important;
    }

    #news .card-title,
    #news-list .card-title {
        font-size: 1rem !important;
    }

    #aboutus .list-group-item {
        padding: 1rem 1.125rem !important;
    }

    #aboutus .list-group-item strong {
        font-size: 0.875rem !important;
    }

    #aboutus .list-group-item span,
    #aboutus .list-group-item ul {
        font-size: 0.875rem !important;
    }


    .contact-btn {
        font-size: 0.9375rem !important;
        padding: 0.75rem 2rem !important;
    }

    .aboutus-table,
    .aboutus-table td,
    .aboutus-table th {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
    }

    .btn,
    button {
        font-size: 0.9375rem !important;
        padding: 0.625rem 1.25rem !important;
    }


    .hero-section {
        min-height: 60vh;
    }


    .philosophy-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }

    .philosophy-lead {
        font-size: 1.25rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1rem !important;
    }

    .philosophy-lead-en {
        font-size: 0.875rem !important;
        margin-bottom: 2.5rem !important;
    }

    .philosophy-card {
        padding: 2rem 1.5rem !important;
    }

    .philosophy-card-number {
        font-size: 2.5rem !important;
    }

    .philosophy-card-title {
        font-size: 1.125rem !important;
    }

    .philosophy-card-text {
        font-size: 0.875rem !important;
        line-height: 1.7 !important;
    }

    .philosophy-cards-container .row.mb-4 {
        margin-bottom: 1rem !important;
    }

    .apagetop {
        display: none !important;
    }

    /* スクロールインジケーター - スマホ対応 */
    .scroll-indicator {
        bottom: 2rem;
    }
    
    .scroll-text {
        font-size: 0.75rem;
    }
    
    .scroll-arrow svg {
        width: 24px;
        height: 24px;
    }

    html {
        scroll-padding-top: 74px;
    }

    section[id] {
        scroll-margin-top: 74px;
    }

    .site-header .navbar {
        padding: 0.75rem 1rem;
    }

    .site-header .navbar-brand {
        margin-right: 0;
    }

    .site-header .brand-text {
        font-size: 1rem;
    }

    .site-header .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        border-radius: 8px;
    }

    .site-header .nav-link-contact {
        margin-left: 0;
        margin-top: 0.75rem;
        width: 100%;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footerInner {
        padding: 0 1rem;
    }

}

/*----CSSアニメーション-----------------------------------*/
/*                                                      */
/* ===== loopSlide 無限横スクロールCSSアニメーション ===== */
.loopSlideWrap {
    overflow: hidden;
    position: relative;
    background: #fff;
}

.loopSlide {
    display: flex;
    height: 300px;
    position: relative;
    /* 画像4枚分の幅。画像幅が可変の場合はmin-width:200%などでもOK */
    min-width: 200%;
    /* animation: loopSlideAnim 20s linear infinite;  JSで制御するため削除 */
}

.loopSlide img {
    width: auto;
    height: 100%;
}

@keyframes loopSlideAnim {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.loopSlideWrap .scroll {
    position: absolute;
    right: 80px;
    bottom: 110px;
    writing-mode: vertical-rl;
    font-weight: 600;
    mix-blend-mode: difference;
    color: #fff;
    letter-spacing: 0;
}

.loopSlideWrap .scroll::before {
    animation: scroll 2.5s infinite;
    background-color: #3a3a3a;
    bottom: -115px;
    content: "";
    height: 100px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    width: 1px;
    z-index: 2;
}

.loopSlideWrap .scroll::after {
    background-color: #ccc;
    bottom: -115px;
    content: "";
    height: 100px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    width: 1px;
}

@keyframes scroll {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }

    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }

    51% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }

    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}

/* ===== /loopSlide ===== */

/* bus00x.jpg画像にズーム効果 */
.card-img-top[src*="bus0"] {
    transition: transform 1.2s cubic-bezier(.4, 0, .2, 1), opacity 1.2s cubic-bezier(.4, 0, .2, 1);
}

.card-img-top[src*="bus0"]:hover {
    transform: scale(1.08);
    opacity: 0.8;
}

/* ズーム時にはみ出し防止 */
.card {
    overflow: hidden;
}

/* セクション エレガント・フェードアニメーション */
.section-fadein {
    opacity: 0;
    transform: translateY(40px) scale(1.03);
    filter: blur(8px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-fadein.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* セクション内の要素を段階的に表示 */
.section-fadein.show > * {
    animation: elegant-fade-child 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.section-fadein.show > *:nth-child(1) {
    animation-delay: 0.15s;
}

.section-fadein.show > *:nth-child(2) {
    animation-delay: 0.3s;
}

.section-fadein.show > *:nth-child(3) {
    animation-delay: 0.45s;
}

.section-fadein.show > *:nth-child(4) {
    animation-delay: 0.6s;
}

.section-fadein.show > *:nth-child(5) {
    animation-delay: 0.75s;
}

@keyframes elegant-fade-child {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero セクション エレガント・アニメーション */
.hero-section {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(12px);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-section.scrollin {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Heroテキストボックスの段階的表示 */
.hero-section.scrollin .heroOpTextBox > * {
    animation: elegant-fade-child 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-section.scrollin .heroOpTextBox > *:nth-child(1) {
    animation-delay: 1.0s;
}

.hero-section.scrollin .heroOpTextBox > *:nth-child(2) {
    animation-delay: 3.0s;
}

.hero-section.scrollin .heroOpTextBox > *:nth-child(3) {
    animation-delay: 6.0s;
}


/* Heroセクションリード文の行間調整 */
.hero-section .lead span {
    line-height: 2.2;
    display: inline-block;
}

/* 動画停止時のスクロールダウンインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-indicator.show {
    opacity: 1;
}

.scroll-indicator-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-arrow {
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* 画像ノイズエフェクト */
.img-noise {
    position: relative;
    display: inline-block;
}

.img-noise img {
    display: block;
}

.img-noise::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch' /%3E%3CfeColorMatrix type='saturate' values='0' /%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.5' /%3E%3CfeFuncG type='linear' slope='0.5' /%3E%3CfeFuncB type='linear' slope='0.5' /%3E%3CfeFuncA type='linear' slope='0.3' /%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E%0A");
    /* ここはサンプルの1pxノイズ。後で差し替え可 */
    opacity: 0.9;
    mix-blend-mode: multiply;
    z-index: 2;
}

/* お知らせページ上部マージン調整 */
#news-detail,
#news-list {
    margin-top: 30px;
}

/* お知らせ詳細ページの段落スタイル */
#news-detail .blog-post-body p {
    line-height: 2;
    margin-bottom: 1.75rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* お知らせ詳細ページの見出しスタイル */
#news-detail .blog-post h1 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

#news-detail .blog-post h2,
#news-detail .blog-post h3,
#news-detail .blog-post h4,
#news-detail .blog-post h5 {
    font-weight: 700;
}

/* 可読性向上のためのスタイル調整 */
#news-detail .blog-post-body {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

#news-detail .blog-post h2 {
    font-size: 1.625rem;
    line-height: 1.5;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: 0.02em;
}

#news-detail .blog-post h3 {
    font-size: 1.375rem;
    line-height: 1.6;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.02em;
}

#news-detail .blog-post h4 {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

#news-detail .blog-post h5 {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    letter-spacing: 0.02em;
}

#news-detail .blog-post-body ul,
#news-detail .blog-post-body ol {
    margin-bottom: 2rem;
    padding-left: 1.75rem;
}

#news-detail .blog-post-body li {
    margin-bottom: 0.75rem;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

#news-detail .blog-post-body dl {
    margin-bottom: 2rem;
}

#news-detail .blog-post-body dt {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

#news-detail .blog-post-body dd {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.9;
}

#news-detail .blog-post-body .table-responsive,
#news-detail .blog-post-body blockquote {
    margin-bottom: 2rem;
}

/* カードの背景を白、テキストを黒に設定 */
#news .card,
#news-list .card,
#business .card,
#aboutus .card {
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
}

#news .card .card-title,
#news .card .card-text,
#news-list .card .card-title,
#news-list .card .card-text,
#business .card .card-title,
#business .card .card-text,
#aboutus .card .card-title,
#aboutus .card .card-text {
    color: var(--color-text) !important;
}

#news .card a,
#news-list .card a,
#business .card a,
#aboutus .card a {
    color: var(--color-text) !important;
    transition: color 0.3s ease;
}

#news .card a:hover,
#news-list .card a:hover {
    color: var(--color-primary) !important;
    text-decoration: none;
}

#news .card .text-secondary,
#news-list .card .text-secondary,
#business .card .text-secondary,
#aboutus .card .text-secondary {
    color: #6c757d !important;
}

/* News セクションのカードスタイル */
#news .card,
#news-list .card {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#news .card:hover,
#news-list .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

#news .card-title,
#news-list .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

#news .card-text,
#news-list .card-text {
    font-size: 0.9375rem;
    line-height: 1.75;
    letter-spacing: 0.02em;
}

#news .text-secondary,
#news-list .text-secondary {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

#news .badge,
#news-list .badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.75rem;
}

/* About Us セクションのスタイル */
#aboutus .list-group-item {
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
    padding: 1.25rem 1.5rem;
    border-color: var(--color-border) !important;
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-left-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid transparent;
}

#aboutus .list-group-item:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.1);
    border-left-color: var(--color-sub-accent) !important;
}

#aboutus .list-group-item strong {
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

#aboutus .list-group-item span,
#aboutus .list-group-item ul {
    font-size: 0.9375rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

#aboutus .list-group-item ul li {
    margin-bottom: 0.5rem;
}

#news-detail .table {
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
}

#news-detail .table {
    --bs-table-border-color: var(--color-border);
}

#news-detail .table th,
#news-detail .table td {
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
}

/* ページネーションのスタイル調整 */
.pagination .page-link {
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
}

.pagination .page-item.disabled .page-link {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

/* バッジのアクセントカラー */
.badge.bg-info {
    background-color: var(--color-accent) !important;
}

/* グラデーション区切り線のカラースキーム更新 */
.gradient-divider {
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.05) 0%, 
        rgba(16, 185, 129, 0.08) 25%,
        rgba(245, 158, 11, 0.08) 50%,
        rgba(16, 185, 129, 0.08) 75%, 
        rgba(30, 64, 175, 0.05) 100%) !important;
}

/* リンクのカラー */
a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* セクションの背景色更新 */
#business,
#news,
#aboutus {
    background-color: var(--color-bg) !important;
}

.bg-light {
    background-color: var(--color-bg-light) !important;
}

/* カードの影を柔らかく */
.card.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15),
                0 2px 8px rgba(16, 185, 129, 0.08) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
/* CSS Loader */
.loader-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: rgba(52, 211, 153, 0.95);
    border-top-color: rgba(251, 191, 36, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Breadcrumb Custom Styles */
.breadcrumb {
    --bs-breadcrumb-divider-color: var(--color-text-light);
}
.breadcrumb-item a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}
.breadcrumb-item a:hover {
    color: var(--color-sub-accent);
}
.breadcrumb-item.active {
    color: var(--color-text-light);
}

/* ===== Custom Padding Utility ===== */
.py-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

/* ===== Simple Border News Styles ===== */
.news-item {
    padding: 1.25rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    transition: background-color 0.2s ease;
}

.news-item:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

.news-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.news-item-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-item-divider {
    color: #dee2e6;
}

.news-item-title {
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item-title:hover {
    color: #0d6efd;
}

.news-item-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
