/*
Theme Name:purikounosuke's memo
Theme URL:https://memo.purikounosuke.com/
Description:purikounosukeブログのテーマ
Author:purikounosuke
Version:1.0.0
*/

@charset "utf-8";

/* 共通 */
html {
  font-size: 16px;
}
body {
  font-family: "M PLUS 1", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  color: #333;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.7em;
}

/* ヘッダー */
header {
  background-color: #333;
  color: #fff;
}

header h1 {
  margin: 0 0 1.25rem;
  letter-spacing: 1px;
}

header h1 .sub-title {
  font-size: clamp(1rem, calc(0.8181818181818181rem + 0.9090909090909091vw), 1.5rem);
  margin: 0 0 0.5rem;
}

header h1 .main-title {
  font-size: clamp(1.6rem, calc(1.4545454545454546rem + 0.7272727272727271vw), 2rem);
  line-height: 1.6em;
}

header p {
  font-size: 0.875rem;
}

/* フッター */
footer {
  background-color: #333;
  color: #fff;
}

footer .footer-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.875rem 0;
}

/* サイドバナビ */
@media screen and (min-width: 1024px) {
  aside {
    grid-row: 1 / 4;
    grid-column: 1 / 2;
    position: relative;
  }
}

@media screen and (min-width: 1024px) {
  aside .side-innner {
    position: sticky;
    top: 0;
  }
}

aside .purikounosuke-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.875rem 0;
}

aside ul {
  list-style: none;
  padding: 0;
}

aside li {
  border-bottom: 1px solid #eee;
}

aside li a {
  display: block;
  padding: 1.3rem 2.3rem 1.3rem 1.3rem;
  font-size: 0.875rem;
  font-weight: 700;
}

/* サイドバー　アコーディオンメニュー */
.menu__item {
  color: #fff;
  cursor: pointer;
  display: block;
  position: relative;
}

.menu__item__link:after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(45deg);
  position: absolute;
  right: 18px;
  top: 28px;
}

.menu__item__link.on {
  background-color: #2994b2;
  color: #fff;
}

.menu__item__link.on:after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-135deg);
  top: 30px;
}

.menu__item__link.on:hover {
  opacity: 1;
}

.submenu {
  background: #fff;
  display: none;
}

.submenu .submenu__item:last-child {
  border-bottom: none;
}

.submenu__item a {
  font-weight: 400;
  line-height: 1.5em;
  font-size: 0.8rem;
  padding-right: 1.3rem;
}

.submenu__item a:hover {
  color: #2994b2;
  opacity: 1 !important;
}

/* 本文エリア */
.container {
  height: 100vh;
}

.container a {
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.container a:hover {
  opacity: 0.6;
}

.container a:focus-visible {
  outline: none;
}

@media screen and (min-width: 1024px) {
  .container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 280px 1fr;
  }
}

main {
  background-color: #eee;
}

.main-element-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.125rem 0;
}

/* カテゴリ */
.category-list {
  margin: 0 0 4rem;
}

.category-list h2 {
  margin: 0 0 2.5rem;
}

.category-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.category-card_inner {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 10px;
  padding: 1rem;
  background-color: #ddd;
  border-radius: 10px;
}

.category-card_inner .icon {
  display: grid;
  justify-content: center;
  align-items: center;
}

.category-card_inner .background {
  width: 2.8rem;
  height: 2.8rem;
  background-color: #fff;
  border-radius: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-card_inner svg {
  width: 60%;
  filter: brightness(0) saturate(100%) invert(74%) sepia(12%) saturate(24%) hue-rotate(107deg) brightness(90%) contrast(91%);
}

.category-card_inner .text {
  display: grid;
  align-items: center;
  line-height: 1em;
}

.category-card_inner .text span {
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #aaa;
}

/* 新着記事 */
div.posted-article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media screen and (min-width: 700px) {
  div.posted-article-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 1200px) {
  div.posted-article-list {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
}

.new-articles {
  margin: 0 0 1rem;
}

.new-articles h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.6rem, calc(1.4545454545454546rem + 0.7272727272727271vw), 2rem);
  line-height: 1.4em;
  letter-spacing: 1px;
}

.new-articles h2 {
  margin: 0 0 2.5rem;
  padding: 0 0 0.15rem 0.8rem;
  border-left: 8px solid #2994b2;
  line-height: 1.3em;
}

.posted-article-card img {
  width: 100%;
  height: auto;
}

.posted-article-card .title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4em;
  margin: 0.5rem 0 0.1875rem;
}

.posted-article-card .text {
  line-height: 1.4em;
  font-size: 0.9375rem;
}

/* パンくずリスト */
.post-breadcrumbs {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto -0.625rem;
  padding: 0.3125rem 0 0;
}
.post-breadcrumbs ul {
  list-style: none;
  padding: 0;
}
.post-breadcrumbs li {
  display: inline;
  font-size: 12px;
}
.post-breadcrumbs li a {
  color: inherit;
  text-decoration: none;
}
.post-breadcrumbs li + li:before {
  content: ">";
  margin: 0.8em;
}

/* TOPに戻るボタン */
#pagetop {
  width: 50px;
  height: 50px;
  position: fixed;
  right: 18px;
  bottom: 15px;
}

#pagetop a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
  text-align: center;
  background-color: #ffb400;
  border-radius: 50%;
}

#pagetop a::before {
  font-family: "Font Awesome 5 Free";
  content: "\f106";
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  position: absolute;
  width: 50px;
  height: 50px;
  top: 32px;
  bottom: 10px;
  right: 0;
  left: 0;
  margin: auto;
}

/* 404 NOT FOUND */
.return-to-TOP {
  margin: 2rem 0;
  background-color: #333;
  display: inline-block;
  border-radius: 5px;
}

.return-to-TOP a {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1em;
  display: block;
  padding: 0.4rem 0.5rem;
}

/* 投稿ページ */
/* 投稿日 */
.date-display {
  line-height: 2rem;
}

.post-date {
  font-size: 0.8rem;
  color: #666;
}

.material-symbols-outlined {
  font-size: 1rem !important;
  vertical-align: -3px;
}

/* ヘッダー */
header div .sub-title {
  font-size: clamp(1rem, calc(0.8181818181818181rem + 0.9090909090909091vw), 1.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 1px;
}

header div .main-title {
  font-size: clamp(1.6rem, calc(1.4545454545454546rem + 0.7272727272727271vw), 2rem);
  font-weight: 700;
  line-height: 1.6em;
  letter-spacing: 1px;
}

/* 投稿 本文 */
#post-contents section {
  margin: 0 0 5rem;
}

#post-contents h1 {
  font-size: clamp(1.6rem, calc(1.4545454545454546rem + 0.7272727272727271vw), 2rem);
  margin: 0 0 1.3rem;
  display: block;
  line-height: 1.4em;
  letter-spacing: 1px;
}

#post-contents h2 {
  font-size: clamp(1.35rem, calc(1.2954545454545456rem + 0.2727272727272726vw), 1.5rem);
  margin: 0 0 0.625rem;
  padding: 0 0 0.15rem 0.8rem;
  border-left: 8px solid #2994b2;
  line-height: 1.3em;
}

#post-contents h3 {
  font-size: clamp(1.0625rem, calc(1.0170454545454546rem + 0.22727272727272727vw), 1.1875rem);
  margin: 0 0 0.625rem;
}

@media screen and (min-width: 768px) {
  .post-header-area {
    display: flex;
    justify-content: space-between;
  }
}

/* KV */
@media screen and (min-width: 768px) {
  .post-key-visual {
    width: 54%;
    order: 2;
  }
}

.post-key-visual img {
  width: 100%;
  height: auto;
}

/* 目次 */
@media screen and (min-width: 768px) {
  .post-TOcontens {
    width: 43%;
    order: 1;
  }
}

.post-TOcontens_box {
  border: 1px solid #ddd;
  margin: 1.875rem 0 1.25rem;
  padding: 1.5625rem;
  background-color: #fff;
}

@media screen and (min-width: 768px) {
  .post-TOcontens_box {
    margin: 0 0 1.25rem;
  }
}

.post-TOcontens_title {
  margin: 0 0 0.9375rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.post-TOcontens_box ul {
  padding: 0;
  list-style: none;
}

.post-TOcontens_box li {
  padding: 0.25rem 0;
}

.post-TOcontens_box li a {
  word-break: break-all;
}

.post-TOcontens_box li a:hover {
  color: #2994b2;
  opacity: 1;
}

.nest-item ul {
  padding: 0 0 0 20px;
}

.nest-item ul {
  padding: 0 0 0 20px;
  margin: -6px 0 0;
}

.nest-item li {
  padding: 0.15rem 0 !important;
}

.nest-item a {
  color: #666;
  font-size: 14px;
  line-height: 1em;
}

/* コードブロック */
div.html-code-note {
  background-color: #000;
  font-size: 0.875rem;
  color: #fff;
  border-radius: 10px;
  margin: 1.875rem 0;
  position: relative;
}

div.html-code-note pre {
  overflow: auto;
  padding: 1.25rem;
}

.wp-block-code code {
  white-space: pre !important;
}

/* 実際の表示 */
.browser-display_sample {
  background-color: #fff;
  padding: 1.25rem;
  margin: 1.875rem 0;
}

/* 但し書き */
.excuse-text {
  margin: -20px 0 0;
  font-size: 0.8rem;
}

/* 参考にしたサイト */
.reference-sites_list {
  margin: 1.4rem 0 0;
}

.reference-sites_site-name {
  font-size: 0.9rem;

  font-weight: 600;
}

.reference-sites_page-title a {
  font-size: 1rem;
}

.reference-sites_page-title a::after {
  font-family: "Font Awesome 6 Free";
  display: inline-block;
  content: "\f08e";
  font-weight: 900;
  font-size: 0.8rem;
  margin: 0 0 0 6px;
}

.reference-sites_page-title a:hover {
  color: #2994b2;
  opacity: 1;
}

/* カスタマイズの案内（色・サイズ・向きの変更） */
.customization-list {
  margin: 1.8rem 0 0;
}
.customization-list p {
  margin: 0 0 0.5rem;
}
.customization-list p code {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  background-color: #666;
  padding: 0 0.4rem;
  margin: 0 0.1rem;
  border-radius: 5px;
}
.customization-list div.example {
  margin: 1rem 0 2.5rem;
}
.customization-list div.example p {
  font-size: 14px;
}
.customization-list div.example p code {
  margin: 0 0.1rem 0.25rem;
}

/* 日付別アーカイブ */
#day-archive-contents .posted-article-card .sup-note {
  margin: 0.3rem 0;
  font-size: 0.8rem;
}

#day-archive-contents .posted-article-card .title {
  margin: 0 0 0.1875rem;
}
