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

body {
  font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro', sans-serif;
  color: #333;
  background-color: #fffde7;
  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-corp.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;
}

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

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: #e65100;
}

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

/* ===== ヒーローセクション ===== */
.hero {
  background: linear-gradient(135deg, #ffe082, #fff9c4);
  color: #5d4037;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(249,168,37,0.3);
}

.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 #f9a825;
}

section h2 {
  font-size: 1.4rem;
  color: #f57f17;
  border-left: 5px solid #ffe082;
  padding-left: 12px;
  margin-bottom: 20px;
}

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

section p {
  margin-bottom: 12px;
}

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

.service-card {
  background: linear-gradient(135deg, #fffde7, #fff9c4);
  border-radius: 16px;
  padding: 24px;
  border-left: 5px solid #f9a825;
  box-shadow: 0 2px 8px rgba(249,168,37,0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(249,168,37,0.3);
}

.service-card h3 {
  color: #f57f17;
  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 #ffe082;
  text-align: left;
}

table th {
  background-color: #fff9c4;
  color: #f57f17;
  width: 30%;
  font-weight: bold;
}

/* ===== フォーム ===== */
form label {
  display: block;
  margin: 16px 0 4px;
  font-weight: bold;
  color: #f57f17;
}

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

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

form button {
  margin-top: 24px;
  background: linear-gradient(135deg, #f9a825, #ffe082);
  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(249,168,37,0.4);
}

form button:hover {
  opacity: 0.85;
}

/* ===== フッター ===== */
footer {
  background: linear-gradient(135deg, #f9a825, #ffe082);
  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.2);
}

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

  nav ul {
    justify-content: center;
  }
}
