/* リセットと基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: sans-serif;
}

/* ナビゲーションバー */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
  height: 80px;
  /* PC: ナビバー高さ */
}

.logo img {
  height: 80px;
  /* PC: ロゴ高さ */
  width: auto;
  /* アスペクト比を維持 */
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0077cc;
}

/* ハンバーガー */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: black;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .logo img {
    height: 50px;
    /* モバイル時は少し小さく */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 60px;
    /* ナビバー高さに合わせて調整 */
    left: 0;
    border-top: 1px solid #ddd;
  }

  .nav-links li {
    margin: 0;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .slide.soccer {
    object-fit: cover;
    /* 縦横比維持して画面いっぱい */
    object-position: center 100px;
    /* 上から100pxを基準に表示 */
  }
}

/* ヒーロービジュアル（背景画像） */
/* セクション全体のスタイル */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面全体を使う場合 */
  background: url('TONSHA.jpg') no-repeat center center / cover;
  overflow: hidden;
}

/* テロップ1：画像内の右下に配置 */
.hero-caption {
  position: absolute;
  bottom: 0px;
  right: 30px;
  font-weight: 800;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  font-size: clamp(2rem, 5vw, 4rem); /* レスポンシブ対応 */
}

/* テロップ2：画像の外、すぐ右下に配置 */
.hero-caption-2 {
  margin-top: -20px;
  margin-right: 30px;
  text-align: right;
  font-weight: 800;
  color: #111;
  font-size: clamp(2rem, 5vw, 4rem); /* テロップ1と同じサイズ感 */
}


/* テロップ3：画像の下、左端から10px */
.hero-caption-3 {
  margin-top: -80px;
  margin-left: 30px;
  font-size: 1.6rem;
  line-height: 1.8;
  color: #333;
}
@media screen and (max-width: 768px) {
  /* テロップ1：画像内右下 */
  .hero-caption {
    bottom: 20px;
    right: 20px;
    font-size: clamp(1.8rem, 6vw, 3rem);
    text-align: right;
  }

  /* テロップ2：画像の外、すぐ右下 */
  .hero-caption-2 {
    margin-top: -10px;
    margin-right: 20px;
    margin-bottom: 55px; /* ← 追加：テロップ3との重なり防止 */
    font-size: clamp(1.8rem, 6vw, 3rem);
    text-align: right;
    word-break: break-word; /* 改行が多少不自然でもOKにする */
  }

  /* テロップ3：画像の下、左端から10px */
  .hero-caption-3 {
    margin-top: -60px;
    margin-left: 20px;
    font-size: 1.2rem;
    line-height: 1.2;
    word-break: break-word;
    justify-content: center;
    align-items: center;
  }
}
/* セクション全体 */
.content-section {
  padding: 40px 0 10px;
}

/* 内側ラッパー：左端を基準に揃える */
.content-wrapper {
  margin-left: 30px;
  margin-right: auto;
  max-width: 1000px;
}

/* タイトル */
.section-heading {
  font-size: 1.6rem;
  line-height: 1.0;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
}

/* 本文 */
.section-paragraph {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  text-align: left;
  word-break: break-word;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .content-wrapper {
    margin-left: 20px;
    margin-right: 20px;
  }

  .section-heading {
    font-size: 1.4rem;
    line-height: 1.0;
  }

  .section-paragraph {
    font-size: 0.7rem;
    line-height: 1.6;
  }
}
/* どこにでも置ける問い合わせボタン用 */
/* ラッパー：中央配置を制御 */
.inquiry-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

/* ボタン本体 */
.btn-inquiry {
  display: inline-block;
  padding: 0.75em 2em;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0078D4, #00B4FF);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー・フォーカス時の演出 */
.btn-inquiry:hover,
.btn-inquiry:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  outline: none;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .btn-inquiry {
    width: 50%;
    text-align: center;
  }
}
/* どこにでも置ける問い合わせボタン用（終わり） */

.works {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

/* セクションタイトル */
.works-heading-wrapper {
  text-align: left;
  margin-bottom: 20px;
}

.works-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #333;
  line-height: 1.2;
  padding-left: 20px;
}

/* グリッド：PCは3列、スマホは1列 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* パネル全体：高さ固定で均一 */
.work-panel {
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 420px;
  padding: 20px;
  box-sizing: border-box;
}
/* スマホでは一部だけ表示 */
@media (max-width: 768px) {
  .work-panel {
    height: 320px;
    display: none; /* いったん全部非表示に */
  }
  #show-on-mobile-1,
  #show-on-mobile-2,
  #show-on-mobile-3,
  #show-on-mobile-4 {
    display: flex; /* 表示したいパネルだけ再表示 */
  }
}

/* タイトル：上部中央揃え */
.work-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
  color: #222;
}

/* 本文と画像の横並び */
.work-body {
  display: flex;
  flex: 1;
  gap: 20px;
  align-items: center;
}

/* 左側：画像（縦長トリミング） */
.work-image {
  width: 40%;
  aspect-ratio: 2 / 3; /* ← 縦長比率で統一 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  flex-shrink: 0;
}

/* 画像指定例 */
.image-1 {
  background-image: url('iharamurata.jpg');
}
.image-2 {
  background-image: url('dronenariaiji.jpg');
}
.image-3 {
  background-image: url('DAIEI.jpg');
}
.image-4 {
  background-image: url('STAR.jpg');
}
.image-5 {
  background-image: url('KASUGA.jpg');
}
.image-6 {
  background-image: url('Faith.jpg');
}
.image-7 {
  background-image: url('arrangement.jpg');
}
.image-8 {
  background-image: url('DJI_0890.jpg');
}
.image-9 {
  background-image: url('yuragawa.png');
}
/* 右側：本文＋ボタン */
.work-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* 説明文 */
.work-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .work-description {
    font-size: 0.7rem; /* ← スマホ表示時に文字サイズを縮小 */
  }
}
/* Instagramボタン */
.work-button {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 0.9rem;
  background-color: #e1306c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.work-button:hover {
  background-color: #c1275b;
}
/* タイトル長すぎたのでここで調整 */
#work-title1{
  font-size: 1.3rem;
}
@media (max-width: 768px){
  #work-title1 {
  font-size: 1.1rem;
  }
}
.slide-block {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 画像ごとに背景指定 */
.slide-1 {
  background-image: url('plan.jpg');
}

.slide-2 {
  background-image: url('introduction.jpg');
}
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Segoe UI", sans-serif;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

.accordion-item {
  margin-bottom: 24px; /* ← Q同士の余白 */
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px; /* ← Aの展開スペースを確保 */
}

.accordion-question {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  font-size: 1.1rem;
  background-color: #f2f2f2; /* Aが閉じているQ：明るいグレー */
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.accordion-question:hover {
  background-color: #e0e0e0;
}

.accordion-question.active {
  background-color: #d0d0d0; /* Aが開いているQ：やや濃いグレー */
  font-weight: bold;
}

.accordion-answer {
  padding: 15px 20px;
  display: none;
  background-color: #eef4f8; /* 開いたA：淡いブルーグレー */
  color: #444;
  animation: fadeIn 0.3s ease;
  border-left: 4px solid #aacbe2;
  border-radius: 4px;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.site-footer {
  background-color: #f8f8f8;
  padding: 40px 20px;
  text-align: center;
}

.footer-logo {
  width: 240px;
  height: 120px;
  margin: 0 auto 16px;
  background-image: url('Skyinnovationlogo.png'); /* ← ロゴ画像を指定 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.footer-message {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}
@media (max-width: 768px) {
  .footer-logo {
    width: 240px;
    height: 120px;
  }

  .footer-message {
    font-size: 1rem;
  }
}
