@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Theme URI: https://saruwakakun.design
 Author: SARUWAKA
 Author URI: https://saruwakakun.com
 Template: sango-theme
 Version: 4.0
*/
/*こちらはSANGOの子テーマ用CSSです。以下にCSSを記入していきましょう。*/

/* ヘッダー背景 */
.header {
  position: relative;
  background: url(./images/header_bg_left.png) left top no-repeat;
  background-size: 160px;
}
.header::after {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  bottom: 0;
  background: url(./images/header_bg_right.png) right bottom no-repeat;
  z-index: -1;
}

/* アーカイブ：１カラムに変更 */
.home #main,
.archive #main,
.search #main,
.author #main {
  width: 100%;
  max-width: var(--container, 1100px); /* 任意 */
  margin: 0 auto;
}

/* アーカイブ：カード2→4変更 */
@media only screen and (min-width: 481px) {
  .catpost-cards {
    -ms-grid-columns: (1fr) [4];
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* セクションの角丸変更 */
@media only screen and (min-width: 769px) {
  #entry {
    border-radius: var(--wp--custom--rounded--small);
  }
}
.footer .my_profile,
.sgb-footer .my_profile,
.normal-sidebar .widget,
.fixed-sidebar .widget {
  border-radius: var(--wp--custom--rounded--small);
}

/* アーカイブ用：カード型 */
.c_linkto {
  border-radius: var(--wp--custom--rounded--small);
}
.home .c_linkto {
  padding: 0 0 30px;
}
.cat-name {
  bottom: 13px;
  top: initial;
}
.c_linkto_text h2 {
  font-size: 15px !important;
  line-height: 1.4;
}

/* アーカイブ用：タイトルエリア */
#archive_header {
  border-radius: var(--wp--custom--rounded--small);
  padding: 10px 20px;
  background: #7798ae;
  color: #fff;
}
#archive_header h1 {
  margin: 0;
  font-size: 1.3em;
}
#archive_header .breadcrumb {
  display: none;
}
#archive_header .entry-content p {
  margin: 0;
  font-size: 85%;
}

/* ブログタイトル */
#logo {
  font-size: 105%;
}

/* パンくず */
#breadcrumb li:first-child a:before {
  display: none;
}

/* フッターリンク */
#footer-menu {
  padding: 10px;
}
/* #footer-menu nav,
.footer-links {
  display: none;
} */
.footer-menu__btn {
  display: none !important;
}

/* --------
コメント機能
-------- */
/* —— コメント領域をまるごと非表示 —— */
#comments,
.comments-area,
.comment-respond,         /* コメントフォーム */
.comment-list,            /* コメント一覧 */
.pings,                   /* トラックバック/ピンバック */
.no-comments,             /* 「コメントは受け付けていません」などの文言 */
.entry-footer .comments,
.post-footer .comments {
  display: none !important;
}

/* —— 記事下やメタ情報にある“コメント数/吹き出しアイコン”も隠す —— */
.entry-meta [class*="comment"],
.post-meta  [class*="comment"],
article [class*="comment"],
.catpost-cards [class*="comment"],
[class*="fa-"][class*="comment"],   /* アイコン系 */
[class*="icon-"][class*="comment"] {
  display: none !important;
}

/* —— 万が一の残りカス（余白・区切り）対策 —— */
.entry-meta,
.post-meta {
  /* コメントだけ消した結果の余分な区切りを潰す */
}

/* --------
ウィジェット
-------- */
.widget {
  margin: 0 0 1.5em;
}
.widgettitle,
.sidebar .wp-block-group h2,
.drawer .wp-block-group h2 {
  position: relative;
  padding-top: 0.75em;
  font-size: 1em;
}
.widgettitle::after,
.sidebar .wp-block-group h2:after,
.drawer .wp-block-group h2:after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 3%;
  height: 100%;
  width: 94%;
  border-bottom: 1px solid #ccc;
}

/* 検索窓 */
.footer .wp-block-search .wp-block-search__button:before,
.sidebar .wp-block-search .wp-block-search__button:before,
.drawer .wp-block-search .wp-block-search__button:before {
  color: #95beda;
}
.sidebar .wp-block-search .wp-block-search__button {
  background: #fff;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 22px 22px 0;
}
.sidebar .wp-block-search .wp-block-search__input {
  border: 1px solid #ccc;
  border-radius: 24px;
}

.wp-block-latest-posts.wp-block-latest-posts__list li {
  overflow: hidden;
  margin-bottom: 15px;
}
.wp-block-latest-posts.wp-block-latest-posts__list
  .wp-block-latest-posts__post-title {
  padding: 0;
  line-height: 1.5;
  font-size: 90%;
  font-weight: 600;
}

/* --------
ヘッダー(PC用)
-------- */
@media (min-width: 769px) {
  /* 横並び→折り返し可能に */
  #inner-header.wrap {
    display: flex;
    flex-wrap: wrap; /* 折り返しON */
    align-items: center;
    column-gap: 16px;
  }

  /* 1段目：ロゴ（左） */
  #logo.header-logo {
    order: 1;
    flex: 1 1 auto; /* 余白ぶん広がる */
    margin: 0; /* 念のため余白リセット */
  }

  /* 1段目：検索（右） */
  .header-search {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto; /* 右端へ */
  }

  /* 2段目：ナビ（全幅） */
  .desktop-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    /* 念のためfloat解除 */
    float: none;
    clear: both;
  }

  /* --------
  ヘッダーナビ(PC用)
  -------- */
  .desktop-nav {
    position: relative;
    padding: 5px 0;
    z-index: 0;
  }

  /* 上下のフル幅ボーダーを重ねる */
  .desktop-nav::before,
  .desktop-nav::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 中央基準で100vwをはみ出させる */
    width: 100vw; /* 画面幅いっぱい */
    height: 1px;
    background: #ccc;
    pointer-events: none;
  }
  .desktop-nav::before {
    top: 0;
  }
  .desktop-nav::after {
    bottom: 0;
  }

  /* 中のレイアウト（均等幅＆中央寄せ＆区切り線）は前回のままでOK */
  .desktop-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
  }
  .desktop-nav > ul > li {
    flex: 1 1 0; /* 均等幅 */
    text-align: center;
    border-left: 1px solid #ccc; /* 縦の区切り線 */
  }
  .desktop-nav > ul > li:first-child {
    border-left: none;
  }

  .desktop-nav ul li a {
    display: block;
    padding: 0.75em 0;
    text-decoration: none;
    height: inherit;
    line-height: 1.4;
  }
}

/* 前/次リンク用の小さめ横長サムネ */
.prnx_tb figure img {
  width: 80px;
  height: auto; /* あるいは height: 50px; object-fit: cover; */
  aspect-ratio: 16/10; /* 16:9にしたなら 16/9 に */
  object-fit: cover;
}

/* --------
ブロックエディタ
-------- */
/* 吹き出し */
.sgb-block-say--right .sgb-block-say-text {
  padding-right: 130px;
}

/* --------
プラグイン：Easy Table of Contents（目次）
-------- */
#ez-toc-container {
  border: none;
  box-shadow: var(--wp--custom--shadow--solid);
}
@media (min-width: 769px) {
  #ez-toc-container {
    padding: 20px 25px;
  }
}
#ez-toc-container .ez-toc-js-icon-con,
#ez-toc-container .ez-toc-toggle label,
.ez-toc-cssicon {
  border: none;
}
#toc_container .toc_title,
.entry-content .ez-toc-title-container {
  margin-bottom: 1em;
}
#ez-toc-container nav > ul > li {
  margin-bottom: 1em;
}
#ez-toc-container nav > ul > li:last-child {
  margin-bottom: 0;
}
#ez-toc-container ul li,
#ez-toc-container ul li a {
  color: #555;
  font-weight: 700 !important;
}
#ez-toc-container ul li ul li a {
  font-weight: 500 !important;
}

/* --------
プラグイン：Confirm Mode for Contact Form 7(フォーム)
-------- */
.cm4cf7-text {
  display: none;
}
.cm4cf7-textarea {
  width: 100%;
}

.wpcf7 form p:has(.wpcf7-submit),
.wpcf7 form p:has(.cm4cf7-return-button) {
  text-align: center;
}
.wpcf7 form .wpcf7-submit,
.wpcf7 form .cm4cf7-return-button {
  cursor: pointer;
  display: inline-block;
  margin: 24px 10px;
  width: 180px;
  height: 45px;
  border-radius: 45px;
  border: 2px solid #000;
  font-weight: bold;
}

.wpcf7 form .wpcf7-submit,
.wpcf7 form .cm4cf7-return-button:hover {
  color: #fff;
  background: #000;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
}
.wpcf7 form .wpcf7-submit:hover,
.wpcf7 form .cm4cf7-return-button {
  color: #000;
  background: #fff;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.14);
}
.wpcf7 form .wpcf7-spinner {
  display: none;
}

.wpcf7 form .wpcf7-response-output {
  padding: 12px 16px;
  background: #fff9e6;
  border: 1px solid #f2d27d;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
}
.cm4cf7-message-for-confirmation {
  padding: 12px 16px;
  background: #effbff;
  border: 1px solid #00a0d2;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
}
