@charset "UTF-8";

/* =========================================================
   1. 変数定義 & リセット
========================================================= */
:root {
  --color-primary: #004b87;    /* メインカラー：医療系ネイビー */
  --color-secondary: #007bb5;  /* アクセントカラー */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-light: #f4f7f9;   /* セクション背景 */
  --color-border: #e0e0e0;
  --font-main: "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: 0.3s; }
a:hover { opacity: 0.7; }

/* =========================================================
   2. 共通コンポーネント
========================================================= */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--color-bg-light); }
.text-center { text-align: center; }

/* 見出し */
.section-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--color-secondary);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ボタン */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 18px 50px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 75, 135, 0.2);
}
.btn-primary:hover {
  background-color: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 75, 135, 0.3);
}
.btn-sm {
  background-color: var(--color-secondary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
}
.btn-sm:hover { opacity: 0.9; }

/* =========================================================
   3. ヘッダー
========================================================= */
.global-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 1.5rem; font-weight: 900; color: var(--color-primary); }
.nav-list { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-list a { color: var(--color-text); font-weight: 700; }

/* =========================================================
   4. ヒーローセクション
========================================================= */
.hero {
  background-size: cover;
  background-position: center center;
  position: relative;
  min-height: 85vh;
  display: flex;
}
.hero-overlay {
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 100%);
  display: flex;
  align-items: center;
}
.hero-content { max-width: 700px; padding: 40px 0; }
.hero-title { font-size: 3.2rem; font-weight: 900; color: var(--color-primary); line-height: 1.3; margin-bottom: 25px; }
.sub-ttl { font-size: 1.5rem; font-weight: 700; color: var(--color-secondary); display: block; margin-bottom: 10px; }
.hero-description { font-size: 1.1rem; color: #444; margin-bottom: 40px; font-weight: 500; }

/* =========================================================
   5. About (当施設について)
========================================================= */
.about-flex { display: flex; gap: 60px; align-items: center; }
.about-image { flex: 1; }
.image-placeholder {
  background-color: #e0e0e0;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #888;
  border-radius: 8px;
  font-weight: bold;
}
.about-text { flex: 1; }
.about-text h3 { color: var(--color-primary); font-size: 1.4rem; margin-bottom: 15px; border-left: 4px solid var(--color-secondary); padding-left: 10px; }

/* =========================================================
   6. Services (事業内容)
========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.service-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s;
  border-top: 5px solid var(--color-primary);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.service-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--color-primary); }

/* =========================================================
   7. News (お知らせ)
========================================================= */
.news-list { max-width: 800px; margin: 0 auto; list-style: none; }
.news-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.news-meta { display: flex; gap: 15px; align-items: center; width: 200px; flex-shrink: 0; }
.news-date { color: var(--color-text-light); font-weight: bold; }
.news-category { background-color: var(--color-primary); color: #fff; padding: 4px 12px; font-size: 0.8rem; border-radius: 20px; font-weight: bold; }
.category-event { background-color: #e67e22; }
.news-title { font-weight: bold; color: var(--color-text); }
.news-title:hover { color: var(--color-secondary); }

/* =========================================================
   8. Contact (お問い合わせフォーム)
========================================================= */
.contact-container { max-width: 800px; }
.contact-form { background: #fff; padding: 50px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 10px; color: var(--color-primary); }
.required { background: #e74c3c; color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 3px; margin-left: 10px; vertical-align: middle; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fafafa;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-secondary); background-color: #fff; }

/* =========================================================
   9. Footer (フッター)
========================================================= */
.global-footer { background-color: #1a252f; color: #ecf0f1; padding: 60px 0 20px; }
.footer-container { display: flex; justify-content: space-between; margin-bottom: 40px; border-bottom: 1px solid #34495e; padding-bottom: 40px; }
.footer-info h2 { font-size: 1.8rem; margin-bottom: 15px; color: #fff; }
.footer-tel { font-size: 1.5rem; font-weight: bold; color: #3498db; margin: 15px 0; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #bdc3c7; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; color: #7f8c8d; font-size: 0.9rem; }

/* =========================================================
   10. レスポンシブ (スマホ対応)
========================================================= */
@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  
  /* ヘッダー */
  .header-container { flex-direction: column; gap: 15px; }
  .nav-list { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .nav-list a { font-size: 0.9rem; }
  
  /* ヒーロー */
  .hero { min-height: auto; padding: 60px 0; }
  .hero-overlay { background: rgba(255, 255, 255, 0.9); justify-content: center; }
  .hero-content { text-align: center; padding: 20px; }
  .hero-title { font-size: 2rem; }
  .sub-ttl { font-size: 1.2rem; }
  .hero-description { text-align: left; font-size: 1rem; }
  .hero-btn { width: 100%; display: block; }
  
  /* レイアウト変更 */
  .about-flex { flex-direction: column; gap: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .news-list li { flex-direction: column; align-items: flex-start; gap: 10px; }
  
  /* フォームとフッター */
  .contact-form { padding: 30px 20px; }
  .footer-container { flex-direction: column; gap: 30px; text-align: center; }
}