/* 
 * Main Styles - Layout, Components & Sections
 * 休眠特許マッチング - yasutake.net
 * PC版メイン設計
 */

/* ===== LAYOUT COMPONENTS ===== */
.section {
    padding: var(--space-16) 0;
}

.section.section-reduced-top {
    padding: var(--space-4) 0 var(--space-16) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive Grid Classes */
@media (min-width: 768px) {
    .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-md-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-cols-lg-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-lg-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    min-height: 48px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--space-6) var(--space-12);
    font-size: var(--font-size-xl);
    min-height: 56px;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    font-weight: 700;
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    font-weight: 700;
    border: none;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--font-size-lg);
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-input::placeholder {
    color: var(--gray-500);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 50%, var(--secondary) 100%);
}

.card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.card-body {
    padding: var(--space-5) var(--space-10) var(--space-5) var(--space-10);
}

.card-header {
    padding: var(--space-8) var(--space-10);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 700;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

/* ===== MAIN CONTENT ===== */
main {
    padding-top: var(--header-height);
}

/* ===== HERO SECTION & SLIDER ===== */
.hero {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iMiIvPjwvZz48L2c+PC9zdmc+');
    opacity: 0.3;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 300%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 33.333%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: var(--space-12) var(--space-4);
    text-align: center;
    max-width: 100%;
}

.slide-content h1,
.slide-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 900;
    margin-bottom: var(--space-6);
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    position: relative;
    /* base.cssのグラデーション効果を無効化 */
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
    background-clip: unset !important;
}

.slide-content h1::before,
.slide-content h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-8);
    text-shadow: 0 4px 8px rgb(0 0 0 / 0.3);
    font-weight: 900;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-10);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    font-weight: 500;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-8);
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--gold);
    transform: scale(1.1);
}

.slider-btn-prev {
    left: var(--space-8);
}

.slider-btn-next {
    right: var(--space-8);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}


/* ===== ALERTS ===== */
.alert {
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-lg);
    font-weight: 500;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ===== PATENT API INTEGRATION STYLES ===== */

/* 特許情報表示カード */
.patent-info-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    margin-top: var(--space-4);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.patent-info-header {
    background: var(--accent);
    color: var(--white);
    padding: var(--space-3) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patent-info-header h4 {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.patent-info-content {
    padding: var(--space-4);
}

.info-row {
    display: flex;
    margin-bottom: var(--space-2);
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--space-2);
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-section-header {
    font-weight: bold;
    color: var(--navy);
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    padding: var(--space-3);
    margin: var(--space-4) 0 var(--space-3) 0;
    border-left: 4px solid var(--gold);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.info-label {
    font-weight: 600;
    color: var(--gray-700);
    min-width: 90px;
    margin-right: var(--space-3);
    font-size: var(--font-size-sm);
}

.info-row span:last-child {
    color: var(--gray-900);
    flex: 1;
    word-break: break-word;
}

/* ボタンスタイル拡張 */
.btn-small {
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-xs);
    border-radius: calc(var(--radius) / 2);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* フォーム行のスタイル改善 */
.form-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.form-row .form-input {
    flex: 1;
}

.form-row button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 技術要約表示用スタイル */
.abstract-text {
    font-size: 0.9rem;
    line-height: 1.5;
    background: #f8fafc;
    padding: var(--space-3);
    border-radius: calc(var(--radius) / 2);
    border-left: 3px solid var(--accent);
    margin-top: var(--space-1);
    max-height: 150px;
    overflow-y: auto;
}

/* 残存期間の色分け */
.remaining-years-high { color: #10b981; }  /* 5年以上：緑 */
.remaining-years-medium { color: #f59e0b; } /* 5年未満：黄 */
.remaining-years-expired { color: #dc2626; } /* 期間満了：赤 */

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .form-row .form-input,
    .form-row button {
        width: 100%;
    }
    
    .info-row {
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .info-label {
        min-width: auto;
        margin-right: 0;
        font-weight: 700;
    }
    
    .patent-info-header {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}

/* ===== EXTRACTED INLINE STYLES ===== */

/* Logo Container */
.logo-container {
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

/* Logo Image */
.logo-image {
    height: 56px;
    width: auto;
    max-width: 360px;
    transition: transform 0.2s ease;
    background: transparent;
    border: none;
    outline: none;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Navigation Button Flex */
.nav-btn-flex {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Slide Background Classes */
.slide-bg-1 {
    background-image:
        linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(51,65,85,0.6) 50%, rgba(71,85,105,0.75) 100%),
        url('../img/kyuumin_tokkyo1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg-2 {
    background-image:
        linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(51,65,85,0.6) 50%, rgba(71,85,105,0.75) 100%),
        url('../img/kyuumin_tokkyo2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg-3 {
    background-image:
        linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(51,65,85,0.6) 50%, rgba(71,85,105,0.75) 100%),
        url('../img/kyuumin_tokkyo3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Authority Badge Margin */
.authority-badge-mb {
    margin-bottom: var(--space-6);
}

/* Hero Paragraph */
.hero-paragraph {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-10);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
    margin: var(--space-8) auto var(--space-10) auto;
    gap: var(--space-4);
    position: relative;
}

.stats-container > div {
    position: relative;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
}

.stats-container > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    border: none;
    z-index: -1;
}

.stats-container .stat-number {
    position: relative;
    z-index: 1;
}

.stats-container .text-white-shadow,
.stats-container .text-white-shadow-double {
    position: relative;
    z-index: 1;
}

/* Common Layout Classes */
.gap-8 {
    gap: var(--space-8);
}

.gap-12 {
    gap: var(--space-12);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: var(--space-2);
}

.form-row-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.form-row-wrap .form-group {
    flex: 1;
    min-width: 200px;
}

/* Card Header Gradients */
.card-header-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.card-header-orange h2 {
    color: var(--white) !important;
    background: none !important;
    -webkit-text-fill-color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: left !important;
    margin-top: calc(var(--space-4) / 2) !important;
    border-bottom: none !important;
}

.card-header-orange h2::after {
    display: none !important;
}

.card-header-green {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: var(--white);
}

.card-header-green h2 {
    color: var(--white) !important;
    background: none !important;
    -webkit-text-fill-color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: left !important;
    margin-top: calc(var(--space-4) / 2) !important;
    border-bottom: none !important;
}

.card-header-green h2::after {
    display: none !important;
}

/* Text Colors */
.text-gray-600 {
    color: var(--gray-600);
}

.text-white {
    color: var(--white);
}

/* Margins */
.m-0 {
    margin: 0;
}

.mt-2 {
    margin-top: var(--space-2);
}

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

/* Font Sizes */
.text-lg {
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: var(--font-size-xl);
}

/* Opacity */
.opacity-95 {
    opacity: 0.95;
}

/* Text Utilities */
.nowrap {
    white-space: nowrap;
}

.text-sm-gray {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-1);
}

.text-white-shadow {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.text-secondary {
    color: var(--secondary);
}

.text-secondary-mb3 {
    color: var(--secondary);
    margin-bottom: var(--space-3);
}

.text-primary-mb3 {
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.stat-number-nowrap {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* Additional utility classes */
.w-full {
    width: 100%;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.text-gray-600-mb6 {
    margin-bottom: var(--space-6);
    color: var(--gray-600);
}

.text-sm-gray-simple {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.accordion-header {
    margin-bottom: var(--space-1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-divider-top {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

.text-white-shadow-double {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7), 1px 1px 3px rgba(0,0,0,0.7);
}

/* Final cleanup utility classes */
.text-lg-spaced {
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.text-lg-spaced-mb8 {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--space-8);
}

.text-lg-spaced-mb8-pl6 {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--space-8);
    padding-left: var(--space-6);
}

.text-lg-gray {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--gray-700);
}

.accordion-content {
    display: none;
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
}

.accordion-content-small {
    display: none;
    margin-top: var(--space-2);
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.card-header-subtitle {
    color: var(--white);
    margin: var(--space-2) 0 0 0;
    font-size: var(--font-size-lg);
    opacity: 0.95;
}

.bg-white {
    background: var(--white);
    padding: var(--space-16) 0 var(--space-8) 0;
}

.bg-gray-50 {
    background: var(--gray-50);
}

.bg-dark-navy {
    background: var(--dark-navy);
    color: var(--white);
}

.bg-gray-800 {
    background: var(--gray-800);
    color: var(--white);
    padding: var(--space-12) 0;
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-300 {
    color: var(--gray-300);
}

.text-primary {
    color: var(--primary);
}

.text-gold-mb6 {
    color: var(--gold);
    margin-bottom: var(--space-6);
}

.text-accent {
    color: var(--accent);
}

.text-gray-400-mt2 {
    margin-top: var(--space-2);
    color: var(--gray-400);
}

.text-white-mb12 {
    color: var(--white);
    margin-bottom: var(--space-12);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-2 {
    gap: var(--space-2);
}

.flex-1 {
    flex: 1;
}

.max-w-900 {
    max-width: 900px;
    margin: 0 auto;
}

.image-full-rounded {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.hero-image-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.flex-between-start {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.flex-gap-4-center {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.flex-gap-2 {
    display: flex;
    gap: var(--space-2);
}

.flex-gap-12-center {
    gap: var(--space-12);
    align-items: center;
}

/* Flex Utilities */
.flex-center-gap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

/* Stat Number with Shadow */
.stat-number-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* Stat Label with Shadow */
.stat-label-shadow {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Call to Action Container */
.cta-container {
    margin-top: var(--space-10);
    gap: var(--space-6);
}

/* Badge Styles */
.badge-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: var(--white);
    padding: var(--space-4) var(--space-10);
    border-radius: 35px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 380px;
    text-align: center;
}

.badge-green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: var(--white);
    padding: var(--space-4) var(--space-10);
    border-radius: 35px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 380px;
    text-align: center;
}

.badge-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    padding: var(--space-4) var(--space-10);
    border-radius: 35px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 380px;
    text-align: center;
}

/* Badge Title */
.badge-title {
    color: var(--white);
    margin: 0 0 var(--space-1) 0;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Badge Subtitle */
.badge-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Badge Container */
.badge-container {
    position: relative;
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Badge Light Effect */
.badge-light {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Feature Card Styles */
.feature-card {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.feature-image {
    height: 220px;
    margin-bottom: calc(var(--space-1) / 4);
    overflow: hidden;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center !important;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-description {
    margin-bottom: var(--space-1);
    line-height: 1.7;
}

/* ===== SPECIAL COMPONENTS ===== */

/* セクション区切り線 */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    margin: var(--space-16) 0;
}

/* 専門家監修画像 */
.expert-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.expert-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* フッタースタイル */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #047857 100%);
    color: var(--white);
    padding: 60px 20px;
    margin-top: 80px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer .text-center {
    text-align: center;
}

.footer .mb-6 {
    margin-bottom: 24px;
}

.footer .text-xl {
    font-size: 28px;
}

.footer .font-bold {
    font-weight: 700;
}

.footer .text-gray-300 {
    color: #d1d5db;
}

.footer .mt-2 {
    margin-top: 8px;
}

.footer .border-t {
    border-top-width: 1px;
}

.footer .border-gray-700 {
    border-color: #374151;
}

.footer .pt-6 {
    padding-top: 24px;
}

.footer .text-white {
    color: var(--white);
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover,
.footer .hover\:text-gold:hover {
    color: var(--gold);
}

/* API検索ボタン */
#apiLookupBtn {
    padding: var(--space-3) var(--space-4);
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: var(--font-size-sm);
    margin-left: var(--space-2);
    transition: background-color 0.2s ease;
}

#apiLookupBtn:hover {
    background-color: var(--primary-hover);
}

/* API情報表示エリア */
#apiInfo {
    display: none;
    margin-top: var(--space-2);
    padding: var(--space-3);
    background-color: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
}

/* 必須項目マーク */
.text-required {
    color: var(--accent);
    font-weight: 600;
}

/* グレー文字スタイル */
.text-gray-400 {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

/* ボタンスタイルの追加 */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-height: 32px;
}

/* ボタンサイズの統一 */
.btn-primary.btn-sm {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}

/* 統計数値の強調 */
.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--gold);
    text-shadow: var(--text-shadow);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    font-weight: 600;
    margin-top: var(--space-2);
}

/* 権威性を示すバッジ */
.authority-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 画像プレースホルダー */
.image-placeholder {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border: 2px dashed var(--gray-400);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-weight: 600;
    text-align: center;
    min-height: 200px;
}

/* 専門性を示すアクセント */
.professional-accent {
    border-left: 4px solid var(--gold);
    padding-left: var(--space-6);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.professional-accent p {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 専門家セクション専用の見出しスタイル */
.expert-section-heading {
    color: var(--white) !important;
    background: none !important;
    -webkit-text-fill-color: var(--white) !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

.expert-section-heading::after {
    display: none !important;
}

.expert-subsection-heading {
    color: var(--white) !important;
    background: none !important;
    -webkit-text-fill-color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* 専門家セクションのレイアウト */
.expert-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: var(--space-8);
}

.expert-image-center {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.expert-image-center img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.expert-content {
    width: 100%;
    text-align: center;
}

/* モダンなアクセント枠 */
.professional-modern-accent {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(16,185,129,0.1) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 16px rgba(255,215,0,0.1),
        0 8px 32px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.professional-modern-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--secondary) 100%);
}

.professional-modern-accent p {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: 500;
    line-height: 1.8;
    margin: 0;
}

/* 改良版専門性アクセント - 黒背景でも目立つモダンデザイン */
.professional-accent-enhanced {
    border-left: 4px solid var(--gold);
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, rgba(16,185,129,0.05) 100%);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border: 1px solid rgba(255,215,0,0.2);
    box-shadow: 0 4px 16px rgba(255,215,0,0.08);
}

.professional-accent-enhanced p {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* モダンな専門家セクションレイアウト */
.expert-layout-modern {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.expert-image-modern {
    position: relative;
}

.expert-image-modern img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        0 8px 24px rgba(255,215,0,0.1);
    transition: transform 0.3s ease;
}

.expert-image-modern img:hover {
    transform: translateY(-4px);
}

.expert-content-modern {
    padding-left: var(--space-4);
}

/* タブレット・モバイル対応 */
@media (max-width: 1024px) {
    .expert-layout-modern {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .expert-content-modern {
        padding-left: 0;
    }
    
    .expert-image-modern img {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .expert-layout-modern {
        gap: var(--space-8);
    }
    
    .expert-image-modern img {
        max-width: 320px;
    }
}

/* 画像の調整（レガシー） */
.expert-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== ANIMATIONS ===== */

/* カウントアップアニメーション */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-animation {
    animation: countUp 0.6s ease-out;
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* ===== ACCESSIBILITY ===== */

/* Focus indicators */
.btn:focus,
.form-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PC版専用レイアウト修正 ===== */

/* 専門家セクションのレイアウト調整 */
@media (min-width: 1024px) {
    .grid-cols-lg-2.flex-gap-12-center {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
        align-items: center;
    }
    
    /* 特許登録・検索フォームの高さ統一 */
    .card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
}

/* レスポンシブテキストサイズ調整 */
@media (min-width: 768px) {
    .text-lg-responsive {
        font-size: var(--font-size-xl);
    }
    
    .hero-paragraph {
        font-size: var(--font-size-2xl);
    }
}

/* PC版でのスライダー統計レイアウト */
@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
}

/* 境界線スタイル */
.border-t {
    border-top: 1px solid;
}

.border-gray-700 {
    border-color: var(--gray-700);
}

.pt-6 {
    padding-top: var(--space-6);
}

/* ホバーエフェクト */
.hover\:text-gold:hover {
    color: var(--gold);
}

/* テキストサイズ */
.text-sm {
    font-size: var(--font-size-sm);
}

/* ===== AI特許解析セクション ===== */
.ai-analysis-section {
    margin: var(--space-8) 0 var(--space-6) 0;
    padding: var(--space-6) 0;
    position: relative;
}

.ai-analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.ai-analysis-heading {
    color: var(--white);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 0 0;
    padding: var(--space-5) var(--space-8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow:
        0 10px 40px rgba(102, 126, 234, 0.3),
        0 4px 16px rgba(118, 75, 162, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-analysis-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.ai-analysis-heading:hover::before {
    left: 100%;
}

.ai-analysis-heading:hover {
    box-shadow:
        0 15px 50px rgba(102, 126, 234, 0.4),
        0 8px 24px rgba(118, 75, 162, 0.3);
    transform: translateY(-2px);
}

.ai-icon {
    font-size: var(--font-size-3xl);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.15) rotate(-5deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.15) rotate(5deg);
        opacity: 0.9;
    }
}

/* AIによる特許解析ボタン */
.btn-ai-analysis {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #ea580c 100%);
    color: var(--white);
    font-weight: 800;
    font-size: var(--font-size-xl);
    letter-spacing: 0.5px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow:
        0 10px 40px rgba(245, 158, 11, 0.4),
        0 4px 16px rgba(217, 119, 6, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.btn-ai-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-ai-analysis:hover::before {
    left: 100%;
}

.btn-ai-analysis:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #dc2626 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 15px 50px rgba(245, 158, 11, 0.6),
        0 8px 24px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-ai-analysis:active {
    transform: translateY(0);
    box-shadow:
        0 8px 30px rgba(245, 158, 11, 0.5),
        0 4px 16px rgba(217, 119, 6, 0.4);
}

.btn-ai-icon {
    font-size: var(--font-size-2xl);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: energize 1.5s ease-in-out infinite;
}

@keyframes energize {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.btn-ai-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 公開特許を検索するボタン */
.btn-search-patent {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: var(--white);
    font-weight: 800;
    font-size: var(--font-size-xl);
    letter-spacing: 0.5px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow:
        0 10px 40px rgba(16, 185, 129, 0.4),
        0 4px 16px rgba(5, 150, 105, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.btn-search-patent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-search-patent:hover::before {
    left: 100%;
}

.btn-search-patent:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 15px 50px rgba(16, 185, 129, 0.6),
        0 8px 24px rgba(5, 150, 105, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-search-patent:active {
    transform: translateY(0);
    box-shadow:
        0 8px 30px rgba(16, 185, 129, 0.5),
        0 4px 16px rgba(5, 150, 105, 0.4);
}

.btn-search-icon {
    font-size: var(--font-size-2xl);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.15) rotate(-10deg);
        opacity: 0.85;
    }
}

.btn-search-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .ai-analysis-heading {
        font-size: var(--font-size-xl);
        padding: var(--space-4) var(--space-5);
        gap: var(--space-2);
    }

    .ai-icon {
        font-size: var(--font-size-2xl);
    }

    .ai-analysis-section {
        margin: var(--space-6) 0 var(--space-4) 0;
    }

    .btn-ai-analysis {
        font-size: var(--font-size-lg);
        padding: var(--space-4) var(--space-6);
        border-width: 2px;
    }

    .btn-ai-icon {
        font-size: var(--font-size-xl);
    }

    .btn-search-patent {
        font-size: var(--font-size-lg);
        padding: var(--space-4) var(--space-6);
        border-width: 2px;
    }

    .btn-search-icon {
        font-size: var(--font-size-xl);
    }
}

/* ============================================
   タブ切り替えUI（特許明細入力用）
   ============================================ */

.description-input-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: #f9fafb;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background: #f3f4f6;
    color: #374151;
}

.tab-button.active {
    background: #ffffff;
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-button:first-child {
    border-radius: 8px 0 0 0;
}

.tab-button:last-child {
    border-radius: 0 8px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   ファイルアップロードエリア
   ============================================ */

.file-upload-area {
    margin-bottom: 8px;
}

.file-input-hidden {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 40px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.file-upload-text {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 8px;
}

.file-upload-text strong {
    color: #2563eb;
    font-weight: 600;
}

.file-upload-hint {
    font-size: 12px;
    color: #6b7280;
}

.file-upload-requirements {
    margin-top: 16px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
    text-align: left;
    line-height: 1.6;
}

.file-upload-requirements strong {
    color: #78350f;
    font-weight: 600;
}

.file-selected-name {
    margin-top: 12px;
    padding: 12px 16px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    font-size: 14px;
    color: #1e40af;
    display: none;
}

.file-selected-name.show {
    display: block;
}

/* ファイル選択後の結果表示エリア */
.file-result {
    margin-top: 16px;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid;
}

.file-result.success {
    background-color: #d1fae5;
    border-color: #10b981;
}

.file-result.error {
    background-color: #fee2e2;
    border-color: #ef4444;
}

.file-result.warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

#file-status-icon {
    font-size: 20px;
}

#file-name {
    flex: 1;
    font-weight: 600;
}

.file-clear-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.file-clear-btn:hover {
    color: #ef4444;
}

#file-extraction-result h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

#file-char-count {
    font-size: 14px;
    margin-bottom: 4px;
}

.file-warning {
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.btn-preview {
    margin-top: 12px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-preview:hover {
    background: #2563eb;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .tab-button {
        padding: 10px 12px;
        font-size: 13px;
    }

    .file-upload-label {
        padding: 30px 15px;
    }

    .file-upload-icon {
        font-size: 36px;
    }

    .file-upload-text {
        font-size: 14px;
    }
}

/* ============================================
   関連資料アップロード
   ============================================ */

.form-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.attachment-upload-zone {
    margin-bottom: 16px;
}

.attachment-upload-label {
    display: block;
    padding: 30px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.attachment-upload-label:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 12px;
    color: #6b7280;
}

.attachment-list {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.attachment-list h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
}

.attachment-item-icon {
    font-size: 24px;
}

.attachment-item-info {
    flex: 1;
}

.attachment-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.attachment-item-size {
    font-size: 12px;
    color: #6b7280;
}

.attachment-item-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.attachment-item-remove:hover {
    color: #ef4444;
}

.upload-note {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .attachment-upload-label {
        padding: 20px 15px;
    }

    .upload-icon {
        font-size: 32px;
    }

    .upload-text {
        font-size: 13px;
    }

    .attachment-item {
        gap: 8px;
    }

    .attachment-item-name {
        font-size: 13px;
    }
}

/* ===== SEO CONTENT BLOCK ===== */
.seo-content-block {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.seo-content-block h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 2rem;
    border-bottom: 3px solid #0284c7;
    padding-bottom: 0.75rem;
}

.seo-content-block h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 5px solid #0284c7;
}

.seo-content-block p {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.seo-content-block a.text-link-seo {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.seo-content-block a.text-link-seo:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.seo-content-block ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.seo-content-block ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.seo-content-block ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0284c7;
    font-weight: bold;
    font-size: 1.2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .seo-content-block h2 {
        font-size: 1.5rem;
    }
    
    .seo-content-block h3 {
        font-size: 1.25rem;
    }
    
    .seo-content-block p {
        font-size: 0.95rem;
    }
}
