/*================================================
  BASE STYLES & LAYOUT
================================================*/
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
.clean-background {
    background-color: #f7f9fc;
}

/* メインコンテンツコンテナ */
.main-content, .conversion-page {
    width: 100%;
    max-width: 900px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    margin-bottom: 50px;
}

/* 共通タイトル */
.main-heading {
    font-size: 2.2em;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
}
.intro-text {
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 30px;
    text-align: center;
}
.highlight-text {
    color: #007bff;
    text-shadow: 1px 1px 5px rgba(0, 123, 255, 0.3);
}

/*================================================
  GLOBAL HEADER (header.php)
================================================*/
.global-header {
    width: 100%;
    padding: 15px 40px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link {
    text-decoration: none;
    color: #333;
}
.logo-title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    color: #1a237e;
}
.logo-beta-tag {
    font-size: 0.6em;
    vertical-align: top;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    margin-left: 5px;
    font-weight: normal;
    letter-spacing: 0.5px;
}
.main-nav {
    display: flex;
    align-items: center;
}
.tagline-desktop {
    font-size: 0.9em;
    color: #6c757d;
    margin: 0;
    padding-left: 20px;
    border-left: 1px solid #e9ecef;
}

/*================================================
  TOP PAGE SECTIONS (index.php)
================================================*/

/* ヒーローセクション */
.hero-section {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 50px;
}
.hero-title {
    font-size: 3em;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}
.hero-tagline {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 30px;
}
.hero-stats {
    border: none;
    background: #f8f9fa;
    width: 60%;
    margin: 20px auto;
}

/* カードナビゲーション */
.section-title {
    text-align: center;
    font-size: 1.8em;
    color: #495057;
    margin-bottom: 30px;
}
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.feature-card {
    display: block;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}
.card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}
.card-description {
    font-size: 0.9em;
    color: #6c757d;
}

/* カードテーマ */
.primary-card { background-color: #eaf8ef; color: #333; }
.secondary-card { background-color: #eaf8ef; color: #333; }
.tertiary-card { background-color: #eaf8ef; color: #333; }

/* 無効化カード (COMING SOON) */
.disabled-card {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    pointer-events: none;
}
.coming-soon-label {
    position: absolute;
    top: 10px;
    right: -30px;
    background: #dc3545;
    color: white;
    padding: 3px 30px;
    font-size: 0.8em;
    transform: rotate(45deg);
    font-weight: bold;
}

/* 信頼性/セキュリティセクション */
.security-section {
    padding: 40px 0;
    border-top: 1px solid #eee;
}
.feature-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-item {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}
.feature-item:hover {
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}
.feature-icon {
    font-size: 1.8em;
    margin-bottom: 10px;
    display: block;
    color: #007bff;
}
.feature-item h3 {
    font-size: 1.1em;
    color: #343a40;
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 0.9em;
    color: #6c757d;
}

/*================================================
  COUNT DISPLAY (共通)
================================================*/
.conversion-stats {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px;
    border: 1px solid #28a745;
    border-radius: 8px;
    background-color: #eaf8ef;
}
.stats-text {
    font-size: 1.1em;
    color: #28a745;
    font-weight: bold;
    margin: 0;
}
.count-number {
    font-size: 1.2em;
    color: #000;
}

/*================================================
  CONVERSION PAGE (csv_to_pdf/index.php)
================================================*/

.page-hero-header {
    text-align: center;
    padding-bottom: 20px;
}
.step-section {
    padding: 20px 0;
}
.step-title {
    font-size: 1.5em;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 5px;
    margin-bottom: 25px;
}
.secure-info {
    text-align: center;
    color: #28a745;
    font-weight: bold;
    margin-top: 20px;
    font-size: 0.9em;
}
.separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

/* ドロップエリア */
#drop-area { 
    border: 3px dashed #007bff;
    border-radius: 15px; 
    width: auto; 
    padding: 80px;
    text-align: center; 
    cursor: pointer; 
    background: #e6f0ff;
    transition: border-color 0.3s, background 0.3s; 
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #007bff;
    font-weight: 500;
}
#drop-area.highlight { 
    border-color: #1a237e;
    background: #d0e0ff;
}

/* 特徴/制限事項のグループ化 */
.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.feature-group h3 {
    color: #007bff;
    margin-bottom: 15px;
}
.clean-list {
    list-style: none;
    padding-left: 0;
}
.clean-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #e9ecef;
    font-size: 0.95em;
}
.clean-list li:last-child {
    border-bottom: none;
}

/*================================================
  LOCK SCREEN / MODAL / RESULTS (旧インラインCSS)
================================================*/
.lock-screen-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(255, 255, 255, 0.95); 
    z-index: 2000; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    flex-direction: column; 
}
.lock-content { 
    max-width: 800px; 
    padding: 20px; 
}
.loading-message { 
    font-size: 1.5em; 
    color: #007bff; 
    margin-bottom: 30px; 
}
.progress-container { 
    width: 80%; 
    max-width: 500px; 
    background-color: #e0e0e0; 
    border-radius: 25px; 
    margin: 30px auto 10px; 
    overflow: hidden; 
    border: 1px solid #ccc; 
}
.progress-bar { 
    height: 20px; 
    width: 0%; 
    background-color: #007bff; 
    border-radius: 25px; 
    transition: width 0.4s ease-in-out; 
}
.progress-percentage { 
    font-size: 1.2em; 
    color: #007bff; 
    font-weight: bold; 
}
.result-view { 
    padding: 20px 0; 
}
#result-title { 
    color: #28a745; 
}
.download-button-group { 
    margin: 20px 0; 
}
.download-button-group a.download-button { 
    display: inline-block; 
    padding: 12px 30px; 
    margin-right: 15px; 
    background-color: #28a745; 
    color: white; 
    text-decoration: none; 
    border-radius: 5px; 
    font-size: 1.1em; 
    font-weight: bold; 
    transition: background-color 0.3s; 
}
.download-button-group a.download-button:hover { 
    background-color: #1e7e34; 
}
.reset-button { 
    padding: 10px 20px; 
    background: #6c757d; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}
.reset-button:hover { 
    background: #5a6268; 
}
.ad-banner-space { 
    margin: 20px 0; 
}
.security-info { 
    font-size: 0.9em; 
    color: #6c757d; 
    margin-top: 30px; 
}