@charset "UTF-8";

body {
  font-size: 16px;
  font-family: YuGothic, 游ゴシック, "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
  color: #282828;
  background-color: #fff;
  line-height: 1.75;
  letter-spacing: 1px;
}

a:link {
  color: #282828;
}
a:visited {
  color: #282828;
}
a:hover {
  color: #282828;
}
a {
  color: #282828;
  text-decoration: none;
}

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

main {
  width: min(90%, 1080px);
  margin: 120px auto;
}

/* ヘッダー
    ======================================== */
.sp-menu {
  display: none;
}

.header-logo {
  width: 168px;
}

.header-nav__wrap {
  display: flex;
  align-items: center;
  padding-left: 5%;
  width: 100%;
  height: 80px;
  background: aliceblue;
  position: fixed;
  top: 0px;
}

.header-nav {
  margin: 0 5% 0 auto;
}

.header-nav__list {
  display: flex;
  align-items: center;
  column-gap: 30px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ボタン */
.header-btn a {
  background: #007bbb;
  border-radius: 3px;
  position: relative;
  padding: 1em 3em 1em 2em;
  color: #fff;
  text-align: center;
  transition: 0.3s ease-in-out;
}

.header-btn a:hover {
  background: #282828;
  color: #fff;
}

.header-btn a:after {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  position: absolute;
  top: 22px;
  right: 22px;
  transform: rotate(45deg) translateY(-50%);
  border-radius: 1px;
  transition: 0.3s ease-in-out;
}

.header-btn a:hover:after {
  border-color: #fff;
}

/* 投稿一覧
======================================== */
.postlist-unit {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: start;
  column-gap: 5%;
}

.postlist-contents__wrap {
  width: 60%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  row-gap: 40px;
}

.postlist-contents {
  width: 48%;
}

.postlist-img {
  width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.postlist-date {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 0.5em;
}

.post-time {
  font-size: 14px;
}

.post-cat {
  padding: 0.5em;
  font-size: 12px;
  background: #007bbb;
  color: #fff;
  letter-spacing: 0;
  line-height: 0.5;
}

.post-categories {
  display: flex;
  gap: 0.5em;
}

.postlist-ttl {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
}

/* サイドバー
======================================== */

.sidebar {
  background: aliceblue;
  padding: 2em 1em 4em 1em;
  width: min(31.11vw, 280px);
}

.sidebar-ttl {
  font-size: 18px;
  font-weight: bold;
  padding: 0.5em;
  border: solid 1px;
  margin-bottom: 1em;
}

.recent-wrap li {
  margin-bottom: 24px;
}

.recent-wrap img {
  margin: 0;
  object-fit: cover;
  width: 248px;
  height: 148.8px;
}

.recent-ttl {
  line-height: 1.3;
  font-weight: bold;
  padding-left: 0.5em;
  font-size: 14px;
}

.sidebar-date__time {
  font-size: 12px;
  padding-left: 0.5em;
}

.cat-wrap {
  margin-top: 4em;
}

.cat-all a,
.cat-list li a {
  padding: 0.5em;
  font-size: 12px;
  background: #007bbb;
  color: #fff;
  letter-spacing: 0;
  line-height: 0.5;
}

.cat-all,
.cat-list {
  margin-left: 8px;
}

.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1em;
  margin-top: 0.5em;
}

.wpp-thumbnail {
  width: 90px;
}

.wpp-post-title {
  display: block;
  line-height: 1.2;
  margin-top: 1em;
}

/* ページネーション
======================================== */

.nav-links {
  margin-top: 56px;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-numbers li {
  display: inline-block;
  margin: 0 8px;
  padding: 6px;
  border: solid 2px #0f77b9;
  color: #0f77b9;
  width: 40px;
  height: 40px;
  text-align: center;
  position: relative;
  border-radius: 5px;
}

.current {
  vertical-align: middle;
  position: absolute;
  top: 4px;
  left: 1px;
  width: 100%;
  height: 100%;
  text-align: center;
  display: table;
  text-decoration: none;
  font-weight: bold;
}

.page-numbers li a {
  color: #0f77b9;
  vertical-align: middle;
  position: absolute;
  top: 4px;
  left: 1px;
  width: 100%;
  height: 100%;
  text-align: center;
  display: table;
  text-decoration: none;
}

.page-numbers li a:nth-child(2) {
  letter-spacing: 0;
}

.page-numbers li a:hover,
.page-numbers li a.active {
  opacity: 0.5;
}

/* 記事内容
======================================== */

.post-unit {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.article-wrap {
  width: 65%;
}

.article-ttl {
  font-size: clamp(20px, 1.875vw, 24px);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

article p {
  margin-top: 2.5em;
}

article > p:first-of-type {
  margin-top: 1em;
}

.article-img {
  margin: 24px auto;
  text-align: center;
}

/* シェアボタン
======================================== */

.sns-share__wrap {
  display: flex;
  align-items: center;
  margin-top: 80px;
}

.sns-share__wrap li {
  display: inline-block;
  width: 60px;
  text-align: center;
  margin: 0 5px;
}

.sns-img {
  width: 25px;
}

.sns-img__x {
  width: 20px;
}

.sns-share__text {
  font-size: 10px;
  margin-top: 2px;
  display: block;
}

.sns-share__x .sns-share__text {
  color: #000;
  font-size: 9px;
}

.sns-share__fb .sns-share__text {
  color: #1877f2;
}

.sns-share__hateb .sns-share__text {
  color: #00a4de;
}

.sns-share__pocket .sns-share__text {
  color: #f87474;
}

.sns-share__line .sns-share__text {
  color: #00b903;
  font-size: 9px;
}

/* ページネーション
======================================== */
.pagena {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 40px auto;
}

a.pagena-list {
  display: block;
  position: relative;
}

.pagena-prev a,
.pagena-next a {
  position: relative;
}

.pagena-prev a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 3px solid #000;
  border-left: 3px solid #000;
  transform: rotate(-45deg);
  position: absolute;
  top: 2px;
  left: -24px;
}

.pagena-next a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 3px solid #000;
  border-right: 3px solid #000;
  transform: rotate(45deg);
  position: absolute;
  top: 2px;
  right: -24px;
}

/* 記事情報
======================================== */
.article-date {
  display: flex;
  align-items: center;
  gap: 1em;
}

.post-time {
  font-size: 14px;
}

.post-categories li {
  padding: 0.5em;
  font-size: 12px;
  background: #007bbb;
  letter-spacing: 0;
  line-height: 0.5;
}

.post-categories li a {
  color: #fff;
}

/* フォーム
======================================== */
input[type="button"],
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="submit"],
textarea,
textarea::placeholder {
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px;
  font-family: YuGothic, 游ゴシック, "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
}

select {
  -webkit-appearance: none;
  appearance: none;
}

/* お問い合わせフロー */

.contact-flow02 {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
}

.contact-flow__item02 {
  width: 100px;
  text-align: center;
  background: #d9d9d9;
  border: #999 solid 2px;
  font-weight: bold;
  padding: 0.5em;
  border-radius: 40px;
}

.contact-flow02 .current02 {
  background: #000;
  color: #fff;
  border: #000;
  padding-top: 10px;
}

.contact-flow__line02 {
  width: 40px;
  border-top: dotted 4px #d9d9d9;
  margin-top: 24px;
}

.contact-text {
  margin: 40px 0;
}

.form {
  margin: 40px auto;
}

.form-box {
  display: flex;
  align-items: center;
  margin: 2em 0;
}

form .must::after {
  content: "必須";
  display: inline-block;
  font-size: 70%;
  color: red;
  padding-left: 1em;
}

.form-box dt {
  width: 35%;
  margin-right: 2em;
}

.form-box dd {
  width: 100%;
}

.form-box__textarea {
  align-items: stretch;
}

.form-box__textarea dt {
  margin-top: 4em;
}

input {
  outline: none;
}

.form-input {
  box-sizing: border-box;
  border: none;
  width: 100%;
  background: #ddd;
  height: 4em;
  padding-left: 0.5em;
}

.form-comment {
  box-sizing: border-box;
  border: none;
  width: 100%;
  background: #ddd;
  height: 10em;
  padding: 0.5em;
}

#comment {
  height: 400px;
}

/* プライバシーポリシーに同意 */

.agree-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

a.agree-link {
  color: red;
  font-weight: bold;
  margin-left: 0.5em;
}

.agree-link :hover {
  opacity: 0.8;
}

#agree {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* 確認ボタン */
.form-btn__wrap {
  margin-top: 40px;
  text-align: center;
}

.confirm-btn {
  width: 280px;
  height: 50px;
  border: 0;
  background-color: #282828;
  color: #fff;
  transition: 0.3s;
}

.confirm-btn:hover {
  opacity: 0.7;
}

/* 戻る・送信ボタン */

.form-btn02__wrap {
  display: flex;
  justify-content: space-between;
  margin: 40px auto;
  width: 400px;
  height: 50px;
}

.back-btn {
  border: solid 1px#282828;
  background: #fff;
  transition: 0.3s;
  padding: 0 1em;
}

.submit-btn {
  display: block;
  border: 0;
  background-color: #282828;
  color: #fff;
  transition: 0.3s;
  padding: 1em 4em;
  cursor: pointer;
}

#wpcf7-f75-p78-o1 .submit-btn {
  margin: 40px auto;
}

.back-btn:hover,
.submit-btn:hover {
  opacity: 0.7;
}

.page-id-117 .form-box__textarea dt {
  margin-top: 1em;
}

@media screen and (max-width: 830px) {
  /* ヘッダー
======================================== */
  .header-nav__wrap {
    display: none;
  }

  .sp-menu {
    display: block;
  }

  .header-logo {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 5%;
    width: 160px;
  }

  /* hambager */
  #sp__nav {
    position: fixed;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    top: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    transition: all 0.3s;
  }

  #sp__nav.clicked {
    opacity: 1;
    visibility: visible;
    z-index: 999;
  }

  #sp__nav.clicked .sp__nav-wrap {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: aliceblue;
  }

  /* PCと同じclass名 */
  .header-nav__list {
    position: absolute;
    z-index: 999;
    top: 42%;
    left: 20%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
  }

  /* hamburger */

  #header__ham {
    position: fixed;
    z-index: 1000;
    top: 22px;
    right: 5%;
    width: 30px;
    height: 20px;
  }

  .ham-text {
    position: absolute;
    top: 5px;
    left: -62px;
  }

  .ham-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #282828;
    transition: all 0.3s;
  }

  .line1 {
    top: 8px;
  }

  .line2 {
    top: 16px;
  }

  .clicked .line1 {
    top: 11px;
    height: 4px;
  }

  .clicked .line2 {
    top: 11px;
    height: 4px;
  }

  .postlist-unit {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .postlist-contents__wrap {
    width: 90%;
  }

  .sidebar {
    width: 90%;
  }

  .recent-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .recent-wrap li {
    width: 30%;
  }

  .cat-wrap {
    margin-top: 1em;
  }

  .post-unit {
    display: block;
    width: 100%;
  }

  .article-wrap,
  .sidebar {
    width: 100%;
  }

  .postlist-contents__wrap {
    width: 90%;
  }

  .recent-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .recent-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 6;
  }

  .recent-wrap li {
    width: 30%;
  }

  .cat-wrap {
    margin-top: 1em;
  }

  .sns-share__wrap {
    justify-content: center;
  }
}

/* 500px~
======================================== */
@media screen and (max-width: 500px) {
  .postlist-contents__wrap {
    flex-direction: column;
    align-items: center;
  }

  .postlist-contents {
    width: 100%;
  }

  .postlist-img {
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 6;
  }

  .recent-wrap li {
    width: 48%;
  }

  .recent-wrap img {
    height: 120px;
  }

  .sns-share__line .sns-share__text {
    font-size: 8px;
  }

  /*お問い合わせフォーム*/

  .form-box {
    flex-direction: column;
    align-items: stretch;
  }

  .form-box dt {
    width: 100%;
    margin-right: 0;
    margin-left: 0.5em;
  }

  .agree-group {
    flex-direction: column;
  }

  .wpcf7-list-item {
    margin: 0 !important;
  }

  a.agree-link {
    margin-left: 0;
  }
}
