/* リセットと基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  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;
  }
}

/* ヒーロービジュアル（背景画像） */
/* セクション全体のスタイル */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* PCでは全画面表示 */
  background: url('flower.jpg') no-repeat center center;
  background-size: cover; /* ← 横幅を画面いっぱいに広げる！ */
  background-attachment: scroll;
  overflow: hidden;
}
/* スマホ対応 */
@media (max-width: 768px) {
  .hero {
    height: 25vh; /* スマホで縦長すぎるのを防ぐ */
    background-position: center top; /* 上寄せで自然に */
    background-size: contain; /* 全体を表示 */
  }
}


/* テロップ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: -40px;
  margin-left: 30px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
}
@media screen and (max-width: 768px) {
  /* テロップ1：画像内右下 */
  .hero-caption {
    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: -40px;
    margin-left: 20px;
    font-size: 1.2rem;
    line-height: 1.2;
    word-break: break-word;
    justify-content: center;
    align-items: center;
  }
}
.cource{
    padding-top: 30px;
    margin-left: 20px;
}
.cource p{
    font-size: 1.2rem;
}
/* Works セクション */
.works,
.introduction {
width: 100%;
margin: 24px 0;
padding: 0;
}

/* 2列×2行のグリッド */
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px; /* 各画像の間に余白 */
padding: 0 8px; /* 画面端との間にも余白 */
box-sizing: border-box;
}


/* 各フレーム */
.frame {
width: 100%;
overflow: hidden;
background: white;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
}


/* 画像は枠に収めつつアスペクト比を維持 */
.frame img {
width: 100%;
height: auto;
object-fit: contain;
display: block;
}


/* 小さい画面でも2列を維持 */
@media (max-width: 420px) {
.grid {
gap: 6px;
padding: 0 6px;
}
}
.figure{
    align-items: flex-start;
    background-color: white;
}
.introduction p, a{
    margin-left: 20px;
}
/* どこにでも置ける問い合わせボタン用 */
/* ラッパー：中央配置を制御 */
.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;
  }
}
/* どこにでも置ける問い合わせボタン用（終わり） */