/*
Theme Name:   Astra Child
Template:     astra
*/

/*
Menu Style
*/

.site-header {
  position: sticky !important;
  top: 0 !important;
}

li.menu-item.language_en_ja {
  display: flex;
  /* justify-content: flex-end; */
  flex-direction: row;
  align-items: flex-end;
}

li.menu-item.language_en_ja > a {
  display: contents !important;
  margin: 0 14px !important;
}

li.menu-item.language_en_ja > a > span {
  padding-left: 14px !important;
}

/* 言語切り替えボタンの無効化スタイル */
li.menu-item.language_en_ja > a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

li.menu-item.language_en_ja > a.disabled > span {
  color: #999;
}

/* 言語切り替えボタンのアニメーション */
li.menu-item.language_en_ja > a:not(.disabled) {
  transition: transform 0.3s ease;
}

li.menu-item.language_en_ja > a:not(.disabled):hover {
  transform: scale(1.1);
}

/* 無効化されたボタンにはアニメーションを適用しない */
li.menu-item.language_en_ja > a.disabled {
  transition: none;
}

/* 無効化された言語ボタンにはアンダーラインを表示しない */
li.menu-item.language_en_ja > a.disabled::after {
  display: none;
}

.site-header-section {
  align-items: flex-start !important;
}

.ast-builder-menu-1 {
  margin-top: 20px !important;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
  line-height: 1 !important;
}

.menu-item > a {
  display: flex;
  flex-direction: column;
}

.left_kanji {
  align-items: flex-start !important;
}

.menu-item > a > span.menu_kanji {
  font-size: 14px;
  line-height: 1;
  font-family: "Noto Serif JP", serif !important;
  color: #ffffff;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.menu-item > a > span.menu_name {
  font-size: 36px;
  line-height: 1;
  font-family: "torontogothic" !important;
  font-weight: 400;
  color: #ffffff;
  transition: all 0.3s ease;
}

/* メニューアイテムのホバーアニメーション */
.menu-item > a {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.menu-item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.menu-item > a:hover::after {
  width: 100%;
}

.menu-item > a:hover .menu_kanji {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.menu-item > a:hover .menu_name {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.language_en > a {
  padding-right: 0px !important;
  border-bottom: 2px solid #ffffff;
  padding-left: 0px !important;
  margin-left: 10px;
}

.language_ja > a > span.menu_name {
  border-left: 2px solid #ffffff;
  padding-left: 10px;
}

/*
Main Image Style
*/

.elementor-1675 .elementor-element.elementor-element-041f34e::before {
  background-size: cover !important;
}

.elementor-1675 .elementor-element.elementor-element-c1f263f img {
  width: 40% !important;
  max-width: 40% !important;
}

/*
Menu Remove Border
*/

@media (min-width: 922px) {
  .ast-primary-header-bar {
    border-bottom-width: none !important;
    border-bottom-color: none !important;
    border-bottom-style: none !important;
  }
}

.main-header-bar {
  border-bottom-color: none !important;
  border-bottom-style: none !important;
}

/*
Footer Style
*/

.footer_content {
  height: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  color: #fff;
}

@media (max-width: 921px) {
  .footer_content {
    flex-direction: column;
    height: 400px;
  }
  .footer_button span {
    width: 100% !important;
  }
}

.footer_button {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer_button span {
  width: 80%;
}
.footer_copyright {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  font-family: "torontogothic";
  font-weight: 400;
  color: #ffffff;
}

.footer_contact_button {
  width: 300px;
}

/*
FAQ Style
*/

.elementor-widget-n-accordion .e-n-accordion-item-title {
  border-color: none !important;
  border-radius: 0 !important;
  border-style: none !important;
}

:where(.elementor-widget-n-accordion .e-n-accordion-item > .e-con) {
  border: none !important;
}

.elementor-widget-n-accordion .e-n-accordion-item {
  border-bottom: 1px solid #ffffff;
}

.elementor-widget-n-accordion
  .e-n-accordion-item
  .e-n-accordion-item-title-icon
  span
  > svg {
  fill: none !important;
}

/*
Form Style
*/

.e-n-accordion-item-title {
  padding: 24px 0 !important;
}

.elementor-widget-n-accordion .e-n-accordion-item-title-icon span > svg {
  fill: none !important;
  height: 0 !important;
}

.srfm-form {
  justify-content: center !important;
}

#srfm-submit-btn {
  width: auto !important;
}

.srfm-custom-button {
  border-radius: 0 !important;
}

.srfm-custom-button-ctn {
  width: auto !important;
  text-align: center !important;
  align-items: center !important;
}

.srfm-submit-wrap {
  line-height: 1;
  font-family: "torontogothic" !important;
  font-weight: 400;
  text-wrap: nowrap;
  text-decoration: underline;
}

/*
Cart Style
*/

.body,
.ast-separate-container {
  background-color: #030c3d !important;
}

.ast-primary-header-bar {
  background-color: transparent !important;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs li a {
  color: #ffffff !important;
}

.ast-separate-container .ast-article-single:not(.ast-related-post),
.woocommerce.ast-separate-container .ast-woocommerce-container,
.ast-separate-container .error-404,
.ast-separate-container .no-results,
.single.ast-separate-container .ast-author-meta,
.ast-separate-container .related-posts-title-wrapper,
.ast-separate-container .comments-count-wrapper,
.ast-box-layout.ast-plain-container .site-content,
.ast-padded-layout.ast-plain-container .site-content,
.ast-separate-container .ast-archive-description,
.ast-separate-container .comments-area .comment-respond,
.ast-separate-container .comments-area .ast-comment-list li,
.ast-separate-container .comments-area .comments-title {
  background-color: #030c3d !important;
}

.menu-toggle,
button,
.ast-button,
.ast-custom-button,
.button,
input#submit,
input[type="button"],
input[type="submit"],
input[type="reset"],
form[CLASS*="wp-block-search__"].wp-block-search
  .wp-block-search__inside-wrapper
  .wp-block-search__button,
body .wp-block-file .wp-block-file__button,
.woocommerce-js a.button,
.woocommerce button.button,
.woocommerce .woocommerce-message a.button,
.woocommerce #respond input#submit.alt,
.woocommerce input.button.alt,
.woocommerce input.button,
.woocommerce input.button:disabled,
.woocommerce input.button:disabled[disabled],
.woocommerce input.button:disabled:hover,
.woocommerce input.button:disabled[disabled]:hover,
.woocommerce #respond input#submit,
.woocommerce button.button.alt.disabled,
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product-onsale,
[CLASS*="wc-block"] button,
.woocommerce-js
  .astra-cart-drawer
  .astra-cart-drawer-content
  .woocommerce-mini-cart__buttons
  .button:not(.checkout):not(.ast-continue-shopping),
.woocommerce-js
  .astra-cart-drawer
  .astra-cart-drawer-content
  .woocommerce-mini-cart__buttons
  a.checkout,
.woocommerce button.button.alt.disabled.wc-variation-selection-needed,
[CLASS*="wc-block"] .wc-block-components-button {
  color: #030c3d !important;
  background-color: #ffde59;
}

.woocommerce-cart .cart-collaterals .cart_totals > h2,
.woocommerce-cart .cart-collaterals .cross-sells > h2 {
  background-color: transparent !important;
}

.woocommerce-js table.shop_table thead,
.woocommerce-page table.shop_table thead {
  background-color: transparent !important;
}

.woocommerce-js a.remove {
  color: #ffffff !important;
}

.woocommerce-js ul.products li.product .ast-woo-product-category,
.woocommerce-page ul.products li.product .ast-woo-product-category {
  margin-bottom: 0 !important;
  opacity: 1 !important;
}

.woocommerce-js ul.products li.product a.ast-loop-product__link {
  margin-top: -100px !important;
}

.woocommerce-js ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  margin-top: -40px !important;
}

.astra-shop-summary-wrap {
  margin-left: 10px !important;
  margin-top: -20px !important;
}

.astra-shop-summary-wrap > br {
  display: none !important;
}

.astra-shop-summary-wrap > p {
  display: none;
}

.astra-shop-summary-wrap > p:last-child {
  display: block;
}

.review-rating {
  display: none;
}

/*
Slider Style
*/

.slide-container {
  width: 100%;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.slide-row {
  width: 100%;
  height: 370px;
  overflow: hidden;
  position: relative;
}

.slide-row:first-child {
  margin-bottom: 20px;
}

.slide-wrapper {
  display: flex;
  height: 100%;
  width: max-content;
  gap: 20px;
}

.slide {
  width: 490px;
  height: 370px;
  object-fit: cover;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

/* 上段：右から左へ流れる */
.top-wrapper {
  animation: slide-left 45s infinite linear;
}

/* 下段：左から右へ流れる */
.bottom-wrapper {
  animation: slide-right 45s infinite linear;
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes slide-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

h1 > span {
  font-weight: 400 !important;
}

/*
Mobile Menu Style
*/
span.mobile-menu-toggle-icon {
  background-color: transparent !important;
}

button.menu-toggle.main-header-menu-toggle.ast-mobile-menu-trigger-fill {
  background-color: transparent !important;
}

@media (max-width: 921px) {
  .ast-builder-menu-1 .main-header-menu,
  .ast-builder-menu-1 .main-header-menu .sub-menu {
    background-color: #030c3d;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ast-mobile-header-wrap:has(
      .main-header-bar-navigation.ast-flex-1.toggle-on
    ) {
    background-color: #030c3d;
  }

  .ast-builder-menu-1 {
    margin-top: 0 !important;
    padding-top: 20px !important;
    background-color: #030c3d;
  }

  [data-section="section-header-mobile-trigger"] .ast-button-wrap .menu-toggle {
    margin-top: 8px !important;
  }

  .main-header-menu .menu-item > .menu-link {
    display: flex !important;
    padding: 2.5vw !important;
  }

  .ast-mobile-header-content {
    height: 100vh !important;
    background-color: #030c3d !important;
  }
}

/*
Mobile Content Style
*/

.elementor-widget-container > h1 > span {
  font-weight: 400 !important;
}

.elementor-widget-container > p {
  font-size: 14px !important;
  font-family: "Hind", sans-serif;
}

@media (max-width: 921px) {
  .elementor-widget-container > h1 > span {
    font-size: 80px !important;
    line-height: 1.2;
  }
}

/*
Page Header Style
*/

.page-header {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 300px !important;
  height: 300px !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  overflow: hidden;
  margin-bottom: 60px !important;
}

.page-header-title {
  margin-top: 3vh;
  color: white;
  text-align: center;
  font-weight: bold;
  font-family: "torontogothic", Sans-serif;
  font-size: 70px;
  font-weight: 400;
  line-height: 70px;
}

/* Elementorのショートコードブロック幅制限を解除 */
.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .page-header {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
}

/* Elementorコンテナの制約を解除 */
.elementor-container,
.elementor-row,
.elementor-column {
  max-width: none !important;
  width: 100% !important;
}

/* Elementorセクションの制約を解除 */
.elementor-section,
.elementor-section-wrap {
  max-width: none !important;
  width: 100% !important;
  overflow: visible !important;
}

/* ショートコードを含むElementorセクションを全幅化 */
.elementor-section:has(.elementor-widget-shortcode) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* デバッグ用：背景画像が読み込まれているか確認 */
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.topic_title {
  text-decoration-thickness: 4px !important;
}

/* ========================================
   スゥ〜っと出てくるアニメーション
   ======================================== */

:root {
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
}

.advanced {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.advanced.isActive {
  opacity: 1;
  translate: 0;
}

/* 遅延付きアニメーション */
.advanced-delay-1 {
  transition-delay: 0.1s;
}

.advanced-delay-2 {
  transition-delay: 0.2s;
}

.advanced-delay-3 {
  transition-delay: 0.3s;
}

.advanced-delay-4 {
  transition-delay: 0.4s;
}

.advanced-delay-5 {
  transition-delay: 0.5s;
}

.advanced-delay-6 {
  transition-delay: 0.6s;
}

/* 異なる方向からのアニメーション */
.advanced-left {
  opacity: 0;
  translate: -13% 0;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.advanced-left.isActive {
  opacity: 1;
  translate: 0;
}

.advanced-right {
  opacity: 0;
  translate: 13% 0;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.advanced-right.isActive {
  opacity: 1;
  translate: 0;
}

.advanced-up {
  opacity: 0;
  translate: 0 -13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.advanced-up.isActive {
  opacity: 1;
  translate: 0;
}

/* スケールアニメーション */
.advanced-scale {
  opacity: 0;
  scale: 0.8;
  transition: opacity 0.9s var(--ease-out-cubic),
    scale 0.9s var(--ease-out-quint);
}

.advanced-scale.isActive {
  opacity: 1;
  scale: 1;
}

/* 回転アニメーション */
.advanced-rotate {
  opacity: 0;
  rotate: 5deg;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint), rotate 0.9s var(--ease-out-quint);
}

.advanced-rotate.isActive {
  opacity: 1;
  translate: 0;
  rotate: 0deg;
}

/* ========================================
   全要素へのadvancedアニメーション適用
   ======================================== */

/* ヘッダー要素 */
.site-header {
  opacity: 0;
  translate: 0 -13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.site-header.isActive {
  opacity: 1;
  translate: 0;
}

/* メインコンテンツ */
.elementor-widget-container,
.elementor-element,
.elementor-section {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.elementor-widget-container.isActive,
.elementor-element.isActive,
.elementor-section.isActive {
  opacity: 1;
  translate: 0;
}

/* 見出し要素 */
h1,
h2,
h3,
h4,
h5,
h6 {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

h1.isActive,
h2.isActive,
h3.isActive,
h4.isActive,
h5.isActive,
h6.isActive {
  opacity: 1;
  translate: 0;
}

/* 段落要素 */
p {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

p.isActive {
  opacity: 1;
  translate: 0;
}

/* 画像要素 */
img {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

img.isActive {
  opacity: 1;
  translate: 0;
}

/* ボタン要素 */
button,
.button,
.ast-button,
.ast-custom-button,
input[type="submit"],
input[type="button"] {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

button.isActive,
.button.isActive,
.ast-button.isActive,
.ast-custom-button.isActive,
input[type="submit"].isActive,
input[type="button"].isActive {
  opacity: 1;
  translate: 0;
}

/* リンク要素 */
a {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

a.isActive {
  opacity: 1;
  translate: 0;
}

/* リスト要素 */
ul,
ol,
li {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

ul.isActive,
ol.isActive,
li.isActive {
  opacity: 1;
  translate: 0;
}

/* フォーム要素 */
input,
textarea,
select {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

input.isActive,
textarea.isActive,
select.isActive {
  opacity: 1;
  translate: 0;
}

/* 商品カード */
.woocommerce ul.products li.product {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.woocommerce ul.products li.product.isActive {
  opacity: 1;
  translate: 0;
}

/* スライダー要素 - 既存のアニメーションがあるため除外 */

/* フッター要素 */
.footer_content,
.footer_button,
.footer_copyright {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.footer_content.isActive,
.footer_button.isActive,
.footer_copyright.isActive {
  opacity: 1;
  translate: 0;
}

/* FAQ要素 */
.elementor-widget-n-accordion .e-n-accordion-item {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.elementor-widget-n-accordion .e-n-accordion-item.isActive {
  opacity: 1;
  translate: 0;
}

/* ページヘッダー */
.page-header,
.page-header-title {
  opacity: 0;
  translate: 0 13%;
  transition: opacity 0.9s var(--ease-out-cubic),
    translate 0.9s var(--ease-out-quint);
}

.page-header.isActive,
.page-header-title.isActive {
  opacity: 1;
  translate: 0;
}

/* 遅延アニメーション用のクラス */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}
.delay-6 {
  transition-delay: 0.6s;
}
.delay-7 {
  transition-delay: 0.7s;
}
.delay-8 {
  transition-delay: 0.8s;
}
.delay-9 {
  transition-delay: 0.9s;
}
.delay-10 {
  transition-delay: 1s;
}
