/* カスタムスタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #1f2937;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* CTAボタン */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: scale(0.95);
}

/* 悩みカード */
.problem-card {
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
}

/* 実績カード */
.result-card {
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* サービスカード */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: currentColor;
}

/* 違いカード */
.difference-card {
    transition: all 0.3s ease;
}

.difference-card:hover {
    transform: translateY(-5px);
}

/* 口コミカード */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px) rotate(1deg);
}

/* フローステップ */
.flow-step {
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateX(10px);
}

/* スクロールトップボタン */
#scrollToTop {
    transition: all 0.3s ease;
}

#scrollToTop.show {
    opacity: 1;
    pointer-events: all;
}

#scrollToTop:hover {
    transform: translateY(-3px);
}

/* フォーム要素 */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* セクション見出しアンダーライン */
section h2 span {
    display: inline-block;
    position: relative;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .cta-button {
        font-size: 1rem !important;
        padding: 1rem 2rem !important;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .problem-card,
    .result-card,
    .service-card,
    .difference-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
}

/* プログレスバー（スクロール進捗） */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #f59e0b);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ローディングアニメーション */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* カスタムスクロールバー（Webkit） */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* セクション間の波線 */
.wave-divider {
    position: relative;
    width: 100%;
    height: 50px;
    background: transparent;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
}

/* ツールチップ */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 星評価 */
.star-rating {
    display: inline-block;
    font-size: 0;
}

.star-rating i {
    font-size: 1.5rem;
    color: #fbbf24;
    margin: 0 2px;
}

/* グラデーションテキスト */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* パルスエフェクト */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* フェードイン観察 */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* カードシャドウ */
.card-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-shadow:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* テキストシャドウ */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* グロー効果 */
.glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.8);
}

/* リボン */
.ribbon {
    position: absolute;
    top: 20px;
    right: -5px;
    background: #f59e0b;
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ribbon::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid #d97706;
    border-top: 5px solid #d97706;
}

/* ボーダーアニメーション */
@keyframes border-dance {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.border-animate {
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    background-size: 200% 200%;
    animation: border-dance 3s ease infinite;
}

/* アイコンホバー */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.2) rotate(10deg);
    color: #2563eb;
}

/* カウントアップ数字 */
.count-up {
    font-size: 3rem;
    font-weight: 900;
    color: #2563eb;
    line-height: 1;
}

/* プリント用スタイル */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .cta-button {
        display: none;
    }
}

/* アクセシビリティ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* フォーカス表示 */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
    /* ダークモードスタイルはここに追加 */
}

/* オープニングアニメーション */
/* スライドショー */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease-in-out !important;
    display: none !important;
    z-index: 1 !important;
    visibility: hidden !important;
}

.slide.active {
    opacity: 1 !important;
    display: block !important;
    z-index: 2 !important;
    visibility: visible !important;
}

.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.5 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* パフォーマンス最適化 */
img {
    content-visibility: auto;
}

/* レイジーロード画像 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 横スクロールコンテナ */
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: #2563eb #e5e7eb;
}

.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 10px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* フローカード */
.flow-card {
    transition: all 0.3s ease;
}

.flow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}
