
/* =========================
   General-H 共通デザインCSS
   Cocoon カスタムCSS用
========================= */

.gh-page,
.gh-main-home,
.gh-paper-page,
.gh-drone-page {
  --gh-blue: #155e75;
  --gh-blue-dark: #0f3446;
  --gh-green: #3f7d4a;
  --gh-text: #26323b;
  --gh-muted: #5d6973;
  --gh-bg: #f5f8f9;
  --gh-border: #dce6ea;
  color: var(--gh-text);
  line-height: 1.8;
}

.gh-page *,
.gh-main-home *,
.gh-paper-page *,
.gh-drone-page * {
  box-sizing: border-box;
}

.gh-page p:empty,
.gh-main-home p:empty,
.gh-paper-page p:empty,
.gh-drone-page p:empty {
  display: none;
}

.gh-page img,
.gh-main-home img,
.gh-paper-page img,
.gh-drone-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gh-page h2,
.gh-page h3,
.gh-main-home h2,
.gh-main-home h3,
.gh-paper-page h2,
.gh-paper-page h3,
.gh-drone-page h2,
.gh-drone-page h3 {
  clear: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--gh-blue-dark);
  letter-spacing: 0;
}

.gh-page h2::before,
.gh-page h2::after,
.gh-page h3::before,
.gh-page h3::after,
.gh-main-home h2::before,
.gh-main-home h2::after,
.gh-main-home h3::before,
.gh-main-home h3::after,
.gh-paper-page h2::before,
.gh-paper-page h2::after,
.gh-paper-page h3::before,
.gh-paper-page h3::after,
.gh-drone-page h2::before,
.gh-drone-page h2::after,
.gh-drone-page h3::before,
.gh-drone-page h3::after {
  display: none;
}

.gh-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.gh-section {
  padding: 58px 0;
  background: #ffffff;
}

.gh-section-bg {
  background: var(--gh-bg);
}

.gh-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.gh-heading h2,
.gh-about-text h2,
.gh-cta h2,
.gh-hero-text h2 {
  margin-bottom: 10px;
  font-size: 1.7rem;
  line-height: 1.45;
}

.gh-heading p,
.gh-about-text p,
.gh-cta p,
.gh-hero-text p {
  margin: 0 0 12px;
  color: var(--gh-muted);
}

.gh-hero {
  padding: 42px 0 54px;
  background: #ffffff;
}

.gh-hero-grid,
.gh-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.gh-hero-text h2 {
  font-size: 2rem;
}

.gh-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border: 1px solid #cfe4ea;
  border-radius: 999px;
  background: #eef8fb;
  color: var(--gh-blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.gh-hero-image img {
  height: 330px;
  border-radius: 8px;
  object-fit: cover;
}

.gh-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gh-service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 52, 70, 0.06);
}

.gh-service-card img {
  height: 260px;
  width: 100%;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

.gh-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.gh-card-body h3,
.gh-route-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--gh-blue-dark);
}

.gh-card-body p,
.gh-route-card p {
  margin: 0 0 12px;
  color: var(--gh-muted);
}

.gh-card-body ul {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.gh-card-body li {
  margin: 3px 0;
}

.gh-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.gh-buttons-center {
  justify-content: center;
}

.gh-btn,
.gh-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.gh-card-btn {
  margin-top: auto;
}

.gh-btn-blue {
  background: var(--gh-blue);
}

.gh-btn-green {
  background: var(--gh-green);
}

.gh-about-grid img {
  height: 260px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.gh-text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--gh-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gh-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gh-route-card {
  display: block;
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
}

.gh-faq {
  max-width: 860px;
}

.gh-faq details {
  margin-bottom: 10px;
  padding: 16px 18px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  background: #ffffff;
}

.gh-faq summary {
  cursor: pointer;
  color: var(--gh-blue-dark);
  font-weight: 700;
  line-height: 1.6;
}

.gh-faq p {
  margin: 10px 0 0;
  color: var(--gh-muted);
}

.gh-faq a {
  color: var(--gh-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gh-cta {
  padding: 52px 0;
  background: #eef8fb;
  text-align: center;
}

/* =========================
   Cocoon ヘッダー画像内テキスト装飾
========================= */

.header-container .site-name-text {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 8px;
  background: rgba(15, 52, 70, 0.62);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-container .site-name-text a {
  color: #ffffff;
  text-decoration: none;
}

.header-container .tagline {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f3446;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: none;
}

.header-container .header-in {
  text-align: center;
}

/* ヘッダー画像が明るい場合でも文字を読みやすくする */
.header-container {
  position: relative;
}

.header-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 52, 70, 0.08) 0%,
    rgba(15, 52, 70, 0.16) 100%
  );
  pointer-events: none;
}

.header-container .header-in {
  position: relative;
  z-index: 1;
}

/* =========================
   スマホ調整
========================= */

@media (max-width: 767px) {
  .gh-container {
    padding: 0 16px;
  }

  .gh-hero,
  .gh-section,
  .gh-cta {
    padding: 42px 0;
  }

  .gh-hero-grid,
  .gh-service-grid,
  .gh-about-grid,
  .gh-route-grid {
    grid-template-columns: 1fr;
  }

  .gh-hero-grid,
  .gh-about-grid {
    gap: 24px;
  }

  .gh-hero-text h2,
  .gh-heading h2,
  .gh-about-text h2,
  .gh-cta h2 {
    font-size: 1.45rem;
  }

  .gh-hero-image img {
    height: 230px;
  }

  .gh-service-card img,
  .gh-about-grid img {
    height: 210px;
  }

  .gh-card-body,
  .gh-route-card {
    padding: 18px;
  }

  .gh-route-card {
    min-height: auto;
  }

  .gh-btn,
  .gh-card-btn {
    width: 100%;
  }

  .header-container .site-name-text {
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .header-container .tagline {
    max-width: calc(100vw - 32px);
    font-size: 0.82rem;
  }
}

/* ヘッダー画像内の不要な白い横線を非表示 */
.header-container .tagline,
.header-container .site-description,
.header-container .site-description-text,
.header-container .catchphrase {
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 目的カード内にWordPressが挿入する空要素を非表示 */
.gh-route-grid > p,
.gh-route-grid > br,
.gh-service-grid > p,
.gh-service-grid > br {
  display: none;
}

/* 目的カードの直下要素をカードだけに限定して整列 */
.gh-route-grid {
  grid-auto-flow: row;
}

.gh-route-grid > .gh-route-card {
  display: block;
}

/* 念のため、空の段落が高さを持つ場合も潰す */
.gh-page p:empty,
.gh-main-home p:empty,
.gh-paper-page p:empty,
.gh-drone-page p:empty {
  display: none;
  margin: 0;
  padding: 0;
  height: 0;
}

/* 見出しに少しだけ色味を追加 */
.gh-main-home .gh-heading h2,
.gh-main-home .gh-about-text h2,
.gh-main-home .gh-cta h2,
.gh-main-home .gh-hero-text h2 {
  position: relative;
  padding-left: 16px;
  border-left: 5px solid #3f7d4a;
}

.gh-main-home .gh-heading h2::after,
.gh-main-home .gh-about-text h2::after,
.gh-main-home .gh-cta h2::after,
.gh-main-home .gh-hero-text h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: #155e75;
  border-radius: 999px;
}

/* フッターを薄い青グレーで控えめに調整 */
.footer,
.footer-widgets,
.footer-widgets-area,
.navi-footer,
.footer-bottom {
  background: #eef6fa !important;
  border-top: 1px solid #cfe3ec !important;
}

.footer,
.footer-widgets,
.footer-widgets-area {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

.footer a,
.footer-widgets a,
.navi-footer a {
  color: #0f3446 !important;
  font-size: 0.94rem !important;
  text-decoration: none !important;
}

.footer li,
.footer-widgets li,
.navi-footer li {
  margin-bottom: 7px !important;
}

