/* 基本設定と変数 */
: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);
}
p{
    margin: 0;
}

.site-header .nav-item:nth-child(6){
    color: var(--fm-green) !important;
    font-weight: 600;
    /* pointer-events: none; */
}
/* --- ヒーローセクション --- */
.hero-section {
    position: relative;
    max-height: 90%;
    display: flex;
    padding-top: 5rem; /* pt-20 相当 */
}

.about-hero {
    position: relative;
    min-height: 500px;
    height: 70vh; /* 画面高に合わせる */
    max-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background-image: url('../image/policy-top.png');
    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;
}

.top-container{
    width: 100%;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    background-image: url('../image/image_3.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: block;
    height: 100%;
}



.hero-main-content {
    display: inline-table;
    height: 50%;
    backdrop-filter: blur(4px); /* backdrop-blur-md 相当 */
    padding: 2rem; /* p-8 相当 */
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-white);
    border-radius: 5%;
    max-width: 100%; /* md:w-full lg:w-11/12 xl:w-full を考慮し、レスポンシブで調整 */
    transform: translateY(1rem) scale(0.9);
}

@media (min-width: 768px) {
    .hero-content-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 相当 */
        gap: 3rem; /* gap-12 相当 */
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--fm-blue);
    color: var(--fm-blue);
    padding: 0.375rem 1rem; /* px-4 py-1.5 相当 */
    border-radius: 9999px;
    font-weight: bold;
    margin-bottom: 1.5rem; /* mb-6 相当 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm 相当 */
}

.hero-badge span {
    font-size: 17px;
}

.hero-title {
    font-size: 2.5rem; /* 3xl/5xl / style="font-size: 2.5rem;" */
    font-weight: 900; /* font-black 相当 */
    line-height: 1.5;
    margin-bottom: 1.5rem; /* mb-6 相当 */
    color: var(--color-gray-800);
}

.hero-title .text-highlight {
    color: var(--fm-green);
    background-color: #f0fff4; /* green-50 相当 */
    padding: 0 0.5rem; /* px-2 相当 */
}

.hero-subtitle {
    color: var(--color-gray-600);
    font-size: 1.125rem; /* text-lg 相当 */
    margin-bottom: 2rem; /* mb-8 相当 */
    line-height: 1.625; /* leading-relaxed 相当 */
}

.hero-action {
    display: flex;
    flex-direction: column; /* flex-col 相当 */
    gap: 1rem; /* gap-4 相当 */
}

@media (min-width: 640px) {
    .hero-action {
        flex-direction: row; /* sm:flex-row 相当 */
    }
}
.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;
}

.hero-lead {
    font-size: clamp(1.125rem, 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: white;
}


/* サイトマップ */

.sitemap-section{
    width: 100%;
    margin: auto;
    max-width: 1200px;
    display: grid;
    margin-bottom: clamp(3rem,9vh,6rem);
}

.sitemap-heading{
    display: block;
    font-size: clamp(26px,3.3vh,2.5rem);
    text-align: center;
    color: var(--fm-blue);
    font-weight: 700;
    line-height: 2.0;
    margin-top: clamp(6rem,24vh,12rem);
    margin-bottom: clamp(3rem,9vh,3rem);
}

.sitemap{
    width: 80%;
    margin: 0 10%;
    gap: 10%;
    justify-content: center;
    display: flex;
}

.sitemap-row{
    width: 45%;
    display: block;
}

.sitemap-contentbox{
    width: 100%;
    margin: 0 auto 1rem;
    text-align: center;
}

.sitemap-content{
    font-size: clamp(18px,1.2vh,1.5rem);
    color: var(--fm-dark);
    /* border: 1px solid #CCCCCC; */
    padding: 0.5rem 0.5rem 0.1rem;
    width: 100%;
    position: relative;
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--fm-dark);
    font-size: 1.2rem;
    position: relative;
}

.sitemap-content a{
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

.sitemap-content::after{
    content: "";
    position: absolute;
    display: grid;
    align-items: center;
    top: auto;
    left: 0;
    width: 3px;
    height: 50%;
    background-color: var(--fm-green);
    transition: all 0.5s;
    z-index: -1;
}

/* .sitemap-contentbox:hover .sitemap-content{
    color: #fff;
    font-weight: bold;
} */

/* .sitemap-contentbox:hover .sitemap-content::after{
    width: 100%;
} */

.arrow{
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5%;
    font-size: 1.2rem;
    padding-left: 1.5rem;
}

.sitemap-contentbox:hover .arrow{
    transform: translate(25%,-50%);
}

.sitemap-sub-content{
    transform: translateX(20px);
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem 0.5rem;
    line-height: 2.0;
    /* border: 1px solid #CCCCCC; */
    border-top: 0;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    align-items: flex-start;
}

.sitemap-sub-content a{
    text-decoration: none;
    color: var(--fm-dark);
    display: inline-block;
}

.sitemap-sub-content a:hover{
    color: var(--fm-green);
    font-weight: bold;
    text-decoration: underline 1px solid var(--fm-green);
}

@media(max-width:840px) and (min-width:550px){

.sitemap{
    width: 100%;
    margin: 0 auto;
    gap: 5%;
}

.sitemap-heading{
    margin-top: clamp(6rem,18vh,12rem);
}

.sitemap-contentbox{
    width: 230px;
}

.sitemap-content{
    width: 230px;
    font-size: 1.1rem;
}

.sitemap-sub-content{
    width: 230px;
}

.arrow{
    right: 0;
}

.sitemap-contentbox:hover .arrow{
    transform: translate(10%,-50%);
}

}

.sitemap-mobile{
    display: none;
}

/* 画面縮小時は縦配置 */

@media(max-width:550px){

.sitemap{
    display: none;
}

.sitemap-mobile{
    display: block;
}

}

/* モバイル */

@media(max-width:500px){

    .sitemap-heading{
        margin: 18vh auto 5vh;
    }

    .sitemap{
        width: 90%;
        margin: 0 5%;
    }

    .sitemap-contentbox{
        width: 90%;
        margin: 0 auto 1rem
    }

    /* .sitemap-content{
        width: 280px;
    } */

    .sitemap-sub-content{
        width: 95%;
        transform: translateX(5px);
    }

}