
/* もっと見るボタンを角丸に */
.p-postListWrap .btn_text {
  border-radius: 100vmax;
}

/*----------------------------------
    ヘッダー
-----------------------------------*/
/* ヘッダーメニューのfont変更 */
.c-gnav > .menu-item > a .ttl {
  font-family: Chango, sans-serif;
}

/*----------------------------------
    メインビジュアル
-----------------------------------*/
/* メインビジュアルのタイトルとテキストを囲む要素の幅を変更 */
.p-mainVisual__textLayer {
  width: clamp(500px, 60vw, 750px);
}

html[lang="en-US"] .p-mainVisual__textLayer {
  width: clamp(300px, 80vw, 1200px);
}

.p-mainVisual__wrapper {
  padding-block: 50px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.p-mainVisual__textLayer,
.l-parent,
.l-container,
.u-ta-c {
  text-shadow: none !important;
}

/* メインビジュアルのタイトル、テキストのfont-weightを変更 */
.p-mainVisual__slideTitle {
  font-family: "Zen Maru Gothic", serif;
  font-size: clamp(1.375rem, 1.132rem + 1.04vw, 2.375rem);
  color: #302222;
  font-weight: 700;
}

.p-mainVisual__slideText {
  font-family: "Zen Maru Gothic", serif;
  font-size: clamp(0.875rem, 0.663rem + 0.91vw, 1.75rem);
  color: #302222;
  font-weight: 700;
}

/* メインビジュアルのタイトルを英語にするコード */
html[lang="en-US"] .p-mainVisual__slideTitle::before {
  content: "Events that color the city and connect the heart";
}

html[lang="en-US"] .p-mainVisual__slideTitle {
  font-size: 0;
}

html[lang="en-US"] .p-mainVisual__slideTitle::before {
  font-size: clamp(1.375rem, 1.132rem + 1.04vw, 2.375rem);
}

/* メインビジュアルのテキストを英語にするコード */
html[lang="en-US"] .p-mainVisual__slideText::before {
  content: "A special moment that enlivens the community for you !";
}

html[lang="en-US"] .p-mainVisual__slideText {
  font-size: 0;
}

html[lang="en-US"] .p-mainVisual__slideText::before {
  font-size: clamp(0.875rem, 0.663rem + 0.91vw, 1.75rem);
}

/*----------------------------------
    セクションタイトル
-----------------------------------*/
/* タイトルを大文字にする */
.wp-block-heading.is-style-section_ttl {
  text-transform: uppercase;
}

/* セクションタイトルのfont変更 */
.post_content .is-style-section_ttl {
  font-family: Chango, sans-serif;
  font-size: 32px;
  position: relative;
  padding-bottom: 1.5rem;
}

.post_content .is-style-section_ttl:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  content: "";
  border-radius: 3px;
  background: var(--color_text);
}

/* サクションタイトルのアニメーション */
.animation__text .char {
  opacity: 0;
}

/* ギャラリーの画像を角丸に */
.pd-gallery .wp-block-image {
  border-radius: 20px;
  overflow: hidden;
}

/*----------------------------------
    イベント
-----------------------------------*/
/* イベントのカードを角丸に */
.pd-event .p-postList__link {
  border-radius: 20px 20px 20px 20px;
  overflow: hidden;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

/* イベントのカードのbodyを角丸に */
.pd-event .p-postList__body {
  padding: 1rem 0.5em;
}

/*----------------------------------
    アバウト
-----------------------------------*/
/* aboutの画像を角丸に */
.pd-about__img img {
  border-radius: 20px;
}

/*----------------------------------
    お問い合わせ
-----------------------------------*/
/* お問い合わせフォームの幅変更 */
.pd-contact > .l-article {
  max-width: 600px;
}

/* プライバシーポリシーの中央揃え */
p:has(.wpcf7-form-control-wrap[data-name="privacy-check"]) {
  text-align: center;
  margin-bottom: 2rem;
}

.underline {
  text-decoration: underline;
}

/* 送信ボタンの中央揃え */
p:has(.wpcf7-submit) {
  text-align: center;
}

.wpcf7-spinner {
  display: none;
}

/* labelのfont-size変更 */
label {
  font-size: 1.125rem;
}

/* 必須マーク追加 */
.required::after {
  content: "必須";
  color: #ffffff;
  background: #cc0000;
  font-size: 0.8em;
  padding: 0.3em;
  border-radius: 0.5em;
  margin-left: 0.3em;
}

html:lang(en) .required::after {
  content: "required";
}

/* 入力欄の幅を変更、余白変更 */
input[name="your-name"],
input[name="your-email"],
input[name="your-tel"],
textarea[name="your-message"] {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 24px;
}

/* 送信ボタンのカスタム */
.wpcf7-submit {
  border: none;
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
  background-color: var(--color_main);
  color: #ffffff;
  border-radius: 40px;
  padding: 12px 38px;
  border: 1px solid transparent;
  box-shadow: var(--swl-btn_shadow);
  transition: ease-out 0.3s;
}

.wpcf7-submit:hover {
  color: var(--color_main);
  background-color: #ffffff;
  border: 1px solid var(--color_main);
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%), 0 12px 24px -12px rgb(0 0 0 / 20%);
  opacity: 1;
}

/* お問い合わせ完了メッセージの削除 */
.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

/*----------------------------------
    フッター
-----------------------------------*/
/* footerの背景変更 */
.l-footer::before {
  background: rgba(0, 0, 0, 0.2);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

/*----------------------------------
    アニメーション
-----------------------------------*/
/* アニメーション前 */
.u-fade-type-up {
  transform: translateY(50px);
  opacity: 0;
}

/* トリガー発火でis-activeを付与 */
.u-fade-type-up.is-active {
  transition: 0.6s;
  transform: translateY(0);
  opacity: 1;
}

/*----------------------------------
    言語スイッチャーのカスタム
-----------------------------------*/
.widget_bogo_language_switcher .w-header__title {
  display: none;
}

.bogo-language-switcher {
  display: flex;
  flex-direction: row-reverse;
}

.bogo-language-switcher a {
  padding: 1em;
  color: var(--color_text);
  font-weight: 700;
}

.bogo-language-switcher .current a {
  color: #e4322e;
}

.bogo-language-switcher .en-US {
  position: relative;
}

.bogo-language-switcher .en-US::before {
  content: "";
  width: 1px;
  height: 65%;
  background-color: var(--color_text);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/*----------------------------------
    swiper
-----------------------------------*/
.card {
  overflow: hidden;
}

.card__swiper-slide {
  width: 400px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

@media screen and (max-width: 768px) {
  .card__swiper-slide {
    width: 200px;
  }
}

.card__swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card__swiper-slide p {
  font-size: 30px;
  font-weight: 700;
}

.card__swiper-wrapper {
  transition-timing-function: linear;
}

/*----------------------------------
    雪のアニメーション
-----------------------------------*/
.snow {
  position: fixed;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120vh; /* 画面より少し大きくすることで、下までしっかり降らせる */
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.snow__item::before {
  content: "\f2dc"; /* Font Awesomeの雪のアイコンのユニコード */
  font-family: "Font Awesome 5 Free"; /* Font Awesome 5 Freeを指定 */
  font-weight: 900;
  color: white;
  position: absolute;
  white-space: nowrap;
  opacity: 0;
  animation: snowfall var(--duration) linear infinite var(--delay);
  filter: blur(var(--blur));
  font-size: var(--size);
}

/* 2つ目の雪（少し大きく、速度を変える） */
.snow__item2::after {
    content: "\f2dc";
    font-family: "Font Awesome 5 Free"; /* Font Awesome 5 Freeを指定 */
    font-weight: 900;
    color: white;
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    animation: snowfall2 var(--duration) linear infinite var(--delay);
    filter: blur(var(--blur));
    font-size: var(--size);
}

@keyframes snowfall {
  0% { transform: translate3d(calc(var(--x) * 1vw), -10%, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate3d(calc(var(--x) * 1vw), 100vh, 0) rotate(360deg); opacity: 0; }
}

@keyframes snowfall2 {
    0% { transform: translate3d(calc(var(--x) * 1vw), -20%, 0) rotate(0deg); opacity: 0; }
    15% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate3d(calc(var(--x) * 1vw), 100vh, 0) rotate(-360deg); opacity: 0; }
}