@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;
}

.kiriya-badge {
    display: inline-block;
    padding: .55rem 1rem;
    border: 2px solid #fff;
    border-radius: 999px;
    font-weight: 800;
    text-align: center;
    letter-spacing: .3em;
    background: rgba(0, 0, 0, .25);
    font-size: 1.8rem;
}

.kiriya-badge:last-child {
    margin-right: -0.3em;
}

.side-menu {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: #fff;
    z-index: 2
}

.side-menu ul {
    display: grid;
    gap: 8px
}

.side-menu a {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .45rem .7rem;
    border-radius: 999px;
    font-size: 13px
}

@media (min-width:1024px) {
    .side-menu {
        display: block
    }

    .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 ========================= */
.topHero {
  position: relative;
  overflow: hidden;
}

.topHero__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: min(520px, 62vh);
}

.topHero__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* キャッチ */
.topHero__catch {
  position: absolute;
  left: 24px;
  bottom: 110px;
  background: rgba(255, 255, 255, .85);
  padding: 14px 16px;
  border-radius: 10px;
  max-width: 520px;
}

.topHero__catchText {
  margin: 0;
  font-weight: 700;
}

/* 右CTA */
.topHero__cta {
  position: absolute;
  right: 24px;
  bottom: 150px;
  width: min(320px, 42vw);
  background-color: var(--cta);
  padding: 14px 16px;
  border-radius: 12px;
}

.topHero__ctaTitle {
  margin: 0 0 10px;
  font-weight: 700;
}

.topHero__ctaBtn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: #f28c28;
  /* 仮 */
}


/* ===== News ===== */
.topNews {
  padding: 60px 0;
  background: #F4F8FB;
}

.topNews__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.topNews__title {
  margin: 0;
  font-size: 22px;
}

.topNews__more {
  text-decoration: none;
}

.newsList {
  list-style: none;
  padding: 0;
  margin: 0;
  /* border: 1px solid #e6e6e6;
  border-radius: 14px; */
  background: #fff;
}

.newsItem {
  display: grid;
  grid-template-columns: 110px 90px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #eee;
}

.newsItem:first-child {
  border-top: none;
}

.newsItem__date {
  font-variant-numeric: tabular-nums;
}

.newsItem__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.newsItem__link {
  text-decoration: none;
  color: inherit;
}

@media screen and (max-width:768px) {
  .newsItem {
    grid-template-columns: 85px 1fr;
    grid-template-areas:
      "time tag"
      "link link";
    gap: 10px;
  }

  .newsItem__date {
    grid-area: time;
  }

  .newsItem__tag {
    grid-area: tag;
    width: 120px;
  }

  .newsItem__link {
    grid-area: link;
  }

}



/* ===== 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;
  }

}
