@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（coral-trip 旅行ブログ用カスタマイズ）
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** coral-trip デザイン（モック案準拠：コーラル × ラグーン）
************************************/

/* ---------- 1. 配色・文字 ---------- */
body {
	--ct-coral: #B8432E;        /* アクセント（PICK UP・グルメ） */
	--ct-coral-dark: #943423;
	--ct-teal: #0F6E78;         /* リンク・国内旅行 */
	--ct-teal-dark: #0A5259;
	--ct-navy: #123E47;         /* フッター・国内ホテル */
	--ct-sand: #8A5A12;         /* 海外・ボラボラ */
	--ct-ink: #1B2A33;          /* 本文 */
	--ct-muted: #55636C;        /* 補足 */
	--ct-line: #E6E1D8;         /* 罫線 */
	--ct-bg: #FBFAF7;           /* ページ背景（砂浜色） */
	--ct-panel: #F1ECE3;        /* 特集などの面 */
	--ct-teal-bg: #E5F1F2;      /* タグ */

	background-color: var(--ct-bg) !important;
	color: var(--ct-ink);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
a {
	color: var(--ct-teal);
}
a:hover {
	color: var(--ct-teal-dark);
}
/* 見出し：M PLUS Rounded 1c（やわらかい丸ゴシック） */
.ct-serif,
.entry-title,
.article h2,
.article h3,
.list-title,
.ct-top__pickup-title,
.ct-top__cat-name,
.ct-section-title,
.widget-sidebar-title,
.sidebar h3 {
	font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
	letter-spacing: .03em;
}
/* ロゴ・英字ラベル：Montserrat */
.site-name-text,
.ct-top__eyebrow,
#footer .site-name-text {
	font-family: "Montserrat", "M PLUS Rounded 1c", sans-serif;
	letter-spacing: .06em;
}

/* ---------- 2. ヘッダー・メニュー ---------- */
#header-container,
#header,
.header-container-in {
	background-color: #FFFFFF !important;
}
#header-container {
	border-bottom: 1px solid var(--ct-line);
}
.header-in {
	min-height: auto;
}
.logo-header {
	padding: 22px 0 10px;
}
.site-name-text,
.site-name-text-link {
	color: var(--ct-teal) !important;
	font-weight: 700;
	letter-spacing: 0.06em;
}
/* ロゴ：波のマーク＋大文字・広めの文字間（リゾート風） */
.logo-header .site-name-text {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-size: 28px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .26em;
	color: var(--ct-navy) !important;
}
.logo-header .site-name-text::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='%230F6E78'/%3E%3Cpath d='M7 22c3-3 6-3 9 0s6 3 9 0 6-3 9 0' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M10 28c2.5-2.4 5-2.4 7.5 0s5 2.4 7.5 0 5-2.4 7.5 0' fill='none' stroke='%23E9B8A8' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='27' cy='13' r='3.2' fill='%23E9B8A8'/%3E%3C/svg%3E") no-repeat center / contain;
}
#footer .site-name-text {
	text-transform: uppercase;
	letter-spacing: .26em;
	font-weight: 600;
	font-size: 18px;
}
@media screen and (max-width: 480px) {
	.logo-header .site-name-text {
		font-size: 21px;
		letter-spacing: .2em;
		gap: 10px;
	}
	.logo-header .site-name-text::before {
		width: 32px;
		height: 32px;
	}
}
.tagline {
	color: var(--ct-muted) !important;
	font-size: 13px;
	margin-bottom: 8px;
}
#navi,
#navi .navi-in {
	background-color: #FFFFFF !important;
}
#navi .navi-in > ul > li > a {
	color: var(--ct-ink) !important;
	font-weight: 500;
}
#navi .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li.current-menu-item > a {
	color: var(--ct-coral) !important;
	background: transparent;
}
#navi .navi-in > ul .sub-menu {
	background: #FFFFFF;
	border: 1px solid var(--ct-line);
}
/* PC：メニューを文字幅に合わせて右寄せ・等間隔に（Cocoon標準の固定幅をやめる） */
@media screen and (min-width: 835px) {
	#navi .navi-in > ul.menu-pc {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		align-items: center;
		gap: 4px;
	}
	#navi .navi-in > ul.menu-pc > li {
		width: auto !important;
		flex: none;
	}
	#navi .navi-in > ul.menu-pc > li > a {
		position: relative;
		padding: 0 18px;
		font-size: 15px;
		letter-spacing: .04em;
	}
	/* マウスを乗せると、文字の下にコーラルの線 */
	#navi .navi-in > ul.menu-pc > li > a::after {
		content: "";
		position: absolute;
		left: 18px;
		right: 18px;
		bottom: 14px;
		height: 2px;
		border-radius: 2px;
		background: var(--ct-coral);
		transform: scaleX(0);
		transition: transform .2s;
	}
	#navi .navi-in > ul.menu-pc > li > a:hover::after,
	#navi .navi-in > ul.menu-pc > li.current-menu-item > a::after {
		transform: scaleX(1);
	}
}

/* ---------- 3. メイン・サイドバーの枠 ---------- */
.main,
.sidebar {
	background-color: transparent;
	border: none;
}
.content-in {
	gap: 0;
}

/* ---------- 4. 記事一覧のカード ---------- */
.entry-card-wrap {
	background: #FFFFFF;
	border: 1px solid var(--ct-line) !important;
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .2s, border-color .2s, transform .2s;
}
.entry-card-wrap:hover {
	background: #FFFFFF;
	border-color: #BFDCDF !important;
	box-shadow: 0 6px 18px rgba(27, 42, 51, .08);
	transform: translateY(-2px);
}
.entry-card-wrap .entry-card-thumb {
	margin: 0;
}
.entry-card-wrap .card-thumb img {
	object-fit: cover;
}
.entry-card-content {
	padding: 4px 4px 0;
}
.entry-card-title {
	color: var(--ct-ink);
	font-weight: 700;
	line-height: 1.6;
}
.entry-card-wrap:hover .entry-card-title {
	color: var(--ct-teal);
}
.entry-card-snippet {
	color: var(--ct-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.e-card-info,
.entry-card-meta {
	color: var(--ct-muted);
}
/* 縦型カード（Cocoon設定で「縦型カード2列／3列」を選んだとき） */
.ecb-entry-border .entry-card-wrap,
.vertical-card-2 .entry-card-wrap,
.vertical-card-3 .entry-card-wrap {
	padding: 0;
}
.vertical-card-2 .entry-card-content,
.vertical-card-3 .entry-card-content {
	padding: 14px 16px 16px;
}
/* 横長カード（デフォルト）のとき */
.entry-card-wrap.a-wrap {
	padding: 14px;
}
.vertical-card-2 .entry-card-wrap.a-wrap,
.vertical-card-3 .entry-card-wrap.a-wrap {
	padding: 0;
}

/* カテゴリーラベル（色は functions.php がカテゴリー名から自動で付けます） */
.cat-label {
	top: 10px;
	left: 10px;
	padding: 2px 10px;
	border: none;
	border-radius: 999px;
	background-color: var(--ct-muted);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	opacity: 1;
}

/* ページ送り */
.pagination .page-numbers {
	border-radius: 10px;
	border-color: var(--ct-line);
	background: #FFFFFF;
	color: var(--ct-ink);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background-color: var(--ct-teal);
	border-color: var(--ct-teal);
	color: #FFFFFF;
}

/* ---------- 5. トップ上部（[ct_top]） ---------- */
.ct-top {
	margin: 0 0 2.5em;
}
.ct-top__pickup {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 380px;
	border-radius: 20px;
	overflow: hidden;
	background: #8FC3C9;
	color: inherit;
	text-decoration: none;
}
.ct-top__pickup img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ct-top__pickup-card {
	position: relative;
	margin: 24px;
	max-width: 560px;
	background: rgba(255, 255, 255, .96);
	border-radius: 16px;
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ct-top__pickup:hover .ct-top__pickup-title {
	color: var(--ct-teal);
}
.ct-top__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--ct-coral);
}
.ct-top__pickup-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--ct-ink);
}
.ct-top__pickup-meta {
	font-size: 13px;
	color: var(--ct-muted);
}
.ct-top__cats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 18px;
}
.ct-top__cat {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #FFFFFF;
	border: 1px solid var(--ct-line);
	border-radius: 14px;
	padding: 12px 14px;
	color: var(--ct-ink);
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s;
}
.ct-top__cat:hover {
	color: var(--ct-ink);
	border-color: #BFDCDF;
	box-shadow: 0 4px 14px rgba(27, 42, 51, .07);
}
.ct-top__cat-img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ct-teal-bg);
}
.ct-top__cat-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ct-top__cat-name {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
}
.ct-top__cat-count {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--ct-muted);
}
.ct-section-title {
	font-size: 24px;
	font-weight: 800;
	margin: 1.6em 0 .8em;
}
/* ウィジェット内で使うときの見出し・余白の打ち消し */
.widget:has(.ct-top) > .widget-title,
.widget:has(.ct-top) > h3 {
	display: none;
}

/* ---------- 6. 記事ページ ---------- */
/* 本文の文字の太さを標準に（Cocoon のフォント設定で太字になるのを防ぐ） */
body,
.entry-content,
.article p,
.article li,
.sidebar,
.widget {
	font-weight: 400;
}
.article strong,
.article b {
	font-weight: 700;
}
/* 記事・固定ページは白い角丸の枠の中に */
.single .main,
.page .main {
	background-color: #FFFFFF !important;
	border: 1px solid var(--ct-line) !important;
	border-radius: 18px;
	padding: 2.2em 2.4em;
}
@media screen and (max-width: 834px) {
	.single .main,
	.page .main {
		padding: 1.4em 1.1em;
		border-radius: 14px;
	}
}
/* トップが固定ページのときは、カードを砂浜色の上に並べる */
.home.page .main {
	background-color: transparent !important;
	border: none !important;
	padding: 0;
}
/* トップページでは固定ページのタイトル・日付・シェアボタンを出さない */
.home.page .article-header .entry-title,
.home.page .entry-title,
.home.page .date-tags,
.home.page .sns-share.ss-top,
.home.page .sns-share.ss-bottom,
.home.page .sns-follow,
.home.page .footer-meta,
.front-top-page .article .entry-title,
.front-top-page .article .date-tags,
.front-top-page .article .sns-share,
.front-top-page .article .sns-follow,
.front-top-page .article .footer-meta {
	display: none !important;
}
.front-top-page .main,
.front-top-page .article {
	background-color: transparent !important;
	border: none !important;
	padding: 0 !important;
}
.home.page .article {
	background: transparent;
	padding: 0;
}
/* トップのカテゴリー別新着（Cocoon の新着記事リスト）の見出し */
.home.page .article h2 {
	text-align: left;
}
/* トップのカテゴリー別新着リスト：白いカードに */
.front-top-page .article .a-wrap,
.home.page .article .a-wrap {
	background: #FFFFFF;
	border: 1px solid var(--ct-line);
	border-radius: 12px;
	color: var(--ct-ink);
	font-weight: 500;
	transition: border-color .2s, box-shadow .2s;
}
.front-top-page .article .a-wrap:hover,
.home.page .article .a-wrap:hover {
	background: #FFFFFF;
	border-color: #BFDCDF;
	box-shadow: 0 4px 14px rgba(27, 42, 51, .07);
	color: var(--ct-teal);
}
.front-top-page .article .a-wrap *,
.home.page .article .a-wrap * {
	color: inherit;
	font-weight: inherit;
}
.entry-title {
	font-weight: 700;
	line-height: 1.5;
	color: var(--ct-ink);
}
/* H2：青緑の下線 */
.article h2 {
	background: none;
	border: none;
	border-bottom: 3px solid var(--ct-teal);
	border-radius: 0;
	padding: .4em 0 .5em;
	font-weight: 700;
	color: var(--ct-ink);
}
/* H3：左にコーラルの線 */
.article h3 {
	border: none;
	border-left: 5px solid var(--ct-coral);
	border-radius: 0;
	padding: .2em 0 .2em .8em;
	background: none;
	color: var(--ct-ink);
}
/* H4：点線の下線 */
.article h4 {
	border: none;
	border-bottom: 2px dotted var(--ct-line);
	padding: 0 0 .3em;
}
/* 目次 */
.toc {
	border: 1px solid var(--ct-line);
	border-radius: 14px;
	background: #FFFFFF;
	padding: 1em 1.4em;
}
.toc-title {
	font-weight: 700;
	color: var(--ct-ink);
}
.toc a {
	color: var(--ct-teal);
}
/* カテゴリー・タグのリンク */
.entry-categories a,
.entry-tags a,
.tagcloud a {
	border-radius: 999px;
	border: none;
	font-size: 13px;
	padding: 3px 12px;
}
.entry-categories a {
	background-color: var(--ct-muted);
	color: #FFFFFF;
}
.entry-tags a,
.tagcloud a {
	background-color: var(--ct-teal-bg);
	color: var(--ct-teal);
}
.entry-tags a:hover,
.tagcloud a:hover {
	background-color: #CFE5E7;
	color: var(--ct-teal-dark);
}
/* 写真は角を丸く */
.article .wp-block-image img,
.article .eye-catch img {
	border-radius: 12px;
}
/* 著者ボックス */
.author-box {
	background: var(--ct-panel);
	border: none;
	border-radius: 16px;
}

/* ---------- 7. 広告 ---------- */
.ad-label {
	font-size: 12px;
	letter-spacing: .1em;
	color: var(--ct-muted);
}

/* ---------- 8. サイドバー ---------- */
.sidebar h3,
.widget-sidebar-title,
.sidebar .widget-title {
	background: none !important;
	color: var(--ct-ink) !important;
	border: none;
	border-bottom: 2px solid var(--ct-ink);
	border-radius: 0;
	padding: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
}
.sidebar .widget {
	margin-bottom: 2.2em;
}
.search-box .search-submit,
.wp-block-search__button {
	background-color: var(--ct-teal) !important;
	color: #FFFFFF !important;
	border: none;
	border-radius: 0 10px 10px 0;
}
.search-edit,
.wp-block-search__input {
	border-radius: 10px;
	border-color: #C9C1B3;
}
/* 新着・人気記事ウィジェット */
.widget-entry-cards .widget-entry-card-link,
.new-entry-card-link,
.popular-entry-card-link {
	border-radius: 10px;
}
.widget-entry-card-title,
.new-entry-card-title,
.popular-entry-card-title {
	color: var(--ct-ink);
	font-weight: 500;
}

/* ---------- 9. フッター ---------- */
#footer {
	background-color: var(--ct-navy) !important;
	color: #E9F2F3 !important;
}
#footer a,
#footer .footer-bottom a,
#footer .site-name-text {
	color: #E9F2F3 !important;
}
#footer .copyright {
	color: #C3D6D9;
}
.navi-footer-in > .menu-footer li {
	border-left-color: rgba(255, 255, 255, .3);
}
/* フッター：コンパクトに（ウィジェットは右寄せの1列、文字は小さめ） */
#footer .footer-in {
	padding-top: 24px;
	padding-bottom: 20px;
}
#footer .footer-widgets {
	margin-bottom: 8px;
}
#footer .widget-footer-title,
#footer .footer-widgets h3 {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #C3D6D9 !important;
	background: none;
	border: none;
	padding: 0 0 6px;
	margin-bottom: 6px;
}
#footer .footer-widgets ul li a,
#footer .footer-widgets .widget_pages a {
	padding: 4px 0;
	font-size: 14px;
	line-height: 1.7;
	background: none;
}
#footer .footer-widgets ul li a:hover {
	text-decoration: underline;
	background: none;
}
/* ロゴ・メニュー・コピーライトを1段に */
#footer .footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 16px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .15);
}
/* Cocoon はロゴを絶対配置で重ねるため、通常の並びに戻す */
#footer .footer-bottom-logo,
#footer .footer-bottom-content {
	position: static !important;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	transform: none !important;
}
#footer .footer-bottom-logo {
	flex: none;
}
#footer .footer-bottom-logo .logo,
#footer .footer-bottom-logo .site-name {
	margin: 0;
	padding: 0;
}
#footer .footer-bottom-logo .site-name-text {
	font-size: 20px;
	line-height: 1.2;
}
#footer .footer-bottom-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}
#footer .navi-footer,
#footer .navi-footer-in {
	width: auto;
	margin: 0;
}
/* ウィジェットが空のときの上の余白を詰める */
#footer .footer-widgets:empty,
#footer .footer-widgets:not(:has(.widget)) {
	display: none;
}
#footer .navi-footer-in > .menu-footer li a {
	font-size: 13px;
	font-weight: 500;
	padding: 0 12px;
}
#footer .copyright {
	font-size: 12px;
	margin-top: 6px;
}
@media screen and (max-width: 834px) {
	#footer .footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
	#footer .footer-bottom-content {
		align-items: flex-start;
		text-align: left;
	}
	#footer .navi-footer-in > .menu-footer {
		justify-content: flex-start;
	}
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
	.ct-top__pickup {
		min-height: 300px;
	}
}

/*834px以下*/
@media screen and (max-width: 834px){
	/* 横はみ出し防止 */
	html,
	body {
		overflow-x: hidden;
	}
	.ct-top,
	.ct-top__pickup,
	.ct-top__cats {
		max-width: 100%;
		box-sizing: border-box;
	}
	.ct-top__pickup-card {
		max-width: calc(100% - 28px);
		box-sizing: border-box;
	}
	.ct-top__cat {
		min-width: 0;
	}
	.ct-top__cat-name {
		min-width: 0;
		overflow-wrap: anywhere;
	}
	/* メニュー：1行の横スクロール（指で横に流せるボタン） */
	/* PC用メニューは隠し、スマホ用メニュー（menu-mobile）だけを横スクロールで表示 */
	#navi .navi-in > ul.menu-pc {
		display: none !important;
	}
	#navi .navi-in > ul.menu-mobile {
		display: flex !important;
		flex-wrap: nowrap !important;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 8px;
		padding: 8px 12px;
		height: auto;
	}
	#navi .navi-in > ul.menu-mobile::-webkit-scrollbar {
		display: none;
	}
	#navi .navi-in > ul.menu-mobile > li {
		flex: none;
		width: auto !important;
		height: auto;
	}
	#navi .navi-in > ul.menu-mobile > li > a {
		height: auto;
		padding: 6px 14px;
		border: 1px solid var(--ct-line);
		border-radius: 999px;
		font-size: 13px;
		line-height: 1.6;
		white-space: nowrap;
	}
	.ct-top__pickup {
		min-height: 240px;
	}
	.ct-top__pickup-card {
		margin: 14px;
		padding: 14px 16px;
	}
	.ct-top__pickup-title {
		font-size: 18px;
	}
	.ct-top__cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
	.logo-header {
		padding: 12px 0 6px;
	}
	.tagline {
		display: none;
	}
	.ct-top__cat {
		padding: 10px;
		gap: 10px;
	}
	.ct-top__cat-img {
		width: 44px;
		height: 44px;
	}
	.ct-top__cat-name {
		font-size: 14px;
	}
	.cat-label {
		font-size: 10px;
		padding: 1px 8px;
		top: 6px;
		left: 6px;
	}
}
