/* カスタムスタイル - プレミアム重厚感デザイン */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', 'Crimson Pro', 'Times New Roman', 'Yu Mincho', 'YuMincho', '游明朝体', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
    line-height: 1.9;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.05em;
    font-feature-settings: "palt" 1;
    text-rendering: optimizeLegibility;
}

/* ファーストビュー - 重厚感のあるグラデーション */
.hero-gradient {
    background: linear-gradient(135deg, #0f1419 0%, #1a2b4a 50%, #2d4a73 100%);
    position: relative;
    box-shadow: inset 0 -120px 120px -60px rgba(0, 0, 0, 0.3);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* 高級感のあるセクション背景 */
.premium-bg {
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 50%, #ffffff 100%);
    position: relative;
}

.premium-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(45, 74, 115, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(45, 74, 115, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(45, 74, 115, 0.02) 100%);
    pointer-events: none;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* セクション間の洗練された区切り */
section {
    scroll-margin-top: 80px;
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

section:last-of-type::after {
    display: none;
}

/* ヘッダー */
header {
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(45, 74, 115, 0.08);
}

header.scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(45, 74, 115, 0.08);
    border-bottom: 1px solid rgba(45, 74, 115, 0.12);
}

header img {
    transition: opacity 0.3s ease;
}

header img:hover {
    opacity: 0.8;
}

/* ボタン - 洗練されたホバーアニメーション */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* テーブルのレスポンシブ対応 */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }
    
    table td {
        padding: 12px !important;
    }
}

/* フォーム要素 - 洗練されたフォーカス */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2d4a73;
    box-shadow: 0 0 0 3px rgba(45, 74, 115, 0.1);
}

input, textarea, select {
    transition: all 0.2s ease;
}

/* カード要素 - プレミアム高級感ホバーエフェクト */
.premium-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(45, 74, 115, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06), 
        0 2px 8px rgba(45, 74, 115, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, transparent 50%, rgba(45, 74, 115, 0.03) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 24px 72px rgba(45, 74, 115, 0.18), 
        0 12px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(45, 74, 115, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

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

/* 商品カード - 高級感のある強調 */
.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 74, 115, 0.05), transparent);
    transition: left 0.6s ease;
}

.product-card:hover::before {
    left: 100%;
}

/* フェードインアニメーション - 滑らかに */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTAボタン - プレミアム重厚感デザイン */
.cta-primary {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #dc2626 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.35), 0 4px 16px rgba(234, 88, 12, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    box-shadow: 0 16px 56px rgba(220, 38, 38, 0.45), 0 8px 24px rgba(234, 88, 12, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-primary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.4), 0 4px 16px rgba(234, 88, 12, 0.35);
}

.cta-secondary {
    background: #ffffff;
    color: #2d4a73;
    border: 2px solid #2d4a73;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cta-secondary:hover {
    background: #2d4a73;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(45, 74, 115, 0.2);
}

/* スマホ固定CTA - コンパクトデザイン */
@media (max-width: 768px) {
    .mobile-fixed-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 43, 74, 0.95) 100%);
        padding: 8px 12px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
        animation: slideUp 0.5s ease-out;
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(217, 119, 6, 0.3);
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .mobile-fixed-cta a {
        display: block;
        background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
        color: #ffffff;
        text-align: center;
        padding: 12px 16px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        letter-spacing: 0.05em;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-fixed-cta a:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    
    body {
        padding-bottom: 50px;
    }
}

/* バッジ - 洗練されたデザイン */
.badge-premium {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.badge-accent {
    background: linear-gradient(135deg, #2d4a73 0%, #1a2b4a 100%);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* セクションタイトル - 重厚感のあるデザイン */
.section-title {
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #d97706 20%, #ea580c 50%, #dc2626 80%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* 数値強調 - 明朝体による重厚感 */
.number-emphasis {
    font-family: 'Crimson Pro', 'Noto Serif JP', 'Georgia', 'Times New Roman', 'Yu Mincho', serif;
    font-weight: 700;
    color: #0f1419;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
    font-feature-settings: "palt" 1, "lnum" 1;
}

/* 注目ボックス - 重厚感のあるデザイン */
.attention-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
    border-left: 5px solid #d97706;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(217, 119, 6, 0.2);
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
    border-right: 1px solid rgba(217, 119, 6, 0.1);
}

/* リストアイテム - 洗練されたデザイン */
.premium-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.premium-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #2d4a73;
    border-radius: 50%;
}

/* テーブル - 洗練されたデザイン */
table {
    border-collapse: separate;
    border-spacing: 0;
}

table tr {
    border-bottom: 1px solid #e2e8f0;
}

table tr:last-child {
    border-bottom: none;
}

table td {
    padding: 16px;
    vertical-align: top;
}

table td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d4a73;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .hero-gradient h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* 商品画像コンテナ - プレミアム高級感 */
.product-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 50%, #f8fafb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(45, 74, 115, 0.1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.02) contrast(1.05);
}

.product-image-container:hover .product-image {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.08);
}

/* 商品画像の高級感ある影とグラデーション */
.product-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
    pointer-events: none;
}

.product-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    opacity: 0.6;
}

/* プリント時の調整 */
@media print {
    header, footer, #contact, .mobile-fixed-cta {
        display: none;
    }
}

/* テクスチャ付き背景 */
.textured-bg {
    background-color: #f8f9fa;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 高級感のあるシャドウ */
.premium-shadow {
    box-shadow: 0 12px 40px rgba(45, 74, 115, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.premium-shadow-lg {
    box-shadow: 0 24px 64px rgba(45, 74, 115, 0.15), 0 12px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 余白の強化 */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

/* 高級感のある価格表示エリア */
.price-display-premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 2px solid rgba(217, 119, 6, 0.3);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.price-display-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* 高級感のある明朝体テキストスタイル */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', 'Crimson Pro', 'Yu Mincho', 'YuMincho', '游明朝体', serif;
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1.6;
    font-feature-settings: "palt" 1;
}

h1 {
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.5;
}

h2 {
    font-weight: 700;
    letter-spacing: 0.06em;
}

h3 {
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* グラスモーフィズム効果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 段落テキストの文字組み最適化 */
p {
    font-feature-settings: "palt" 1;
    letter-spacing: 0.05em;
    line-height: 1.9;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 本文テキストの行間・字間統一 */
.body-text {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .body-text {
        font-size: 18px;
        line-height: 2.0;
    }
}

/* 価格表示の数字 */
.price-number {
    font-family: 'Crimson Pro', 'Georgia', serif;
    font-feature-settings: "lnum" 1, "tnum" 1;
    letter-spacing: -0.02em;
}

/* ボタンテキスト */
button, .btn, .cta-primary {
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* ベースライン調整 - 和文と欧文の混在対応 */
.baseline-adjust {
    display: inline-flex;
    align-items: baseline;
}

/* 小さい文字のベースライン調整 */
.text-sm, .text-xs {
    vertical-align: baseline;
}

/* 強調文字の統一 */
strong, b, .font-bold, .font-semibold {
    font-weight: 700;
}

/* リスト項目の文字組み */
li {
    letter-spacing: 0.05em;
    line-height: 1.9;
}

/* テーブルセルの文字組み */
td, th {
    letter-spacing: 0.04em;
    line-height: 1.8;
}

/* 届出番号・英数字用フォント */
.code-number {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-feature-settings: "tnum" 1, "lnum" 1;
}
