@charset "utf-8";

:root {
  --width: 640px;
  --duration: .5s;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ddd;
  background-image: radial-gradient(at 50% 30%, #f6f6f6 0%, #ddd 70%);
  background-repeat: no-repeat;
  background-size: 200%;
  background-position: center;
}

img {
  vertical-align: bottom;
}

input, button {
  line-height: 1;
}

/* helper */

.h-container {
  max-width: var(--width);
  padding: 1rem;
  box-sizing: border-box;
}

.h-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.h-grid {
  display: grid;
}

.h-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.h-gap-s {
  gap: 1rem;
}

.h-gap-m {
  gap: 2rem;
}

.h-gap-l {
  gap: 3rem;
}

.h-gap-xl {
  gap: 4rem;
}

.h-mask {
  overflow: hidden;
}

.h-text-center {
  text-align: center;
}

/* layout */

.header {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #eee;
  border-bottom: solid 1px #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1) inset;
}

.header__title {
  font-size: 5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, .5);
  text-shadow: 1px 1px #fff;
}

.section {
  color: rgba(0, 0, 0, .35);
  text-shadow: 1px 1px #fff;
  line-height: 1.7;
}

.section+.section {
  margin-top: 1.5rem;
}

.section__title {
  font-weight: 600;
  font-size: 1.5rem;
}

/* module: swiper */

.swiper__body {
  aspect-ratio: 47 / 31;
  overflow: hidden;
}

.swiper__foot {
  display: flex;
  gap: 1rem;
}

.swiper__imgWrap {
  transition-duration: var(--duration);
}

.swiper__img {
  max-width: 100%;
  height: auto;
}

.swiper__btn {
  transition-duration: var(--duration);
}

.swiper__btn:hover {
  cursor: pointer;
}

.swiper__btn:disabled {
  cursor: default;
}

.swiper-x .swiper__imgWrap {
  display: flex;
}

.swiper-x .swiper__foot {
  margin-top: 1rem;
}

.swiper-x .swiper__btn {
  padding: .7rem 1rem;
  font-size: 1rem;
  color: #777;
  border: none;
  transition-duration: .3s;
}

.swiper-x .swiper__btn:hover {
  cursor: pointer;
  color: #fff;
  background-color: #ccc;
}

.swiper-x .swiper__btn:disabled {
  color: #fff;
  background-color: orange;
  cursor: default;
}

/* swiper-y */

.swiper-y {
  position: relative;
}

.swiper-y .swiper__foot {
  margin-top: 1rem;
}

.swiper-y .swiper__btn {
  padding: .7rem 1rem;
  font-size: 1rem;
  color: #777;
  border: none;
  transition-duration: .3s;
}

.swiper-y .swiper__btn:hover {
  cursor: pointer;
  color: #fff;
  background-color: #ccc;
}

.swiper-y .swiper__btn:disabled {
  color: #fff;
  background-color: orange;
  cursor: default;
}

/* swiper-rotate */

.swiper-rotate {
  position: relative;
}

.swiper-rotate .swiper__imgWrap {
  height: 928px;
  transform-origin: 50% 100%;
}

.swiper-rotate .swiper__foot {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  justify-content: center;
}

.swiper-rotate .swiper__imgWrap {
  position: relative;
}

.swiper-rotate .swiper__img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 50% 928px;
}

.swiper-rotate .swiper__img:nth-child(1) {
  transform: rotate(0deg);
}

.swiper-rotate .swiper__img:nth-child(2) {
  transform: rotate(60deg);
}

.swiper-rotate .swiper__img:nth-child(3) {
  transform: rotate(120deg);
}

.swiper-rotate .swiper__img:nth-child(4) {
  transform: rotate(180deg);
}

.swiper-rotate .swiper__img:nth-child(5) {
  transform: rotate(240deg);
}

.swiper-rotate .swiper__img:nth-child(6) {
  transform: rotate(300deg);
}

.swiper-rotate .swiper__btn {
  width: 2rem;
  height: 2rem;
  border: solid 1px #fff;
  border-radius: 5px;
  text-indent: -9999px;
  background-color: transparent;
}

.swiper-rotate .swiper__btn:disabled {
  background-color: rgba(255, 255, 255, .5);
}

/* module: button */

.btnGroup {
  display: flex;
}

.btnGroup-center {
  justify-content: center;
}

.btnGroup .btn {
  border-radius: 0;
}

.btnGroup .btn:not(:first-child):not(:last-child) {
  border-left-color: rgba(255, 255, 255, .5);
  border-right-color: rgba(255, 255, 255, .5);
}

.btnGroup .btn:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.btnGroup .btn:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-left-color: rgba(255, 255, 255, .5);
}

.btnGroup .btn:not(:last-child) {
  margin-right: -1px;
}

.btn {
  font-size: 1rem;
  padding: .5rem 1rem;
  color: #fff;
  background-color: #a48f6e;
  border: 1px solid #a48f6e;
  border-radius: 4px;
  transition-duration: .3s;
}

.btn:hover:not([disabled]) {
  background-color: #000;
  border: 1px solid #000;
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}