:root {
    --primary-color: #0F4C81;
    --accent-color: #F5A623;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #1a252f;
    --white: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.8; overflow-x: hidden; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-warning { color: var(--accent-color); }
.bg-dark { background-color: var(--bg-dark); }
.bg-light { background-color: var(--bg-light); }
.mt-20 { margin-top: 20px; }
.mt-large { margin-top: 50px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: var(--transition); cursor: pointer; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; border: 1px solid var(--primary-color); color: var(--primary-color); }
.btn-sm:hover { background: var(--primary-color); color: var(--white); }
.btn-primary { background: var(--accent-color); color: var(--white); font-size: 1.2rem; border: none; box-shadow: 0 10px 20px rgba(245, 166, 35, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(245, 166, 35, 0.4); }

/* Navigation */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); padding: 15px 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; color: var(--primary-color); text-decoration: none; }

/* Hero */
.hero-section { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e0eafc, #cfdef3); position: relative; }
.hero-content { text-align: center; z-index: 2; }
.hero-content h1 { font-size: 3rem; font-weight: 900; color: var(--primary-color); margin-bottom: 20px; }
/* Scroll Down */
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; opacity: 0.6; }
.scroll-down .arrow { width: 20px; height: 20px; border-bottom: 2px solid var(--text-color); border-right: 2px solid var(--text-color); transform: rotate(45deg); margin-top: 10px; animation: arrowBounce 2s infinite; }
@keyframes arrowBounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); } 40% { transform: translateY(-10px) rotate(45deg); } 60% { transform: translateY(-5px) rotate(45deg); } }

/* Origin Map Section */
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.origin-map-wrapper { position: relative; width: 100%; height: auto; min-height: 400px; background: #fff; border-radius: 30px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); overflow: hidden; }
.map-image-container { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.base-map-img { width: 100%; height: auto; max-height: 350px; object-fit: contain; opacity: 0.3; transition: opacity 1s ease; }
.origin-map-wrapper:hover .base-map-img { opacity: 0.6; }
.overlay-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.map-dot { fill: var(--accent-color); filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.5)); }
.center-dot { fill: var(--primary-color); }
.connect-line { fill: none; stroke: var(--primary-color); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.5s ease-in-out; }
.origin-map-wrapper.visible .connect-line { stroke-dashoffset: 0; }
.map-label { position: absolute; font-size: 0.8rem; font-weight: 700; background: #fff; padding: 2px 8px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); color: var(--primary-color); }
.label-hokkaido { top: 15%; right: 15%; }
.label-tokyo { top: 55%; left: 65%; transform: translateX(-50%); font-weight: 900; font-size: 0.9rem; }
.label-okinawa { bottom: 10%; left: 15%; }

/* Problem Section */
.problem-visual { height: 350px; position: relative; display: flex; justify-content: center; align-items: center; }
.manager-silhouette { width: 80px; height: 100px; background: #4a5568; border-radius: 40px 40px 0 0; position: relative; }
.thought-bubble { position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 10px 15px; border-radius: 20px; font-size: 0.85rem; min-width: 150px; transition: var(--transition); }
.thought-bubble:hover { background: var(--white); color: var(--text-color); transform: scale(1.1); }
.t1 { top: -40px; left: -180px; }
.t2 { top: -60px; right: -180px; }
.t3 { bottom: 20px; left: -200px; }
.t4 { bottom: 40px; right: -200px; }

/* Solution Logic */
.toggle-container { display: flex; justify-content: center; margin: 40px 0; }
.toggle-switch { background: #edf2f7; padding: 5px; border-radius: 50px; display: flex; }
.toggle-btn { padding: 10px 25px; border: none; background: transparent; border-radius: 40px; cursor: pointer; font-weight: 700; color: #a0aec0; transition: var(--transition); }
.toggle-btn.active { background: #fff; color: var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.solution-content { display: none; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; animation: slideIn 0.5s ease; }
.solution-content.active { display: grid; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Diagram */
.diagram { height: 300px; background: #fff; border-radius: 20px; border: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: center; }
.diagram-baton .node { width: 60px; height: 60px; background: #cbd5e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #4a5568; }
.diagram-baton .arrow-right { margin: 0 10px; color: #cbd5e0; font-size: 1.5rem; }

/* Mutual Support Animation (Initial Proposal) */
.diagram-support .circle-group { position: relative; width: 200px; height: 200px; animation: spin 20s linear infinite; }
.diagram-support .node { position: absolute; width: 70px; height: 70px; background: rgba(245, 166, 35, 0.1); border: 2px solid var(--accent-color); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; animation: spinReverse 20s linear infinite; }
/* Node Positions */
.diagram-support .n1 { top: 0; left: 50%; transform: translateX(-50%); }
.diagram-support .n2 { bottom: 10px; left: 0; }
.diagram-support .n3 { bottom: 10px; right: 0; }
.center-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: 900; color: var(--accent-color); font-size: 1.2rem; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(-360deg); } }
/* 補正: n2, n3はtranslateX(-50%)ではない位置計算のため、transform-origin中心で回す簡易手法をとるか、
   ここではシンプルに文字が逆回転して読める状態を維持する */
.diagram-support .n2 { animation: spinReverseNormal 20s linear infinite; }
.diagram-support .n3 { animation: spinReverseNormal 20s linear infinite; }
@keyframes spinReverseNormal { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* List Styles */
.pros-cons { list-style: none; margin-top: 20px; }
.pros-cons li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.pros-cons li.bad::before { content: "✕"; position: absolute; left: 0; color: #e53e3e; }
.pros-cons li.good::before { content: "◎"; position: absolute; left: 0; color: #38a169; font-weight: bold; }
.highlight-box { border-left: 4px solid var(--accent-color); padding-left: 20px; }
.badge { display: inline-block; background: var(--accent-color); color: white; font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; }

/* Turning Point */
.story-block { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.story-quote blockquote { font-size: 1.4rem; font-style: italic; font-family: serif; color: var(--primary-color); margin-bottom: 20px; position: relative; }
.story-quote blockquote::before { content: "“"; font-size: 4rem; position: absolute; top: -40px; left: -20px; color: rgba(15, 76, 129, 0.1); }

/* Timeline */
.timeline { position: relative; padding: 40px 0; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: #e2e8f0; }
.timeline-item { display: flex; margin-bottom: 40px; position: relative; }
.step-num { width: 40px; height: 40px; background: var(--accent-color); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; z-index: 2; flex-shrink: 0; }
.step-content { margin-left: 30px; background: #fff; padding: 25px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* Vision Section (Initial Proposal Style) */
.quote-box { margin-bottom: 40px; opacity: 0.9; }
.quote-box p { font-size: 1.8rem; font-family: serif; margin-bottom: 10px; }
.vision-details { margin: 30px 0; font-size: 1.1rem; line-height: 2; opacity: 0.9; }
.cta-group { margin-top: 50px; }
.cta-note { font-size: 0.8rem; margin-top: 10px; opacity: 0.6; }

/* Animation Utils */
.scroll-trigger { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.scroll-trigger.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 1.0s; }

@media (max-width: 768px) {
    .origin-grid, .story-block, .solution-content.active { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .thought-bubble { position: static; margin-bottom: 10px; width: 100%; }
    .problem-visual { height: auto; display: block; }
}