* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #f5f5f5;
  color: #222;
}

/* ==========================================
   ナビゲーション（ヘッダー上部）
   ========================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* 【修正】飛行機ロゴ全体のベース設定 */
nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Arial Black', Impact, sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
}

/* 【追加】飛行機アイコンの丸い背景とSVG画像 */
nav .logo-icon {
  width: 36px;
  height: 36px;
  background-color: #eef7fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a73e8'><path d='M21 16v-2l-8-5V3.5c0-.83-.67-1-1.5-1s-1.5.17-1.5 1V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/></svg>");
  background-size: 22px;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

/* ロゴにマウスを乗せた時に飛行機が少し動く演出 */
nav .logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

/* ロゴのテキストスタイル */
nav .logo-text {
  font-size: 22px;
  color: #333333;
  font-weight: 900;
}

/* GUIDEの文字だけ青色にするアクセント */
nav .logo-text .highlight {
  color: #4a9edf;
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  opacity: 0.6;
}

/* ==========================================
   ヘッダー（ヒーローエリア）
   ========================================== */
header {
  height: 100vh;
  background-image:
    linear-gradient(rgba(255,255,255,0.6),
    rgba(255,255,255,0.6)),
    url("images/hawaii.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 60px;
}

.hero {
  max-width: 800px;
  margin-top: 80px; /* ナビゲーションに被らないように少し隙間を追加 */
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #666;
}

.hero h1 {
  font-size: 72px;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero span {
  color: #4a9edf;
}

.hero-text {
  font-size: 18px;
  line-height: 1.9;
  max-width: 700px;
}

.button {
  display: inline-block;
  background: #4a9edf;
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 12px;
  transition: 0.3s;
}

.button:hover {
  opacity: 0.8;
}

/* ==========================================
   セクション＆カード（4列横並び）
   ========================================== */
section {
  padding: 100px 80px;
}

.section-title {
  font-size: 40px;
  margin-bottom: 50px;
}

/* 【修正】大画面の時はきっちり「横4列」に固定する設定 */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* 1枚目だけaタグで囲まれているため、aタグも引き伸ばす */
.cards > a {
  display: flex;
  text-decoration: none;
}

.card {
  width: 100%;
  background: white;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.card:hover, .cards > a:hover .card {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #4a9edf; /* タイトルを少し見やすく青に */
}

.card p {
  line-height: 1.8;
  color: #666;
}

/* ==========================================
   不安セクション（Q&A）
   ========================================== */
.tips {
  background: #111;
  color: white;
  border-radius: 32px;
  padding: 60px;
}

.tips h2 {
  font-size: 40px;
  margin-bottom: 40px;
}

.tip-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tip {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 20px;
  line-height: 1.8;
}

/* ==========================================
   レスポンシブ（スマホ対応）
   ========================================== */
@media(max-width: 768px){
  nav {
    padding: 15px 20px;
  }
  
  header {
    padding: 40px;
  }

  .hero h1 {
    font-size: 48px;
  }

  section {
    padding: 70px 40px;
  }

  /* スマホの時はカードを縦1列にする */
  .cards {
    grid-template-columns: 1fr;
  }

  .tip-boxes {
    grid-template-columns: 1fr;
  }
}
/* ==========================================
   Q&A セクションのスタイル
   ========================================== */
.qa-section {
    background-color: #f7faff; /* 他のページと統一感のある薄いブルー背景 */
    padding: 80px 20px;
}

.qa-container {
    max-width: 800px; /* 読みやすいように少し横幅をきゅっと狭める */
    margin: 0 auto;
}

.qa-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333333;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 質問箱同士のすき間 */
}

.qa-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef7fc;
    overflow: hidden;
}

/* 質問ボタン（クリックできるエリア） */
.qa-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 25px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: background-color 0.2s ease;
}

/* マウスを乗せたら少しだけ背景を明るく */
.qa-question:hover {
    background-color: #fcfdfe;
}

/* 右側の矢印アイコン */
.qa-question .arrow-icon {
    font-size: 14px;
    color: #1a73e8;
    transition: transform 0.3s ease; /* 滑らかに回転させる */
}

/* 回答エリア（初期状態は非表示） */
.qa-answer {
    max-height: 0; /* 高さをゼロにして隠す */
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease; /* なめらかに広がるアニメーション */
    background-color: #ffffff;
    padding: 0 25px; /* 上下のパディングは初期状態では0 */
}

.qa-answer p {
    margin: 0;
    padding-bottom: 22px; /* 開いたときに下側に余白を作る */
    font-size: 15px;
    color: #555555;
    line-height: 1.7;
}

/* ==========================================
   JavaScriptで「active」クラスがついた時の動き
   ========================================== */
/* アイテムが開いたとき、回答を表示する */
.qa-item.active .qa-answer {
    max-height: 300px; /* テキストが収まる十分な高さ（自動で滑らかに広がります） */
}

/* アイテムが開いたとき、矢印をクルッと180度回転させる */
.qa-item.active .arrow-icon {
    transform: rotate(-180deg);
}
/* ==========================================
   Q&A 「もっと見る」ボタンの追加スタイル
   ========================================== */

/* 最初は隠しておくためのクラス */
.qa-item.is-hidden {
    display: none;
}

/* ボタンの配置コンテナ */
.qa-more-btn-container {
    text-align: center;
    margin-top: 30px;
}

/* ボタン本体のデザイン */
.qa-more-btn {
    background-color: #ffffff;
    color: #1a73e8;
    border: 2px solid #1a73e8;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.1);
}

/* マウスホバー時のエフェクト（青背景に白文字に反転） */
.qa-more-btn:hover {
    background-color: #1a73e8;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(26, 115, 232, 0.2);
    transform: translateY(-2px);
}