@charset "UTF-8";

/* Template & Designed by Towako. */
/* https://ninawas.me */

@import url('https://fonts.googleapis.com/css?family=Sacramento&display=swap');

/* 全体に適用する */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-weight: normal;
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
}

/* 基本設定 */
body {
  text-align: center;
  background-color: #fff;
  line-height: 1.7;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: #000;
}

/* リンク */
a {
  text-decoration: none;
  transition: color .5s;
  color: #000;
}

/* ホバー */
a:hover {
  color: #fff;
}

/* フォントを指定する */
h1,
h2,
time,
.link {
  font-family: 'Sacramento', cursive;
}

/* 見出し */
h1 {
  margin: 0.5em auto;
  letter-spacing: 0;
}

/* アーティクル */
article {
  margin: 3em auto;
  padding: 1em;
  width: 80%;
  max-width: 500px;
  background: repeating-linear-gradient(-45deg, #fff 0, #fff 2px, #efefef 2px, #efefef 4px);
}

/* 見出し */
article h2 {
  font-size: 2em;
  letter-spacing: 0;
}

/* 段落 */
article p {
  margin: 1em auto 1.5em;
  text-align: justify;
  word-break: break-all;
}

/* フッター */
footer {
  margin: 1em auto 1.5em;
}

/* ボックス */
.box {
  padding: 1em 1.5em;
  background-color: rgba(255, 255, 255, 0.7);
}

/* 右揃え */
.right {
  margin: 1em auto 1.5em;
  text-align: right;
}

/* 追記リンク */
.link {
  padding: 0.2em 0.5em;
  border: thin solid #000;
  font-size: 15px;
}

/* ライン */
.line {
  margin: 1em auto;
  width: 10%;
  height: 1px;
  background-color: #000;
}

/* 画像サイズ */
.header {
  margin-top: 3em;
  width: 60px;
  height: auto;
}

/* フォーム系 */
textarea,
input[type] {
  -webkit-appearance: none;
  padding: 0.2em 0.5em;
  background-color: #efefef;
  border: none;
  border-radius: 0;
}

textarea {
  width: 200px;
  height: 70px;
}

input[type=text] {
  width: 80px;
}

input[type=submit] {
  width: auto;
}

.details {
  width: 100%;
  margin-bottom: 7px;
  }
  
  .details__summary {
    text-decoration: none;
    text-align: center;
    transition: color .5s;
    color: #000;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-left: 1em;
    padding-left: 1em;
    &::-webkit-details-marker {
      display: none;
    }
  }

  .details__content {
    color: #000000;
    overflow: hidden;
    margin: 0;
    padding: .3em 2em 1.5em;
    > * {
      margin: 0;
      padding-top: 16px;
      &:last-child {
        padding-bottom: 16px;
      }
    }
  }

  nav {
    position: sticky;
    position: -webkit-sticky;
    top: 5vh;
    padding: 0.8em 0 0.5em;
    background: repeating-linear-gradient(-45deg, #fff 0, #fff 2px, #f6f6f6 2px, #f6f6f6 4px);
  }
  
  nav h2 {
    position: relative;
    margin-bottom: 0.4em;
    line-height: 2;
    font-size: 1.2em;
  }
  
  nav h2::before {
    position: absolute;
    content: '';
    display: block;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 20px;
    background-color: #000;
  }
  
  nav ul {
    display: flex;
    justify-content: space-around;
    font-size: 1em;
  }
  
  nav ul li {
    list-style-type: none;
  }