/* 基本設定と変数 */
:root {
    --fm-green: #00a33e;
    --fm-blue: #008cd6;
    --fm-dark: #333333;
    --fm-light: #f8fafc;
    --white: #ffffff;
    --text-gray: #4b5563;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --space-section: clamp(64px, 10vw, 120px);
    --space-container: clamp(16px, 5vw, 24px);
}

.site-header .nav-item:nth-child(2) .dropdown-toggle {
    color: var(--fm-green) !important;
    font-weight: 600;
    /* pointer-events: none; */
}
/* .container, .container-narrow {
    margin: 0 auto;
    padding: 0 var(--space-container);
    box-sizing: border-box;
}

.container { max-width: 1240px; } */
.container-narrow { max-width: 940px; }

.section-title {
    margin-bottom: 70px;
    font-weight: bold;
    color: var(--fm-dark);
    font-size: clamp(17px, 3.5vw, 1.875rem) !important;
}

/* ヒーローセクション */
.strong-hero {
    position: relative;
    min-height: 500px;
    height: 70vh; 
    max-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}
@media (max-width: 768px) {
    .strong-hero {
        min-height: initial;
        height: 50vh; 
    }
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background-image: url('../image/strong_top_image.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.label-green-border {
    display: inline-block;
    border-bottom: 2px solid var(--fm-green);
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.label-en {
    color: var(--fm-green);
    font-weight: bold;
    letter-spacing: 0.15em;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.page-title {
    /* 画面幅に応じて40px〜56pxに変化 */
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    margin-top: 0;
}

.hero-lead {
    font-size: clamp(1rem, 3vw, 1.5rem);
    word-break: keep-all; /* 変な位置での改行を防ぐ */
    font-weight: bold;
    color: #374151;
}

.text-blue {
    color: var(--fm-blue);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 40px;
    fill: var(--white);
}

/* --- 「私たちの強み」セクション --- */
/* --- 強みセクション全体 --- */
/* --- 「私たちの強み」セクション --- */

/* --- 「私たちの強み」セクション 案1 --- */

.strong-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: #fdfdfd; 
}

.strong-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* カード間の距離 */
    max-width: 1100px;
    margin: 0 auto;
}

#strong-2,#strong-3{
    scroll-margin-top:350px;
}

.strong-card {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* 縁を薄く囲んで立体感を出す */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

/* 画像エリア */
.strong-hero-image {
    width: 50%;
    min-height: clamp(200px, 47vw, 350px);
}
.strong-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストエリア */
.strong-text-area {
    width: 50%;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box; /* はみ出し防止 */
    position: relative;
    background: #fff; /* 背景は白で統一 */
}

/* 左側にブランドカラーの太い線を入れる */
.strong-text-area::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 6px;
}
.card-green .strong-text-area::after { background-color: var(--fm-blue); }
.card-blue .strong-text-area::after { background-color: var(--fm-green); left: 0; }
.card-yellow .strong-text-area::after { background-color: #f59e0b; }

/* タイトル */
.strong-title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--fm-dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    word-break: keep-all;
}

/* 説明文 */
.strong-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #555; /* 文字は少しグレーにして読みやすく */
}

/* 背景の薄い番号（デザインのアクセント） */
.strong-card { counter-increment: card-counter; }

.strong-title, .strong-description {
    position: relative;
    z-index: 1; /* 番号より前に出す */
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
    .strong-card {
        flex-direction: column;
        width: 100%;
        margin: 0;
    }
    .strong-card.card-blue {
        flex-direction: column-reverse; /* スマホでも画像を上にする */
    }
    .strong-hero-image {
        width: 100%;
        height: 220px;
    }
    .strong-text-area {
        width: 100%;
        padding: 1.3rem 1.0rem;
    }
    /* スマホでは線を上に配置 */
    .strong-text-area::after {
        left: 10% !important;
        top: 0;
        width: 80%;
        height: 4px;
    }
    .strong-text-area::before {
        font-size: 4rem;
    }
        .strong-title {
        margin-bottom: clamp(0rem, 2.5vw, 1.5rem);
        margin-top: clamp(0rem, 2.5vw, 1rem);
    }
    .strong-description {
    margin-top: 0;
    }
}

/* 「取り扱い商品一覧」セクション */
.strong-section-product .container{
    gap: 4rem; 
}
.strong-section-product{
    padding-top: clamp(9rem, 24vw, 12rem);
    padding-bottom: clamp(2rem, 10vw, 3rem);
    background: #ffffff;
}
.product-type-title{
    padding: 0.5rem;
    margin-bottom: 3rem;
    font-size: clamp(20px,2.5vw,25px);
    color: #fff;
}
.strong-section-heading-cont1{
    margin-bottom: clamp(2rem,4.5vw,4rem);
}
.strong-section-heading-cont1 .product-type-title{
    background-color: var(--fm-blue);
}
.strong-section-heading-cont2 .product-type-title{
    background-color: var(--fm-green);
}
.product-type1{
    margin: 0.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    justify-content: center;
    justify-items: center;
}
.product-type1 .product:nth-child(1){
    background-color: #E3F2FD;
    color: var(--fm-dark);
}
.product-type1 .product i,.product-type2 .product i{
    width: 50px;
}
.product-type1 .product:nth-child(1) i{
    color: #1976D2;
}

.product-type1 .product:nth-child(2){
    background-color: #F5F5F5;
    color: var(--fm-dark);
}
.product-type1 .product:nth-child(2) i{
    color: #616161;
}

.product-type1 .product:nth-child(3){
    background-color: #FFF3E0;
    color: var(--fm-dark);
}
.product-type1 .product:nth-child(3) i{
    color: #EF6C00;
}

.product-type2 .product:nth-child(1){
    background-color: #FCE4EC;
    color: var(--fm-dark);
}
.product-type2 .product:nth-child(1) i{
    color: #C2185B;
}

.product-type2 .product:nth-child(2){
    background-color: #E8F5E9;
    color: var(--fm-dark);
}
.product-type2 .product:nth-child(2) i{
    color: #388E3C;
}

.product-type2 .product:nth-child(3){
    background-color: #F3E5F5;
    color: var(--fm-dark);
}
.product-type2 .product:nth-child(3) i{
    color: #7B1FA2;
}

.product-type2 .product:nth-child(4){
    background-color: #FFEBEE;
    color: var(--fm-dark);
}
.product-type2 .product:nth-child(4) i{
    color: #D32F2F;
}


.product-type2{
    margin: 0.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.3rem, 1.5vw, 1rem);
    justify-content: center;
    justify-items: center;
}
.product{
    font-size: clamp(14px,1.8vw,18px);
    position: relative;
    justify-content: center;
    /* display: flex; */
    padding: 3rem 0;
    align-items: center;
    margin-bottom: 1rem;
    text-align: center;
    /* border: 1px #000 solid; */
    border-radius: 50px;
    gap: 2rem;
    max-width: 300px;
    width: 100%;
}
.product i{
    font-size: clamp(2rem,5.5vw,3rem);;
}

.product h3{
    font-size: clamp(0.9rem,1.5vw,1.2rem);
}
.product p{
    font-size: clamp(0.8rem,1.1vw,1.0rem);
    margin: 0;
    margin-left: 5px;
}
.strong-section-heading-cont1 .product::before{
    background-color: var(--fm-blue);
}
.strong-section-heading-cont2 .product::before{
    background-color: var(--fm-green);
}
@media (max-width: 768px){
    .strong-section-product .container{
        padding: 0 var(--space-container);
    }
    .strong-section-product {
        padding-top: clamp(6rem, 22.5vw, 10.5rem);
        padding-bottom: clamp(2rem,4.5vw,3.5rem);
    }
    .product-type-title{
        font-size: clamp(16px,3.3vw,20px);
    }

    .product-type1 {
        margin: 0.5rem 0rem;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 5px;
    }

    .product-type2 {
        margin: 0.5rem 0rem;
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 5px;
    }
    .product-type-title{
        margin-bottom: 1rem;
    }
    .product {
        font-size: clamp(14px, 1.8vw, 18px);
        position: relative;
        justify-content: start;
        display: flex;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
        text-align: center;
        border-radius: 30px;
        gap: 2rem;
        max-width: 90%;
        width: 100%;
    }
    .product-cont{
        display: flex;        /* 内側をflex化 */
        flex-direction: column; /* 縦並びにする */
        gap: 2px;
        text-align: start;
    }
    .product-cont h3{
        margin: 0;
        font-size: 14px;
    }
    .product-cont p{
        margin: 0;
    }
}

/* --- アニメーションの初期状態（隠れている状態） --- */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* 40px下に下げておく */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- アニメーション実行後の状態（表示された状態） --- */
.reveal.active {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
}

/* 画像とテキストに時間差（ディレイ）をつけたい場合 */
.active .strong-hero-image {
    /* transition-delay: 0.1s; */
}
.active .strong-description {
    /* transition-delay: 0.8s; テキストを少し遅らせて表示 */
}

/* 部署紹介 */
.department{
    padding-top: 6rem;
    margin-bottom: 8rem;
}

/* 部署紹介全体の親要素 */
.department-wraper{
    display: flex;
    flex-wrap: wrap;
    /* margin-top: 5rem; */
}

/* 部署紹介の要素 */
.department-content{
    width: 43%;
    height: 500px;
    margin: 0 2.42%;
    border: 1px solid var(--color-gray-600);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 部署紹介の画像 */
.department-image{
    width: 100%;
    border-bottom: 1px solid var(--color-gray-100);
    object-fit: contain;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
}

/* 部署紹介の文字 */
.department-text{
    width: calc(100% - 2rem);
    padding: 1rem;
    font-size: 16px;
    line-height: 1.5;
}

/* 部署名 */
.department-text p{
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--fm-blue);
    margin-top: 0;
    margin-bottom: 0.3rem;
}

/* 左側にある部署紹介の要素 */
.department-left{
    margin-bottom: 100px;
}

/* 右側にある部署紹介の要素 */
.department-right{
    margin-top: 100px;
}

/* モバイル用 */
.department-wraper-mobile{
    display: none;
}

.department-content-mobile{
    width: 90%;
    aspect-ratio: 1920 / 1000;
    margin: 0 5%;
    position: block;
    border: 1px solid var(--color-gray-100);
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
}

.department-text-mobile{
    width: calc(90% - 1rem);
    margin: 0 1rem;
    height: 140px;
    padding: 1rem 0 1rem 1rem;
    font-size: 14px;
}

.department-text-mobile p{
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 0.5rem;
}

/* 画面縮小時は一列に表示 */
@media(max-width:1281px){
    .department-wraper{
        margin-top: 0;
    }
    .department-left{
        margin-bottom: 0;
    }
    .department-right{
        margin-top: 0;
    }
    .department-content{
        width: 60%;
        margin: 50px 20%;
        height: auto;
    }
    .department-text{
        font-size: clamp(14px,2vw,18px);
        height: 150px;
        padding: 1rem;
    }
    .department-text p{
        font-size: clamp(18px,2.5vw,26px);
    }
}

/* 画面縮小時横幅を調整 */
@media(max-width:680px){
    
}

/* 営業一課 */
.department-sales1{
    border: 8px solid #E3F2FD;
}

.department-sales1-paragraph p{
    border-bottom: 2px solid #018CD6;
}

/* 営業二課 */
.department-sales2{
    border: 8px solid #E8F5E9;
}

.department-sales2-paragraph p{
    border-bottom: 2px solid #00A33E;
}

/* 損害サポート課 */
.department-support{
    border: 8px solid #FFF3E0;
}

.department-support-paragraph p{
    border-bottom: 2px solid #FACC15;
}

/* 企画・マーケティング室 */
.department-marketing{
    border: 8px solid #FFEBEE;
}

.department-marketing-paragraph p{
    border-bottom: 2px solid #EF4444;
}

/* 経営管理部 */
.department-management{
    border: 8px solid #F3E5F5;
}

.department-management-paragraph p{
    border-bottom: 2px solid #8B5CF6;
}

@media(max-width:499px){

.department-sales1-paragraph p{
    border-bottom: 1px solid #018CD6;
}

    .department-sales2-paragraph p{
    border-bottom: 1px solid #00A33E;
}

.department-support-paragraph p{
    border-bottom: 1px solid #FACC15;
}

.department-marketing-paragraph p{
    border-bottom: 1px solid #EF4444;
}

.department-management-paragraph p{
    border-bottom: 1px solid #8B5CF6;
}

}


.strong-toggle{
    display: none;
}
/* スマホ時だけ説明文をスライド開閉 */
/* 通常時 */
.strong-title-row {
  display: block;
}

.strong-toggle {
  display: none;
}

/* スマホ時だけ説明文を開閉 */
@media (max-width:768px){

  .strong-title-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    align-items: center;
  }

  .strong-title{
    margin-bottom:0;
    flex:1;
    margin: 0;
    font-size: 15px;
  }

  /* 説明文 */
  .strong-description{
    max-height:0;
    overflow:hidden;
    opacity:0;
    margin-top:0;
    transition:max-height .4s ease, opacity .3s ease, margin 0.3s ease;
    margin: 0;
  }

  .strong-description.is-open{
    opacity:1;
    margin-top:0.75rem;
  }

  /* ▼ボタン */
  .strong-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border:none;
    background:none;
    font-size:16px;
    color:var(--fm-blue);
    cursor:pointer;
  }

  .strong-toggle::before{
    content:"▼";
    transition:transform .3s ease;
  }

  /* 開いた時 */
  .strong-toggle.is-open::before{
    transform:rotate(180deg);
  }

}

/* デフォルト（PC） */
.department-toggle{
  display:none;
}

/* スマホのみアコーディオン */
@media (max-width:768px){


    .department-content{
        width: 90%;
        margin: 0 5% 50px;
    }
    .department-text{
        padding: 1rem;
        height: 40%;
    }

  .department-title-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
  }

  .department-title{
    font-size:18px;
    font-weight:700;
  }

  .department-toggle{
    display:inline-block;
    font-size:14px;
    color:var(--fm-blue);
  }

  .department-toggle::before{
    content:"▼";
    transition:transform .3s ease;
  }

  .department-toggle.is-open::before{
    transform:rotate(180deg);
  }

  .department-description{
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease,margin .4s ease;
  }

  .department-description.is-open{
    margin-top:10px;
  }

}