@charset 'utf-8';

/*----------------------------------------
common
----------------------------------------*/


/*----------------------------------------
hero
----------------------------------------*/
.hero {
  margin: 0 auto;
  height: calc(100vh - 80px);
}

.hero__inner {
  position: relative;
  height: 100%;
  container-type: inline-size;
}

.hero__grid{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

.hero__catch{
  align-self: center;
}

.hero__lead{
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.6;
}

.hero__price{
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: var(--title);
  
}

.hero__sub{
  margin-top: 3rem;
  color: #D1D1D1;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.1rem;
}

.hero__tagline{
  color: #D1D1D1;
  line-height: 1.25;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.3rem;
}

.hero__tagline b{
  color: var(--accent);
  font-weight: 700;
}

.hero__title {
  display: inline-block;
  position: absolute;
  bottom: 0;
  width: 100%;
  color: var(--title);
  font-family: "Orbitron", sans-serif;
  font-size: 7cqw;
  font-weight: 500;
  letter-spacing: 0.4rem;
  text-align: center;
}

.js-text {
  visibility: hidden;
}

.hero__visual {
  width: 100%;
}

.hero__visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
}

@media screen and (max-width: 900px) {
  .hero {
    height: 50vh;
  }

  .hero__lead{
    font-size: 6cqw;
    line-height: 1.4;
  }

  .hero__price{
    margin-top: 1rem;
    font-size: 2.5cqw;
  }

  .hero__title {
    font-size: 6cqw;
  }

  .hero__visual img {
    height: 30vh;
    object-position: top right;
  }
}

@media screen and (max-width: 580px) {
  .hero__lead{
    font-size: 7cqw;
    line-height: 1.5;
  }

  .hero__price{
    font-size: 3.5cqw;
  }

  .hero__title {
    font-size: 5cqw;
    font-weight: 700;
    letter-spacing: 0.35rem;
  }

  .hero__visual img {
    height: 20vh;
  }
}

/*----------------------------------------
Philosophy
----------------------------------------*/
.home-section__soft {
  margin-top: 5rem;
}

.philo {
  margin-top: 4rem;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  line-height: 2;
  letter-spacing: 0.1rem;
}

@media screen and (max-width: 900px) {
  .philo {
    font-size: 2.5cqw;
  }
}

@media screen and (max-width: 580px) {
  .philo {
    font-size: 3.5cqw;
  }
}



/*----------------------------------------
for whom
----------------------------------------*/
.for-whom__panel {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  /* outline: 1px solid red; */
}

.for-whom__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.for-whom__colTitle {
  font-size: 1.25rem;
  text-align: center;
  color: #C6A86D;
}

.for-whom__list {
  position: relative;
  margin: 3rem auto 0;
  padding-left: 1.5rem;
  list-style: none;
  width: fit-content;
  box-sizing: border-box;
}

.for-whom__item {
  position: relative;
}

.for-whom__item:nth-of-type(n + 2) {
  margin-top: 2rem;
}

.for-whom__col--problem .for-whom__item::before {
  content: 'ー';
  position: absolute;
  left: -1.5rem;
}

.for-whom__col--value .for-whom__item::before {
  content: '✔️';
  position: absolute;
  left: -1.5rem;
}

@media screen and (max-width: 900px) {
  .for-whom__colTitle {
    font-size: 2.5cqw;
  }

  .for-whom__item {
    font-size: 1.75cqw;
    line-height: 1.5;
  }

  .for-whom__item:nth-of-type(n + 2) {
    margin-top: 1.5rem;
  }

  .for-whom__col--problem .for-whom__item::before {
    font-size: 1.75cqw;
    left: -1.25rem;
  }

  .for-whom__col--value .for-whom__item::before {
    font-size: 1.75cqw;
    left: -1.25rem;
  }
}

@media screen and (max-width: 580px) {
  .for-whom__panel {
    display: block;
  }

  .for-whom__colTitle {
    font-size: 5cqw;
  }

  .for-whom__list {
    margin: 1.5rem auto 0;
    padding-left: 2rem;
    width: 100%;
  }

  .for-whom__col--value {
    margin-top: 5rem;
  }

  .for-whom__item {
    font-size: 2.5cqw;
    line-height: 1.5;
  }

  .for-whom__item:nth-of-type(n + 2) {
    margin-top: 1rem;
  }

   .for-whom__col--problem .for-whom__item::before {
    font-size: 1.75cqw;
    top: 3px;
  }

  .for-whom__col--value .for-whom__item::before {
    font-size: 1.75cqw;
    top: 3px;
  }
}

/*----------------------------------------
offer
----------------------------------------*/
.offer__price__desc {
  margin-top: 4rem;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  line-height: 2;
  letter-spacing: 0.1rem;
}

.offer__cards {
  display:grid;
  grid-template-columns: repeat(3,1fr);
  margin-top: 3rem;
  gap: 2rem;
}

.offer-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fafafa;
}

.offer-card__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-size: 1.15rem;
  font-weight: 300;
  text-align: center;
}

.offer-card__icon {
  width: 100px;
  margin: 0 auto;
}

.offer-card__icon img {
  width: 100%;
}

.offer-card__title {
  margin-top: 2rem;
}

.offer-card__sub {
  margin-top: 1rem;
}

.offer__price {
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  line-height: 2;
}

.offer__priceText {
  margin-top: 7rem;
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  line-height: 2;
}

.offer__list {
  margin-top: 3rem;
}

.offer__list li {
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  line-height: 2;
}

@media (max-width: 900px) {
  .offer__cards__wrapper {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }

  .offer__cards {
    gap: 1rem;
  }

  .offer-card__icon {
    width: 80px;
  }

  .offer-card__title {
    margin-top: 1.5rem;
    font-size: 2cqw;
  }

  .offer-card__sub {
    margin-top: 0.5rem;
    font-size: 1.5cqw;
  }

  .offer__price {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    line-height: 2;
  }

  .offer__priceText {
    margin-top: 7rem;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    line-height: 2;
  }
}

@media screen and (max-width: 580px) {
  .offer__cards {
    grid-template-columns: repeat(2,1fr);
  }

  .offer-card__title {
    font-size: 3cqw;
  }

  .offer-card__sub {
    font-size: 2cqw;
  }

  .offer__price {
    font-size: 5cqw;
    font-weight: 400;
  }

  .offer__priceText {
    font-size: 3cqw;
  }

  .offer__list li {
    font-size: 4cqw;
    line-height: 1.75;
  }
}

/*----------------------------------------
work
----------------------------------------*/
.home-section__work {
  background: var(--bgColor);
}

.work {
  width: 70%;
  max-width: 900px;
  margin: 7rem auto 0;
}

.work:nth-of-type(n + 2) .work__thumb {
  margin-top: 11rem;
}

.work__thumb img {
  width: 100%;
}

.work__cap {
  margin-top: 3rem;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1rem;
}

@media screen and (max-width: 900px) {
  .work {
    width: 90%;
    margin-top: 4rem;
  }

  .work:nth-of-type(n + 2) .work__thumb {
    margin-top: 7rem;
  }

  .work__cap {
    margin-top: 1rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 580px) {
  .work {
    width: 95%;
  }

  .work:nth-of-type(n + 2) .work__thumb {
    margin-top: 4rem;
  }

  .work__cap {
    margin-top: 0.5rem;
    font-size: 2.5cqw;
  }
}

/*----------------------------------------
journal
----------------------------------------*/
.home-section__journal .offer__desc {
  margin-top: 4rem;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  line-height: 2;
  letter-spacing: 0.1rem;
}

.journal {
  margin-top: 4rem;
}

.journal__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.hover__all {
  position: relative;
}

.journal__item {
  width: 100%;
  margin-top: 20px;
  cursor: pointer;
}

.card__thumb {
  width: 100%;
  aspect-ratio: 4 / 2.5;
  overflow: hidden;
  position: relative;
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transition: all .3s ease-in-out;
}

.card:hover figure img {
  transform: scale(1.05);
  opacity: 0.8;
}

.card__body {
  margin-top: 0.5rem;
}

.news__ttl {
  margin-top: 0.5rem;
  color: var(--color1);
  font-size: 1rem;
  font-weight: 700;
}

.news__txt {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
}

.category {
  margin-top: 1rem;
}

.data-box {
  margin-top: 0.5rem;
}

.category,
.data-box {
  font-size: 0.8rem;
  font-weight: 600;
}

/* page__news__link */
.page__news__link {
  margin-top: 3rem;
  margin-left: auto;
  width: fit-content;
}


@media screen and (max-width: 900px) {
  .journal__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .card__thumb {
    height: 300px
  }
}

@media screen and (max-width: 580px) {
  .home-section__journal .offer__desc {
    font-size: 4cqw;
    line-height: 1.5;
  }

  .journal__list {
    grid-template-columns: 1fr; /* 1列 */
    justify-items: center;      /* 中央配置 */
    gap: 1rem;                  /* card間の余白 */
  }

  .card {
    width: 90%;
  }

  .card__thumb {
    height: 250px
  }

  .data-box {
    font-size: 0.9rem;
  }

  .news__ttl {
    font-size: 1.3rem;
  }

  .news__txt {
    font-size: 0.8rem;
  }

  .category,
  .data-box {
    font-size: 0.65rem;
  }

  .page__news__link {
    margin: 3rem auto 0;
  }
}

/*----------------------------------------
faq
----------------------------------------*/
.home-section__faq {
  width: 80%;
  margin: 0 auto;
}

.qa__list__box { 
  margin-top: 4rem;
}

.faq__item {
  background-image: repeating-linear-gradient(90deg, #bbbbbb, #bbbbbb 6px, transparent 6px, transparent 11px);
  background-position: left top;
  background-repeat: repeat-x;
  background-size: 100% 1px;
}

.faq__item:last-child {
  background-image: repeating-linear-gradient(90deg, #bbbbbb, #bbbbbb 6px, transparent 6px, transparent 11px), repeating-linear-gradient(90deg, #bbbbbb, #bbbbbb 6px, transparent 6px, transparent 11px);
  background-position: left top, left bottom;
  background-repeat: repeat-x, repeat-x;
  background-size: 100% 1px, 100% 1px;
}

.faq__button{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 2.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.faq__q {
  color: #333;
  font-weight: 300; 
  opacity: .6; letter-spacing: .04em; 
}

.faq__question {
  color: #333;
  font-weight: 300; 
}

.faq__button:focus-visible{
  outline: 2px solid #111;
  outline-offset: 6px;
}

/* ＋アイコン */
.faq__icon{
  position: relative;
  width: 20px;
  height: 20px;
  transition: transform .25s ease;
}
.faq__icon::before,
.faq__icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #111;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease, transform .25s ease;
}
.faq__icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ここが重要：開いた時は縦線を消して「−」にする（.is-open基準） */
.faq__item.is-open .faq__icon{
  transform: rotate(180deg);
}
.faq__item.is-open .faq__icon::after{
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

/* 回答：高さをJSで制御 */
.faq__desc{
  height: 0;
  overflow: hidden;
  transition: height .35s ease;
}

.faq__answer{
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
}

/* 高さが動くのと同時に文字も動かす */
.faq__item.is-open .faq__answer{
  opacity: .85;
  transform: translateY(0);
  color: #333;
  font-weight: 500;
}

@media screen and (max-width: 900px) {
  .home-section__faq {
    width: 100%;
  }

  .faq__item {
    padding: 2.5rem 2rem;
  }

  .faq__icon::before,
  .faq__icon::after{
    width: 16px;
    height: 1.5px;
  }
}

@media screen and (max-width: 580px) {
  .faq__item {
    padding: 2.5rem 1rem;
  }

  .faq__button{
    gap: 8px;
  }

  .faq__question {
    font-size: 3.5cqw;
    line-height: 1.5;
  }

  .faq__icon::before,
  .faq__icon::after{
    width: 13.5px;
    height: 1.5px;
  }

  .faq__answer{
    font-size: 3.5cqw;
    line-height: 1.5;
  }
}

/*----------------------------------------
price__line
----------------------------------------*/
.price__line__text {
  margin-top: 5rem;
  color: #535353;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

@media screen and (max-width: 900px) {
  .price__line__text {
    font-size: 3.5cqw;
  }
}

@media screen and (max-width: 580px) {
  .price__line__text {
    font-size: 5.5cqw;
    line-height: 1.75;
  }
}