@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* ===============================
   ヘッダー：会社名＋ロゴ＋メニュー
================================= */
.menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 左会社名、右メニュー */
  padding: 10px 20px;
  background: #fff;
  position: relative;
  z-index: 1000;
}

/* 会社名＋ロゴ */
.site-title a {
  display: flex;
  align-items: center;
  gap: 10px; /* ロゴと会社名の間隔 */
  text-decoration: none;
  color: #007777;
  font-weight: 700;
  font-size: clamp(12px, 1.5vw, 20px);
}

.site-logo {
  height: 30px;
  width: auto;
}

/* メニュー（PC表示） */
.menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-left: auto; /* 右寄せ */
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
  transition: all 0.3s ease;
}

.menu a:hover {
  color: #007777;
  text-shadow: 0 2px 4px rgba(0, 119, 119, 0.5);
}


/* ===============================
   メインビジュアル
================================= */
.main-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.main-visual-img {
  width: 100%;
  height: auto;
  display: block;
}
.main-visual-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 80%;
  max-width: 1000px;
  min-width: 280px;
  padding: 3vw 5vw;
  border-radius: 10px;
  box-sizing: border-box;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.main-visual-text h2 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1em;
  white-space: normal;
  word-break: break-word;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}
.main-visual-text p {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.5;
  white-space: normal;
}
@media (max-width: 768px) {
  .main-visual-text h2 {
    font-size: 2.0rem; /* 固定 */
  }
  .main-visual-text p {
    font-size: 0.8rem;   /* 固定 */
  }
}

/* Heroセクション全体 */
.ccorp-hero {
  background: #f5f9ff;      /* 好きな背景色 */
  padding: 70px 20px;
  text-align: center;        /* これで中の h1, p が中央寄せ */
}

/* Heroのタイトル */
.ccorp-hero h1 {
  font-size: clamp(1rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1em;
  color: #2b2b2b;           /* お好みで */
}

/* Heroの説明文 */
.ccorp-hero p.ccorp-muted {
  font-size: clamp(1.0rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  color: #333;
  margin: 0;           /* 必要なら中央に収める */
  white-space: nowrap;
  display: inline-block; 
}
.ccorp-hero {
  text-align: center; /* 子の inline-block を中央に寄せる */
}
/* PCでは改行を非表示、一行にする */
.ccorp-title .mobile-br {
  display: none;
}

/* スマホのみ改行表示 & フォント調整 */
@media (max-width: 768px) {
  .ccorp-hero h1.ccorp-title {
    font-size: 1.2rem;   /* pより大きく */
    line-height: 1.4;
	text-align: left;
	white-space: normal;
  }

  .ccorp-hero p.ccorp-muted {
    font-size: 0.8rem;
	text-align: left;
    white-space: normal; /* 折り返しOK */
  }

  .ccorp-title .mobile-br {
    display: none;
  }
}

.ccorp-container {
  max-width: 1100px;      /* 最大幅を制限 */
  margin: 0 auto;          /* 中央寄せ */
  padding: 0 20px;         /* 左右余白 */
  box-sizing: border-box;
}
/* 各カード内のタイトル幅を制限 */
.ccorp-card h3 {
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  max-width: 220px;      /* 好きな幅に調整 */
  margin: 0 auto;        /* 中央寄せ */
  text-align: left;     /* 中央寄せ */
  white-space: nowrap;    /* 改行させない */
  max-width: none;
}
.ccorp-cols-3 {
  display: flex;              /* 横並びにする */
  justify-content: space-between; /* カードの間隔を均等に */
  gap: 15px;                  /* カード間の余白 */
  flex-wrap: wrap;            /* 画面幅が狭い場合は折返し */
}

/* 各カード */
.ccorp-card {
  flex: 1 1 30%;               /* 幅30%、余裕があれば拡大 */            
  padding: 20px;
  background: #fff;             /* 白背景 */
  border-radius: 12px;          /* 丸み */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 影 */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバー時のアニメ */
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .ccorp-card {
    flex: 1 1 60%;   /* ← ここでカードの幅を変更（45%など） */
    min-width: 210px; /* ← 最小幅も少し小さく */
	padding: 16px 12px; /* ← ここ！上下の余白を増やす */
  }
.ccorp-card h3 {
    font-size: 1rem;  /* ← 例：スマホ時に少し小さめ */
  }
  .ccorp-cols-3 {
    justify-content: center; /* 中央寄せにする場合 */
    gap: 12px;               /* カード間の間隔も狭める */
  }
}

/* ホバーで少し浮かせるアニメーション */
.ccorp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.ccorp-more {
  text-align: right;  /* 子要素を右端に寄せる */
  margin-top: 20px;   /* 上の余白は必要に応じて調整 */
}

.ccorp-more a {
  color: #007777;       /* 好きなリンク色 */
  text-decoration: none; /* 下線なし */
}

.ccorp-more a:hover {
  text-decoration: underline; /* ホバー時は下線表示 */
}
/* CTAカード全体 */
.ccorp-cta-section {
  padding: 40px 30px;
  display: flex;
  justify-content: center;   /* 中央寄せ */
}

.ccorp-cta {
  position: relative;
  max-width: 1000px;
  width: 100%;
  background: #fff8e7;           /* アイボリーカード */
  border-radius: 24px;           /* 角丸 */
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); /* 影 */
  padding: 30px 40px;
  box-sizing: border-box;
  text-align: left;              /* 左寄せ */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* タイトル */
.ccorp-cta h2 {
  max-width: 100%;              /* カード幅に合わせる */
  width: 100%;
  box-sizing: border-box;       /* padding込みで幅を制御 */
  font-size: 1.2em;
  font-weight: bold;
  color: #2b2b2b;
  margin: 0;
}

/* CTAリンクボタン */
.ccorp-cta .ccorp-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #cceeff;   /* 薄い水色 */
  color: #000;           /* 文字黒 */
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: flex-start; /* 左寄せ */
  font-weight: 700;        /* 文字を太字に */
}

.ccorp-cta .ccorp-btn:hover {
  background: #99ddff;   /* ホバー時は少し濃い水色 */
}

/* ホバーで少し浮かせる（オプション） */
.ccorp-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
/* ===========================
   ▼ スマホ用ヘッダー（中央表示）
=========================== */
@media (max-width: 768px) {

  /* ヘッダー全体 */
  .menu-wrapper {
    position: relative;
	display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
  }
/* スマホ表示（768px以下） */
@media (max-width: 768px) {
  .menu-wrapper .site-title a {
    font-size: 15px !important;  /* 必ず優先させる */
    line-height: 1.3;            /* ロゴとのバランス調整 */
  }
}

  /* ロゴ＋会社名 */
  .site-title {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .site-title img.site-logo {
    height: 40px;   /* 高さを少し大きめに */
    width: auto;    /* 横幅は自動 */
  }

  .site-title a {
    font-size: 15px !important;
	font-weight: 600;
    color: #333;
    text-decoration: none;
  }

  /* ハンバーガーボタン */
.menu-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* アクティブ時の × アニメーション */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

  /* メニュー初期は非表示、中央表示 */
.site-nav {
    display: none;
    position: fixed;      /* 画面全体 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    padding-top: 60px;    /* 上部余白 */
    text-align: center;
  }

  /* 展開時 */
  .site-nav.active {
    display: block;
  }

  /* メニュー項目縦並び */
  .site-nav ul.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
  }

  .site-nav ul.nav-menu li a {
    display: block;
    font-size: 18px;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
  }
}
/* --- PC用ナビゲーション（769px以上） --- */
@media (min-width: 769px) {
  /* site-nav 全体を横並びに */
  .site-nav {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row !important;
    background: none;
    border-top: none;
    width: auto;
  }

  /* メニューリストを横並び */
  .site-nav .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* 各リンクの見た目調整 */
  .site-nav .nav-menu li a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
  }

  .site-nav .nav-menu li a:hover {
    color: #007bff;
  }

  /* ハンバーガーボタンを非表示に */
  .menu-toggle {
    display: none !important;
  }
}

/* PCでは改行を非表示、一行にする */
.ccorp-title .mobile-br {
  display: none;
}
