/* ==========================================================================
   アニメーション付きメッセージボタン
   ========================================================================== */

.animated-message-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-width: 150px;
    text-align: center;
    z-index: 1;
}

/* ホバー時の背景アニメーション */
.animated-message-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    transition: all 0.4s ease;
    z-index: -1;
}

/* ホバー状態 */
.animated-message-btn:hover {
    color: #fff;
    border-color: #FF69B4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
}

.animated-message-btn:hover::before {
    left: 0;
}

/* アクティブ状態 */
.animated-message-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
}

/* フォーカス状態 */
.animated-message-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .animated-message-btn {
        padding: 12px 30px;
        font-size: 14px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .animated-message-btn {
        padding: 10px 25px;
        font-size: 13px;
        min-width: 100px;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .animated-message-btn {
        background-color: #f9f9f9;
        border-color: #ccc;
    }
}

/* モーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
    .animated-message-btn,
    .animated-message-btn::before {
        transition: none;
    }
    
    .animated-message-btn:hover {
        transform: none;
    }
}

/* ハイコントラストモード */
@media (prefers-contrast: high) {
    .animated-message-btn {
        border-width: 3px;
        border-color: #000;
    }
    
    .animated-message-btn:hover {
        border-color: #FF1493;
    }
}

/* ==========================================================================
   VIEW MORE グラデーションボタン
   ========================================================================== */

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* SVGグラデーション定義 */
.view-more-btn svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* 通常状態のグラデーション文字色（WebKitのみ） */
.view-more-btn .text {
    color: #FF3390; /* 全ブラウザ共通フォールバック */
    background: linear-gradient(90deg, #FF3390, #FFB6D7);
    background-size: 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    display: inline-block;
    transition: all 0.4s ease;
    font-weight: bold;
}

/* 矢印アイコン */
.view-more-btn .arrow {
    color: #FF3390; /* 全ブラウザ共通フォールバック */
    background: linear-gradient(90deg, #FF3390, #FFB6D7);
    background-size: 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 16px;
    transition: all 0.4s ease;
    font-weight: bold;
}

/* ホバー時の背景アニメーション */
.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FF3390, #FFB6D7);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}

/* ホバー状態 */
.view-more-btn:hover {
    border-color: #FF3390;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 51, 144, 0.3);
}

.view-more-btn:hover::before {
    left: 0;
}

.view-more-btn:hover .text,
.view-more-btn:hover .arrow {
    -webkit-text-fill-color: white;
    color: white;
    background: none;
}

/* アクティブ状態 */
.view-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
}

/* フォーカス状態 */
.view-more-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .view-more-btn {
        padding: 10px 25px;
        font-size: 13px;
        gap: 6px;
    }
    
    .view-more-btn .arrow {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .view-more-btn {
        padding: 8px 20px;
        font-size: 12px;
        gap: 5px;
    }
    
    .view-more-btn .arrow {
        font-size: 13px;
    }
}

/* モーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
    .view-more-btn,
    .view-more-btn::before,
    .view-more-btn .text,
    .view-more-btn .arrow {
        transition: none;
    }
    
    .view-more-btn:hover {
        transform: none;
    }
}

/* Firefox用 - 完全リセット */
@-moz-document url-prefix() {
    .view-more-btn .text,
    .view-more-btn .arrow {
        background: none !important;
        background-image: none !important;
        background-color: transparent !important;
        color: #FF3390 !important;
        -webkit-text-fill-color: unset !important;
        -moz-text-fill-color: unset !important;
        -webkit-background-clip: initial !important;
        -moz-background-clip: initial !important;
        background-clip: initial !important;
    }
    
    .view-more-btn:hover .text,
    .view-more-btn:hover .arrow {
        background: none !important;
        background-image: none !important;
        background-color: transparent !important;
        color: white !important;
        -webkit-text-fill-color: unset !important;
        -moz-text-fill-color: unset !important;
    }
}

/* 追加のブラウザサポート */
.view-more-btn .text::selection,
.view-more-btn .arrow::selection {
    background: rgba(255, 51, 144, 0.2);
}

/* background-clip: text 非対応ブラウザ用フォールバック */
@supports not (-webkit-background-clip: text) {
    .view-more-btn .text,
    .view-more-btn .arrow {
        color: #FF3390 !important;
        background: none !important;
    }
    
    .view-more-btn:hover .text,
    .view-more-btn:hover .arrow {
        color: white !important;
        background: none !important;
    }
}

/* ==========================================================================
   サービスカードコンポーネント
   ========================================================================== */

.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.service-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.service-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card-features {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 25px;
}

.service-card-button {
    margin-top:0;
    text-align: center;
    padding-top: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .service-card {
        padding: 20px;
    }
    
    .service-card:hover {
        transform: scale(1.05);
    }
    
    .service-card-title {
        font-size: 16px;
    }
    
    .service-card-description {
        font-size: 13px;
    }
    
    .service-card-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 15px;
    }
    
    .service-card-image {
        height: 190px;
    }
}

/* モーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}