#body_wrapper {
  /* 全体 */
  .section_eyecatch img {
    width: 100%;
  }
  .section:last-of-type{
    padding-bottom: 2rem;
    margin-bottom: 0;
  }
  .section_header {
    padding: .25rem 1rem;
    margin-bottom: 1rem;
    border-left: 8px solid var(--base-color);
  }
  .section_title {
    color: var(--base-color);
    font-weight: 700;
  }
  .section_subtitle {
    font-size: 1.125rem;
    color: var(--base-color);
    padding-bottom: .5rem;
  }
  .section_body {
    margin-bottom: 2rem;
    &:last-of-type{
      margin-bottom: 0;
    }
    a {
      color: var(--link-color);
      text-decoration: underline;
      transition:color .25s ease;
    }
    a:hover{
      color: var(--accent-color);
    }
    .iframe_wrapper {
      aspect-ratio: 16 / 9;
      width: 100%;
    }
  }
  .section_highlight {
    padding: 2rem;
    background-color: var(--gray-bg);
    @media screen and (min-width: 768px){
      padding: 4rem;
    }
  }
  .body_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--base-color);
    padding-bottom: .25rem;
    margin-bottom: .25rem;
  }
  .section_footer {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 2px solid var(--sep-color);
  }
  .txt {
    padding-bottom: 8px;
    &:last-of-type{
      padding-bottom: 0;
    }
  }
  .em {
    font-weight: 700;
  }
  .list_style_disc .list_item{
    margin-left: .25rem;
    padding:.5rem .5rem .5rem 16px;
    position: relative;
    &:before{
      content: "";
      width: 4px;
      height: 4px;
      border-radius: 8px;
      background: var(--base-color);
      position: absolute;
      left: 0;
      top: calc(.5rem + 12px);
    }
  }
  /* ページネーション */
  .pagination {
    margin-top: 2rem;
    span,a {
      padding: 0 .5rem;
      margin-right:.1rem;
      display: inline-block;
      border: 1px solid var(--main-color);
      color: var(--main-color);
      text-decoration: none;
      transition: all .25s ease;
    }
    span:last-child,a:last-child {
      margin-right: 0;
    }
    a:hover,.current  {
      color: var(--diff-color);
      background: var(--main-color);
    }
  }
  /* ぱんくず */
  .breadcrumbs {
    background:var(--diff-color);
    padding: .5rem;
    border-radius: 2px;
  }
  .breadcrumbs ul{
    li {
      display: inline-block;
      padding-left: 24px;
      position: relative;
      color: var(--base-color);
      font-size: .75rem;
    }
    li a {
      color: var(--base-color);
    }
    li a:hover {
      color: var(--accent-color);
    }
    li:before {
      content: "";
      width: 6px;
      height: 6px;
      transform: rotate(45deg);
      border:1px solid transparent;
      border-top: 1px solid var(--base-color);
      border-right: 1px solid var(--base-color);
      position: absolute;
      top: 8px;
      left: 4px;
    }
    li:first-of-type {
      padding-left:0;
    }
    li:first-of-type:before {
      display: none;
    }
    .home_crumbs svg{
      width: 22px;
      height: 22px;
      vertical-align: text-top;
    }
    .home_crumbs .home_icon{
      fill: var(--base-color);
    }
  }
  /* ページタイトル */
  .section_pagetitle {
    background:var(--base-color);
  }
  .page_title {
    padding: 1rem 0;
    font-size: 2rem;
    color: var(--diff-color);
  }
  .page_subtitle {
    color: var(--diff-color);
    font-size: 1.5rem;
    border-top: 1px solid var(--main-color);
    text-align: right;
  }
  /* サイドバーあり  */
  .with_sidebar {
    display: grid;
    gap: 2rem;
    @media screen and (min-width:1024px){
      grid-template-columns: calc(70% - 2rem) 30%;
    }
  }
  /* サイドバー アーカイブ開閉  */
  .body_side {
    .side_title {
      padding: .5rem;
      background: var(--base-color);
      color:var(--diff-color);
      margin-bottom: .5rem;
    }
    .year_header {
      position: relative;
      cursor: pointer;
      border: 1px solid var(--base-color);
      background: var(--base-color);
      font-weight: 700;
      &::before {
          content: "";
          width: 21px;
          height: 1px;
          position: absolute;
          margin: auto;
          top: 0;
          bottom: 0;
          right: 8px;
          background: #fff;
      }
      &::after {
          content: "";
          width: 1px;
          height: 20px;
          position: absolute;
          transition: transform .25s ease;
          margin: auto;
          top: 0;
          bottom: 0;
          right: 18px;
          background: #fff;
          transition: transform .25s ease, opacity .25s ease;
      }
      .btn{
        display: block;
        padding: 8px;
        width: calc(100% - 36px);
        color: var(--base-color);
        background: var(--diff-color);
      }
    }
    .list_item {
      margin-bottom: 8px;
    }
    .month_list {
      display: none;
      border: 1px solid var(--base-color);
      border-top: none;
    }
    .cat-item{
      padding: 8px;
      border-bottom: 1px solid var(--base-color);
    }
    .cat-item:last-of-type {
      border: none;
    }
    .active {
      display: block;
      &::after {
        opacity: 0;
        transform: rotate(90deg);
      }
    }
  }
  /* フォーム */
  .recapcha-text{
    text-align: center;
    font-size: .875rem;
  }
  .form_wrap {
    max-width: 960px;
    margin:2rem auto;
  }
  .form_parts{
    margin-bottom: 1rem;
    label {
      padding: 2px 4px;
      border-bottom: none;
      display: inline-block;
    }
    .form_name {
      background: var(--base-color);
      color: var(--diff-color);
      display: inline-block;
      padding: 0 .25rem;
      margin-bottom: .25rem;
    }
    .option_label {
      text-align: right;
      font-size: .75rem;
      padding: 0 .25rem;
      margin-left: .5rem;
      background: var(--diff-color);
      color: var(--gray);
    }
    input,
    textarea {
      padding: 4px;
      border:1px solid var(--gray) ;
      width: 100%;
      vertical-align: bottom;
      box-sizing: inherit;
    }
    .wpcf7-checkbox,
    .wpcf7-radio {
      display: inline-block;
      vertical-align: text-bottom;
    }
    .wpcf7-checkbox .wpcf7-list-item {
      margin:0 16px 8px 0;
    }
    .wpcf7-form-control-wrap label{
      background: none;
      border: none;
    }
    &.postal-code-wrapper .wpcf7-form-control-wrap{
      display: inline-block;
      vertical-align: middle;
      width: calc(100% - 1.5rem);
      margin-left: .5rem;
    }
    input[type="checkbox"] + .wpcf7-list-item-label{
      padding-left: 36px;
      position: relative;
    }
    .wpcf7-radio label {
      padding-left: 28px;
      position: relative;
      top: 4px;
    }
    input[type="checkbox"] + .wpcf7-list-item-label:before,
    .wpcf7-checkbox .wpcf7-list-item-label::before,
    .wpcf7-radio .wpcf7-list-item-label::before{
      width: 24px;
      height: 24px;
      border: 1px solid var(--gray);
      position: absolute;
      left: 0;
      top: 0;
    }
    .wpcf7-radio .wpcf7-list-item-label::before{
      width: 20px;
      height: 20px;
      border-radius: 12px;
      top: 4px;
    }
    input[type="checkbox"]:checked + .wpcf7-list-item-label:after,
    .wpcf7-checkbox input[type="checkbox"]:checked  + .wpcf7-list-item-label::after {
      width: 8px;
      height: 12px;
      border-right:var(--main-color) 2px solid;
      border-bottom:var(--main-color) 2px solid;
      position: absolute;
      transform: rotate(45deg);
      left: 8px;
      top: 4px;
    }
    .wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item-label::after {
      width: 14px;
      height: 14px;
      border-radius: 7px;
      background:var(--gray);
      position: absolute;
      left: 4px;
      top: 8px;
    }
    .form_select{
      select {
      }
      position: relative;
      &::before{
        content: "";
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-top: 8px solid var(--gray);
        position: absolute;
        right: 8px;
        top: 14px;
        margin: auto;
      }
      select{
        padding: 5px 24px 5px 5px;
        width: 100%;
        border: 1px solid var(--gray);
      }
    }
    .form_radio {
      .wpcf7-list-item{
      margin: 0 8px 0 0;
      }
      label {
      color: var(--black);
      }
    }
    .form_date .wpcf7-form-control-wrap{
      display: inline-block;
      width: 100%;
      input::-webkit-calendar-picker-indicator {
      cursor: pointer;
      }
    }
    &.acceptance_btn {
      display:block;
      text-align: center;
    }
  }
  .btn_wrapper {
    text-align: center;
    .submit_wrapper{
      display: inline-block;
      position: relative;
      padding: 0;
    }
    input[type="submit"]{
      text-align: left;
      width: 100%;
      color: var(--accent-color);
      padding: .5rem 2rem .5rem 1rem;
      &::before,&:after{
        display: none;
      }
    }
    .submit_wrapper:hover input[type="submit"]{
      color: var(--diff-color);
    }
    input[type="submit"] + .wpcf7-spinner {
      display: none;
    }
  }
  .spinner_wrapper {
    margin-top: 1rem;
    text-align: center;
  }
  .wpcf7-list-item-label {
    vertical-align: text-bottom;
  }
  .wpcf7-not-valid-tip {
    padding:4px 0;
  }

  @media screen and (min-width: 768px){
    .form_parts {
      display: grid;
      grid-template-columns: 1fr 3fr;
      gap: 2rem;
      margin-bottom: 2rem;
      label {
        padding-right: 8px;
        height: 100%;
      }
      .form_name{
        margin-bottom: 0;
      }
    }
    .item_wide {
      display: block;
    }
  }
  
  /* 署名 */
  .is_sign .sign_img{
    text-align: center;
    .img_wrap {
      padding:0 1rem;
      vertical-align: middle;
      @media screen and (min-width: 768px){
        display: inline-block;
      }
    }
    .img_mark {
      max-width: 200px;
      margin: 0 auto;
    }
    .img_name {
      max-width: 600px;
      margin: 0 auto;
    }
  }
}

/* 社長あいさつ */
.message #body_wrapper {
}

/* 「たかの」の心 */
.achieve #body_wrapper {
  .section_main {
    margin-bottom: 1rem;
    &:last-of-type{
      margin-bottom: 0;
    }
  }
  .list_style_decimal {
    list-style-type: decimal;
    .list_item {
      margin-bottom: 1rem;
    }
    .list_item:last-of-type {
      margin-bottom: 0;
    }
  }
  .iframe_wrapper {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* 会社概要 */
.company #body_wrapper {
  .table_style {
    @media screen and (min-width: 1024px){
      border-top: 1px solid var(--sep-color);
    }
  }
  .table_item {
    display: grid;
    margin-bottom: 1rem;
    border: 1px solid var(--sep-color);
    @media screen and (min-width: 1024px){
      grid-template-columns: 1fr 3fr;
      margin-bottom: 0;
      border-bottom:none;
      border-top:none;
    }
    .header {
      padding: .5rem;
      border-bottom: 1px solid var(--sep-color);
      background: var(--sep-color);
      font-weight: 700;
      @media screen and (min-width: 1024px){
        border-bottom: 1px solid var(--diff-color);
        border-right: 1px solid var(--sep-color);
      }
    }
    .data {
      padding: .5rem;
      @media screen and (min-width: 1024px){
        border-bottom: 1px solid var(--sep-color);
      }
    }
  }
  .members_list{
    .members_item {
      display: grid;
      margin-bottom: .5rem;
      @media screen and (min-width: 768px){
        grid-template-columns: 1fr 2fr;
      }
      &:last-of-type {
        margin-bottom: 0;
      }
      .position_label {
        padding: .5rem;
        background:var(--gray-bg);
      }
      .name {
        padding: .5rem;
        border: 1px solid var(--gray-bg);
      }
    }
  }
  .contact_list {
    margin: .5rem 0;
    dd,dt{
      display: inline-block;
      padding:0 .25rem;
    }
    .label {
      background:var(--base-color);
      color: var(--diff-color);
    }
    .val{
      margin-right: .5rem;
    }
  }
}

/* 沿革 */
.history #body_wrapper{
  .timeline_list {
    margin-left: 9px;
    padding:2rem 0;
    position: relative;
  }
  .timeline_item {
    position: relative;
    z-index: 2;
    &:before {
      content: "";
      width: 2px;
      height: 0;
      background:#e91e63;
      position: absolute;
      left: 2px;
      top: 0;
      transition: height 1s ease;
    }
  }
  .timeline_item.show {
    &:before {
      height: 100%;
    }
  }
  .item_header {
    font-size: 4rem;
    font-weight: 700;
    color:#e91e63;
    background: #fff;
    position: relative;
    z-index: 2;
    padding-bottom: 24px;
  }
  .item_body {
    z-index: 2;
    padding: 1rem 0 2rem 1.125rem;
    position: relative;
    &:before {
      content: "";
      height: 12px;
      width: 12px;
      border: 2px solid #e91e63;
      background: #fff;
      transform: rotate(45deg);
      position: absolute;
      top: -.5rem;
      left: -5px;
    }
  }
  .event_header {
    padding-bottom: .5rem;
  }
  .date_label {
    font-size: 1.5em;
    font-weight: 700;
    color: #880e4f;
  }
  .event_title {
    padding: .5rem 0;
  }
  .event_body {
    padding-left: 1.125rem;
    border-left: 2px solid #fff;
    transition: border 1s ease 1.25s;
    img{
      margin-bottom: .5rem;
      &:last-of-type{
        margin-bottom: 0;
      }
    }
    .note {
      padding: .5rem 0;
      font-size: .875rem;
    }
  }
  .event_header > *,
  .event_body > * {
    position: relative;
    display: inline-block;
    overflow: hidden;
    &:after,&:before {
      content: "";
      width: 100%;
      height: 100%;
      background: #fff;
      position: absolute;
      left: 0;
      top: 0;
      transform: scaleX(100%);
    }
    &:before {
      background: #eee;
      z-index: 2;
    }
  }
  .active .event_body {
    border-left: 2px solid #880e4f;
  }
  .active .event_header > *,
  .active .event_body > * {
    &:before {
      z-index: 1;
      transform: scaleX(0);
      animation: 1.25s historyMaskRight 1s;
    }
    &:after {
      z-index: 2;
      transform: scaleX(0);
      animation: 1.25s historySlideInRight 1s;
    }
  }
  .item_header {
    position: relative;
    .count_0,.count_1,.count_2,.count_3{
      display: inline-block;
      opacity: 0;
      transform: translateY(-12px);
    }
  }
  .item_header .count_0{
    transition: opacity 1s ease .25s, transform 1s ease .25s;
  }
  .item_header .count_1{
    transition: opacity 1s ease .5s, transform 1s ease .5s ;
  }
  .item_header .count_2{
    transition: opacity 1s ease .75s, transform 1s ease .75s;
  }
  .item_header .count_3 {
    transition: opacity 1s ease 1s, transform 1s ease 1s;
  }
  .show .item_header{
    .count_0,.count_1,.count_2,.count_3{
      opacity: 1;
      transform: translateY(0);
    }
  }
  .active .event_header > *,
  .active .event_body > * {
    &:before {
      z-index: 1;
      transform: scaleX(0);
      animation: 1.25s historyMaskRight;
    }
    &:after {
      z-index: 2;
      transform: scaleX(0);
      animation: 1.25s historySlideInRight;
    }
  }
  @media screen and (min-width: 1024px){
    .timeline_item:before {
      left: 0;
      right: 0;
      margin: auto;
    }
    .item_header {
      text-align: center;
    }
    .item_body {
      width: calc(50% - 20px);
      text-align: right;
    }
    .item_body:before {
      right: -28px;
      left: auto;
    }
    .is_right:before {
      right: auto;
      left: -28px;
    }
    .event_body {
      padding-right: 1.125rem;
      padding-left: 0;
      border-left: none;
      border-right: 2px solid #fff;
    }
    .active .event_body {
      border-left: none;
      border-right: 2px solid #880e4f;
    }
    .is_right {
      margin-left: calc(50% + 20px);
      text-align: left;
    }
    .is_right .event_body{
      padding-left: 1.125rem;
      padding-right: 0;
      border-right: none;
      border-left: 2px solid #fff;
    }
    .is_right.active .event_body {
      border-left: 2px solid #880e4f;
    }
    .active .event_header > *,
    .active .event_body > * {
      &:before {
        z-index: 1;
        transform: scaleX(0);
        animation: 1.25s historyMaskLeft;
      }
      &:after {
        z-index: 2;
        transform: scaleX(0);
        animation: 1.25s historySlideInLeft;
      }
    }
    .is_right.active .event_header > *,
    .is_right.active .event_body > * {
      &:before {
        z-index: 1;
        transform: scaleX(0);
        animation: 1.25s historyMaskRight;
      }
      &:after {
        z-index: 2;
        transform: scaleX(0);
        animation: 1.25s historySlideInRight;
      }
    }
  }
}

@keyframes historyMaskLeft{
  0% {
    transform-origin: right;
    transform: scaleX(100%);
  }
  49% {
    transform-origin: right;
    transform: scaleX(100%);
  }
  51% {
    transform-origin: right;
    transform: scaleX(100%);
  }
  52% {
    transform-origin: left;
  }
  100% {
    transform-origin: left;
    transform: scaleX(0);
  }
}
@keyframes historySlideInLeft{
  0% {
    transform-origin: right;
    transform: scaleX(0);
    animation-timing-function: ease-out;
  }
  50% {
    transform-origin: right;
    transform: scaleX(100%);
  }
  51% {
    transform-origin: left;
    animation-timing-function: ease-in;
  }
  100% {
    transform-origin: left;
    transform: scaleX(0);
  }
}

@keyframes historyMaskRight{
  0% {
    transform-origin: left;
    transform: scaleX(100%);
  }
  49% {
    transform-origin: left;
    transform: scaleX(100%);
  }
  51% {
    transform-origin: left;
    transform: scaleX(100%);
  }
  52% {
    transform-origin: right;
  }
  100% {
    transform-origin: right;
    transform: scaleX(0);
  }
}
@keyframes historySlideInRight{
  0% {
    transform-origin: left;
    transform: scaleX(0);
    animation-timing-function: ease-out;
  }
  50% {
    transform-origin: left;
    transform: scaleX(100%);
  }
  51% {
    transform-origin: right;
    animation-timing-function: ease-in;
  }
  100% {
    transform-origin: right;
    transform: scaleX(0);
  }
}

/*.history #body_wrapper{
  .timeline_list {
    margin-left: 9px;
    padding:2rem 0;
    position: relative;
    &:before {
      content: "";
      width: 3px;
      height: 100%;
      background: #e91e63;
      position: absolute;
      left: 0;
      top: 0;
      @media screen and (min-width: 1024px){
        margin: auto;
        right: 0;
      }
    }
  }
  .timeline_items {
    padding: 3rem 1rem 2rem 2rem;
    position: relative;
  }
  .item_header {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color:#e91e63;
    position: absolute;
    z-index: 1;
    opacity: .1;
    top: 0;
  }
  .item_body {
    position: relative;
    z-index: 2;
  }
  .events {
    padding-bottom: 1.5rem;
  }
  .event_header {
    margin-bottom: .5rem;
  }
  .date_label {
    font-size: 1.5em;
    font-weight: 700;
    color: #880e4f;
  }
  .event_title {
    padding: .5rem 0;
  }
  .event_body {
    padding-left: 1.125rem;
    border-left: 1px solid #880e4f;
    img{
      margin-bottom: .5rem;
      &:last-of-type{
        margin-bottom: 0;
      }
    }
    .note {
      padding: .5rem 0;
      font-size: .875rem;
    }
  }
  @media screen and (min-width: 1024px){
    .events{
      width: calc(50% - 20px);
      padding-left: 0;
      &:before {
        left: calc(100% + 12px);
      }
      .item_header {
        right: 1rem;
      }
      .event_header {
        text-align: right;
      }
      .event_body {
        padding-right: 1.125rem;
        border-right: 2px solid #880e4f;
        padding-left: 0;
        border-left: none;
        text-align: right;
      }
    }
    .timeline_items:nth-of-type(even) {
      padding-right: 0;
      padding-left: 1rem;
      &:before {
        right: auto;
        left: -28px;
      }
      .event_body {
        border-width: 2px;
      }
    }
  }
}*/

/*= 健康経営優良法人 =*/
.kih #body_wrapper {
  .highlight_footer{
    margin-top: .5rem;
    text-align: right;
  }
  .sign {
    display: inline-block;
    text-align: left;
  }
  .kenkou_list {
    margin-bottom: 1rem;
    display: grid;
    border-top: 2px solid var(--sep-color);
    border-left: 2px solid var(--sep-color);    
    @media screen and (min-width:768px) {
      grid-template-columns: repeat(2,1fr);
    }
    .list_item {
      padding: 1rem;
      border-bottom: 2px solid var(--sep-color);
      border-right: 2px solid var(--sep-color);
    }
    .txt {
      position: relative;
      text-indent: 1.125rem;
    }
    .txt:before {
      content: "";
      width: .25rem;
      height: .5rem;
      border-bottom: 2px solid var(--main-color);
      border-right: 2px solid var(--main-color);
      position: absolute;
      left: .25rem;
      top: .5rem;
      transform: rotate(45deg);
    }
    .img_wrap {
      margin-bottom: .5rem;
    }
    @media screen and (min-width: 768px){
      .with_img {
        display: grid;
        grid-template-columns:1fr 2fr;
        gap :1rem;
      }
    }
  }
  .section_interview {
    @media screen and (min-width: 768px){
      display: grid;
      grid-template-columns:1fr 1fr;
      gap :1rem;
    }
    .txt_wrap {
      padding: 2rem;
      background: var(--gray-bg);
    }
  }
  .section_certificate {
    text-align: center;
    .certificate_name {
      font-size: 1.5rem;
      margin-bottom: .5rem;
    }
    @media screen and (min-width: 768px){
      img {
        max-width: 480px;
      }
    }
  }
}


/*= 取扱商品 =*/
.product #body_wrapper{
  .section_products{
    margin-bottom: 2rem;
  }
  .prod_list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2,1fr);
    @media screen and (min-width: 768px){
      grid-template-columns: repeat(4,1fr);
    }
    .list_item {
      border: 2px solid var(--sep-color);
    }
    .imte_wrap {
    }
    .label {
      padding: .5rem;
      text-align: center;
      font-size: 1.125rem;
      border-top: 1px solid var(--sep-color);
    }
  }
  .section_link {
    .link_list {
      display: grid;
      @media screen and (min-width: 768px){
        grid-template-columns: repeat(2,1fr);
      }
    }
  }
}

/* ニュース記事ページ本文 */
.news #body_wrapper .is_single {
  .post_content {
    padding:4rem;
    border: 2px solid var(--sep-color);
    strong {
      font-weight: bold;
    }
    em {
      font-style: italic;
    }
    ul li {
      list-style: disc;
      margin-left: 25px;
    }
    ol li {
      list-style: decimal;
      margin-left: 25px;
    }
  }
  .post_date {
    text-align: right;
    font-size: .875rem;
    padding: .5rem;
    background: var(--sep-color);
  }
  .post_links {
    display: grid;
    @media screen and (min-width: 1024px){
      grid-template-columns: repeat(2,1fr);
      gap: 2rem;
    }
    .prev_btn,.next_btn {
      margin-top: .5rem;
      background: var(--gray-bg);
      @media screen and (min-width: 1024px){
        height: 100%;
        display: flex;
        align-items: center;
      }
    }
    a {
      width: 100%;
      display: block;
      position: relative;
      &::before {
        content: "";
        width: 8px;
        height: 8px;
        border: 2px solid var(--main-color);
        transform:rotate(45deg);
        position: absolute;
        margin: auto;
        top: 0;
        bottom: 0;
      }
    }
    .prev_btn a{
      padding: .5rem 1rem .5rem 2rem;
      &::before {
        border-right:none;
        border-top:none;
        left: .75rem;
      }
    }
    .next_btn a{
      padding: .5rem 2rem .5rem 1rem;
      &::before {
        border-left:none;
        border-bottom:none;
        right: .75rem;
      }
    }
  }
}


/*= プライバシーポリシー =*/
.privacy-policy #body_wrapper {
  .section{
    margin-bottom: 3rem;
  }
  .section_body{
    padding: 1rem;
    background: var(--gray-bg);
  }
}