@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; }
  .two_col {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media screen and (max-width:767px) {
  .spnone { display: none; }
  .center { margin: auto; }
  .two_col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.875rem 0;
  }
}

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

section h2.underline {
  position: relative;
  margin: 0 auto 4rem;
  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: 5rem;
  }

  section .content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10.9375rem 1.25rem;
  }

  section.contact .content {
    padding: 4.6875rem 1.25rem 10.9375rem;
  }
}

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

  section .content {
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
  }
}

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

.header_box {
  transition: all 0.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: clamp(4rem, 6vw, 5.625rem);
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    z-index: 10;
  }

  header .header_box {
    width: 100%;
    height: clamp(4rem, 6vw, 5.625rem);
    display: flex;
    align-items: center;
    padding: 0 clamp(1rem, 2vw, 1.875rem);
    box-sizing: border-box;
  }

  header .header_box.scrollon {
    height: clamp(3rem, 4.5vw, 4.375rem);
  }

  header .header_box div.logo {
    max-width: clamp(8rem, 12vw, 13.75rem);
    height: auto;
  }

  header .header_box .header_nav,
  header .header_box .header_nav nav {
    height: 100%;
    display: flex;
    align-items: center;
  }

  main {
    margin-top: clamp(4rem, 6vw, 5.625rem);
    overflow-x: hidden;
  }
}

@media screen and (min-width:1200px) {
  header             { height: clamp(5rem, 7vw, 6.875rem); }
  header .header_box { height: clamp(5rem, 7vw, 6.875rem); padding: 0 clamp(1.5rem, 2.5vw, 2.5rem); }

  header .header_box.scrollon {
    height: clamp(3.5rem, 5vw, 5rem);
  }

  header .header_box div.logo {
    max-width: clamp(10rem, 15vw, 17.5rem);
  }

  main {
    margin-top: clamp(5rem, 7vw, 6.875rem);
  }
}

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

  header .header_box>div.logo {
    width: clamp(9rem, 42vw, 13rem);
    height: auto;
  }

  .header_box .header_nav .logo {
    width: clamp(8rem, 35vw, 10rem);
  }

  .header_box {
    height: 3.75rem;
    display: flex;
    align-items: center;
  }

  .header_box.scrollon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 0.625rem;
    height: 3.4375rem;
    background-color: #fff;
  }

  main {
    margin-top: 3.75rem;
    overflow-x: hidden;
  }
}

main.toppage_main {
  overflow-x: visible;
}

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

footer {
  position: relative;
  padding: 4.375rem 0;
}

footer .copyright p {
  text-align: center;
  font-weight: 700;
  line-height: 1;
  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: 4.375rem;
  }

  .blog_section .two_col .imagelink--wide {
    grid-column: 1 / -1;
    aspect-ratio: 64 / 9;
  }

  section.blog_section .content {
    max-width: initial;
    margin: 0 auto;
    width: 90%;
    padding: 9.0625rem 0 6.25rem;
  }

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

  section.blog_section {
    background-position: center 3.75rem;
  }
}

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

  section.blog_section .content {
    max-width: initial;
    margin: 0 auto;
    width: 90%;
    padding: 3.125rem 1.25rem 6.25rem;
  }

  section.blog_section {
    background-position: center 6.875rem;
  }
}

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 0.3s;
}

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

div.imagelink a:after {
  content: "";
  background-image: url("./images/icon_link.png");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  z-index: 1;
}

p.link_title {
  position: absolute;
  z-index: 1;
  left: 50%;
  text-align: center;
  width: 100%;
  line-height: 1.3;
}

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

@media screen and (min-width:768px) {
  div.imagelink a:after {
    width: 1.875rem;
    height: 1.875rem;
    bottom: 3%;
    right: 3%;
  }

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

@media screen and (min-width:1200px) {
  div.imagelink a:after {
    width: 4.0625rem;
    height: 4.0625rem;
    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 {
    width: 1.875rem;
    height: 1.875rem;
    bottom: 7.3%;
    right: 3.3%;
  }

  p.link_title {
    top: 1.25rem;
    transform: translateX(-50%);
  }
}

/* ============================================================
   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;
}

.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: 1.875rem auto 3.75rem;
  line-height: 1;
}

.blog_box .blog_info p.blog_title {
  font-weight: 700;
  margin: 0.9375rem 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: 0.625rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
}

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

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

  .blog_list>.blog_box {
    position: relative;
  }

  .blog_box .blog_info {
    width: 100%;
    padding: 0.9375rem 0 0;
  }
}

@media screen and (min-width:1200px) {
  .blog_list {
    gap: 3.75rem 1.875rem;
  }
}

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

  .blog_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    margin: 0 auto;
    width: 100%;
    padding-top: 1.25rem;
  }

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

  .blog_box .blog_info {
    width: 100%;
    padding: 0.9375rem 0;
  }

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

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

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

.blog_detail {
  margin: 1.875rem 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: 5rem auto 0;
    padding-bottom: 5rem;
  }
}

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

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

.single_page_link a:hover {
  color: #929292;
}

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

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

  .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: 3.125rem 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: 0.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: 0.5rem;
  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.prev svg,
ul.page-numbers li a.next svg {
  height: 0.9375rem;
}

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

ul.page-numbers li .page-numbers.current,
ul.page-numbers li a {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  border: 1px solid #000;
}

ul.page-numbers li .page-numbers.current {
  background-color: #000;
  color: #fff;
}

ul.page-numbers li a {
  background-color: #fff;
  color: #000;
  text-align: center;
}

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

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

  ul.page-numbers li .page-numbers.current,
  ul.page-numbers li a {
    width: 2.8125rem;
    height: 2.8125rem;
    line-height: 2.8125rem;
  }
}

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

  ul.page-numbers li .page-numbers.current,
  ul.page-numbers li a {
    width: 1.875rem;
    height: 1.875rem;
    line-height: 1.875rem;
  }
}

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

.button a {
  background: #000;
  border: 2px solid transparent;
  position: relative;
  display: inline-block;
  text-align: center;
  overflow: hidden;
  transition: text-shadow 0.3s;
  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: 0.3s ease;
}

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

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

  .single_page_link .button a,
  .button a {
    width: 31.25rem;
    height: 5.3125rem;
    line-height: 5.3125rem;
  }

  .button a:hover:before {
    right: -6.25rem;
  }
}

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

  .button a {
    width: 100%;
    max-width: 25rem;
    padding: 0.9375rem 0;
  }

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

  .button a:after {
    content: none;
  }
}
