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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** 基本設定
************************************/
@import url('https://use.fontawesome.com/releases/v5.15.3/css/all.css');

body {
  color: #333;
  line-height: 1.5;
  font-size: 14px;
  font-family: 'Jost', 'Noto Sans JP', sans-serif;
  overflow-wrap: anywhere;
}
@media (min-width: 576px) {
  body {
    font-size: 15px;
  }
}

a {
  color: #333;
  text-decoration: none;
  transition: all .2s;
}
a:hover {
  color: #333;
  opacity: .7;
}
a.link_btn,
a.link_btn_arrow {
  display:inline-block;
  color:#fff;
  /* font-weight:bold; */
  font-weight:normal;
  line-height:1.3;
  background-color: #063ca3;
  border:1px solid #063ca3;
  border-radius:4px;
  margin-bottom:2rem;
  padding:.5em .8em;
  text-align:center;
  position:relative;
}
a.link_btn_arrow {
  padding:.5em 2em .6em .8em;
}
a.link_btn_arrow:after {
  position:absolute;
  top:50%;
  /* right:.8em; */
  right:.5em;
  margin-top:-.5em;
  font-family:"Font Awesome 5 Free";
  /* content:"\f105"; */
  content:"\f138";
  font-weight:900;
  font-size: 1.3rem;
  line-height:1;
}

p,
article p {
  margin: 0 0 .8rem;
}

strong, b {
  color: #d32f2f;
}

h1, h2, h3, h4, h5, h6,
h2.ttl, h3.ttl, h4.ttl, h5.ttl, h6.ttl {
  font-weight: bold;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  /* color: #333; */
}
h2, h2.ttl, .article h2, .article h2.ttl { font-size: 1.6rem; }
h3, h3.ttl, .article h3, .article h3.ttl { font-size: 1.4rem; }
h4, h4.ttl, .article h4, .article h4.ttl { font-size: 1.2rem; }
h5, h5.ttl, .article h5, .article h5.ttl { font-size: 1.1rem; }
h6, h6.ttl, .article h6, .article h6.ttl { font-size: 1.0rem; }
.article h1 {
  font-weight: normal;
  font-size: 1.75rem;
}
.article h2 {
  background-color: #f5f6f7;
  color: inherit;
/*  margin-bottom: 0;*/
  margin: 0 0 1.25rem;
}
.article h3 {
  color: inherit;
/*  margin-bottom: 0;*/
  margin: 0 0 1.25rem;
  background-color: none;
  border: none;
  font-size: inherit;
  padding: inherit;
}
h2.ttl, h3.ttl, h4.ttl, h5.ttl, h6.ttl {
  /* line-height:1.6; */
  /* font-weight: normal; */
  /* font-weight: bold; */
  /* font-size:188%; */
}
/*
h2.ttl span, h3.ttl span, h4.ttl span, h5.ttl span, h6.ttl span {
  font-size:63%;
}
*/
h2.ttl_sub, h3.ttl_sub, h4.ttl_sub, h5.ttl_sub, h6.ttl_sub {
  font-weight:bold;
  background:#e3e3e3;
  border-left-width:3px;
  border-left-color:#333;
  border-left-style:solid;
  padding-left:1em;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin-bottom: 2rem;
}
ul.list-style-none,
ol.list-style-none {
  list-style:none;
}
ul.tagIcon {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  margin:5px 0 10px;
}
ul.tagIcon li {
  margin:.25em .25em .25em 0;
  padding:.25em .5em;
  border:solid 1px #222;
  border-radius:4px;
  font-size:.8em;
  line-height:1.4;
}
ul.tagIcon li.reverse {
  background:#333;
  color:#fff;
  border-color:#333;
}
ul.tagIcon li.gray {
  background:#999;
  color:#fff;
  border-color:#999;
}

.letter-spacing-em {
  letter-spacing:.15em;
}

.table-of-contents {/* コンテンツ目次 */
  display:inline-block;
  margin:3em 0;
  padding:1.5em 2em;
  border:solid 1px #999;
  border-radius:4px;
  min-width:17em;
}
.type-post.hentry .table-of-contents h2 {
  font-size:1.2em;
  margin-top:.4em;
}
.type-post.hentry .table-of-contents ol,
.type-post.hentry .table-of-contents ul {
  padding-left:1.5em;
  margin-top:.8em;
}
@media screen and (min-width:560px), print {
  .table-of-contents {
    min-width:50%;
  }
}
.tableLine {
  border-top:solid 1px #ddd;
}
.tableLine tr {
  border-bottom:solid 1px #ddd;
}
.tableLine th, .tableLine td {
  padding:.8em;
  text-align:left;
  line-height:1.4;
  font-weight:normal;
}
.tableLine2 {}
.tableLine2 th,
.tableLine2 td {
  padding:.8em .4em;
  text-align:center;
  vertical-align:middle;
  line-height:1.5;
  border:solid 1px #d3d3d3;
}
.tableLine2 th {
  background:#f0f0f0;
}

.tac {
  text-align:center;
}
.tal {
  text-align:left;
}
.tar {
  text-align:right;
}

.w100per {
  width:100%;
}
.w-fit {
  width:fit-content;
}

.mb5 {
  margin-bottom:5px;
}
.mb10 {
  margin-bottom:10px;
}
.mb20 {
  margin-bottom:20px;
}
.mb30 {
  margin-bottom:30px;
}
.mb40 {
  margin-bottom:40px;
}
.mb50 {
  margin-bottom:50px;
}
.mb60 {
  margin-bottom:60px;
}
.mb70 {
  margin-bottom:70px;
}
.mb80 {
  margin-bottom:80px;
}
.mb90 {
  margin-bottom:90px;
}
.mb100 {
  margin-bottom:100px;
}

.ml5 {
  margin-left:5px;
}
.ml10 {
  margin-left:10px;
}
.ml20 {
  margin-left:20px;
}
.ml30 {
  margin-left:30px;
}
.ml40 {
  margin-left:40px;
}
.ml50 {
  margin-left:50px;
}
.ml60 {
  margin-left:60px;
}
.ml70 {
  margin-left:70px;
}
.ml80 {
  margin-left:80px;
}
.ml90 {
  margin-left:90px;
}
.ml100 {
  margin-left:100px;
}
.ml-auto {
  margin-left:auto;
}

.mr5 {
  margin-right:5px;
}
.mr10 {
  margin-right:10px;
}
.mr20 {
  margin-right:20px;
}
.mr30 {
  margin-right:30px;
}
.mr40 {
  margin-right:40px;
}
.mr50 {
  margin-right:50px;
}
.mr60 {
  margin-right:60px;
}
.mr70 {
  margin-right:70px;
}
.mr80 {
  margin-right:80px;
}
.mr90 {
  margin-right:90px;
}
.mr100 {
  margin-right:100px;
}
.mr-auto {
  margin-right:auto;
}

.mt5 {
  margin-top:5px;
}
.mt10 {
  margin-top:10px;
}
.mt20 {
  margin-top:20px;
}
.mt30 {
  margin-top:30px;
}
.mt40 {
  margin-top:40px;
}
.mt50 {
  margin-top:50px;
}
.mt60 {
  margin-top:60px;
}
.mt70 {
  margin-top:70px;
}
.mt80 {
  margin-top:80px;
}
.mt90 {
  margin-top:90px;
}
.mt100 {
  margin-top:100px;
}

.pb10 {
  padding-bottom:10px;
}
.pb20 {
  padding-bottom:20px;
}
.pb30 {
  padding-bottom:30px;
}
.pb40 {
  padding-bottom:40px;
}
.pb50 {
  padding-bottom:50px;
}
.pb60 {
  padding-bottom:60px;
}
.pb70 {
  padding-bottom:70px;
}
.pb80 {
  padding-bottom:80px;
}
.pb90 {
  padding-bottom:90px;
}
.pb100 {
  padding-bottom:100px;
}

.pl10 {
  padding-left:10px;
}
.pl20 {
  padding-left:20px;
}
.pl30 {
  padding-left:30px;
}
.pl40 {
  padding-left:40px;
}
.pl50 {
  padding-left:50px;
}
.pl60 {
  padding-left:60px;
}
.pl70 {
  padding-left:70px;
}
.pl80 {
  padding-left:80px;
}
.pl90 {
  padding-left:90px;
}
.pl100 {
  padding-left:100px;
 }

.pr10 {
  padding-right:10px;
}
.pr20 {
  padding-right:20px;
}
.pr30 {
  padding-right:30px;
}
.pr40 {
  padding-right:40px;
}
.pr50 {
  padding-right:50px;
}
.pr60 {
  padding-right:60px;
}
.pr70 {
  padding-right:70px;
}
.pr80 {
  padding-right:80px;
}
.pr90 {
  padding-right:90px;
}
.pr100 {
  padding-right:100px;
}

.pt10 {
  padding-top:10px;
}
.pt20 {
  padding-top:20px;
}
.pt30 {
  padding-top:30px;
}
.pt40 {
  padding-top:40px;
}
.pt50 {
  padding-top:50px;
}
.pt60 {
  padding-top:60px;
}
.pt70 {
  padding-top:70px;
}
.pt80 {
  padding-top:80px;
}
.pt90 {
  padding-top:90px;
}
.pt100 {
  padding-top:100px;
}

.pd-x {
  padding-left:5%;
  padding-right:5%;
}

/* 注意や※などに使用 */
.color-red {
  color: #de5d50;
}

.d-block {
  display:block;
}
.d-inline-block {
  display:inline-block;
}

.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);
  }
}

.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;
}
*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*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-content .appeal-button {
  /* background-color: #063ca3; */
  background-color: #333;
}
.appeal-button {
  position: absolute;
  top:50px;
  right:15px;
}
@media screen and (max-width: 1023px){
  .appeal-button {
    top:100px;
  }
}
@media screen and (max-width: 601px){
  .appeal-button {
    font-size: small;
    font-weight: normal;
    padding: 9px 18px;
    top:60px;
    right:0;
  }
}

/************************************
** スマホだけ改行したいとき
************************************/
@media screen and (min-width: 768px){
  .sp-br {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); /* ホバー時に回転するアニメーションを追加 */
}

/* 検索ボタン */
:root :where(.wp-element-button, .wp-block-button__link) {
  background-color: #32373c;
  background-color: #333;
}

/************************************
** ヘッダーメニュー
************************************/
#header-container .navi,
#navi .navi-in>.menu-header .sub-menu {
  /* background-color: #585858; */
  background-color: #333;
}
/*
.navi-in>ul li {
  height: 80px !important;
  line-height: 80px !important;
}
*/
.navi-in > ul .sub-menu ul {
  top: -60px;
  left: 240px;
  position: relative;
}

/************************************
** フッター
************************************/
 .footer_container {
  background-color: #333;
  color: #fff;
}
.footer_container > div {
  margin-bottom: 2em;
}
.footer_container address {
  font-style: normal;
}
.footer_container p,
.footer_container ul li {
  margin-bottom: .8rem;
}
.footer_container ul {
  padding: 0;
}
.footer_container ul {
  padding: 0;
}
.footer_container ul.list-style-none.wrap_column li {
  margin-right: .2rem;
  margin-bottom: 0;
}

/************************************
** サイドカラムコンテンツ
************************************/
.side_container h2, .side_container h2.ttl {
  background-color: #f5f6f7;
  color: #333;
  font-size: 1.2rem;
}

/************************************
** スマホ用ハンバーガーメニュー
************************************/
/* PCはメニュー表記を非表示 */
ul.menu-top.menu-header.menu-pc > li:first-child {
  display: none;
}
/* SPのハンバーガーメニュー内メニュー表記をタップ不可 */
@media screen and (max-width: 1023px) {
  #navi-menu-content > ul > li:first-child.menu-item > a {
    display: table;
    width: auto;
    margin-left: auto;
    margin-right: auto; 
    pointer-events: none;
  }
}
.menu-content .menu-drawer {
  line-height: 2;
  padding: 0 1em 30px;
}
.menu-close-button {
  display: table;
  width: auto;
  margin-left: auto;
  margin-right: 0;
  cursor: pointer;
  font-size: 2em;
  line-height: 1;
  /* padding: 0 10px; */
  position: relative;
  top: 8px;
  right: 15px;
}
.menu-drawer .sub-menu {
  margin-bottom: 0;
  padding-left: 20px;
}
/*.menu-drawer > li:first-child*/
.menu-drawer > li {
  border-bottom: 1px solid #ccc;
}

/************************************
** ギャラリー画像エフェクト
************************************/
.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; }
}

/************************************
** クリーナー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;
}

