﻿
/* ///////////////////////////////////////////////////////////////////////
   リースについて 
   /////////////////////////////////////////////////////////////////////// */

/* 表題 */
.lease-intro-box {
    position: relative; 
    border: 2px solid #005bac;
    background-color: #f7fafd;
    padding: 35px 25px 25px 25px;
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 6px;
    line-height: 1.8;
    color: #333333;
}

/* リースとはのラベル */
.box-label {
    position: absolute;
    top: -15px; 
    left: 20px; 
    background-color: #005bac; 
    color: #ffffff;
    padding: 4px 18px 4px 10px; 
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}


/* リースについて - 画像 */
.image-area {
    width: 100%;
    margin-bottom: 40px;
}

    .image-area img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
        object-fit: cover;
        background-color: #e0e0e0;
    }

/* 小ブロック */
.sub-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.sub-block,
.sub-block-full {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px; 
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

    .sub-block h3,
    .sub-block-full h3 {
        font-size: 18px;
        color: #005bac;
        margin-top: 0;
        margin-bottom: 12px;
        padding-left: 10px;
        border-left: 4px solid #005bac; 
    }

    .sub-block p,
    .sub-block-full p {
        font-size: 15px;
        color: #555555;
        margin: 0;
        line-height: 1.7;
    }

/* 注意事項は箇条書き構造 */
.sub-block-list {
    list-style: none; 
    padding: 0;
    margin: 0;
}

    .sub-block-list li {
        font-size: 15px;
        color: #555555;
        line-height: 1.7;
        position: relative;
        padding-left: 15px; 
        margin-bottom: 12px; 
    }

        .sub-block-list li:last-child {
            margin-bottom: 0;
        }

        .sub-block-list li::before {
            content: "";
            position: absolute;
            left: 3px;
            top: 10px;
            width: 5px;
            height: 5px;
            background-color: #005bac;
            border-radius: 50%;
        }

/* リース事業協会外部リンク用 */
.text-link-with-icon {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px; 
    transition: color 0.2s;
}

    .text-link-with-icon:hover {
        color: #004499;
        text-decoration: underline;
    }

.text-link-with-icon {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

    .text-link-with-icon:hover {
        color: #004499;
        text-decoration: underline;
    }

/* SVGアイコン */
.icon-external {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}


/* レスポンシブ */
@media (min-width: 768px) {

    .sub-block-full {
        grid-column: 1 / -1;
    }
}

/* ///////////////////////////////////////////////////////////////////////
    リースのメリット
   /////////////////////////////////////////////////////////////////////// */

/* コンテナ */
.merit-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.merit-card {
    background-color: #ffffff;
    border: 1px solid #e2ebd5; 
    padding: 25px;
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
}

.merit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.merit-number {
    display: inline-block;
    background-color: #4a7c59;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 16px;
    white-space: nowrap;
    border-radius: 15px 2px 15px 2px;
}

/* 小タイトル */
.merit-sub-title {
    font-size: 18px;
    color: #333333;
    margin: 0;
    font-weight: bold;
}

/* 説明文章 */
.merit-text {
    font-size: 15px;
    color: #555555;
    margin: 0;
    line-height: 1.7;
    padding-left: 5px;
}

/* ///////////////////////////////////////////////////////////////////////
    レスポンシブ
   /////////////////////////////////////////////////////////////////////// */
@media (max-width: 768px) {
    .merit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ///////////////////////////////////////////////////////////////////////
    対象物件 
   /////////////////////////////////////////////////////////////////////// */

/* コンテナ */
.target-objects-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.target-card {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

/* 見出し（左） */
.target-category {
    width: 240px;
    background-color: #f7f9fa;
    color: #333333;
    font-weight: bold;
    font-size: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

/* 名称（右側） */
.target-items {
    padding: 20px;
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

/* ///////////////////////////////////////////////////////////////////////
   レスポンシブ
   /////////////////////////////////////////////////////////////////////// */
@media (max-width: 768px) {
    .target-card {
        flex-direction: column;
    }

    .target-category {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 15px;
        font-size: 15px;
    }

    .target-items {
        padding: 15px;
        font-size: 14px;
    }
}


/* ///////////////////////////////////////////////////////////////////////
    リース契約の流れ
   /////////////////////////////////////////////////////////////////////// */
#section4 {
    margin-bottom: 100px;
}

.flow-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* ///////////////////////////////////////////////////////////////////////
   左側：写真
   /////////////////////////////////////////////////////////////////////// */
.flow-gallery {
    position: relative;
    width: 40%;
    height: 660px;
    flex-shrink: 0;
}

/* 画像フレーム */
.img-frame {
    position: absolute;
    width: 220px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, z-index 0s;
}

    .img-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background-color: #e0e0e0;
    }

.frame1 {
    top: 10px; /* 1枚目 */
    left: 20px;
    transform: rotate(-6deg);
    z-index: 4;
}

.frame2 {
    top: 170px; /* 2枚目 */
    left: 90px;
    transform: rotate(4deg);
    z-index: 3;
}

.frame3 {
    top: 330px; /* 3枚目 */
    left: 20px;
    transform: rotate(-4deg);
    z-index: 2;
}

.frame4 {
    top: 490px; /* 4枚目 */
    left: 80px;
    transform: rotate(6deg);
    z-index: 1;
}


.img-frame:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}

/* ///////////////////////////////////////////////////////////////////////
   右側
   /////////////////////////////////////////////////////////////////////// */
.flow-timeline {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.flow-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 6px;
}

    .flow-step:not(:last-child)::after {
        content: "";
        position: absolute;
        bottom: -22px;
        left: 65px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 12px solid #005bac;
    }

/* 進捗ステータス */
.step-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 65px;
    background-color: #005bac;
    color: #ffffff;
    border-radius: 4px;
    flex-shrink: 0;
}

.step-num {
    font-size: 13px;
    opacity: 0.8;
    font-weight: bold;
}

.step-name {
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

/* 説明文 */
.step-body {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
}

/* ///////////////////////////////////////////////////////////////////////
    レスポンシブ対応
   /////////////////////////////////////////////////////////////////////// */
@media (max-width: 768px) {
    .flow-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .flow-gallery {
        display: none;
    }

    .flow-timeline {
        width: 100%;
    }

    .flow-step:not(:last-child)::after {
        left: 55px;
    }
}

/* ///////////////////////////////////////////////////////////////////////
    カーリース
   /////////////////////////////////////////////////////////////////////// */
#section5 {
    margin-bottom: 100px; /* 最下部の余白も他と合わせる */
}

.lease-types-container {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.type-card {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

    .type-card h3 {
        font-size: 18px;
        color: #005bac;
        margin-top: 0;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid #e0e0e0;
    }

    .type-card p {
        font-size: 14px;
        color: #555555;
        line-height: 1.6;
        margin: 0;
    }

.diagram-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 30px;
    border-radius: 8px;
}

.diagram-main-title {
    font-size: 18px;
    color: #333333;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

.diagram-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.diagram-box {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.diagram-sub-title {
    font-size: 15px;
    color: #444444;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.diagram-contentbefore,
.diagram-contentafter {
    position: relative;
    width: 100%;
    height: 240px;
    margin: 0 auto;
}

.node {
    position: absolute;
    border: 1px solid #999999;
    border-radius: 4px;
    font-size: 13px;
    color: #333333;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
}

/* ///////////////////////////////////////////////////////////////////////
    ノードブロック配置
   /////////////////////////////////////////////////////////////////////// */
.node-client,
.node-client-left,
.node-company {
    position: absolute;
    width: 55px;
    height: 210px;
    top: 15px;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 4px;
    box-sizing: border-box;
    word-break: break-all;
    white-space: normal;
    font-family: inherit;
}

/* 左ブロック */
.node-client {
    left: 15px;
    background-color: #005bac;
    color: #ffffff;
    border-color: #005bac;
}

.node-client-left {
    left: 10px;
    background-color: #005bac;
    color: #ffffff;
    border-color: #005bac;
}

.node-company {
    left: 130px;
    background-color: #e6f2ff;
    color: #005bac;
    border-color: #005bac;
    border-width: 2px;
}

/* ///////////////////////////////////////////////////////////////////////
   　4つのノード共通処理
   /////////////////////////////////////////////////////////////////////// */
.node-dealer, .node-dealer-r,
.node-gov, .node-gov-r,
.node-ins, .node-ins-r,
.node-factory, .node-factory-r {
    position: absolute;
    width: 130px;
    height: 38px;
    padding: 8px 5px;
    text-align: center;
    box-sizing: border-box;
}

.node-dealer, .node-gov, .node-ins, .node-factory {
    left: 225px;
}

.node-dealer-r, .node-gov-r, .node-ins-r, .node-factory-r {
    left: 270px;
}

.node-dealer, .node-dealer-r {
    top: 10px;
}

.node-gov, .node-gov-r {
    top: 68px;
}

.node-ins, .node-ins-r {
    top: 126px;
}

.node-factory, .node-factory-r {
    top: 184px;
}


.arrow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

    .arrow-svg line {
        stroke: #a0aec0;
        stroke-width: 2;
    }

    .arrow-svg polygon {
        fill: #a0aec0;
    }

.after-box .arrow-svg:first-of-type line {
    stroke: #005bac;
    stroke-width: 2.5;
}

.after-box .arrow-svg:first-of-type polygon {
    fill: #005bac;
}

/* 右下の文字 */
.diagram-note {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

    .diagram-note p {
        max-width: 70%;
        font-size: 13px;
        color: #666666;
        line-height: 1.6;
        margin: 0;
        text-align: left;
    }

/* レスポンシブ */
@media (max-width: 1024px) {
    .lease-types-container,
    .diagram-wrapper {
        flex-direction: column;
    }

    .diagram-contentbefore,
    .diagram-contentafter {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .diagram-note p {
        max-width: 100%;
    }
}
