@charset "UTF-8";

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

/* Cocoon標準フッターを非表示にする  */
#footer {
  display: none;
}
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* リンクのリセット */
a {
  color: inherit;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
a,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
}

/* まず main の共通背景を消す（Cocoon のデフォルト上書き） */
.main {
  background: transparent !important;
}
/* 投稿(single-post) のときだけ main を白背景にする */
.single-post #main {
  background: #ffffff !important;
}
/* ==================================
   ヘッダーナビ（デスクトップファースト）
================================== */

/* ▼ PCナビ本体 */
.if-desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  background: #fff;
  box-shadow: none;
}

/* ロゴ */
.if-desktop-nav > .if-logo img {
  height: 48px;
  width: auto;
}

/* 中央のリンク */
.if-desktop-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex: 1;
}
.if-nav-link {
  font-size: 16px;
  color: #000;
  cursor: pointer;
}
.if-nav-link:hover {
	color: #000;
}

/* 右側ボタン */
.if-desktop-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
}

.if-btn-download {
  background-color: #e78532;
  color: #fff;
  border-radius: 100px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.if-btn-download:hover {
	color: #fff;
}
.if-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #e78532;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 100px;
  border: 2px solid #e78532;
}
.if-btn-contact:hover {
	color:#e78532;
}

/* ▼ モバイル用（ハンバーガー＋メニュー） */

/* ハンバーガーボタン（PCでは非表示） */
.if-mobile-hamburger {
  position: fixed;
  right: 11px;
  top: 10px;
  z-index: 1100;  /* ★ ここを 1050 → 1100 に上げる */
  display: none; /* デスクトップでは非表示 */
}

.if-hamburger-button {
  width: 39px;
  height: 39px;
  background: #e78532;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s;
}

.if-hamburger-button i {
  color: #fff;
  font-size: 22px;
  transition: transform 0.3s ease;
}
/* オーバーレイ */
.if-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.if-mobile-overlay-open {
  opacity: 1;
  pointer-events: auto;
}

/* モバイルメニュー本体 */
.if-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 1050;  /* メニューはハンバーガーより低く */
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.if-mobile-menu-open {
  transform: translateX(0);
}

.if-mobile-menu-content {
  position: relative;
  height: 100%;
  background: rgba(231, 133, 50, 0.3);
  padding: 24px;
}

/* メニュー項目 */
.if-mobile-menu-item {
  font-weight: 500;
  font-size: 16px;
  color: #3b617d; /* var(--blue) 相当の色を直接指定 */
  text-align: center;
  margin-top: 25px;
  display: block;
}

.if-mobile-menu-item:first-child {
  margin-top: 160px;
}
.if-mobile-menu-item:hover {
	color: unset;
}

/* 下部ボタン */
.if-mobile-menu-buttons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
}

.if-mobile-btn-download,
.if-mobile-btn-contact {
  height: 57px;
  border-radius: 28.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
  padding: 10px 26px;
}

.if-mobile-btn-download {
  background-color: #e78532;
  color: #fff;
}
.if-mobile-btn-download:hover {
	color: #fff;
}
.if-mobile-btn-contact {
  background: #fff;
  color: #e78532;
  border: solid 1px #e78532;
}
/* ==================================
   フッター
================================== */

/* Cocoon標準フッターを非表示にする */
#footer {
  display: none;
}
/*自作フッター */
.if-footer {
  background-color: #404040;
  color: #fff;
  padding: 1rem 2rem;
  margin: 0;
  overflow: hidden;
  margin-top: auto;
}

.if-footer-inner {
  width: 80%;
  margin: auto;
  display: flex;
  align-items: flex-start;
  padding: 30px 0;
  justify-content: space-between;
}

.if-footer-left { margin-bottom: 0; }

.if-footer-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
}

.if-footer-left .if-footer-name {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 3rem;
}

.if-footer-add {
  font-size: 16px;
  margin-top: 0;
}

.if-footer-right { margin-top: 10px; }

.if-footer-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
  border-bottom: solid 1px #f3f3f3;
  padding-bottom: 10px;
}

.if-footer-sns-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.if-footer-sns-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.if-footer-sns-list li img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.if-footer-sns-list a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.if-footer-sns-list a:hover { opacity: 0.8; }

.if-footer-copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){

	/* ヘッダー */
  .if-desktop-nav {
    display: none;
  }
  .if-mobile-hamburger {
    display: block;
  }

	/* フッター */
 .if-footer-inner {
    width: 100%;
    margin: 0;
    display: block;
    padding: 20px 0;
  }

  .if-footer-left { margin-bottom: 24px; }

  .if-footer-left .if-footer-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
  }

  .if-footer-add { font-size: 10px; }

  .if-footer-title { font-size: 13px; }

  .if-footer-copyright {
    margin-top: 20px;
    font-size: 10px;
  }
}

/* ============================
   資料試し読みビューア（画像3枚切替版）
   クラス名プレフィックス：if-preview-
============================ */

/* セクション全体 */
.if-preview-section {
  margin: 40px 0;
}

.if-preview-text {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 16px;
  color: #404040;
	text-align:center;
}

/* ビューア枠 */
.if-preview-viewer {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px;
	background: #ffffff;
}

/* 上部ツールバー */
.if-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 13px;
}

/* ページ送り */
.if-preview-pager {
  display: flex;
  align-items: center;
  gap: 4px;
}

.if-preview-arrow {
  border: 1px solid #d0d7e2;
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 13px;
  cursor: pointer;
}

.if-preview-arrow:hover {
  background: #f5f7fb;
}

.if-preview-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.if-preview-page-now,
.if-preview-page-total {
  font-weight: 600;
}

.if-preview-page-separator {
  padding: 0 2px;
}

/* ズームボタン */
.if-preview-zoom {
  display: flex;
  align-items: center;
  gap: 4px;
}

.if-preview-zoom-in,
.if-preview-zoom-out {
  border: 1px solid #d0d7e2;
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 13px;
  cursor: pointer;
}

.if-preview-zoom-in:hover,
.if-preview-zoom-out:hover {
  background: #f5f7fb;
}

/* ページ表示エリア */
.if-preview-frame {
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  max-height: 600px; /* 必要に応じて調整 */
}

/* 画像（ページ） */
.if-preview-page {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* 表示中のページ */
.if-preview-page.is-active {
  display: block;
}

/* ズーム中 */
.if-preview-page.is-zoomed {
  transform: scale(1.2);
  transform-origin: center center;
}

/* 下部の注記 */
.if-preview-footer {
  margin-top: 8px;
  font-size: 12px;
  color: #666666;
  text-align: center;
  line-height: 1.6;
}

.if-preview-note {
  margin: 0;
}

/* （必要なら）試し読みからフォームへの誘導ボタン */
.if-preview-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: #e78532;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

/* ============================
   レスポンシブ調整
============================ */

@media (max-width: 767px) {
  .if-preview-viewer {
    padding: 10px;
  }

  .if-preview-toolbar {
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .if-preview-frame {
    max-height: 400px;
  }
}
/* ============================
   共通ページタイトルデザイン
============================ */

/* 固定ページのデフォルトタイトルを非表示にする */
.page .entry-title {
  display: none;
}

.if-page-title-band {
	margin: auto;
	background: #f3f5f7;
	padding: 60px 20px;
	text-align: center;
}
.if-page-title-band .if-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0;
	color: #324c6b;
}
/* PCで高さなど微調整したければ */
@media (min-width: 1024px) {
  .if-page-title-band {
    padding: 50px 20px 80px;
  }
  .if-page-title-band .if-title {
    font-size: 38px;
  }
}
