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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* AI-TERRACEページではCocoon標準サイドバーを使わない */
body.no-sidebar.full-width #sidebar,
body.no-sidebar.full-width .sidebar,
body.no-sidebar.full-width #sidebar-container,
body.no-sidebar.full-width .sidebar-container,
body.no-sidebar.full-width .widget-area {
  display: none !important;
}

body.no-sidebar.full-width #content,
body.no-sidebar.full-width #content-in,
body.no-sidebar.full-width #main,
body.no-sidebar.full-width .main {
  width: 100% !important;
  max-width: none !important;
}

body.no-sidebar.full-width #content-in {
  display: block !important;
}

/* AI-TERRACEページのスマホ横スクロール対策 */
body.no-sidebar.full-width {
  overflow-x: hidden;
}

body.no-sidebar.full-width *,
body.no-sidebar.full-width *::before,
body.no-sidebar.full-width *::after {
  box-sizing: border-box;
}

body.no-sidebar.full-width img,
body.no-sidebar.full-width video,
body.no-sidebar.full-width iframe {
  max-width: 100%;
}

/* AI-TERRACEページの共通ヘッダー */
body.no-sidebar.full-width .ai-terrace-shared-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #ffffff;
  border-bottom: 1px solid #e8edf5;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__inner {
  max-width: 1120px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__logo a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__logo-img {
  width: auto;
  height: 40px;
  display: block;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__nav-list li {
  margin: 0;
  padding: 0;
  border: 0;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  color: #07142f;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__nav-list a:hover {
  color: #0b4fe8;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__nav-list a[aria-current="page"] {
  color: #0b4fe8;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: #0b4fe8;
  transform: translateX(-50%);
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #2563eb;
  border: 2px solid #2563eb;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__cta:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* AI-TERRACEページ共通：右下のページ上部へ戻るボタン */
body.no-sidebar.full-width .ai-terrace-page-top {
  display: none !important;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #dce7f7;
  color: #07142f !important;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 20, 47, 0.12);
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

body.no-sidebar.full-width .ai-terrace-page-top span {
  width: 11px;
  height: 11px;
  display: block;
  border-top: 2px solid #07142f;
  border-left: 2px solid #07142f;
  transform: translateY(3px) rotate(45deg);
}

body.no-sidebar.full-width .ai-terrace-page-top:hover {
  opacity: 1;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(7, 20, 47, 0.18);
}

/* AI-TERRACEページのフッターを共通化：中央コピーライトのみ表示 */
body.no-sidebar.full-width #footer {
  margin-top: 0 !important;
  padding: 0 !important;
}

body.no-sidebar.full-width #footer-widget-area,
body.no-sidebar.full-width .footer-bottom-left,
body.no-sidebar.full-width .site-name-text,
body.no-sidebar.full-width #footer .logo {
  display: none !important;
}

body.no-sidebar.full-width #footer-bottom,
body.no-sidebar.full-width .footer-bottom {
  width: 100% !important;
  margin-top: 0 !important;
  padding: 10px 0 !important;
  text-align: center !important;
}

body.no-sidebar.full-width .footer-bottom-content,
body.no-sidebar.full-width .footer-bottom-right {
  float: none !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

body.no-sidebar.full-width .copyright {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  color: #333333 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

@media screen and (max-width: 768px) {
  body.no-sidebar.full-width #container,
  body.no-sidebar.full-width #content,
  body.no-sidebar.full-width #content-in,
  body.no-sidebar.full-width #main,
  body.no-sidebar.full-width .main {
    min-width: 0 !important;
    overflow-x: hidden;
  }

  body.no-sidebar.full-width .atp-site-header__inner {
    width: 100%;
    min-width: 0;
  }

  body.no-sidebar.full-width .atp-site-header__nav {
    min-width: 0;
  }

  body.no-sidebar.full-width .atp-site-header__nav-list {
    min-width: 0;
  }

  body.no-sidebar.full-width .ai-terrace-shared-header .atp-site-header__nav-list {
    display: none;
  }

  body.no-sidebar.full-width .ai-terrace-page-top {
    right: 14px;
    bottom: 14px;
    width: 32px;
    height: 32px;
  }
}

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

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

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