/* ========================================
   企業理念（concept.php）
======================================== */

.photo-section--message {
    --section-photo: url('../images/strength-worker.jpg');
}

/* ---------- 社長ご挨拶 ---------- */

.message-body .message-catch {
    position: relative;
    margin: 0 0 40px;
    padding: 22px 0;
    color: var(--color-navy);
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.06em;
}

.message-catch span {
    color: #0c7cc3;
}

/* キャッチコピー上下の流れる光のライン（技術・スピード感） */
.message-catch::before,
.message-catch::after {
    position: absolute;
    left: 0;
    height: 2px;
    background-repeat: no-repeat;
    content: "";
    pointer-events: none;
}

.message-catch::before {
    top: 0;
    width: min(100%, 460px);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(90deg, #0b66a9 0%, #1fb0ee 55%, rgba(31, 176, 238, 0) 100%);
    background-size: 120px 100%, 100% 100%;
    background-position: -120px 0, 0 0;
    animation: message-catch-streak 3.2s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

.message-catch::after {
    bottom: 0;
    width: min(100%, 580px);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(90deg, #0b66a9 0%, #1fb0ee 55%, rgba(31, 176, 238, 0) 100%);
    background-size: 120px 100%, 100% 100%;
    background-position: -120px 0, 0 0;
    transform: translateX(0px);
    animation: message-catch-streak 3.2s cubic-bezier(0.6, 0, 0.3, 1) 1.6s infinite;
}

@keyframes message-catch-streak {
    0% {
        background-position: -120px 0, 0 0;
    }

    60%,
    100% {
        background-position: calc(100% + 120px) 0, 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .message-catch::before,
    .message-catch::after {
        animation: none;
    }
}

.message-body p {
    margin: 0 0 1.6em;
    color: var(--color-navy);
    text-shadow: 0 0 3px #fff;
    font-size: 15px;
    line-height: 2.1;
}

.message-sign {
    margin-top: 48px;
    color: var(--color-navy);
    text-align: right;
}

.message-sign small {
    display: block;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.message-sign strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.24em;
    margin-right: -0.24em;
}

/* ---------- 経営理念 ---------- */

.philosophy-section {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background: #082a43;
}

.philosophy-section__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 32, 52, 0.55), rgba(3, 32, 52, 0.9)),
        url('../images/service05.jpg') center / cover no-repeat;
}

.philosophy-section .page-section__inner {
    position: relative;
    z-index: 2;
}

.philosophy-main {
  margin: 0 0 64px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: min(2.75vw, 35px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 20px;
  padding-bottom: 20px;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.philosophy-main span {
    display: inline-block;
}

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

.philosophy-grid .strength-item {
    padding: 0 34px 38px;
}

.philosophy-grid .strength-item h3 {
    margin-bottom: 4px;
}

.philosophy-grid .strength-item__en {
    display: block;
    color: #93f0ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
}

/* ========================================
   レスポンシブ
======================================== */

@media (max-width: 1180px) {
    .philosophy-grid .strength-item {
        padding: 0 20px 30px;
    }
  
  .philosophy-grid .strength-item {
        border-top: none;
        border-bottom: none;
    }

  
}

@media (max-width: 1080px) {
    .philosophy-section {
        padding: 80px 0;
    }

    .philosophy-main {
        font-size: 28px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .philosophy-grid .strength-item {
        padding: 24px 0;
        text-align: center;
    }
}

@media (max-width: 800px) {
    .philosophy-section {
        padding: 60px 0;
    }

    .message-body .message-catch {
        font-size: 22px;
    }

    .message-body p {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
  
  .philosophy-grid p span{
    display: block;
    text-align: center;
    line-height: 1.7;
  }
  
  .philosophy-main {
      margin-bottom: 30px;
      font-size: 23px;
  }

  /* 右辺を垂直にして、背景の三角形（.strength-item::before）の右側を90度にする */
  .philosophy-grid .strength-item {
      clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
  }
}
