/* 共通項目 =======================================================*/

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

figure {
  max-width: 100%;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none !important;
}

a:focus {
  text-decoration: none;
}

button:focus {
  outline: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

/*フォーカス時の枠線を消す*/
*:focus {
  outline: none;
}

button {
  outline: none;
}

/* フォント設定 =======================================================*/
/*メイリオ*/
body,
button,
input,
select,
textarea {
  font-family: "Kosugi Maru", sans-serif;
  font-weight: 400;
}

/* 追加共通項目 ==================================================*/
.ccl_sp_only {
  display: none !important;
}
/* コンテンツ幅 */
.ccl_inner {
  width: 67%;
  min-width: 700px;
  margin: 0 auto;
}

/* アニメーション ================================================*/
/* 初期状態 */
.js-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease;
  transition-delay: var(--delay, 0s); /* JSから渡す遅延時間 */
}

/* 表示状態 */
.js-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ボタン =======================================================*/

.wp-block-button.is-style-outline .wp-block-button__link {
  transition: all 0.3s;
  background-color: var(--wp--preset--color--white);
  border: 3px solid var(--wp--preset--color--main);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--main);
  color: var(--wp--preset--color--white);
}

/* ==================================
フロントページ
====================================*/
/* ヘッダー */
.ccl_header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 1000;
}

.ccl_header_logo {
  width: 9.4vw;
  min-width: 7em;
  transition: opacity 0.3s;
}

.ccl_header_logo img {
  box-shadow: 0 4px 12px rgba(100, 120, 140, 0.22);
}

.ccl_header_logo:hover {
  opacity: 0.7;
}

.ccl_header_btn_container {
  display: flex;
  gap: 3vw;
  margin-top: var(--wp--preset--spacing--space-24);
  margin-bottom: var(--wp--preset--spacing--space-24);
  transition: all 0.3s;
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.ccl_header_btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 7em;
  height: 7em;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(100, 120, 140, 0.22);
  background: linear-gradient(180deg, #003177, #0055cc, #3399ff, #003177);
  background-size: 100% 600%;
  color: white;
  position: relative;
  overflow: hidden;
  animation: wave 6s ease infinite;
  transition: transform 0.4s;
}

.ccl_header_btn a:hover {
  transform: scale(1.05);
}

@keyframes wave {
  0% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 50% 0%;
  }
}

/* ファーストビュー */
.ccl_fv {
  height: 100vh;
  position: relative;
  background: linear-gradient(120deg, #dbe7ed, #c6d9e8, #dbe7ed);
  animation: colorWave 8s ease-in-out infinite;
}

@keyframes colorWave {
  0% {
    background-color: #dbe7ed;
  }
  25% {
    background-color: #c6d9e8;
  }
  50% {
    background-color: #d9e4eb;
  }
  75% {
    background-color: #c6d9e8;
  }
  100% {
    background-color: #dbe7ed;
  }
}

.ccl_fv_title_container {
  display: flex;
  align-items: flex-start;
  padding-left: 36vw;
  padding-top: calc(6vh + 5em);
  margin-top: 0;
}

.ccl_fv_title_horizontal,
.ccl_fv_title_vertical {
  font-size: clamp(3rem, 1.598rem + 5vw, 7.5rem);
  line-height: 1;
  font-family: var(--wp--preset--font-family--shippori-mincho);
  font-weight: 500;
  letter-spacing: 0.2em;
}

.ccl_fv_title_vertical {
  writing-mode: vertical-rl;
}

.ccl_fv_text {
  position: absolute;
  top: 53vh;
  left: 17vw;
  font-size: clamp(1.5rem, 0.863rem + 2.61vw, 4rem);
  white-space: nowrap;
}

/* メッセージ */
.ccl_message,
.ccl_news_list,
.ccl_news_page,
.ccl_contact {
  position: relative;
}

.ccl_message::after,
.ccl_news_list::after,
.ccl_news_page::after,
.ccl_contact::after {
  position: absolute;
  z-index: 0;
  content: "";
  bottom: 0;
  background-position: bottom;
  background-size: cover;
  height: 50%;
  width: 100%;
  background: linear-gradient(
    to top,
    var(--wp--preset--color--green) 0%,
    transparent 100%
  );
}

.ccl_message_title {
  line-height: 1.75;
}

.ccl_message_bottom {
  position: relative;
  z-index: 1;
}

/* News */
.ccl_news_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ccl_news_item_left {
  display: flex;
}

.ccl_news_item_date {
  width: 11vw;
  font-size: var(--wp--preset--font-size--fsz-18);
  margin-top: 0;
}

.ccl_news_item_title {
  width: 100%;
  margin-top: 0;
}

.ccl_news_item_title a {
  font-size: var(--wp--preset--font-size--fsz-24);
  position: relative;
  display: block;
  transition: color 0.3s;
  padding-right: 1em;
  line-height: 1.75;
}

.ccl_news_item_title a:after {
  content: ">";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.3s;
}

.ccl_news_item_title a:hover {
  color: var(--wp--preset--color--white);
}

.ccl_news_item_title a:hover:after {
  color: var(--wp--preset--color--white);
}

/* パートナー */
.ccl_partner_wrapper {
  display: flex;
  justify-content: center;
  gap: var(--wp--preset--spacing--space-80);
}

.ccl_partner_item {
  display: grid;
}

.ccl_partner_item_img {
  grid-area: 1 / 1;
  z-index: 1;
}

.ccl_partner_item_img img {
  width: 10vw;
}

.ccl_partner_item_container {
  grid-area: 1 / 1;
  z-index: 12;
  display: inline-block;
  background-color: var(--wp--preset--color--accent);
  padding-top: 2.9vw;
  padding-left: 0.4vw;
  padding-right: 2vw;
  padding-bottom: 0.2vw;
  margin-top: 7vw;
  margin-left: 8vw;
}

.ccl_partner_item_title {
  font-size: var(--wp--preset--font-size--fsz-20);
  white-space: nowrap;
}

.ccl_partner_item_name {
  color: var(--wp--preset--color--black);
  font-size: var(--wp--preset--font-size--fsz-18);
  margin-top: var(--wp--preset--spacing--space-16);
  white-space: nowrap;
}

/* できること（サービス） */
.ccl_service_wrapper {
  gap: 7.8vw;
}

.ccl_service_item {
  background-color: var(--wp--preset--color--white);
  border-radius: 42px;
  padding: var(--wp--preset--spacing--space-40);
}

.ccl_service_item_title {
  font-size: var(--wp--preset--font-size--fsz-28);
}

.ccl_service_item_img img {
  height: 8.3vw;
  min-height: 100px;
  object-fit: contain;
  object-position: center;
}

/* 右下アイコン */
.ccl_icon {
  width: 12.4vw;
  min-width: 80px;
  position: fixed;
  bottom: 2vw;
  right: 2vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease;
}

/* トップに戻るボタン */
.ccl_top_icon {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 2vw;
  bottom: 20vh;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border: 0;
  background: none;
  transition: opacity 2s ease;
}

.ccl_top_icon p {
  writing-mode: vertical-rl;
  text-decoration: none;
  text-transform: uppercase;
  height: 85px;
  margin: 0;
  letter-spacing: 0.2em;
  text-align: right;
  z-index: 500;
  font-size: var(--wp--preset--font-size--fsz-18);
  background-color: rgb(255, 255, 255, 0.4);
}

.ccl_top_icon p:before {
  content: "";
  position: absolute;
  top: 0;
  right: -5px;
  width: 2px;
  height: 20px;
  background: var(--wp--preset--color--main);
  transform: skewX(-150deg);
}

.ccl_top_icon p:after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 0;
  width: 2px;
  height: 85px;
  background: var(--wp--preset--color--main);
}

.is-show {
  opacity: 1;
  visibility: visible;
}

/* フッター */
footer {
  margin-top: 0 !important;
}

.ccl_footer_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ccl_footer_logo {
  width: 17.4vw;
  min-width: 120px;
}

.ccl_footer_right {
  width: 42vw;
  min-width: 500px;
}

.ccl_footer_btn_wrapper {
  display: flex;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--space-40);
}

.ccl_footer_btn a {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--main);
  font-size: var(--wp--preset--font-size--fsz-24);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 60px;
  width: 17.8vw;
  min-width: 220px;
  padding: 0.8em;
  background: linear-gradient(180deg, #003177, #0055cc, #3399ff, #003177);
  background-size: 100% 600%;
  color: white;
  position: relative;
  overflow: hidden;
  animation: wave 6s ease infinite;
  transition: transform 0.4s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ccl_footer_btn a:hover {
  transform: scale(1.05);
}

.ccl_footer_tel {
  display: flex;
  align-items: center;
}

.ccl_footer_tel_title {
  width: 313px;
}

.ccl_footer_tel_img img {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
  object-position: center;
}

/* ==================================
固定ページ共通
====================================*/
.ccl_news_list,
.ccl_news_page,
.ccl_contact {
  padding-top: 9em;
}

.ccl_news_list_wrapper,
.ccl_news_page_wrapper,
.ccl_contact_wrapper {
  position: inherit;
  z-index: 1;
}

/* ==================================
お知らせ個別ページ
====================================*/
.ccl_news_page_img {
  width: 100%;
  max-height: 480px;
  text-align: center;
}

.ccl_news_page_img img {
  object-fit: contain !important;
  object-position: center;
}

/* ==================================
お問い合わせ
====================================*/
.ccl_contact_text {
  text-align: center;
}

.ccl_contact_item {
  margin-bottom: var(--wp--preset--spacing--space-32);
}

.ccl_contact_label_wrapper {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--space-16);
  white-space: nowrap;
  margin-bottom: var(--wp--preset--spacing--space-16);
}

.ccl_contact_label_wrapper p {
  margin: 0;
  display: contents;
}

.ccl_contact_label {
  font-size: var(--wp--preset--font-size--fsz-20);
  font-weight: 700;
}

.ccl_contact_tag {
  font-size: 12px;
  background-color: var(--wp--preset--color--red);
  color: var(--wp--preset--color--white);
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 8px;
  white-space: nowrap;
}

.ccl_contact_radio_wrapper .wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ccl_contact_radio_wrapper input[type="radio"] {
  width: 1em;
  height: 1em;
}

.ccl_contact_wrapper input,
.ccl_contact_wrapper textarea {
  border-radius: 10px;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: var(--wp--preset--font-size--fsz-20);
}

::placeholder {
  color: #b1b1b1;
}

.ccl_contact_wrapper input:placeholder-shown,
.ccl_contact_wrapper textarea:placeholder-shown {
  background-color: #eef3f6;
  border-color: transparent;
  width: 100%;
  padding: 1rem;
}

.ccl_contact_wrapper input:not(:placeholder-shown),
.ccl_contact_wrapper textarea:not(:placeholder-shown) {
  background-color: var(--wp--preset--color--white);
  color: #333;
}

/* Chromeで入力後の背景色を同じにするため */
input:-webkit-autofill {
  background-color: var(--wp--preset--color--white) !important;
  color: #333 !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--wp--preset--color--white) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.ccl_contact_privacy {
  display: flex;
  justify-content: center;
  gap: var(--wp--preset--spacing--space-20);
  margin-bottom: var(--wp--preset--spacing--space-32);
}

.ccl_contact_privacy a {
  text-decoration: underline !important;
}

.ccl_contact_wrapper input[type="submit"] {
  display: block;
  font-size: var(--wp--preset--font-size--fsz-04);
  font-weight: 700;
  color: var(--wp--preset--color--white);
  padding: 1rem 1.5rem;
  border-radius: 32px;
  background: var(--wp--preset--color--main);
  border: transparent;
  width: 17vw;
  min-width: 180px;
  margin: 0 auto;
}

/* Contact Form 7 チェックボックスのサイズ拡大 */
.wpcf7 input[type="checkbox"] {
  width: 1em;
  height: 1em;
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
  box-sizing: border-box;
}

/* Turnstile */
.wpcf7-turnstile {
  text-align: right;
}

@media screen and (max-width: 781.5px) {
  .ccl_sp_only {
    display: block !important;
  }

  .ccl_pc_only {
    display: none !important;
  }

  .ccl_inner {
    width: 90%;
    min-width: inherit;
  }

  .ccl_header {
    align-items: center;
  }
  .ccl_header_btn_container {
    flex-direction: column;
    margin-top: 0;
    margin-bottom: 0;
    gap: 0.5em;
  }

  .ccl_header_btn a {
    border-radius: 0;
    width: 9em;
    height: 3em;
  }

  .ccl_fv_title_container {
    justify-content: center;
    margin-left: inherit;
    padding-left: 0;
    padding-top: calc(6vh + 7em);
  }

  .ccl_fv_text {
    left: 8vw;
  }

  /* News */
  .ccl_news_item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }

  /* パートナー */
  .ccl_partner_wrapper {
    flex-direction: column;
    gap: 2em;
  }

  .ccl_partner_item {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .ccl_partner_item_img {
    text-align: center;
  }

  .ccl_partner_item_img img {
    width: 80%;
    max-height: 200px;
    object-fit: contain;
  }

  .ccl_partner_item_container {
    position: absolute;
    bottom: -5%;
    left: 75%;
    transform: translateX(-50%);
    min-width: 170px;
    margin-top: 0;
    margin-left: 0;
  }
  /* サービス */
  .ccl_service_wrapper {
    gap: 1em;
  }

  .ccl_service_item {
    max-width: 70%;
  }

  /* トップに戻るボタン */
  .ccl_top_icon {
    right: 5vw;
    bottom: 10vh;
  }

  .ccl_top_icon p {
    height: 60px;
  }

  .ccl_top_icon p:before {
    right: -5px;
    height: 16px;
  }

  .ccl_top_icon p:after {
    height: 60px;
  }

  /* フッター */
  .ccl_footer_wrapper {
    flex-direction: column;
    gap: 2em;
  }

  .ccl_footer_btn_wrapper {
    justify-content: center;
    gap: 1em;
  }

  .ccl_footer_tel {
    justify-content: center;
  }

  .ccl_footer_tel_title {
    width: 220px;
  }

  /* お知らせ個別ページ */
  .ccl_news_page {
    padding-top: 6em;
  }

  /* お問い合わせ */
  .ccl_contact_text {
    text-align: left;
  }
}

@media screen and (max-width: 499px) {
  .ccl_service_wrapper {
    flex-direction: column;
    align-items: center !important;
  }

  .ccl_service_item {
    max-width: 70%;
  }

  .ccl_footer_btn_wrapper {
    flex-direction: column;
    align-items: center;
  }

  .ccl_footer_tel {
    flex-direction: column;
    align-items: center;
  }

  .ccl_footer_tel_title {
    width: inherit;
  }
}
