/* css/styles.css */
:root {
    --primary-color: #2E7D32; 
    --primary-hover: #1B5E20;
    --accent-color: #1565C0;
    --accent-hover: #0D47A1;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-accent: #37474f;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --font-base: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "YuGothic", "Meiryo", sans-serif;
}

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-base); color: var(--text-color); line-height: 1.6; background-color: var(--white); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-accent { background-color: var(--bg-accent); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-2 { margin-bottom: 2rem; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 3rem; color: var(--primary-color); font-weight: bold; }

/* Header */
.header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 4px rgba(0,0,0,0.05); z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 15px 20px; }
.logo a { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); display: flex; flex-direction: column; line-height: 1.2; }
.logo-sub { font-size: 0.8rem; color: var(--text-light); }
.nav-menu ul { display: flex; gap: 20px; }
.nav-menu a { font-weight: 500; color: var(--text-color); }
.nav-menu a:hover { color: var(--primary-color); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; z-index: 1001; }
.hamburger .bar { display: block; width: 25px; height: 3px; background-color: var(--text-color); margin: 5px 0; transition: 0.3s; }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: #e0f2f1; /* 画像がない場合の予備色 */
    
    /* ▼▼▼ ここで画像を指定しています ▼▼▼ */
    /* images/hero-main.jpg があると表示されます */
    background-image: url('../images/hero-main.jpg'); 
    background-size: cover;
    background-position: center;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

/* オーバーレイ：画像を少し暗くして文字を読みやすくする */
.hero-overlay {
    background: rgba(0, 0, 0, 0.4); /* 黒の半透明レイヤー */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; left: 0;
}

.hero-content { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); padding: 20px; position: relative; z-index: 2; }
.hero-title { font-size: 3rem; margin-bottom: 20px; line-height: 1.3; }
.hero-sub { font-size: 1.2rem; margin-bottom: 40px; max-width: 800px; margin: 0 auto; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: bold; cursor: pointer; border: 2px solid transparent; transition: 0.3s; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary { background-color: var(--accent-color); color: white; }
.btn-secondary:hover { background-color: var(--accent-hover); }
.full-width { width: 100%; display: block; text-align: center; }

.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: white; text-align: center; font-size: 0.8rem; z-index: 2; }
.arrow { width: 20px; height: 20px; border-bottom: 2px solid white; border-right: 2px solid white; transform: rotate(45deg); margin: 10px auto; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: rotate(45deg) translate(0, 0);} 40% {transform: rotate(45deg) translate(-10px, -10px);} 60% {transform: rotate(45deg) translate(-5px, -5px);} }

/* Timeline */
.timeline { display: flex; justify-content: space-between; flex-wrap: wrap; position: relative; }
.timeline::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 4px; background: #ddd; z-index: 0; transform: translateY(-50%); }
.timeline-item { position: relative; z-index: 1; width: 18%; text-align: center; background: var(--white); padding: 10px; border: 1px solid #eee; border-radius: var(--border-radius); }
.timeline-year { font-weight: bold; color: var(--primary-color); font-size: 1.2rem; margin-bottom: 5px; background: #fff; display: inline-block; padding: 0 5px; }
.timeline-content h3 { font-size: 1rem; margin-bottom: 5px; }
.timeline-content p { font-size: 0.8rem; color: var(--text-light); }
.timeline-item.current { border: 2px solid var(--primary-color); transform: scale(1.1); }

/* Profile */
.profile-wrapper { display: flex; gap: 50px; align-items: center; }
.profile-image { flex: 1; display: flex; justify-content: center; position: relative; }
.profile-img-tag { width: 300px; height: 300px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }
.img-placeholder { width: 300px; height: 300px; border-radius: 50%; background-color: #ddd; display: flex; align-items: center; justify-content: center; color: #888; font-size: 1.5rem; }

.profile-text { flex: 2; }
.profile-name { font-size: 1.8rem; font-weight: bold; margin-bottom: 1rem; }
.profile-role { font-size: 1rem; color: var(--primary-color); margin-left: 10px; }
.profile-details dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px; margin-top: 20px; border-top: 1px solid #ddd; padding-top: 20px; }
.profile-details dt { font-weight: bold; color: var(--primary-color); }
.profile-details dd { margin-bottom: 10px; }

/* Grids & Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); padding: 20px; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }

/* Greeting */
.greeting-section { background-color: var(--bg-light); }
.greeting-wrapper { display: flex; gap: 40px; align-items: center; justify-content: space-between; }
.greeting-text { flex: 2; }
.greeting-message { color: var(--text-color); font-size: 1rem; line-height: 1.8; }
.greeting-image { flex: 1; display: flex; justify-content: center; }
.greeting-img-tag { width: 240px; height: 240px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }

/* Vision */
.vision-card { text-align: center; display: flex; flex-direction: column; height: 100%; }
.vision-icon { width: 60px; height: 60px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; margin: 0 auto 15px; }
.vision-card h3 { margin-bottom: 15px; color: var(--primary-color); }
.vision-card ul { text-align: left; padding-left: 20px; list-style: disc; flex: 1; }
.vision-link { margin-top: 20px; align-self: center; }

/* Policy Page */
.page-hero { padding-top: 140px; padding-bottom: 60px; background: #e8f5e9; }
.page-title { font-size: 2.4rem; color: var(--primary-color); margin-bottom: 20px; }
.page-lead { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; }
.policy-anchors { display: flex; gap: 15px; flex-wrap: wrap; }
.policy-section { padding-top: 60px; padding-bottom: 60px; }
.policy-text { font-size: 1rem; color: var(--text-color); margin-bottom: 20px; }
.policy-list { padding-left: 20px; list-style: disc; color: var(--text-color); display: grid; gap: 12px; }
.policy-list li strong { color: var(--primary-color); }

/* Works Tabs */
.tabs { display: flex; justify-content: center; margin-bottom: 30px; gap: 10px; }
.tab-btn { padding: 10px 30px; border: 2px solid var(--primary-color); background: transparent; color: var(--primary-color); font-weight: bold; border-radius: 30px; cursor: pointer; transition: 0.3s; }
.tab-btn.active, .tab-btn:hover { background: var(--primary-color); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s; }

/* News */
.filter-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { border: 1px solid #ccc; background: white; padding: 5px 15px; border-radius: 20px; cursor: pointer; }
.filter-btn.active { background: var(--text-color); color: white; border-color: var(--text-color); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.news-card { cursor: pointer; }
.news-date { font-size: 0.8rem; color: #888; }
.news-cat { display: inline-block; font-size: 0.7rem; background: #eee; padding: 2px 8px; border-radius: 4px; margin-bottom: 5px; }
.news-title { font-size: 1.1rem; margin-bottom: 10px; }
.news-excerpt { font-size: 0.9rem; color: var(--text-light); }

/* Support & Contact */
.form-container { max-width: 600px; margin: 0 auto; background: var(--white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.form-title { text-align: center; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.required { color: red; font-size: 0.8rem; margin-left: 5px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.form-message { margin-top: 15px; text-align: center; font-weight: bold; color: var(--primary-color); }

/* Footer */
.footer { background-color: #222; color: #ccc; padding: 50px 0 20px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px; }
.footer-info h3 { color: white; margin-bottom: 10px; }
.footer-links { text-align: right; }
.footer-nav li { display: inline-block; margin-left: 15px; }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.8rem; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: white; padding: 30px; border-radius: var(--border-radius); max-width: 600px; width: 90%; position: relative; max-height: 80vh; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 2rem; cursor: pointer; line-height: 1; }

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu { position: fixed; top: 60px; right: -100%; width: 100%; height: calc(100vh - 60px); background: white; transition: 0.3s; text-align: center; padding-top: 40px; }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 30px; }
    .hero-title { font-size: 2rem; }
    .timeline { flex-direction: column; }
    .timeline::before { width: 4px; height: 100%; left: 20px; top: 0; transform: none; }
    .timeline-item { width: 100%; margin-bottom: 20px; margin-left: 40px; width: calc(100% - 40px); text-align: left; }
    .profile-wrapper { flex-direction: column; gap: 20px; }
    .greeting-wrapper { flex-direction: column; text-align: left; }
    .profile-details dl { grid-template-columns: 1fr; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .policy-anchors { justify-content: flex-start; }
    .page-title { font-size: 2rem; }
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .footer-links { text-align: center; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
