/* ファイル名: css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&family=Orbitron:wght@400;700&display=swap');

:root {
    --primary-color: #0d0d0d;
    --secondary-color: #1a1a1a;
    --accent-color: #00ffff;
    --text-color: #e0e0e0;
    --warning-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--primary-color); color: var(--text-color); font-family: var(--body-font); line-height: 1.8; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
main { flex-grow: 1; }

/* --- ヘッダーとナビゲーション --- */
header { padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(0, 255, 255, 0.2); position: sticky; top: 0; }
.logo { font-family: var(--heading-font); font-size: 2em; color: var(--accent-color); text-shadow: 0 0 10px var(--accent-color); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text-color); text-decoration: none; margin-left: 15px; padding: 5px; font-weight: 400; transition: color 0.3s, text-shadow 0.3s; white-space: nowrap; border-radius: 4px; }
.nav a:hover, .nav a.active { color: var(--accent-color); text-shadow: 0 0 5px var(--accent-color); background-color: rgba(0, 255, 255, 0.1); }

/* --- ヒーローセクション (トップページ) --- */
.hero { position: relative; height: calc(100vh - 85px); display: flex; justify-content: center; align-items: center; text-align: center; background: url('https://images.pexels.com/photos/1169754/pexels-photo-1169754.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--primary-color) 5%, rgba(0,0,0,0.5) 100%); }
.hero-content { z-index: 1; animation: fadeIn 2s ease-in-out; }
.hero-title { font-family: var(--heading-font); font-size: 4.5rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 5px; text-shadow: 0 0 15px rgba(0, 255, 255, 0.7), 0 0 25px rgba(0, 255, 255, 0.5); }
.hero-subtitle { font-size: 1.5rem; font-weight: 300; }

/* --- トップページのグリッド --- */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-item { background: var(--secondary-color); padding: 30px; border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 10px; text-decoration: none; color: var(--text-color); transition: transform 0.3s, box-shadow 0.3s; }
.grid-item:hover { transform: translateY(-10px); box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
.grid-item i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.grid-item h3 { font-family: var(--heading-font); font-size: 1.5rem; color: var(--accent-color); margin-bottom: 15px; }

/* --- 各ページの共通スタイル --- */
.page-header { padding: 100px 10% 80px; text-align: center; background: var(--secondary-color); }
.page-title { font-family: var(--heading-font); font-size: 3rem; color: var(--accent-color); text-shadow: 0 0 8px rgba(0, 255, 255, 0.5); }
.page-subtitle { font-size: 1.2rem; max-width: 700px; margin: 15px auto 0; }
.content-section { padding: 80px 10%; }
.sub-heading { font-family: var(--heading-font); font-size: 1.8rem; color: var(--accent-color); margin-bottom: 20px; text-align: center; margin-top: 60px; }
.text-center { text-align: center; }

/* --- 理念 --- */
.philosophy-content { max-width: 900px; margin: 0 auto; text-align: center; }
.philosophy-subsection { margin-bottom: 60px; }
.core-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; list-style: none; }
.core-values li { background: rgba(0,0,0,0.3); padding: 30px; border-radius: 8px; border: 1px solid rgba(0, 255, 255, 0.1); }
.core-values i { font-size: 2.5rem; margin-bottom: 15px; color: var(--accent-color); }
.core-values h4 { font-family: var(--heading-font); margin-bottom: 10px; font-size: 1.2rem; }

/* --- 歴史 --- */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background: var(--accent-color); box-shadow: 0 0 10px var(--accent-color); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-container { padding: 10px 40px; position: relative; background: inherit; width: 50%; }
.timeline-container.left { left: 0; }
.timeline-container.right { left: 50%; }
.timeline-container::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background: var(--primary-color); border: 4px solid var(--accent-color); top: 25px; border-radius: 50%; z-index: 1; }
.right::after { left: -10px; }
.timeline-content { padding: 20px 30px; background: var(--secondary-color); position: relative; border-radius: 8px; border: 1px solid rgba(0, 255, 255, 0.2); }
.timeline-content h3 { font-family: var(--heading-font); color: var(--accent-color); }

/* --- 製品 --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.product-card { background-color: var(--secondary-color); border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 10px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-family: var(--heading-font); font-size: 1.5rem; color: var(--accent-color); margin-bottom: 15px; }
.product-description { margin-bottom: 20px; flex-grow: 1; }
.product-price { font-size: 1.2rem; font-weight: 700; text-align: right; color: var(--text-color); }

/* --- お客様の声 (製品ページ内) --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--secondary-color); padding: 30px; border-left: 5px solid var(--accent-color); }
.testimonial-card p { font-style: italic; }
.testimonial-card footer { text-align: right; margin-top: 15px; font-weight: bold; }

/* --- 採用情報 --- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-bottom: 60px; }
.job-card { background: var(--secondary-color); padding: 30px; border-radius: 8px; border: 1px solid rgba(0, 255, 255, 0.1); }
.job-card h4 { font-family: var(--heading-font); font-size: 1.5rem; color: var(--accent-color); margin-bottom: 15px; }
.info-list { list-style: none; padding-left: 20px; text-align: left; display: inline-block; }
.info-list li { margin-bottom: 10px; position: relative; }
.info-list li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent-color); position: absolute; left: -25px; }
.joke-small-notice { font-size: 0.8em; color: var(--warning-color); display: block; text-align: center; margin-top: 20px; }

/* --- 投資家情報 --- */
.ir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; }
.ir-card { background: var(--secondary-color); padding: 30px; border-radius: 8px; }
.ir-card h4 { font-family: var(--heading-font); font-size: 1.5rem; margin-bottom: 15px; color: var(--accent-color); }
.ir-card img { max-width: 100%; border-radius: 8px; }
.btn-dummy { display: inline-block; padding: 10px 20px; background: var(--accent-color); color: var(--primary-color); text-decoration: none; border-radius: 5px; font-weight: bold; margin-top: 10px; }

/* --- クイズ --- */
.quiz-container { max-width: 800px; margin: 0 auto; }
.quiz-question { background: var(--secondary-color); padding: 30px; border-radius: 8px; margin-bottom: 40px; }
.quiz-question-title { font-family: var(--heading-font); font-size: 2.5rem; text-align: center; margin-bottom: 20px; }
.quiz-options { display: grid; grid-template-columns: 1fr; gap: 15px; list-style: none; }
.quiz-options li { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: background-color 0.3s; }
.quiz-options li:hover { background: rgba(0, 255, 255, 0.2); }
.quiz-result { padding: 20px; margin-top: 20px; border-radius: 5px; }
.quiz-result.correct { background-color: rgba(40, 167, 69, 0.2); border-left: 5px solid var(--success-color); }
.quiz-result.incorrect { background-color: rgba(220, 53, 69, 0.2); border-left: 5px solid var(--danger-color); }
.quiz-result p { margin: 0; }
.quiz-result .explanation { margin-top: 10px; font-size: 0.9em; opacity: 0.8; }
.result-container .result-score { font-size: 2em; font-weight: bold; text-align: center; color: var(--accent-color); margin-bottom: 20px; }
.result-container .evaluation-title { font-family: var(--heading-font); font-size: 1.5em; text-align: center; }
.result-container .evaluation-text { text-align: center; max-width: 600px; margin: 10px auto 0; }

/* --- 会社概要 --- */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.1rem; margin-bottom: 20px; }
.about-content strong { color: var(--accent-color); font-weight: 400; }

/* --- フッター --- */
footer { padding: 50px 10%; text-align: center; background-color: #080808; margin-top: auto; }
.joke-notice { color: var(--warning-color); font-weight: bold; margin-bottom: 20px; padding: 10px; border: 1px solid var(--warning-color); display: inline-block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- レスポンシブ --- */
@media (max-width: 992px) {
    .nav a { margin-left: 10px; font-size: 0.85em; }
}
@media (max-width: 768px) {
    .nav { display: none; } /* ハンバーガーメニューにするのが理想だが今回は簡略化 */
    .hero-title, .page-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .timeline::after { left: 31px; }
    .timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-container.left, .timeline-container.right { left: 0%; }
    .timeline-container::after { left: 21px; }
    .ir-grid { grid-template-columns: 1fr; }
}

/* --- ここから下が新しいスタイルです --- */

/* --- 支店一覧ページ --- */
.branch-list {
    max-width: 900px;
    margin: 0 auto;
}
.branch-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.branch-item h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}
.branch-details {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 5px;
}
.branch-details dl {
    margin: 0;
}
.branch-details dt {
    font-weight: bold;
    color: var(--accent-color);
    opacity: 0.8;
    font-size: 0.9em;
    margin-top: 15px;
}
.branch-details dt:first-child {
    margin-top: 0;
}
.branch-details dd {
    margin-left: 0;
    padding-left: 1em;
    border-left: 2px solid rgba(0, 255, 255, 0.3);
    margin-bottom: 15px;
}
.branch-details dd:last-child {
    margin-bottom: 0;
}

/* --- ニュースページ --- */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}
.news-list .news-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 10px;
}
.news-list .news-item:first-child {
    padding-top: 0;
}
.news-list .news-item:last-child {
    border-bottom: none;
}
.news-item .news-date {
    font-size: 0.9em;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.news-item .news-headline {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.news-item p {
    line-height: 1.7;
}
