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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
:root {
    --i_main_color: #f64d7c;
    --i_sub_color: #07bcd8;
    --i_btn_color: #ffa824;
    --i_lightgray_color: #f0f0f0;
}

a {
    transition: .3s ease-in-out;
}

.home main.main {
    padding: 0 29px 36px 29px;
}


.related-entry-card-title,
.entry-card-title {
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-entry-card-snippet,
.entry-card-snippet {
    font-size: .9em;
	line-height: 1.6;
}

.entry-card-thumb,
.author-thumb,
.blogcard-thumbnail,
.related-entry-card-thumb,
.popular-entry-card-thumb,
.new-entry-card-thumb {
    margin-right: 4%;
}

/* 幅いっぱいのグレーの背景 */
body {
    overflow-x: hidden;
}

.full-bg {
    position: relative;
    padding: 5vw 0;
}

.full-bg::after {
    content: "";
    background: var(--i_lightgray_color);
    width: 100vw;
    height: 100%;
    display: block;
    position: absolute;
    left: calc(-50vw + 50%);
    top: 0;
    z-index: -1;
}

/* デスクトップ時に幅を80%に、中央寄せ */
.wide-pc {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 767px) {
    .home main.main {
        padding: 0 25px 25px 25px;
    }

    .full-bg {
        position: relative;
        padding: 8vw 0;
    }

    .wide-pc {
        width: 100% !important;
    }
}

/* btn */
.wp-block-button__link {
    background-color: var(--i_btn_color);
    color: #fff;
    border-radius: 10px;
    padding: 0.75em 1.5em;
    text-decoration: none;
    box-shadow: none;
    border-bottom: 2px solid;
    font-weight: bold;
}

.wp-block-button__link:hover {
    background-color: color-mix(in srgb, var(--i_btn_color) 90%, black 10%);
    color: #fff;
}

/* フロントページの時だけページタイトル非表示 */
.home .entry-title {
    display: none;
}


/*----------------コンタクトフォーム--------------------------*/
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
background-color: var(--cocoon-text-color);
    color: #fff;
    border-radius: 10px;
    padding: 0.75em 1.5em;
    text-decoration: none;
    box-shadow: none;
    border:none;
  transition: 0.3s ease;
	font-size:16px;
	max-width:80%;
	width:300px;
	display: inline-block; /* 中央寄せが効くように */
  margin: 0 auto;         /* 念のため左右マージンも指定 */
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
 background-color: color-mix(in srgb, var(--cocoon-text-color) 90%, white 10%);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  border: 1px solid #ccc; 
  background-color: #f9f9f9;
  color: #333;
}
.formheading >p{
	margin-bottom:.5em!important;
	 border-bottom: 1px solid #ddd;
	padding:5px 15px;
	position: relative;
	font-weight:500;
}
.formheading >p::before {
display: block;
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--i_main_color);
  border-right: 1px solid var(--i_main_color);
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  left: 0px;
  z-index: 0;
}
/*----------------header--------------------------*/
.header-container-in.hlt-top-menu .logo-header img {
    max-height: 40px;
}

.fixed-header .site-logo-image {
    max-width: 200px;
}

#header-container-in.wrap {
    width: 100%;
}

#header-container .navi {
    padding-right: 40px;
}

.header-container-in.hlt-top-menu .wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#header-container .search-box {
    margin: 0;
    width: 250px;
}

#header-container .search-edit {
    padding: 5px 10px;
}


@media screen and (max-width: 1023px) {
    #header-container {
        display: none;
    }

    .mobile-header-menu-buttons .logo-menu-button img.site-logo-image {
        max-width: 280px;
        width: calc(100% - 40px);
        padding: 5px;
    }
}

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

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

/*---------------sidebar---------------------------*/
#sidebar {
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: none;
}

#sidebar h3.widget-sidebar-title,
#sidebar-scroll h2.wp-block-heading,
#sidebar-scroll h3.widget-sidebar-scroll-title {
    background: #fff1fa;
    color: var(--cocoon-text-color);
    padding: 5px 5px 5px 10px;
    border-radius: 8px;

}

#sidebar .widget-entry-card,
#sidebar .card-title-bold .card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

#sidebar .wp-block-latest-posts__post-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


#sidebar .wp-block-categories-list a {
    text-decoration: none;
    display: block;
    padding: 5px 10px 5px 20px;
    position: relative;
}

#sidebar .wp-block-categories-list a::before {
    display: block;
    content: "";
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--i_main_color);
    border-right: 1px solid var(--i_main_color);
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    left: 0px;
    z-index: 0;
}

#sidebar_archive .sidebar_archive_list {
    padding-left: 0;
}

#sidebar_archive .sidebar_archive_list li {
    list-style: none;
}

#sidebar_archive .sidebar_archive_list li a {
    text-decoration: none;
    display: block;
    padding: 5px 10px 5px 20px;
    position: relative;
}

#sidebar_archive .sidebar_archive_list li a::before {
    display: block;
    content: "";
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--i_main_color);
    border-right: 1px solid var(--i_main_color);
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    left: 0px;
    z-index: 0;
    pointer-events: none;
}

/* サイドバー の見出し*/
#sidebar h1,
#sidebar .article h1,
#sidebar h1.wp-block-heading,
#sidebar h1.entry-title,
#sidebar .article h2,
#sidebar h2.wp-block-heading,
#sidebar .article h3,
#sidebar h3.wp-block-heading,
#sidebar .article h4,
#sidebar h4.wp-block-heading .article h5,
#sidebar h5.wp-block-heading .article h6,
#sidebar h6.wp-block-heading {
    margin-bottom: 15px;
}

#sidebar {
    font-size: .9em;
}

#sidebar .article h1 {
    font-size: 18px;
    padding: 0 0 8px;
}

#sidebar .article h2,
#sidebar h2.wp-block-heading {
    font-size: 18px;
}

#sidebar .article h3,
#sidebar h3.wp-block-heading {
    font-size: 18px;
}

#sidebar .article h4,
#sidebar h4.wp-block-heading {
    padding: 5px;
}

/*--------------footer----------------------------*/

footer .site-name-text img.site-logo-image {
    max-width: 270px;
    height: auto;
}

.navi-footer-in>.menu-footer li {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.navi-footer-in>.menu-footer li:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    margin-top: 20px;
    margin-bottom: 20px;
}

#navi .navi-in a:hover,
#footer a:not(.sns-button):hover {
    background-color: transparent;
    color: var(--i_main_color);
}

.copyright {
    margin-top: 30px;
}

@media screen and (max-width: 1023px) {
    .footer-bottom-logo {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 834px) {
    .navi-footer-in>.menu-footer li:last-child {
        border: 0;
    }

    .navi-footer-in>.menu-footer li.menu-item a {
        padding: 10px 0;
    }
}

/*-----------------メディア（top、アーカイブページ共通）-------------------------*/
body.home:not(.paged) .ect-vertical-card .entry-card-wrap:first-of-type {
    width: 100%;
}

body.home:not(.paged) .ect-vertical-card .entry-card-wrap:first-of-type .entry-card {
    flex-direction: row;
    gap: 0 2%;
}

body.home:not(.paged) .ect-vertical-card .entry-card-wrap:first-of-type .entry-card-thumb {
    width: 60%;
}

body.home:not(.paged) .ect-vertical-card .entry-card-wrap:first-of-type .entry-card-title {
    font-size: 22px;
}

body.home:not(.paged) .ect-vertical-card .entry-card-wrap:first-of-type .entry-card-snippet {
    font-size: 16px;
    line-height: 1.8;
}

@media screen and (max-width: 834px) {
    body.home:not(.paged) .ect-vertical-card .entry-card-wrap:first-of-type .entry-card-title {
        font-size: 16px;
    }
}

@media screen and (max-width: 356px) {
    body.home:not(.paged) .ect-vertical-card .entry-card-wrap:first-of-type .entry-card {
        flex-direction: column;
    }

    body.home:not(.paged) .ect-vertical-card .entry-card-wrap:first-of-type .entry-card-thumb {
        width: 100%;
    }
}

/*-------------pager-----------------------------*/
.pagination-next-link {
    background: var(--cocoon-text-color);
    max-width: 300px;
    margin: 0 auto;
    color: #fff;
    border: none;
}

.pager-links .current span,
.pagination-next-link:hover,
.pagination a:hover,
.pagination .current,
.pager-links a:hover span {
    background: var(--cocoon-text-color);
    color: #fff;
}

.pager-post-navi figure {
    display: none;
}

.blogcard-thumbnail img,
.card-thumb img {
    aspect-ratio: 1/1;
}

.cat-label {
    background: var(--i_main_color);
}

/*-----------------txt-------------------------*/
main h1,
.article h1,
h1.wp-block-heading,
h1.entry-title,
.article h2,
h2.wp-block-heading,
.article h3,
h3.wp-block-heading,
.article h4,
h4.wp-block-heading .article h5,
h5.wp-block-heading .article h6,
h6.wp-block-heading {
    margin-bottom: 30px;
}

.article h1{
    background: none;
    color: var(--cocoon-text-color);
    padding: 0 0 15px;
    position: relative;
    border-bottom: 2px solid #ddd;
}

.article h1::before {
    display: block;
    content: "";
    width: 80px;
    height: 2px;
    background: var(--i_main_color);
    position: absolute;
    bottom: -2px;
    left: 0px;
    z-index: 1;
    pointer-events: none;
}

.article h2,
h2.wp-block-heading {
    border: 0;
    background: var(--i_main_color);
    padding: 12px 20px;
    color: #fff;
}

.article h3,
h3.wp-block-heading {
    font-size: 22px;
    background: none;
    padding: 0 0 0 15px;
    border-left: 4px solid var(--i_main_color);
    color: var(--cocoon-text-color);
    border-bottom: none !important;
    border-top: none !important;
    border-right: none !important;
}

.article h4,
h4.wp-block-heading,
h2.related-entry-heading {
    border-top: 0;
    padding: 0 10px 10px;
    border-bottom: 2px solid var(--cocoon-text-color);
}

.article h5,
h5.wp-block-heading {
    border: 0;
    color: var(--i_main_color);
}

.article h6,
h6.wp-block-heading {
    display: inline-block;
    border: 1px solid var(--cocoon-text-color);
}

.article .toc {
    margin-bottom: 30px;
}

/* フロントページ専用の見出しスタイル */
.article h1.home {
    font-size: 2em;
    text-align: center;
    padding-bottom: 0.5em;
    border-bottom: none;
    font-weight: 900;
    position: relative;
    padding-top: 40px;
    margin-bottom: 10px;
}

.article h1.home::before {
    display: none;
}

.article h1.home::after {
    display: block;
    content: "";
    background: url("/wp-content/themes/cocoon-child-master/assets/images/h1.png") no-repeat center / contain;
    height: 32px;
    width: 72px;
    top: 0;
    left: calc(50% - 36px);
    position: absolute;
}

.article h1.home span {
    color: var(--i_main_color);
}

.article h2.home {
    font-size: 1.6em;
    border-left: none;
    background: var(--i_main_color);
    color: #fff;
    font-weight: 900;
    position: relative;
    text-align: center;
    padding: 12px 8px;
}


.article h2.home :before.home {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-top: 15px solid var(--i_main_color);
}

.article h3.home {
    font-size: 1.4em;
    background: none;
    font-weight: 900;
}

.article h4.home {
    border-bottom: none;
}


@media screen and (max-width: 767px) {
    .home .article h1 {
        font-size: 1.3em;
    }

    .home .article h2 {
        font-size: 1.2em;
    }

    .home .article h3 {
        font-size: 1.2em;
    }
}

main h1,
h1.entry-title {
    padding-left: 0;
    font-size: 20px;
}


/*-----------------フロントページ Smart Sliderに16:9のアスペクト比------------------------*/
#n2-ss-2 {
    aspect-ratio: 93 / 40;
    width: 100%;
    height: auto !important;
    max-width: 100%;
}

@media screen and (max-width: 700px) {
    .n2-ss-margin {
        margin: 0 !important;
    }

    #n2-ss-2 {
        aspect-ratio: 39 / 50;
        width: 100%;
        height: auto !important;
        max-width: 100%;
    }

    .n2-ss-section-main-content {
        padding: 0 !important;
    }
}

/*-----------------フロントページ faq-------------------------*/
.home .faq-wrap.is-style-accordion.has-border-color.not-nested-style>.faq>.faq-question {
    font-size: 1.2em;
}

@media screen and (max-width: 767px) {
    .home .faq-wrap.is-style-accordion.has-border-color.not-nested-style>.faq>.faq-question {
        font-size: .9em;
    }
}

/*-----------------フロントページ 新着記事表示-------------------------*/
.home .is-list-horizontal.large-thumb .widget-entry-card-link {
    flex-shrink: 0;
    max-width: 33.333%;
}

@media screen and (max-width: 834px) {
    .home .is-list-horizontal.large-thumb .widget-entry-card-link {
        flex-shrink: 0;
        max-width: 50%;
    }
}

/* CTAフッターの基本デザイン */
#sticky-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #ffe17b;
    padding: 0 1em 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

#sticky-footer.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#sticky-footer .cta-button {
    padding: 0 0.75em;
    margin-top: -16px;
}

#sticky-footer .cta-button img {
    max-width: 350px;
    height: auto;
    width: 100%;
}

#content-bottom {
    padding-bottom: 100px;
}
.page-id-2120 #content-bottom{
	display: none;
}

@media screen and (max-width: 834px) {
    #sticky-footer {
        padding: 0 0.5em 2px;
    }

    #content-bottom {
        padding-bottom: 0;
    }

    .sticky-cta .cta-button {
        padding: 0 0.2em;
        margin-top: -10px;
    }
	#sticky-footer .cta-button {
        padding: 0 2em;
}
}
@media screen and (max-width: 360px) {
	#sticky-footer .cta-button {
        margin-top: -7px;
    }
}

#breadcrumb{
	padding-bottom:20px;
}
.grecaptcha-badge{
	z-index: 9999;
	bottom: 80px !important;
}
/*-----------------popup-------------------------*/

.scroll-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.scroll-popup-content {
  text-align: center;
  position: relative;
padding:30px;
}
.scroll-popup-content img{
	width:auto;
	max-width:100%;
	height:auto;
}
.banner-close {
  cursor: pointer;
  width: 40px; 
}