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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*cocoonの見出しなどを一部上書き*/
.site-name-text {
    display: none !important;
}
/* Cocoon余白リセット*/
body {
    margin-top: 0px !important;
    padding-top: 0px !important;
}
.header-container {
    height: 0;
    margin: 0;
    padding: 0;
}
#top-head {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
}

/* sp以外だけ対象にする */
      #global-nav ul li:not(.sp) a {
        background: #fff !important;
        color: #000 !important;
      }
      
      #global-nav ul li:not(.sp) a:hover,
      #global-nav ul li:not(.sp) a:focus,
      #global-nav ul li:not(.sp) a:active {
        background: #fff !important;
        color: #000 !important;
      }
      
      /* currentカラー無効 */
      #global-nav ul li.current-menu-item:not(.sp) a,
      #global-nav ul li.current_page_item:not(.sp) a {
        background: #fff !important;
        color: #000 !important;
      }

/*カスタムグローバルメニュー*/
#top-head {
	width: 100%;
    margin: 0 auto;
    padding: 0;
    position: fixed;
    background-color: rgba(255,255,255,1);
    z-index: 999;
}

#top-head .gm-inner {
    width: 100%;
    height: 60px;
    margin: 0 auto;
    padding: 0 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

#top-head .logo {
    width: 240px;
    position: absolute;
    top: 10px;
    left: 20px;
}
#global-nav .sp-logo {
    display: none;
    width: 240px;
    position: absolute;
    top: 10px;
    left: 20px;
}
#global-nav .sp-insta, #global-nav .sp-x-logo {
    width: 50px;
    display: none;
}

#global-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 5px 0 0;
    padding: 0;
    box-sizing: border-box;
}

#global-nav ul li {
    margin: 0 5px 0 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #fff;
}
#global-nav ul li.sp {
    display: none;
}
#global-nav ul li:last-child {
    margin: 0;
}

#global-nav ul li a {
    display: block;
    padding: 12px 20px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2em;
    color: #000;
    text-decoration: none;
}
/* ===== グローバルメニュー：下線ホバーエフェクト ===== */
#global-nav ul li a.link.marker {
  position: relative;
  display: inline-block;
  color: #000;
  text-decoration: none;
}
#global-nav ul li a.link.marker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 5px;
  background-color: #1d4294;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
/* hover時 */
#global-nav ul li a.link.marker:hover {
  color: #1d4294;
}

#global-nav ul li a.link.marker:hover::after {
  transform: scaleX(1);
}
/* ===== サブメニュー全体(sb-inner) ===== */
#global-nav .sb-inner {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: 100%;
  border-top: 1px solid #eee;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  padding: 20px 0 20px;
    background-color: rgba(255,255,255,0.9);
    z-index: 990;
}
#global-nav ul li.has-submenu:hover > .sb-inner {
  opacity: 1;
  visibility: visible;
}
/* ===== submenu中身 ===== */
#global-nav .submenu {
    float: none;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 0px;
    border: 0;
}
#global-nav .submenu li {
    padding: 0;
    margin: 0;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2em;
}
#global-nav .submenu li a {
  text-align: center;
  font-size: 14px;
  display: block;
}
#global-nav .submenu li a:hover {
  color: #935b96;
    transition: 0.3s;
}
#global-nav .submenu li img {
  display: block;
  width: 120px;
  margin: 0 auto 20px;
}
#nav-toggle .menu-label {
    display: none;
}


/*カスタムファーストイメージ関連*/
#first-image {
	width: 100%;
	height: 350px;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	position: relative;
    overflow: visible;
}

#first-image .catch {
    color: #DE003A;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 800;
    font-style: italic;
    font-variation-settings:"wdth" 100;
    font-size: clamp(30px, 2.5vw, 50px);
    line-height: 1.5em;
    position: absolute;
    top: 45%;
    left: 3%;
    transform: translate(0%, -50%);
    -webkit-transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%);
    display: inline-block;
    z-index: 5;
    margin: 0;
    padding: 0;
}
#first-image .catch strong {
    color: #000;
    font-size: 2.2em;
}
#first-image .catch .blog-title {
    color: #000;
    font-size: 0.7em;
}
#first-image .en1 {
    position: absolute;
    inset: 0;
    background-color: rgba(29,66,148,0.25);
    -webkit-clip-path: ellipse(77% 95% at 100% 50%);
    clip-path: ellipse(77% 95% at 100% 50%);
    z-index: 1;
    transition: 0.5s;
}
.electoral-district {
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #1d4294;
    padding: 15px 5% 5px 180px;
    margin: 0;
    text-align: left;
    font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
    font-size: 25px;
    line-height: 1.2em;
    color: #fff;
    z-index: 50;
}
.political-party {
    width: 120px;
    position: absolute;
    bottom: 5px;
    left: 3%;
}
.young-message {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    background-color: #00B2FF;
    padding: 0;
    margin: 0;
    display: inline-block;
}
.young-message span {
    font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style:italic;
    font-size: 26px;
    line-height: 1.2em;
    color: #fff;
    display: inline-block;
    padding: 7px 40px 7px 3%;
	background-color: #00B2FF;
	border-bottom-right-radius: 40px;    
}
/* 背景スライド全体 */
#first-image .bg-slideshow {
    background-color: #1d4294;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    -webkit-clip-path: ellipse(67% 100% at 100% 50%);
    clip-path: ellipse(67% 100% at 100% 50%);
    overflow: hidden;
}
#first-image .bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease;
}
/* 1600px超で半円を小さくする */
@media screen and (min-width: 1400px) {
#first-image .en1 {
    -webkit-clip-path: ellipse(70% 95% at 100% 50%);
    clip-path: ellipse(70% 95% at 100% 50%);
    transition: 0.5s;
}
#first-image .bg-slideshow {
    -webkit-clip-path: ellipse(60% 100% at 100% 50%);
    clip-path: ellipse(60% 100% at 100% 50%);
    transition: 0.5s;
}
#first-image .bg-slide {
    background-size: auto 130%;
    background-repeat: no-repeat;
    transition: 0.5s;
}
}
#first-image .bg-slide.active {
    opacity: 1;
}


/*カスタムfooter関連*/
body {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 0;
    margin: 0;
}

.clear {
	clear: both;
}
.breadcrumb {
    width: 90%;
    padding: 15px 0;
    box-sizing: border-box;
    margin: 0 auto 70px;
}
.breadcrumb ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    color: #9e9e9f;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 12px;
}
.breadcrumb li::after {
    content: "＞";
    margin: 0;
    color: #666;
    margin: 0 10px;
}
/* 最後（現在のページ）は矢印を消す */
.breadcrumb li:last-child::after {
    content: "";
}
.breadcrumb a {
    text-decoration: none;
    color: #0077aa;
    transition: opacity .2s ease;
}
.breadcrumb a:hover {
    opacity: 0.7;
}
.contact-btn-c {
	font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 700;
	font-style: normal;
	font-size: 25px;
    line-height: 1.2em;
	color: #fff;
	text-decoration: none;
    text-align: left;
	background-color: #C40000;
	clip-path: polygon(90% 0, 100% 35%, 100% 100%, 0 100%, 0 0);
	display:table;
	padding: 25px 30px 25px 90px;
	margin: 70px auto;
	background-image: url("../img/mail-icon.webp");
	background-repeat: no-repeat;
	background-position: 20px center;
	background-size: 50px auto;
    transition: 0.3s;
}
.contact-btn-c:hover {
    background-color: #0081b7;
    transition: 0.3s;
}
footer.site-footer {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 50px 5% 100px;
    position: relative;
    background-color: #1d4294;
    display: block;
}
footer .inner {
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    display:block;
    padding: 0;
    margin: 0 auto;
    position: relative;
}
.pt-icon {
    width: 70px;
    position: absolute;
    top: -20px;
    right: 3%;
    z-index: 100;
}
.f-info {
    width: 70%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    float: left;
    font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
    font-size: 14px;
    line-height: 1.6em;
}
.f-info a {
    text-decoration: none;
    color: #000;
}
.f-logo {
    width: 250px;
    display: inline-block;
    margin: 0 30px 30px 0;
    padding: 0;
    display: block;
}
.f-info .insta {
    width: 40px;
    display: inline-block;
    margin: 0 20px 20px 0;
}
.f-info .x-logo {
    width: 40px;
    display: inline-block;
    margin: 0 20px 20px 0;
}
.f-info p {
    font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
    font-size: 14px;
    line-height: 1.6em;
    color: #fff;
    display: inline-block;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 300px;
}
.footer-nav-area {
    width: auto;
    box-sizing: border-box;
    padding: 0;
    margin: 0 5% 0 2%;
    float: right;
}
.footer-nav-right {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}
.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav-list li {
    margin-bottom: 6px;
}
.footer-nav-list a {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 13px;
    line-height: 1.5em;
    color: #fff;
    text-decoration: none;
}
.footer-nav-list a:hover {
    color: #FFB700;
    text-decoration: underline;
}
.side-list {
    margin-left: 20px;
}
.copy {
    font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
    font-size: 12px;
    line-height: 1.6em;
    letter-spacing: 1px;
    color: #fff;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 0%);
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    z-index: 5;
}

@media screen and (max-width: 1000px) {
/*カスタムグローバルメニュー*/
#top-head .gm-inner {
    width: 100%;
    height: 70px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
    
    #top-head .logo {
    width: 240px;
    position: absolute;
    top: 10px;
    left: 2%;
}
#global-nav .sp-logo {
    display: inline-block;
    width: 240px;
    position: absolute;
    top: 20px;
    left: 5%;
}
#global-nav li .sp-insta img,
#global-nav li .sp-x-logo img {
    width: 40px !important;
    height: auto;
}
#global-nav .sp-insta {
    width: 40px;
    display: inline-block;
    padding: 10px;
    border-radius: 15px;
    background-color: #1d4294;
    margin: 30px 15px 0 5%;
}
#global-nav .sp-x-logo {
    width: 40px;
    display: inline-block;
    padding: 10px;
    border-radius: 15px;
    background-color: #1d4294;
    margin: 30px 0 0 15px;
}

  #global-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(255,255,255,1.00);
	z-index: 998;
	overflow-y: auto;
	padding-top: 90px;
	box-sizing: border-box;
	opacity: 0;
	transform: translateY(-30px); /* 上に隠れた状態 */
	transition: opacity 0.5s ease, transform 0.5s ease;
	pointer-events: none;
  }
  /* 展開時 */
  #global-nav.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* ===== メニュー内のレイアウト ===== */
#global-nav ul {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 2列 */
      column-gap: 3%;   /* 列の間*/
      row-gap: 15px;    /* 行間 */
      width: 90%;
      margin: 0 auto;
      padding: 0;
}
/* 通常メニューは1列表示 */
  #global-nav ul li {
      grid-column: 1 / -1; /* 2列分使う */
      margin: 0;
      padding: 0;
}
#global-nav ul li.sp {
    display: block;
    box-sizing: border-box;
    grid-column: auto;
    padding: 0 5%;
    text-align: center;
    background-color: #F3F3F3 !important;
}
#global-nav ul li:not(.sp) {
    display: flex;
    align-items: center;
}
#global-nav ul li:not(.sp)::before {
    content: "";
    display: inline-block;
    width: 12px; 
    height: 2px;
    background-color: #DE003A;
    margin-right: 10px;
    position: relative;
    top: 2px;
}

  #global-nav ul li a {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    display: block;
    padding: 15px 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    line-height: 1.6em;
      font-size: 18px;
  }
#global-nav ul li.sp a {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    display: block;
    padding: 15px 0;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    line-height: 1.6em;
      font-size: 15px;
  }

  /* ===== サブメニュー（常時展開） ===== */
  #global-nav .sb-inner {
    position: static;
    opacity: 1;
    visibility: visible;
    border: none;
    padding: 0;
    background: transparent;
  }

  #global-nav ul li.has-submenu > a {
    padding-bottom: 15px;
    color: #fff;
  }
  #global-nav ul li a.link.marker,
  #global-nav ul li a.link.marker:hover {
    color: #000 !important;
    transition: none !important;
  }

  /* ::before 疑似要素を完全に無効化（非表示／アニメなし） */
  #global-nav ul li a.link.marker::before,
  #global-nav ul li a.link.marker:hover::before {
    display: none !important;
    transform: none !important;
    transform-origin: none !important;
    transition: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }

  #global-nav ul li.has-submenu .submenu {
    display: block;
    width: 90%;
    margin: 0 auto 20px;
      padding: 10px 0;
    grid-template-columns: 1fr;
  }

  #global-nav .submenu li {
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6em;
    padding-left: 0.5em;
      border: none;
      margin-bottom: 7px;
  }
    #global-nav > ul > li:first-child {
    background-image: none;
	background-position: center 88%;
	background-repeat: no-repeat;
	background-size: 10px auto;
}

  #global-nav .submenu li a {
      text-align: left;
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
  }

  #global-nav .submenu li img {
    display: none !important;
  }

  /* ===== ハンバーガー全体 ===== */
  #nav-toggle {
	cursor: pointer;
	position: absolute;
	right: 0;
	top: 0;
	background-color: #1d4294;
	height: 70px;
	width: 70px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 13px;
	z-index: 999;      
  }

  #nav-toggle .bars {
    position: relative;
    width: 30px;
    height: 22px;
    display: flex;
    justify-content: center;
  }

  #nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: .3s;
  }

  #nav-toggle span:nth-child(1) { top: 0; }
  #nav-toggle span:nth-child(2) { top: 9px; }
  #nav-toggle span:nth-child(3) { top: 18px; }

  #nav-toggle .menu-label {
    display: inherit;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 800;
    font-size: 11px;
    color: #fff;
    text-align: center;
    margin-top: 8px;
    line-height: 1;
  }

  /* 開閉アニメーション */
  #nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}


@media screen and (max-width: 899px) {
/*カスタムファーストイメージ関連*/
#first-image {
    height: 350px;
}
#first-image .catch {
    font-size: clamp(20px, 4vw, 50px);
    line-height: 1.2em;
    position: absolute;
    top: inherit;
    bottom: 10%;
    left: 3%;
    z-index: 55;
}
#first-image .catch strong {
    font-size: 2.2em;
}
#first-image .catch .blog-title {
    font-size: 0.6em;
}
#first-image .en1 {
    position: absolute;
    inset: 0;
    -webkit-clip-path: ellipse(65% 60% at 100% 50%);
    clip-path: ellipse(65% 60% at 100% 50%);
    z-index: 1;
}
#first-image .bg-slideshow {
    -webkit-clip-path: ellipse(50% 60% at 100% 50%);
    clip-path: ellipse(50% 60% at 100% 50%);
    transition: 0.5s;
}
#first-image .bg-slide {
    position: absolute;
    inset: 0;
    background-size: auto 100%;
    background-position: 45% center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease;
}
#first-image .bg-slide.active {
    opacity: 1;
}

.electoral-district {
    height: 55px;
    padding: 8px 2% 5px 135px;
    margin: 0;
    font-size: clamp(18px, 4vw, 23px);
    line-height: 1.2em;
    color: #fff;
    z-index: 50;
    line-height: 50px;
}
.political-party {
    width: 95px;
    position: absolute;
    bottom: 10px;
    left: 18px;
}
.young-message span {
    font-size: 27px;
    padding: 7px 40px 7px 18px;  
}

/*カスタムfooter関連*/
footer {
    padding: 70px 5% 100px;
}
.f-info {
    width: 100%;
    float: left;
    font-size: 14px;
    line-height: 1.6em;
}
.f-logo {
    width: 250px;
    margin: 0 30px 30px 0;
    padding: 0;
    display: block;
}
.f-info .insta {
    width: 40px;
    display: inline-block;
}
.f-info p {
    width: 100%;
    font-size: 13px;
    line-height: 1.6em;
    margin: 20px 0 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
}
.f-info p a {
    color: #fff;
}
.footer-nav-area {
    margin: 40px 0 0;
    float: left;
}
.pt-icon {
    width: 60px;
    position: absolute;
    top: -20px;
    right: 5%;
    z-index: 100;
}
.footer-nav-list a {
    font-size: 14px;
    line-height: 1.5em;
    color: #fff;
    text-decoration: none;
}
}

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