/* ================

================*/

:root{
  --color-dark: #333;
  --color-middle: #ddd;
  --color-bright: #eee;
  --color-white: #fff;
  --color-red: #dd0000;
}

/* ==========エレメント========== */
/* ホバーで半透明：aタグにつける */
.global-container .el-hoverop img{
  transition: all .5s ease;
}
.global-container .el-hoverop:hover img{
  opacity: 0.6;
}

/* 新規タブで開くアイコン：aタグにつける */
.global-container .el-opennew-w,
.global-container .el-opennew-b{
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.global-container .el-opennew-w::after,
.global-container .el-opennew-b::after{
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: url(../img/ico-openinnew.svg) no-repeat center / cover;
}

.global-container .el-opennew-b::after{
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(50%) contrast(80%);
}

/* ==========クラスタ名でスタイル========== */
.global-container .accent-font{
  font-family: "Mochiy Pop P One", sans-serif;
}

.global-container .sub-accent-font{
  font-family: "Yusei Magic", sans-serif;
}

.global-container .paragraph + .paragraph{
  margin-top: .5rem;
}

.global-container .emphasis-text{
  color: var(--color-red);
  font-weight: bold;
  text-decoration: underline;
}

/* 中央寄せにしたい要素をこれで囲む */
.global-container .center-wapper{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ==========サイト全体========== */
.global-container *{
  box-sizing: border-box;
}

.global-container{
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr 100px;;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  min-height: 100vh;
  font-family: "Sawarabi Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background-color: var(--color-bright);
  color: var(--color-dark);
}

.global-container .inner{
  margin: auto;
  padding: 1rem 1.5rem;
}

.global-container img{
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 1024px) {
  .global-container{
    grid-template-columns: 250px 1fr;
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .global-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 80px 1fr 100px;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }  
}

/* ヘッダー */
.global-container header{
  grid-area: 1 / 1 / 3 / 2;
  background-color: var(--color-dark);
  color: var(--color-white);
}

header .header-contents{
  position: sticky;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  padding: 1rem 1.5rem;
}  

header .description{
  font-weight: normal;
  font-size: 85%;
}

header .heading{
  margin-top: .5rem;
  font-size: 155%;
  font-weight: bold;
  letter-spacing: .1em;
}

header .navigation{
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
}

@media screen and (max-width: 768px) {
  .global-container header {
    grid-area: 1 / 1 / 2 / 2;
    position: sticky;
    top: 0;
    z-index: 1;
    height: 100%;
  }

  header .header-contents{
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: .5rem 1rem;
  }
}

/* メイン */
.global-container main{
  grid-area: 1 / 2 / 2 / 3;
}

@media screen and (max-width: 768px) {
  .global-container main { 
    grid-area: 2 / 1 / 3 / 2; 
  }
}

/* フッター */
.global-container footer{
  grid-area: 2 / 2 / 3 / 3;
  background-color: var(--color-middle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

footer .link-list{
  display: flex;
  gap: 1.5rem;
}

footer .link-list li{
  display: inline-block;
  background-color: var(--color-dark);
  color: var(--color-white);
}

footer .link-list li a{
  display: flex;
  gap: .5rem;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: .5em 1em;
}

footer .link-list li a::after{
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background: url(../img/ico-openinnew.svg) no-repeat center / cover;
}
@media screen and (max-width: 768px) {
  .global-container footer { 
    grid-area: 3 / 1 / 4 / 2; 
  }
}
