/* common */

#banner-bottom > a {
  display: block;
}

/* front-page */

#info > ul {
  width: 100%;
}

.staff-box {
    display: flex;
}

.voice-blog > a,
.staff-box > a {
    display: block;
    max-width: 50%;
    aspect-ratio: 27 / 17;
    overflow: hidden;
}

.voice-blog img,
.staff-box img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

#voice-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.voice-blog {
    margin: 0;
}

.voice-blog a:has(img) {
    max-width: 100%;
    border: 1px solid #fff;
}

.voice-blog img {
    border: none;
}

@media (max-width: 835px) {
  .staff-box {
    flex-direction: column;
  }

  .voice-blog > a,
  .staff-box > a {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  #voice-area {
    grid-template-columns: 1fr;
  }

  .voice-blog img {
    max-width: 100%;
}
}

/* blog */

#blog-area .blog-blog {
    max-width: 46%;
}

#blog-area .blog-blog a:has(img) {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 27 / 17;
    overflow: hidden;
    border: 1px solid #11ae78;
}

#blog-area .blog-blog img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: none;
}

.page-numbers {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

.pagination .page-numbers {
    padding: 5px;
    text-decoration: none;
}

.pagination .page-numbers:is(.next, .prev) {
    border: 1px solid #f27e54;
    padding: 5px 15px;
    border-radius: 7px;
}

.pagination .page-numbers:is(.next, .prev):hover {
    background-color: #f27e54;
    color: #fff;
}

/* archive */

.archive-title {
    margin: 0 auto 50px;
    font-weight: 400;
    text-align: left;
    padding-left: 40px;
}

@media (max-width: 835px) {
    .archive-title {
        padding-left: 30px;
        margin-bottom: 20px;
    }
}

.archive-news > #blog-area {
    float: none;
    width: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 835px) {
    .archive-news > #blog-area {
        padding: 0 30px;
    }
}

.archive-news > #blog-area .blog-blog {
    max-width: 100%;
}

.archive-news > #blog-area h3 {
    max-height: 3.2em;
    overflow: hidden;
    padding-bottom: 20px;
    border-bottom: 1px solid #111;
}

@media (max-width: 835px) {
    .archive-news > #blog-area h3 {
        padding-bottom: 15px;
    }
}

/* single */

.c-post-nav__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

:is(.c-post-nav__prev, .c-post-nav__next) > a {
    border: 1px solid #f27e54;
    padding: 5px 15px;
    border-radius: 7px;
    text-decoration: none;
    color: #f27e54;
}

:is(.c-post-nav__prev, .c-post-nav__next) > a:hover {
    background-color: #f27e54;
    color: #fff;
}

#blog-single :is(.wp-block-heading, .wp-block-list, .wp-block-quote, .wp-block-table, table) {
    float: none;
}

.wp-block-table {
    overflow-x: inherit;
}

/* mail */
#mail .wpcf7-form > p {
  margin: 0;
}

#mail .wpcf7-list-item {
  margin: 0;
  width: fit-content;
}

#mail .wpcf7-form-control.wpcf7-checkbox {
    display: flex;
    flex-direction: column;
}

#mail .wpcf7-form-control.wpcf7-checkbox input[type="checkbox"] {
    height: 24px;
    width: 24px;
    margin: 4px;
    border: 2px solid #11ae78;
    border-radius: 4px;
}

#mail .wpcf7-form-control.wpcf7-acceptance {
    display: block;
    width: fit-content;
    margin-inline: auto;
    margin-top: 20px;
}

#mail .wpcf7-form-control.wpcf7-acceptance label {
  font-size: 20px;
  margin: 0;
}

#mail .mail-check > p {
  margin: 0;
  width: fit-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

#mail .wpcf7-form-control.wpcf7-submit {
    line-height: 1;
    display: inline-block;
    background: #fea889;
    border-radius: 7px;
    box-shadow: 1px 1px 3px #aaa;
    border: 1px solid #fff;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    padding: 20px 80px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

#mail .wpcf7-form-control.wpcf7-submit:hover {
  filter: brightness(1.1) saturate(1.1);
  transform: translateY(-2px);
}

#mail .wpcf7-form-control.wpcf7-submit:active {
  filter: brightness(0.9) saturate(1.4);
  transform: translateY(0);
}

@media (max-width: 768px) {
  #mail .wpcf7-form-control.wpcf7-submit {
    padding: 15px 60px;
  }
}
