/*
	Theme Name: Twenty Seventeen Child
	Template: twentyseventeen
*/

@import url("../twentyseventeen/style.css");

:root{
	--link-color:#0066ff; /* リンクの色 */
	--border-color:#bbb;
	--star-color:#ffb100; /* 評価の星の色 */
}

a, a h2 {
	text-decoration: none;
    color: var(--link-color);
	transition: all 0.3s;
}

a:hover{
	color: var(--link-color);
	text-decoration: underline;
}

a h2 {
	margin-bottom: 10px;
}

input[type="text"]{
	box-sizing: border-box;
}

button{
	text-wrap: nowrap;
}

div{
	padding-right: 0;
	margin:0;
}

.row{
	--bs-gutter-x: 0;
}

ul{
	padding:0;
	margin:0;
}

li{
	list-style: none;
}

.error-msg {
	color: red;
	position: absolute;
	bottom: 100%;
	right: 0%;
	text-wrap: nowrap;
}

.login-error-msg {
	color: red;
	max-width: 100%;
}

.wrapper {
	position: relative;
}

label{
	text-wrap: nowrap;
}

/* 前後ナビゲーションの簡易スタイル */
.nav-links a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: bold;
}
.nav-links a:hover {
    text-decoration: underline;
}

.nav-next{
	text-align: end;
}

/* 星評価ラジオボタンの並び（右から左へ並べることでCSS選択子を効かせる） */
.star-rating-radio {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 2rem;
}

/* 実際のラジオボタンは隠す */
.star-rating-radio input[type="radio"] {
    display: none;
}

/* 星の初期状態（グレー） */
.star-rating-radio label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 2px;
}

/* ホバー時、および選択されたボタンより左側の星を金色にする */
.star-rating-radio input[type="radio"]:checked ~ label,
.star-rating-radio label:hover,
.star-rating-radio label:hover ~ label {
    color: var(--star-color);
}

.comment-list-title {
	margin-bottom: 0.5em;
}

.comment-count {
	margin-bottom: 2em
}

.comment-list{
	display: flex;
	flex-direction: column;
	gap:30px;
	max-height: 300px;
	overflow-y: auto;
	border-top:2px solid var(--border-color);
	padding-top: 0.2em;
	padding-left: 0.2em
}

.comment{
	display: flex;
	justify-content: start;
	align-items: start;
	flex-direction: column;
}

.comment-author{
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

.comment-author::before, .comment-author::after{
	content: none;
}

.comment-author-icon{
	width:50px;
	aspect-ratio: 1 / 1;
}

.comment-author-icon img{
	object-fit: cover;
	border-radius: 10px;
}

.comment-profile{
	display: flex;
	flex-direction: column;
}

.comment-name{
	font-size: 1.0em;
	font-weight: bold;
}

.comment-email a{
	font-size: 0.8em;
	text-decoration: none !important;
	color: var(--link-color);
	box-shadow: none !important;
}
.comment-email a:hover{
	text-decoration: underline !important;
	color: var(--link-color);
}

.comment-email a:focus{
	color: var(--link-color);
}

.comment-content-header {
	display:flex;
	align-items: center;
	gap: 0.8em;
}

.comment-rating {
	font-size: 1.5em;
}

.comment-rating span{
	font-weight: bold;
	color: var(--star-color);
}

.comment-date {
	font-size: 0.8em;
}

.read-more-button {
	color:#888;
	width: max-content;
	transition: all 0.3s;
}
.read-more-button:hover {
	opacity: 0.7;
	cursor:pointer;
}

.nav-links{
	background-color: #ccc;
	display: flex;
	justify-content: space-between;
	border-radius: 4px;
	padding: 10px;
}

.form{
	position: relative;
}

table{
	caption-side:top;
}

#today {
    background-color: #ccc;
	font-weight: bold;
}

.login-input{
	width:100%;
}

#password{
	box-sizing: border-box;
	padding-right: 2.5em;
}

#view-button{
	position: absolute;
	top:50%;
	right: 0.5em;
	transform: translateY(-50%);
	transition: all 0.3s;
	padding: 5px;
}

#view-button:hover{
	cursor: pointer;
	background-color: #ddd;
}

.keyword-search-button{
	width:100% !important;
}

#search-button.keyword-search-button{
	width:45% !important;
}

.post-images-thumbnail{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.display-image-wrapper{
	aspect-ratio: 1/1;
	padding: 10px;
	box-sizing: border-box;
}

.display-image{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comment-label {
	font-weight: bold;
	display: block;
	margin-bottom: 5px;
}

.comment{
	box-sizing: border-box;
}

.keyword-input-wrapper{
	box-sizing: border-box;
}

.accordion-wrapper{
	display: flex;
	justify-content: space-around;
	align-items: center;
}

.wp-calendar-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sticky {
	position: sticky;
	top: 20px;
}

.part {
	outline: 3px solid #666666;
	border-radius: 10px;
}

.button-element{
	background-color: #fff;
	color: #000;
	padding:0.3em
}

.category-wrapper{
	display:flex;
	justify-content: space-between;
	align-items: center; 
	width: max-content;
}

.tom-wrapper.search-box{
	width:100%;
}

.tom-wrapper {
	min-width: 200px;
	flex-grow: 1;
	height: 39.69px;
}

.ts-wrapper {
	height:100%;
	box-sizing: border-box;
}

.ts-control {
	height:100%;
	box-sizing: border-box;
}

.ts-control input{
	color: #666666;
}
.ts-control input::placeholder{
	color: #727272;
}

input::placeholder{
	color: #727272;
}

.ts-wrapper .ts-control{
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

input[type="text"], input[type="password"], textarea{
	border: 1px solid #d0d0d0;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus, .ts-wrapper.focus .ts-control{
	border-color: #333;
	box-shadow: 0 0 0 .25rem rgba(13, 113, 253, 0.25);
}

.callback {
	margin: 3rem;
	padding: 1rem;
	border: 1px dotted #333;
}

.callback p {
	margin: 0 0 .25rem;
}

input[name="s"]{
	font-size:13px;
}

.key-search-button-wrapper{
	display: flex;
	align-items: center;
	justify-content: space-between;
}

input[type="submit"], input[type="button"]{
	padding: 0 !important;
	width: 45% !important;
	aspect-ratio: 7/4;
	max-height: 50px;
	padding-top: 0.7em !important;
	padding-bottom: 0.7em !important;
	font-size: 1rem !important;
}

.all-tags-list{
	max-height: 180px;
	overflow-y: auto;
	border-top:2px solid var(--border-color);
	padding: 0.8em
}

.button{
	background-color: #222;
    border: 0;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    padding: 1em 2em;
    text-shadow: none;
    transition: background 0.2s;
	text-align: center;
}

.pagination {
	display: flex;
	justify-content: space-between;
	align-items:center;
	border:  none;
	flex-wrap: nowrap;
}



a.page-numbers:not(.first):not(.prev):not(.next):not(.last),
span.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1em !important;
	color: var(--link-color);
	margin: 0 4px;
	padding: 0px !important;
	box-sizing: border-box;
}

.first, .prev, .next, .last {
	display: flex;
	justify-content: center;
	align-items: center;

	font-size: 1.15em !important;

	padding: 0.25em !important;
}

.page-numbers{
	transition: all 0.3s !important;
}
.page-numbers:not(.dots):not(.current):hover{
	opacity:0.6;
	text-decoration: none;
}
.page-numbers:not(.dots):not(.current):focus{
	opacity:0.6;
	text-decoration: none;
	box-shadow: none !important;
}

.dots{
	color:#777 !important;
}

a.page-numbers:hover {
	color:#0284c7 !important;
}

.prev.page-numbers,
.next.page-numbers,
.page-numbers.dots {
	float: none !important;
	background: none !important;
	display: flex !important;
	margin:0;
	border: none;
}

.prev.page-numbers,
.next.page-numbers {
	border-radius: 50%;
}

.first, .last{
	min-width: 32.19px;
	min-height: 32.19px;
}

.prev, .next{
	min-width: 23.13px;
	min-height: 32.19px;
}

.dots{
	min-width: 15.41px;
	min-height: 25.56px;
}

.pages .page-numbers{
	min-width: 20.86px;
}

.first i, .prev i, .next i, .last i{
	font-size: 1.5em;
}

a.prev:hover, a.next:hover {
	text-decoration: none !important;
}

.page-numbers.current {
    color: #a0a0a0 !important;
    display: flex;
}

.prev.page-numbers:hover,
.next.page-numbers:hover{
	color:#000;
}

.pagination a:not(.prev):not(.next):hover{
	box-shadow: none !important;
}

.error {
	position: absolute;
	top:100%;
	color: red;
}

label {
	margin-bottom: 0;
}

/* サジェストリスト全体のデザイン（検索ボックスの真下に浮かせる） */
.custom-suggest-list {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* 履歴キーワード1行のデザイン */
.custom-suggest-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-align: left;
}

/* マウスを乗せたときにわかりやすく色を変える */
.custom-suggest-list li:hover {
    background-color: #f5f5f5;
}

.bookmark-btn{
	white-space: nowrap;
}

.email-link {
	overflow-wrap: anywhere;
}

.tel-link {
	text-wrap: nowrap
}

.bookmark-entry-title{
	font-weight:bold;
	font-size: 1.2rem;
	background-color: #e0e0e0;
	padding: 20px;
	border-radius: 10px;
}

.result {
	background-color: #e0e0e0;
	padding: 20px;
	border-radius: 10px;
}

.w-95{
	width:95%;
	padding-left: 0;
	padding-right: 0;
}

#search-button{
	width: 100% !important;
}

.box26 {
    position: relative;
    margin: 2em 0;
    padding: 1em;
    border: 2px solid #222;
    border-radius: 8px;
}
.box26 .box-title {
    position: absolute;
    display: inline-block;
    top: -13px;
    left: 10px;
    padding: 0 9px;
    line-height: 1;
    font-size: 19px;
    background: #FFF;
    color: #222;
    font-weight: bold;
}
.box26 p {
    margin: 0; 
    padding: 0;
}

@media screen and (max-width:1390px) {
	.key-search-button-wrapper{
		width: 100%;
	}
	.bookmark-btn{
		width: 100%;
	}
}

@media screen and (max-width:992px) {
	.error-msg {
		bottom: auto;
		top: 100%;
		right: 0%;
		text-wrap: nowrap;
	}
	.sticky {
		position: static;
	}
	.tom-wrapper {
		width: 66.6666%;
	}

	.category-wrapper{
		width: 100%;
	}
}