/*
Theme Name: コモリク ピック事業所
Author: e-nets.biz
Description:
Version: 260127
*/

/* --theme-main: var(--wp--preset--color--theme-main);
--theme-sub: var(--wp--preset--color--theme-sub);
--theme-accent: var(--wp--preset--color--theme-accent);
--theme-base: var(--wp--preset--color--theme-base);
--theme-fonts: var(--wp--preset--color--theme-font);
--theme-border: var(--wp--preset--color--theme-border); */

/* Fonts */
/* --font-noto-sans-jp: var(--wp--preset--font-family--noto-sans-jp);
--font-open-sans: var(--wp--preset--font-family--open-sans);
--font-zen-maru-gothic: var(--wp--preset--font-family--zen-maru-gothic); */

/* =============================================================

WordPressやプラグインなどの調整

============================================================= */

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.17em;
}

.wp-block-wrapper {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: 18px;

  & ul,
  & ol {
    padding-left: 1.5em;
  }

  & li {
    margin-top: 0.5em;
  }

  & p {
    /* margin-top: 0.5em; */
    line-height: 1.8em;
  }

  & pre {
    white-space: pre-wrap;
  }

  & q {
    font-style: italic;
    color: #ccc;

    &::before {
      content: "「"; /* qの前を「に */
    }

    &::after {
      content: "」"; /* qの後を」に */
    }
  }
}

@media only screen and (max-width: 767.98px) {
  .wp-block-wrapper {
    font-size: 16px;
  }
}

/* 画像 */
.wp-block-image figcaption {
  font-size: 1em !important;
}

/* テーブル */
.wp-block-table {
  & table {
    padding: 0;
    margin: 20px 0;
    border-collapse: collapse;
  }

  & th,
  & td {
    padding: 0.5em;
    border: 1px solid #ccc;
  }

  & th {
    background-color: #e2f3ff;
  }
}

.wp-element-button,
.wp-block-button__link {
  padding: 0.25em 0.5em !important;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 5px;
}

/* ボタン */
.wp-element-button {
  background-color: var(--color-sub) !important;
}

/* 検索 */
input.wp-block-search__input {
  margin: 0;
}

/* ウィジェット */
.wp-block-group {
  & .wp-block-archives-dropdown,
  & .wp-block-tag-cloud {
    margin-top: 0;
  }
}

/* フォーム
============================================================= */

.wpcf7 {
  width: 100%;
  max-width: 768px;
  padding:60px 20px 40px;
  margin: auto;
  font-size:16px;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: rgb(0 0 0 / 10%) 0 0 8px;
}

.wpcf7 ul {
  width: 100%;
  max-width: 576px;
  padding: 0;
  margin: auto;
  list-style: none;
}

.wpcf7 li {
  width: 100%;
  margin: 40px 0 0 !important;
}

.wpcf7 li > label {
  display: flex;
  align-items: end;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.wpcf7 label > span {
  letter-spacing: 0.05em;
  vertical-align: -0.1em;
}

.wpcf7 .wpcf7-text{
  width:100%;
}

.wpcf7 .wpcf7-textarea {
  width:100%;
  resize: vertical;
}

.wpcf7 .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap:1em;
  margin: 20px 0 0;
  font-weight: 400;
  text-indent: 2em;
  vertical-align: middle;
}

.wpcf7 .wpcf7-radio > .wpcf7-list-item {
  margin: 0;
  line-height:1;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus {
  padding: calc(0.5em - 1px);
}

.wpcf7 .req {
  display: inline-block;
  padding: 0.5em 1em;
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-align: center;
  background-color: var(--wp--preset--color--theme-main);
  border-radius: 3px;
}

.wpcf7 .wpcf7-acceptance a{
  color: var(--wp--preset--color--theme-main)
}


/* 送信ボタン */
.submit-wrapper {
  position: relative;
  display:inline-block;
  margin:20px auto 40px;
  color:#fff;
}

.submit-wrapper::after {
  position: absolute;
  top:50%;
  right:1em;
  display: block;
  font-family: "Font Awesome 7 Free";
  font-size: 16px;
  font-weight: 900;
  color:inherit;
  content: "\f178";
  transition: all ease 0.2s;
  transform: translate(0, -50%);
}

.submit-wrapper:has(.wpcf7-submit:hover){
  color:var(--wp--preset--color--theme-main);
}

.submit-wrapper:has(.wpcf7-submit:disabled){
  color:#fff;
}

.submit-wrapper .wpcf7-submit {
  position: relative;
  display: block;
  width: fit-content;
  min-width: 320px;
  padding: 0.5em 2em;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-indent: 0.1em;
  letter-spacing: 0.1em;
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--wp--preset--color--theme-main);
  border: none;
  border: 3px solid var(--wp--preset--color--theme-main);
  border-radius: 99px;
  transition: all ease 0.2s;
}

.submit-wrapper .wpcf7-submit:hover{
  color: var(--wp--preset--color--theme-main);
  background-color: #fff;
  opacity: 1;
}

.submit-wrapper .wpcf7-submit:disabled {
  color: #fff;
  background-color: #bbb;
  border: 3px solid #bbb;
}

.submit-wrapper .wpcf7-spinner {
  position: absolute;
  /* visibility: visible !important; */
  top:calc(100% + 10px);
  left:50%;
  margin:0;
  transform: translate(-50%, 0);
}

/* 未入力表示 */
.wpcf7-not-valid-tip {
  margin-top: 10px;
}

/* 送信メッセージ表示 */
.wpcf7-response-output {
  display: block;
  width: 100%;
  max-width: 576px;
  padding: 0.5em !important;
  margin: 20px auto 0 !important;
  text-align: center;
}

@media only screen and (max-width: 767.98px) {
  .wpcf7 {
    font-size:14px;
  }
}

/* page navi
============================================================= */
.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 80px 0 0;
  clear: both;
  font-size: 20px;

  & a,
  /* stylelint-disable-next-line no-descending-specificity */
  & span {
    padding: 0.25em 0.4em;
    margin: 2px;
    text-decoration: none;
    background-color: #f3f5f4;
    border: 1px solid #efefef;
  }

  & .current {
    font-weight: bold;
    color: #fff;
    background-color: #333;
  }

  & a:hover {
    color: #fff;
    background-color: #333;
  }
}

@media only screen and (max-width: 767.98px) {
  .wp-pagenavi {
    font-size: 16px;
  }
}

@media only screen and (max-width: 575.98px) {
  .wp-pagenavi {
    font-size: 14px;
  }
}

/* ブロックエディタ
============================================================= */
/* 区切り */
.wp-block-wrapper .wp-block-separator {
  height: 4px;
  background-color: var(--color-border);
  border: none;
}

/* VK Blocks 1.96.2.1 プライマリーカラーが表示されない不具合？の修正
============================================================= */
:root {
  --wp--preset--color--vk-color-primary: #359dd1;
}

/* ===========================================================

  フロントページ

============================================================= */

/* 紹介
============================================================= */

/* 紹介グループ */
@media only screen and (max-width: 575.98px) {
  .group-intro {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
}

/* 紹介見出し */
.heading-intro {
  position: relative;
  display: block;
  width: fit-content;
  padding: 0 1em;
  margin: auto;
  font-size: 32px;
  line-height: 1.5em;

  &::before,
  &::after {
    position: absolute;
    top: 50%;
    display: inline-block;
    height: 100%;
    content: "";
    border-right: 1px solid var(--wp--preset--color--theme-main);
    border-left: 1px solid var(--wp--preset--color--theme-main);
  }

  &::before {
    left: 0.5em;
    transform: rotate(-30deg) translate(-50%, -50%);
  }

  &::after {
    right: 0.5em;
    transform: rotate(30deg) translate(-50%, -50%);
  }
}

@media only screen and (max-width: 767.98px) {
  .heading-intro {
    font-size: 24px;
  }
}

@media only screen and (max-width: 575.98px) {
  .heading-intro {
    padding: 0 1.2em;
    font-size: 20px;

    &::before {
      left: 1.2em;
      min-height: 3em;
      transform: rotate(-20deg) translate(-50%, -50%);
    }

    &::after {
      right: 1.2em;
      min-height: 3em;
      transform: rotate(20deg) translate(-50%, -50%);
    }
  }
}

/* スケジュール
============================================================= */
/* タイトル付きのボックス */
.box-with-title {
  width: 100%;
  padding: 0;
  /* overflow: hidden; は縁に隙間ができる */
  background-color: #fff;
  border: 3px solid var(--wp--preset--color--theme-sub-1);
  border-radius: 15px;
}

.box-with-title__heading {
  width: 100%;
  padding: 0.5em;
  margin: 0;
  font-family: var(--wp--preset--font-family--zen-maru-gothic);
  font-size: 20px;
  color: #fff;
  text-align: center;
  background-color: var(--wp--preset--color--theme-sub-1);
  border-radius: 10px 10px 0 0;
}

.box-with-title__content {
  padding: 80px 30px;
}

@media only screen and (max-width: 767.98px) {
  .box-with-title__content {
    padding: 40px 15px;
  }
}

/* 時間 */
.work-schedule {
  display: block;
  max-width: var(--width-sm);
  margin: auto;
}

.work-schedule__item {
  display: flex;
  gap: 0 40px;
  margin: 0;
  overflow: visible;

  & dt {
    position: relative;
    width: fit-content;
  }
}

.work-schedule__item:not(:last-child) {
  padding-bottom: 40px;

  & dt::after {
    position: absolute;
    top: 20px;
    left: 50%;
    display: inline-block;
    width: 0;
    height: calc(100% + 20px);
    content: "";
    border-left: 2px dotted #fda44c;
  }
}

.work-schedule__time {
  position: relative;
  z-index: 99;
  display: block;
  width: 3.8em;
  padding: 0.1em 0;
  font-family: var(--wp--preset--font-family--open-sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-align: center;
  text-indent: 0.1em;
  letter-spacing: 0.1em;
  background-color: var(--wp--preset--color--theme-main);
  border-radius: 99px;
}

.work-schedule__title {
  font-family: var(--wp--preset--font-family--zen-maru-gothic);
  font-size: 24px;
  line-height: 1.2em;
  color: var(--wp--preset--color--theme-sub-1);
  text-align: justify;
  letter-spacing: 0.1em;
}

.work-schedule__text {
  margin-top: 1em;
  font-size: 16px;
  line-height: 1.5em;
}

@media only screen and (max-width: 767.98px) {
  .work-schedule__item {
    gap: 0 20px;
  }

  .work-schedule__time {
    font-size: 18px;
  }

  .work-schedule__title {
    font-size: 18px;
  }

  .work-schedule__text {
    font-size: 14px;
  }
}

/* 通所までの流れ
============================================================= */

/* アクセス
============================================================= */

/* 見出しの調整 */
@media only screen and (max-width: 991.98px) {
  .access-columns .heading-dotted {
    font-size: 32px !important;
    white-space: nowrap;
  }
}

.g-maps {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;

  & iframe {
    display: block;
    width: 100%;
    height: 100%;
  }
}

@media only screen and (max-width: 781.98px) {
  .g-maps {
    aspect-ratio: 4 / 3;
    border-radius: 15px;
  }
}

/* テーブル
============================================================= */
.table-dotted {
  width: 100%;
  margin: auto;
  border-collapse: collapse;
  border: none;

  & tr {
    position: relative;
  }

  & tr::before,
  & tr::after {
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 8px;
    content: "";
    background-image: radial-gradient(
      circle,
      var(--wp--preset--color--theme-border) 2px,
      rgb(255 255 255 / 0%) 2px
    );
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: 10px 8px;
  }

  &tr::before {
    display: inline-block;
  }

  & tr::after {
    top: initial;
    bottom: -4px;
    display: none;
  }

  & tr:last-child::after {
    display: inline-block;
  }

  & th,
  & td {
    padding: 1em 2em;
    vertical-align: top;
    border: none;
  }

  & th {
    width: 25%;
    padding-right: 0;
    /* font-size: 1.125em; */
    font-weight: 500;
    text-align: left;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  & td {
    width: 75%;
  }
}

@media only screen and (max-width: 767.98px) {
  .table-access {
    & th,
    & td {
      padding: 1em;
    }

    & th {
      padding-right: 0;
    }
  }
}

/* 装飾
============================================================= */
.round-top {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  margin-top: -60px !important;
  border-radius: 60px 60px 0 0;
}

.hr-dotted-before {
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible;
  background-color: transparent;
  border: none;

  &::before {
    position: absolute;
    top: -4px;
    bottom: inherit;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 8px;
    content: "";
    background-image: radial-gradient(
      circle,
      var(--wp--preset--color--theme-border) 2px,
      rgb(255 255 255 / 0%) 2px
    );
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 10px 8px;
  }
}

.hr-dotted-after {
  position: relative;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible;
  background-color: transparent;
  border: none;

  &::after {
    position: absolute;
    top: inherit;
    bottom: -4px;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 8px;
    content: "";
    background-image: radial-gradient(
      circle,
      var(--wp--preset--color--theme-border) 2px,
      rgb(255 255 255 / 0%) 2px
    );
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 10px 8px;
  }
}

/* カラム
============================================================= */
@media only screen and (max-width: 781.98px) {
  /* ブロックエディタのブレイクポイント */
  .feature-columns.wp-block-columns {
    /* 特徴 */
    & .wp-block-column {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    & .wp-block-image {
      max-width: 500px;
      margin: auto !important;
    }
  }

  .access-columns.wp-block-columns {
    /* アクセス */
    & .heading-dotted {
      text-align: center;

      &::after {
        margin-right: auto;
        margin-left: auto;
      }
    }

    & .table-dotted {
      max-width: 500px;
    }
  }

  .about-columns.wp-block-columns {
    /* 会社概要 */
    & .heading-dotted {
      text-align: center;

      &::after {
        margin-right: auto;
        margin-left: auto;
      }
    }
  }
}

/* FAQ アコーディオンメニュー
============================================================= */

.dl-faq {
  width: 100%;
}

.dl-faq__question {
  position: relative;
  display: block;
  padding: 0.5em 3em 0.5em 0.75em;
  margin: 40px 0 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5em;
  color: #fff;
  letter-spacing: 0.1em;
  cursor: pointer;
  background-color: var(--wp--preset--color--theme-sub-1);
  border-radius: 15px;

  &::before {
    display: inline-block;
    margin-right: 0.5em;
    font-family: var(--wp--preset--font-family--open-sans);
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
    content: "Q.";
  }
}

.dl-faq__icon {
  position: absolute;
  top: 50%;
  right: 0.5em;
  width: 1em;
  height: 1em;
  font-size: 28px;
  text-align: center;
  letter-spacing: 0;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(0, -50%);
}

.dl-faq__icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 0.4em;
  height: 0.4em;
  content: "";
  border-top: 3px solid var(--wp--preset--color--theme-sub-1);
  border-left: 3px solid var(--wp--preset--color--theme-sub-1);
  border-radius: 3px 0 0;
  transition: 0.2s;
  transform: translate(-50%, -60%) rotate(225deg);
}

.is-active .dl-faq__icon::before {
  transform: translate(-50%, -20%) rotate(45deg);
}

.dl-faq__answer {
  /* display: block; */
  display: none;
  padding: 1em 2em;
  margin-top: 15px;
  font-size: 18px;
  line-height: 2em;
  background-color: #fff;
  border-radius: 15px;
}

@media only screen and (max-width: 767.98px) {
  .dl-faq__question {
    font-size: 18px;
  }

  .dl-faq__answer {
    font-size: 16px;
  }
}
