@charset "UTF-8";
/*
Theme Name: Theme Blog Site
Description: Templateブログサイト
Version: 1.2.0
Author: Templateブログサイト
*/

/* ============================================================
   Base
   ============================================================ */

body {
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

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

img.center {
  display: block;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   Layout Utilities
   ============================================================ */

.txt_left   { text-align: left; }
.txt_center { text-align: center; }
.txt_right  { text-align: right; }

.left   { margin-left: 0; margin-right: auto; }
.center { margin-left: auto; margin-right: auto; }
.right  { margin-left: auto; margin-right: 0; }

.items_center { align-items: center; }
.items_end    { align-items: flex-end; }

@media screen and (min-width:768px) {
  .pcnone { display: none; }
}

@media screen and (max-width:767px) {
  .spnone { display: none; }
  .center { margin: auto; }
}

@media screen and (min-width:768px) {
  .two_col {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media screen and (max-width:767px) {
  .two_col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px 0;
  }
}

/* ============================================================
   Section
   ============================================================ */

section h2.underline {
  position: relative;
  margin: 0 auto 70px;
  text-align: center;
}

section h2.underline:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (min-width:768px) {
  section h2 {
    margin-bottom: 100px;
  }

  section .content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 175px 20px 175px;
  }

  section.contact .content {
    padding: 75px 20px 175px;
  }
}

@media screen and (max-width:767px) {
  section h2 {
    margin-bottom: 40px;
  }

  section .content {
    margin: 0 auto;
    padding: 56px 20px;
  }
}

/* ============================================================
   Header
   ============================================================ */

.header_box {
  transition: all .4s ease-out;
}

.header_box div a img.scroll_after         { display: none; }
.header_box.scrollon div a img.scroll_after  { display: block; }
.header_box.scrollon div a img.scroll_before { display: none; }

@media screen and (min-width:768px) {
  header {
    height: 60px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0);
    position: fixed;
    top: 0;
    z-index: 10;
  }

  header .header_box {
    width: 100%;
    height: 60px;
  }

  header .header_box.scrollon {
    height: 55px;
  }

  header .header_box div.logo {
    max-width: 150px;
    height: auto;
  }

  header .header_box .header_nav,
  header .header_box .header_nav nav {
    height: 100%;
  }

  main {
    margin-top: 60px;
    overflow-x: hidden;
  }
}

@media screen and (min-width:1200px) {
  header             { height: 80px; }
  header .header_box { height: 80px; }

  header .header_box.scrollon {
    height: 70px;
  }

  header .header_box div.logo {
    max-width: 300px;
  }

  main {
    margin-top: 80px;
  }
}

@media screen and (max-width:767px) {
  header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    width: calc(100% - 20px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }

  header .header_box>div.logo {
    width: 170px;
    height: auto;
  }

  .header_box .header_nav .logo {
    width: 130px;
  }

  .header_box {
    height: 60px;
    display: flex;
    align-items: center;
  }

  .header_box.scrollon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 10px;
    height: 55px;
    background-color: #fff;
  }

  main {
    margin-top: 30px;
    overflow-x: hidden;
  }
}

main.toppage_main {
  overflow-x: visible;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  position: relative;
  padding: 70px 0;
}

footer .copyright p {
  text-align: center;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 1.28px;
}

/* ============================================================
   Top Page — imagelink cards
   ============================================================ */

section.blog_section {
  background-image: url("./images/blogtitle_bg.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
}

@media screen and (min-width:768px) {
  .blog_section .two_col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 70px;
  }

  section.blog_section .content {
    max-width: initial;
    margin: 0 auto;
    width: 90%;
    padding: 145px 0 100px;
  }

  .toppage_main section.blog_section .content {
    padding: 100px 0 100px;
    max-width: 1440px;
  }

  section.blog_section {
    background-position: center 60px;
  }
}

@media screen and (max-width:767px) {
  .blog_section .two_col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  section.blog_section .content {
    max-width: initial;
    margin: 0 auto;
    width: 90%;
    padding: 30px 20px 100px;
  }

  section.blog_section {
    background-position: center 110px;
  }
}

div.imagelink {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

div.imagelink a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

div.imagelink a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: all .3s;
}

div.imagelink a:hover img {
  transform: scale(1.1);
}

p.link_title span {
  display: block;
  line-height: 1;
  margin-top: 10px;
}

@media screen and (min-width:768px) {
  div.imagelink a:after {
    content: "";
    background-image: url("./images/icon_link.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 3%;
    right: 3%;
    z-index: 1;
  }

  p.link_title {
    position: absolute;
    z-index: 1;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
    width: 100%;
    line-height: 1.3;
  }
}

@media screen and (min-width:1200px) {
  div.imagelink a:after {
    width: 65px;
    height: 65px;
    bottom: 6.6%;
    right: 6.6%;
  }

  p.link_title {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (max-width:767px) {
  div.imagelink a:after {
    content: "";
    background-image: url("./images/icon_link.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 3.3%;
    right: 3.3%;
    z-index: 1;
  }

  p.link_title {
    position: absolute;
    z-index: 1;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    line-height: 1.3;
  }
}

/* ============================================================
   Blog — Common
   ============================================================ */

.blog p.date,
.blog_section p.date {
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  color: #D9D9D9;
}

/* ============================================================
   Blog List
   ============================================================ */

section.blog .content {
  max-width: 1100px;
}

@media screen and (min-width:768px) {
  section.blog .content {
    padding-bottom: 150px;
  }

  .blog_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
  }

  .blog_list>.blog_box {
    position: relative;
  }

  .blog_box .blog_info {
    width: 100%;
    padding: 15px 0 0;
  }
}

@media screen and (min-width:1200px) {
  .blog_list {
    gap: 60px 30px;
  }
}

@media screen and (max-width:767px) {
  section.blog .content {
    padding-bottom: 80px;
  }

  .blog_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 0;
    margin: 0 auto;
    width: 100%;
    padding-top: 20px;
  }

  .blog_list>.blog_box {
    height: auto;
    position: relative;
  }

  .blog_box .blog_info {
    width: 100%;
    padding: 15px 0;
  }

  .blog_title {
    display: block;
    margin-top: 0;
  }

  section.blog ul li {
    padding: 0;
  }
}

.blog_list>.blog_box a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  text-decoration: none;
}

.blog_list>.blog_box a .img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  z-index: 1;
}

.blog_list>.blog_box a .img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.blog h2.blog_title {
  margin: 30px auto 60px;
  line-height: 1;
}

.blog_box .blog_info p.blog_title {
  font-weight: 700;
  margin: 15px auto 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
}

.blog_box .blog_info p.blog_description {
  margin-top: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
}

/* ============================================================
   Blog Single
   ============================================================ */

.blog_detail {
  margin: 30px auto 0;
}

.single_thumbnail .img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.single_thumbnail .img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.blog_detail .single_content {
  border-bottom: 2px solid #1f1f1f;
}

.blog_detail .single_content p {
  margin-bottom: 1em;
}

@media screen and (min-width:768px) {
  .blog_detail .single_content {
    margin: 80px auto 0;
    padding-bottom: 80px;
  }
}

@media screen and (max-width:767px) {
  .blog_detail .single_content {
    margin: 40px auto 0;
    padding-bottom: 40px;
  }
}

.single_page_link .prev_single a,
.single_page_link .next_single a {
  font-weight: 700;
}

.single_page_link a:hover {
  color: rgba(146, 146, 146, 1);
}

.single_page_link p.button {
  margin: 0 auto;
}

@media screen and (min-width:768px) {
  .single_page_link {
    margin: 100px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    gap: 0 30px;
  }

  .single_page_link .prev_single { text-align: right; }
  .single_page_link .next_single { text-align: left; }
}

@media screen and (max-width:767px) {
  .single_page_link {
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: .6fr 1fr .6fr;
    justify-content: space-between;
    align-items: center;
  }

  .single_page_link .prev_single a.more_size,
  .single_page_link .next_single a.more_size {
    font-size: .875rem;
  }

  .single_page_link .prev_single { text-align: left; }
  .single_page_link .next_single { text-align: right; }
}

.back_singlelists {
  text-align: center;
}

.back_singlelists a {
  padding-bottom: 8px;
  border-bottom: 1px solid #000;
}

.back_singlelists a:hover {
  border-bottom: none;
}

/* ============================================================
   Pagination
   ============================================================ */

ul.page-numbers li {
  display: inline-block;
  margin-right: 1em;
}

ul.page-numbers li:last-child {
  margin-right: 0;
}

ul.page-numbers li a:hover {
  background-color: #000;
  color: #fff;
  opacity: 1;
}

ul.page-numbers li a.prev svg,
ul.page-numbers li a.next svg {
  height: 15px;
}

ul.page-numbers li a.prev:hover svg path,
ul.page-numbers li a.next:hover svg path {
  stroke: #fff;
}

@media screen and (min-width:768px) {
  ul.page-numbers {
    width: 100%;
    margin: 100px auto 0;
    text-align: center;
  }

  ul.page-numbers li .page-numbers.current {
    font-size: 1.25rem;
    font-weight: 700;
    width: 45px;
    height: 45px;
    display: block;
    line-height: 45px;
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
  }

  ul.page-numbers li a {
    font-size: 1.25rem;
    font-weight: 700;
    width: 45px;
    height: 45px;
    display: block;
    line-height: 45px;
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
  }
}

@media screen and (max-width:767px) {
  ul.page-numbers {
    width: 100%;
    margin: 50px auto 0;
    text-align: center;
  }

  ul.page-numbers li .page-numbers.current {
    font-size: 1.25rem;
    font-weight: 700;
    width: 30px;
    height: 30px;
    display: block;
    line-height: 30px;
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
  }

  ul.page-numbers li a {
    font-size: 1.25rem;
    font-weight: 700;
    width: 30px;
    height: 30px;
    display: block;
    line-height: 30px;
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
  }
}

/* ============================================================
   Button
   ============================================================ */

@media screen and (min-width:768px) {
  .button {
    margin: 100px auto 0;
  }

  p.button.max a {
    width: 100%;
    display: block;
  }

  .single_page_link .button a {
    width: 500px;
  }

  .button a {
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0);
    position: relative;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    transition: text-shadow 0.3s;
    width: 500px;
    height: 85px;
    line-height: 85px;
    color: #fff;
    max-width: 100%;
  }

  .button a:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    opacity: 1;
  }

  .button a:hover span {
    color: #000;
  }

  .button a:after {
    transition: .3s ease;
  }

  .button a:hover:before {
    right: -100px;
  }
}

@media screen and (max-width:767px) {
  .button {
    margin: 40px auto 0;
    text-align: center;
  }

  .button a {
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0);
    position: relative;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    transition: text-shadow 0.3s;
    width: 100%;
    max-width: 400px;
    padding: 15px 0;
    color: #fff;
  }

  .button a:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    opacity: 1;
  }

  .button a:hover span {
    color: #000;
  }

  .button a:before {
    content: '';
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 17px;
    transition: right 0.5s ease;
  }

  .button a:after {
    content: none;
    transition: .3s ease;
  }

  .button a:hover,
  p.submit_button:hover input {
    opacity: 1;
  }
}
