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

/************************************
** 子テーマ用のスタイルを書く
************************************/
a:hover { color: inherit; }
p {
    line-height: 1.8;
    margin-bottom: 1.5em;
    font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #333;
}
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; border-bottom: 2px solid #0054a6; padding-bottom: 0.5em; }
h3 { font-size: 1.3em; padding-left: 10px; border-left: 4px solid #0054a6; }
h4 { font-size: 1.1em; }
img {
    max-width: 100%;
    height: auto;
}
ul, ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
li {
    margin-bottom: 0.5em; /* リスト項目間の余白 */
}
strong, b {
    color: #d32f2f; /* 重要な文字を少しだけ目立つ色にする（任意） */
}
.tac {
  text-align: center;
}
.tar {
  text-align: right;
}
.tal {
  text-align: left;
}
/* ||flex-style */
.wrap_column {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    /* margin-bottom: 2.5rem; */
}
.nowrap_column,
.nowrap_column_rps,
.nowrap_column_rps_direction_column {
    display:flex;
    flex-wrap:nowrap;
}
.nowrap_space-between {
    display:flex;
    justify-content:space-between;
}

.d-inline-flex {
    display:inline-flex;
}
.direction_column {
    display:flex;
    flex-direction:column;
}
@media screen and (max-width:900px) {
    .nowrap_column_rps {
        display:block;
    }
    .nowrap_column_rps_direction_column {
        flex-direction:column;
    }
}
.wrap_column .item2,
.wrap_column .item2rps1,
.wrap_column .item3rps1,
.wrap_column .item3rps2 {
    width:100%;
}
.wrap_column .item2,
.wrap_column .item3rps2 {
    max-width: calc((100% - 20px) / 2);
}
@media screen and (min-width:901px) {
    .wrap_column .item2rps1 {
        max-width: calc((100% - 20px) / 2);
    }
    .wrap_column .item3rps1,
    .wrap_column .item3rps2 {
        max-width: calc((100% - 40px) / 3);
    }
}
/* flex-style|| */


a.link_btn {
    display:inline-block;
    border:solid 1px #ccc;
    border-radius:4px;
    padding:.3em .8em;
    margin-bottom:2em;
    text-align:center;
}
a.link_btn_2 {
    display:inline-block;
    border-bottom:solid 1px #ddd;
    border-radius:4px;
    padding:.8em .8em;
    text-align:center;
    background:#f1f1f1;
    color:#000;
    margin-bottom:10px;
}
a.link_btn_2.piu_link {
    background:#6fba2c;
    color:#fff;
}
a.link_btn_2.reversal {
    background:#333;
    color:#fff;
}
a.link_btn_2.large {
    padding:1.2em .5em;
    font-weight:bold;
}
.link_btn_3 a,
a.link_btn_3 {
    display:inline-block;
    position:relative;
    line-height:1.3;
    font-weight:bold;
    text-align:center;
    background:#fff;
    color:#000;
    padding:1em 2.5em;
    border:1px solid #000;
    border-radius:2em;
}
.link_btn_3 a:hover,
a.link_btn_3:hover {
    background:#ddd;
}
.link_btn_3.btn_arrow a,
a.link_btn_3.btn_arrow {
    padding-right:3em;
}
.link_btn_4 a,
a.link_btn_4 {
    display:inline-block;
    position:relative;
    line-height:1.3;
    font-weight:bold;
    text-align:center;
    background:#379868;
    color:#fff;
    padding:1em 2.5em;
    border-radius:2em;
}
.link_btn_4.btn_arrow a,
a.link_btn_4.btn_arrow {
    padding-right:3em;
}
.btn_arrow a:after,
a.btn_arrow:after {
    position:absolute;
    top:50%;
    right:.8em;
    margin-top:-.5em;
    font-family:"Font Awesome 5 Free";
    content:"\f105";
    font-weight:900;
    line-height:1;
}


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

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

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

/*--------------------------------- 
アピールエリア
 --------------------------------*/ 
.appeal-content {
	background: none;
}

.appeal-button {
	position: absolute;
	top:50px;
	right:15px;
}

@media only screen and (max-width: 767px) {
  .appeal-button {
    top: 275px;
	right: 74px;
  }
}

/*--------------------------------- 
スマホだけ改行したいとき
 --------------------------------*/ 
@media screen and (min-width: 768px){
.sp-br {display: none;} }

/*--------------------------------- 
リンク画像エフェクト
 --------------------------------*/ 
#linkbutton:hover{
	 transform:scale(1.1);
}

/*--------------------------------- 
リンク画像エフェクト(クリーナーA)
 --------------------------------*/ 
.cleaneraimg {
  transition: transform 0.3s ease-out;
}

.cleaneraimg:hover {
  transform: rotateZ(360deg);
}

.cleaneraimg:hover + a + .cleaneraimg,
.cleaneraimg:hover + a:hover + .cleaneraimg {
  transform: rotateZ(-360deg);
}

/*--------------------------------- 
フッターアンダーライン非表示
 --------------------------------*/ 
.footer a {
  text-decoration: none;
}

/*--------------------------------- 
スマートフォンでのみ表示
 --------------------------------*/ 
@media screen and (min-width:768px){
	.for-sp{
	display:none;
	}
}

/*--------------------------------- 
SNSアイコン位置調整
 --------------------------------*/ 
.snsicon {
  display: flex;
  align-items: center;
}

.snsimg {
  margin-right: 25px;
  height: 50px;
  transition: transform 0.5s; /* transformにトランジションを追加 */
}

.snsimg:hover {
  transform: rotateY(360deg); /* ホバー時に回転するアニメーションを追加 */
}

/* メニューバー背景の高さ */
.navi-in>ul li {
  height: 80px !important;
  line-height: 80px !important;
}
/*--------------------------------- 
フッターの中央寄せ
 --------------------------------*/ 
.footer-box {
  display: flex;
  justify-content: center;
}

/*--------------------------------- 
ギャラリー画像エフェクト
 --------------------------------*/ 
.gallery img:hover {
	transform: scale(1.1);
}
/*--------------------------------- 
サービス　CAD画像のエフェクト
 --------------------------------*/ 
.anim-box.poyopoyo {
  animation: poyopoyo 2s ease-out infinite;
  opacity: 1;
}

@keyframes poyopoyo {
  0%, 40%, 60%, 80% {
    transform: scale(1.0);
  }
  50%, 70% {
    transform: scale(0.95);
  }
}

/*--------------------------------- 
サービス　白衣画像のエフェクト
 --------------------------------*/ 
.fuwafuwa {
  animation: fuwafuwa 3s infinite ease-in-out .8s alternate;
  background: url(../img/ico-apple.svg) no-repeat center center / 60px auto;
  display: inline-block;
  transition: 1.5s ease-in-out;
}
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-7deg);
  }
  50% {
    transform:translate(0, -7px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(7deg);
  }
}

/*--------------------------------- 
サービス　校正画像のエフェクト
 --------------------------------*/ 
.reflection{
display:inline-block;
position:relative;
overflow:hidden;
}
 
.reflection:after {
content:"";
height:100%;
width:30px;
position:absolute;
top:-180px;
left:0;
background-color: #fff;
opacity:0;
-webkit-transform: rotate(45deg);
-webkit-animation: reflection 2s ease-in-out infinite;
}
 
@keyframes reflection {
0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
80% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
81% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
}

/*--------------------------------- 
トップページリンクアニメーション
 --------------------------------*/
.slide-button {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #063ca3;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
/*
.slide-button:hover {
  background-color: white;
  color: #063ca3;
}

.slide-button::after {
  content: "\f105";
  font-family: FontAwesome;
  font-size: 1em;
  margin-left: 0.5em;
  transition: margin-left 0.3s ease;
}

.slide-button:hover::after {
  margin-left: 0.8em;
}
*/
@import url('https://use.fontawesome.com/releases/v5.15.3/css/all.css');

/*--------------------------------- 
クリーナーAのフリップアニメーション
 --------------------------------*/
.image_box {
  position: relative;
  perspective: 1000px; /* 3D空間の奥行きを定義 */
}
.image_box img {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.6s ease; /* 裏返るアニメーション */
  backface-visibility: hidden; /* 裏面を見えなくする */
}
.image_box .caflip2 {
  transform: rotateY(180deg); /* 裏返した状態 */
}
.image_box:hover .caflip {
  transform: rotateY(180deg); /* 裏返すアニメーション */
}
.image_box:hover .caflip2 {
  transform: rotateY(0); /* 裏面を表に表示するアニメーション */
}
.image_box {
  width: 376px; /* 画像の幅 */
  height: 376px; /* 画像の高さ */
}
figcaption.wp-element-caption {
  white-space: nowrap;
}
/* 画像の幅を376pxに設定 */
.wp-block-image img {
  max-width: 376px;
  height: auto;
}

/* キャプションのスタイルを調整 */
.wp-caption {
  text-align: center;
  margin: 0;
  padding: 0.5em;
  font-size: 0.9em;
  line-height: 1.4em;
  background-color: #f5f5f5;
  border-radius: 5px;
}
/* スマートフォン用のスタイル */
/* スマートフォン用のスタイル */
@media (max-width: 767px) {
  .image_box {
    perspective: none; /* 3D空間の奥行きを解除 */
    width: 188px; /* 画像の幅を188pxに設定 */
    height: auto; /* 画像の高さを自動調整 */
  }
  .image_box img {
    position: static; /* 通常の画像表示に戻す */
    transform: none; /* 3D回転を解除 */
    transition: none; /* アニメーションを解除 */
    backface-visibility: visible; /* 裏面を表示 */
  }
  .image_box .caflip {
    display: none; /* 裏返すアニメーションを解除 */
  }
  .image_box .caflip2 {
    display: none; /* 裏面を非表示にする */
  }
}

/* 2枚目の画像を非表示にする */
.wp-block-image:nth-child(2) {
  display: none;
}

/*--------------------------------- 
ガッティーオイル製品一覧画像アニメーション
 --------------------------------*/
.guttyoillist {
	position: relative;
	top: 0;
	transition: top 0.3s; /* トランジションを追加 */
}

.guttyoillist:hover {
	top: -10px;
}


/*--------------------------------- 
ガッティークリーナーA画像スマホでのみ表示
 --------------------------------*/
@media only screen and (max-width: 767px) {
  .wp-block-image.aligncenter.size-full.casp img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
}

@media only screen and (min-width: 768px) {
  .wp-block-image.aligncenter.size-full.casp {
    display: none;
  }
}

/*--------------------------------- 
クリーナーA不織布丸画像回転
 --------------------------------*/
.carotate:hover {
  animation-name: anim_r;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-direction: normal;
}

@keyframes anim_r {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------- 
ガッティーオイル製品一覧　表
 --------------------------------*/
/* 表全体 */
.gutty_list table {
  width: 100%;
  border-collapse: collapse;
}

/* 行 */
.gtty_list tr {
  border-bottom: 1px solid #ddd;
}

/* セル全体 */
.gutty_list td {
  padding: 10px;
  text-align: center;
  border-right: 1px solid #ddd;
}

/* 製品名のセル */
.gutty_list td:nth-child(2) {
  text-align: left;
}

