/*
Theme Name: J-MDX Official v3
Description: 日本医療DX推進協会 公式テーマ（福利厚生・リスク管理特化版）
Author: J-MDX
Version: 3.0
*/

/* --- CORE VARIABLES --- */
:root {
    --col-mdx: #002147;   /* Navy */
    --col-jmpa: #C5B358;  /* Gold */
    --col-hpe: #006064;   /* Teal */
    --col-bg: #f4f7f6;
    --text: #333;
}

* { margin:0; padding:0; box-sizing:border-box; }

body { 
    font-family: 'Lato', 'Noto Serif JP', sans-serif; 
    color: var(--text); background: var(--col-bg); line-height: 1.8; overflow-x: hidden; 
}

h1, h2, h3, h4, .brand-main, .gate-title, .footer-logo { font-family: 'Cinzel', serif; letter-spacing: 0.5px; }
a { text-decoration: none; color: inherit; }

/* --- HEADER --- */
header { 
    background: rgba(255,255,255,0.98); height: 85px; position: fixed; width: 100%; top: 0; z-index: 999; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; 
    padding: 0 5%;
}
.brand-wrapper { display: flex; align-items: center; gap: 15px; }
.brand-icon { font-size: 2.2rem; color: var(--col-mdx); }
.brand-text-col { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.brand-main { font-size: 1.4rem; font-weight: 700; color: #333; }
.brand-sub { font-size: 0.7rem; color: #666; font-weight: normal; letter-spacing: 0.5px; }

/* Menu Area */
.header-right { display: flex; align-items: center; gap: 20px; }
.header-right ul { list-style: none; display: flex; gap: 20px; font-size: 0.9rem; font-weight: bold; }

/* --- HERO --- */
.hero-section { margin-top: 85px; height: calc(100vh - 85px); display: flex; overflow: hidden; }
.gate { flex: 1; position: relative; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,0.1); background-size: cover; background-position: center; }
.gate:hover { flex: 1.5; }
.gate::before { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.65); z-index:1; transition:0.4s; }
.gate:hover::before { background:rgba(0,0,0,0.4); }

.gate-mdx { background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=800&q=80'); }
.gate-jmpa { background-image: url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?w=800&q=80'); }
.gate-hpe { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&q=80'); }

.gate-content { position: relative; z-index: 2; padding: 30px; max-width: 500px; }
.gate-icon { font-size: 3rem; margin-bottom: 20px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3)); }
.gate-sub { font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; opacity: 0.9; display: block; }
.gate-title { font-size: 3rem; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); line-height: 1; }
.gate-jp-name { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); opacity: 0.95; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 5px; display: inline-block;}
.gate-desc { font-size: 0.95rem; margin-bottom: 30px; opacity: 0.9; font-weight: 500; }
.btn-gate { padding: 10px 30px; border: 1px solid #fff; color: #fff; text-decoration: none; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; transition: 0.3s; background: rgba(255,255,255,0.1); backdrop-filter: blur(4px); display: inline-block; font-size: 0.85rem; }
.btn-gate:hover { background: #fff; color: #111; }

/* --- TRUST BAR --- */
.trust-bar { background: #1a1a1a; color: #fff; padding: 60px 0; position: relative; z-index: 10; }
.trust-title { text-align: center; font-size: 1.5rem; margin-bottom: 10px; color: var(--col-jmpa); letter-spacing: 1px; }
.trust-desc { text-align: center; font-size: 0.9rem; color: #ccc; margin-bottom: 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; border-top: 1px solid #333; padding-top: 40px; }
.trust-item { display: flex; gap: 20px; align-items: flex-start; }
.trust-icon-box { background: #333; min-width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--col-jmpa); flex-shrink: 0; }
.trust-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.trust-sub { display: block; font-size: 0.75rem; font-weight: bold; color: #aaa; margin-bottom: 8px; text-transform: uppercase; border-bottom: 1px solid #555; display: inline-block; padding-bottom: 2px; }
.trust-text p { font-size: 0.8rem; line-height: 1.6; color: #ccc; text-align: justify; }

/* --- SECTIONS --- */
.section { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sec-head { text-align: center; margin-bottom: 50px; }
.sec-badge { padding: 5px 15px; font-weight: bold; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #fff; border-radius: 50px; display: inline-block; margin-bottom: 15px; }
.sec-title { font-size: 2.2rem; color: #333; margin-bottom: 5px; }
.sec-sub-jp { display: block; font-size: 1rem; font-weight: 700; color: #666; margin-bottom: 15px; }
.sec-desc { color: #666; max-width: 650px; margin: 0 auto; font-size: 0.95rem; }

/* --- CATALOG GRID (HPE) --- */
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.program-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; }
.program-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--col-mdx); }

.pg-header { padding: 12px 20px; background: #f8f9fa; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; }
.pg-target { font-size: 0.75rem; font-weight: bold; color: #555; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.pg-icon { font-size: 1rem; color: var(--col-hpe); }

.pg-body { padding: 20px; flex: 1; }
.pg-title { font-size: 1.1rem; font-weight: bold; color: #333; margin-bottom: 10px; line-height: 1.4; }
.pg-desc { font-size: 0.85rem; color: #666; margin-bottom: 15px; line-height: 1.7; text-align: justify; }

.pg-purpose { background: #f0f7f7; padding: 12px; border-radius: 4px; font-size: 0.8rem; color: #444; margin-bottom: 10px; border-left: 3px solid var(--col-hpe); }
.pg-purpose strong { color: var(--col-hpe); display:block; margin-bottom:3px; font-size:0.7rem; font-weight:800; }

.pg-footer { padding: 12px 20px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.pg-time { font-size: 0.8rem; color: #888; font-weight: bold; }
.btn-pg { padding: 6px 14px; background: #fff; border: 1px solid #ccc; color: #333; font-size: 0.75rem; border-radius: 4px; transition: 0.3s; }
.btn-pg:hover { background: var(--col-hpe); color: #fff; border-color: var(--col-hpe); }

/* --- OTHER STYLES --- */
.mdx-style .sec-badge { background: var(--col-mdx); } .mdx-style .sec-title { color: var(--col-mdx); }
.mdx-style .btn-card:hover { background: var(--col-mdx); color:#fff; }
.jmpa-style { background: #f9f9f9; } .jmpa-style .sec-badge { background: var(--col-jmpa); color: #000; }
.jmpa-style .card { border-color: var(--col-jmpa); } .jmpa-style .btn-card:hover { background: var(--col-jmpa); color: #000; }
.hpe-style .sec-badge { background: var(--col-hpe); } .hpe-style .sec-title { color: var(--col-hpe); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #fff; padding: 35px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; border-top: 3px solid #ccc; }
.card h3 { font-size: 1.3rem; margin: 15px 0 10px; color: #333; }
.card p { font-size: 0.9rem; color: #666; margin-bottom: 20px; }
.btn-card { display: inline-block; padding: 8px 20px; font-size: 0.8rem; font-weight: bold; border-radius: 4px; border: 1px solid #ddd; color: #555; margin-top: auto; }

/* Price & Monitor */
.price-section { background: #fff; padding: 60px 0; border-top: 1px solid #eee; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.price-card { background: #f9f9f9; border: 1px solid #ddd; padding: 30px; border-radius: 8px; text-align: center; }
.price-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; color: #555; }
.price-amount { font-size: 2rem; font-weight: 700; color: #333; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.price-sub { font-size: 0.8rem; color: #888; margin-bottom: 20px; display: block; }
.price-list { list-style: none; text-align: left; font-size: 0.9rem; color: #666; margin-bottom: 20px; }
.price-list li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.price-list li::before { content: '✔'; color: var(--col-hpe); position: absolute; left: 0; }

.monitor-banner { 
    background: linear-gradient(135deg, #002147 0%, #004e92 100%); 
    color: #fff; padding: 40px; border-radius: 8px; text-align: center; margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0,33,71,0.2);
}
.sim-box { background: linear-gradient(135deg, #2c3e50 0%, #000 100%); color: #fff; padding: 50px; border-radius: 8px; margin-top: 60px; text-align: center; }
.sim-btn { display: inline-block; margin-top: 20px; padding: 12px 30px; background: #C5B358; color: #000; font-weight: bold; text-decoration: none; border-radius: 4px; transition: 0.3s; }

footer { background: #111; color: #888; padding: 60px 0; text-align: center; font-size: 0.8rem; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom:10px; display:block;}

@media (max-width: 768px) {
    .hero-section { flex-direction: column; height: auto; }
    .gate { min-height: 40vh; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
}