@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;700&display=swap");

:root {
  --color-text: #111111;
  --color-tex-rgb: rgb(17, 17, 17);
  --color-bg-footer: #333333;

  --color-primary: #333333;
  --color-primary-rgb: rgb(51, 51, 51);

  --color-secondary: #cccccc;
  --color-secondary-rgb: rgb(204, 204, 204);

  --color-tertiary: #f7f7f7;
  --color-tertiary-rgb: rgb(204, 204, 204);

  --color-white: #ffffff;

  --line-normal-height: 1.6;
  --line-tight-height: 1.4;

  --space-sp: 30px;
  --space-tb: 40px;
  --space-pc: 60px;

  --width-pc: 1200px;
}
html {
  font-size: 62.5%;
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Arial", "Yu Gothic", "Meiryo",
    sans-serif;
}
body {
  -webkit-text-size-adjust: 100%;
}
img {
  width: 100%;
}
figure {
  margin-bottom: 30px;
}
#container {
  background-color: var(--color-tertiary);
  color: var(--color-text);
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
  -webkit-text-size-adjust: 100%;
}
a {
  color: var(--color-text);
  text-decoration: none;
}
header {
  position: relative;
}
.header_wrapper {
  display: flex;
  justify-content: space-between;
  background-color: var(--color-white);
  height: 50px;
  width: 100%;
}
.header_wrapper.fixed {
  position: fixed;
  z-index: 999;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  animation: navishow 0.5s forwards;
}
.button_menu {
  position: absolute;
  z-index: 9999; /*ボタンを最前面に*/
  top: 2px;
  right: 5px;
  cursor: pointer;
  width: 50px;
  height: 50px;
}
.button_menu.fixed {
  position: fixed;
  animation: navishow 0.5s forwards;
}

@keyframes navishow {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  tp {
    opacity: 1;
    transform: translateY(0);
  }
}
/*×に変化*/
.button_menu span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 14px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--color-primary);
  width: 45%;
}


.button_menu span:nth-of-type(1) {
  top: 15px;
}

.button_menu span:nth-of-type(2) {
  top: 23px;
}

.button_menu span:nth-of-type(3) {
  top: 31px;
}

.button_menu.active span:nth-of-type(1) {
  top: 15px;
  transform: translateY(6px) rotate(-25deg);
}

.button_menu.active span:nth-of-type(2) {
  opacity: 0;
}

.button_menu.active span:nth-of-type(3) {
  top: 27px;
  transform: translateY(-6px) rotate(25deg);
}

.header_logo {
  margin-top: 10px;
  margin-left: var(--space-sp);
  width: 96px;
}
.header_global_nav {
  position: fixed;
  z-index: -1;
  visibility: hidden;
  opacity: 0;
  top: 50px;
  width: 100%;
  height: 100vh;
  background-color: var(--color-primary);
  padding: 40px calc((100vw - 300px) * 0.5) 0;
  transition: 0.3s;
}

.header_global_nav.open {
  opacity: 1;
  z-index: 9999;
  visibility: visible;
}

.header_global_nav_inner ul {
  margin: 0 20px;
}
.lock {
  overflow: hidden;
}
.global_nav_list li {
  margin-bottom: 40px;
}
.global_nav_list li a {
  font-size: 1.8rem;
  color: var(--color-white);
}

.magazine_nav_list li {
  margin: 20px 0 0 20px;
}

.global_nav_sns li {
  display: inline-block;
  margin-right: 30px;
}

.global_nav_sns li a {
  display: inline-block;
  padding-top: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left bottom;
  width: 30px;
  overflow: hidden;
}

.global_nav_sns li span {
  visibility: hidden;
}


.fb {
  background-image: url(/wp-content/themes/kyoei/image/i_fb_w.svg);
}

.insta {
  background-image: url(/wp-content/themes/kyoei/image/i_insta_w.svg);
}

.tw {
  background-image: url(/wp-content/themes/kyoei/image/i_tw_w.svg);
}

.youtube {
  background-image: url(/wp-content/themes/kyoei/image/i_youtube_w.svg);
}

.nav_list {
  display: none;
}

.magazine_logo {
  background-color: white;
  text-align: center;
  padding: 15px 10px;
  border-top: solid 1px var(--color-secondary);
}
.magazine_logo img {
  width: 200px;
}

.home .magazine_logo {
  padding: 30px 10px;
}
.home .magazine_logo img {
  width: 300px;
}
.description h2 {
  background-color: var(--color-primary);
  color: white;
  padding: 10px 20px;
  font-size: 1.2rem;
  line-height: var(--line-normal-height);
}

.contents_wrapper {
  padding: 40px 20px;
  background-color: var(--color-tertiary);
}

.entry_wrapper,
.article_wrapper {
  margin-bottom: 40px;
}

.entry_box {
  margin-bottom: 40px;
  background-color: white;
}

.entry_thumnail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.entry_text {
  padding: 20px;
}

.entry_text h2 {
  margin-bottom: 20px;
}

.entry_text h2 a {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: var(--line-tight-height);
}

.entry_category {
  margin-bottom: 20px;
}

.entry_category li {
  display: inline-block;
  margin-right: 10px;
}
.entry_category a {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  font-size: 1rem;
  padding: 5px 8px;
  border-radius: 10px;
}
.entry_info_wrapper {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  align-items: center;
}

.entry_editor img {
  width: 30px;
  vertical-align: middle;
  background-color: white;
  border: solid 1px var(--color-secondary);
  border-radius: 100% 100%;
  margin-right: 5px;
}

aside {
  padding: 40px 20px 0;
}

.aside_box {
  margin-bottom: 60px;
  text-align: center;
}
.aside_box h3,
.related_wrapper h3 {
  display: inline-block;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: solid 1px var(--color-primary);
  padding-bottom: 5px;
  margin: 0 auto 40px;
}

.tag_list {
  text-align: left;
}

.tag_list li {
  display: inline-block;
  margin: 0 20px 20px 0;
}

.tag_list li a {
  display: inline-block;
  color: var(--color-text);
  background-color: white;
  border: solid 1px var(--color-secondary);
  padding: 10px;
  font-size: 1.4rem;
  border-radius: 20px;
}

.editor_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.editor_thumnail {
  margin-right: 20px;
  background-color: white;
  border-radius: 100% 100%;
  margin-right: 20px;
}

.editor_thumnail img {
  width: 80px;
  background-color: white;
  border-radius: 100% 100%;
}

.editor_text {
  text-align: left;
  font-size: 1.4rem;
  line-height: var(--line-normal-height);
}

.editor_name {
  font-weight: bold;
  margin-bottom: 10px;
}

.logo_kyoei {
  border: solid 1px #225b2f;
  background-color: white;
  text-align: center;
  padding: 10px;
}

.logo_kyoei img {
  width: 200px;
}
footer {
  background-color: var(--color-bg-footer);
  color: white;
  padding: 40px var(--space-sp);
  font-size: 1.4rem;
  line-height: var(--line-normal-height);
}
footer a {
  color: white;
}
footer p:not(:last-child) {
  margin-bottom: 20px;
}

.footer_profile {
  margin-bottom: 30px;
}
.footer_profile a {
  font-size: 1.6rem;
}

.footer_mail {
  margin-bottom: 30px;
}


.button_mail {
  display: inline-block;
  background-image: url(/wp-content/themes/kyoei/image/mail.svg);
  background-repeat: no-repeat;
  background-position: 15px 3px;
  background-size: 30px;
  padding: 6px 20px 6px 48px;
  border: solid 1px white;
  border-radius: 20px 20px;
}
.footer_sns {
  margin-bottom: 30px;
}
.footer_sns li {
  display: inline-block;
  margin-right: 30px;
}

.footer_sns li:last-child {
  margin-right: 0;
}

.footer_sns li img {
  width: 30px;
}

.copyright {
  font-size: 1.4rem;
}

.category_title {
  padding: 20px;
  font-size: 1.8rem;
  color: white;
  background-color: var(--color-primary);
}
.category_title small {
  display: inline-block;
  font-size: 1.4rem;
  margin-left: 10px;
}
.article_box {
  background-color: white;
  padding: 30px 20px;
}

.article_date {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.article_box h1 {
  font-size: 2.2rem;
  line-height: var(--line-tight-height);
  font-weight: bold;
  margin-bottom: 40px;
}

.article_info_wrapper {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.article_editor img {
  width: 30px;
  vertical-align: middle;
  background-color: white;
  border: solid 1px var(--color-secondary);
  border-radius: 100% 100%;
  margin-right: 5px;
}


.article_thumnail {
  margin-bottom: 40px;
}
.article_contents {
  margin-bottom: 40px;
}
.article_contents p {
  font-size: 1.6rem;
  line-height: var(--line-normal-height);
  padding-bottom: 30px;
}

.article_contents h2 {
  margin-bottom: 20px;
  padding-top: 20px;
  padding-bottom: 5px;
  border-bottom: solid 1px var(--color-primary);
  font-weight: bold;
  line-height: var(--line-normal-height);
}

.article_contents h3 {
  margin-bottom: 20px;
  padding-top: 20px;
  font-weight: bold;
  font-size: 1.6rem;
  line-height: var(--line-normal-height);
}
.article_tag_wrapper {
  display: flex;
  margin-bottom: 40px;
}
.article_tag_wrapper p {
  font-size: 1.4rem;
  font-weight: bold;
  margin-right: 20px;
  padding: 5px 0;
}
.article_tag_wrapper ul {
  text-align: right;
}
.article_tag_wrapper li a {
  padding: 5px 10px;
  font-size: 1.1rem;
}
.article_sns_wrapper {
  text-align: right;
  margin-bottom: 40px;
}
.article_sns {
  font-size: 1.2rem;
}

.article_page_wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.article_page_wrapper p a {
  display: inline-block;
  font-size: 1.4rem;
  padding: 5px 10px;
}
.related_wrapper {
  margin-bottom: 20px;
  text-align: center;
  padding-top: 20px;
}

.related_box {
  display: flex;
  justify-content: space-between;
  background-color: white;
  text-align: left;
  margin-bottom: 30px;
  padding: 20px;
}
.related_box_thumnail {
  width: 35%;
}
.related_box_title {
  width: 60%;
}

.related_box_title a {
  font-size: 1.4rem;
  line-height: var(--line-tight-height);
}

/*------------------------------------------*/
/* tablet(portrait) & smartphone(landscape) */
/*------------------------------------------*/

@media screen and (min-width: 560px) {
  #container {
    position: relative;
  }
  .header_logo {
    margin-top: 5px;
    width: 120px;
  }
  .header_global_nav {
    padding-top: 80px;
  }
  .global_nav_list li {
    margin-bottom: 60px;
  }
  .magazine_nav_list li {
    margin: 30px 0 0 20px;
  }
  
  .magazine_logo {
    padding: 25px;
  }

  .magazine_logo img {
    width: 240px;
  }

  .home .magazine_logo {
    padding: 35px;
  }
  .home .magazine_logo img {
    width: 400px;
  }

  footer {
    text-align: left;
    padding: 60px var(--space-tb);
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .footer_profile {
    grid-column: 1/2;
    grid-row: 1/2;
  }
  .footer_mail {
    grid-column: 1/2;
    grid-row: 2/3;
    margin-bottom: 0;
  }
  .footer_sns {
    grid-column: 2/3;
    grid-row: 1/2;
    text-align: right;
  }
  .copyright {
    grid-column: 2/3;
    grid-row: 2/3;
    text-align: right;
    margin-bottom: 0;
  }

  .description h2 {
    padding: 10px 20px;
    font-size: 1.4rem;
    line-height: var(--line-normal-height);
    text-align: center;
  }
  .entry_wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
    margin-bottom: 0;
    width: 100%;
  }
  .article_box {
    padding: 30px;
  }
  .entry_box {
    width: 46%;
  }
  .entry_thumnail img {
    height: 200px;
  }
  .editor_wrapper {
    justify-content: flex-start;
  }
  .category_title {
    font-size: 2.4rem;
  }
  .category_title small {
    font-size: 1.6rem;
  }
  .article_box h1 {
    font-size: 2.4rem;
  }
  .article_contents h2 {
    font-size: 2rem;
  }
  .related_wrapper {
    padding-top: 30px;
  }
  .related_box_wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .related_box {
    width: 48%;
  }
}
/*------------------------*/
/* tablet(landscape) & pc */
/*------------------------*/

@media screen and (min-width: 960px) {
  .header_wrapper {
    height: 76px;
  }

  .header_logo {
    padding-top: 5px;
    width: 168px;
    margin-left: var(--space-pc);
  }
  .button_menu {
    display: none;
  }

  .header_global_nav {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: right;
    opacity: 1;
    z-index: 1;
    visibility: visible;
    background-color: initial;
    padding: 0;
    transition: none;
    width: auto;
    margin-right: var(--space-pc);
  }
  .global_nav_list {
    position: static;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: right;
    margin-top: 5px;
    margin-right: 20px;
  }

  .global_nav_list li {
    margin-bottom: 0;
    margin-left: 20px;
  }

  .global_nav_list li a {
    display: block;
    position: relative;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-text);
    padding: 31px 0;
    letter-spacing: 0;
  }

  .global_nav_list li a::after {
    position: absolute;
    left: 0;
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    bottom: 0px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .global_nav_list li a:hover::after {
    visibility: visible;
    bottom: 5px;
    opacity: 1;
  }
  .global_nav_list li:first-child {
    position: relative;
  }
  .global_nav_list li:first-child a span {
    content: "\A";
    white-space: pre;
  }

  .magazine_nav_list {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    background-color: var(--color-white);
    top: 76px;
    padding-bottom: 20px;
    width: 100%;
  }

  .global_nav_list li:first-child:hover .magazine_nav_list {
    visibility: visible;
    opacity: 0.9;
  }

  .magazine_nav_list li a {
    display: inline-block;
    padding: 0 0 10px 0;
  }

  .global_nav_sns li {
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
  }

  .global_nav_sns li a {
    display: inline-block;
    padding-top: 10px;
    background-position: center right;
    margin: 0 0 0 20px;
    width: 20px;
  }
  .fb {
    background-image: url(/wp-content/themes/kyoei/image/i_fb_g.svg);
  }
  
  .insta {
    background-image: url(/wp-content/themes/kyoei/image/i_insta_g.svg);
  }
  
  .tw {
    background-image: url(/wp-content/themes/kyoei/image/i_tw_g.svg);
  }
    
  .youtube {
    background-image: url(/wp-content/themes/kyoei/image/i_youtube_g.svg);
  }
  
  .magazine_logo {
    padding: 20px;
  }

  .magazine_logo img {
    width: 240px;
  }

  .home .magazine_logo {
    padding: 40px;
  }
  .home .magazine_logo img {
    width: 480px;
  }

  .header_nav {
    position: static;
    height: auto;
    opacity: 1;
    background-color: var(--color-primary);
    padding: 10px;
    transition: initial;
  }

  .header_nav.fixed {
    position: fixed;
    z-index: 999;
    top: 0;
    width: 100%;
    animation: navishow 0.5s forwards;
  }
  .nav_list {
    position: static;
    transform: initial;
    display: flex;
    justify-content: center;
  }

  .nav_list li {
    margin-bottom: 0;
  }

  .nav_list li a {
    display: inline-block;
    padding: 10px 5px;
    margin: 0 15px;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.2s;
    transform: scale(1);
  }

  .nav_list li a:hover {
    transform: scale(1.05);
  }
  footer {
    padding: 60px var(--space-pc);
  }
  .description h2 {
    background-color: initial;
    color: var(--color-text);
    font-size: 1.8rem;
    font-weight: bold;
    padding: 40px 10px 0;
  }
  .contents_wrapper {
    display: grid;
    grid-template-columns: auto 320px;
    grid-column-gap: 60px;
    justify-content: center;
    margin: 0 atuo;
    padding: 80px 40px;
  }

  .entry_wrapper,
  .article_wrapper {
    width: calc(100vw - 460px);
    max-width: 880px;
    padding: 0;
    grid-column: 1/2;
    grid-row: 1/2;
  }

  .entry_box {
    margin-bottom: 60px;
  }

  .entry_thumnail a, .related_box_thumnail a {
    transition: opacity 0.3s;
  }

  .entry_thumnail a:hover, .related_box_thumnail a:hover {
    opacity: 0.8;
  }
  .entry_thumnail img {
    height: 200px;
  }
  .entry_text h2 a, .related_box_title a {
    background-image: linear-gradient(90deg, #111, #111); /* 線の色 */
    background-repeat: no-repeat;
    background-position: left bottom; /* 線の起点を左・下に設定 */
    background-size: 0 1px; /* 線の横幅を0、縦幅を1pxに */
    transition: background-size 0.3s linear;
  }
  .entry_text h2 a:hover, .related_box_title a:hover {
    background-size: 100% 1px;
  }

  .entry_editor a:hover {
    text-decoration: underline;
  }

  aside {
    grid-column: 2/2;
    grid-row: 1/3;
    max-width: 320px;
    padding: 0;
  }
  .editor_thumnail img {
    width: 65px;
  }

  .tag_list a {
    transition: transform 0.2s, background-color 0.2s;
  }

  .tag_list a:hover {
    transform: scale(1.1);
    background-color: var(--color-tertiary);
  }

  .category_title {
    background-color: white;
    color: var(--color-text);
    font-size: 2.8rem;
    padding: 40px;
  }
  .category_title small {
    font-size: 2rem;
    margin-left: 20px;
  }
  .article_box {
    padding: 40px;
  }
  .article_box h1 {
    font-size: 2.6rem;
  }
  .article_page_wrapper p a {
    transition: transform 0.2s, background-color 0.2s;
    transform: scale(1);
  }
  .article_page_wrapper p a:hover {
    background-color: var(--color-tertiary);
    border-radius: 15px;
    transform: scale(1.1);
  }
  .related_wrapper {
    max-width: 880px;
    grid-column: 1/2;
    grid-row: 2/3;
    padding: 40px 0;
  }
}
@media screen and (min-width: 1200px) {
  .nav_list li a {
    margin: 0 25px;
    font-size: 1.6rem;
  }
  .entry_thumnail img {
    height: 240px;
  }
}
