@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: 90%;
  margin: 120px auto;
}

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

.header-logo {
  width: 140px;
}

.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 {
  margin: 0 auto;
  width: 90%;
}

.postlist-contents__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 80px;
}

.postlist-contents {
  width: calc(33.3% - 40px * 3 / 4);
  background: aliceblue;
}

.postlist-imgf {
  overflow: hidden;
  max-width: 480px;
}

.postlist-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: all 0.5s;
}

.postlist-img:hover {
  transform: scale(1.1);
}

.postlist-group {
  padding: 1em 1em 2em 1em;
}

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

.postlist-date__time {
  font-size: 14px;
}

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

.postlist-ttl {
  font-weight: bold;
  line-height: 1.3;
  padding-top: 1em;
}

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

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

.page-numbers {
  margin-top: 80px;
  text-align: center;
}

.page-numbers.current {
  color: #ff0020;
}

.page-numbers li {
  display: inline-block;
  padding-right: 2em;
  font-weight: bold;
}

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

.page-numbers li a {
  position: relative;
}

.page-numbers li a::after {
  position: absolute;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #000000;
  bottom: -5px;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform 0.3s;
}

.page-numbers a:hover::after {
  transform: scale(1, 1);
}

/* カテゴリー */
.cat-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cat-item,
.cat-all {
  background: #999;
  width: 19%;
  margin-bottom: 1em;
  letter-spacing: 0;
  line-height: 1;
  font-size: 14px;
  width: 19%;
  text-align: center;
  background: #999;
}

.cat-item a,
.cat-all a {
  display: block;
  color: #fff;
  padding: 1em;
}

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

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

article p {
  margin-top: 2.5em;
}

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

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

.article-imgf img {
  object-fit: cover;
  aspect-ratio: 4 / 3;
  height: 580px;
}

.article-wrap {
  margin-top: 80px;
}

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

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

.post-categories li {
  padding: 0.5em;
  font-size: 12px;
  background: #007bbb;
  color: #fff;
  letter-spacing: 0;
  line-height: 0.5;
}
.post-wrap {
  margin: 0 auto;
  width: 90%;
}

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

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

.postlist-ttl {
  font-weight: bold;
  line-height: 1.3;
  padding: 0 0.5em;
  margin-top: 0.5em;
}

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

.sns-share__wrap {
  display: flex;
  margin: 56px auto;
  gap: 1em;
  justify-content: center;
}

.sns-share__wrap li {
  width: 120px;
}

.sns-share__wrap li a {
  display: block;
  text-align: center;
  padding: 10px 0px;
}

.sns-share__wrap li a::before {
  content: "";
  display: inline-block;
}

/* X */

.sns-share__x a {
  background-color: #000;
}

.sns-share__x a::before {
  width: 16px;
  height: 16px;
  background-image: url(../../../uploads/x-white.png);
  background-size: contain;
  vertical-align: middle;
  background-repeat: no-repeat;
  margin-top: -4px;
}

.sns-share__x a {
  background-color: #000;
}

/* FB */
.sns-share__fb a::before {
  width: 20px;
  height: 20px;
  background-image: url(../../../uploads/fb-w.png);
  background-size: contain;
  vertical-align: middle;
  background-repeat: no-repeat;
  margin-top: -4px;
}

.sns-share__fb a {
  background-color: #35629a;
}

/* はてブ */
.sns-share__hateb a::before {
  width: 20px;
  height: 20px;
  background-image: url(../../../uploads/hateb-w.png);
  background-size: contain;
  vertical-align: middle;
  background-repeat: no-repeat;
}

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

/* Pocket */
.sns-share__pocket a::before {
  width: 20px;
  height: 20px;
  background-image: url(../../../uploads/pocket-w.png);
  background-size: contain;
  vertical-align: middle;
  background-repeat: no-repeat;
}

.sns-share__pocket a {
  background-color: #f43b53;
}

/* LINE */
.sns-share__line a::before {
  width: 20px;
  height: 20px;
  background-image: url(../../../uploads/line-w.png);
  background-size: contain;
  vertical-align: middle;
  background-repeat: no-repeat;
}

.sns-share__line a {
  background-color: #00b903;
}

/* カテゴリー
======================================== */

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

.cat-item,
.cat-all {
  background: #999;
  width: 19%;
  margin-bottom: 1em;
  letter-spacing: 0;
  line-height: 1;
  font-size: 14px;
  width: 19%;
  text-align: center;
  background: #999;
}

.cat-item a,
.cat-all a {
  display: block;
  color: #fff;
  padding: 1em;
}

/* ページネーション
======================================== */
.pagena {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10%;
}

.pagena-list {
  margin-top: -1px;
}

.pagena-prev::before {
  content: ""; /*何も入れない*/
  display: inline-block; /*忘れずに！*/
  width: 24px; /*画像の幅*/
  height: 24px; /*画像の高さ*/
  background: url(../../../uploads/arrow02.png) no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-top: 8px;
  margin-right: 12px;
  transition: all 0.3s ease;
  transform: translateX(-5px);
}

.pagena-next::after {
  content: ""; /*何も入れない*/
  display: inline-block; /*忘れずに！*/
  width: 24px; /*画像の幅*/
  height: 24px; /*画像の高さ*/
  background: url(../../../uploads/arrow.png) no-repeat;
  background-size: contain;
  vertical-align: middle;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  margin-top: 8px;
  margin-left: 12px;
}

.pagena-next:hover::after {
  transform: translateX(0px);
}

.pagena-prev:hover::before {
  transform: translateX(0px);
}

/* 関連記事
======================================== */

.post-r__wrap {
  width: 90%;
  margin: 0 auto;
}
.post-line {
  color: #999;
  height: 1px;
  width: 100%;
  margin: 40px 0;
}

.post-r__heading {
  margin: 24px 0;
}

.post-r__unit {
  display: flex;
  justify-content: center;
  gap: 3%;
  margin-bottom: 2em;
}

.post-r__group {
  width: 80%;
}

.post-r__imgf {
  width: 320px;
}

.post-r__imgf img {
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.post-r__ttl {
  font-weight: bold;
  margin: 0.5em 0;
  line-height: 1.3;
}

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

.post-r__lead a {
  color: red;
  font-size: 14px;
}

/* フォーム
======================================== */
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;
}

.wpcf7-form {
  margin: 40px auto;
  width: min(90%, 850px);
}

.form-box {
  margin: 2em 0;
}

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

.form-box dt {
  width: 35%;
  display: flex;
  align-items: center;
}

.form-box dd {
  width: 100%;
  margin-top: 0.5em;
}

.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;
  border-bottom: solid 1px;
}

.radiobtn {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

input[type="radio"] {
  transform: scale(1.2);
  margin: 4px 10px 0 0;
}

.form-box__radiobtn .wpcf7-form-control .wpcf7-list-item {
  display: inline-block;
  background: #ddd;
  padding: 1em;
  margin: 0;
}

.form-box__radiobtn .wpcf7-form-control .wpcf7-list-item:first-child {
  width: 26%;
}

.form-box__radiobtn .wpcf7-form-control .wpcf7-list-item:nth-child(2) {
  width: 34%;
}

.form-box__radiobtn .wpcf7-form-control .wpcf7-list-item:nth-child(3) {
  width: 19%;
}

.form-box__radiobtn .wpcf7-form-control .wpcf7-list-item:nth-child(4) {
  width: 16%;
}

.form-comment {
  box-sizing: border-box;
  border: none;
  width: 100%;
  background: #ddd;
  padding: 0.5em;
  border-bottom: solid 1px;
}

#comment {
  height: 280px;
}

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

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

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

.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: 280px;
  height: 50px;
}

.back-btn {
  border: solid 1px#282828;
  width: 50px;
  background: #fff;
  transition: 0.3s;
}

.submit-btn {
  width: 200px;
  border: 0;
  background-color: #282828;
  color: #fff;
  transition: 0.3s;
}

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

@media screen and (max-width: 1080px) {
  .postlist-contents {
    width: calc(50% - 40px * 2 / 4);
  }
}

@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-contents {
    width: 100%;
    margin: 0 auto;
  }

  .postlist-contents__wrap {
    gap: 40px;
  }

  .cat-item {
    width: 48%;
  }
  .cat-all {
    width: 100%;
  }

  .cat-item a,
  .cat-all a {
    padding: 0.5em;
  }

  .postlist-imgf {
    max-width: 100%;
  }

  /* 投稿ページ */
  .sns-share__wrap {
    flex-wrap: wrap;
    margin: 32px auto;
  }

  .sns-share__wrap li a {
    padding: 5px 0;
  }

  .cat-item a,
  .cat-all a {
    padding: 0.5em;
  }

  .pagena {
    font-size: 14px;
  }

  .post-wrap {
    width: 95%;
  }

  .post-r__group {
    width: 100%;
  }

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

  .post-r__lead {
    display: none;
  }

  .post-r__imgf {
    width: max(40%, 120px);
  }

  /* お問い合わせフォーム */
  .radiobtn {
    flex-direction: column;
    gap: 10px;
  }

  .form-box__radiobtn .wpcf7-form-control .wpcf7-list-item:first-child,
  .form-box__radiobtn .wpcf7-form-control .wpcf7-list-item:nth-child(2),
  .form-box__radiobtn .wpcf7-form-control .wpcf7-list-item:nth-child(3),
  .form-box__radiobtn .wpcf7-form-control .wpcf7-list-item:nth-child(4) {
    width: 100%;
  }
  /* end */
}

@media screen and (max-width: 580px) {
  .post-r__unit {
    display: block;
  }

  .post-r__imgf {
    width: 100%;
  }

  .article-imgf img {
    height: 350px;
  }

  /* end */
}
