/*
Theme Name: XWRITE child
Version: 1.0.0
Template: xwrite
*/

/*サイト全体の文字調整*/
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
  font-weight: 400 !important;  /* 通常の太さに固定 */
  font-feature-settings: "palt" 0, "halt" 1;
  letter-spacing: 0.03em;
  line-height: 1.8;
}
/*TOPの投稿数の中央寄せ*/
.my-category-count-list {
  display: flex;              /* フレックスボックスを使う */
  justify-content: center;    /* 横方向の中央寄せ */
  align-items: center;        /* 縦方向の中央寄せ */
  text-align: center;         /* テキスト中央 */
}
.my-category-count {
  font-weight: bold;
  color: #333;
}
/*リンク画像をオンマウスでアルファ*/
a img {
  transition: opacity 0.3s ease;
}

a:hover img {
  opacity: 0.7;
}
/*リンクオンマウスで下線＆アルファ*/
a {
  text-decoration: underline !important;
}

a:hover{
  text-decoration: none;
  opacity: 0.7;
}
/*ウィジェットの文字サイズ調整*/
.widget-title,
.widgettitle,
.widget h2 {
    font-size: 24px !important;
    font-weight: bold;
    margin-bottom: 0.6em;
}
.widget {
    font-size: 22px;
    line-height: 1.8;
}

.widget-title,
.widgettitle {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 0.6em;
}

.widget ul li {
    font-size: 21px;
    margin-bottom: 0.5em;
}
/* 右ウィジェット(コメント一覧の文字サイズ調整 */
body:not(.home):not(.front-page) .wp-block-latest-comments {
    font-size: 14px !important;
    line-height: 1.6;
}
body:not(.home):not(.front-page) .wp-block-latest-comments__comment-excerpt {
    font-size: 22px !important;
}
body:not(.home):not(.front-page) .wp-block-latest-comments__comment-meta {
    font-size: 22px !important;
}
body:not(.home):not(.front-page) .wp-block-latest-comments__comment-author{
	  display: none !important;
}
/* 検索窓（入力欄）のcss */
.wp-block-search__input {
    border: 2px solid #086337 !important;
    border-right: none !important;
    padding: 8px;
    font-size: 18px;
    outline: none !important;
}
.wp-block-search__input:focus {
    border: 2px solid #086337 !important;
    box-shadow: none !important;
    outline: none !important;
}
.wp-block-search__button {
    background-color: #086337 !important;
    color: #fff !important;
    border: 2px solid #086337 !important;
    padding: 8px 16px;
    font-size: 18px;
    cursor: pointer;
}

.wp-block-search__button:hover {
    background-color: #fff !important;
}
/* 右カラムの記事一覧の整形 */
.custom-post-thumb img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-bottom: 12px !important;
}

.custom-post-title {
  font-size: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
}
.custom-post-meta {
  display: none !important;
}
/* 日付 */
.article-date{
	color:#000000 !important;
    font-size: 16px;
}
/* コメント数 */
.article-comment{
	color:#000000 !important;
    font-size: 16px;
}
/* 一覧ページのテキストサイズ調整 */
.xw-article-media__body--title{
	    font-size: 24px !important;
	}
.xw-article-media__body--text{
  line-height: 1.8;	
    font-size: 18px !important;
}
/* お問い合わせページのcss */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 18px;
  line-height: 1.6;
  border: 2px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
  border-color: #086337;
  box-shadow: 0 0 5px rgba(8, 99, 55, 0.4);
  outline: none;
}
.wpcf7-form p label {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 5px;
}
.wpcf7-form-control.wpcf7-submit {
  background-color: #086337;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.wpcf7-form-control.wpcf7-submit:hover {
  background-color: #06502a;
  transform: translateY(-2px);
}

.wpcf7-form-control.wpcf7-submit:active {
  transform: translateY(0);
}
.wpcf7-response-output {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}
/* TOP最新口コミ一覧 */
.my-latest-comments {
  margin: 20px 0;
  padding: 0;
}
.my-latest-comment-item {
  margin: 20px 0;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  list-style: none;
}
.my-comment-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}
.my-comment-date {
  font-weight: bold;
  margin-right: 8px;
}
.my-comment-post a {
  font-size: 22px; 
  font-weight: bold;
  color: #086337;
  text-decoration: none;
}
.my-comment-post a:hover {
  text-decoration: underline;
}
.my-comment-excerpt {
  font-size: 18px; 
  margin-top: 8px;
  line-height: 1.6;
}
/* 記事ページ本文のpタグ*/
.articleBody p {
  font-size: 20px !important; 
  line-height: 2.0;
}

.articleBody table {
  font-size: 20px !important; 
  line-height: 2.0;
}

.articleBody table td,
.articleBody table th {
  padding: 10px;
}
/* 記事一覧ページのコメント本文の文字サイズ調整 */
.comment-list .comment-content {
  font-size: 20px !important; 
  line-height: 2.0;  
  color: #333;  
}
.comment-list .comment-metadata time {
  font-size: 14px !important;
  color: #000 !important;  
  font-weight: normal;
}

.comment-list .comment-reply-link {
  background-color: #086337 !important;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.comment-list .comment-reply-link:hover {
  opacity: 0.85;
}
/* コメントフォームの装飾 */
#respond {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

#respond .comment-reply-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #086337;
  border-left: 4px solid #086337;
  padding-left: 10px;
}


#respond .logged-in-as {
  font-size: 20px;
  margin-bottom: 15px;
  color: #555;
}

#respond textarea#comment {
  width: 100%;
  font-size: 20px;
  line-height: 1.6;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  min-height: 150px;
  box-sizing: border-box;
}

#respond #submit {
  background-color: #086337 !important;
  color: #fff !important;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

#respond #submit:hover {
  opacity: 0.85;
}
/* 記事本文内のリスト */
.articleBody .wp-block-list li {
  font-size: 20px !important;
  line-height: 1.8;  
  margin-bottom: 8px;  
  color: #333;
}
.articleBody .wp-block-list {
  padding-left: 1.5em;
}
/* 記事本文内のボタンだけ大きくする */
.wp-block-buttons .wp-block-button__link {
  font-size: 1.4em !important;
}
/* 右サイドカラムのデザイン変更 */
#secondary h1,
#secondary h2,
#secondary h3,
#secondary h4,
#secondary h5,
#secondary h6 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #086337;
  margin: 0 0 0.8em 0;
  padding: 0.6em 0.8em;
  border-radius: 4px;
  line-height: 1.4;
}

#secondary section.widget {
  padding: 1.2em 1em;
  margin-bottom: 1.2em;
  background-color: #ffffff;
  border-bottom: 1px dashed #000000;
}
#secondary .custom-vertical-posts h1,
#secondary .custom-vertical-posts h2,
#secondary .custom-vertical-posts h3,
#secondary .custom-vertical-posts h4,
#secondary .custom-vertical-posts h5,
#secondary .custom-vertical-posts h6 {
  background: none;
  color: inherit;
  font-size: 1rem;
  font-weight: normal;
  margin: 0.4em 0;
  padding: 0;
  border: none;
  border-radius: 0;
}
#secondary .widget_nav_menu h2.widgettitle {
  margin-bottom: 0.15em;
}
#secondary section.widget + section.widget {
  margin-top: -0.5em;
}
#secondary .widget_nav_menu .menu,
#secondary .widget_nav_menu > div {
  margin-top: 0.6em;
}
/* tableのデザイン */
.wp-block-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table.has-fixed-layout {
  width: 100%;
  border-collapse: collapse;
  font-size: 24px;
  text-align: center !important;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.wp-block-table th,
.wp-block-table td {
  padding: 16px 12px;
  vertical-align: middle;
}

.wp-block-table thead th {
  color: #086337;
  font-weight: bold;
  background: #e3f0e9;
}

.wp-block-table tbody th {
  color: #086337;
  font-weight: bold;
  background: #f7faf8;
}

.wp-block-table tbody td {
  color: #333;
  background: #fff;
}


.wp-block-table tbody tr:hover td {
  transition: 0.2s;
}

@media screen and (max-width: 768px) {
  .wp-block-table table.has-fixed-layout {
    font-size: 20px;
  }

  .wp-block-table th,
  .wp-block-table td {
    padding: 12px 8px;
  }
}
/* 口コミ一覧ページのデザイン */
.review-list {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}

.review-item {
  border-bottom: 1px dashed rgba(0,0,0,0.3);
  padding: 0.8em 0;
}

.review-list .review-meta strong,
.review-list .review-meta,
.review-list .review-date {
  font-size: 1em !important;
  color: #666 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.review-list .review-meta strong {
  color: #333 !important;
  margin-right: 0.4em !important;
}

.review-excerpt {
  margin: 0.4em 0;
}

.review-link {
  margin-top: 0.5em;
}

.review-link a {
  display: inline-block;
  width: 100%;
  text-align: center;
  background-color: #086337;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85em;
  text-decoration: none;
  padding: 0.45em 0.6em;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.review-link a:hover {
  background-color: #0a7b42;
  transform: translateY(-1px);
}

.pagination {
  margin-top: 1.5em !important;
  text-align: center !important;
  font-size: 0.9em !important;
}

.pagination .page-numbers {
  display: inline-block !important;
  margin: 0 0.25em !important;
  padding: 0.4em 0.8em !important;
  text-decoration: none !important;
  border: 1px solid #086337 !important;
  border-radius: 4px !important;
  color: #086337 !important;
  transition: all 0.2s ease !important;
}

.pagination .page-numbers:hover {
  background-color: #086337 !important;
  color: #fff !important;
}

.pagination .page-numbers.current {
  background-color: #086337 !important;
  color: #fff !important;
  border-color: #086337 !important;
  cursor: default !important;
}

.pagination .next.page-numbers {
  font-weight: 600 !important;
}
/* フッターのデザイン */
footer.footer {
  margin-top: 0;
  text-align: center;
  width: 100%;
}

footer.footer .container-siteNavList,
footer.footer .siteNavList--footer {
  background-color: #f2f2f2;
  padding: 1.2em 0;
  width: 100%;
  max-width: none;
}

footer.footer .siteNavList {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8em;
}

footer.footer .siteNavList li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  margin: 0;
}

footer.footer .siteNavList li:not(:last-child)::after {
  content: "｜";
  color: #999;
  margin-left: 0.8em;
}

footer.footer .siteNavList a {
  font-size: 18px;
  color: #086337;
  text-decoration: none;
  padding: 0.15em 0.4em;
  transition: color 0.25s ease;
}

footer.footer .siteNavList a:hover {
  color: #0a7b42;
}

footer.footer .container-copyright {
  background-color: #1a1a1a;
  padding: 0.8em 0;
  width: 100%;
  max-width: none;
}

footer.footer .copyright {
  color: #fff;
  font-size: 14px;
  text-align: center;
  margin: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  footer.footer .siteNavList {
    gap: 0.6em;
  }

  footer.footer .siteNavList li:not(:last-child)::after {
    margin-left: 0.5em;
  }

  footer.footer .siteNavList a {
    font-size: 16px;
  }

  footer.footer .container-siteNavList {
    padding: 1em 0.6em;
  }

  footer.footer .copyright {
    font-size: 13px;
  }
}
/* TOPボックスメニューのリンクボーダーをテキストカラーと統一 */
.wp-block-xwrite-boxmenu .xw-block-boxmenu__link {
  border-color: var(--text-color) !important; /* テキストカラー（白）に統一 */
  color: var(--text-color) !important;
}

.wp-block-xwrite-boxmenu .xw-block-boxmenu__link:hover,
.wp-block-xwrite-boxmenu .xw-block-boxmenu__link:focus {
  border-color: var(--text-color) !important;
  color: var(--text-color) !important;
}

.wp-block-xwrite-boxmenu .xw-block-boxmenu__icon {
  color: var(--text-color) !important;
}
/* サムネイル画像（アイキャッチ）枠線 */
.post-thumbnail img {
  border: 1px solid #ccc;
}
/* ウィジェット画像枠線 */
.widget img,
.sidebar img,
.footer-widget img {
  border: 1px solid #ccc;
}
/* カルーセル画像枠線 */
.carousel img,
.slick-slide img,
.swiper-slide img {
  border: 1px solid #ccc;
}
/* 記事一覧画像枠線 */
.articleList__item--fig img {
  border: 1px solid #ccc;
}
.wp-block-image img{
  border: 1px solid #ccc;
}
/* ウィジェットX・noteの設定 */
.sns-side-card {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.sns-side-card__title {
  margin: 0 0 16px;
  font-size: 18px !important;
  font-weight: 700;
  color: #222;
}

.sns-side-card__item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
}

.sns-side-card__item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.sns-side-card__item:last-child {
  padding-bottom: 0;
}

.sns-side-card__icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
}

.sns-side-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 2px solid #e2e2e2;
  border-radius: 12px;
  padding: 6px;
  background: #fff;
  margin: 0;
  vertical-align: top;
}

.sns-side-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sns-side-card__label {
  margin: 0;
  font-size: 14px !important;
  color: #888;
}

.sns-side-card__name {
  margin: 3px 0 0;
  font-size: 18px !important;
  font-weight: 700;
  color: #222;
}

.sns-side-card__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1;
}