/* project detail */

.project-detail-hero{
position:relative;
padding:150px 0 90px;
background:
linear-gradient(110deg,rgba(250,249,255,.98) 0%,rgba(250,249,255,.9) 58%,rgba(255,255,255,.82) 100%),
linear-gradient(180deg,#fbfaff 0%,#f4f2ff 100%);
overflow:hidden;
}

.project-detail-hero--kowarenaimon{
background:
linear-gradient(90deg,rgba(250,249,255,.92) 0%,rgba(250,249,255,.78) 48%,rgba(255,255,255,.24) 100%),
url("img/kowarenaimon/kowarenaimon_background.webp") center / cover no-repeat,
linear-gradient(180deg,#fbfaff 0%,#f4f2ff 100%);
}

.project-detail-hero .container{
position:relative;
z-index:1;
}

.project-detail-character{
position:absolute;
right:max(-28px,calc((100vw - 1100px) / 2 - 72px));
bottom:-92px;
z-index:0;
width:clamp(300px,36vw,500px);
height:auto;
opacity:.92;
pointer-events:none;
}

.project-back{
display:inline-flex;
align-items:center;
gap:9px;
margin-bottom:22px;
color:#2f7cf6;
font-size:.86rem;
font-weight:800;
line-height:1;
}

.project-back::before{
content:"";
width:8px;
height:8px;
margin:0;
border-left:2px solid currentColor;
border-bottom:2px solid currentColor;
transform:rotate(45deg);
}

.project-detail-title-group{
max-width:760px;
padding-top:10px;
}

.project-detail-title-group .project-label{
margin-bottom:8px;
background:rgba(47,124,246,.12);
color:#2f7cf6;
}

.project-detail-hero h1{
margin-top:0;
font-size:clamp(2.6rem,6vw,5.2rem);
line-height:1.08;
}

.project-detail-hero p{
max-width:760px;
margin-top:24px;
color:var(--gray);
font-size:1.05rem;
}

.project-detail{
padding-top:88px;
padding-bottom:88px;
}

#kowarenaimon-overview,
#kowarenaimon-flow,
#kowarenaimon-plan{
scroll-margin-top:104px;
}

.project-detail-grid{
display:grid;
grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);
gap:56px;
align-items:stretch;
}

.project-detail-overview{
display:flex;
flex-direction:column;
min-height:100%;
}

.project-detail-title{
font-size:2rem;
line-height:1.25;
margin-bottom:18px;
border-left:8px solid var(--accent);
padding-left:20px;
}

.project-detail-list{
display:grid;
grid-template-rows:repeat(3,1fr);
gap:0;
height:100%;
align-content:stretch;
border-top:1px solid rgba(139,133,221,.45);
border-bottom:1px solid rgba(139,133,221,.45);
}

.project-detail-list > div{
position:relative;
display:flex;
gap:18px;
align-items:center;
padding:28px 0;
border-bottom:1px solid rgba(139,133,221,.45);
}

.project-detail-list > div:first-child{
border-top:0;
}

.project-detail-list > div:last-child{
border-bottom:0;
}

.project-detail-list h3{
font-size:1.22rem;
margin-bottom:8px;
}

.project-detail-list p{
color:var(--gray);
font-size:.95rem;
line-height:1.7;
}

.project-detail-icon-wrap{
display:inline-flex;
align-items:center;
justify-content:center;
width:62px;
height:62px;
border-radius:999px;
background:rgba(139,133,221,.1);
flex-shrink:0;
}

.project-detail-icon{
display:block;
width:36px;
height:36px;
object-fit:contain;
}

.project-detail-feature-text,
.project-detail-step-text{
display:block;
min-width:0;
}

.service-flow{
padding-top:0;
padding-bottom:88px;
}

.service-flow .lead{
margin-bottom:24px;
}

.service-flow-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:18px;
counter-reset:flow;
}

.service-flow-grid > div{
position:relative;
counter-increment:flow;
padding:24px;
border-right:0;
border-radius:10px;
background:rgba(139,133,221,.08);
box-shadow:none;
}

.service-flow-grid > div:last-child{
border-right:0;
}

.service-flow-grid > div:not(:last-child)::after{
content:"";
position:absolute;
top:50%;
right:-13px;
width:10px;
height:10px;
border-top:2px solid var(--accent);
border-right:2px solid var(--accent);
background:transparent;
transform:translateY(-50%) rotate(45deg);
}

.service-flow-grid h3{
font-size:1.16rem;
margin-bottom:8px;
}

.service-flow-grid p{
color:var(--gray);
font-size:.95rem;
line-height:1.7;
}

.service-flow-text{
min-width:0;
}

.service-flow-text::before{
content:"Step 0" counter(flow);
display:block;
margin-bottom:1px;
color:var(--accent);
font-size:.76rem;
font-weight:800;
letter-spacing:.06em;
text-transform:uppercase;
}

.service-flow-output{
display:grid;
grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);
gap:28px;
align-items:center;
margin-top:28px;
padding:30px 0 0;
border-top:1px solid rgba(139,133,221,.32);
}

.service-flow-output-copy > span{
display:block;
margin-bottom:0;
color:var(--accent);
font-size:.9rem;
font-weight:700;
letter-spacing:.02em;
}

.service-flow-output-copy strong{
display:flex;
align-items:baseline;
gap:0;
font-size:clamp(3rem,6vw,4.5rem);
line-height:1;
margin-bottom:16px;
}

.service-flow-output-copy strong span{
font-size:.48em;
line-height:1;
}

.service-flow-output-copy p{
color:var(--gray);
font-size:.95rem;
line-height:1.7;
}

.service-media-frame{
position:relative;
padding:0;
border-radius:12px;
background:#fff;
box-shadow:
inset 0 1px 0 rgba(17,17,17,.035),
0 6px 18px rgba(0,0,0,.035);
overflow:hidden;
}

.service-media-frame img{
display:block;
width:100%;
height:auto;
border-radius:12px;
}

.service-overview-shot{
margin-top:auto;
}

.project-detail-overview .lead{
margin-bottom:24px;
}

.service-plan{
padding-top:0;
padding-bottom:88px;
background:
linear-gradient(180deg,#fff 0%,#fbfbfd 100%);
}

.service-plan .lead{
margin-bottom:42px;
}

.service-plan-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:22px;
align-items:stretch;
}

.service-plan-card{
position:relative;
display:flex;
flex-direction:column;
padding:28px;
border:1px solid rgba(17,17,17,.08);
border-radius:12px;
background:#fff;
box-shadow:0 10px 28px rgba(0,0,0,.045);
}

.service-plan-card-featured{
border-color:rgba(139,133,221,.72);
box-shadow:0 16px 38px rgba(139,133,221,.16);
transform:translateY(-8px);
}

.service-plan-badge{
position:absolute;
top:-15px;
right:22px;
padding:5px 12px;
border-radius:999px;
background:var(--accent);
color:#fff;
font-size:.72rem;
font-weight:800;
letter-spacing:.05em;
text-transform:uppercase;
}

.service-plan-card-head{
padding-bottom:18px;
border-bottom:1px solid #eee;
}

.service-plan-card-head span{
display:inline-flex;
margin-bottom:7px;
color:var(--accent);
font-size:.78rem;
font-weight:800;
letter-spacing:.06em;
text-transform:uppercase;
}

.service-plan-card h3{
font-size:1.35rem;
line-height:1.3;
}

.service-plan-price{
display:flex;
align-items:baseline;
gap:4px;
margin-top:22px;
margin-bottom:12px;
font-size:1rem;
font-weight:800;
line-height:1.15;
color:var(--text);
}

.service-plan-price span{
font-size:clamp(2.4rem,4vw,3.2rem);
line-height:1;
letter-spacing:0;
}

.service-plan-limit{
display:inline-flex;
width:fit-content;
margin-bottom:18px;
padding:4px 10px;
border-radius:999px;
background:rgba(139,133,221,.12);
color:var(--accent);
font-size:.92rem;
font-weight:700;
line-height:1.5;
}

.service-plan-card p:not(.service-plan-price):not(.service-plan-limit){
color:var(--gray);
font-size:.94rem;
line-height:1.7;
}

.service-plan-list{
display:grid;
gap:10px;
margin-top:20px;
padding-top:18px;
border-top:1px solid #eee;
list-style:none;
color:var(--gray);
font-size:.92rem;
}

.service-plan-list li{
position:relative;
padding-left:20px;
line-height:1.55;
}

.service-plan-list li::before{
content:"";
position:absolute;
left:0;
top:.58em;
width:7px;
height:7px;
border-radius:999px;
background:var(--accent);
}

.project-product-link{
padding:0 0 72px;
background:#fbfbfd;
}

.project-product-link-inner{
display:flex;
justify-content:space-between;
align-items:center;
gap:24px;
padding:28px 0;
border-top:1px solid rgba(139,133,221,.28);
border-bottom:1px solid rgba(139,133,221,.28);
}

.project-product-link span{
display:block;
margin-bottom:4px;
color:var(--accent);
font-size:.82rem;
font-weight:800;
letter-spacing:.05em;
}

.project-product-link p{
color:var(--gray);
}

.project-product-link a{
display:inline-flex;
justify-content:center;
min-width:180px;
padding:12px 26px;
border:2px solid var(--accent);
border-radius:5px;
background:#fff;
color:var(--accent);
font-weight:700;
transition:background .3s, color .3s;
}

.project-product-link a:hover{
background:var(--accent);
color:#fff;
}

.project-detail-contact{
position:relative;
padding:96px 0;
background:url(img/pexels-googledeepmind-18069160.jpg) center / cover no-repeat;
text-align:center;
overflow:hidden;
}

.project-detail-contact::before{
content:"";
position:absolute;
inset:0;
background:rgba(255,255,255,.8);
}

.project-detail-contact-inner{
position:relative;
z-index:1;
display:flex;
flex-direction:column;
align-items:center;
gap:26px;
max-width:760px;
}

.project-detail-contact .section-title{
border-left:none;
padding-left:0;
margin-bottom:10px;
}

.project-detail-contact p{
color:var(--gray);
max-width:620px;
}

.project-detail-contact a{
display:inline-flex;
justify-content:center;
min-width:180px;
padding:13px 34px;
border:2px solid var(--accent);
border-radius:5px;
background:var(--accent);
color:#fff;
font-weight:700;
transition:background .3s, color .3s;
}

.project-detail-contact a:hover{
background:#fff;
color:var(--accent);
}

@media(max-width:900px){
.project-detail-hero{
padding:130px 0 64px;
background:
linear-gradient(110deg,rgba(250,249,255,.98) 0%,rgba(250,249,255,.9) 100%),
linear-gradient(180deg,#fbfaff 0%,#f4f2ff 100%);
}

.project-detail-hero--kowarenaimon{
background:
linear-gradient(90deg,rgba(250,249,255,.93) 0%,rgba(250,249,255,.82) 100%),
url("img/kowarenaimon/kowarenaimon_background.webp") center / cover no-repeat,
linear-gradient(180deg,#fbfaff 0%,#f4f2ff 100%);
}

.project-detail-character{
right:-118px;
bottom:-58px;
width:300px;
opacity:.28;
}

.project-detail{
padding-top:56px;
padding-bottom:64px;
}

.project-detail-grid,
.service-flow-grid,
.service-flow-output,
.service-plan-grid{
grid-template-columns:1fr;
}

.service-flow,
.service-plan{
padding-bottom:64px;
}

.service-overview-shot{
margin-top:0;
}

.project-detail-list{
grid-template-rows:none;
height:auto;
}

.service-flow-grid > div:not(:last-child)::after{
display:none;
}

.service-flow-grid > div{
border-right:0;
border-bottom:0;
}

.service-plan-card-featured{
transform:none;
}

.project-product-link{
padding-bottom:56px;
}

.project-product-link-inner{
flex-direction:column;
align-items:flex-start;
}

.project-detail-contact-inner{
flex-direction:column;
align-items:center;
}
}
