/* 憲フェス カスタムスタイル */

/* 共通スタイル */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'BIZ UDPGothic', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
}

/* ナビゲーション */
.navbar-brand {
    font-size: 1.5rem;
}

/* ヒーローセクション */
.hero-section {
    padding: 100px 0;
}

/* ヒーローセクション カスタム配色 */
.hero-custom {
    background-color: #F5F6F7 !important;
}

.hero-title {
    color: #1F4F59 !important;
    position: relative;
}

/* CTAアクセント線 */
.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #C89B3C;
}

.hero-subtitle {
    color: #222222 !important;
}

/* CTAボタン */
.hero-btn {
    background-color: #1F4F59 !important;
    border-color: #1F4F59 !important;
    color: white !important;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #164048 !important;
    border-color: #164048 !important;
    transform: translateY(-2px);
}

.hero-section h1 {
    color: #1F4F59;
}

/* ヒーロー画像 */
.hero-image {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

/* セクション共通 */
section {
    min-height: 400px;
}

/* Contact Sectionは内容に合わせた高さに */
#contact {
    min-height: auto;
}

/* 段落の字下げ（ヒーローセクション以外） */
section:not(.hero-section) p:not(.lead) {
    text-indent: 1em;
}

/* フィーチャーセクション */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* モバイル端末（タッチデバイス）でのみホバーエフェクトを有効化 */
@media (hover: none) {
    .card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* タッチ開始時のみエフェクトを適用し、すぐにリセット */
    .card:active {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }
    
    .clickable-card:active {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }
    
    /* フォーカスが外れたら即座にリセット */
    .card:not(:active),
    .clickable-card:not(:active) {
        transform: translateY(0);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

/* PC（ホバー可能デバイス）ではホバーエフェクト無効化 */
@media (hover: hover) {
    .card:hover,
    .clickable-card:hover {
        transform: none;
        box-shadow: inherit;
        transition: none;
    }
}

/* クリッカブルカード */
.clickable-card {
    cursor: default; /* クリック機能無効化のため、通常のカーソルに変更 */
}

.card-img-top {
    border-radius: 0.375rem 0.375rem 0 0;
}

.card-title {
    color: #1F4F59;
    font-weight: bold;
}

.btn-outline-primary {
    border-color: #1F4F59;
    color: #1F4F59;
}

.btn-outline-primary:hover {
    background-color: #1F4F59;
    border-color: #1F4F59;
}

/* 問い合わせカード配色 */
.contact-card-main {
    background: linear-gradient(135deg, #1F4F59 0%, #2A5F6A 100%);
    color: white;
}

.contact-card-main .card-title {
    color: white;
    font-weight: bold;
}

.contact-card-main .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-card-accent {
    background-color: #C89B3C;
    color: white;
}

.contact-card-accent .card-title {
    color: white;
    font-weight: bold;
}

.contact-card-accent .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-card-sub {
    background: linear-gradient(135deg, #F5F6F7 0%, #E8E9EA 100%);
    color: #222222;
}

.contact-card-sub .card-title {
    color: #1F4F59;
    font-weight: bold;
}

/* モバイル端末（タッチデバイス）でのお問い合わせカードホバーエフェクトを有効化 */
@media (hover: none) {
    .contact-card-main,
    .contact-card-accent,
    .contact-card-sub {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* タッチ開始時のみエフェクトを適用し、すぐにリセット */
    .contact-card-main:active,
    .contact-card-accent:active,
    .contact-card-sub:active {
        transform: translateY(-5px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }
    
    /* フォーカスが外れたら即座にリセット */
    .contact-card-main:not(:active),
    .contact-card-accent:not(:active),
    .contact-card-sub:not(:active) {
        transform: translateY(0);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

/* ボタン */
.btn-primary {
    background-color: #1976d2;
    border-color: #1976d2;
}

.btn-primary:hover {
    background-color: #0d47a1;
    border-color: #0d47a1;
}

/* フッター */
footer {
    margin-top: 50px;
}

footer a:hover {
    text-decoration: underline !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}