@charset "UTF-8";

:root {
  --Maincolor: #346DB0;
  --Subcolor: #C6B796;
  --Txtcolor: #3A3A3A;
}

#main {
  position: relative;
}

#main .main-hero {
  width: 80%;
  margin-left: 20%;
  position: relative;
  z-index: 1;
}

#main .main-txt {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
}

#main .main-txt h2 {
  display: block;
  margin-bottom: 40px;
  font-size: 10vw;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  letter-spacing: .05em;
  line-height: .8em;
}

#main .main-txt h2 span {
  font-size: 7vw;
}

#main .main-txt p {
  font-size: 16px;
  line-height: 2em;
}

@media screen and (max-width: 768px) {
  #main {
    padding-top: 90px;
  }

  #main .main-hero {
    width: 100%;
    margin-left: 0;
  }

  #main .main-txt {
    display: block;
    position: inherit;
    top: inherit;
    left: inherit;
    transform: translateY(-17%);
    text-align: left;
    z-index: 2;
  }

  #main .main-txt h2 {
    display: block;
    margin-bottom: 40px;
    padding-left: 10%;
    font-size: 20vw;
    line-height: .7em;
  }

  #main .main-txt h2 span {
    font-size: 14vw;
  }

  #main .main-txt p {
    font-size: 15px;
    line-height: 2em;
    padding-left: 10%;
  }
}


/*-------------------
concept section layout
--------------------*/

#concept .builder {
  position: relative;
}

#concept .concept-block {
  padding: 200px 0 500px;
}

#concept .concept-block .concept-title {
  position: relative;
  color: var(--Subcolor);
  font-size: 18px;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  display: inline-block;
  margin-bottom: 80px;
}

#concept .concept-block .concept-title::after {
  content: "";
  width: 106.5px;
  aspect-ratio: 106.5 / 12.5;
  background-image: url(../img/top/concept_title_fig.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

#concept .concept-block p {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 16px;
  line-height: 3em;
}

#concept .concept-block p.read {
  text-align: center;
  font-size: 20px;
  line-height: 2.6em;
  margin-bottom: 50px;
}

.concept-fig01 {
  position: absolute;
  top: 280px;
  left: -10%;
  width: 30%;
  max-width: 419px;
}

.concept .inner {
  position: absolute;
  right: 0;
  top: 150px;
  z-index: 2;
}

.concept-fig01 .concept-fig01-01 {
  position: relative;
  z-index: 2;
  transform: translate3d(0, 0, 0);
}

.concept-fig01 .concept-fig01-02 {
  position: relative;
  z-index: 1;
  transform: translate3d(70px, 10px, 0);
}

.concept-fig01 .concept-fig01-03 {
  position: relative;
  z-index: 3;
  transform: translate3d(170px, -300px, 0);
}

.concept-fig02 {
  position: absolute;
  top: 1050px;
  left: 80px;
  z-index: 1;
  width: 154px;
}

.concept-fig03 {
  position: absolute;
  top: 150px;
  right: 0;
  width: 208px;
}

.concept-fig03 .concept-fig03-01 {
  position: relative;
  z-index: 1;
  transform: translate3d(0, 0, 0);
}

.concept-fig03 .concept-fig03-02 {
  position: relative;
  z-index: 2;
  transform: translate3d(91px, -42px, 0);
}

.concept-fig04 {
  position: absolute;
  top: 580px;
  right: -100px;
  width: 226px;
}

.concept-fig05 {
  position: absolute;
  top: 1000px;
  right: -150px;
  width: 510px;
}

.concept-fig05 .concept-fig05-01 {
  position: relative;
  z-index: 2;
  transform: translate3d(-44px, 104px, 0);
}

.concept-fig05 .concept-fig05-02 {
  position: relative;
  z-index: 3;
  transform: translate3d(-262px, 146px, 0);
}

.concept-fig05 .concept-fig05-03 {
  position: relative;
  z-index: 1;
  transform: translate3d(90px, -205px, 0);
}

.concept-fig01-01,
.concept-fig01-02,
.concept-fig01-03,
.concept-fig02,
.concept-fig03-01,
.concept-fig03-02,
.concept-fig04,
.concept-fig05-01,
.concept-fig05-02,
.concept-fig05-03 {
  will-change: transform;
  transform: translateZ(0);
}

@media screen and (max-width: 768px) {

  #concept .concept-block {
    padding: 0 0 40px;
  }

  #concept .concept-block .concept-title {
    font-size: 14px;
    margin-bottom: 60px;
  }

  #concept .concept-block .concept-title::after {
    width: 90px;
  }

  #concept .concept-block p {
    font-size: 14px;
  }

  #concept .concept-block p.read {
    font-size: 18px;
  }

  .concept-group01 {
    position: relative;
  }

  .concept-group02 {
    position: relative;
    text-align: right;
    padding-bottom: 20px;
  }

  .concept-fig01 {
    display: block;
    position: inherit;
    top: auto;
    left: auto;
    padding-top: 50px;
    width: 65%;
    margin-left: -10%;
  }

  .concept-fig01 .concept-fig01-02 {
    transform: translate3d(43%, -44%, 0);
    width: 80%;
    max-width: 319px;
  }

  .concept-fig01 .concept-fig01-03 {
    transform: translate3d(118%, -242%, 0);
    width: 40%;
    max-width: 153px;
  }

  .concept-fig02 {
    position: absolute;
    top: 50px;
    left: 5px;
    width: 25%;
  }

  .concept-fig03 {
    position: absolute;
    top: 20px;
    right: 0;
    width: 35%;
  }

  .concept-fig03 .concept-fig03-01 {
    width: 80%;
    max-width: 154px;
  }

  .concept-fig03 .concept-fig03-02 {
    transform: translate3d(-36%, 64%, 0);
    width: 35%;
    max-width: 82px;
  }

  .concept-fig04 {
    display: inline-block;
    position: inherit;
    top: auto;
    right: auto;
    margin-right: -6%;
    margin-bottom: 30px;
    width: 40%;
  }

  .concept-fig05 {
    display: inline-block;
    position: inherit;
    top: auto;
    right: auto;
    width: 90%;
  }

  .concept-fig05 .concept-fig05-01 {
    transform: translate3d(-24%, -10%, 0);
    width: 25%;
  }

  .concept-fig05 .concept-fig05-02 {
    transform: translate3d(-405%, 0, 0);
    width: 10%;
  }

  .concept-fig05 .concept-fig05-03 {
    transform: translate3d(-50%, -45%, 0);
    width: 50%;
    max-width: 380px;
  }
}

@media screen and (max-width: 480px) {}


/*-------------------
about section layout
--------------------*/
#about {
  position: relative;
  background-color: var(--Maincolor);
  overflow: hidden;
}

#about::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/common/noise.png");
  background-repeat: repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}

#about::before {
  content: "Mortar carving";
  position: absolute;
  right: -720px;
  top: 0;
  transform: rotate(90deg);
  transform-origin: left top;
  font-size: 130px;
  line-height: 1em;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  white-space: nowrap;
  color: var(--Maincolor);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

#about .layout {
  padding: 100px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#about .layout> :nth-child(1) {
  flex-basis: 40%;
  position: relative;
}

#about .layout> :nth-child(1) .about-illust {
  max-width: 175px;
  position: absolute;
  left: -15%;
  bottom: -100px;
}

#about .layout> :nth-child(2) {
  flex-basis: 50%;
}

#about .layout> :nth-child(2) .about-title {
  display: block;
  color: var(--Subcolor);
  font-size: 18px;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  text-align: left;
  margin-bottom: 25px;
}

#about .layout> :nth-child(2) p {
  font-size: 16px;
  line-height: 3em;
  color: #fff;
}

#about .layout> :nth-child(2) p.read {
  font-size: 30px;
  line-height: 1em;
  margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
  #about::before {
    right: -390px;
    top: 0;
    font-size: 70px;
  }

  #about .layout {
    padding: 60px 0;
    display: block;
    r;
  }

  #about .layout> :nth-child(1) {
    padding: 0 8% 30px;
  }

  #about .layout> :nth-child(1) .about-illust {
    left: 0;
    bottom: 10px;
    width: 30%;
    max-width: 175px;
  }

  #about .layout> :nth-child(2) {
    padding: 0 8%;
  }

  #about .layout> :nth-child(2) .about-title {
    font-size: 14px;
    margin-bottom: 20px;
  }

  #about .layout> :nth-child(2) p {
    font-size: 14px;
    line-height: 2.4em;
  }

  #about .layout> :nth-child(2) p.read {
    font-size: 24px;
    margin-bottom: 30px;
  }

}


/* =========================
   Scenes section layout
   ========================= */

#scenes {
  position: relative;
  overflow: hidden;
}

#scenes .scenes-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#scenes .scenes-bgLayer {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  opacity: 0;
  transition: opacity 1.2s ease;
}

#scenes .scenes-bgLayer.is-active {
  opacity: 1;
}

#scenes .builder {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

#scenes .scenes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

#scenes .scenes-header> :nth-child(1) {
  flex-basis: 40%;
  text-align: left;
}

#scenes .scenes-header> :nth-child(1) h2 {
  display: block;
  color: var(--Maincolor);
  font-size: 18px;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  text-align: left;
  margin-bottom: 20px;
}

#scenes .scenes-header> :nth-child(1) p {
  font-size: 16px;
  line-height: 2.4em;
}

#scenes .scenes-header> :nth-child(1) p.read {
  font-size: 30px;
  line-height: 1em;
  margin-bottom: 30px;
}

/*

scenes swiper tab setting

*/
#scenes .scenes-tabs {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

#scenes .scenes-tabs .tab {
  --dur: 9200ms;
  --track: rgba(40, 60, 80, .25);
  --ink: rgba(40, 60, 80, .85);
  --dot: rgba(40, 60, 80, .85);

  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;

  display: grid;
  justify-items: center;
  gap: 8px;

  opacity: .55;
  transition: opacity 200ms ease;
  position: relative;
}

#scenes .scenes-tabs .tab:hover {
  opacity: .85;
}

#scenes .scenes-tabs .tab.is-active {
  opacity: 1;
}

#scenes .scenes-tabs .tab:nth-of-type(1):after {
  content: "";
  width: 50px;
  height: 2px;
  background-color: var(--Subcolor);
  position: absolute;
  top: 10px;
  right: -50px;
}

#scenes .scenes-tabs .tab:nth-of-type(2):after {
  content: "";
  width: 60px;
  height: 2px;
  background-color: var(--Subcolor);
  position: absolute;
  top: 10px;
  right: -60px;
}

#scenes .scenes-tabs .tab:nth-of-type(3):after {
  content: "";
  width: 80px;
  height: 2px;
  background-color: var(--Subcolor);
  position: absolute;
  top: 10px;
  right: -70px;
}

#scenes .scenes-tabs .label {
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: var(--Maincolor);
}

#scenes .scenes-tabs .dot {
  width: 22px;
  height: 22px;
  position: relative;
  display: grid;
  place-items: center;
}

#scenes .scenes-tabs .ring {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}

#scenes .scenes-tabs .ring circle {
  fill: none;
  stroke-width: 2;
  r: 9;
}

#scenes .scenes-tabs .ringTrack {
  stroke: var(--track);
}

#scenes .scenes-tabs .ringProg {
  stroke: var(--Maincolor);
  stroke-linecap: round;
  stroke-dasharray: 56.55;
  stroke-dashoffset: 56.55;
  opacity: 0;
}

#scenes .scenes-tabs .dotCore {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--Maincolor);
}

#scenes .scenes-tabs .tab.is-active .ringProg {
  opacity: 1;
  animation: ringProgress var(--dur) linear infinite;
}

@keyframes ringProgress {
  from {
    stroke-dashoffset: 56.55;
  }

  to {
    stroke-dashoffset: 0;
  }
}



#scenes .swiper-slide .layout {
  display: flex;
  gap: 40px;
  align-items: flex-end;
}

#scenes .swiper-slide .layout> :nth-child(2) {
  display: flex;
  flex: 0 0 calc(25% - 40px);
  min-width: 0;
  align-items: center;
  align-self: center;
  position: relative;
  z-index: 2;
  order: 1;
}

#scenes .swiper-slide .layout> :nth-child(2) .txt {
  display: block;
  text-align: left;
  white-space: nowrap;
  font-size: 16px;
  color: var(--Maincolor);
}

#scenes .swiper-slide .layout> :nth-child(2) .txt span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 80px;
  letter-spacing: .05em;
}

#scenes .swiper-slide .layout> :nth-child(1) {
  flex: 0 0 50%;
  position: relative;
  z-index: 1;
  order: 2;
}

#scenes .swiper-slide .layout .item .photo {
  display: flex;
  justify-content: space-between;
}

#scenes .swiper-slide .layout .item .photo span {
  flex-basis: 49%;
}

#scenes .swiper-slide .layout> :nth-child(3) {
  flex: 0 0 calc(25% - 40px);
  position: relative;
  z-index: 1;
  order: 3;
}

#scenes .swiper-slide .layout> :nth-child(3) p {
  font-size: 14px;
  line-height: 2em;
}

#scenes .swiper-slide .layout> :nth-child(3) p.read {
  font-size: 18px;
  line-height: 2em;
  margin-bottom: 30px;
}


@media screen and (max-width: 768px) {

  #scenes .builder {
    position: relative;
    z-index: 1;
    padding: 60px 0;
  }

  #scenes .scenes-header {
    display: block;
    align-items: center;
    margin-bottom: 60px;
  }

  #scenes .scenes-header> :nth-child(1) {
    margin-bottom: 40px;
  }

  #scenes .scenes-header> :nth-child(1) h2 {
    font-size: 14px;
    margin-bottom: 20px;
  }

  #scenes .scenes-header> :nth-child(1) p {
    font-size: 14px;
  }

  #scenes .scenes-header> :nth-child(1) p.read {
    font-size: 24px;
    margin-bottom: 30px;
  }

  /*

scenes swiper tab setting

*/
  #scenes .scenes-tabs {
    display: flex;
    gap: 30px;
    justify-content: center;
  }

  #scenes .scenes-tabs .tab:nth-of-type(1):after {
    width: 30px;
    right: -30px;
  }

  #scenes .scenes-tabs .tab:nth-of-type(2):after {
    width: 40px;
    right: -40px;
  }

  #scenes .scenes-tabs .tab:nth-of-type(3):after {
    width: 60px;
    right: -50px;
  }

  #scenes .swiper-slide .layout {
    display: block;
    gap: inherit;
    align-items: inherit;
  }

  #scenes .swiper-slide .layout> :nth-child(2) {
    display: block;
    padding: 30px 0;
  }

  #scenes .swiper-slide .layout> :nth-child(2) .txt {
    font-size: 16px;
  }

  #scenes .swiper-slide .layout> :nth-child(2) .txt span {
    font-size: 76px;
  }

  #scenes .swiper-slide .layout> :nth-child(1) {
    display: block;
  }

  #scenes .swiper-slide .layout> :nth-child(3) {
    display: block;
  }

  #scenes .swiper-slide .layout> :nth-child(3) p {
    font-size: 14px;
  }

  #scenes .swiper-slide .layout> :nth-child(3) p.read {
    font-size: 18px;
    margin-bottom: 30px;
  }

}




/* =========================
   Other section layout
   ========================= */

#other .other-wrap {
  display: flex;
  justify-content: space-between;
  padding: 120px 0;
}

#other .other-wrap> :nth-child(1) {
  flex-basis: 25%;
  position: relative;
  z-index: 2;
}

#other .other-wrap> :nth-child(1) h2 {
  display: block;
  text-align: left;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  font-size: 18px;
  color: var(--Maincolor);
  margin-bottom: 30px;
}

#other .other-wrap> :nth-child(1) p {
  font-size: 16px;
  line-height: 2.4em;
}

#other .other-wrap> :nth-child(1) p.read {
  font-size: 24px;
  line-height: 1.5em;
  margin-bottom: 50px;
}


#other .other-wrap> :nth-child(2) {
  flex-basis: 65%;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/*
other swiper setting
*/
#other .other-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

#other .other-arrow {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

#other .other-arrow img {
  width: 54px;
  height: auto;
  display: block;
}

#other .other-tabs {
  margin: 0 auto;
  padding-top: 60px;
  display: flex;
  gap: 16px;
  align-items: center;
}

#other .other-tabs .tab {
  --dur: 5200ms;
  /* JSで上書きする（delay+speed） */
  --track: rgba(160, 140, 100, 0.55);
  --ink: rgba(40, 80, 140, 0.95);

  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 200ms ease;
}

#other .other-tabs .tab.is-active {
  opacity: 1;
}

#other .other-tabs .dot {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
}

/* リング */
#other .other-tabs .ring {
  width: 42px;
  height: 42px;
  transform: rotate(-90deg);
}

#other .other-tabs .ring circle {
  fill: none;
  stroke-width: 2;
  r: 9;
}

#other .other-tabs .ringTrack {
  stroke: var(--track);
}

#other .other-tabs .num {
  position: absolute;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(40, 60, 80, 0.9);
}

#other .other-tabs .tab {
  --p: 0;
}

#other .other-tabs .ringProg {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 56.55;
  stroke-dashoffset: 56.55;
  opacity: 0;
}

#other .other-tabs .tab.is-active .ringProg {
  opacity: 1;
}



@keyframes otherRingProgress {
  from {
    stroke-dashoffset: 56.55;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.swiper-other {
  position: relative;
}

.swiper-other .other-prev {
  position: absolute;
  top: 50%;
  left: -25px;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-other .other-next {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  z-index: 10;
}

.js-swiper-other .layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  padding: 60px;

  --r: 30px;

  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  -webkit-mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;

  mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  mask-size: 51% 51%;
  mask-repeat: no-repeat;
}

.js-swiper-other .layout> :nth-child(1) {
  flex-basis: 40%;
}

.js-swiper-other .layout> :nth-child(2) {
  flex-basis: 52%;
}

.js-swiper-other .layout> :nth-child(2) .num {
  display: block;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  line-height: 1em;
  font-style: italic;
  color: var(--Maincolor);
  margin-bottom: 15px;
}

.js-swiper-other .layout> :nth-child(2) .title {
  display: block;
  text-align: center;
  font-size: 18px;
  line-height: 1em;
  color: var(--Maincolor);
  margin-bottom: 15px;
}

.js-swiper-other .layout> :nth-child(2) p {
  font-size: 14px;
  line-height: 1.8em;
}

.js-swiper-other .layout> :nth-child(2) p.areatxt {
  text-align: center;
}

.js-swiper-other .layout> :nth-child(2) .area {
  display: inline-block;
  margin-top: 25px;
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  font-size: 12px;
  padding: 5px 15px;
}



@media screen and (max-width: 768px) {

  #other .other-wrap {
    display: block;
    padding: 60px 0;
  }

  #other .other-wrap> :nth-child(1) {
    display: block;
    margin-bottom: 40px;
  }

  #other .other-wrap> :nth-child(1) h2 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  #other .other-wrap> :nth-child(1) p {
    font-size: 14px;
  }

  #other .other-wrap> :nth-child(1) p.read {
    font-size: 24px;
    margin-bottom: 30px;
  }


  #other .other-wrap> :nth-child(2) {
    display: block;
  }

  /*
other swiper setting
*/
  #other .other-nav {
    display: none;
  }

  #other .other-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  #other .other-arrow img {
    width: 42px;
    height: auto;
    display: block;
  }

  .swiper-other {
    position: relative;
  }

  .swiper-other .other-prev {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    z-index: 10;
  }

  .swiper-other .other-next {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    z-index: 10;
  }

  .js-swiper-other .layout {
    display: block;
    padding: 50px;
  }

  .js-swiper-other .layout> :nth-child(1) {
    flex-basis: 40%;
  }

  .js-swiper-other .layout> :nth-child(2) {
    flex-basis: 50%;
  }

  .js-swiper-other .layout> :nth-child(2) .num {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .js-swiper-other .layout> :nth-child(2) .title {
    font-size: 14px;
    line-height: 1.8em;
    margin-bottom: 15px;
  }

  .js-swiper-other .layout> :nth-child(2) p {
    font-size: 12px;
    line-height: 1.8em;
  }

  .js-swiper-other .layout> :nth-child(2) p.areatxt {
    text-align: center;
  }

  .js-swiper-other .layout> :nth-child(2) .area {
    font-size: 12px;
  }

}


/* =========================
   Case section layout
   ========================= */

#case {
  /* 調整用 */
  --left: clamp(260px, 34vw, 420px);
  --gap: clamp(40px, 6vw, 100px);
  --blue: #2f66b3;
  --paper: #EDE8DD;

  --container: 1180px;
  --builderW: min(90vw, var(--container));
  --gutter: calc((100vw - var(--builderW)) / 2);
  --edge: calc(var(--gutter) + var(--left));

  background: linear-gradient(90deg,
      var(--blue) 0,
      var(--blue) var(--edge),
      var(--paper) var(--edge),
      var(--paper) 100%);

  padding: 80px 0;
}

#case .case-layout {
  display: grid;
  grid-template-columns: var(--left) 1fr;
  column-gap: var(--gap);
  align-items: start;
}

#case .title-layout {
  display: block;
  color: #fff;
  position: relative;
  align-self: stretch;
}

#case .title-layout h2 {
  display: block;
  text-align: left;
  margin: 0 0 10px;
  font-family: "Cabin", sans-serif;
  font-size: 18px;
  letter-spacing: .1em;
}

#case .title-layout .title {
  margin: 0 0 28px;
  font-size: 24px;
}

#case .title-layout p {
  margin: 0;
  font-size: 16px;
  line-height: 2.4em;
}

#case .case-illust {
  position: absolute;
  left: 0;
  bottom: 124px;
  width: 247px;
  aspect-ratio: 493 / 423;
}

#case .content-layout {
  display: grid;
  row-gap: 60px;
}

#case .case-col {
  display: grid;
  grid-template-columns: 270px 1fr;
  /* fallback */
  grid-template-columns: clamp(180px, 40%, 270px) 1fr;
  column-gap: clamp(20px, 3vw, 35px);
  align-items: center;
  text-align: left;
}

#case .case-col img {
  width: 100%;
  height: auto;
  display: block;
}

#case .case-title {
  margin: 0 0 15px;
  font-size: 20px;
  color: var(--Maincolor);
}

#case .address {
  display: inline-block;
  margin: 0 0 40px;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  background: #fff;
}

#case .case-read {
  margin: 0 0 15px;
  padding: 0 0 15px;
  border-bottom: 1px solid #ccc;
  font-size: 18px;
  line-height: 1.5em;
}

#case .case-detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.8em;
}

@media screen and (max-width: 768px) {
  #case {
    background: none;
    padding: 0 0;
  }

  #case .builder {
    width: 100%;
    margin: 0;
  }

  #case .case-layout {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  #case .title-layout {
    display: block;
    color: #fff;
    background: var(--Maincolor);
    position: relative;
    padding: 50px 10%;
  }

  #case .title-layout h2 {
    font-size: 14px;
    margin-bottom: 5px;
  }

  #case .title-layout .title {
    margin: 0 0 20px;
    font-size: 24px;
  }

  #case .title-layout p {
    font-size: 14px;
  }

  #case .case-illust {
    position: absolute;
    top: 50px;
    right: 10%;
    left: inherit;
    bottom: inherit;
    width: 120px;
  }

  #case .content-layout {
    display: block;
    row-gap: 0;
    background: #EDE8DD;
    padding: 50px 15% 1px;
  }

  #case .case-col {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    align-items: start;
    margin-bottom: 60px;
  }

  #case .case-title {
    margin: 30px 0 15px;
    font-size: 18px;
  }

  #case .address {
    margin: 0 0 30px;
  }

  #case .case-read {
    margin: 0 0 15px;
    padding: 0 0 15px;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    line-height: 1.5em;
  }

  #case .case-detail {
    margin: 0;
    font-size: 12px;
  }
}

/* =========================
   Insta section layout
   ========================= */
#insta {
  padding: 80px 0;
}

#insta .insta-marquee {
  overflow: hidden;
}

#insta .insta-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: insta-marquee 30s linear infinite;
  will-change: transform;
}

#insta .insta-item {
  flex: 0 0 auto;
}

#insta img {
  display: block;
  height: 270px;
  width: auto;
}

@keyframes insta-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.insta_link {
  padding: 60px 0 40px;
}

.insta_link a {
  position: relative;
  z-index: 10;
  display: inline-block;
  padding: 5px;
  font-size: 15px;
  opacity: 1;
}

.insta_link a:hover {
  color: #000;
  opacity: 0.7;
}

.insta_link a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: -1;

  --r: 15px;

  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  -webkit-mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;

  mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  mask-size: 51% 51%;
  mask-repeat: no-repeat;
}


.insta_link a span {
  display: block;
  border: 1px solid var(--Subcolor);
  padding: 15px;
  min-width: 240px;
  position: relative;
}

.insta_link a span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("../img/common/insta.svg") no-repeat center / contain;
}

@media screen and (max-width: 768px) {
  #insta {
    padding: 60px 0;
  }

  #insta .insta-track {
    gap: 12px;
  }

  #insta img {
    display: block;
    height: 120px;
    width: auto;
  }

  .insta_link {
    padding: 40px 0 0px;
  }

  .insta_link a span {
    min-width: 220px;
  }

}

/* =========================
  Strength section
========================= */

#strength {
  position: relative;
  min-height: 100vh;
  padding: 60px 0 80px;
  overflow: hidden;
  color: #fff;
}

#strength::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/top/strength_bg.jpg") center/cover no-repeat;
  background-attachment: fixed;
  filter: saturate(1.05);
  z-index: -2;
}

#strength::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: -1;
}

#strength h2 {
  text-align: center;
  margin: 0 0 30px;
}

#strength h2 img {
  width: min(220px, 60vw);
  height: auto;
}

#strength>p {
  text-align: center;
  margin: 0 0 40px;
  line-height: 2.4em;
  font-size: 16px;
  margin: 0 0 80px;
}

/* 横に流れるレール */
.strength-wrap {
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -webkit-overflow-scrolling: touch;
  padding: 56px 10vw 15px;
  margin-top: -56px;
}

.strength-wrap::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* 横に流れるレール */
#strength .strength-container {
  display: flex;
  align-items: stretch;
  gap: 80px;
  width: max-content;
  transform: translateX(0);
  will-change: transform;
  padding: 0 10vw;
}

/* 透明なカード */
#strength .strength-item {
  position: relative;
  width: min(520px, 78vw);
  padding: 44px 54px;
  color: var(--Txtcolor);
}

#strength .strength-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .8);
  z-index: 0;

  --r: 20px;

  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  -webkit-mask-size: 50% 50%;
  -webkit-mask-repeat: no-repeat;

  mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  mask-size: 51% 51%;
  mask-repeat: no-repeat;
}

#strength .strength-item>* {
  position: relative;
  z-index: 1;
}

#strength .strength-item .badge {
  position: absolute;
  top: -34px;
  left: -34px;

  width: 114px;
  height: 114px;

  display: grid;
  place-items: center;

  background: url("../img/top/strength_batch.png") no-repeat center / 114px;

  color: #fff;
  font-size: 48px;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .01m;
  line-height: 1em;
  font-style: italic;
}

#strength .strength-item .badge span {
  transform: translateY(-7px);
}

/* セクションに入った間だけ縦スクロールを止める“固定状態” */
#strength.is-pinned {
  position: sticky;
  top: 0;
}

#strength .strength-item h3 {
  position: relative;
  display: block;
  padding: 30px 0;
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.5em;
  border-bottom: 1px solid var(--Subcolor);
}

#strength .strength-item h3::before,
#strength .strength-item h3::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 6px;
  height: 6px;
  background: var(--Subcolor);
  border-radius: 50%;
}

#strength .strength-item h3::before {
  left: 0;
}

#strength .strength-item h3::after {
  right: 0;
}

#strength .strength-item p {
  font-size: 16px;
  line-height: 1.8em;
  margin: 0 0 30px;
}

#strength .strength-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#strength .strength-item ul li {
  position: relative;
  padding-left: 28px;
  text-align: left;
  margin: 0 0 10px;
}

/* チェックアイコン */
#strength .strength-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 19px;
  height: 19px;
  background: url("../img/top/check.png") no-repeat center / 19px 19px;
}



@media screen and (max-width: 768px) {
  #strength {
    position: relative;
    min-height: auto;
    padding: 40px 0 80px;
    overflow: hidden;
  }

  #strength h2 {
    text-align: center;
    margin: 0 0 30px;
  }

  #strength h2 img {
    width: min(160px, 60vw);
    height: auto;
  }

  #strength>p {
    text-align: center;
    margin: 0 0 60px;
    padding: 0 10%;
    font-size: 14px;
  }

  #strength .strength-container {
    display: flex;
    align-items: stretch;
    gap: 60px;
    width: max-content;
    transform: none !important;
    will-change: auto;
    overflow: visible;
    padding: 0;
  }

  /* 透明なカード */
  #strength .strength-item {
    position: relative;
    width: min(520px, 78vw);
    padding: 20px 30px;
    overflow: visible;
  }

  #strength .strength-item .badge {
    position: absolute;
    top: -34px;
    left: -34px;
    width: 85px;
    height: 85px;
    background: url("../img/top/strength_batch.png") no-repeat center / 85px;
    font-size: 36px;
  }

  #strength .strength-item .badge span {
    transform: translateY(-4px);
  }


  #strength .strength-item h3 {
    position: relative;
    display: block;
    padding: 20px 0;
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.5em;
    color: var(--Maincolor);
  }

  #strength .strength-item p {
    font-size: 12px;
    line-height: 1.8em;
    margin: 0 0 30px;
  }

  #strength .strength-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #strength .strength-item ul li {
    font-size: 12px;
    position: relative;
    padding-left: 24px;
    text-align: left;
    margin: 0 0 10px;
  }

  /* チェックアイコン */
  #strength .strength-item ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: url("../img/top/check.png") no-repeat center / 16px 16px;
  }

}





/* =========================
   Company section
   ========================= */

#company {
  padding: 120px 0;
}

#company h2 {
  display: block;
  text-align: left;
  margin: 0 0 8px;
  font-size: 18px;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  color: var(--Maincolor);
}

/*
   Message block
*/
#company .message-layout {
  display: grid;
  grid-template-columns: 1fr clamp(180px, 40%, 465px);
  column-gap: 80px;
  align-items: start;
  margin: 0 0 90px;
}

#company .message-layout .item:first-child p {
  margin: 0;
  font-size: 16px;
  line-height: 2em;
  max-width: 560px;
}

#company .message-layout .item:first-child p.title {
  margin: 0 0 30px;
  font-size: 24px;
}

#company .message-layout .item:last-child {
  position: relative;
  justify-self: end;
  width: 100%;
  text-align: left;
  font-size: 14px;
  padding-top: 115px;
}

#company .message-layout .item:last-child .img {
  width: 100%;
  height: auto;
  display: block;
}

#company .message-layout .message-illust {
  position: absolute;
  right: -50px;
  bottom: -14px;
  width: 162.5px;
  aspect-ratio: 325 / 200;
  background: url("../img/top/message_fig.png") no-repeat center / contain;
  pointer-events: none;
}

/*
   Company block
*/
#company .company-layout {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 24px;
}

#company .company-header {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 40px;
  align-items: start;
  margin: 0 0 10px;
}

#company .company-header .item:last-child p {
  margin: 0;
  font-size: 16px;
  line-height: 2em;
  padding-top: 35px;
  max-width: 560px;
}

#company .company-layout .item:first-child p.title {
  margin: 0 0 30px;
  font-size: 24px;
}


/* 会社概要テーブル */
#company .company-layout table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 2em;
}

#company .company-layout th,
#company .company-layout td {
  vertical-align: top;
  padding: 12px;
}

#company .company-layout th {
  width: 150px;
  position: relative;
  padding-left: 22px;
}

#company .company-layout th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--Subcolor);
}

#company .company-layout tr:first-child th::before {
  top: 13px;
}

#company .company-layout td {
  border-left: 1px solid var(--Subcolor);
  padding-left: 38px;
}

#company .company-layout tr:first-child th,
#company .company-layout tr:first-child td {
  padding-top: 0;
}

#company .company-layout tr:last-child th,
#company .company-layout tr:last-child td {
  padding-bottom: 0;
}


@media screen and (max-width: 768px) {
  #company {
    padding: 60px 0;
  }

  #company h2 {
    margin: 0 0 6px;
    font-size: 14px;
  }

  /*
   Message block
*/
  #company .message-layout {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 20px;
    margin: 0 0 90px;
    padding: 0 5%;
  }

  #company .message-layout .item:first-child p {
    margin: 0;
    font-size: 14px;
    line-height: 2em;
  }

  #company .message-layout .item:first-child p.title {
    margin: 0 0 20px;
    font-size: 24px;
  }

  #company .message-layout .item:last-child {
    position: relative;
    justify-self: end;
    width: 100%;
    text-align: left;
    font-size: 14px;
    padding-top: 60px;
  }

  #company .message-layout .message-illust {
    right: -20px;
    bottom: 10px;
    width: 103px;
    aspect-ratio: 325 / 200;
  }

  /*
   Company block
*/
  #company .company-layout {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  #company .company-header {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    margin: 0 0 30px;
  }

  #company .company-header .item:last-child p {
    margin: 0;
    font-size: 14px;
    line-height: 2em;
    padding-top: 0px;
  }

  #company .company-layout {
    padding: 0 5%;
  }

  #company .company-layout .item:first-child p.title {
    margin: 0 0 30px;
    font-size: 24px;
  }


  /* 会社概要テーブル */
  #company .company-layout table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 2em;
  }

  #company .company-layout th,
  #company .company-layout td {
    vertical-align: top;
    padding: 12px;
  }

  #company .company-layout th {
    width: 120px;
    position: relative;
    padding-left: 22px;
  }

  #company .company-layout th::before {
    content: "";
    position: absolute;
    left: 0;
    top: 23px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--Subcolor);
  }

  #company .company-layout tr:first-child th::before {
    top: 11px;
  }

  #company .company-layout td {
    padding-left: 30px;
  }

  #company .company-layout tr:first-child th,
  #company .company-layout tr:first-child td {
    padding-top: 0;
  }

  #company .company-layout tr:last-child th,
  #company .company-layout tr:last-child td {
    padding-bottom: 0;
  }
}


/* =========================
   Flow Section
========================= */

#flow {
  padding: 120px 0 300px;
  background-image: url(../img/top/flow_bg.jpg);
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  z-index: 0;
}

#flow .flow-header {
  text-align: center;
  margin-bottom: 60px;
}

#flow .flow-header .flow-title {
  position: relative;
  color: var(--Maincolor);
  font-size: 18px;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  display: inline-block;
  margin-bottom: 40px;
}

#flow .flow-header .flow-title::after {
  content: "";
  width: 106.5px;
  aspect-ratio: 106.5 / 12.5;
  background-image: url(../img/top/flow_title_fig.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

#flow .flow-header p {
  text-align: center;
  font-size: 24px;
}

#flow .flow-card-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  /* Firefox */
  -webkit-overflow-scrolling: touch;
}

#flow .flow-card-wrapper::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.flow-card {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 70px;
}

.flow-card .item {
  position: relative;
  width: 200px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
}

.flow-card .item::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 110px;
  width: 240px;
  height: 24px;
  background: url(../img/top/flow_arrow.svg) no-repeat center / contain;
  pointer-events: none;
}

.flow-card .item:first-child:before {
  background: url(../img/top/flow_arrow_first.svg) no-repeat center / contain;
}

.flow-card .item:last-child:before {
  display: none;
}

.flow-card .no {
  display: block;
  margin-bottom: 40px;
  font-family: "Cabin", sans-serif;
  font-size: 16px;
  color: var(--Maincolor);
}

.flow-card .item img {
  width: 72px;
  height: auto;
  margin: 0 auto 40px;
  display: block;
}

.flow-card p {
  font-size: 14px;
  line-height: 1.5em;
  text-align: center;
}

.flow-card p.title {
  color: var(--Maincolor);
  font-size: 16px;
  text-align: center;
  margin-bottom: 12px;
}


@media screen and (max-width: 768px) {

  #flow {
    padding: 60px 0 180px;
  }

  #flow .flow-header {
    text-align: center;
    margin-bottom: 40px;
  }

  #flow .flow-header .flow-title {
    font-size: 14px;
    margin-bottom: 30px;
  }

  #flow .flow-header .flow-title::after {
    width: 90px;
    bottom: -18px;
  }

  #flow .flow-header p {
    text-align: center;
    font-size: 24px;
  }

}


/* =========================
   FAQ section
========================= */

#faq {
  position: relative;
  z-index: 10;
  margin-top: -100px;
  padding: 0px 0 80px;
  background: var(--Maincolor);
}

/* 曲線レイヤー */
#faq::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 140px;
  background: url(../img/top/faq_curve_top.svg) no-repeat center top;
  background-size: 100% 100%;
  z-index: 0;
}

#faq>* {
  position: relative;
  z-index: 1;
}

#faq .faq-header .faq-title {
  position: relative;
  color: var(--Subcolor);
  font-size: 18px;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  display: inline-block;
  margin-bottom: 50px;
}

#faq .faq-header .faq-title::after {
  content: "";
  width: 106.5px;
  aspect-ratio: 106.5 / 12.5;
  background-image: url(../img/top/faq_title_fig.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

#faq .faq-header p {
  text-align: center;
  font-size: 24px;
  color: #fff;
}

#faq .swiper {
  width: 100%;
  margin: 0;
  padding: 50px 0 70px;
  /* 下にドット用余白 */
  overflow: visible;
}

#faq .swiper-wrapper {
  align-items: stretch;
}

#faq .swiper-slide {
  height: auto;
}

/* カード本体 */
#faq .layout {
  height: 100%;
  background: #fff;
  padding: 60px;
  text-align: center;
  display: block;

  --r: 15px;

  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  -webkit-mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;

  mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  mask-size: 51% 51%;
  mask-repeat: no-repeat;
}

#faq .layout>* {
  position: relative;
  z-index: 1;
}

#faq .layout p {
  width: 100%;
  display: block;
  font-size: 14px;
  line-height: 2em;
}


#faq .layout p.title {
  text-align: center;
  font-size: 16px;
  line-height: 2em;
  color: var(--Maincolor);
  margin: 0 0 20px;
}

/* ドット（Swiperが生成） */
#faq .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
}

#faq .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  opacity: 1;
  margin: 0 6px;
}

#faq .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #fff;
  opacity: 1;
  transition: all .3s ease;
}

#faq .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.4);
  /* 通常色 */
  transform: scale(1.2);
}


@media screen and (max-width: 768px) {
  #faq {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding: 0px 0 40px;
    background: var(--Maincolor);
  }

  /* 曲線レイヤー */
  #faq::before {
    content: "";
    position: absolute;
    top: -6vw;
    left: 0;
    width: 100%;
    aspect-ratio: 1440 / 140;
    height: auto;
    background: url(../img/top/faq_curve_top.svg) no-repeat center top;
    background-size: 100% 100%;
    z-index: 0;
  }

  #faq>* {
    position: relative;
    z-index: 1;
  }

  #faq .faq-header .faq-title {
    font-size: 14px;
    margin-bottom: 40px;
    padding-top: 40px;
  }

  #faq .faq-header .faq-title::after {
    width: 90px;
    bottom: -15px;
  }

  #faq .faq-header p {
    text-align: center;
    font-size: 24px;
    color: #fff;
  }

  #faq .swiper {
    width: 100%;
    margin: 0;
    padding: 40px 0 60px;
    /* 下にドット用余白 */
    overflow: visible;
  }


  /* カード本体 */
  #faq .layout {
    height: 100%;
    background: #fff;
    padding: 30px;
  }

  #faq .layout>* {
    position: relative;
    z-index: 1;
  }

  #faq .layout p {
    width: 100%;
    display: block;
    font-size: 14px;
    line-height: 2em;
    padding: 10px 0;
  }


  #faq .layout p.title {
    text-align: center;
    font-size: 16px;
    line-height: 2em;
    color: var(--Maincolor);
    margin: 0;
  }

}


/* =========================
   Contact section
========================= */
#contact {
  padding: 140px 0;
}

#contact .contct-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

/* ===== Left column ===== */
#contact .contact-header {
  margin-bottom: 32px;
}

#contact .contact-header .contact-title {
  display: block;
  text-align: left;
  margin: 0 0 8px;
  font-size: 18px;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  color: var(--Maincolor);
}

#contact .contact-header p {
  margin: 0;
  font-size: 16px;
  line-height: 2em;
  max-width: 560px;
}

#contact .contact-header .read {
  margin: 0 0 30px;
  font-size: 24px;
}


#contact .contact-tel,
#contact .contact-line {
  position: relative;
  z-index: 1;
  background-color: #EDE8DD;
  padding: 40px 20px;
  margin-top: 40px;
  text-align: center;
}

#contact .contact-tel .tel-title {
  display: inline-block;
  background-image: url(../img/top/contact_tel_icon.png);
  background-repeat: no-repeat;
  background-size: 50px;
  background-position: left center;
  font-size: 20px;
  line-height: 2.6em;
  padding-left: 60px;
}

#contact .contact-line .line-title {
  display: inline-block;
  background-image: url(../img/top/contact_line_icon.png);
  background-repeat: no-repeat;
  background-size: 50px;
  background-position: left center;
  font-size: 20px;
  line-height: 2.6em;
  padding-left: 60px;
}

#contact .contact-tel a {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 32px;
  text-decoration: none;
}

#contact .contact-tel a span {
  font-size: 24px;
}

#contact .contact-line p {
  text-align: center;
  margin: 0 0 30px;
}

/*btn*/
#contact .contact-line a {
  position: relative;
  z-index: 10;
  display: inline-block;
  padding: 5px;
  font-size: 15px;
  color: #fff;
  opacity: 1;
}

#contact .contact-line a:hover {
  color: #fff;
  opacity: 0.7;
}

#contact .contact-line a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--Maincolor);
  z-index: -1;

  --r: 15px;

  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  -webkit-mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;

  mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  mask-size: 51% 51%;
  mask-repeat: no-repeat;
}

#contact .contact-line a span {
  display: block;
  border: 1px solid var(--Subcolor);
  padding: 15px;
  min-width: 240px;
  position: relative;
}

#contact .contact-line a span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 13.5px;
  height: 4.5px;
  background: url("../img/top/arrow_btn.svg") no-repeat center / contain;
}



/* ===== Right column ===== */
#contact .contact-form {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 70px 50px;
}

#contact .form-illust {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 157px;
  aspect-ratio: 314 / 303;
  background: url("../img/top/contact_formfig.png") no-repeat center / contain;
  pointer-events: none;
}


#contact .mail-title {
  display: inline-block;
  background-image: url(../img/top/contact_contact_icon.png);
  background-repeat: no-repeat;
  background-size: 50px;
  background-position: left center;
  font-size: 20px;
  line-height: 2.6em;
  padding-left: 60px;
}

#contact .contact-form p.read {
  padding: 20px 0;
  font-size: 16px;
  line-height: 1.8em;
  text-align: center;
}

/* ===== Form fields ===== */
#contact .contact-form form>div {
  margin-top: 25px;
  text-align: left;
}

#contact .contact-form label {
  display: inline-block;
  font-size: 15px;
  margin-bottom: 8px;
}

#contact .contact-form .labels {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

#contact .contact-form span.must {
  display: inline-block;
  background-color: var(--Maincolor);
  color: #fff;
  margin-left: 8px;
  padding: 4px 8px 5px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1em;
  vertical-align: middle;
  vertical-align: 2px;
}

#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact textarea {
  width: 100%;
  border: 1px solid var(--Subcolor);
  background-color: #FAFAFA;
  border-radius: 5px;
  padding: 12px 12px;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

#contact textarea {
  resize: vertical;
  min-height: 140px;
}

#contact .contact-form form>div.kinds-list {
  padding-top: 6px;
}

#contact .contact-form form>div.kinds-list label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}

#contact .contact-form form>div.kinds-list br {
  display: none;
}

#contact .contact-form form>div.kinds-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

#contact .contact-form form>div.kinds-list>p {
  grid-column: 1 / -1;
}

#contact input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

#contact .contact-form form .privacy {
  display: block;
  text-align: center;
  font-size: 14px;
  line-height: 1.8em;
  padding-top: 40px;
}

#contact .contact-form form .policy_action {
  cursor: pointer;
  text-decoration: underline;
  transition: opacity .3s ease;
}

#contact .contact-form form .policy_action:hover {
  color: var(--Maincolor);
}

input::placeholder,
textarea::placeholder {
  color: #A9A9A9;
}


/* ===== Submit button ===== */
#contact .form-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

#contact .btn-cut {
  position: relative;
  z-index: 10;
  display: inline-block;
  padding: 5px;
  font-size: 15px;
  color: #fff;
  opacity: 1;
  transition: opacity .3s ease;
  /* button reset */
  background: transparent;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

/* hover */
#contact .btn-cut:hover {
  color: #fff;
  opacity: 0.7;
}

#contact .btn-cut::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--Maincolor);
  z-index: -1;
  transition: background .3s ease;
  --r: 15px;

  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  -webkit-mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;

  mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 var(--r)) top left,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 var(--r)) top right,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 var(--r)) bottom left,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 var(--r)) bottom right;

  mask-size: 51% 51%;
  mask-repeat: no-repeat;
}

#contact .btn-cut>span {
  display: block;
  border: 1px solid var(--Subcolor);
  padding: 15px;
  min-width: 240px;
  position: relative;
  text-align: center;
}

#contact .btn-cut>span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 13.5px;
  height: 4.5px;
  background: url("../img/top/arrow_btn.svg") no-repeat center / contain;
}

.pagetop {
  width: 30%;
  max-width: 40px;
  margin: 0 auto 100px;
  cursor: pointer;
  transition: all 300ms 0s ease;
}

.pagetop:hover {
  transform: translateY(-5px);
}




@media screen and (max-width: 768px) {
  #contact {
    padding: 60px 0;
  }

  #contact .contct-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ===== Left column ===== */
  #contact .contact-header {
    margin-bottom: 32px;
  }

  #contact .contact-header .contact-title {
    margin: 0 0 8px;
    font-size: 14px;
  }

  #contact .contact-header p {
    margin: 0;
    font-size: 14px;
    line-height: 2.4em;
  }

  #contact .contact-header .read {
    margin: 0 0 30px;
    font-size: 24px;
    line-height: 1.5em;
  }


  #contact .contact-tel,
  #contact .contact-line {
    padding: 30px 20px;
  }

  #contact .contact-tel .tel-title {
    font-size: 18px;
    line-height: 2.8em;
  }

  #contact .contact-line .line-title {
    font-size: 18px;
    line-height: 2.8em;
  }

  /*btn*/
  #contact .contact-line a {
    font-size: 14px;
  }

  #contact .contact-line a span {
    padding: 15px;
    min-width: 220px;
  }



  /* ===== Right column ===== */
  #contact .contact-form {
    padding: 30px 20px 60px;
  }

  #contact .form-illust {
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 120px;
    aspect-ratio: 314 / 303;
    pointer-events: none;
  }


  #contact .mail-title {
    font-size: 18px;
    line-height: 2.8em;
  }

  #contact .contact-form p.read {
    padding: 20px 0 10px;
    font-size: 14px;
    line-height: 1.8em;
    text-align: center;
  }

  /* ===== Form fields ===== */
  #contact .contact-form form>div {
    margin-top: 25px;
    text-align: left;
  }

  #contact .contact-form form>div.kinds-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px 18px;
  }

  #contact .contact-form form .privacy {
    font-size: 12px;
    line-height: 1.8em;
    padding-top: 30px;
  }



  /* ===== Submit button ===== */
  #contact .form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }

  #contact .btn-cut {
    font-size: 14px;
  }

  #contact .btn-cut>span {
    min-width: 220px;
  }

  .pagetop {
    margin: 60px auto 40px;
  }

}


/* =========================
   policy section
========================= */

#policy {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  height: 100vh;
  max-width: 50%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s ease;
}

#policy.is-active {
  transform: translateX(0);
}

#policy .policy-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 18px;
  font-family: "Cabin", sans-serif;
  letter-spacing: .1em;
  color: var(--Maincolor);
  cursor: pointer;
  text-decoration: underline;
}

#policy .wrapper {
  margin: 60px 10px 0;
  padding: 0 50px 80px;
  overflow-y: scroll;
  flex: 1;
}

#policy .wrapper p {
  font-size: 14px;
  line-height: 2em;
  margin-bottom: 10px;
}

#policy .wrapper p.title {
  font-size: 24px;
  margin-bottom: 20px;
}

#policy .wrapper p.sub {
  font-size: 18px;
  padding-top: 20px;
}


@media screen and (max-width: 768px) {
  #policy {
    z-index: 999;
    height: 100vh;
    max-width: 100%;
  }

  #policy .wrapper {
    margin: 60px 10px 0;
    padding: 0 30px 80px;
    overflow-y: scroll;
    flex: 1;
  }

  #policy .wrapper p {
    font-size: 12px;
    line-height: 2em;
    margin-bottom: 10px;
  }

  #policy .wrapper p.title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  #policy .wrapper p.sub {
    font-size: 16px;
    padding-top: 20px;
  }

}