:root {
    --c-primary: #0055aa;
    --c-text: #ffffff;
    --c-text-gray: #cccccc;
    --c-bg-dark: #222222;
    --c-bg-footer: #000000;
    --c-accent: #cc0000;
    --f-main: 'Noto Sans JP', sans-serif;
    --f-en: 'Oswald', sans-serif;
}

/* =========================================
    Reset & Base
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--f-main);
    color: var(--c-text);
    background-color: var(--c-bg-dark);
    line-height: 1.6;
    font-size: 14px;
    /* 横スクロールの発生を防ぐ */
    overflow-x: hidden; 
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* 共通コンテナ */
.l-container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.title {
    font-size: 15vw;
    font-family: var(--fontAlpha);
    margin: -3vw auto;
    max-width: 80%;
    height: fit-content;
}

#title-span, #subtitle-span, .line {
    display: none;
    font-size: 1.8vw;
    font-weight: bold;
}

.line2 {
    display: inline-block;
    font-size: 1.8vw;
}

/* --- スマホ時に画面幅いっぱいにするテキスト --- */
.under_text {
    display: block;
    font-size: 1.8vw;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

@media (max-width: 992px) {
    .under_text {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        /* 1行に収めるための調整 */
        font-size: 3.1vw;
        white-space: nowrap; 
        padding: 10px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
    #title-span2, #subtitle-span2, .line2 {
        font-size: inherit;
    }
}

.onestop_above_pc {
    width: 100%;
    display: block;
}
.onestop_above_sp {
    display: none;
}

@media (min-width: 768px) {
    .l-container {
        max-width: 1200px;
        padding: 0 40px;
    }
    .under_text {
        display: none; /* タブレット以上では非表示 */
    }
    #title-span, #subtitle-span, .line {
        display: inline-block;
    }
    .line2 {
        display: block;
    }
    .line {
        display: inline-block;
    }
}

/* =========================================
    Hero Section
   ========================================= */
.p-hero {
    position: relative;
    width: 100%;    
}

.p-hero__bg {
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.p-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .p-hero__bg { height: 70vh; }
}

/* =========================================
    Intro Section (スマホ時は幅100%にする)
   ========================================= */
.p-intro {
    padding: 60px 20px;
    color: #fff;
}

.p-intro__visual {
    margin-bottom: 30px;
}

.p-intro__text {
    /* デフォルト(スマホ)では幅100% */
    width: 100%; 
    text-align: left;
}

.p-intro__title {
    font-family: var(--f-en);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.p-intro__text p {
    margin-bottom: 1.5em;
    font-size: 0.95rem;
    text-align: justify;
}

/* PC/タブレット(1024px以上)のみ元の2カラム設定にする */
@media (min-width: 1024px) {
    .p-intro {
        display: flex;
        align-items: center;
        gap: 60px;
        padding: 80px 40px;
    }
    .p-intro__visual {
        flex: 0 0 45%;
        margin-bottom: 0;
    }
    .p-intro__text {
        flex: 1;
        width: 50%;
    }
}

/* =========================================
    Process Flow Section
   ========================================= */
.p-flow-wrapper {
    padding-bottom: 60px;
}

.p-flow {
    padding-top: 40px;
    padding-bottom: 40px;
}

.p-flow__brand-label {
    display: inline-block;
    color: #fff;
    font-family: var(--f-en);
    margin-bottom: 30px;
}

.p-flow__brand-label--eastool { background-color: var(--c-primary); }
.p-flow__brand-label--grop { background-color: #002244; }

.p-flow__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .p-flow__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .p-flow__grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .p-flow__grid--5col { grid-template-columns: repeat(5, 1fr); }
    .p-flow__grid--4col { grid-template-columns: repeat(4, 1fr); }
}

.p-card {
    background: transparent;
}

.p-card__head {
    position: relative;
    margin-bottom: 10px;
    display: inline-block;
    min-width: 120px;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
}

.p-card__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid #ccc;
}

.p-card__desc {
    font-size: 0.85rem;
    line-height: 1.5;
}

.p-flow-divider {
    width: 100%;
    height: 50px;
    position: relative;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.p-flow-divider::after {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 40px 60px 0 60px;
    border-color: #fff transparent transparent transparent;
}

.field {
    display: flex;
    align-items: flex-end;
}

.card-left {
    margin-right: 60px;
    white-space: nowrap;
}

@media (max-width:992px) {
    .onestop_above_sp {
        width: 100%;
        display: block;
    }
    .onestop_above_pc {
        display: none;
    }
}



/* =========================================
    Map Section (ISKANDAR Malaysia)
   ========================================= */
.p-map {
    /* 全体の背景色などを必要に応じて調整（デザイン画像では暗い背景に見えますが、
       背景画像がある場合は親要素の設定に依存します。ここでは文字色を白にします） */
    color: #ffffff;
    padding: 40px 0;
    /* もしセクション全体に暗い背景が必要な場合は以下を有効化してください */
    /* background-color: #333; */
}

/* ラッパー：PC時は横並びにする */
.p-map__wrapper {
    display: flex;
    flex-direction: column; /* スマホは縦並び */
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
}

/* 画像エリア */
.p-map__visual {
    width: 100%;
}

/* 情報エリア */
.p-map__info {
    width: 100%;
}

/* PCサイズ以上でのレイアウト調整 */
@media (min-width: 768px) {
    .p-map__wrapper {
        flex-direction: row; /* 横並び */
        justify-content: center;
        align-items: flex-start; /* 上揃え */
        gap: 60px; /* 画像と文字の間隔 */
    }

    .p-map__visual {
        width: 55%; /* 画像の幅 */
        max-width: 600px;
    }

    .p-map__info {
        width: 40%; /* テキストエリアの幅 */
        padding-top: 20px; /* 画像との位置関係微調整 */
    }
}

/* タイトル部分 */
.p-map__header {
    margin-bottom: 20px;
    border-bottom: 1px solid #ffffff; /* 白いライン */
    padding-bottom: 10px;
    display: inline-block;
    min-width: 250px; /* ラインの最小幅 */
    width: 80%;
}

.p-map__title {
    font-family: var(--f-en); /* Oswaldフォント */
    font-size: 2rem;
    line-height: 1.1;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.p-map__sub {
    font-family: var(--f-main);
    font-size: 0.9rem;
    font-weight: normal;
    margin: 0;
}

/* 凡例リスト */
.p-map__legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-map__legend li {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 5px;
    font-weight: 500;
}

/* 下部の説明文エリアの文字色調整（背景が暗い場合、ここも白にする必要があるため） */
.p-city-desc {
    color: #ffffff; /* 必要に応じて調整 */
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.p-city-desc__title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: bold;
}