p {
  padding-bottom: 1rem;
}
.border_box {
  border: 1px solid var(--grey-dark);
  padding: 1.5rem;
  margin: .5rem 0;
  border-radius: var(--border-radius);
}

/* お知らせ一覧 */
.section_news .section_inner {
  gap: 3rem;
}
.navigation.pagination {
  text-align: center;
  margin-top: 3rem;
  a {
    border-bottom: none;
  }
  .page-numbers {
    padding: .25rem;
    font-weight: 400;
    color: var(--main-color);
    border: 1px solid var(--grey-dark);
    border-radius: var(--border-radius);
  }
  .page-numbers.current {
    border: 1px solid var(--main-color);
    background: var(--main-color);
    color: var(--white);
  }
  .next.page-numbers,
  .prev.page-numbers {
    font-weight: 300;
    position: relative;
    padding: .25rem 1rem .25rem .25rem;
  }
  .prev.page-numbers {
    padding: .25rem .25rem .25rem 1rem;
  }
  a.page-numbers:hover {
    color: var(--white);
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
  }
}
#sub {
  a {
    border-bottom: none;
  }
  .widget-archives {
    border: 1px solid var(--main-color);
    border-radius: var(--border-radius);
  }
  .widget-title {
    background: var(--main-color);
    color: var(--white);
    padding: .5rem;
  }
  .archive-list {
    padding: 0 .5rem;
  }
  .archive-list details, .archive-list .cat-item {
    border-bottom: 1px solid var(--grey);
  }
  .archive-list summary, .archive-list .cat-item {
    cursor: pointer;
    padding: .5rem 0 .5rem;
    position: relative;
  }
  .archive-list summary:hover {
    color: var(--accent-color);
  }
  .archive-list summary::-webkit-details-marker {
    display: none;
  }
  .archive-list summary::after {
    content: "";
    transition: transform 0.3s ease;
    border-bottom: solid 1px var(--text-head-color);
    border-left: solid 1px var(--text-head-color);
    transform: rotate(-45deg);
    position: absolute;
    top: calc(50% - .45rem);
    right: 4px;
    width: .5rem;
    height: .5rem;
  }
  .archive-list details[open] summary::after {
    top: calc(50% - .2rem);
    transform: rotate(-225deg);
  }
  .month-archive-list li {
    border-bottom: 1px solid var(--grey);
    padding: .25rem;
  }
  .month-archive-list li:last-child {
    border-bottom: 1px solid rgb(255 255 255 / 0%);
  }

  /* 開閉アニメーション */
  .month-archive-list {
    padding: 0 0 0 1rem;
  }
  details summary {
    cursor: pointer;
    display: block;
  }
  details summary::-webkit-details-marker {
    display: none;
  }
}
@media (min-width: 1024px) {
  .section_news .section_inner {
    grid-template-columns: 7fr 1fr;
  }
}

/* お知らせ本文ページ */
.section_post_body {
  .post_title {
    font-size: 2rem;
    padding-bottom: 1rem;
  }
  .post-date {
    color: var(--main-color);
    padding-bottom: 1.5rem;
  }
}

/*お知らせ本文内スタイル*/
.post .post_body {
  p {
    margin-bottom: 1rem;
  }
  h1.wp-block-heading {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--main-color);
  }
  h2.wp-block-heading {
    font-size: 2rem;
    font-weight: 400;
    margin: 2rem 0 1rem;
  }
  h3.wp-block-heading {
    font-weight: 500;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }
  h4.wp-block-heading {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
  }
  h5.wp-block-heading {
    font-weight: 400;
  }
  h6.wp-block-heading {
    font-style: italic;
  }
  strong {
    font-weight: bold;
  }
  em {
    font-style: italic;
  }
  .alignright {
    margin: 0 0 0 auto;
    float: none;
  }
  del {
    text-decoration: line-through;
  }
  hr {
    background: #000;
    height: 2px;
    width: 100%;
    border: none;
  }
  .has-blue-color {
    color: var(--main-color);
  }
  .has-blue-background-color {
    background: var(--main-color);
  }
  .has-blue-green-color {
    color: var(--accent-color);
  }
  .has-blue-green-color-background-color {
    background: var(--accent-color);
  }
  .has-grey-color {
    color: var(--grey);
  }
  .has-grey-background-color {
    background: var(--grey);
  }
  .has-dark-grey-color {
    color: var(--grey-dark);
  }
  .has-dark-grey-background-color {
    background: var(--grey-dark);
  }
  .has-red-color {
    color: #cc0000;
  }
  .has-red-color-background-color {
    background: #cc0000;
  }
  .has-black-color {
    color: var(--text-color);
  }
  .has-black-background-color {
    background: var(--text-color);
  }
  .has-white-color {
    color: var(--white);
  }
  .has-white-background-color {
    background: var(--white);
  }
}

/* 会社概要 */
.about {
  .president.grid70 {
    align-items: end;
    padding-top: 2rem;
    gap: 1.5rem;
  }
}

/* 関連会社 */
.group {
  .section_inner > .wp-block-group__inner-container {
    display: block;
  }
  .section_title, h2.wp-block-heading {
    font-size: 1.6rem;
  }
  .grid40 {
    gap: 2rem;
  }
  .btn {
    margin-top: 1rem;
  }
}

/* お問い合わせメールフォーム */
.contact {
  .required {
    color: var(--main-color);
  }
  .half_width {
    display: block;
    font-size: .75rem;
  }
}
.section_contact_tel .section_inner {
  align-items: center;
}
.section_contact_tel h2.wp-block-heading,
.section_contact_tel h3.wp-block-heading {
  margin: 0;
}
.wpcf7-form {
  background: var(--body-bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  .wpcf7-text,.wpcf7-textarea,.wpcf7-number,.wpcf7-submit {
    background: #fff;
    border: 1px solid var(--grey-dark);
  }
  .wpcf7-text,.wpcf7-textarea {
    width: calc(100% - 8px);
    padding: .25rem;
  }
  .wpcf7-number,.wpcf7-submit {
    padding: .25rem;
  }
  input[type="radio"] {
    opacity: 0;
    visibility: hidden;
    position: absolute;
  }
  .wpcf7-list-item.first {
    margin-left: 0;
  }
  span.wpcf7-list-item-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  span.wpcf7-list-item-label::before {
    display: block;
    content: "";
    border-radius: 50%;
    border: 2px solid var(--grey-dark);
    width: 1rem;
    height: 1rem;
    margin-right: 10px;
    background: #fff;
  }
  span.wpcf7-list-item-label::after {
    display: block;
    position: absolute;
    content: "";
    border-radius: 50%;
    width: .8rem;
    height: .8rem;
    background-color: var(--main-color);
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
  }
  input[type="radio"]:checked + span.wpcf7-list-item-label::after,
  input[type="checkbox"]:checked + span.wpcf7-list-item-label::after {
    display: block;
  }
  .contact_title {
    background: var(--border-color);
    padding: .5rem 0;
  }
  .contact_title.first {
    margin: 0rem 0 1rem;
  }
  .contact_item {
    margin: 1.5rem 0;
  }
  .contact_item.message {
    margin: 0;
  }
  .contact_item.item_acceptance {
    margin: 0;
  }
  .form_grid label {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
  }
  input.wpcf7-number {
    padding: .3rem .5rem;
    margin-right: .5rem;
  }
  .wpcf7-not-valid-tip {
    font-weight: 300;
  }
  .wpcf7-submit {
    padding: .25rem .75rem;
  }
  .wpcf7 form .wpcf7-response-output {
    background: #fff;
  }
  .submit_wrap input[type="submit" i] {
    background: var(--text-head-sub-color);
    color: var(--white);
  }
  .submit_wrap input:disabled {
    background: #fff;
    color: var(--grey);
  }
}
@media (min-width: 1024px) {
  .form_wrap {
    max-width: 750px;
    margin: auto;
  }
  .wpcf7-form .form_grid label {
    grid-template-columns: 8rem 1fr;
  }
}

/* リンクホバー */
.section a {
  border-bottom: 1px solid var(--accent-color);
}
.section a:hover {
  color: var(--accent-color);
}
.btn a {
  border-bottom: none;
}
.btn a:hover,
.btn a .btn_txt:hover {
  color: var(--white);
}

/* ログイン中のみ表示する注意書き */
.is_login_note {
  color: var(--grey);
  padding-top: 1rem;
}

/* 404 */
.notfound_page {
  .section_inner {
    text-align: center;
  }
}