/* =========================
   リセット・共通
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN",
               "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
}

/* =========================
   ヒーロー
========================= */

.hero {
  background: url("images/hero.png") center center / cover no-repeat; /* 画像中央寄せ */
  min-height: 70vh;
}

.hero-overlay {
  background: rgba(0, 40, 80, 0.6);
  min-height: 70vh;
  padding: 80px 20px 160px; /* 下部余白を確保 */
  text-align: center;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 上寄せ */
}

.hero .catch {
  font-size: 1.4rem; /* 視認性UP */
  line-height: 1.6;  /* 行間を広く */
  letter-spacing: 0.12em;
  margin-top: auto;  /* 下部に押し出す */
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.3;
  margin: 10px 0;
}

.hero .sub {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

/* 下層ページ用 */
.hero.small {
  min-height: auto;
}

.hero.small .hero-overlay {
  min-height: auto;
  padding: 60px 20px 140px; /* 下部余白調整 */
}

/* =========================
   CTAボタン
========================= */

.cta {
  display: inline-block;
  background: #ff9900;
  color: #000;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

/* =========================
   ナビ
========================= */

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
}

nav li {
  width: 20%;
}

nav a {
  display: block;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: #333;
}

/* =========================
   メイン
========================= */

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 20px;
}

section {
  margin-bottom: 60px;
}

h2 {
  border-left: 6px solid #005bac;
  padding-left: 10px;
}

/* =========================
   写真＋文章
========================= */

.photo-text {
  display: flex;
  gap: 30px;
  align-items: center;
}

.photo-text img {
  width: 45%;
  border-radius: 10px;
}

.photo-text.reverse {
  flex-direction: row-reverse;
}

/* =========================
   強調ボックス
========================= */

.lead-box {
  background: #f9fbff;
  padding: 30px;
  border-radius: 10px;
}

/* =========================
   CTAエリア
========================= */

.cta-box {
  text-align: center;
  background: #005bac;
  color: #fff;
  padding: 50px 20px;
  border-radius: 10px;
}

/* =========================
   フォーム（contact専用）
========================= */

.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-section h2,
.form-section p {
  text-align: center;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit button {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
}

/* =========================
   フッター
========================= */

footer {
  background: #003366;
  color: #fff;
  padding: 20px;
  font-size: 0.9rem;
  text-align: center;
}

footer a {
  color: #fff;
}

/* =========================
   スマホ
========================= */

@media screen and (max-width: 768px) {

  nav li {
    width: 50%;
  }

  .hero {
    min-height: auto;
    background-position: center center; 
  }

  .hero-overlay {
    min-height: auto;
    padding: 0px 20px 180px; /* 下部余白を少し減らす */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上寄せ */
    align-items: center;
  }

  .hero .catch {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 20px; /* 上からの余白 */
    margin-bottom: 15px; /* ボタンとの間隔を確保 */
  }

  .hero .cta { 
    margin-top: 10px; /* キャッチコピーとボタンの間隔 */
    padding: 12px 28px;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .photo-text,
  .photo-text.reverse {
    flex-direction: column;
  }

  .photo-text img {
    width: 100%;
  }
}


/* ===== Mobile Fixed CTA ===== */
.mobile-fixed-cta {
  display: none;
}

@media screen and (max-width: 768px) {
  .mobile-fixed-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #0073cc;
    text-align: center;
  }

  .mobile-fixed-cta a {
    display: block;
    padding: 12px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
  }

  .mobile-fixed-cta a span {
    display: block;
    font-size: 12px;
    font-weight: normal;
    opacity: 0.9;
  }

  /* CTAに隠れないよう余白確保 */
  body {
    padding-bottom: 64px;
  }
}
