/* ==========================================================================
   1. 変数定義 (CSS Custom Properties)
   ========================================================================== */
/* :rootセレクタで、ドキュメント全体で使える変数を定義します。
   色、フォント、間隔などを一元管理でき、変更が容易になります。 */

:root {
  /* --- 色 --- */
  --bg-color: #ffffff;
  /* 背景色 (白) */
  --text-color: #1a1a1a;
  /* メインのテキスト色 (ほぼ黒) */
  --link-color: #000000;
  /* リンク色 (黒) */

  /* --- フォント --- */
  --primary-font: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  /* 基本フォント */
  --serif-font: "Georgia", serif;
  /* セリフ体フォント */

  /* --- レイアウト・スペーシング --- */
  --spacing-unit: 8px;
  /* 基本となる間隔の単位 */
  --card-gap: 24px;
  /* カード間の隙間 */

  /* --- エフェクト --- */
  --vignette-color: rgba(0, 50, 255, .15);
  /* 画面の四隅を暗くするビネット効果の色 (青みがかった透明色) */
  --vignette-size: 100px;
  /* ビネット効果のサイズ */
}


/* ==========================================================================
   2. 基本スタイル & リセット
   ========================================================================== */
/* 全ての要素に適用される基本的なスタイルリセット */
* {
  box-sizing: border-box;
  /* paddingとborderをwidth/heightに含める */
  margin: 0;
  /* 全要素のデフォルトマージンをリセット */
  padding: 0;
  /* 全要素のデフォルトパディングをリセット */
}

/* body要素の基本スタイル */
body {
  font-family: var(--primary-font);
  /* 基本フォントを適用 */
  background-color: var(--bg-color);
  /* 背景色を適用 */
  color: var(--text-color);
  /* テキスト色を適用 */
  line-height: 1.6;
  /* 行の高さを設定し、読みやすくする */
  -webkit-font-smoothing: antialiased;
  /* フォントのアンチエイリアスを効かせ、滑らかに表示 */
  position: relative;
  /* 疑似要素配置の基準点にする */
  min-height: 100vh;
  /* 画面の高さ一杯に広がるようにする */
}

/* 画面全体にビネット効果（写真の周辺光量落ちのような効果）を追加 */
body:after {
  content: "";
  position: fixed;
  /* 画面に固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* この要素がクリックなどのマウスイベントを妨げないようにする */
  z-index: 100;
  box-shadow: inset 0 0 150px var(--vignette-color);
  /* 内側のシャドウで効果を作成 */
}

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

/* a要素にマウスが乗った時に下線を表示 */
/*
a:hover {
  text-decoration: underline;
}*/

/* ==========================================================================
   3. レイアウト
   ========================================================================== */
/* 中央寄せのメインコンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  /* 水平方向中央揃え */
  padding: 40px 20px;
}

/* Masonry（石積み）レイアウトのグリッドコンテナ */
.masonry-grid {
  column-count: 1;
  /* デフォルトは1カラム */
  column-gap: var(--card-gap);
  margin-bottom: 60px;
  /* セクション間の余白 */
}

/* --- レスポンシブ対応 --- */
/* 画面幅が640px以上の場合 */
@media (min-width: 640px) {
  .masonry-grid {
    column-count: 2;
    /* 2カラムにする */
  }
}

/* 画面幅が1024px以上の場合 */
@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
    /* 3カラムにする */
  }
}


/* ==========================================================================
   4. カードコンポーネント
   ========================================================================== */
/* グリッド内の各アイテム（カード） */
.grid-item {
  break-inside: avoid;
  /* カラムの途中でカードが分割されないようにする */
  margin-bottom: var(--card-gap);
  position: relative;
  background: #f9f9f9;
  border-radius: 4px;
  overflow: hidden;
  /* 角丸からはみ出した子要素を隠す */
  transition: transform .2s ease;
  /* ホバー時のアニメーション */
}

/* カードホバー時のエフェクト */
.grid-item:hover {
  transform: translateY(-2px);
  /* 少し上に浮き上がる */
}

/* カード内の画像 */
.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  /* 最初は画像を白黒にする */
  transition: filter .3s ease;
  /* フィルター効果のアニメーション */
}

/* カードホバー時の画像 */
.grid-item:hover img {
  filter: grayscale(0%);
  /* ホバー時にカラーに戻す */
}

/* カードのテキストコンテンツ部分 */
.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: #666;
}

/* --- カードのバリエーション --- */
.profile-card {
  border: 1px solid #eee;
  background: #fff;
}

.love-card {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: transparent;
  /* 背景を透明にする */
  text-align: center;
}

.love-symbol {
  font-size: 5rem;
  /* サイズを少し大きく */
  color: #ff3366;
  /* より鮮やかな赤 */
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.6));
  /* 外光効果 */
  animation: heartbeat 1.5s ease-in-out infinite;
  /* 鼓動アニメーション */
  cursor: default;
}

.love-text {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  /* 字間を広げて印象的に */
  margin-top: 10px;
  background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 鼓動（Heartbeat）アニメーションの定義 */
@keyframes heartbeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.6));
  }

  14% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.8));
  }

  28% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.6));
  }

  42% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.8));
  }

  70% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.6));
  }
}

/* ホバー時の変化 */
.love-card:hover .love-symbol {
  animation-duration: 0.6s;
  /* ホバーで鼓動が速くなる遊び心 */
  color: #ff0044;
}


/* ==========================================================================
   5. お問い合わせフォーム
   ========================================================================== */
.contact-section {
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
  /* 中央揃え */
}

.contact-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  /* bodyのフォントを継承 */
  font-size: 1rem;
}

.form-btn {
  width: 100%;
  padding: 14px;
  background-color: #000;
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity .2s;
}

.form-btn:hover {
  opacity: 0.8;
  /* ホバー時に少し透明にする */
}


/* ==========================================================================
   6. ユーティリティクラス
   ========================================================================== */
/* ちょっとした調整に使う汎用的なクラス */

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
  /* 1rem = 16px (デフォルト) */
}

/* ==========================================================================
   7. 追加スタイル (Video, Section Header)
   ========================================================================== */

/* 動画をレスポンシブに表示するためのスタイル */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* セクションの見出しカードスタイル */
.section-title-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0 20px;
  background: transparent;
  text-align: center;
  border: none;
  margin-top: 20px;
  width: 100%;
}

.section-title-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--primary-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
  /* 真っ黒ではなく濃いグレー */
  margin: 0;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
  /* 控えめな下線 */
  display: inline-block;
  /* 下線の幅をテキストに合わせる */
}

.section-title-card h2::after {
  content: none;
}