/* 全体設定 */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "ヒラギノ角ゴ Pro W3", sans-serif;
  color: #4a4238;
  background-color: #fcf9f2; /* あたたかみのあるオフホワイト */
  line-height: 1.6;
}

/* ヘッダー */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8c6d58;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #6b5b4f;
  transition: color 0.3s;
}

.nav a:hover {
  color: #c07a5f;
}

/* ヒーローエリア */
.hero {
  text-align: center;
  padding: 80px 20px;
  background-color: #f3ece0;
}

.hero h1 {
  font-size: 2rem;
  color: #5c4b3e;
  margin-bottom: 10px;
}

/* メインコンテンツ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section {
  margin-bottom: 60px;
}

.section h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #e0d5c1;
  padding-bottom: 10px;
  color: #7a5c43;
}

/* ギャラリーカード */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 常に2列固定 */
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #e8e3d9; /* 画像がない場合のプレースホルダー色 */
}

.card h3 {
  font-size: 1.2rem;
  margin: 15px 0 5px;
}

.card p {
  font-size: 0.9rem;
  color: #776e65;
}

/* いいねボタン */
.like-btn {
  background: #f8ede8;
  border: 1px solid #e5c4b5;
  border-radius: 20px;
  padding: 6px 15px;
  cursor: pointer;
  color: #b85b37;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: background 0.2s;
}

.like-btn:hover {
  background: #f2dbd1;
}

/* フッター */
footer {
  text-align: center;
  padding: 20px;
  background-color: #e8e0d5;
  font-size: 0.8rem;
  color: #6b5b4f;
}
/* ヘッダー全体 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky; /* スクロールしても上部に固定したい場合 */
  top: 0;
  z-index: 100;
}

/* ナビゲーションメニュー */
.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px; /* メニュー項目同士の間隔 */
}

.nav a {
  text-decoration: none;
  color: #6b5b4f;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 4px;
}

/* ホバー時の効果 */
.nav a:hover {
  color: #c07a5f;
  border-bottom: 2px solid #c07a5f; /* 下線が付くアニメーション */
}

/* スマホ表示対応（レスポンシブ） */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    padding: 15px 20px;
  }

  .nav ul {
    margin-top: 15px;
    gap: 15px;
  }
}

/* ヒーローエリア */
.hero {
  text-align: center;
  padding: 100px 20px;
  background-color: #f3ece0;
  
  /* レース画像を背景中央に配置し、背景色となじませる */
  background-image: url('../images/doiry2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 320px auto; /* 好みの大きさに調整 */
   position: relative;
} 

/* 文字をしっかり読ませるための調整 */
.hero h1, .hero p {
  position: relative;
  z-index: 1;
}
h2, :target{
  scroll-margin-top: 80px;
}

/* 全体枠組み */
.contact-container {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #4a403a; /* 優しいダークブラウン */
  line-height: 1.6;
}

.contact-container h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.lead-text {
  margin-bottom: 30px;
  font-size: 15px;
}

/* 注意書きボックス */
.notice-box {
  background-color: #fcf8f5; /* 淡いベージュ */
  border: 1px solid #e8ded8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 40px;
}

.notice-box h2 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #785a48;
}

.notice-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}

.notice-box li {
  margin-bottom: 6px;
}

/* フォームグループ */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 8px;
}

/* 必須・任意バッジ */
.badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: normal;
  vertical-align: middle;
}

.badge.required {
  background-color: #d97757; /* テラコッタ・オレンジ */
  color: #ffffff;
}

.badge.optional {
  background-color: #aa9c95;
  color: #ffffff;
}

/* 入力フィールド（text / email / textarea） */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc1b9;
  border-radius: 6px;
  box-sizing: border-box;
  background-color: #fafafa;
  transition: border-color 0.2s, background-color 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #785a48;
  background-color: #ffffff;
  outline: none;
}

/* ラジオボタンエリア */
.radio-group label {
  display: block;
  font-weight: normal;
  font-size: 14px;
  margin-bottom: 8px;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  margin-right: 6px;
}

/* 送信ボタン */
.submit-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
  padding: 14px 20px;
  background-color: #785a48; /* 温かみのあるブラウン */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
  background-color: #5c4334;
}

.submit-btn:active {
  transform: scale(0.99);
}
/* コンテナを画面全体に固定 */
#animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* 下の要素のクリックを邪魔しない */
  overflow: hidden;
  z-index: 9999;
}

/* 転がりながら消えるモチーフ画像 */
.rolling-item {
  position: absolute;
  width:180px; /* モチーフの初期サイズ */
  height: auto;
  user-select: none;
  /* アニメーションの適用: 3秒かけて実行 */
  animation: rollAndFade 3s ease-out forwards;
}

/* アニメーションのキーフレーム定義 */
@keyframes rollAndFade {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    /* 下に落ちながら（Y軸+100px）、横に転がり（X軸+50px）、720度回転して、サイズが0になる */
    transform: translate(50px, 100px) rotate(720deg) scale(0);
  }
}
