/* common */
:root {
  /* color */
  --black: #24140e;
  --navy: #001e43;
  --white: #efefef;
  --beige: #f0e8d9;
  --brown: #5d4037;

  /* font */
  --titel-font: "dreaming-outloud-sans", "monopin-j", sans-serif;
  --p-font: monopin-j, sans-serif;

}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: var(--beige);
  color: var(--black);
}

section {
  max-width: 800px;
  margin: 160px auto 0;
  padding: 0 20px;
}

h2 {
  font-family: var(--titel-font);
  font-size: 36px;
  color: var(--navy);
}

h3 {
  font-family: var(--titel-font);
  font-size: 24px;
  color: var(--navy);
}

a {
  display: block;
  font-family: var(--p-font);
  text-decoration: none;
  transition: opacity 0.3s;

  &:hover {
    opacity: 0.5;
  }
}

p {
  font-family: var(--p-font);
  line-height: 1.5;
}

img {
  display: block;
}

.more-btn {
  width: 200px;
  height: 50px;
  margin-top: 80px;
  border: 2px solid var(--brown);
  border-radius: 8px;
  text-align: center;
  line-height: 46px;

  a {
    color: var(--brown);
    transition: all 0.3s;

    &:hover {
      background: var(--brown);
      color: var(--beige);
      opacity: 1;
    }
  }
}

.coffee-icon-wrap {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 160px;

  div {
    background: url(../images/coffee-icon.png) center / contain;
    width: 20px;
    height: 20px;

    &:nth-child(2n) {
      transform: scale(1.3);
    }
  }
}

/* header */
header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  padding: 0 20px;
  background: var(--navy);
  z-index: 3;

  img {
    height: auto;
    width: 250px;
  }
}

.header-nav {
  display: flex;
  gap: 20px;
  list-style: none;

  li a {
    font-family: var(--titel-font);
    font-size: 22px;
    color: var(--white);
    text-decoration: none;
  }
}

/* mv */
.mv {
  background-image: url(../images/mv.jpg);
}

.mv-parallax {
  min-height: 700px;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.scroll p {
  display: inline-block;
  position: absolute;
  right: 60px;
  bottom: -80px;
  z-index: 2;
  padding: 10px 10px 160px;
  color: var(--white);
  font-size: 20px;
  font-family: var(--titel-font);
  line-height: 1;
  letter-spacing: 0.2em;
  writing-mode: vertical-lr;
  transition: 0.2s;

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    height: 150px;
    background: var(--white);
    animation: scroll-anime 2s cubic-bezier(1, 0, 0, 1) infinite;
  }
}

@keyframes scroll-anime {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }

  30% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }

  70% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }

  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/* concept */
.concept-description {
  margin-top: 80px;

  p {
    line-height: 1.8;
  }
}

/* menu */
.menu {
  display: flex;
  gap: 50px;
  width: 100%;
  margin-top: 80px;

  &:nth-child(odd) {
    flex-direction: row-reverse;
  }
}

.menu-description {
  flex: 1;

  p:first-child {
    font-size: 20px;
  }

  p:last-child {
    margin-top: 32px;
  }
}

.menu img {
  width: 300px;
  height: auto;
}

/* newsはarchive.phpに記載 */

/* footer */
footer {
  position: relative;
  margin-top: 200px;
  width: 100%;
  height: 260px;
  background: var(--navy);

  small {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    font-family: var(--titel-font);
    color: var(--white);
  }
}

.footer-widgets .row {
  display: flex;
  justify-content: space-around;

  h4 {
    margin: 20px 0;
    font-family: var(--p-font);
    color: var(--white);
  }

  ul {
    font-family: var(--p-font);
    list-style: none;
  }

  li {
    padding: 3px;
  }

  a {
    color: var(--white);
  }
}

.wp-block-search__input {
  font-family: var(--p-font);
  border-radius: 8px;
}

.wp-block-search__button {
  font-family: var(--p-font);
  border-radius: 8px;
}

/* single.php */
.single-section {
  margin-top: 0;
  padding-top: 200px;
}

.category-and-year-wrap {
  display: flex;
  gap: 10px;

  a {
    font-family: var(--titel-font);
    color: var(--navy);

    &:last-child::before {
      content: '/';
      pointer-events: none;
    }

  }
}

.news-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;

  div a {
    display: inline-block;
    color: var(--navy);
  }
}

.tag-wrap {
  margin-top: 100px;
}

.content-Tags {
  display: flex;
  gap: 5px;

  li {
    list-style: none;
    border: 2px solid var(--brown);
    border-radius: 16px;
    width: 120px;
    height: 30px;
    text-align: center;
    line-height: 26px;
  }

  a {
    color: var(--brown);
    transition: all 0.3s;

    &:hover {
      background: var(--brown);
      color: var(--beige);
      border-radius: 16px;
      opacity: 1;
    }
  }
}

/* page.php */
.page-section {
  margin-top: 0;
  padding-top: 200px;
}

.wp-block-table.is-style-stripes {
  font-family: var(--p-font);

  tr:nth-child(odd) td,
  tr:nth-child(odd) th {
    background: var(--white);
  }
}

/* archive.php */
.archive-section {
  margin-top: 0;
  padding-top: 200px;
}

.nav-links {
  display: flex;
  gap: 5px;
  margin-top: 80px;
  justify-content: center;

  a {
    transition: all 0.3s;

    &:hover {
      background-color: var(--brown);
      color: var(--beige);
      opacity: 1;
    }
  }
}

.page-numbers {
  width: 50px;
  height: 50px;
  border: 1px solid var(--brown);
  border-radius: 8px;
  line-height: 50px;
  font-family: var(--titel-font);
  color: #5d4037;
  font-size: 20px;
  text-align: center;

  &.current {
    background-color: var(--brown);
    color: var(--beige);
  }
}

/* loop-post.php */
.post-article-wrap {
  display: flex;
  gap: 20px;
  margin-top: 60px;
}

.post-img-wrap {
  width: 200px;
  height: 150px;

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

.post-article-right {
  position: relative;

  h3 {
    font-size: 18px;
  }

  p {
    margin-top: 10px;
    color: var(--black);
  }

  ul {
    position: absolute;
    bottom: 0;
    font-family: var(--titel-font);
    color: var(--navy);
    list-style: none;
    ;
  }
}

.coffee-icon-wrap.article-line {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto 0;

  &::before,
  &::after {
    content: '';
    width: 240px;
    height: 1px;
    background-color: var(--brown);
  }

  &::before {
    margin-right: 8px;
  }

  &::after {
    margin-left: 8px;
  }
}

/* 404.php */
.not-found-section {
  margin-top: 0;
  padding-top: 200px;

  h2 {
    font-size: 48px;
  }

  a {
    display: inline-block;
  }

  p {
    margin-top: 80px;
  }
}

/* search.php */
.search-section {
  margin-top: 0;
  padding-top: 200px;

  p {
    margin-top: 80px;
  }
}

.search-form {
  margin-top: 32px;
}


/* index.php */
.index-section {
  margin-top: 0;
  padding-top: 200px;
}