@charset "utf-8";

.page-hero {
    padding-top: 155px;
    margin: 0 auto 100px;
    max-width: 325px;
    position: relative;
}

.hero-section {
    background: #D5E7E5;
}

.back-img {
    background-image: url(../img/backimg-company.svg);
    background-repeat:no-repeat;
    background-size: auto;
    background-position: top right;
}

.lead {
    margin-top: 50px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
}

.title-en {
    margin-top: 50px;
   color: #2B958A;
    font-family: Poppins;
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.2;
}

.title-ja {
    margin-top: 9px;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1;
}
 .title-menu {
    margin-top: 40px;
 }

.title-menu li{
    margin-top: 30px;
    font-weight: 500;
    line-height: 1;
}

.title-menu img {
    width: 16px;
    height: 16px;
    margin-right: 18px;
}

/* ============================
massage
=============================== */
.hero-section {
    position: relative;
}

.message {
    position: relative;
    z-index: 1;
    margin-top: -30px;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(180deg, #FFF 0%, rgba(221, 236, 234, 0.60) 81.73%, #D5E7E5 100%);
    overflow: hidden;
}

.message-ourService {
    padding-bottom: 192px;
}

.message-top {
    width: 100%;
    height: 236px;
    object-fit: cover;
    object-position: center; 
}

.message-all {
    padding-top: 50px;
    margin: 0 auto;
    max-width: 325px;
    width: 100%;
}

.subtitle-en {
    color: #2B958A;
    font-family: Poppins;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.subtitle-ja {
    margin-top: 5px;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.president {
    margin-top: 50px;
    object-fit: cover;
    object-position: center;
    max-width: 325px;
    width: 100%;
    height: 200px;
    }

.president-message p:first-child {
    margin-top: 50px;
    font-weight: 500;
    line-height: 1.8;
}

.president-message p:nth-child(2) {
    margin-top: 30px;
    margin-top: 30px;
    font-weight: 500;
    line-height: 1;
}

/* ========== 採用メッセージ ========== */
.message-all h2,
.message-all .subtitle-ja,
.message-all .president,
.message-all .president-message p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.message-all h2.is-visible,
.message-all .subtitle-ja.is-visible,
.message-all .president.is-visible,
.message-all .president-message p.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
スライドショー
=============================== */
.company-message-slider {
    margin-top: 50px;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 10px;
}

.company-message-slider-inner {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: slide-left 35s linear infinite;
}

.company-message-slider-inner img {
    border-radius: 8px;
}
.company-message-slider-inner:hover {
    animation-play-state: paused;
}

.company-message-slider-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
        flex-shrink: 0;
}

@keyframes slide-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* ============================
ourservices
=============================== */

.ourservices-subtitle {
    margin: 0 auto;
    max-width: 325px;
    width: 100%;
}

.ourservices-subtitle h2 {
    margin-top: 79px;
    color: #2B958A;
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.ourservices-subtitle p:nth-child(2) {
    margin-top: 5px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
}

  .ourservices-subtitle p:nth-child(3) {
    margin-top: 22px;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
}

.ourservices-metal {
    margin-top: 41px;
    max-width: 375px;
    width: 100%;
    height: 199px;
    object-fit: cover;
    object-position: center;
}

.ourservices-kamome {
    margin-top: 41px;
    max-width: 375px;
    width: 100%;
    height: 199px;
    object-fit: cover;
    object-position: center;
}

.ourservices-title {
    margin: 40px auto 0;
    max-width: 325px;
    width: 100%;
}

.ourservices-title p:first-child {
    margin-top: 40px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.ourservices-title p:nth-child(2) {
    margin-top: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.ourservices-what-button {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 30px;
    background: #FFF;
    box-shadow: 2px 2px 0 0 #2B958A;
    height: 59px;
    transition: 0.3s;
    cursor: pointer;
}

.ourservices-what-button a {
    color: #2B958A;
    font-weight: 700;
    line-height: 1;
    transition: 0.3s;
}

.ourservices-what-button img {
    transition: 0.3s;
}

.ourservices-what-button:hover {
    background: #2B958A;
}

.ourservices-what-button:hover a {
    color: #FFF;
}

.ourstrength {
    position: relative;
    margin-top: -94px;
        background: #FFF ;
    z-index: 1;
    padding-top: 97.64px;
}
/* ========== 事業内容 ========== */
.ourservices-subtitle h2,
.ourservices-subtitle p,
.ourservices-metal,
.ourservices-kamome,
.ourservices-title p,
.ourservices-title .ourservices-what-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ourservices-subtitle h2.is-visible,
.ourservices-subtitle p.is-visible,
.ourservices-metal.is-visible,
.ourservices-kamome.is-visible,
.ourservices-title p.is-visible,
.ourservices-title .ourservices-what-button.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
ourstrength
=============================== */

.ourstrength {
    border-radius: 30px 30px 0 0;
}

.ourstrength-three  {
    padding: 43px 0 43px 0;
    background: #D5E7E5;
    gap: 40px;
    max-width: 330px;
    width: 100%;
    margin: 60px auto 0;
    border-radius: 30px;
    border: 1px solid #000;
}

.ourstrength-three p:first-child {
    color: #2B958A;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.ourstrength-line {
    margin-top: 10px;
    width: 36px;
    height: 3px;
    background: #2B958A;
    margin: 0 auto;
}

.ourstrength-three img {
    margin: 40px auto 0;
    display: flex;
    width: 157px;
    height: 84.001px;
}

.ourstrength-three p:nth-child(4) {
    margin: 40px auto 0;
    color: #333;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.8;
}

.ourstrength-three p:nth-child(5) {
    margin: 36px auto 0;
    max-width: 290px;
    width: 100%;
    line-height: 1.8;
}

/* ========== 私たちの強み ========== */
.ourstrength-three {
    perspective: 800px;
    transform: rotateY(180deg);
    transition: transform 0.8s ease;
    backface-visibility: hidden;
}

.ourstrength-three.is-visible {
    transform: rotateY(0deg);
}


/* ============================
outline
=============================== */
.outline {
    margin: 101px auto 0;
    max-width: 325px;
    width: 100%;
}

.outline-line {
    width: 100%;
    height: 2px;
    background: #B5B5B5;
    margin: 20px 0 20px 0;
}

.outline-list {
    margin-top: 50px;
}

.outline-list li p{
    font-weight: 500;
    line-height: 1;
    margin-top: 14px;
}

.outline-map iframe {
    margin-top: 50px;
    max-width: 325px;
    width: 100%;
    height: 300px;
}

.outline-map p {
    font-weight: 500;
    line-height: 1.5;
}

.outline-map p:nth-child(2) {
    margin-top: 25px;
}

.outline-map p:nth-child(3) {
    margin-top: 30px;
}

.company-officegallery1 {
    display: block;
    margin: 58px auto 0;
    max-width: 325px;
    width: 100%;
    height: 177px;
    border-radius: 20px;
    }

.company-officegallery2 {
    display: block;
    margin: 30px auto 0;
    max-width: 325px;
    width: 100%;
    height: 177px;
    border-radius: 20px;
    }

/* ========== ギャラリージャンプ ========== */
.gallery-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.gallery-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

.gallery-link:hover::after {
    background: rgba(255, 255, 255, 0.3);
}

/* 425px以下：画面幅いっぱいに表示（base.css と対応） */
@media (max-width: 425px) {
    .ourservices-metal,
    .ourservices-kamome {
        max-width: none;
    }
}
