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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/************************************
** SNS ボタンをまとめて丸くする
************************************/

/* リスト項目やリンクのスタイル */
nav a {
    text-decoration: none; /* デフォルトのアンダーラインを消す */
    color: black; /* リンクの色 */
    padding-bottom: 5px; /* 下に少し余白を追加 */
    position: relative; /* 下線の位置を調整するために必要 */
}

/* 擬似要素による下線のスタイル */
nav a::after {
    content: ''; /* 擬似要素を追加 */
    position: absolute; /* 下線を位置合わせ */
    left: 0;
    bottom: 0; /* 下部に配置 */
    width: 100%; /* 全幅で開始 */
    height: 2px; /* 下線の太さ */
    background-color: black; /* 下線の色 */
    transform: scaleX(0); /* 初期状態は縮小 */
    transform-origin: left; /* 左側からアニメーション開始 */
    transition: transform 0.3s ease; /* アニメーションの設定 */
}

/* マウスポインターを当てたときのスタイル */
nav a:hover::after {
    transform: scaleX(1); /* ホバー時に全幅に広がる */
}


/* リスト項目やリンクのスタイル */
nav a {
    text-decoration: none; /* デフォルトのアンダーラインを消す */
    color: black; /* リンクの色 */
    padding-bottom: 5px; /* 下に少し余白を追加 */
    position: relative; /* 下線の位置を調整するために必要 */
}

/* マウスポインターを当てたときのスタイル */
nav a:hover::after {
    content: ''; /* 擬似要素を追加 */
    position: absolute; /* 下線を位置合わせ */
    left: 0;
    right: 0;
    bottom: 0; /* 下部に配置 */
    height: 2px; /* 下線の太さ */
    background-color: black; /* 下線の色 */
    transition: width 0.3s ease; /* アニメーションの追加 */
}

/* 通常時の下線の幅をゼロに設定 */
nav a::after {
    width: 0;
}

/* ホバー時に下線が全幅に広がる */
nav a:hover::after {
    width: 100%;
}


/*シェア・フォローボタンの枠組み*/
.sns-share.ss-top .sns-share-buttons,
.sns-share.ss-bottom .sns-share-buttons,
.sns-follow.sf-bottom .sns-follow-buttons,
.sns-follow.sf-widget .sns-follow-buttons {
	justify-content: center; /*中央に寄せる*/
	flex-wrap: wrap; /*折り返す*/
}

/*シェア・フォローボタンのリンク*/
.sns-share.ss-top .sns-buttons a,
.sns-share.ss-bottom .sns-buttons a,
.sns-follow.sf-bottom .sns-buttons a,
.sns-follow.sf-widget .sns-buttons a {
	width: 40px; /*横幅*/
	height: 40px; /*高さ*/
	margin-right: 4px; /*右側の余白*/
	margin-left: 4px; /*左側の余白*/
	border-radius: 50%; /*丸み*/
}

/*プロフィールウィジェットのリンク*/
.sns-follow.sf-profile .sns-buttons a {
	border-radius: 50%; /*丸み*/
}

/*シェアボタンのアイコン*/
.sns-share.ss-top .sns-buttons a .social-icon,
.sns-share.ss-bottom .sns-buttons a .social-icon {
	font-size: 18px; /*アイコンの大きさ*/
}

/*フォローボタンのアイコン*/
.sns-follow.sf-bottom .sns-follow-buttons .follow-button,
.sns-follow.sf-widget .sns-follow-buttons .follow-button {
	font-size: 24px; /*アイコンの大きさ*/
}

/*シェアボタンのキャプション*/
.sns-share.ss-top .sns-buttons a .button-caption,
.sns-share.ss-bottom .sns-buttons a .button-caption {
	display: none; /*非表示*/
}

/*シェア・フォローボタンのシェア数*/
.sns-share.ss-top .sns-buttons a .share-count,
.sns-share.ss-bottom .sns-buttons a .share-count,
.sns-follow.sf-bottom .sns-buttons a .follow-count,
.sns-follow.sf-widget .sns-buttons a .follow-count {
	right: -2px; /*右側からの距離*/
	bottom: -2px; /*下側からの距離*/
	padding: 2px; /*内側の余白*/
	font-size: 10px; /*文字の大きさ*/
	border: solid 1px; /*線*/
	border-radius: 3px; /*丸み*/
	background-color: inherit; /*背景色*/
}

/*シェア数の表示が必要ないシェア・フォローボタン*/
.sns-share.ss-top .sns-buttons a .share-count:empty,
.sns-share.ss-bottom .sns-buttons a .share-count:empty,
.sns-follow.sf-bottom .sns-buttons a .follow-count:empty,
.sns-follow.sf-widget .sns-buttons a .follow-count:empty {
	padding: 0; /*内側の余白*/
	border: 0; /*線*/
}
/************************************
** ページをフェードイン表示する
************************************/

.body {
	animation: fadein 1s forwards; /*アニメーション指定*/
}

@keyframes fadein {
	0% {opacity: 0} /*アニメーション開始時*/
	100% {opacity: 1} /*アニメーション終了時*/
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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