@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* アスタ公式サイト共通ヘッダー */
body {
  --astha-blue: #0071bc;
  --astha-orange: #f28a22;
  --astha-orange-deep: #d96e0c;
  --astha-navy: #00345f;
  --astha-ink: #0f1822;
  --astha-text: #2b3a4d;
}

/* Cocoon標準ヘッダーを非表示にする
.header-container,
.navi {
  display: none;
}
 */

.ac-site-shell *,
.ac-site-shell *::before,
.ac-site-shell *::after {
  box-sizing: border-box;
}

.ac-global-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(0, 52, 95, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 31, 58, 0.08);
}

body.admin-bar .ac-global-header {
  top: 32px;
}

.ac-header-main-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1240px;
  min-height: 90px;
  margin: 0 auto;
  padding: 0 24px;
}

.ac-header-logo {
  margin: 0;
  line-height: 0;
}

.ac-brand,
.ac-brand img {
  display: block;
}

.ac-brand img {
  width: auto;
  height: 46px;
}

.ac-global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 8px;
}

.ac-nav-item,
.ac-nav-has-submenu > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px;
  color: var(--astha-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
}

.ac-nav-item:hover,
.ac-nav-has-submenu:hover > a,
.ac-nav-has-submenu:focus-within > a {
  color: var(--astha-blue);
}

.ac-nav-has-submenu {
  position: relative;
  display: inline-flex;
}

.ac-nav-has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -12px;
  left: -12px;
  height: 18px;
}

.ac-nav-has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 4px;
  margin-left: 5px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.6;
}

.ac-nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 280px;
  padding: 12px;
  border: 1px solid rgba(0, 52, 95, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 56px rgba(0, 31, 58, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-nav-has-submenu:hover .ac-nav-submenu,
.ac-nav-has-submenu:focus-within .ac-nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ac-nav-submenu a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--astha-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ac-nav-submenu a:hover {
  color: var(--astha-blue);
  background: #f3f8fd;
}

.ac-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ac-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1.5px solid var(--astha-orange);
  border-radius: 6px;
  color: #fff !important;
  background: var(--astha-orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.ac-header-cta:hover {
  color: var(--astha-orange) !important;
  background: #fff;
}

.ac-mobile-nav {
  display: none;
  margin-left: auto;
}

.ac-mobile-nav summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(0, 52, 95, 0.16);
  border-radius: 8px;
  color: var(--astha-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.ac-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.ac-mobile-nav-icon,
.ac-mobile-nav-icon::before,
.ac-mobile-nav-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--astha-navy);
}

.ac-mobile-nav-icon {
  position: relative;
}

.ac-mobile-nav-icon::before,
.ac-mobile-nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.ac-mobile-nav-icon::before {
  top: -6px;
}

.ac-mobile-nav-icon::after {
  top: 6px;
}

.ac-mobile-nav-panel {
  position: absolute;
  right: 24px;
  left: 24px;
  display: grid;
  gap: 2px;
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 52, 95, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 26px 50px rgba(0, 31, 58, 0.14);
}

.ac-mobile-nav-panel a {
  padding: 8px 0;
  color: var(--astha-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.ac-mobile-nav-group {
  margin-top: 10px;
  padding: 6px 0 4px;
  color: var(--astha-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(0, 52, 95, 0.12);
}

.ac-mobile-nav-group:first-child {
  margin-top: 0;
}

.ac-mobile-nav-child {
  padding-left: 14px !important;
  color: rgba(11, 28, 48, 0.72) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.ac-mobile-nav-cta {
  margin-top: 6px;
  padding: 14px 16px !important;
  border-radius: 8px;
  color: #fff !important;
  text-align: center;
  background: linear-gradient(135deg, var(--astha-orange), var(--astha-orange-deep));
}

/* アスタ共通ヘッダー：「相談する」ボタン */
.ac-header-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 120px;
  padding: 12px 20px;
  border: 1.5px solid var(--astha-blue);
  border-radius: 6px;
  color: var(--astha-blue) !important;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
}

.ac-header-contact::after {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-left: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.ac-header-contact:hover {
  color: #fff !important;
  background: var(--astha-blue);
  border-color: var(--astha-blue);
  transform: translateY(-1px);
}

.ac-header-contact:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

@media (max-width: 1200px) {
  .ac-global-nav,
  .ac-header-actions {
    display: none;
  }

  .ac-mobile-nav {
    display: block;
  }
}

@media (max-width: 760px) {
  body.admin-bar .ac-global-header {
    top: 46px;
  }

  .ac-header-main-inner {
    min-height: 76px;
    gap: 14px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .ac-brand img {
    height: 34px;
  }

  .ac-mobile-nav-panel {
    right: 18px;
    left: 18px;
  }
}


/*ショート動画を縦型に*/
.youtube iframe {
  position: relative;
  aspect-ratio: 9 /16;
  max-width: 400px;
}

.banner-container img {
  border: 8px solid #E93433;
}

/*バナーにアニメ*/
.banner-container {
  opacity: 0;
  transform: translateY(20px); /* 下からスライド */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示アニメーション */
.banner-container.animate {
  opacity: 1;
  transform: translateY(0); /* 元の位置 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* シャドウを加える */
}

/* ポップアップ効果 */
.banner-container.animate:hover {
  transform: scale(1.05); /* ホバー時に少し大きく */
  transition: transform 0.3s ease;
}

/* ふわふわ効果 */
.animate {
  animation: animate 3s ease-in-out infinite alternate;
  display: inline-block;
  transition: 1.5s ease-in-out;
}
 
@keyframes animate {
  0% {
    transform:translate(0, 0) ;
  }
  50% {
    transform:translate(0, 8px);
  }
  100% {
    transform:translate(0, 0);
  }
}
 


/*コメントフォーム*/
#comments textarea{
  height: 100px !important;
}
#commentform{
  flex-direction: column;
}
#commentform .form-submit{
  margin-bottom: 20px;
}
#comments [type=submit]{
  background: #dc143c;
  transition: opacity .3s;
}
#comments [type=submit]:hover{
  opacity: 0.6;
}
#commentform-author {
	flex-direction: column;
	flex-wrap: nowrap;
}
#commentform-author img {
	max-width: 80px;
}

/* 画像に影 */
.image-shadow {
	box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
}

/* コードブロック全体 */
pre.wp-block-code {
  background: #1e1f24;           /* 濃い背景でコード感を出す */
  border-left: 4px solid #4f8cff; /* 左側にアクセント */
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;              /* 横に長いコードでも崩れない */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* preの中のcode */
pre.wp-block-code code {
  display: block;
  background: transparent;
  color: #f3f4f6;
  font-family:
    "SFMono-Regular",
    "Consolas",
    "Menlo",
    "Monaco",
    "Courier New",
    monospace;
  font-size: 15px;
  line-height: 1.9;
  white-space: pre;              /* 改行・スペースをそのまま表示 */
  word-break: normal;
}

/* pタグの中のcode */
p code {
  border-radius: 10px;
  background: #e8e8e8;
  padding: 8px 12px;
}

/* スマホ時は少しだけ詰める */
@media (max-width: 767px) {
  pre.wp-block-code {
    padding: 16px 18px;
    border-radius: 8px;
  }

  pre.wp-block-code code {
    font-size: 14px;
    line-height: 1.8;
  }
}

/* AI活用チェックリスト */
.astha-ai-cta {
  max-width: 720px;
  margin: 48px auto;
  padding: 28px 30px;
  border: 1px solid rgba(18, 40, 61, 0.14);
  border-radius: 10px;
  background: #f7f9f4;
  box-shadow: 0 14px 34px rgba(18, 40, 61, 0.08);
  color: #243142;
}

.astha-ai-cta__label {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: #14517d;
  font-size: 13px;
  font-weight: 700;
}

.astha-ai-cta__title {
  margin: 0 0 12px;
  color: #12283d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
}

.astha-ai-cta__text {
  margin: 0 0 14px;
  color: #405062;
  font-size: 16px;
  line-height: 1.9;
}

.astha-ai-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 6px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2278b8 0%, #14517d 100%);
  color: #fff !important;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  box-shadow: 0 12px 26px rgba(34, 120, 184, 0.24);
}

@media (max-width: 680px) {
  .astha-ai-cta {
    margin: 36px auto;
    padding: 24px 20px;
  }

  .astha-ai-cta__title {
    font-size: 20px;
  }

  .astha-ai-cta__button {
    width: 100%;
  }
}

/* サイドバー用CSS */
.astha-ai-sidebar-cta {
  margin: 0 0 28px;
  color: #243142;
}

.astha-ai-sidebar-cta__inner {
  padding: 22px 18px 20px;
  border: 1px solid rgba(18, 40, 61, 0.14);
  border-radius: 10px;
  background: #f7f9f4;
  box-shadow: 0 12px 28px rgba(18, 40, 61, 0.08);
}

.astha-ai-sidebar-cta__label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #14517d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.astha-ai-sidebar-cta__title {
  margin: 0 0 12px;
  color: #12283d;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
}

.astha-ai-sidebar-cta__text {
  margin: 0 0 14px;
  color: #405062;
  font-size: 14px;
  line-height: 1.8;
}

.astha-ai-sidebar-cta__list {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.astha-ai-sidebar-cta__list li {
  position: relative;
  padding-left: 20px;
  color: #405062;
  font-size: 13px;
  line-height: 1.6;
}

.astha-ai-sidebar-cta__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 1px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid #168b87;
  border-left: 2px solid #168b87;
  transform: rotate(-45deg);
}

.astha-ai-sidebar-cta__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2278b8 0%, #14517d 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(34, 120, 184, 0.24);
}

.astha-ai-sidebar-cta__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(34, 120, 184, 0.3);
}