@charset "utf-8";

:root {
    --ink: #171717;
    --muted: #666;
    --line: #eee;
    --indigoblue: #1a237e;
    --chip: #f6f6f6;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .06)
}

.container {
    /* width: min(1120px, 92vw); */
    margin-inline: auto;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 16px)
}

.row {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 16px);
    flex-wrap: wrap
}

.muted {
    color: var(--muted)
}


/*******************************************************
front-page.php #hero
*******************************************************/
.hero {
        position: relative;
    background: #000;
    color: #fff;
    display: flex;
    /* place-items: center; */
    height: 50vh;
    min-height: 400px;
    align-items: center;
    justify-content: flex-start;
}

.hero .hero-slider {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero .hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero .hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    object-position: center;

}

.hero .hero-slider .slide.is-active {
    opacity: 1
}

.hero__pagination {
    position: absolute;
    inset: auto 0 24px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3
}

.hero__dot {
    width: 8px;
    height: 8px;
    /* border-radius: 50%; */
    background: rgba(255, 255, 255, .5);
    border: none;
}

.hero__dot.is-active {
    background: #fff
}

.hero__center {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
max-width: 92%;
padding: 0 4%;
box-sizing: border-box;
    margin: 0 auto;
    max-width: 1080px;
    justify-content: end;
    text-align: right;
}

.hero__center {
    font-size: clamp(12px, 2vw, 18px);
}

.hero__center h2 {
    letter-spacing: 0.15em;
    line-height: 2em;
    font-size: clamp(20px, 3vw, 34px);
    font-family: "Shippori Mincho B1", serif;
    font-weight: 700;
}

.hero__center p {
    font-size: clamp(14px, 2vw, 18px);
    font-family: "Shippori Mincho B1", serif;
    font-weight: 400;
    text-align: right !important;
}


@media (min-width:1024px) {
    .hero {
        min-height: 250px;
    }
}



/*-----------元のやつ----------------*/
.top-company__box {
  display: grid;
  gap: 70px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1080px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.top-company__box .inner-right {
  width: 100%;
  aspect-ratio: 1.5/1;
}

.top-company__box .inner-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-company__box .inner-left p {
  line-height: 1.8em;
}


@media screen and (max-width:768px) {
  .top-company__box {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 16px;
  }
}



/*---------------------------*/
/* .top-company__box {
  display: flex;
  gap: 70px;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: space-between;
}

.top-company__box .inner-right {
  width: 100%;
  aspect-ratio: 1.5/1;
}

.top-company__box .inner-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-company__box .inner-left p {
  line-height: 1.8em;
}


@media screen and (max-width:768px) {
  .top-company__box {
    flex-direction: column;
    gap: 30px;
    padding: 0 16px;
  }
} */


/*******************************************************
front-page.php #about
*******************************************************/
.about {
    position: relative;
    overflow: hidden;

}

.about .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .15;
}

.about .veil {
    position: absolute;
    inset: auto 0 0 0;
    top: 18%;
    height: 56%;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(2px)
}

.about__inner {
    position: relative;
    z-index: 2
}

.about__h {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.4;
    color: var(--indigoblue);
    /* letter-spacing: 0.1em; */
}

.about__p {
    /* max-width: 80ch; */
    color: #333;
    letter-spacing: 0.05em;
    /* margin-left: 20ch; */
    line-height: 2em;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.about__side {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: .2em;
    color: #333;
    font-weight: 700
}

.about__layout {
    /* display:grid;
     grid-template-columns:auto 1fr;
     gap:26px; */
    
}

@media (max-width:900px) {
    .about__layout {
        display: grid;
        gap: 0;
    }

    .about__side {
        writing-mode: horizontal-tb;
        transform: none;
        order: -1
    }

    .about__p {
        max-width: 100%;
        margin-left: 0;
        padding: 0 16px;
        box-sizing: border-box;
    }
}


/* ==============================
 ABOUT 
 ============================== */
.topAbout {
  padding: 100px 0;
}

.topAbout__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.topAbout__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  object-fit: cover;
}

.topAbout__kicker {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--main);
}

.topAbout__title {
  margin: 0 0 40px 0;
  font-size: 36px;
}

.topAbout__description {
  margin-bottom: 70px;
}

.topAbout__text {
  margin: 0 0 18px;
  line-height: 1.9;
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  .topAbout__media {
    order: 2;
  }

  .topAbout__body {
    order: 1;
  }
}


/* ===== Services ===== */
.topServices {
  padding: 40px 0 70px;
}

.serviceGroup {
  margin-top: 50px;
}

.serviceGroup__head {
  text-align: center;
  margin-bottom: 18px;
}

.serviceGroup__title {
  margin: 0 0 20px 0;
    font-size: 22px;
    position: relative;
    display: inline-block;
    padding-bottom: 7px;
}

.serviceGroup__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px; /* 文字との距離 */
  transform: translateX(-50%);
  width: 3em;   /* ← 3文字分 */
  height: 3px;
  background: linear-gradient(90deg, var(--cta) ,var(--accent));
}


.serviceGroup__en {
  margin: 6px auto;
  font-size: 12px;
  letter-spacing: .12em;
  opacity: .75;
  text-align: center !important;
}

.serviceGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.serviceGroup [id] {
    scroll-margin-top: 80px;
}

.serviceCard {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.serviceCard__img {
  position: relative;
  z-index: 3;
}

.serviceCard__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.serviceCard__label {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  position: absolute;
  z-index: 5;
  bottom: 10px;
  right: 10px;
}

.serviceCard__renovation {
  background-color: var(--cta-hover);
}

.serviceCard:hover .serviceCard__label {
  opacity: 0.7;
  transition: transform 0.5s ease;
}

@media screen and (max-width:768px) {
  .serviceGroup__title {
    font-size: 18px;
  }

  .topAbout__title {
    font-size: 26px;
  }

.serviceGrid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }  
}

@media screen and (max-width:425px) {
  .serviceGrid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}


/* ===== HERO ========================= */
.top-news {
  padding: 0 0 60px 0;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  /* bottom: 0; */
  /* width: 100%; */
  /* right: 0; */
  /* max-width: 500px; */
  /* max-width: 500px; */
  /* border-bottom: 3px solid #228cc1; */
}

.top-news__head {
  /* display: flex; */
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.top-news__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.4;
}

.top-news__archive {
  text-decoration: none;
  /* display: none; */
}

.top-news__list {
  margin: 0;
  padding: 0;
  list-style: none;
  /* border-top: 0.5px solid #ddd; */
}

.top-news__item {
  border-bottom: 0.5px solid #ddd;
}

.top-news__link {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
}

.top-news__date {
  flex: 0 0 110px;
  color: #228cc1;
}

.top-news__text {
  flex: 1;
}

@media (max-width: 767px) {
  .top-news__link {
    flex-direction: column;
    gap: 8px;
  }

  .top-news__date {
    flex: none;
  }
}



/* ===== Responsive ===== */
@media (max-width: 900px) {
  .topHero__grid {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .topHero__catch,
  .topHero__cta {
    position: absolute;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .topHero__catch {
    bottom: 120px;
  }

  .topHero__cta {
    bottom: 60px;
  }

  .topAbout__inner {
    grid-template-columns: 1fr;
  }

}



/* =============== =============== 
top-introduction
 =============== =============== */
.top-introduction {
  padding: 80px 0;
}

.top-introduction__text {
  line-height: 2em;
  color: #666;
}


/* =============== =============== 
top-guidance
 =============== =============== */
section#top-guidance {
    /* display: flex; */
    /* justify-content: space-between; */
    /* width: 100%; */
    padding: 80px 0;
}

.top-guidance__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.top-guidance__inner {
    width: 100%;
    display: block;
    position: relative;
    padding: 30px;
}

.top-guidance__bg {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    /* opacity: 0.4; */
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
}

.top-guidance .sab-box {
    position: relative;
    z-index: 5;
}

.top-guidance__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.top-guidance__link {
  display: block;
  width: 100%;
  padding: 10px 15px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #228cc1;
  text-align: center!important;
  background-color: rgba(255,255,255,.7);
}

.top-guidance__content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: column;
}


@media screen and (max-width:992px) {
  .top-guidance__box {
    grid-template-columns: 1fr;
  }

  #top-guidance .border02 {
    max-width:400px;
  }
}

/* =============== =============== 
top-contact
 =============== =============== */
.contact-link {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.contact-link-title {
    border-right: 1px solid #fbfbfb;
    border-bottom: none;
    width: 46%;
}

.contact-link-main {
    width: 46%;
}

.contact-link-sabmain {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.contact-link-tel {
    font-size: 40px;
    margin-right: 30px;
    align-items: center;
}

.contact-link-date {
    text-align: left;
}


.contact-link-button {
    padding: 10px 0;
    background: white;
    width: 80%;
    color: #228cc1;
    font-weight: bold;
    text-decoration: none;
}

.contact-link-button:hover {
    background: linear-gradient(30deg, #cbcd44 0%, #228cc1 100%);
    color: white;
    border: 1px solid #fbfbfb;
    
}

/* =============== =============== 
top-works
 =============== =============== */
.top-works {
  padding: 80px 20px;
  background: #fff;
}

.top-works__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.top-works__heading {
  margin-bottom: 40px;
}

.top-works__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
  font-weight: 700;
  color: #222;
}

.top-works__lead {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: #555;
}

.top-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.top-works-card {
  height: 100%;
}

.top-works-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.top-works-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* border-radius: 16px; */
  background: #f3f3f3;
  margin-bottom: 18px;
}

.top-works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.top-works-card__link:hover .top-works-card__image img {
  transform: scale(1.05);
}

.top-works-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-works-card__place {
  display: none;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 88px;
  padding: 6px 14px;
  margin: 0;
  border: 1px solid #222;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
}

.top-works-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
}

.top-works-card__date {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  display: none;
}

.top-works__button {
  margin-top: 48px;
  text-align: center;
}

.top-works__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 28px;
  border: 1px solid #222;
  border-radius: 999px;
  background: #fff;
  color: #222;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
}

.top-works__more:hover {
  background: #222;
  color: #fff;
}

.top-works__empty {
  margin: 0;
  color: #666;
}

.top-works-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 88px;
  padding: 6px 14px;
  margin: 0;
  border: 1px solid #222;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
}

@media (max-width: 991px) {
  .top-works {
    padding: 64px 20px;
  }

  .top-works__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .top-works-card__title {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .top-works {
    padding: 56px 16px;
  }

  .top-works__heading {
    margin-bottom: 28px;
  }

  .top-works__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .top-works__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .top-works-card__image {
    border-radius: 14px;
  }

  .top-works-card__title {
    font-size: 18px;
  }

  .top-works__button {
    margin-top: 36px;
  }

  .top-works__more {
    width: 100%;
    max-width: 320px;
  }
}