/*
Theme Name: AST Blog
Theme URI: https://www.astrux.jp
Description: ASTRUX Blogテーマ（シンプルな構成）
Author: DIGITAL MATRIX
Version: 2.0
Text Domain: ast_blog
*/


/* ===================================================
 01.BASE
 02.DESIGN STRUCTURE 
==================================================== */

/* 01 BASE
----------------------------------- */

* {
	margin: 0;
	padding: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

*::after,
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body, html {
	font-size: 62.5%;
	-webkit-text-size-adjust: none;
	-webkit-font-smoothing: subpixel-antialiased;
}
body {
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
	font-style: normal;
	font-weight: 400;
    font-size: 14px;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #333;
    text-align:center;
    overflow-wrap: anywhere;
    width:100%;
    position: relative;
    background: #edeff0;
}

h1,h2,h3,h4,h5,h6,p,ul,ol,dl,table,pre { margin-top: 0; }
table { font-size:inherit; font-size: 15px; font-size: 1.5rem; }
hr { display:none; }
ul,ol { list-style-type: none; }
img { border:0; margin:0; padding:0; vertical-align:bottom; }
.clear { clear:both; }


h1 {font-size:200%;}
h2 {font-size:150%;}
h3 {font-size:120%;}
h4 {font-size:115%;}
h5 {font-size:105%; background:#EDEDED url(img/h5_arrow.gif) no-repeat 0 5px; padding:5px 5px 5px 13px; margin-bottom:10px;}
h6 {font-size:105%; font-weight:normal; color:#C1211B; margin-bottom:3px;}
img {
	border:0;
}
img.sided {
	background:#FFF;
	border:1px solid #CCC;
	padding:3px;
}
small {
	font-size:10px;
}
a:hover img.sided {
	border-color:#A6A6A6;
}
a {
	color:#2970A6;
	text-decoration:none;
}
a:hover {
	text-decoration:underline;
}

blockquote {
	background:#F4F5F7 url(img/blockquote.gif) 3px 3px no-repeat;
	border:1px dashed #CCC;
	padding:8px 12px 8px 36px;
	margin:5px 0;
}
pre {
	border:1px solid #B4E1FF;
	background-color:#F1F9FF;
	padding:5px 10px;
	margin:5px 0 15px 0;
}
.more-link {
	font-size:11px;
}
.alignleft {
	float:left;
	text-align:left;
	margin-right:10px;
}
.alignright {
	float:right;
	text-align:right;
	margin-left:10px;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.floatleft {
	float:left;
}
.floatright {
	float:right;
}
.left {
	float:left;
	margin-right:10px;
}
.right {
	float:right;
	margin-left:10px;
}
.fixed, .clear {
	clear:both;
}
input.textfield, 
textarea {
	background:#FFF url(img/textfield.gif) top repeat-x;
	border:1px solid #A6A6A6;
	padding:2px 1px;
}
.boxcaption {
	background:#E3E4E6 url(img/box.gif) 0 0 no-repeat;
	padding:6px 12px;
	border-bottom:1px solid #CCC;
}
.boxcaption h3 {
	font-size:12px;
	font-family:Verdana,"BitStream vera Sans";
	letter-spacing:0em;
}
.box {
	background:#F4F5F7 url(img/box.gif) 100% 100% no-repeat;
	padding:8px 12px;
	margin-bottom:10px;
}
.messagebox, 
.errorbox {
	background:#EDEFF0 url(img/messagebox.gif) no-repeat;
	padding:0 12px;
	height:27px;
	line-height:27px;
	font-size:11px;
}
.w3c {
	color:#080;
	font-size:10px;
}


/* 02 DESIGN STRUCTURE
----------------------------------- */

#wrapper {
    width: 1080px;
    margin: auto;
}


 /* ヘッダー ---------- */

#h-container {
}
#header {
	display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
    background: linear-gradient(to bottom, #5e5e5e, #797979);
    color: #fff;
    padding:25px 50px;
}
#title a {
	text-decoration:none;
	color:#FFF;
	display:block;
}
#tagline {
	color:#FFF;
	text-decoration:none;
}


/* グローバルメニュー */
#navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 15px solid #edeff0;
  background-color: #fff;
  overflow: hidden;
  font-size: 95%;
}
#navigation ul li {
  position: relative;
}
#navigation ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px 0 30px; /* 左側は矢印の張り出し分だけ広めに確保 */
  color: #333;
  text-decoration: none;
  background-color: #fff;
  transition: background-color 0.2s;
}

/* 最初の項目はアイコン */
#navigation ul li:first-child a {
	padding: 0;
	background: #dadada url(img/icon_home.svg) no-repeat 50% 50%;
    background-size: 16px 16px;
	width:35px;
	text-indent:-999em;
}
#navigation ul li:first-child a::after {
  border-left-color: #dadada;
}

/* 右向きの山型区切り線（グレーの枠線部分） */
#navigation ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 0;
  height: 0;
  border-top: 24px solid transparent;    /* heightの半分 */
  border-bottom: 24px solid transparent; /* heightの半分 */
  border-left: 14px solid #dadada;       /* 区切り線の色 */
  z-index: 1;
}
/* 右向きの山型本体（背景色で枠線の内側を塗りつぶす） */
#navigation ul li a::after {
  content: "";
  position: absolute;
  top: 0;
  right: -13px; /* 1pxずらして枠線を作る */
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 14px solid #fff; /* .step-linkのbackground-colorと同じ色 */
  z-index: 2;
  transition: border-left-color 0.2s;
}

/* ホバー時の色変化 */
#navigation ul li a:hover {
  background-color: #f5f5f5;
}
#navigation ul li a:hover::after {
  border-left-color: #f5f5f5;
}


/* フッター ---------- */

footer {
	display:flex;
    gap: 30px;
    padding: 20px 0;
    font-size: 95%;
}

#powered {
    width: 105px;
}
#powered a img {
	width: 100%;
    height: auto;
}

#foot-box {
    flex: 1;
    text-align: left;
}
#themeinfo span {
	display: inline-block;
	margin-right: 30px;
}
#copyright {
    margin-top: 5px;
    color: #666;
}

/* 上部へ戻るボタン */
button.js-backToTop {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  color: #fff;
  background: #999;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
button.js-backToTop:hover {
	background: #666;
}
/* クラス付与時の指定 */
button.js-backToTop.is-active {
  opacity: 1;
  visibility: visible;
}



/* メインコンテンツ ---------- */

#container {
    background: #fff;
    display: flex;
}
#main {
    flex: 1;
    background: #fff;
    border-right: solid 1px #dadada;
    padding: 20px 30px;
    text-align: left;
}
#sidebar{
    width: 300px;
    background: #f7f7f7;
}



.archive-title {
	margin-bottom: 30px;
    border-left: solid 5px #2667c6;
    padding-left: 15px;
    margin-top: 10px;
}

.post-item {
	margin-bottom: 50px;
}

.post-item h2.post-title {
	display:block;
	margin-top:10px;
	border-bottom:1px solid #CCC;
	border-top:3px solid #2667c6;
	padding:15px;
	font-size:16px;
}
.post-item h2.post-title a {
	text-decoration:none;
	color:#4C4C4C;
}
.post-item h2.post-title a:hover {
	color:#2970A6;
}
.post-item .post-meta {
	margin:10px 0 20px 0;
	color:#555555;
	display: flex;
	justify-content: space-between;
	flex-direction: row-reverse;
}

.post-item .post-date {
	padding-left: 26px;
	background: url(img/icon_calendar.svg) no-repeat left top;
    background-size: 18px 18px;
	font-size:95%;
}

.post-item .ver {
	font-weight:bold;
	height:18px;
	line-height:18px;
	padding-left:105px;
	display:block;
	position: relative;
}
.post-item .ver:before {
	content: "機能追加リビジョン";
	width: 98px;
	height: 18px;
	font-size: 10px;
	line-height: 18px;
	text-align: center;
	font-weight: normal;
    color: #fff;
	background: #75b23f;
	border-radius: 2px;
	position: absolute;
    top: 0;
    left: 0;
}
.post-item .post-categories {
	padding-top: 10px;
	padding-left: 26px;
	border-top: solid 1px #edeff0;
	background: url(img/icon_folder.svg) no-repeat left 9px;
    background-size: 20px 20px;
}


/* 記事エリア */

.page .post-content , .error404 .post-content {
	/* 固定ページ、404 */
	margin-top: 2em;
}

.post-content p {
	margin-bottom: 1.2em;
}

.post-content ul {
	margin:0 0 1.2em 0;
	list-style: none;
    padding: 0;
}
.post-content ul li {
    margin-top: 5px;
    padding-left: 30px;
    position: relative;
	text-align: left;
}
.post-content ul li:before{
    counter-increment: list;
    content: "";
    display: block;
    position: absolute;
    left: 15px;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #333;
    top: 10px;
    transform: translateY(-50%);
}

.post-content ol {
	list-style-type:decimal;
	padding: 0;
	margin:0 0 1.2em 30px;
}
.post-content ol li {
	margin-top: 5px;
}



/* ページネーション */
/* WP-PageNavi風ページネーション */
.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.wp-pagenavi .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #dadada;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  border-radius: 3px;
}

.wp-pagenavi .pages {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 4px;
  color: #555;
  background: #edeff0;
  line-height: 1.4;
  border-radius: 100vh;
}

.wp-pagenavi a.page-numbers:hover {
  border-color: #222;
  background: #f3f4f6;
  color: #000;
}

.wp-pagenavi .page-numbers.current {
  border-color: #5e5e5e;
  background: #5e5e5e;
  color: #fff;
  font-weight: bold;
}

.wp-pagenavi .page-numbers.dots {
  border: none;
  padding: 4px 4px;
  color: #666;
}



/* 詳細記事ページ */

/* 次の記事、前の記事のナビゲーションのスタイル */
.screen-reader-text {
	display: none;
}
.nav-links {
  display: flex;
}
.nav-links div[class^="nav-"] {
  width: 50%;
}
.nav-links .nav-next {
  margin-left: auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 15px 35px;
  color: #666;
  font-size: 95%;
  position: relative;
}
.nav-previous a {
	border-right: 1px solid #ddd;
}
.nav-previous a:before {
    content: "";
    width: 6px;
    height: 6px;
	border-top: solid 2px #666;
	border-right: solid 2px #666;
	position: absolute;
    top: 50%;
    left: 15px;
	transform: translateY(-50%) rotate(-135deg);
}
.nav-next a:before {
    content: "";
    width: 6px;
    height: 6px;
	border-top: solid 2px #666;
	border-right: solid 2px #666;
	position: absolute;
    top: 50%;
    right: 15px;
	transform: translateY(-50%) rotate(45deg);
}
.nav-links a:hover {
	text-decoration: none;
	background: #f7f7f7;
}


/* 参照の多い記事 */
.yarpp {
	background: #fff;
	box-shadow: 0 -4px 10px -4px rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	padding: 17px 20px;
	margin: 40px 0 20px 0;
}
ul.yarpp-list {
	margin: 0;
	margin-left: 1em;
}
ul.yarpp-list li {
	padding-left: 15px;
    margin-top: 6px;
    position: relative;
}
ul.yarpp-list li:before {
	counter-increment: none;
	border-radius: 0;
	transform: translateY(0);
	content: "";
	width: 7px;
	height: 7px;
	background: #75b23f;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	position: absolute;
    top: 6px;
    left: 0;
}

.yarpp p {
	color: #666;
}




/* 右サイドバー ----- */

#sidebar {
    text-align: left;
	overflow:hidden;
}
#sidebar .sidebox {
	padding: 20px 15px 20px 15px;
    border-bottom: 1px solid #dadada;
}
#sidebar .sidebox:last-child {
	border: none;
	margin-bottom: 10px;
}
#sidebar h2 {
	margin-bottom:10px;
	font-size: 130%;
}

.sidebar-list li {
	padding-left:20px;
    background: url(img/icon_list.png) 0 1px no-repeat;
    background-size: 16px 16px;
	list-style:none;
	margin-top:5px;
}
.sidebar-list .children li {
    padding-left: 1em;
    background: none;
}

#sidebar .astruxLink { margin-top:5px;}
#sidebar .astruxLink li {
	background:none;
	padding:0;
	margin:0;
}
#sidebar .astruxLink li a {
	display:block;
	padding:10px 30px 10px 10px;
	border:1px solid #D7D7D7;
	margin-bottom:5px;
    background: #fff;
    position: relative;
}
#sidebar .astruxLink li a::after {
    content: "";
    width: 7px;
    height: 7px;
	border-top: solid 2px #666;
	border-right: solid 2px #666;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) rotate(45deg);
}
#sidebar .astruxLink li a:hover {
    opacity: 0.6;
    text-decoration: none;
}

/* 年別アーカイブ */
/* 外枠（矢印の位置基準にする） */
.archive-select-wrap {
  position: relative;
  width: 100%;
}
/* 右側の下向き矢印（CSSで描画） */
.archive-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none; /* 矢印をクリックしてもselectが開くようにする */
}
/* プルダウン本体 */
.archive-select {
  width: 100%;
  padding: 8px 40px 8px 14px; /* 右側は矢印と被らないよう広めに確保 */
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 5px; /* 角丸（四角くしたい場合は 0 に変更） */
  cursor: pointer;
  appearance: none; /* ブラウザ標準の矢印を消す */
  -webkit-appearance: none;
}


/* 検索窓 */
#searchbox {
	padding:20px 15px;
    border-bottom: 1px solid #dadada;
}
#searchbox div {
    display: flex;
    justify-content: end;
    background: #fff;
    border-radius: 100vh;
    border: 1px solid #D7D7D7;
}
#searchbox label {
	display: none;
}
#searchbox input[type="text"] {
	flex: 1;
    padding: 8px 10px;
    border: none;
    background: transparent;
}
#searchbox input[type="submit"] {
	border: none;
	display: block;
    width:40px;
	background: #edeff0 url(img/icon_search.svg) no-repeat 50% 50%;
    background-size: 24px 24px;
    border-radius: 0 100vh 100vh 0;
	text-indent:-999em;
}

#searchbox .textfield {
	width:180px;
	float:right;
    border: 1px solid #D7D7D7;
    padding: 5px;
}
#searchbox .switcher {
    display: block;
    width:30px;
	height:26px;
	background:url(img/icon_search.svg) no-repeat left 50%;
    background-size: 24px 24px;
	float:right;
	text-indent:-999em;
}



