/*---------------------------
home style
----------------------------- */
/* 前方一致（^=）: 指定した文字列で始まる要素 */
/* [class^="prefix-"] {
     例：prefix-で始まるクラス名すべてに適用
} */
/* 後方一致（$=）: 指定した文字列で終わる要素 */
/* [class$="__inner"] {
     例：__innerで終わるクラス名すべてに適用
} */
/* 部分一致（*=）: 指定した文字列を含む要素 */
/* [class*="common"] {
     例：commonを含むクラス名すべてに適用
} */

/* btn共通 */
[class$='__btn'] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(50%, 385px);
  margin: min(5vw, 48px) auto 0;
  padding: 1.5em 0;
  box-sizing: border-box;
  border: 2px solid #d49a3d;
  border-radius: 9999px;
  background-color: #fff;
  color: #d49a3d;
  font-size: clamp(0.775rem, 1.583vw, 1.08125rem);
  letter-spacing: 0.06em;
  font-weight: 600;
  position: relative;
}

[class$='__btn']:hover {
  background-color: #d49a3d;
  color: #fff;
}

[class$='__btn-icon'] {
  position: absolute;
  right: 20%;
  top: 50%;
  transform: translate(50%, -50%);
  flex-shrink: 0;
  width: min(3.33vw, 40px);
}

[class$='__btn-icon'] img {
  width: 100%;
  height: auto;
  display: block;
}

[class$='__btn-icon-img--hover'] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

[class$='__btn']:hover [class$='__btn-icon-img--default'] {
  opacity: 0;
}

[class$='__btn']:hover [class$='__btn-icon-img--hover'] {
  opacity: 1;
}

/* mainvisual */
.mainvisual__contents {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* 1200 × 900 の比率 */
  max-height: 900px; /* 高さの上限 */
  margin: 0 auto; /* max-width 指定時の中央寄せ */
  overflow: hidden;
  background-image: url(../../img/01_TOP/mainvisual-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mainvisual__img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: min(65%, 750px);
  display: block;
}

.mainvisual__img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* 丸い山型マスク (SVG clipPath を参照) */
  clip-path: url(#mainvisual-blob);
  -webkit-clip-path: url(#mainvisual-blob);
  animation: mainvisual-blob-spin 28s linear infinite;
  transform-origin: center center;
  will-change: transform;
}

/* 枠と逆回転させ、写真だけ静止させる */
.mainvisual__img-inner {
  width: 100%;
  height: 100%;
  animation: mainvisual-blob-spin 28s linear infinite reverse;
  transform-origin: center center;
  will-change: transform;
}

/* インライン SVG のレイアウト影響を消す (clip-path 定義用) */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.mainvisual__img-inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mainvisual__circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72%, 825px);
  aspect-ratio: 1 / 1;
  height: auto;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  animation: spin 30s linear infinite;
}
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
@keyframes mainvisual-blob-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes mainvisual-blob-counter-spin {
  to {
    transform: rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mainvisual__img-frame,
  .mainvisual__img img {
    animation: none;
  }
}

/* concept section */
.concept {
  position: relative;
}
.concept__deco-list {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.concept__deco {
  position: absolute;
  display: block;
}
.concept__deco--1 {
  top: max(-12.5vw, -120px);
  left: 4%;
  width: min(23.75vw, 285px);
  height: auto;
}
.concept__deco--2 {
  right: 4%;
  bottom: max(-5vw, -60px);
  width: min(23.75vw, 285px);
  height: auto;
}
.concept__deco--3 {
  bottom: 8%;
  left: 18%;
  width: min(6.25vw, 75px);
}
.concept__deco--4 {
  top: 8%;
  right: 14%;
  width: min(7.5vw, 90px);
}
.concept__content {
  position: relative;
  z-index: 2;
  padding: min(6vw, 70px) 0 min(6vw, 70px);
}
.concept__text {
  font-size: clamp(0.775rem, 1.583vw, 1.1875rem);
  font-weight: 400;
  line-height: 2.5;
  letter-spacing: 0.1em;
  text-align: center;
  color: #3e3a39;
}

/* service section */
.service {
  margin-top: min(1vw, 10px);
  background-image: url(../../img/01_TOP/service-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50px;
}
.service__content {
  padding: min(6vw, 70px) min(4.5vw, 50px);
}
.service__list {
  display: flex;
  flex-direction: column;
  gap: min(4.5vw, 50px);
}
.service__item {
  width: min(100%, 1000px);
  margin: 0 auto;
}
.service__item-img {
  width: 100%;
  height: auto;
}
.service__item-img img {
  width: 100%;
  height: auto;
}

.service__sp {
  display: none;
}

.service__sp img {
  display: block;
  width: 100%;
  height: auto;
}

/* product-menu section */
.product-menu {
  margin-top: min(7vw, 80px);
}
.product-menu__title {
  width: min(20.83vw, 250px);
  margin: 0 auto;
  height: auto;
}
.product-menu__title img {
  width: 100%;
  height: auto;
}
.product-menu__text {
  font-size: clamp(0.95rem, 1.917vw, 1.4375rem);
  font-weight: 400;
  line-height: 2.15;
  letter-spacing: 0.05em;
  text-align: center;
  color: #3e3a39;
  margin-top: min(3.5vw, 40px);
}
.product-menu__list {
  display: flex;
  row-gap: min(3.5vw, 35px);
  column-gap: min(3vw, 30px);
  flex-wrap: wrap;
  margin-top: min(6vw, 70px);
}
.product-menu__item {
  width: calc(50% - min(1.5vw, 15px));
  margin: 0 auto;
}
.product-menu__item-text {
  font-size: clamp(1rem, 2vw, 1.5rem);
  padding-top: 1em;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.product-menu__item-img {
  width: 100%;
  height: auto;
}
.product-menu__item-img img {
  border-radius: 30px;
  overflow: hidden;
}

/* info section */
.info {
  margin-top: min(6vw, 70px);
  background-image: url(../../img/01_TOP/info-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50px;
}
.info__content {
  padding: min(7vw, 80px) 0 min(4.5vw, 50px);
}
.info__title {
  width: min(20.83vw, 250px);
  margin: 0 auto;
  height: auto;
}
.info__title img {
  width: 100%;
  height: auto;
}
.info__list {
  margin-top: min(4.5vw, 50px);
  display: flex;
  gap: min(2.5vw, 25px);
  justify-content: center;
}
.info__item:first-child {
  flex: 1.875;
}
.info__item:last-child {
  flex: 1;
}
.info__item-img {
  width: 100%;
  height: auto;
}
.info__map {
  margin-top: min(4.5vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: min(4.5vw, 50px);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.1em;
  text-align: center;
  flex-wrap: wrap;
}
.info__map a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.info__map .fa {
  margin-right: 0.35em;
}

/*--------------------------------
	TB用
----------------------------------- */
@media all and (max-width: 768px) {
  .mainvisual__text {
    width: 80%;
  }
}

/*--------------------------------
	SP用
----------------------------------- */
@media all and (max-width: 530px) {
  /* btn共通 */
  [class$='__btn'] {
    width: 100%;
    margin: min(8.14vw, 35px) auto 0;
    padding: 1.5em 0;
    font-size: min(3.91vw, 1.08rem);
    letter-spacing: 0;
    border-width: 1px;
  }

  [class$='__btn-icon'] {
    width: min(7.56vw, 40px);
  }

  /* mainvisual */
  .mainvisual__contents {
    aspect-ratio: 8/13; /* 400 × 650 の比率 */
    max-height: 660px; /* 高さの上限 */
  }
  .mainvisual__circle-text {
    width: 135vw;
    max-width: 550px;
  }
  /* mainvisual section */
  .mainvisual__img {
    width: 123vw;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
  }
  .mainvisual__text {
    width: 90%;
  }

  /* concept section */
  .concept {
    margin-top: min(37.21vw, 160px);
    padding: min(4.65vw, 20px) 0;
  }
  .concept__content {
    padding: 0;
  }
  .concept__deco {
    width: min(40.7vw, 175px);
  }
  .concept__deco--1 {
    top: max(-46.51vw, -200px);
    left: 5%;
  }
  .concept__deco--2 {
    top: max(-46.51vw, -200px);
    right: 5%;
  }
  .concept__deco--3 {
    display: none;
  }
  .concept__deco--4 {
    display: none;
  }

  .concept__text {
    font-size: min(3.02vw, 0.81rem);
    line-height: 2.5;
    letter-spacing: 0;
  }

  /* service section */
  .service {
    margin-top: min(2.33vw, 10px);
  }
  .service__list {
    display: none;
  }
  .service__sp {
    display: block;
  }
  .service__content {
    padding: min(7vw, 30px) 0;
  }

  /* product-menu section */
  .product-menu {
    margin-top: min(10.47vw, 45px);
  }
  .product-menu__title {
    width: min(41.86vw, 180px);
  }
  .product-menu__list {
    gap: min(5.81vw, 25px);
    margin-top: min(6.98vw, 30px);
  }
  .product-menu__item {
    width: 100%;
  }
  .product-menu__text {
    font-size: min(4.65vw, 1.25rem);
    line-height: 2;
    letter-spacing: 0;
    margin-top: min(4.65vw, 20px);
  }

  .product-menu__item-text {
    font-size: min(4.65vw, 1.25rem);
    padding-top: 0.5em;
  }
  /* info section */
  .info {
    margin-top: min(13.95vw, 60px);
  }
  .info__title {
    width: min(41.86vw, 180px);
  }
  .info__content {
    padding: min(11.63vw, 50px) 0 min(8.14vw, 35px);
  }
  .info__list {
    flex-direction: column;
    margin-top: min(9.3vw, 40px);
    gap: min(5.81vw, 25px);
  }
  .info__item:first-child {
    flex: none;
    width: 100%;
    margin: 0 auto;
  }
  .info__item:last-child {
    flex: none;
    width: 53%;
    margin: 0 auto;
  }
  .info__map {
    flex-direction: column;
    margin-top: min(8.14vw, 35px);
    gap: min(3.49vw, 15px);
    font-size: min(5.58vw, 1.5rem);
    letter-spacing: 0;
    line-height: 1.625;
  }
}
