/*
Theme Name: Plaisir Design
Description: Plaisir Design（プレジールデザイン）専用の軽量テーマ。旧TCDテーマ「precious」の見た目を引き継ぎ、カスタマイザーやテーマオプションを持たない作りにしたもの。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: EDITH LLC
Text Domain: plaisir
*/

/* ---------- base ---------- */
:root {
	--text: #333;
	--muted: #888;
	--line: #ddd;
	--accent-line: #ccc;
	--bg-soft: #f2f2f2;
	--footer: #999;
	--width: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Century Gothic", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	color: var(--text);
	background: #fff;
	font-size: 14px;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--text); }
a:hover { color: #000; }
.inner { width: 100%; max-width: var(--width); margin: 0 auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- header ---------- */
#header { position: relative; height: 112px; display: flex; align-items: flex-end; justify-content: space-between; }
#logo { margin: 0; line-height: 1; align-self: flex-start; margin-top: -18px; }
#logo img { display: block; }

#global_menu ul { list-style: none; margin: 0; padding: 0; display: flex; }
#global_menu li { position: relative; }
#global_menu a {
	display: block; height: 64px; line-height: 60px; padding: 0 20px;
	font-size: 14px; text-decoration: none; border-bottom: 4px solid #fff;
	transition: border-color .3s;
}
#global_menu a:hover,
#global_menu .current-menu-item > a,
#global_menu .current-menu-ancestor > a { border-bottom-color: #aaa; }
#global_menu .sub-menu {
	display: none; position: absolute; top: 64px; left: 0; z-index: 50;
	flex-direction: column; border-top: 1px solid var(--accent-line);
}
#global_menu li:hover > .sub-menu,
#global_menu li:focus-within > .sub-menu { display: flex; }
#global_menu .sub-menu a {
	height: auto; line-height: 1.8; padding: 10px 20px 8px; width: 190px;
	font-size: 12px; background: #fff; border: 1px solid var(--accent-line); margin-top: -1px;
}
#global_menu .sub-menu a:hover { background: #e2e2e2; }
.menu_button { display: none; }

/* ---------- top ---------- */
#index_top_wrap { background: var(--bg-soft); }
#index_top { padding-top: 10px; }
#slider { position: relative; display: grid; }
#slider .slide { grid-area: 1 / 1; width: 100%; display: block; opacity: 0; transition: opacity 1s; }
#slider .slide.is-active { opacity: 1; }
#index_banner {
	list-style: none; margin: 0; padding: 22px 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
#index_banner a { display: block; transition: opacity .3s; }
#index_banner a:hover { opacity: .7; }
#index_banner img { display: block; width: 100%; }

/* ---------- layout ---------- */
#main_contents { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0 40px; }
#main_col { flex: 1 1 0; min-width: 0; max-width: 800px; padding: 50px 0; }
#main_col.is-wide { max-width: none; }
#side_col { flex: 0 0 300px; padding: 50px 0; }

/* ---------- breadcrumb ---------- */
#bread_crumb { flex: 0 0 100%; list-style: none; margin: 0; padding: 20px 0 0; font-size: 12px; color: #aaa; }
#bread_crumb li { display: inline; }
#bread_crumb li + li::before { content: "›"; margin: 0 10px; color: #bbb; }
#bread_crumb a { color: var(--muted); text-decoration: none; }
#bread_crumb a:hover { text-decoration: underline; }

/* ---------- headline ---------- */
.headline1 { border-bottom: 1px solid var(--line); margin: 0 0 25px; padding: 0; font-size: 18px; font-weight: bold; line-height: 1.6; }
.headline1 span { display: inline-block; border-bottom: 4px solid var(--accent-line); padding: 0 0 10px; margin-bottom: -1px; }
.headline1 a { text-decoration: none; }

/* ---------- post body ---------- */
.post { line-height: 2; word-wrap: break-word; }
.post::after { content: ""; display: block; clear: both; }
.post p { margin: 0 0 1.5em; }
.post h2 { font-size: 22px; margin: 1.8em 0 .8em; line-height: 1.5; }
.post h3 { font-size: 18px; margin: 1.8em 0 .8em; line-height: 1.5; }
.post h4 { font-size: 16px; margin: 1.5em 0 .6em; }
.post ul, .post ol { margin: 0 0 1.5em 1.5em; padding: 0; }
.post li { margin: 0 0 .3em; }
.post table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; }
.post th, .post td { border: 1px solid var(--line); padding: 10px 15px; text-align: left; }
.post th { background: var(--bg-soft); }
.post blockquote { margin: 0 0 1.5em; padding: 15px 20px; background: var(--bg-soft); border-left: 4px solid var(--accent-line); }
.post figure { margin: 0 0 1.5em; }
.post .wp-block-image img { height: auto; }
.post .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post .alignleft { float: left; margin: 0 20px 15px 0; }
.post .alignright { float: right; margin: 0 0 15px 20px; }
.post_image { margin: 0 0 25px; }

/* contact form 7 */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; padding: 10px; border: 1px solid var(--accent-line); border-radius: 3px; font: inherit; font-size: 16px;
}
.wpcf7 input[type="submit"] {
	background: #555; color: #fff; border: 0; border-radius: 3px; padding: 12px 50px; font-size: 15px; cursor: pointer; transition: background .3s;
}
.wpcf7 input[type="submit"]:hover { background: #333; }

/* ---------- post title / date ---------- */
#post_title { display: flex; align-items: center; gap: 15px; margin: 0 0 25px; }
#post_title h1 { margin: 0; font-size: 18px; line-height: 1.6; }
.post_date {
	flex: 0 0 54px; width: 54px; height: 54px; margin: 0; background: #bbb; color: #fff;
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	font-size: 12px; line-height: 1.3;
}
#post_meta { list-style: none; margin: 30px 0; padding: 10px 15px; background: var(--bg-soft); font-size: 12px; display: flex; gap: 20px; }
#post_meta a { color: var(--muted); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; font-size: 13px; }

/* ---------- post list (コラム) ---------- */
#post_list { list-style: none; margin: 0; padding: 0; }
#post_list li { display: flex; gap: 20px; padding: 0 0 25px; margin: 0 0 25px; border-bottom: 1px solid var(--line); }
#post_list .image { flex: 0 0 200px; }
#post_list .info { flex: 1; min-width: 0; }
#post_list .post_date { float: left; margin: 0 15px 10px 0; }
#post_list .title { font-size: 16px; margin: 0 0 10px; line-height: 1.5; }
#post_list .title a { text-decoration: none; }
#post_list .excerpt { clear: both; margin: 0; font-size: 13px; color: #666; }

/* ---------- products ---------- */
#product_list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 248px)); gap: 20px 23px; }
#product_list li { border: 1px solid var(--line); background: #fff; }
#product_list .image { display: block; background: #fff; }
#product_list .image img { display: block; width: 100%; transition: opacity .3s; }
#product_list .image:hover img { opacity: .5; }
#product_list .title { font-size: 14px; margin: 0; }
#product_list .title a { display: block; min-height: 60px; padding: 10px 8px; background: var(--footer); color: #fff; text-decoration: none; transition: background .3s; }
#product_list .title a:hover { background: #333; }

.product_title { font-size: 20px; margin: 0 0 20px; }
#product_image img { display: block; border: 15px solid var(--bg-soft); margin: 0 auto 30px; }

/* ---------- news ---------- */
#news_list { list-style: none; margin: 0 0 40px; padding: 0; }
#news_list li { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; padding: 5px; background: var(--bg-soft); border-radius: 4px; font-size: 13px; }
#news_list .date { flex: 0 0 90px; padding: 10px 0; background: var(--footer); color: #fff; border-radius: 4px; text-align: center; font-size: 12px; line-height: 1; }
#news_list .title { flex: 1; text-decoration: none; padding: 7px 0; }
#news_list .title:hover { text-decoration: underline; }
#index_news { margin-top: 50px; }

.back_link { text-align: right; font-size: 12px; margin: 0 0 20px; }
.back_link a { display: inline-block; padding: 6px 20px; background: #555; color: #fff; text-decoration: none; border-radius: 3px; }
.back_link a:hover { background: #333; }

/* ---------- pagination ---------- */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 5px; margin: 20px 0; }
.pagination .page-numbers { display: inline-block; min-width: 36px; padding: 8px 10px; text-align: center; background: var(--bg-soft); text-decoration: none; font-size: 13px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: #555; color: #fff; }

/* ---------- side ---------- */
.side_widget { margin: 0 0 40px; font-size: 13px; }
.side_headline { font-size: 14px; margin: 0 0 15px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.side_widget ul { list-style: none; margin: 0; padding: 0; }
.side_widget li { padding: 6px 0; border-bottom: 1px dotted var(--line); }

/* ---------- comments ---------- */
#comments { margin: 40px 0 0; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .comment { padding: 15px; margin: 0 0 10px; background: var(--bg-soft); }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 8px; border: 1px solid var(--accent-line); font: inherit; }

/* ---------- footer ---------- */
#return_top {
	position: fixed; right: 0; bottom: 25px; z-index: 99; width: 36px; height: 100px; background: var(--accent-line);
	opacity: 0; pointer-events: none; transition: opacity .3s, background .3s;
}
#return_top::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -2px 0 0 -5px;
	border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg);
}
#return_top.is-visible { opacity: 1; pointer-events: auto; }
#return_top:hover { background: #aaa; }

#copyright { background: var(--footer); color: #fff; font-size: 12px; }
#copyright_inner { min-height: 50px; display: flex; align-items: center; gap: 20px; }
#copyright a { color: #fff; text-decoration: none; }
#copyright a:hover { text-decoration: underline; }
#copyright p { margin: 0 0 0 auto; }
#footer_menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
#social_link { list-style: none; margin: 0; padding: 0; order: 2; }
#copyright p { order: 3; }
#social_link .rss a { display: inline-block; padding: 2px 8px; border: 1px solid rgba(255,255,255,.6); border-radius: 3px; font-size: 11px; }

/* ---------- tablet / smartphone ---------- */
@media (max-width: 1180px) {
	.inner { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 770px) {
	#header { height: auto; min-height: 60px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
	#logo { margin-top: 0; }
	#logo img { width: 170px; }

	.menu_button {
		display: block; position: relative; width: 44px; height: 44px; border: 0; background: #555; border-radius: 3px; cursor: pointer; padding: 0;
	}
	.menu_button > span:first-child,
	.menu_button > span:first-child::before,
	.menu_button > span:first-child::after {
		position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; content: "";
	}
	.menu_button > span:first-child { top: 21px; }
	.menu_button > span:first-child::before { left: 0; top: -6px; }
	.menu_button > span:first-child::after { left: 0; top: 6px; }
	#global_menu { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 100; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
	#global_menu.is-open { display: block; }
	#global_menu ul { flex-direction: column; }
	#global_menu a { height: auto; line-height: 1.5; padding: 14px 20px; border-bottom: 1px solid var(--line); }
	#global_menu .sub-menu { display: flex; position: static; border: 0; }
	#global_menu .sub-menu a { width: auto; border: 0; border-bottom: 1px solid var(--line); margin: 0; padding-left: 35px; }

	#index_top { padding-top: 0; }
	#slider { margin: 0 -20px 20px; }
	#index_banner { grid-template-columns: 1fr; padding: 0 0 20px; gap: 20px; }
	#index_banner a { border: 7px solid #fff; }

	#main_contents { display: block; }
	#bread_crumb { margin: 0 -20px; padding: 13px 20px; background: var(--bg-soft); font-size: 10px; color: #000; }
	#bread_crumb a { color: #000; }
	#main_col { padding: 25px 0 20px; }
	#side_col { padding: 10px 0 30px; }
	.headline1 span { padding-bottom: 5px; }

	#post_list li { flex-direction: column; gap: 10px; }
	#post_list .image { flex: none; }
	#product_list { grid-template-columns: repeat(2, 1fr); gap: 15px; }
	#product_image img { border-width: 8px; }
	#news_list li { flex-direction: column; align-items: stretch; gap: 5px; }
	#news_list .date { flex: none; width: 90px; }
	.post .alignleft, .post .alignright { float: none; margin: 0 auto 15px; display: block; }

	#copyright_inner { flex-direction: column; justify-content: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; text-align: center; }
	#copyright p { margin: 0; }
	#return_top { width: 40px; height: 40px; bottom: 15px; right: 10px; border-radius: 3px; }
}

