/* General Reset & Common Settings */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif; line-height: 1.8; color: #1e293b; background-color: #faf9f6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.4; }

/* Color Variables */
:root {
    --color-gold: #dfc79c; /* シャンパンゴールド */
    --color-navy: #0f172a;
    --color-text: #1e293b;
    --color-gray: #f5f5f3;
}

/* Section Common Settings */
section { padding: 80px 0; }
section#contact h2 { font-size: 2rem; color: #fff; margin-bottom: 15px; max-width: 700px; margin-left: auto; margin-right: auto; }
section .cta-subtitle { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 20px; color: var(--color-navy); font-weight: 700; position: relative; padding-bottom: 20px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--color-gold); border-radius: 2px; }
.section-subtitle { text-align: center; font-size: 1.2rem; color: #1B1F25; max-width: 700px; margin: 0 auto 50px; }
.section-subtitle span { text-align: center; font-size: 1rem; margin-bottom: 10px; display: inline-block; }
.section-subtitle span.annot { font-size: 0.8rem; margin: 15px 0 0 0; color:#718096; display: inline-block; border: 1px solid #718096; padding: 15px; border-radius: 6px; }

/* Text Highlight */
.text-highlight { color: #bf9224; font-weight: bold; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #f5f7fa 0%, #eef2f5 100%); color: var(--color-navy); padding: 100px 0; text-align: center; }
.hero-tag { display: inline-block; color: #bf9224; padding: 8px 20px; font-weight: 500; font-size: 1.1rem; margin-bottom: 20px; letter-spacing: 1px; border: 1.5px solid #bf9224; border-radius: 30px; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 25px; letter-spacing: 1px; }
.hero .description { font-size: 1.2rem; max-width: 800px; margin: 0 auto 40px; color: #334155; }
.hero .company-name { font-size: 1.5rem; font-weight: 500; }

/*CTA Section*/
/* CTA Button */
.cta-btn { display: inline-block; background: #bf9224; color: #fff; font-size: 1.3rem; font-weight: bold; padding: 18px 50px; text-decoration: none; border-radius: 50px; box-shadow: 0 4px 15px rgba(223, 199, 156, 0.4); transition: all 0.3s ease; text-align: center; }
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(223, 199, 156, 0.6); }

/* Background Colors & Dark Mode Styles */
.bg-dark { background-color: var(--color-navy); color: #e2e8f0; text-align: center; }
.bg-dark .section-title { color: #fff; }
.bg-dark .section-subtitle { color: #94a3b8; }
.intro-box.dark-mode { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.1); }
.bg-gray { background-color: var(--color-gray); }

/* Rocket Icon */
.rocket-icon-wrapper { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 120px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 30px; padding: 20px; }

/* Glassmorphism-style Box */
.intro-box { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.8); padding: 40px; border-radius: 12px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05); text-align: center; max-width: 800px; margin: 0 auto; font-size: 1.2rem; }

/* Data Grid for Statistics */
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.data-card { background: #fff; padding: 30px; border-radius: 12px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.data-card .num { font-size: 3.5rem; font-weight: bold; color: var(--color-gold); }
.data-card .num span, .em-num span { font-size: 1.8rem; color: #475569; margin: 0 4px; }
.data-card .em-num { font-size: 3.5rem; font-weight: bold; color: #a11f0c; }
.data-card .desc { font-size: 1rem; color: #475569; margin-top: 10px; }

/* Equation Box */
.formula-box { background: #fff; border: 2px solid var(--color-gold); color: var(--color-navy); padding: 30px; border-radius: 12px; text-align: center; font-size: 1.8rem; font-weight: bold; margin-bottom: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
display: flex; align-items: center; justify-content: center; gap: 15px; }
.frac-cntr { display: inline-flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; }
.frac-top { color: #bf9224; border-bottom: 2px solid #bf9224; padding-bottom: 4px; font-size: 1.2em;}
.frac-btm{ font-size: 0.55em; color: #718096; font-weight: normal; margin-top: 6px; white-space: nowrap; /* スマホでの意図しない改行を防ぐ */ }

/* 3 Pillars Section */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pillar-card { background: #fff; padding: 35px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid var(--color-gold); }
.pillar-card h3 { font-size: 1.4rem; color: var(--color-navy); margin-bottom: 15px; }

/* Roadmap Section */
.roadmap { position: relative; max-width: 800px; margin: 40px auto 0; padding-left: 40px; border-left: 3px solid rgba(223, 199, 156, 0.4); }
.roadmap-item { position: relative; margin-bottom: 30px; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.roadmap-item::before { content: attr(data-step); position: absolute; left: -61.5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background-color: var(--color-gold); color: white; display: grid; place-items: center; font-weight: bold; border: 3px solid var(--color-gray); }
section:not(.bg-gray) .roadmap-item::before { border-color: #faf9f6; }
.roadmap-time { font-weight: bold; color: var(--color-gold); font-size: 1rem; }
.roadmap-title { font-size: 1.3rem; font-weight: bold; color: var(--color-navy); margin: 5px 0 10px; }

/* Footer */
footer { background-color: var(--color-gray); color: #94a3b8; padding: 80px 20px; }
footer h2 { font-size: 2.2rem; color: #fff; margin-bottom: 15px; max-width: 700px; margin-left: auto; margin-right: auto; }
footer .cta-subtitle { font-size: 1.2rem; text-align: center; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto;}
footer p.copyright { text-align: center; margin-top: 50px; font-size: 0.9rem; }

/* Company Section */
.company { position: relative; margin: 40px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.company-item { margin-bottom: 30px; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: center; }
.company-title { font-size: 1rem;  color: var(--color-navy); text-align: left; }
dl.company dt { padding: 0 5%; }
dl.company dd { padding-left: 5%; font-weight: 500; }

/* Form*/
.form-box { max-width: 600px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.form-thx { color: #000; display: none; text-align: center; padding: 20px 20px 40px; }
.form-thx h3 { color: #000; font-size: 24px; margin-bottom: 15px; }
.form-group { margin-bottom: 20px; text-align: left;}
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #0B192C; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 1rem; }
.form-group textarea { height: 120px; resize: vertical; }
.submit-btn { width: 100%; background: linear-gradient(90deg, #cba74f 0%, #bf9224 100%); color: #fff; border: none; padding: 18px; font-size: 1.3rem; font-weight: bold; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; }
.submit-btn:hover { filter: brightness(1.05); /* 全体の明るさを1.15倍にする（グラデーションを保ったまま光る） */
    box-shadow: 0 5px 15px rgba(191, 146, 36, 0.4); }

/* --- COMPARISON TABLE & RESPONSIVE CARD --- */
/* Desktop: Table styles */
.table-wrapper { background: #fff; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); overflow: hidden; }
.table-wrapper table { width: 100%; border-collapse: collapse; }
.table-wrapper th, .table-wrapper td { padding: 25px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.table-wrapper th { background-color: #f8f9fa; color: var(--color-navy); font-weight: bold; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table-wrapper td.target { font-weight: bold; font-size: 1.1rem; width: 25%; }
.table-wrapper tr:last-child td { border-bottom: none; }
.table-wrapper tr.recom td { background-color: #fdfbf3; }
.table-wrapper tr.recom .target { font-size: 1.2rem; color: #bf9224; font-weight: 700; }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .pillar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .roadmap { padding-left: 20px; }
    .roadmap-item::before { left: -41.5px; }
	.company { /* 自動的に1列 */
		grid-template-columns: 1fr; gap: 15px; }
	.formula-box { /* 横並びから縦、間隔・余白調整 */
		flex-direction: column;  gap: 12px; padding: 20px 15px; }
	.section-subtitle span.annot { font-size: 1rem; }
	br.pc-only { display: none; }

    /* Mobile: Switch table to card display */
    .table-wrapper { background: transparent; border: none; box-shadow: none; }
    .table-wrapper thead { display: none; }
    .table-wrapper table, .table-wrapper tbody, .table-wrapper tr, .table-wrapper td { display: block; width: 100% !important; }
    .table-wrapper tr { background: #fff; margin-bottom: 20px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); overflow: hidden; }
    .table-wrapper td { border-bottom: none; }
    .table-wrapper td.target { background-color: #f8f9fa; padding: 15px 20px; border-bottom: 1px solid #eee; font-size: 1.2rem; color: var(--color-navy); }
    .table-wrapper td.description { padding: 20px; line-height: 1.7; white-space: normal; }
    .table-wrapper tr.recom { border: 2px solid #bf9224; }
    .table-wrapper tr.recom td.target { background-color: #bf9224; color: #fff; border-bottom: none; }
    .table-wrapper tr.recom td.description { background-color: #fdfbf3; font-weight: 500; }
}