/* ===== 基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro', sans-serif;
  color: #333;
  background-color: #f0f7ff;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== ヘッダー ===== */
header {
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('header-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

header .site-name {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

header .tel {
  font-size: 1.1rem;
  font-weight: bold;
}

/* ===== ナビゲーション ===== */
nav {
  background-color: #1565c0;
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li a {
  display: block;
  padding: 12px 24px;
  color: white;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #0d47a1;
}

/* ===== メインコンテンツ ===== */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===== ヒーローセクション ===== */
.hero {
  background:
    url('hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hero h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 2;
}

/* ===== セクション共通 ===== */
section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-top: 5px solid #1e88e5;
}

section h2 {
  font-size: 1.4rem;
  color: #1e88e5;
  border-left: 5px solid #64b5f6;
  padding-left: 12px;
  margin-bottom: 20px;
}

section h3 {
  font-size: 1.1rem;
  color: #1565c0;
  margin: 20px 0 8px;
}

section p {
  margin-bottom: 12px;
}

/* ===== お知らせ一覧 ===== */
.news-list {
  list-style: none;
}

.news-list li {
  border-bottom: 1px solid #bbdefb;
  padding: 12px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.news-list li .date {
  color: #1e88e5;
  font-size: 0.9rem;
  font-weight: bold;
  min-width: 100px;
}

/* ===== サービスカード ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.service-card {
  background: linear-gradient(135deg, #e3f2fd, #e8f4f9);
  border-radius: 16px;
  padding: 24px;
  border-left: 5px solid #64b5f6;
  box-shadow: 0 2px 8px rgba(100,181,246,0.2);
}

.service-card h3 {
  color: #1e88e5;
  margin-top: 0;
  font-size: 1.05rem;
}

/* ===== 基本情報テーブル ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

table th,
table td {
  padding: 12px 16px;
  border: 1px solid #bbdefb;
  text-align: left;
}

table th {
  background-color: #e3f2fd;
  color: #1e88e5;
  width: 30%;
  font-weight: bold;
}

/* ===== 地図エリア ===== */
.map-placeholder {
  background: #e8f4f9;
  border: 2px dashed #64b5f6;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: #1565c0;
  margin-top: 20px;
  font-size: 0.95rem;
}

/* ===== お問い合わせフォーム ===== */
form label {
  display: block;
  margin: 16px 0 4px;
  font-weight: bold;
  color: #1e88e5;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #90caf9;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fbff;
}

form textarea {
  height: 140px;
  resize: vertical;
}

form button {
  margin-top: 24px;
  background: linear-gradient(135deg, #1e88e5, #64b5f6);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(30,136,229,0.3);
}

form button:hover {
  opacity: 0.85;
}

/* ===== フッター ===== */
footer {
  background: linear-gradient(135deg, #1565c0, #1e88e5);
  color: white;
  text-align: center;
  padding: 24px;
  margin-top: 60px;
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ===== スマホ対応 ===== */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    justify-content: center;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }
}
