/*
Theme Name: BLACKHOLE
Description: WordPress独自テーマのサンプル
Author: ◎
Version: 1.4.1
Text Domain: my-original-theme
*/

/* Box sizing rules */
/* Box sizingの定義 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */
/* デフォルトのpaddingを削除 */
ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */
/* デフォルトのmarginを削除 */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
/* bodyのデフォルトを定義 */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
/* class属性を持つul、ol要素のリストスタイルを削除 */
ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
/* classを持たない要素はデフォルトのスタイルを取得 */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
/* img要素の扱いを簡単にする */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Natural flow and rhythm in articles by default */
/* article要素内の要素に自然な流れとリズムを定義 */
article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */
/* inputやbuttonなどのフォントは継承を定義 */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
/* 見たくない人用に、すべてのアニメーションとトランジションを削除 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === CSS変数の定義 === */
:root {
    --color-gold: #969673;
    --color-silver: #B6B6B6;
    --color-black: #000000;
    --color-rose: #bb0166;
    --font-base: "baskerville-urw","ten-mincho", serif;
    --max-width: 50%;
    --content-width: 800px;
}

body {
    font-family: var(--font-base);
    color: var(--color-silver);
    background-color: var(--color-black);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: #000000;
  background-size: cover;
  z-index: -1;
}

p {
  margin: 33px 6px; }

a {
  position: relative;
  transition: 0.2s;
  color: var(--color-gold);
  text-decoration: underline;}
  a:hover {
    transition: 0.2s;
    color: var(--color-rose); }


h1, h2, h3, h4 {
  letter-spacing: 2px;}

h1 {
    color: var(--color-gold);
    font-size: 3rem;
    margin: 10px;
  }
h1 a{
  text-decoration: none;
}

h2{
    width: 100%;
    background: var(--color-black);
    color: var(--color-gold);
    padding-left: 33px;
    border-top: 1px solid var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
}
h2 a{
    color: var(--color-gold);
    text-decoration: none;
}
h2 a:hover{
    color: var(--color-rose);
  }

h3 {
    color: #969673;
    position: relative;
    font-size: 1.4rem;
    margin: 0 0 15px;
    padding-left: 24px; }
  h3::before {
    position: absolute;
    left: 0;
    top: calc(43% - 5px);
    content: "";
    display: block;
    width: 15px;
    height: 1px;
    border: 8px solid transparent;
    border-left-color: #969673;
    border-left-width: 10px; }


h4 {
  position: relative;
  font-size: 1rem;
  margin: 3px 0 10px 0;}

  img {
    pointer-events: none;
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -moz-touch-callout:none;
    -moz-user-select:none;
    user-select:none;
    margin: 5px auto;
}

ul, ol, dl {
  margin: 24px 0; }
  ul li, ol li, dl li {
    margin: 8px 0; }

ul.link {
  display: flex;
  margin-bottom: 33px; }
  ul.link li {
    margin-right: 15px; }
    ul.link li:last-child {
      margin-right: 0; }

input, textarea{
  width: 100%;
  background: var(--color-black);
  color: var(--color-silver);
  margin: 0px auto;
  border: 1px solid var(--color-gold);
}

caption{
  color: #B6B6B6;
  margin: 5px;
}

/* === レイアウト === */
header {
  position: fixed;
  width: 100%;
  height: 210px;
  background-color: var(--color-black);
  box-shadow: 0 0 33px var(--color-rose);
  top: 0;
  left: 0;
  padding: 10px 0px;
  z-index: 9;
  text-align: center;
}

main{
  position: relative;
  max-width: 45%;
  width: calc(100% - 300px);
  background-color: var(--color-black);
  top: 210px;
  padding: 44px 25px;
  margin: 0px auto;
  border-right: 1px solid var(--color-gold);
  border-left: 1px solid var(--color-gold);
}

.sidebar {
  position: fixed;
  max-width: 300px;
  width: 25%;
  height: calc(100% - 15vh);
  top: 210px;
  left: 75%;
  z-index: 7;
  padding: 44px 0 90px 0;
  margin: 0px;
  overflow-y: scroll;
}

footer{
    width: 100%;
    height: 40px;
    color: var(--color-gold);
    background: var(--color-black);
    position: fixed;
    font-family: "baskerville-urw";
    font-size: small;
    text-align: center;
    bottom:  0;
    z-index: 10;
}

/* === レイアウト === */

section{
  border-bottom:1px dotted var(--color-gold) ;
  margin: 5% 10%;
}

.global-nav{
  width: 100%;
  background-color: var(--color-black);
}

.global-nav a{
    background-color: var(--color-black);
    border: 3px double var(--color-gold);
    margin: 16px 0px;
    padding: 3px 6px;
    color: var(--color-gold);
    transition: -1.9s;
    text-decoration: none;
    letter-spacing: 2px; }

.global-nav a:hover {
    background: var(--color-black);
    color: var(--color-rose);
    border: 3px double var(--color-rose);
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}


.number {
    margin: 0; }
    .number li {
      display: inline-block;
      margin: 0 8px 0 0; }
      .number li a {
        text-decoration: none; }
      .number li:not(:last-of-type)::after {
        content: "/";
        margin-left: 8px; }

.right{
  text-align: right;
  font-size: 0.7em;
  line-height: 1.3;
  margin: 5px 0px;
}

.more{
  width: 100%;
  text-align: center;
  margin: 30px auto;
}

.btn {
  background-color: var(--color-black);
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 2px;
  margin: 16px 0;
  padding: 5px;
  transition: -1.9s;
  border: 1px solid var(--color-gold);
}
  .btn:hover {
    background: var(--color-black);
    color: var(--color-rose);
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--color-rose);
  }

.hr {
  margin-bottom: 66px; }


.pagination {
  display: flex;
  justify-content: center;
  margin: 0 0 30px 0 ;
}
a.page-numbers,
span.page-numbers {
  margin: 5px;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  text-decoration: underline;
}

.page-numbers.current {
  color: var(--color-rose);
  text-decoration: none;
}

.prev.page-numbers,
.next.page-numbers,
.page-numbers.dots {
  text-decoration: none;
}

/* === レスポンシブ（モバイルファースト） === */
@media (max-width: 768px) {
  body{
  font-size: 0.8rem;
  }
  
  p {
      margin: 24px 0; 
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
      font-size: 1rem;
      padding-left: 10px;
  }

  h3{
    font-size: 0.9rem;
  }

  header {
    position: relative;
    height: 160px;
    padding: 3px 0px 21px;
  }

  main{
    max-width: 90%;
    width: 90%;
    margin: 0px auto;
    top: 0vh;
   }

  .sidebar {
    position: relative;
    max-width: 90%;
    width: 90%;
    height: auto;
    margin: 0px auto;
    padding: 0px 10px 70px;
    top: 0;
    left: 0;
    border-right: 1px solid var(--color-gold);
    border-left: 1px solid var(--color-gold);
    overflow-x: hidden;
   }
}


/* === ウィジェット用 === */

.widget_calendar #wp-calendar th,
.widget_calendar #wp-calendar td{
width: 14%;
padding: 5px;
font-size: 0.8rem;
background: none;
color: #B6B6B6;
border: none;
outline: none;
}

.widget_calendar #wp-calendar th{
  background: #969673;
  color: #000000;
}

/*日付の背景（色や形を変更）*/
.widget_calendar tbody td a {
background: #000000;
border-radius: 14px 14px 14px 14px;
border: 1px solid #969673;
color: #969673;
display: inline-block;
height: 28px;
line-height: 27px;
margin: 1px;
vertical-align: middle;
width: 28px;
text-decoration: none;
}
/*マウスを上に置いたとき色を変える*/
.widget_calendar tbody td a:hover{
background-color: #969673;
color: #000;
}
/*マウスオーバー時の動き*/
.widget_calendar tbody td a:hover{
cursor: pointer;
transform: scale(0.9,0.9);
transition : 1s;
}

/*今日の更新のみ色を変える*/
.widget_calendar tbody td#today{
color: #bb0166;
}
/*今日の更新のみ色を変える*/
.widget_calendar tbody td#today a{
border: 1px solid #bb0166;
color: #bb0166;
}
.widget_calendar tbody td#today a:hover{
background-color: #bb0166;
color: #000000;
}


/*カレンダーナビ*/
.wp-calendar-nav{
text-align:center;
text-align-last: justify;/*両端ぞろえ*/
}
/*カレンダーナビ　リンク文字色*/
.wp-calendar-nav a{
color: #969673;
}
/*先月のナビ*/
.wp-calendar-nav-prev{
display:inline-flex;
text-align: left;
}
/*来月のナビ*/
.wp-calendar-nav-next a{
display:inline-flex;
text-align: right;
}
/*マウスオーバー時の変化（先月）*/
.wp-calendar-nav-prev a{
transition: all 1s linear 0s;
cursor: pointer;
}
.wp-calendar-nav-prev a:hover{
transform: scale(0.9,0.9);
}

/*マウスオーバー時の変化（来月）*/
.wp-calendar-nav-next a{
transition: all 1s linear 0s;
cursor: pointer;
}
.wp-calendar-nav-next a:hover{
transform: scale(0.9,0.9);
}