.hero {
    position: relative;
    --hero-height: max(600px, calc(100vh - var(--header-height)));
    height: var(--hero-height);
    overflow: hidden;
    background: #0b4778;
}


.hero__overlay {
    position: relative;
    z-index: 2;
    height: var(--hero-height);
}


.hero__content {
  display: flex;
  height: var(--hero-height);
  align-items: center;
  width: 100%;
  padding-left: 4vw;
  justify-content: space-between;
  position: relative;
}

.hero__content::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0) 48%,  rgba(255, 255, 255, 0) 80%, rgba(5, 52, 90, 0) 100%);
  content: "";
  pointer-events: none;
}


.hero__content::before{
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url(../images/bk/hero-bk.png) no-repeat;
  background-size: cover;
  background-position: left;
  content: "";
  pointer-events: none;
  opacity: 0.06;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

.hero__copy-panel {
  padding: 62px 0 68px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.eyebrow {
  width: 100%;
  margin: 0 0 26px;
  color: #6b8598;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.hero__title {
  margin: 0;
  color: #0e2d49;
  font-family: var(--font-serif);
  font-size: min(5vw, 70px);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: 0.05em;
  width: 100%;
}

.hero__title span {
  color: #0c7cc3;
}

.hero__lead {
  margin: 28px 0 0;
  color: #39576d;
  font-size: 14px;
  width: 100%;
  font-weight: 500;
  line-height: 2;
}

/* ========================================
   SCROLL GUIDE
======================================== */

.hero {
    position: relative;
}
/* ========================================
   SCROLL GUIDE
======================================== */

.scroll-guide {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70px;
  height: 300px;
/*  background: rgba(255, 255, 255, 0.92);*/
  background: linear-gradient(285deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.75) 25%, rgba(255, 255, 255, 0) 65%,  rgba(255, 255, 255, 0) 80%, rgba(5, 52, 90, 0) 100%);
  clip-path: polygon(
      100% 0,
      100% 100%,
      0 100%
  );
  z-index: 10;
}


/* SCROLL文字 */
.scroll-guide__text {
  position: absolute;
  right: 10px;
  bottom: 120px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05rem;
  color: #123b5d;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}


/* 縱線 */
.scroll-guide__line {
  position: absolute;
  right: 18px;
  bottom: 28px;
  display: block;
  width: 1px;
  height: 75px;
  background: rgba(18, 59, 93, 0.25);
  overflow: hidden;
}


/* 動畫線 */
.scroll-guide__move {
    position: absolute;

    top: -40px;
    left: 0;

    width: 1px;
    height: 40px;

    background: #123b5d;

    animation: scroll-guide-animation 2s ease-in-out infinite;
}


@keyframes scroll-guide-animation {

    0% {
        top: -40px;
    }

    60% {
        top: 75px;
    }

    100% {
        top: 75px;
    }

}

/* ========================================
   SCROLL GUIDE ///
======================================== */


.hero__message {
  display: none;
/*
    align-self: flex-start;
    margin-top: 110px;
    margin-right: 38px;
    padding: 32px 34px;
    color: var(--color-white);
    background: rgba(4, 79, 132, 0.52);
    backdrop-filter: blur(5px);
*/
}
/*

.hero__message p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.08em;
}

.hero__message span {
    display: block;
    margin-top: 24px;
    font-size: 9px;
    letter-spacing: 0.28em;
    line-height: 1.8;
}
*/

.about-section {
    display: grid;
    min-height: 460px;
    grid-template-columns: 50% 50%;
}

.about-section__visual {
/*    overflow: hidden;*/
  background: url("../images/about-control.jpg") center;
  background-size: cover;
  
}


.about-section__content {
  display: flex;
  padding: 72px 5vw;
  align-items: center;
  gap: 60px;
  background: #fff;
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -8vw;
  justify-content: center;
}

.about-section__text {
    max-width: 680px;
}

.about-section__keywords {
    display: flex;
    padding-left: 28px;
    flex-direction: column;
    gap: 12px;
    border-left: 1px solid #9eb7c9;
}

.about-section__keywords span {
    color: #6f8b9f;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.services-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  border-top: 1px solid #edf2f5;
  border-bottom: 1px solid #e3ebf0;
  background: var(--color-navy);
}

.services-section__intro h2,
.services-section__intro p span{
  color: #fff;
}

.services-section__intro {
  padding: 70px;
}

.services-section__intro p span{
  display: inline-block;
}

.services-section__nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.services-nav-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  justify-content: center;
  align-items: center;
  border: 1px solid #9eb4c4;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}

.services-nav-btn:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.service-grid {
  overflow: hidden;
  position: relative;
  left: -30px;
}

.service-track {
    display: flex;
}

.service-card {
  position: relative;
  flex-shrink: 0;
  padding: 40px;
  background: rgba(255, 255, 255, 1);
  transition: opacity 0.3s ease;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.service-card.service-card--alt {
    background: #ffffff;
}

.service-card:hover {
    opacity: 0.8;
}

.service-card__link {
    display: block;
    color: inherit;
}

.service-card__number {
    display: block;
    margin-bottom: 8px;
    color: #c2d2de;
    font-family: Georgia, serif;
    font-size: 38px;
    font-style: italic;
    line-height: 1;
}

.service-card__image {
    overflow: hidden;
    aspect-ratio: 7 / 3;
    margin-bottom: 22px;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card h3 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    color: #173a57;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 100%;
}

.service-card__arrow {
    display: grid;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid #9eb4c4;
    border-radius: 50%;
    transition: 0.3s ease;
}

.service-card:hover .service-card__arrow {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateX(4px);
}

.service-card p {
    margin: 14px 0 0;
    color: #60788b;
    font-size: 11px;
    line-height: 1.9;
}

.strengths-section {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    background: #082a43;
}

.strengths-section__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 32, 52, 0.3), rgba(3, 32, 52, 0.84)),
        url('../images/strength-worker.jpg') center / cover no-repeat;
}

.strengths-section__inner {
  display: grid;
  position: relative;
  z-index: 2;
  min-height: 410px;
  padding-top: 72px;
  padding-bottom: 72px;
  grid-template-columns: 360px 1fr;
  align-items: center;
  gap: 5vw;
}

.strengths-grid {
  display: grid;
  column-gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strength-item {
  min-height: 180px;
  padding: 0 34px 34px;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  position: relative
}

.strength-item::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgb(147 240 255 / 15%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.strength-item > span {
  display: block;
  width: fit-content;
  color: rgba(255, 255, 255, 0.8);
  font-family: Georgia, serif;
  font-size: 38px;
  font-style: italic;
}


.strength-item h3 {
  margin: 0;
  font-style: italic;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.strength-item p {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 90%;
  line-height: 1.5;
}

.local-section {
  display: grid;
  grid-template-columns: 50% 50%;
}

.local-section__image {
  position: relative;
  overflow: hidden;
}

.local-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-section__caption {
  position: absolute;
  top: 56px;
  left: 58px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 2.2;
  letter-spacing: 0.24em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.local-section__content {
  display: flex;
  padding: 72px clamp(38px, 6vw, 100px);
  flex-direction: column;
  justify-content: center;
  background: #fbfdff;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -8vw;
  position: relative;
  padding-left: 10vw;
  padding-right: 30px;
}


.local-section__image{
  background: url("../images/nagasaki.jpg") center;
  background-size: cover;
}


/* news */


.news-wrap{
  background: var(--color-navy);
  /* 他ページから index.php#news で来たとき、固定ヘッダーに隠れないようにする */
  scroll-margin-top: var(--header-height);
}

.news-section {
  display: grid;
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 5vw;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
}


.news-section .section-title{
  color: #fff;
}

.news-list {
/*  border-top: 1px solid #fdfeff4f;*/
}

.news-item {
  display: grid;
  padding: 18px 0;
  grid-template-columns: 120px 110px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #fdfeff4f;
  color:#fff;
  transition:  0.25s ease;
  letter-spacing: 0rem;
}

.news-item:hover {
  letter-spacing: 0.05rem;
  color: var(--color-primary);
}

.news-item time {
  font-size: 12px;
}

.news-item span {
  font-size: 13px;
}

.news-item__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.news-empty {
  padding: 18px 0;
  color: #FFF;
  font-size: 13px;
}

.news-list a:hover{
  color: #c4e6ff;
  font-style: italic;
}

@media (max-width: 1560px) {
    .services-section__intro {
        padding: 70px 5vw;
    }


    .about-section__text {
        max-width: inherit;
    }

    .about-section__content {
        padding: 72px 5vw 72px 8vw;
    }

  .strength-item {
    padding: 0 20px 20px;
  }
}

@media (max-width: 1380px) {
    .hero,
    #slider,
    .hero__content {
        max-height: 550px;
        height: 550px;
    }
  
    .hero__title {
      font-size: max(4vw, 25px);
    }

    .hero__copy-panel {
        padding: 0;
    }

    .services-section__intro {
        padding: 56px 5vw;
    }
  
  .strengths-section__inner {
    gap: 0;
    grid-template-columns: 310px 1fr;
  }
  
  .strengths-grid {
    column-gap: 0;
  }

    .news-section {
        padding: 70px 5vw;
    }
  
  .local-section .body-copy span{
    display: inline;
  }
  
  
}

@media (max-width: 1180px) {
  .hero__copy-panel {
    width: 55%;
    align-items: flex-start;
  }

  .hero__message {
      display: none;
  }

  .services-section {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-bottom: 56px;
  }

   .services-section__intro {
    padding: 56px 32px;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  .service-grid {
    left: 0;
    width: calc(100% - 60px);
    margin: auto;
  }

  .strengths-section__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .strengths-grid {
    max-width: 100%;
  }

  .strength-item {
    padding-left: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
  
  .services-section__nav {
    margin-top: 20px;
  }
  
  .strengths-section__intro{
    text-align: center;
  }
}

@media (max-width: 1080px) {
    .about-section {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
    }
  
    .local-section {
      display: flex;
      flex-direction: column-reverse;
    }
  
    .about-section__visual,
    .local-section__image {
        height: 420px;
    }

    .about-section__content,
    .local-section__content {
      margin-left: 0;
      clip-path: none;
      padding: 72px 30px;
    }

    .about-section__content {
      grid-template-columns: 1fr;
      gap: 34px;
    }

    .about-section__keywords {
        display: grid;
        padding: 20px 0 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid #d8e3ea;
        border-left: 0;
    }

    .strengths-grid {
      grid-template-columns: 1fr;
    }

    .strength-item {
      min-height: 0;
      padding: 24px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.22);
      border-left: 0;
      text-align: center;
    }

    .strength-item > span {
        margin: auto ;
        font-size: 28px;
    }

    .news-section {
      grid-template-columns: 1fr;
      gap: 28px;
      padding-left: 30px;
      padding-right: 30px;
      
    }
}

@media (max-width: 767px) {
    .hero::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 40%, rgba(255, 255, 255, 0.18) 72%, rgba(5, 52, 90, 0.18) 100%);
        clip-path: polygon(0 0, 100% 0, 100% 66%, 0 82%);
    }
  
    .hero__content::after {
      background: linear-gradient(110deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0.25) 68%, rgba(255, 255, 255, 0) 80%, rgba(5, 52, 90, 0) 100%);
    }


    .hero__content {
        align-items: flex-start;
    }

    .hero__copy-panel {
        width: 100%;
        padding: 64px 0 0;
    }

    .hero__title {
        font-size: max(6vw, 1.5rem);
        line-height: 1.42;
    }

    .hero__lead {
      max-width: 330px;
      font-size: 12px;
      line-height: 1.9;
      text-shadow: 3px 3px 10px #fff;
    }

    .about-section__visual,
    .local-section__image {
        height: 300px;
    }

    .about-section__content,
    .local-section__content {
        padding: 48px 20px;
    }

    .services-section__intro {
        padding: 48px 20px 22px;
    }
  
    .service-card__number {
      margin-bottom: 10px;
      font-size: 2rem;
      text-align: center;
    }
  
    .service-card__image {
      overflow: hidden;
      aspect-ratio: 4 / 3;
      margin-bottom: 10px;
  }

    .service-grid {
      width: calc(100% - 40px);
    }
  
    .strengths-section__inner {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .local-section__caption {
        top: 30px;
        left: 26px;
        font-size: 10px;
    }

    .news-section {
      padding: 50px 20px;
      gap:0;
    }

  .news-item time{
      letter-spacing: 0.1rem;
  }
  
    .news-item__category {
      padding: 1px 9px;
  }
}

/* 日付とカテゴリーを横並び、タイトルは次の行に全幅で表示 */
@media (max-width: 797px) {
    .news-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 6px;
    }

    .news-item > span:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
  
    .hero__title {
      line-height: 1.42;
      font-size: min(10vw, 6.5rem);
  }

}
