/* -------------------------------
   基本スタイル
-------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  background: linear-gradient(120deg, #f0f8ff, #e0f7fa);
  color: #333;
  line-height: 1.6;
}

main {
  padding: 80px 16px 40px;
  max-width: 960px;
  margin: auto;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------------
   セクションブロック
-------------------------------- */
.section {
  background: white;
  padding: 24px;
  margin-bottom: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* -------------------------------
   画像
-------------------------------- */
.image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
}

/* -------------------------------
   ボタン
-------------------------------- */
.button, button[type="submit"] {
  background: #007acc;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  margin-top: 1rem;
}

.button:hover, button[type="submit"]:hover {
  background: #005f99;
}

/* -------------------------------
   フォーム
-------------------------------- */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

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

.success-message {
  color: green;
  font-weight: bold;
}

/* -------------------------------
   ヘッダー（スマホ）
-------------------------------- */
.mobile-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007acc;
  text-decoration: none;
}

.menu-toggle {
  font-size: 1.8rem;
  cursor: pointer;
}

/* -------------------------------
   メニュー（レスポンシブ）
-------------------------------- */
nav#menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #eee;
}

nav#menu a {
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  color: #333;
}

nav#menu a.active {
  background: #f0f8ff;
  font-weight: bold;
}

nav#menu.open {
  display: flex;
}

/* -------------------------------
   フッター
-------------------------------- */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #555;
  background: #f5f5f5;
}

/* -------------------------------
   アニメーション
-------------------------------- */
.fade-in {
  animation: fadeIn 0.8s ease;
}

.slide-up {
  animation: slideUp 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------
   レスポンシブ（タブレット以上）
-------------------------------- */
@media (min-width: 768px) {
  nav#menu {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
  }

  nav#menu a {
    border: none;
    padding: 14px 20px;
  }

  .menu-toggle {
    display: none;
  }
}