/*
Theme Name: knlog
Description: 最小構成の自作テーマ
Author: あなたの名前
Version: 1.0
Text Domain: knlog
*/

/* ========== Reset ========== */

@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: none;
font-style: normal;
text-align: left;
zoom: 1;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
table {
border-collapse: collapse;
font-family: inherit;
}
h1,h2,h3,h4,h5 {
font-size: 100%;
font-weight: normal;
line-height: 1;
}
input,textarea,select {
font-family: inherit;
font-size: 16px;
}
input[type="button"],input[type="text"],input[type="submit"] {
-webkit-appearance: none;
border-radius: 0;
}
textarea {
resize: none;
-webkit-appearance: none;
border-radius: 0;
}
th,td {
border-collapse: collapse;
}
table th,table td {
white-space: nowrap;
}
ul,ol {
list-style-type: none;
}
img {
vertical-align: text-bottom;
vertical-align: -webkit-baseline-middle;
max-width: 100%;
height: auto;
width /***/:auto;
}
a:link {
      color: #B3B3B3;
      text-decoration: none;
}
a:visited {
      color: #B3B3B3;
      text-decoration: none;
}
a:hover {
      color: #B3B3B3;
      text-decoration: none;
}
a img {
      border-width: 0px;
      border-style: none;
      border-color: #fff;
      background: transparent;
}
input {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
input[type="text"] {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* ========== ベース ========== */
html {
    font-size: 62.5%;
    box-sizing: border-box;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    letter-spacing: 0.2rem;
}
html.single {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}
body {
    background: #000;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.6;
    font-family:"Zen Old Mincho","Zilla Slab",serif;
    font-weight: 400;
    font-style: normal;
    -webkit-font-feature-settings: "palt" 1;
    font-feature-settings: "palt" 1;
	overflow-wrap: anywhere; /* 収まらない場合に折り返す */
	word-break: normal; /* 単語の分割はデフォルトに依存 */
	line-break: strict; /* 禁則処理を厳格に適用 */
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.c-contents {
    padding: 0 3rem;
    margin-bottom: 4rem;
}

/* ========== 共通 ========== */
body {
    background: #000;
    width: 100%;
    margin: 0 auto;
}
body::before {
  content: "";
  display: block;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  background-image: url('assets/images/bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.body_inner {
    background-color: #000;
    padding-bottom: 4rem;
}
.gotop {
    margin-bottom: 6rem;
    padding: 0 3rem;
}
.gotop a {
    color: #B3B3B3!important;
}
.gotop span {
    margin-left: 1rem;
    font-size: 1rem;
    color: #626262;
}
.btn {
    display: block;
    border: 0.1rem solid #1E201D;
    background-color: #0E100C;
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.3rem;
}
h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 6rem;
    line-height: 1.8;
}
h2 {
    padding: 2rem;
    font-size: 1.5rem;
    border: 0.1rem solid #1E201D;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
h3 {
    padding: 2rem;
    font-size: 1.4rem;
    border: 0.1rem solid #1E201D;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
h4 {
    padding: 2rem;
    font-size: 1.3rem;
    border: 0.1rem solid #1E201D;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.post-grid ul li .post-info .post-date,
.postlist #load-more,
.author-box .author-info h2,
.copyright,
.menu-section h2,
.menu-grid.sns a,
.single .datelist,
.single .single_content h2 span,
.gotop span {
    font-family: "Zilla Slab",serif;
}
.content p {
    margin-bottom: 6rem;
    color: #B3B3B3;
    line-height: 1.8;
}
@media (min-width: 480px) {
    body {
        max-width: 48rem;
    }
}

/* ========== ヘッダー ========== */
.top-logo {
    width: 10rem;
    margin: 0 auto 4rem;
    padding-top: 4rem;
}
.top-lead {
    color: #B3B3B3;
    line-height: 1.8;
    text-align: center;
}
.menu-toggle {
    position: fixed;
    top: 1rem;
	right: 1rem;
    background: #0E100C;
    border: 0.1rem solid #1E201D;
    color: #B3B3B3;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1001;
    border-radius: 0.3rem;
}
.menu-toggle,
.menu-close {
    font-family: "La Belle Aurore", cursive;
    line-height: 1;
    padding: 0.8rem 1rem 0.4rem;
}
/* 固定ページ */
.common-hero {
    padding: 1.7rem 0;
}
.common-hero p {
    text-align: center;
    font-size: 1rem;
    color: #B3B3B3;
}
@media (min-width: 480px) {
	.menu-toggle {
		right: calc((100vw - 48rem) / 2 + 1rem);
	}
}

/* ========== メニュー ========== */
.site-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: hwb(0deg 0% 100% / 80%);
    overflow-y: auto;
    z-index: 1002;
    transition: right 0.3s ease;
}
.site-menu.active {
    right: 0;
}
.site-menu .site-menu_inner {
    width: 100%;
    margin: 0 auto;
    background: #000;
    padding: 0 3rem 4rem;
}
.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0E100C;
    border: 0.1rem solid #1E201D;
    color: #B3B3B3;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.5rem;
}
.menu-logo {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.3rem;
}
.menu-section h2 {
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0;
    border: 0;
}
@media (min-width: 480px) {
	.site-menu .site-menu_inner {
		width: 48rem;
	}
	.menu-close {
		right: calc((100vw - 48rem) / 2 + 1rem);
	}
}

/* ========== メニュー検索窓 ========== */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 5rem;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 0.9rem;
    background: #000;
    border: 0.1rem solid #1E201D;
    color: #fff;
	width: 80%;
}
.search-form button {
    padding: 0.5rem 1rem;
    background: #0E100C;
    color: #fff;
    border: 0.1rem solid #1E201D;
    cursor: pointer;
    font-family: "Zen Old Mincho", serif;
    font-size: 1.2rem;
	width: 20%;
}

/* ========== メニューコンテンツ ========== */
.menu-section {
    margin-bottom: 5rem;
}
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.menu-grid a {
    display: inline-block;
    padding: 1.1rem 1rem;
    background: #0E100C;
    color: #B3B3B3;
    border: 0.1rem solid #1E201D;
    white-space: nowrap;
    text-align: center;
    font-size: 1.2rem;
}
.menu-grid a:hover {
    background: #222;
    color: #fff;
}
.menu-grid .full {
    width: 100%;
}
.grid1 a {
    width: 100%;
}
.grid2 a {
    width: calc((100% - 1rem) / 2);
}
.grid3 a {
    width: calc((100% - 2rem) / 3);
}

/* ========== トップ ========== */
.c-contents.postlist {
    padding: 0;
}
.category-tabs {
    overflow-x: scroll;
    border-bottom: 0.1rem solid #1E201D;
    line-height: 1;
    margin: 0 0 2rem 3rem;
}
.category-tabs ul {
    display: flex;
}
.category-tabs::-webkit-scrollbar {
    display: none;
}
.category-tabs ul li {
    flex-shrink: 0;
}

.category-tabs ul li.is-active {
    border-bottom: 0.1rem solid #626262;
}
.category-tabs ul li a {
    display: block;
    font-size: 1rem;
    padding: 0.8rem;
}
.post-grid {
    padding: 0 3rem;
    margin-bottom: 3rem;
}
.post-grid ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.post-grid ul li {
    width: calc((100% - 1.5rem) / 2);
}
.post-grid ul li .post-thumb {
    margin-bottom: 1.5rem;
}
.post-grid ul li .post-info .post-title {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 0.8rem;
}
.post-grid ul li .post-info .post-date,
.post-grid ul li .post-info .post-cat {
    font-size: 1.1rem;
    color: #626262;
}
.post-grid ul li .post-info .post-cat {
    margin-bottom: 0.3rem;
}
.post-grid ul li .post-info .post-date {
    text-align: right;
}
.postlist #load-more {
    background: none;
    border: none;
    color: #fff;
    margin: 0 auto;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.postlist #load-more::after {
    transform: rotate(45deg); /* ← -45deg → 45degに変更 */
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 1rem;
    border-bottom: 0.1rem solid #626262;
    border-right: 0.1rem solid #626262;
    content: '';
    display: inline-block;
}

/* ========== プロフィール ========== */
.author-box .author-box_inner {
    border: 0.1rem solid #1E201D;
    padding: 3rem;
}
.author-box .author-img {
    width: 8.2rem;
    margin: 0 auto 3rem;
}
.author-box .author-info h2 {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1;
	border: none;
}
.author-box .author-info h2 span {
    font-size: 1.3rem;
    margin-top: 1rem;
    letter-spacing: 0.3rem;
    display: inline-block;
}
.author-box .author-info p {
    color: #B3B3B3;
    text-align: center;
    margin-bottom: 3rem;
}
.author-box .author-info .author-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

/* ========== フッター ========== */
.footer_nav ul {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.footer_nav ul li:not(:last-child) {
    border-right: 0.1rem solid #626262;
}
.footer_nav ul li a {
    font-size: 0.8rem;
    color: #B3B3B3;
    display: block;
    line-height: 1rem;
    padding: 0 0.5rem;
}
.copyright {
    font-size: 1rem;
    color: #626262;
    text-align: center;
}

/* ========== 固定ページ ========== */
.single main,
.page main {
    padding: 0 3rem;
}

/* ========== お問い合わせ ========== */
#wpcf7-f6-o1 .formtotle {
    margin-bottom: 1.5rem;
    display: inline-block;
    margin-right: 0.3rem;
}
#wpcf7-f6-o1 .required {
    color: #FF0040;
}
#wpcf7-f6-o1 input,
#wpcf7-f6-o1 textarea {
    width: 100%;
    border: 0.1rem solid #1E201D;
    background: #000;
    color: #fff;
    padding: 0.9rem;
    border-radius: 0.2rem;
}
#wpcf7-f6-o1 textarea {
    height: 15.2rem;
}
#wpcf7-f6-o1 input.btn {
    border: 0.1rem solid #1E201D;
    background: #0E100C;
    width: 12.5rem;
    margin: 0 auto;
    display: block;
    border-radius: 0.2rem;
}
#wpcf7-f6-o1 .wpcf7-spinner {
    display: none;
}
#wpcf7-f6-o1 p {
    margin-bottom: 4rem;
}

/* ========== サイトマップ ========== */
.sitemap ul {
    margin-bottom: 6rem;
}
.sitemap ul li {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sitemap ul li a {
    color: #B3B3B3;
}
.sitemap ul li::before {
    transform: rotate(315deg);
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 1rem;
    border-bottom: 0.1rem solid #626262;
    border-right: 0.1rem solid #626262;
    content: '';
    display: inline-block;
}

/* ========== 記事ページ ========== */
.single .common-hero {
    margin-bottom: 0;
}
.single .content a {
	color: #857D6B;
}
.single .post-thumb {
    margin-bottom: 4rem;
}
.single h1 {
    text-align: left;
    margin-bottom: 2rem;
}
.single .datelist {
    display: flex;
    justify-content: end;
    color: #626262;
    gap: 0.5rem;
    line-height: 1;
    margin-bottom: 4rem;
}
.single .datelist .post-modified {
    display: flex;
    gap: 0.5rem;
    border-right: 0.1rem solid #626262;
    padding-right: 0.5rem;
    margin-right: 0.5rem;
}
.single .auto-toc-wrapper {
    border: 0.1rem solid #1E201D;
    padding: 3rem;
}
.single .single_content {
    margin-bottom: 6rem;
}
.single .single_content h2 {
    border: none;
    padding: 0;
    margin-bottom: 3rem;
}
.single .single_content h2 span {
    color: #626262;
    font-size: 1rem;
    margin-left: 0.5rem;
}
.single .auto-toc-wrapper .auto-toc li {
    margin-bottom: 1.5rem;
}
.single .auto-toc-wrapper .auto-toc li a {
    display: flex;
}
.single .auto-toc-wrapper .auto-toc li a {
    display: flex;
    color: #B3B3B3;
}
.single .content figure {
    margin-bottom: 3rem;
}
.single .single_content.sns h2 {
    margin-bottom: 2rem;
}
.single .single_content.sns .snsBtn {
    display: flex;
    gap: 1rem;
}
.single .single_content.sns .snsBtn li {
    width: calc((100% - 2rem) / 3);
    text-align: center;
}
.single .single_content.sns .snsBtn li.url,
.single .single_content.sns .snsBtn li a {
    padding: 1rem 0;
    font-size: 1rem;
    border: 0.1rem solid #1E201D;
    background: #0E100C;
    border-radius: 0.3rem;
	display: block;
	text-align: center;
	color: #B3B3B3;
}
.single .single_content .post-grid {
    padding: 0;
}