/*****************************************
*******   서브 공통내용   ***********
*****************************************/
:root {
  --main:	#dc4149;
  --brand: #da3a3c;
  --ink: #38383a;
  --bg: #f9f9f9;
  --line: #e8e8ea;
  --header-h: 64px;
}

.sub-section {max-width: 1100px; min-height: 400px; margin: 60px auto 100px auto;}

.sub-section > .km-wrap {
    position: relative;
    z-index: 1;
}

.km-ch-label {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 18px;
}

.km-title {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 700;
}

.km-sub {
  font-size: clamp(16px, 2.1vw, 20px);
  color: #555;
  margin: 0 0 24px;
}

.km-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
}

.km-eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: clamp(12px, 1.8vw, 16px);
    color: var(--brand);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

@media (max-width:920px) {
  .km-two-col {
	grid-template-columns: 1fr;
  }
}


/*****************************************
*******   기억마루 소개-서비스 개요   ***********
*****************************************/
.km-cta {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.km-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 500;
}

.km-btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.about_list {margin-block-end: 1em; padding-left: 40px;}
.about_list li {list-style: disc;}


/*****************************************
*******   기억마루 소개-추천 대상   ***********
*****************************************/
.km-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.km-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.km-card p {
  margin: 0;
  color: #555;
}

.km-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 28px);
}

/* *********************************
**************  타겟   ****************
************************************/
        :root{
            --brand-red:#da3a3c;
            --brand-dark:#181818;
            --text-main:#4a4f55;
            --line:#d0d3d8;
            --bg-light:#f7f7f8;
        }

        *{box-sizing:border-box;}

        body{
            margin:0;
            font-family:"Noto Sans KR",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
            color:var(--text-main);
            background: #fff;
        }

        .target-wrap{
            max-width:1024px;
            margin:0 auto;
        }

        .target-head{
            text-align:center;
            line-height:1.7;
            font-size:17px;
        }
        .target-head p{
            margin:0 0 4px;
        }
        .target-head .sub{
            margin-top:14px;
            font-weight:500;
        }

        /* diagram */
        .target-diagram{
            position:relative;
            margin-top:40px;
            padding:40px 0 24px;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:2.5rem;
        }

        /* 가로 라인 */
        .target-diagram::before{
            content:"";
            position:absolute;
            left:11%;
            right:11%;
            top:50%;
            height:2px;
            background:var(--line);
            z-index:0;
        }

        /* 가운데 위쪽 아치 */
        .diagram-bridge{
            position:absolute;
            left:32%;
            right:32%;
            top:16px;
            height:120px;
            border-radius:999px 999px 0 0;
            border:2px solid var(--line);
            border-bottom:none;
            background:transparent;
            z-index:0;
        }

        /* 위 텍스트와 연결되는 점선 + 포인트 */
        .diagram-anchor{
            position:absolute;
            top:0;
            left:50%;
            transform:translateX(-50%);
            height:40px;
            display:flex;
            align-items:flex-end;
            justify-content:center;
            pointer-events:none;
        }
        .diagram-anchor::before{
            content:"";
            width:6px;
            height:6px;
            border-radius:50%;
            background:var(--brand-red);
            margin-bottom:3px;
        }
        .diagram-anchor::after{
            content:"";
            width:1px;
            height:32px;
            border-right:2px dotted var(--brand-red);
            transform:translateY(4px);
        }

        .target-node{
            position:relative;
            z-index:1;
            flex:0 0 auto;
        }

        .circle{
            width:210px;
            height:210px;
            border-radius:50%;
            display:flex;
            align-items:center;
            justify-content:center;
            text-align:center;
            line-height:1.6;
        }

        .circle-main{
            background:var(--brand-red);
            color:#fff;
            font-size:20px;
            font-weight:700;
        }

        .circle-ring{
            position:relative;
            background:#fff;
            border:2px solid var(--line);
        }
        .circle-ring::before{
            content:"";
            position:absolute;
            inset:14px;
            border-radius:50%;
            border:2px solid var(--line);
        }

        .circle-ring span{
            position:relative;
            z-index:1;
            font-weight:700;
            font-size:18px;
        }
        .circle-ring .age{
            display:block;
            margin-top:2px;
            font-size:15px;
            font-weight:400;
        }

        .circle-extend{
            background:var(--brand-dark);
            color:#fff;
            font-size:20px;
            font-weight:700;
        }

        /* 노드 아래 점선 + 포인트 (가운데 두 개만) */
        .node-buyer::after,
        .node-customer::after{
            content:"";
            position:absolute;
            left:50%;
            top:100%;
            transform:translateX(-50%);
            width:1px;
            height:40px;
            border-right:2px dotted var(--line);
        }
        .node-buyer::before,
        .node-customer::before{
            content:"";
            position:absolute;
            left:50%;
            top:calc(100% + 40px);
            transform:translate(-50%,-4px);
            width:8px;
            height:8px;
            border-radius:50%;
            background:var(--brand-red);
        }

        .circle-title{
            display:block;
        }

        /* 설명 텍스트 */
        .target-copy-row{
            display:flex;
            justify-content:space-between;
            gap:3rem;
            margin-top:54px;
            font-size:17px;
            line-height:1.8;
			color:#181818;
        }
        .target-copy{
            flex:1 1 0;
        }
        .target-copy--left{
            text-align:center;
        }
        .target-copy--right{
            text-align:left;
        }

        .target-copy p{
            margin:0 0 10px;
        }

        /* 하단 박스 */
        .target-bottom-box{
            margin-top:64px;
            padding:32px 24px;
            border:2px solid rgba(218,58,60,.4);
            text-align:center;
            font-size:16px;
            line-height:1.9;
        }
        .target-bottom-box strong{
            font-weight:700;
        }

        /* 반응형 */
        @media (max-width:900px){
            .target-diagram{
                flex-wrap:wrap;
                justify-content:center;
                gap:1.8rem;
                padding-top:52px;
            }
            .target-diagram::before{
                display:none;
            }
            .diagram-bridge,
            .diagram-anchor{
                display:none;
            }
            .circle{
                width:180px;
                height:180px;
            }
            .target-copy-row{
                flex-direction:column;
                gap:24px;
                margin-top:40px;
            }
            .target-copy--left,
            .target-copy--right{
                text-align:center;
            }
        }

        @media (max-width:600px){
            body{
                padding:32px 12px 60px;
            }
            .target-head{
                font-size:14px;
            }
            .target-bottom-box{
                font-size:14px;
                padding:24px 18px;
            }
        }


/*****************************************
*******   자서전 제작-집필 과정 안내   ***********
*****************************************/
.km-steps {
  counter-reset: step;
  display: flex;
  gap: 10px;
}

.km-step {
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  flex: 1;
}

.km-step::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.km-step h3 {font-size: 1.17em; margin: 20px 0; font-weight: 600;}

@media (max-width:520px) {
  .km-step {
	grid-template-columns: 40px 1fr;
  }

  .km-step::before {
	width: 40px;
	height: 40px;
  }
}



/*****************************************
*******   자서전 제작-자서전 샘플   ***********
*****************************************/
.km-mock {
  aspect-ratio: 16/10;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #888;
}

.km-mock img {width: 100%; border-radius: 16px;}