/* Reset Styles */
body,
div,
p,
ul,
ol,
li,
dl,
dt,
dd,
table,
th,
td,
img,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
form,
select,
button {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  border: 0;
}

img,
svg,
input,
select,
textarea,
label {
  vertical-align: middle;
}

table {
  border-collapse: collapse;
}

h1,
h2,
h3,
h4,
h5,
h6,
th,
em,
strong {
  font-weight: normal;
}

pre {
  margin: 0;
  font-family: "Hiragino Maru Gothic Pro", "メイリオ", sans-serif;
}

em {
  font-style: normal;
}

header,
article,
section,
aside {
  width: 100%;
}

*,
*:before,
*:after {
  word-break: break-all;
  box-sizing: border-box;
}

pre {
  white-space: pre-wrap;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  -webkit-text-size-adjust: 100%;
}

input:disabled {
  cursor: default !important;
}

input[type="radio"],
input[type="checkbox"] {
  margin: 0;
  padding: 0;
}

textarea {
  resize: none;
}

button {
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

svg {
  outline: none;
}

/* Grid Area Styles */
.grid-area {
  display: flex;
  flex-direction: column;
  min-height: 10px;
  color: #333333;
  font-family: "Noto Sans JP", sans-serif;
  position: relative;
}

@media (max-width: 767px) {
  .grid-container_list {
    flex-direction: column;
  }
  .grid-container {
    width: 100% !important;
  }
  .grid-inner_list {
    flex-direction: column;
  }
  .grid-inner {
    width: 100% !important;
  }
  .parts-menu nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .parts-tab .tab-header {
    flex-direction: row;
  }
}

.grid-layout {
  position: relative;
}

.grid-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.grid-container_list {
  display: flex;
  width: 100%;
}

.grid-container {
  display: flex;
  flex-direction: column;
  width: fit-content;
  min-width: 20px;
}

.grid-inner_list {
  display: flex;
  width: 100%;
}

.grid-inner {
  display: flex;
  flex-direction: column;
  width: fit-content;
  min-width: 20px;
}

.parts {
  width: fit-content;
}

.parts .no-data {
  padding: 10px;
  font-size: 12px;
  background: #eaeaea;
  color: #8d8d8d !important;
}

.parts,
.parts * {
  outline: none;
}

img {
  max-width: 100%;
}

.parts[data-type="heading1"] > p,
.parts[data-type="heading1"] > h1,
.parts[data-type="heading2"] > p,
.parts[data-type="heading2"] > h2,
.parts[data-type="heading3"] > p,
.parts[data-type="heading3"] > h3,
.parts[data-type="heading4"] > p,
.parts[data-type="heading4"] > h4,
.parts[data-type="text"] > p,
.parts[data-type="text"] > h1,
.parts[data-type="text"] > h2,
.parts[data-type="text"] > h3,
.parts[data-type="text"] > h4 {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: 500;
}

.parts[data-type="html"] .parts-html {
  min-width: 10px;
  min-height: 10px;
}

/** 見出し1のベーススタイル */
.parts[data-type="heading1"] > .parts-heading1 {
  font-size: 32px;
}

/** 見出し2のベーススタイル */
.parts[data-type="heading2"] > .parts-heading2 {
  font-size: 28px;
}

/** 見出し3のベーススタイル */
.parts[data-type="heading3"] > .parts-heading3 {
  font-size: 24px;
}

/** 見出し4のベーススタイル */
.parts[data-type="heading4"] > .parts-heading4 {
  font-size: 20px;
}

/** テキストのベーススタイル */
.parts[data-type="text"] > .parts-text {
  font-size: 16px;
}

/** リストのベーススタイル */
.parts[data-type="list"] > .parts-list {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

/** 画像のベーススタイル */
.parts[data-type="image"] > .parts-image {
  width: 100%;
  height: 100%;
}

/** 動画のベーススタイル */
.parts[data-type="video"] > .parts-video {
  width: 100%;
  height: 100%;
}

/** ボタンのベーススタイル */
[data-type="button"] {
  height: 40px;
}

[data-type="button"] > .parts-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: none;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #4f7df0;
  font-size: 13px;
  padding: 0 16px;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ロゴのベーススタイル */
[data-type="logo"] .parts-logo {
  width: 100%;
  height: 100%;
}

[data-type="logo"] .parts-logo a {
  width: 100%;
  height: 100%;
  display: block;
}

[data-type="logo"] .parts-logo a img {
  width: 100%;
  height: 100%;
}

/* カルーセルのベーススタイル */
[data-type="carousel"] {
  position: relative;
  overflow: hidden;
}

[data-type="carousel"] img {
  background-position: center center;
  background-repeat: no-repeat;
}

/* スライドショーのベーススタイル */
[data-type="slideShow"] {
  position: relative;
}

[data-type="slideShow"] .grid-child-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
}

/* アコーディオンのベーススタイル */
[data-type="accordion"] {
  width: 100%;
}

[data-type="accordion"] .accordion-header {
  flex-direction: row;
  justify-content: space-between;
  align-items: normal;
  padding: 20px;
  cursor: pointer;
}

[data-type="accordion"] .accordion-header .toggle-icon {
  width: fit-content;
}

[data-type="accordion"]
  .accordion-header[data-open="true"]
  + .accordion-contents {
  padding: 0 20px 20px 20px;
}

[data-type="accordion"] .accordion-header[data-open="true"] .is-close {
  display: none;
}

[data-type="accordion"]
  .accordion-header[data-open="false"]
  + .accordion-contents {
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

[data-type="accordion"] .accordion-header[data-open="false"] .is-open {
  display: none;
}

[data-type="accordion"] .accordion-contents .grid-inner {
  overflow: hidden;
}

[data-type="accordion"] .no-edit {
  min-width: initial;
}

.parts-list[class*="is-marker-"] li {
  margin-left: 24px;
}

.parts-list.is-marker-blackCircle li::marker {
  content: "●";
}

.parts-list.is-marker-whiteCircle li::marker {
  content: "○";
}

.parts-list.is-marker-asterisk li::marker {
  content: "※";
}

.parts-list.is-marker-icon li::marker {
  content: var(--my-svg);
}

.parts-list li {
  text-align: left;
  outline: none;
}

.parts-menu nav ul {
  display: flex;
  align-items: center;
}

.parts-menu nav ul li {
  outline: none;
}

.parts-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
}

.parts-breadcrumbs ol li {
  outline: none;
}

.parts-breadcrumbs ol li.separate-icon {
  display: flex;
  align-items: center;
  font-family: "Noto Serif JP", serif;
}

.parts-news ul {
  display: flex;
  flex-direction: column;
}

.parts-news ul li {
  display: flex;
  align-items: center;
  padding: 16px 12px;
  gap: 16px;
  font-size: 16px;
}

.parts-news ul li .news-date {
  color: #8d8d8d;
}

.parts[data-type="button"].is-right-arrow-icon {
  position: relative;
}

.parts[data-type="button"].is-right-arrow-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.parts[data-type="icon"] svg {
  fill: #000000;
}

.parts-spMenu {
  position: relative;
}

.parts-spMenu[data-open="true"] .toggle-btn span:nth-child(1) {
  transform: translateY(10px) rotate(-315deg);
}

.parts-spMenu[data-open="true"] .toggle-btn span:nth-child(2) {
  opacity: 0;
}

.parts-spMenu[data-open="true"] .toggle-btn span:nth-child(3) {
  transform: translateY(-10px) rotate(315deg);
}

.parts-spMenu .toggle-btn {
  width: 30px;
  height: 30px;
  transition: all 0.5s;
  z-index: 3;
  position: relative;
  cursor: pointer;
}

.parts-spMenu .toggle-btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #333;
  border-radius: 4px;
  transition: all 0.5s;
}

.parts-spMenu .toggle-btn span:nth-child(1) {
  top: 4px;
}

.parts-spMenu .toggle-btn span:nth-child(2) {
  top: 14px;
}

.parts-spMenu .toggle-btn span:nth-child(3) {
  bottom: 4px;
}

.parts-tab .tab-header .tab:not(.is-active) {
  cursor: pointer;
}

.parts-tab .tab-header .tab:not(.is-active) .tab-name {
  cursor: pointer;
}

.parts-tab .tab-contents:not(.is-active) {
  display: none;
}

.grid-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  overflow: auto;
  z-index: 100;
}

.grid-drawer .close-btn {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  cursor: pointer;
}

.grid-drawer .parts-menu nav ul {
  flex-direction: column;
  align-items: flex-start;
}

/* キーフレームの定義 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 上から下へのフェードイン */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 下から上へのフェードイン */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 左から右へのフェードイン */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 右から左へのフェードイン */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-element {
  opacity: 0;
}

.fade-in.is-visible {
  animation-name: fadeIn;
  animation-fill-mode: forwards;
}

.fade-in-top.is-visible {
  animation-name: fadeInUp;
  animation-fill-mode: forwards;
}

.fade-in-bottom.is-visible {
  animation-name: fadeInDown;
  animation-fill-mode: forwards;
}

.fade-in-left.is-visible {
  animation-name: fadeInLeft;
  animation-fill-mode: forwards;
}

.fade-in-right.is-visible {
  animation-name: fadeInRight;
  animation-fill-mode: forwards;
}

.position-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

.grid-area .grid-section:first-child.scroll-fadeout {
  position: sticky;
  top: 0;
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.grid-area .grid-section:first-child.scroll-fadeout.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
}

/* カルーセル関連スタイル */
.grid-area .swiper-slide {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.grid-area .swiper-slide a {
  width: 100%;
}

.grid-area .swiper-slide img {
  width: 100%;
  height: 100%;
}

/* ナビゲーションボタンのカスタマイズ */
.grid-area .swiper-button-next,
.grid-area .swiper-button-prev {
  color: #ffffff;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.grid-area .swiper-button-next::after,
.grid-area .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.grid-area .swiper-button-next:hover,
.grid-area .swiper-button-prev:hover {
  transform: scale(1.1);
}

/* ページネーションのカスタマイズ */
.grid-area .swiper-pagination {
  width: 100% !important;
}

.grid-area .swiper-pagination-bullet {
  border: 1px solid #ffffff;
  background: none;
  width: 8px;
  height: 8px;
  transition: all 0.3s ease;
  transform: scale(1) !important;
  opacity: initial !important;
}

.grid-area .swiper-pagination-bullet-active {
  background-color: #ffffff;
  border: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .grid-area .parts-carousel {
    margin: 10px;
  }

  .grid-area .swiper-button-next,
  .grid-area .swiper-button-prev {
    width: 36px;
    height: 36px;
    top: auto;
    bottom: 10px;
    margin-top: 0;
    transform: none;
  }

  .grid-area .swiper-button-next::after,
  .grid-area .swiper-button-prev::after {
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* 複数カルーセル用のマージン */
.grid-area .carousel-container {
  margin-bottom: 40px;
}
