/* =========================================================
   Google Fonts（CSSから読み込み）
   ========================================================= */
/* Existing typefaces are loaded once via fonts.css. */

/* =========================================================
   Base Typography
   - 英字: Cormorant Garamond
   - 日本語: SWELLデフォルトの明朝体
   ========================================================= */
html, body {
  font-family: 'Cormorant Garamond',
               YuMincho, "游明朝", "Hiragino Mincho ProN",
               "Hiragino Mincho Pro", "MS PMincho", serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 見出し（英字を強めに） */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond',
               YuMincho, "游明朝", "Hiragino Mincho ProN",
               "Hiragino Mincho Pro", "MS PMincho", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =========================================================
   Fixed Bottom Menu (SP)
   ========================================================= */

@media screen and (min-width: 960px) {
  #fixed-bottom-menu, #fixed-sidebar-menu { display: none; }
}

/* =========================================================
   Sidebar Floating Mini Menu
   ========================================================= */
#fixed-sidebar-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  width: 24px;
  background-color: #000;
  color: #fff;
  padding: 1em 0;
  border-radius: 10px 0 0 10px;
  text-align: center;
  overflow: hidden;
}
#fixed-sidebar-menu .swl-inline-icon {
  width: 15px; height: 15px; margin: 15px 0;
}
#fixed-sidebar-menu a {
  color: #fff; text-decoration: none;
  font-size: 10px; text-align: center;
  white-space: nowrap; margin: 14px 0;
}
#fixed-sidebar-menu a:hover { color: #7c7c7c; }


/* =========================================================
   Post List Cards
   ========================================================= */
.post-list .post-item { position: relative; overflow: hidden; border-radius: 10px; }


.post-list .post-item .post-title,
.post-list .post-item .post-meta {
  position: absolute; bottom: 20px; left: 20px;
  color: #fff; background: rgba(0,0,0,.6);
  padding: 10px; border-radius: 5px;
}
.post-list .post-item .post-title { font-size: 18px; font-weight: 700; }
.post-list .post-item .post-meta { font-size: 14px; }

/* =========================================================
   Columns & Sticky Right
   ========================================================= */
.wp-block-columns {
  display: flex; flex-wrap: nowrap; gap: 20px;
  position: relative; overflow: visible;
}
.wp-block-columns > .wp-block-column:first-child { flex: 1; z-index: 1; }
.fixed-column {
  position: sticky; top: 20px; z-index: 10;
  flex: 0 0 300px; max-width: 300px;
  text-align: center; line-height: 1.8;
}

/* =========================================================
   Footer
   ========================================================= */
.l-footer__nav li:first-child a { border-left: none; }
.l-footer__nav a { border: none; }
.l-footer__nav a:hover {
  color: #313131; text-decoration: none; transition: all .25s;
}
#breadcrumb { display: none; }
.l-footer, .l-footer a, .l-footer li {
  font-size: 16px; line-height: 1.8;
}

/* =========================================================
   WPForms
   ========================================================= */
.wpforms-form .wpforms-field-label,
.wpforms-form .wpforms-field-label-inline,
.wpforms-form .wpforms-field-label-left,
.wpforms-form .wpforms-field-label-right,
.wpforms-form .wpforms-field-label + ul li label {
  color: #313131 !important;
}
.wpforms-submit {
  background-color: #313131 !important;
  border-color: #313131 !important;
  color: #f8f8f8;
}
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea { width: 100%; }
.wpforms-form label { font-size: 12px; }

/* =========================================================
   WPForms ボタンフォント調整（小さめ）
   ========================================================= */
.wpforms-submit,
.wpforms-form button[type="submit"],
.wpforms-form .wpforms-page-button {
  background-color: #313131 !important;
  border: 1px solid #313131 !important;
  color: #f8f8f8 !important;
  font-size: 12px !important;   /* フォントサイズを小さく */
  padding: 8px 18px;            /* フォントに合わせてパディングも調整 */
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ホバー時 */
.wpforms-submit:hover,
.wpforms-form button[type="submit"]:hover,
.wpforms-form .wpforms-page-button:hover {
  background-color: #777777 !important;
  border-color: #777777 !important;
}

/* =========================================================
   MV（mv-split）
   ========================================================= */
@media (min-width: 1025px) {
  .mv-split__inner{
    display: grid; grid-template-columns: 66% 34%;
    align-items: stretch; min-height: min(68vh, 760px); position: relative;
  }
  .mv-split__img{ grid-column: 1/2; position: static; height: 100%; }
  .mv-split__img img{ width: 100%; height: 100%; object-fit: cover; display: block; }
  .mv-split__content{
    grid-column: 2/3; position: static; transform: none;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(24px, 3.5vw, 48px);
    background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); text-align: left;
  }
  .mv-split .mv-right{ width: 100%; max-width: 540px; margin: 0; }
}
@media (max-width: 1024px) {
  .mv-split__inner { display: block; min-height: auto; }
  .mv-split__img { line-height: 0; }
  .mv-split__img img { display: block; width: 100%; height: auto; object-fit: cover; }
  .mv-split__content{
    position: static !important; transform: none !important;
    width: 100% !important; margin: 0 !important;
    padding: 24px 20px; background: #fff; color: #000; box-shadow: none;
    display: flex; justify-content: center; text-align: center;
  }
  .mv-split .mv-right{ width: 100%; max-width: 720px; margin: 0 auto; padding: 0; }
  .mv-split .mv-right > *:first-child{ margin-top: 0; }
  .mv-split .mv-right > *:last-child{ margin-bottom: 0; }
}
@media (min-width: 1025px) {
  .home .mv-split {
    position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw; width: 100vw;
  }
}
@media (max-width: 1024px) {
  .home .mv-split { left: auto; right: auto; margin-left: 0; margin-right: 0; width: 100%; }
}
@media (max-width: 1024px) {
  .home .c-container,
  .home .l-content,
  .home .l-contents { padding-left: 0 !important; padding-right: 0 !important; }

  .home .mv-split,
  .home .mv-split__inner,
  .home .mv-split__img,
  .home .mv-split__content,
  .home .mv-split .mv-right {
    width: 100% !important; max-width: 100% !important; margin: 0 !important;
  }

  .home .mv-split__img { line-height: 0; }
  .home .mv-split__img img { display: block; width: 100%; height: auto; object-fit: cover; }

  .home .mv-split__content {
    padding: 24px 0 !important;
    background: #fff; box-shadow: none; border: 0;
    display: flex; justify-content: center; text-align: center;
  }
  .home .mv-split .mv-right > *:first-child{ margin-top: 0 !important; }
  .home .mv-split .mv-right > *:last-child{ margin-bottom: 0 !important; }

  html, body { overflow-x: hidden; }
}

/* =========================================================
   Buttons（#313131に変更）
   ========================================================= */
/* =========================================================
   Header / Misc
   ========================================================= */
@media (min-width: 1025px) {
  .c-hamburger { background-color: #313131 !important; }
}
.lang-switch { position: relative; display: inline-block; }

@media (min-width: 960px) {
  .l-footer .c-widget__title { font-size: 12px; }
  .l-footer, .l-footer a, .l-footer li {
    font-size: 12px; line-height: 1.8;
  }
}

.l-header { position: relative; z-index: 100020 !important; }
.loading { z-index: 999999 !important; }

/* =========================================================
   ループスライダー
   ========================================================= */
.loop-slider {
  display: flex;
  overflow: hidden;
}
.loop-slider .wp-block-group__inner-container,
.loop-slider .swell-block-columns {
  display: contents;
}
.loop-slider .swell-block-columns__inner {
  flex-wrap: nowrap;
  animation: infinity-scroll-left 100s infinite linear;
  will-change: transform;
}
.loop-slider .swell-block-column figure {
  width: 500px; /* 画像の横幅（PC） */
  position: relative;
}
.loop-slider .swell-block-column figure::before {
  padding-top: 100%;
  display: block;
  content: "";
}
.loop-slider .swell-block-column figure img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}
@media screen and (max-width: 959px) {
  .loop-slider .swell-block-column figure {
    width: 350px; /* 画像の横幅（SP） */
  }
}
@keyframes infinity-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}


/****************************************
  SWELL SPメニュー不具合・最小修正パッチ
  ※ 追加CSSの一番下に貼り付け
****************************************/

/* 5) ローディング層が押下を塞がないよう透過 */
.loading { pointer-events: none !important; }
.loading.is-hidden { display: none !important; }

/* まずボディ側の余白を強制的にゼロに */


/* フッター側でセーフエリア分だけ吸収（背景色はサイトに合わせて） */
.l-footer{
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: #e9e9e9; /* フッターと同色に */
}

/* iOS古い仕様へのフォールバック（あれば） */
.l-footer{ padding-bottom: max(16px, constant(safe-area-inset-bottom)); }
