@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を記入していきましょう。*/



/*------------------------------------------------------------
 デフォルト修正
-------------------------------------------------------------*/
/* 
 ブロックエディタ内の余白（たぶん開発者の設定ミス？？ ）
 メッセージブロックのみWPデフォルトのmargin（上下）が適用されている
*/
[aria-label="ブロック: リスト"] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.small {
    font-size: .85em !important;
}

/*------------------------------------------------------------
 カスタマイズ
-------------------------------------------------------------*/
/* 全体 */
body{
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}

/* スクロールバー*/
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; /* 背景色 */
	border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #d3d1cb; /* ハンドルの色 */
	border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bfbfbe; /* ホバー時の色 */
}

/* 見出し */
.sgb-heading--type2 {
	font-size: 1.55em !important;
	padding: 8px 12px;
	margin: 4em -0.5em 1.4em;
	border-radius: 4px;
	position: relative;
}
.sgb-heading--type2:after {
    border: 12px solid transparent;
    border-top-color: var(--sgb-main-color);
    content: "";
    height: 0;
    left: 25px;
    position: absolute;
    top: 100%;
    top: calc(100% - 1px);
    width: 0;
}
.sgb-heading--type3 {
	font-size: 1.45em !important;
	padding: 5px 10px;
    margin: 3em -0.3em 1.4em;
}
.sgb-heading--type1.with-icon{
    font-size: 1.32em !important;
    margin: 2.5em 0 0.8em !important;
	padding-left: 1.4em !important;
}

/* メッセージ */
.memo_ttl {
    font-size: 19px;
}

/* タイトル付ボックス */
.sgb-box-simple__title{
	padding: 3px 10px !important;
}
.sgb-box-simple ul.is-style-sango-list-circle{
	padding-left: 0 !important;
}

/* リスト */
.is-style-sango-list-circle li {
    line-height: 1.65em;
}
.is-style-sango-list-tandb li {
    border-bottom: #d8d8d8 dotted 1px;
}

/* 目次（固定サイドバー） */
.toc_widget_list li a:before {
	display:none;
}
.toc_widget_list li ul {
	margin-left: 18px !important;
}

/* 引用 */
.wp-block-quote {
    border: none  !important;
    background: #f9f9f9;
    padding: 2em !important;
    color: #888 !important;
	font-size: 0.9em;
}
.wp-block-quote p {
    margin: 10px 0;
    padding: 0;
}
.wp-block-quote cite {
    margin-top: 10px;
}
.wp-block-quote:after,
.wp-block-quote:before {
    font-size: 15px !important;
    color: #ababab !important;
}
.wp-block-quote:before {
    top: 10px !important;
    left: 10px !important;
}
.wp-block-quote:after {
    display: inline-block;
    position: absolute;
    font-family: "Font Awesome 5 Free";
    vertical-align: middle;
    line-height: 1;
    content: "\f10e";
    right: 10px;
    bottom: 10px;
    font-weight: bold;
}

/* アコーディオン */
.wp-block-sgb-accordion {
    margin-top: 1.5em;
}

/* 
 参考リンク
 カスタムバリエーションに設定しても勝手にverticalになるため
 CSS自体を上書きで対応
*/
.sgb-e-link--vertical {
    align-items: center;
    display: flex;
    max-width: 600px;
}

.sgb-e-link--vertical .sgb-e-link__image {
    border-bottom: unset;
	border-right: 1px solid rgba(14, 11, 72, .08);
    height: 150px;
    max-width: 230px;
}
.sgb-e-link--vertical .sgb-e-link__img {
    display: block;
    max-height: unset;
	height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}
.sgb-e-link--vertical .sgb-e-link__text {
    padding: 20px;
}

/* タイムライン（通常） */
/* .sgb-tl:not(.tl-flow)::before {
    content: "\f303  全体の流れ";
    font-size: 1.3em;
    font-weight: bold;
    font-family: 'FontAwesome';
    margin: 1.5em 0 0.8em;
    display: block;
} */

/* タイムライン（フローチャート） */
.wp-block-sgb-timeline.tl-flow .sgb-tl::before,
.sgb-tl .tl-flow::before {
    content: none;
}

.tl-flow .sgb-tl-item:before{
	display:none;
}
.tl-flow .sgb-tl-item__label--default {
    background: #009ef3;
    color: #FFFF;
    display: inline;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 16px;
    margin-bottom: 8px;
    margin-right: 8px;
}
.tl-flow .sgb-tl-item__label--default:before{
	content: counter(item);
}
.tl-flow .sgb-tl-item__marker {
    display: none;
}
.tl-flow .sgb-tl-item__title {
    display: inline;
}
.tl-flow .sgb-tl-item {
    padding: 1.5em 1em;
    margin: 2em 0;
    border-radius: 15px;
    background: #f2fbff;
}

.tl-flow .sgb-tl-item__main {
    border: none;
	padding: 0;
}
.tl-flow .sgb-tl-item__main p:last-child{
    margin-bottom:0;
}

/* タブ ※使わないと思うの保留 */
/* .post-tab {
	margin-bottom: 0em !important;
	animation: none;
	
    border-bottom: 2px solid var(--sgb-main-color);
	border-radius: unset;
	box-shadow: unset;
}
.post-tab>label,
.post-tab>.tab{
	padding: 7px !important;
	border-radius: 10px 10px 0 0;
}
.post-tab__content {
	border: 2px solid var(--sgb-main-color);
	padding: 20px 10px 0;
} */

/* テーブル */
:root {
	--my--table--border: 1px solid #d0dde2;
	--my--table--heading--background-color: #f3fcff;
}

table {
	color: #807171;
    font-size: .85em;
	line-height: 1.7;
	border: var(--my--table--border) !important;
}
tr:not(:last-child) {
	border-bottom: var(--my--table--border) !important;
}
th {
	border-right: var(--my--table--border) !important;
    border-bottom: var(--my--table--border) !important;
    background: var(--my--table--heading--background-color) !important;
}
td {
    border-right: var(--my--table--border) !important;
}
.row-heading td:first-child { /* ※row-headingはカスタムCSS追加 */
	background-color: var(--my--table--heading--background-color);
}

.w05{ width: 5% !important; }
.w10{ width: 10%!important; }
.w15{ width: 15%!important; }
.w20{ width: 20%!important; }
.w25{ width: 25%!important; }
.w30{ width: 30%!important; }
.w35{ width: 35%!important; }
.w40{ width: 40%!important; }
.w45{ width: 45%!important; }
.w50{ width: 50%!important; }
.w55{ width: 55%!important; }
.w60{ width: 60%!important; }
.w65{ width: 65%!important; }
.w70{ width: 70%!important; }
.w75{ width: 75%!important; }
.w80{ width: 80%!important; }
.w85{ width: 85%!important; }
.w90{ width: 90%!important; }



/* リンク */
.entry-content a[target="_blank"]:after
.block-editor-block-list a[target="_blank"]:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.2em;
  width: 1em;
  height: 1.19em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%234f96f6' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z'/%3E%3Cpath d='M5 5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7H5V5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}


/*------------------------------------------------------------
 自作
-------------------------------------------------------------*/
/* 画像と文章 */
.wp-block-media-text {
	margin-bottom: 1.5em;
}
.wp-block-media-text__media{
    padding-right: 10px;
}
.wp-block-media-text__media img{
    border: solid 2px #d5d5d5;
	border-radius: 2px;
}

.wp-block-media-text__content {
    padding: 13px 10px !important;
    border: solid 3px #d5d5d5;
    background: #FFF;
    border-radius: 12px;
    position: relative;
}
.wp-block-media-text__content p {
	margin: 0;
}

.wp-block-media-text__content:before,
.wp-block-media-text__content:after {
	top: 50%;
	position: absolute;
	transform: translateY(-50%);
	border: 21px solid transparent;
	content: "";
}
.wp-block-media-text__content:before {
    left: -45px;
    border-right: 21px solid #d5d5d5;
}
.wp-block-media-text__content:after {
    left: -41px;
    border-right: 21px solid #fff;
}

@media (max-width: 600px) {
	.wp-block-media-text__media{
		padding-right: 0;
		margin-bottom: 5px !important;
	}
	.wp-block-media-text__content {
		margin-top: 10px !important;
	}
	.wp-block-media-text__content:before,
	.wp-block-media-text__content:after {
        left: 50%;
		transform: translateX(-50%);
		border-right-color: transparent;
	}
    .wp-block-media-text__content:before {
        top: -45px;
        border-bottom: 21px solid #d5d5d5;
    }
	.wp-block-media-text__content:after {
        top: -41px;
        border-bottom: 21px solid #fff;
	}
}

/* ファイル */
.wp-block-file__button{
    background-color: var(--sgb-main-color) !important;
    border-radius: 10px;
    padding: 6px 15px !important;
}
.wp-block-file__button:before {
	font-family: "Font Awesome 5 Free";
    content: '\f56d';
    font-weight: bold;
    padding-right: 5px;
}
.wp-block-file__button:after {
    content: 'こちら';
}

/* コード（通常表示） */
.wp-block-sgb-codebox {
  position: relative;
}
.pre_tag {
   margin: 2em 0 1.5em
}
.pre_tag > span:before,
.pre_tag > span > i.fa-code {
  display:none;
}
.pre_tag pre {
	padding: 2.4em 1em 1.6em;
    border: none;
    background: #f7f6f3;
    border-radius: 5px;
}
.pre_tag pre,
.pre_tag pre code {
    font-family: inherit;
}

.code_block {
    position: relative;
}
.code_actions {
    position: absolute;
    top: 30px;
    right: 0;
    display: flex;
}
.code_copy_btn,
.code_expand_btn {
	cursor: pointer;
    background: #eae9e5;
    font-size: 13px;
    color: #9a9a9a;
    padding: 1px 9px;
	margin: 10px 10px 0 0;
    border-radius: 5px;
}
.code_actions span i {
	font-size: 14px;
    margin-right: 5px;
}

/* コード（拡大表示） */
.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: calc(100vw - 100px);
	min-width: 500px;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-sizing: border-box;
}
.pre_tag.expanded {
    margin: 0;
}
.expanded pre {
    max-height: calc(100vh - 60px);
    margin: 0;
	overflow: auto;
}
.expanded .code_actions {
    top: 0;
}
.expanded .code_expand_btn {
	margin-right: 20px;
}
.expanded > span {
	display: none;
}

@media (max-width: 769px) {
	.expanded {
		min-width: 90%;
	}
}

/* コード（拡大時の背景） */
#code_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    box-sizing: border-box;
    background-color: rgb(0 0 0 / 50%);
}


