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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

.wf-roundedmplus1c { font-family: "M PLUS Rounded 1c"; }

/* ヘッダーロゴ */
.site-name-text {
	font-family: "M PLUS Rounded 1c";
	font-size: 2.4rem;
	font-weight: 700;
	letter-spacing: 0.5rem;
	font-kerning: auto;
}
.logo-text::first-letter {
//	text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
	font-size: 1.35em;
//	color: #dbe0ff;
}

.navi-in > ul li {
	width: 8em;
}
#header-in > .logo {
	text-align: left;
}
#header-in > .logo-text {
	padding: 0.4rem 0 0 0;
	letter-spacing: 0.3rem;
	margin-bottom: -0.7rem;
}
#header-in > .tagline {
	text-align: left;
	font-size: 0.9rem;
	margin: 0 1.2rem 1.2rem;
}
.sidebar h3 {
	padding: 0 1rem;
	border-left: 10px solid #2141a3;
	border-radius: 8px 0 0 8px;
}
.article h3.obi, .article h4.obi, .article h5.obi, .article h6.obi {
	padding: 0.5rem 1rem;
	border-left: 0.5rem solid #2141a3;
	border-radius: 0.4rem 0 0 0.4rem;
}

/* 検索 */
.search_sel {
	display: inline-block;
	height:36px;
	border-top:1px solid silver;
	border-bottom:1px solid silver;
	background-color:#efefef;
	padding:4px 2px;
	font-size:20px;
	margin-bottom: 12px;
}
.search_sel_left {
	border-radius:16px 0 0 16px;
	border:1px solid silver;
	width:calc(50% - 2px);
	min-width:94px;
}
.search_sel_mid {
	border-right:1px solid silver;
	border-left:0px solid white;
	width:31%;
	min-width:94px;
}
.search_sel_right {
	border-radius:0 16px 16px 0;
	border-right:1px solid silver;
	border-left:0px solid white;
	width:calc(50% - 2px);
	min-width:94px;
}
input[type=text].search_text {
	display: inline-block;
	height:36px;
	border-radius:16px 0 0 16px;
	border:1px solid silver;
	padding:8px;
	font-size:20px;
	width:calc( 100% - 52px);
}
button.search_button {
	display: inline-block;
	height:36px;
	border-radius:0 16px 16px 0;
	border-top:1px solid silver;
	border-right:1px solid silver;
	border-bottom:1px solid silver;
	border-left:0px solid white;
	background-color:efefef;
	color:#454545;
	font-family: "Font Awesome 5 Free";
	font-size:18px;
	width:48px;
}

/* img用divと横のテキスト */
div.imgleft {
	display: inline-block;
	vertical-align: top;
	width: 50%;
	min-width: 290px;
	margin-right: 1em;
}
div.imgright {
	display: inline-block;
	vertical-align: top;
	width: 50%;
	min-width: 290px;
	margin-left: 1em;
}
div.textleft, div.textright {
	display: inline-block;
	vertical-align: top;
	width: calc(50% - 1em - 5px);
	min-width: 290px;
}
.photo-box {
	vertical-align: top;
	width: calc(50% - 16px);
	margin: 6px;
	display: inline-block;
	outline: 1px solid silver;
}
.photo-box p {
	padding: 0.5em 1em;
}
.sign-a, .sign-d, .sign-e, .sign-g, .sign-h, .sign-x, .sign-z {
	color: white;
	font-weight: 700;
	text-align: center;
	outline: 1px solid silver;
}
.sign-a {
	background-color: darkblue;
}
.sign-d, .sign-e {
	background-color: darkorange;
}
.sign-g {
	background-color: indigo;
}
.sign-h {
	background-color: teal;
}
.sign-x {
	background-color: maroon;
}
.sign-z {
	background-color: dimgray;
}

/* 漁港情報table */
table.port {
	line-height: 1.5em;
}
table.port th {
	white-space: nowrap;
	font-weight: bold;
	padding: 0.25em 0.5em;
	width: 7em;
	border-bottom: 1px solid white;
}
table.port td {
	padding: 0.25em 0.5em;
}
/* 海しる地図埋め込み */
iframe[src*="msil.go.jp/msil/Htm/Embed.html"] {
	outline: 1px solid var(--cocoon-x-thin-color);
}

/* 漁港インデックスページ */
.class1:before {
	content:'1'; 
	border:1px solid blue; 
	border-radius:4px; 
	color:blue; 
	background-color:whitesmoke; 
	font-weight:700; 
	padding:0 9px; 
	margin-right:0.4em;
}
.class2:before {
	content:'2'; 
	border:1px solid green; 
	border-radius:4px; 
	color:green; 
	background-color:whitesmoke; 
	font-weight:700; 
	padding:0 9px; 
	margin-right:0.4em;
}
.class3:before {
	content:'3'; 
	border:1px solid red; 
	border-radius:4px; 
	color:red; 
	background-color:whitesmoke; 
	font-weight:700; 
	padding:0 9px; 
	margin-right:0.4em;
}
.class3s:before {
	content:'特3'; 
	border:1px solid red; 
	border-radius:4px; 
	color:white; 
	background-color:red; 
	font-weight:700; 
	padding:0 1px; 
	margin-right:0.4em;
}
.class4:before {
	content:'4'; 
	border:1px solid purple; 
	border-radius:4px; 
	color:purple; 
	background-color:whitesmoke; 
	font-weight:700; 
	padding:0 9px; 
	margin-right:0.4em;
}
li.class1, li.class2, li.class3, li.class3s, li.class4 {
	font-size:0.85em;
	color:gray;
	list-style:none;
}
li.vstd {
	color: var(--text-main);
}
ul.index-list{
	display:inline-grid;
	column-gap:2em;
	grid-template-columns:repeat(2, auto);
}

/* PDF link */
a.pdf:before,
a[href*=".pdf"]:before {
	font-family: "Font Awesome 5 Free";
	font-size: 1.2rem;
	content: "\f1c1";
	color: #fc3200;
	margin-right: 0.2rem;
	display: inline-block;
	text-decoration: none;
	line-height: 1.25rem;
}

/* Wikipedia link */
a[href*="wikipedia.org"]:before {
	font-family: "Font Awesome 5 Brands";
	font-size: 1.2rem;
	content: "\f266";
	color: #666666;
	margin-right: 0.2rem;
	border: 1px solid #666666;
	border-radius: 3px;
	display: inline-block;
	text-decoration: none;
	line-height: 1.25rem;
}

/* YouTube link */
a[href*="youtube.com"]:before {
	font-family: "Font Awesome 5 Brands";
	font-size: 1.2rem;
	content: "\f167";
	color: #e80000;
	margin-right: 0.2rem;
	display: inline-block;
	text-decoration: none;
	line-height: 1.25rem;
}

/* Twitter link */
a[href*="x.com"]:before {
	font-family: "Font Awesome 5 Brands";
	font-size: 1.3rem;
	content: "\f099";
	color: #1DA1F2;
	margin-right: 0.2rem;
	display: inline-block;
	text-decoration: none;
	line-height: 1.25rem;
}

hr:not([class]) {
	margin: 0 0 1em 0;
	border-bottom: 1px solid gray;
	border-top: none;
}

li:not([class]) {
	line-height: 1.5em;
	padding-bottom: 0.5em;
}
ol:not([class]), ul:not([class]), dl:not([class]) {
	margin-bottom: 0.5em;
}
	
/* Maplink */
.maplink {
	margin: 0 1em;
	font-size: 0.8em;
	font-weight: normal;
}

/* notes */
.notes {
	border: 1px solid gray;
	margin: 0.5em 2em 1em 2em;
	padding: 0.2em 0.75em;
}

/* appendix */
.appendix {
	border: 1px solid limegreen;
	margin: 0.5em 2em 1em 2em;
	padding: 0.2em 0.75em;
}

/* Lightbox */
.slb_template_tag_item_title {
	font-size: 0.7em;
	margin-top: 0.5em;
}

/* 参考資料 */
ol.refer, ul.refer {
	margin: 0 0 1.8em 0;
	padding: 0.2em 1em;
	border: 1px solid limegreen;
}

ol.refer p, ul.refer p {
	display: none;
}

ol.refer li, ul.refer li {
	margin-left: 2em;
}

/* Leaflet Map */
.WPLeafletMap {
	outline: 1px solid darkgray;
}

/* table of contents */
.back_to_toc {
    width: 100%;
    text-align: right;
    font-size: 95%;
}

/* 検索ボタン */
.wp-element-button {
	padding: 0 1rem;
}

/* テキスト中央寄せ */
div.aligncenter {
	text-align: center;
}

/* 画像枠 */
img.aligncenter, img.alignleft, img.alignright {
	border: 1px solid silver;
}
/* 撮影情報 */
div.exif-data-container {
	margin-top: 0.2em;
	padding:3px 0.5em;
	font-size: 0.7em;
	background-color:#efefef;
	border-top:1px solid #fff;
	border-right:1px solid #ccc;
	border-bottom:1px solid #ccc;
	border-left:1px solid #fff;
	width: fit-content; 
}
span.exif-data {
	font-style: italic;
	white-space: nowrap;
	margin: 0 1em 0 0;
}
div.photo {
	position: relative;
	text-align: center;
	padding: 1rem;
	margin : 0 auto;
	width: fit-content;
	outline: 1px solid gray;
	background-color: white;
	box-shadow: 4px 4px 8px silver;
}
div.photo > .caption {
	height: 4rem;
	background: rgba(224,224,224,.4);
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.2em;
	padding: 1rem;
	margin: 0;
}
div.photo > .caption > .caption_elem_1st {
	font-size: 0.9rem;
	font-weight: bold;
	margin-right: 0.5rem;
}
div.photo > .caption > span {
	white-space: nowrap;
	margin-right: 0.25rem;
}
div.photo > .below {          /* 撮影情報を重ねて表示 */
	position: absolute;
	width: calc(100% - 2rem);
	margin-top: -4rem;
}
div.photo > .under {          /* 撮影情報を直下に表示 */
	width: 100%;
}
div.photo > .plate {          /* 撮影情報を札のように */
	width: 80%;
	max-width: 640px;
	margin: 1rem auto 0 auto;
	border-top:    1px solid white;
	border-right:  1px solid darkgray;
	border-bottom: 1px solid darkgray;
	border-left:   1px solid white;
}

/* 画像切り替え */
img.switch-img {
  /* 画像がホバーされたときに、カーソルをポインターに変更 */
	cursor: pointer;
  /* 画像のサイズやその他スタイル */
	transition: transform 0.2s ease-in-out; /* スムーズなアニメーション効果 */
	margin-right: auto; 
	margin-left: auto; 
	margin-bottom: 0;
	margin-top: 0;
	display: block; 
	clear: both; 
	outline: 2px solid #379e00;
}
div.switch-img-div::after {
	display: block;
	content: " 🔀PCはマウスオーバー、スマホはタップで画像切り替え";
	font-size: 0.75em;
	text-align: center;
	padding: 0.2em 0 0 0;
}
div.cocoen::after {
	display: block;
	line-height: 1.5em;
	content: "中央のスライダーを左右に動かして比較";
	font-size: 0.75em;
	text-align: center;
	padding: 0.2em 0 0 0;
}

/* 左寄せ画像 */
div.alignleft, img.alignleft {
	width: 50%;
	min-width: 360px;
	max-width: max-content;
	margin: 0 1em 0 0;
}
/* 右寄せ画像 */
div.alignright, img.alignright {
	width: 50%;
	min-width: 360px;
	max-width: max-content;
	margin: 0 0 0 1em;
}

/* YouTube埋め込みはセンタリング */
.video-container {
	display: block;
	margin: 0 auto;
}

/*Contact Form 7カスタマイズ*/
/*見出し欄*/
.inquiry {
 text-align:left;
 font-size:1em;
 color:#444;
 padding-right:0.25em;
}
/*入力欄*/
input.wpcf_textsp, input.wpcf_mailsp, input.wpcf_region, textarea.wpcf_content {
 width:80%;
 margin:0.25em 0 0.5em 3em;
}

/*見出し*/
.wpcf_title{
 margin:0.25em 0.5em 0.1em 0;
 font-weight:bold;
}
/*必須の調整*/
.wpcf_mandatory{
 font-size:0.85em;
 padding:0.25em;
 background:#ff9393;
 color:#fff;
 border-radius:2px;
 margin-right:0.5em;
}
/*任意の調整*/
.wpcf_option{
 font-size:0.85em;
 padding:0.25em;
 background:#93c9ff;
 color:#fff;
 border-radius:2px;
 margin-right:0.5em;
}
/*ラジオボタンを縦並び指定*/
.verticallist .wpcf7-list-item{
 display:block;
}
/*送信ボタンのデザイン変更*/
#formbtn{
 display: block;
 padding:0.5em 0;
 margin-top:1em;
 width:100%;
 background:#ffaa56;
 color:#fff;
 font-size:1.2em;
 font-weight:bold;
 border-radius:0.5em;
 border: none;
}
/*送信ボタンマウスホバー時*/
#formbtn:hover{
 background:#dfdfdf;
 color:#ffaa56;
}
/*End of Contact Form 7カスタマイズ*/

/* コメントリスト */
div.comment-body {
	border: 1px solid gray;
	padding: 1rem;
	font-size: 0.8em;
	line-height: 1.5em;
}

.menu-item-inline {
	display: inline-block;
}

#sidebar-pref ul li {
	width: 3.1em;
	text-align: center;
	white-space: nowrap;
}

#sidebar-inline ul li {
	min-width: 2em;
	text-align: center;
	white-space: nowrap;
}

#sidebar ul li a {
	margin: 0.4em 10px;
	line-height: 1.6em;
}
#sidebar-pref ul li a {
	margin: 0.2em 1px;
	padding: 0.2em 0;
}
#sidebar-inline ul li a {
	margin: 0.2em 3px;
	padding: 0.2em 3px;
}

blockquote {
	padding: 1.4em 1.8em 0.9em 1.8em;
}

.entry-content blockquote,
.article blockquote {
	margin-bottom: 0.5em;
}

.entry-card-content > .entry-card-title {
	height: 3.6rem;
}

.widget_rss li,
.widget_nav_menu li,
.wp-block-group a {
	font-size: 0.9em;
	line-height: 1.5rem;
}

.widget_categories > ul li a {
	margin: 0;
	padding: 0 10px;
	font-size: 0.9em;
}

.category-page-content p {
	font-size: 0.8em;
}

.entry-content p,blockquote {
	margin-bottom: 1em;
}

.entry-content div {
	margin-bottom: 0.5em;
}

.entry-content figure {
	margin-bottom: 0;
}

.entry-content figcaption {
	text-align: center;
	margin: 0.5em 0;
}

.entry-content h3,h4,h5,h6 {
	margin: 1.5rem 0 1rem 0;
	padding: 0.5rem 1rem;
}

.entry-content a {
	margin: 0 0.2rem;
}
div.footer-bottom-content {
	color: var(--cocoon-white-color);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
    /* 左寄せimgのサイズ */
    img.alignleft, div.imgleft {width: 50%;min-width: 320px;margin: 0 1em 0 0;}
    /* 右寄せimgのサイズ */
    img.alignright, div.imgright {width: 50%;min-width: 320px;margin: 0 0 0 1em;}
	/* img横のテキスト */
	div.textright, div.textleft {width: calc(50% - 1em - 5px);min-width:320px;}
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
    /* 左寄せimgのサイズ */
    img.alignleft, div.imgleft {max-width: 50%;min-width: 200px;margin: 0 1em 0 0;}
    /* 右寄せimgのサイズ */
    img.alignright, div.imgright {max-width: 50%;min-width: 200px;margin: 0 0 0 1em;}
	/* img横のテキスト */
	div.textright, div.textleft {width: calc(50% - 1em - 5px);min-width:200px;}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
    /* 左寄せimgのサイズ */
    img.alignleft, div.imgleft {min-width: 100%;margin: 0;}
    /* 右寄せimgのサイズ */
    img.alignright, div.imgright {min-width: 100%;margin: 0;}
	/* img横のテキスト */
	div.textright, div.textleft {min-width: 100%;margin: 0;}
}

/************************************
** ダークモード用のメディアクエリ
************************************/
@media (prefers-color-scheme: dark) {
div.photo {
	background-color: black;
}
div.photo > .caption {
	background: rgba(32,32,32,.4);
}

}
