/* Theme Name: Dental Partner
Theme URI: https://dentalpartner.studio.site/
Author: Dental Partner
Description: Dental Partner専用オリジナルブロックテーマ
Version: 1.6.3
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: dental-partner */
:root{--black:#292929;--teal:#6fa9b2;--gray:#f5f5f5;--line:#d6d6d6;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--black);background:#fff;font-family:"Open Sans","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:16px;font-weight:300;line-height:1.75;letter-spacing:0}a{color:inherit;text-decoration:none}img{display:block;width:100%;height:auto}.site-main{overflow:hidden}.container{width:100%;max-width:1120px;margin:0 auto}.section{padding:120px 0}.eyebrow{margin:0;font-size:64px;font-weight:500;line-height:1;letter-spacing:1.92px}.section-title{margin:10px 0 0;padding-left:4px;font-size:16px;font-weight:300;line-height:28px}.section-lead{font-size:15px;line-height:28px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-width:190px;height:52px;padding:0 22px;border:1px solid var(--teal);border-radius:999px;color:var(--teal);font-size:14px;font-weight:400;line-height:1}.btn:after{content:"→";font-size:16px}.btn:hover{background:var(--teal);color:#fff}
.header{position:fixed;z-index:20;top:24px;left:50%;display:flex;align-items:center;justify-content:space-between;width:calc(100% - 128px);max-width:1152px;height:72px;padding:0 12px 0 40px;transform:translateX(-50%);border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 8px 28px rgba(0,0,0,.06)}.brand{display:block;width:104px;height:30px;font-size:0;background:url('assets/images/b72405b4eff4d26c.webp') center/contain no-repeat}.brand-mark,.brand>span:last-child{display:none}.nav{display:flex;align-items:center;gap:28px;font-size:16px;font-weight:500;line-height:1.1;letter-spacing:.8px}.nav-contact{display:flex;align-items:center;justify-content:center;width:150px;height:56px;margin-left:-8px;border-radius:12px;background:var(--teal);color:#fff}.menu-toggle{display:none}
.hero{position:relative;height:720px;min-height:0;background:url('assets/images/a2247474a1c44bf3.webp') center/cover no-repeat;color:#fff}.hero:after{position:absolute;inset:0;content:"";background:rgba(20,30,35,.13)}.hero-copy{position:absolute;z-index:1;left:6%;bottom:57.6px;display:flex;flex-direction:column;gap:14px;width:56%;padding-right:20px}.hero h1{margin:0;font-size:80px;font-weight:700;line-height:1.2}.hero p{margin:0;font-size:20px;font-weight:400;line-height:28px}
#about{height:834px;padding:120px 80px}.about-grid{display:grid;grid-template-columns:236px 592px;column-gap:60px;align-content:start;max-width:1120px}.about-grid>div:first-child{grid-column:1/3;padding-bottom:40px}.about-copy{grid-column:2}.about-copy h3{margin:0 0 28px;font-size:32px;font-weight:300;line-height:56px}.about-copy p{margin:0 0 28px;font-size:15px;line-height:28px}.about-copy .btn{margin-top:4px}
.problem{height:715px;padding:120px 32px 0;background:#fff}.problem>.container{max-width:1216px}.problem>.container>.eyebrow{display:none}.problem>.container>.problem-title{width:100%;padding:44px 96px 0;border-radius:12px 12px 0 0;background:var(--teal);color:#fff;font-size:32px;font-weight:700;line-height:56px}.problem-grid{display:block;margin:0}.worry-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 50px;padding:24px 96px 56px;border-radius:0 0 12px 12px;background:var(--teal);color:#fff}.worry{padding:0;border:0;background:none;font-size:15px;font-weight:400;line-height:28px}.worry:before{content:"・"}.answer{display:flex;flex-direction:column;align-items:center;justify-content:center;height:195px;padding:0;background:#fff}.answer h3{margin:0;font-size:28px;font-weight:700;line-height:1.25;text-align:center}.answer h3 br{display:none}.answer h3 strong{color:var(--teal)}.answer p{margin:16px 0 0;font-size:15px;line-height:28px;text-align:center}
#strength{height:2159px;padding:120px 32px 0}#strength>.container{max-width:1216px;padding-top:80px;border-radius:20px;background:var(--gray);overflow:hidden}.strength-head{display:flex;flex-direction:column;align-items:center;margin:0 0 30px}.strength-head .eyebrow{color:var(--teal)}.strength-list{display:flex;flex-direction:column;gap:32px;padding:0 68px 80px}.strength-item{display:flex;align-items:stretch;gap:32px;min-height:373px;padding:32px 80px 32px 40px}.strength-item:nth-child(even){flex-direction:row-reverse;padding-right:40px;padding-left:80px}.strength-copy{flex:1;min-width:0}.strength-num{display:block;color:var(--teal);font-size:18px;font-weight:500;line-height:28px}.strength-item h3{margin:14px 0 24px;font-size:28px;font-weight:700;line-height:44.8px}.strength-item p{margin:0;font-size:15px;line-height:28px}.strength-item img{flex:0 0 463px;width:463px;height:309px;object-fit:cover;border-radius:10px}.strength-item:nth-child(3) img{height:261px}
.services{height:3919px;padding:206px 0 128px;background:#fff}.services>.container{display:grid;grid-template-columns:372px 658px;grid-template-rows:auto 1fr;column-gap:80px;max-width:1111px}.services>.container>.eyebrow{grid-column:1;grid-row:1;color:var(--teal)}.services>.container>.section-title{grid-column:1;grid-row:1;margin-top:74px}.services>.container>.section-lead{grid-column:2;grid-row:1;margin:0 0 40px}.service-grid{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:64px;margin:0}.service-card{display:flex;flex-direction:column;min-height:818px;padding:40px 32px 32px;border-radius:24px;background:var(--gray)}.service-card:nth-child(even){background:#eef5f6}.service-card h3{margin:0;color:var(--teal);font-size:24px;font-weight:600;line-height:42px;letter-spacing:1.2px}.service-card>p{margin:16px 0 26px;font-size:15px;line-height:28px}.service-card h4{margin:0 0 13px;font-size:15px;font-weight:600;line-height:28px}.service-card ul{margin:0;padding:22px 24px;list-style:none;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:15px;line-height:36px}.service-card li:before{content:"・"}.service-card .price{margin:24px 0 0;padding:0;border:0;font-size:15px;line-height:28px}.service-card .price strong{display:block;margin-top:4px;color:var(--teal);font-size:24px;font-weight:600}.service-card .btn{margin-top:auto;align-self:flex-end;background:#fff}
#works{height:991px;margin-top:-56px;padding:130px 0 0;border-radius:0 56px 0 0;background:var(--gray)}#works>.container{max-width:none;margin-left:10%}.works-head{display:flex;align-items:flex-end;justify-content:space-between;width:80%;padding-bottom:44px}.works-head .eyebrow{color:var(--teal)}.works-head .btn{margin-bottom:5px}.works-grid{display:flex;width:max-content;gap:40px;margin:0}.work{display:block;width:400px}.work img{width:400px;height:400px;object-fit:cover;border-radius:0}.work-meta{margin:18px 0 6px;font-size:12px;line-height:21px}.work h3{margin:0;font-size:17px;font-weight:600;line-height:28px}.work small{font-size:12px;line-height:21px}.works-scroll{overflow:hidden}
.flow{height:841px;padding:120px 64px 200px;background:#fff}.flow>.container{max-width:1144px}.flow>.container>.eyebrow,.flow>.container>.section-title{text-align:center;color:var(--teal)}.flow-list{display:grid;grid-template-columns:repeat(4,200px);justify-content:space-between;gap:16px;margin-top:50px}.flow-item{position:relative;height:369px;padding:248px 0 0;text-align:center}.flow-item:before{position:absolute;top:78px;left:50%;width:80px;height:80px;content:"";transform:translateX(-50%);background:center/contain no-repeat}.flow-item:nth-child(1):before{background-image:url('assets/images/4233a4389fb01fbc.svg')}.flow-item:nth-child(2):before{background-image:url('assets/images/e38b4ea982ce51d7.svg')}.flow-item:nth-child(3):before{background-image:url('assets/images/048a62e24a660843.svg')}.flow-item:nth-child(4):before{background-image:url('assets/images/8c6ed3f0f9897fbd.svg')}.flow-item:not(:last-child):after{position:absolute;top:130px;right:-14px;content:"▶";color:var(--teal);font-size:18px}.flow-num{display:none}.flow-item h3{margin:0 0 16px;color:var(--teal);font-size:20px;font-weight:700;line-height:28px;letter-spacing:1px}.flow-item p{margin:0;font-size:14px;line-height:24.5px}
.contact{height:572px;padding:110px 80px 90px;background:linear-gradient(105.58deg,#c3e0c8 0%,#edd5a6 28.72%,#cfe1c3 58.45%,#99d3c5 84.56%,#bceef1 100%);color:var(--black)}.contact>.container{display:flex;flex-direction:column;align-items:center;max-width:1076px;height:412px;padding:48px 40px;border-radius:20px;background:#fff}.contact .eyebrow{color:var(--teal)}.contact p{margin:32px 0;font-size:15px;line-height:28px;text-align:center}.contact .btn{margin-top:auto}.footer{height:201px;padding:40px 64px 24px;background:#4e4e4e;color:#fff}.footer .container{max-width:1152px}.footer-row{display:flex;align-items:center;justify-content:space-between}.footer .brand{filter:brightness(0) invert(1)}.footer-nav{display:flex;gap:28px;font-size:15px;font-weight:600;line-height:26px}.footer-bottom{display:flex;justify-content:space-between;margin-top:38px;padding-top:18px;border-top:1px solid rgba(255,255,255,.3);font-size:12px}
@media(max-width:760px){.container{max-width:none}.section{padding:0}.header{top:12px;width:calc(100% - 24px);height:60px;padding:0 8px 0 20px}.brand{width:119px;height:35px}.nav{display:none}.menu-toggle{display:block;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--teal);color:#fff;font-size:0}.menu-toggle:before{content:"☰";font-size:20px}.hero{height:844px;background-position:58% center}.hero:after{background:linear-gradient(0deg,rgba(25,35,40,.5),transparent 58%)}.hero-copy{left:5%;bottom:48px;width:95%;gap:10px}.hero h1{font-size:58px;line-height:1.2}.hero p{font-size:15px;line-height:26.25px}.eyebrow{font-size:48px;line-height:48px;letter-spacing:1.44px}.section-title{margin-top:4px}
#about{height:902px;margin-top:120px;padding:90px 19.5px 0}.about-grid{display:block}.about-grid>div:first-child{padding-bottom:32px}.about-copy h3{margin-bottom:22px;font-size:24px;line-height:42px}.about-copy p{margin-bottom:22px;font-size:14px;line-height:26px}
.problem{height:788px;padding:100px 19.5px 0}.problem>.container>.problem-title{padding:20px 20px 0;font-size:18px;line-height:31.5px}.worry-list{display:flex;flex-direction:column;gap:10px;padding:24px 20px}.worry{font-size:14px;line-height:26px}.answer{height:269px}.answer h3{font-size:21px;line-height:1.4}.answer h3 br{display:block}.answer p{width:330px;margin-top:14px;font-size:14px;line-height:26px}
#strength{height:2657px;padding:100px 19.5px 0}#strength>.container{padding:80px 0 8px}.strength-head{margin-bottom:30px}.strength-list{gap:32px;padding:0}.strength-item,.strength-item:nth-child(even){flex-direction:column;gap:28px;min-height:0;margin:8px;padding:28px 18px 0}.strength-copy{order:1}.strength-item img,.strength-item:nth-child(3) img{order:2;width:100%;height:219px;flex-basis:auto}.strength-num{font-size:16px;line-height:22px}.strength-item h3{margin:14px 0 18px;font-size:22px;line-height:35.2px}.strength-item p{font-size:14px;line-height:26px}
.services{height:3815px;padding:104px 0 128px}.services>.container{display:block}.services>.container>.eyebrow,.services>.container>.section-title{margin-left:32px}.services>.container>.section-lead{margin:32px 32px 40px;font-size:14px;line-height:26px}.service-grid{gap:40px}.service-card{min-height:751px;margin:0 12px;padding:32px 20px 24px}.service-card:nth-child(2){min-height:779px}.service-card h3{font-size:18px;line-height:31.5px}.service-card>p{font-size:14px;line-height:26px}.service-card h4{font-size:14px}.service-card ul{padding:18px 12px;font-size:14px;line-height:34px}.service-card .price{font-size:14px}.service-card .price strong{font-size:21px}.service-card .btn{align-self:center}
#works{height:813px;margin-top:-56px;padding:98px 0 0}#works>.container{margin-left:19.5px}.works-head{width:348px;padding-bottom:32px}.works-head .btn{display:flex;min-width:130px;height:42px;padding:0 14px;font-size:12px}.works-grid{gap:24px}.work{width:280px}.work img{width:280px;height:280px}.works-scroll{overflow-x:auto;padding-right:20px}.work-meta{font-size:11px}.work h3{font-size:15px}
.flow{height:1527px;padding:80px 8px 120px 0}.flow>.container{width:374px}.flow-list{display:flex;flex-direction:column;align-items:center;gap:24px;margin-top:50px}.flow-item{width:260px;height:247px;padding:172px 0 0}.flow-item:before{top:38px}.flow-item:not(:last-child):after{top:auto;right:50%;bottom:-21px;transform:translateX(50%) rotate(90deg)}.flow-item h3{margin-bottom:12px;font-size:16px;line-height:22.4px}.flow-item p{font-size:13px;line-height:22.75px}
.contact{height:507px;padding:58px 19.5px}.contact>.container{height:448px;padding:48px 20px}.contact .eyebrow{font-size:46px}.contact .section-title{font-size:15px;line-height:26.25px}.contact p{margin:28px 0;font-size:14px;line-height:26px}.footer{height:auto;padding:42px 20px 24px}.footer-row{align-items:flex-start}.footer-nav{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 28px;font-size:13px}.footer-bottom{flex-direction:column;gap:8px;margin-top:30px}body.menu-open{overflow:hidden}.menu-open .header{height:auto;min-height:60px;flex-wrap:wrap;padding-bottom:18px}.menu-open .nav{display:flex;flex-basis:100%;flex-direction:column;align-items:stretch;gap:0;padding-top:16px;font-size:15px}.menu-open .nav a{padding:10px 4px;border-top:1px solid #ddd}.menu-open .nav-contact{width:auto;height:46px;margin:8px 0 0}.menu-open .menu-toggle:before{content:"×"}}
@media(min-width:761px){.hero h1{white-space:nowrap}}
@media(max-width:760px){#about{height:782px}}
.site-main{background:url('assets/images/a2247474a1c44bf3.webp') center/cover fixed no-repeat}
.hero{background-image:none}
#strength{background-color:#fff}
#about{position:relative;isolation:isolate;overflow:hidden;background:none}
#about:before{position:absolute;z-index:-2;inset:-14px;content:"";background:url('assets/images/a2247474a1c44bf3.webp') center/cover fixed no-repeat;filter:blur(10px) contrast(.68) saturate(.72)}
#about:after{position:absolute;z-index:-1;inset:0;content:"";background:rgba(255,255,255,.7)}
.about-copy .btn{justify-content:flex-end;gap:12px;width:100%;min-width:0;height:42px;margin-top:0;padding:0;border:0;border-radius:0;color:var(--black);font-size:14px;line-height:24.5px}
.about-copy .btn:after{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid var(--teal);border-radius:50%;color:var(--teal);font-size:13px}
.about-copy .btn:hover{background:transparent;color:var(--teal)}
#about .section-title{margin-top:20px}
.about-copy p{margin-bottom:40px;font-size:16px;line-height:28.8px}
@media(max-width:760px){#about .section-title{margin-top:4px}.about-copy p{margin-bottom:22px;font-size:14px;line-height:26px}}
.hero:after{background:rgba(20,30,35,.13);mask-image:none;-webkit-mask-image:none}
.hero{height:max(720px,100vh)}
@media(max-width:760px){.hero{height:max(844px,100vh)}}

/* Problem section: STUDIO layout */
.problem{height:715px;padding:120px 32px 0;background:#fff}
.problem>.container{max-width:1216px}
.problem>.container>.eyebrow{display:none}
.problem>.container>.problem-title{display:block;width:100%;height:156px;margin:0;padding:44px 96px 0;border-radius:12px 12px 0 0;background:var(--teal);color:#fff;font-size:32px;font-weight:300;line-height:56px;text-align:center}
.problem-title strong{font-weight:700}
.problem-grid{display:block;margin:0}
.worry-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;height:220px;margin:0;padding:44px 96px 56px;border-radius:0 0 12px 12px;background:var(--teal);color:var(--black)}
.worry{position:relative;display:flex;align-items:center;justify-content:center;height:120px;padding:20px 10px;border:0;background:#fff;font-size:16px;font-weight:700;line-height:28px;text-align:center}
.worry:before{position:absolute;top:-22px;left:7px;content:"“";color:#d8d8d8;font-family:Georgia,"Times New Roman",serif;font-size:42px;font-weight:400;line-height:1}
.problem-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:29px;height:48px;margin:12px auto 0}
.problem-arrow span{display:block;width:0;height:0;border-top:13px solid var(--teal);border-right:14.5px solid transparent;border-left:14.5px solid transparent}
.answer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:135px;margin-top:24px;padding:0;background:#fff;text-align:center}
.answer h3{margin:0;font-size:32px;font-weight:700;line-height:56px;white-space:nowrap}
.answer h3 strong{color:var(--teal)}
.answer p{margin:16px 0 0;font-size:18px;font-weight:500;line-height:31.5px;text-align:center}

@media(min-width:761px) and (max-width:1000px){
  .problem{height:auto;padding:100px 24px}
  .problem>.container>.problem-title{height:auto;padding:40px 48px 0;font-size:28px;line-height:48px}
  .worry-list{grid-template-columns:repeat(2,minmax(0,1fr));height:auto;padding:40px 48px 48px}
  .answer{height:auto}
}

@media(max-width:760px){
  .problem{height:auto;padding:100px 19.5px}
  .problem>.container>.problem-title{height:auto;padding:28px 20px 0;font-size:22px;line-height:36px}
  .worry-list{display:grid;grid-template-columns:1fr;gap:24px;height:auto;padding:32px 20px 40px}
  .worry{height:104px;font-size:14px;line-height:25px}
  .worry:before{top:-19px;font-size:38px}
  .problem-arrow{margin-top:12px}
  .answer{height:auto;margin-top:20px}
  .answer h3{font-size:20px;line-height:32px;white-space:nowrap}
  .answer p{width:330px;max-width:100%;margin-top:14px;font-size:14px;font-weight:300;line-height:26px}
}

/* Problem section typography */
.problem{color:#292929;font-synthesis:none}
.problem>.container>.problem-title{font-size:32px;font-weight:400;line-height:56px}
.worry{color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.answer h3{color:#292929;font-size:32px;font-weight:400;line-height:56px}
.answer h3 strong{color:var(--teal);font-weight:600}
.answer p{color:#292929;font-size:16px;font-weight:400;line-height:1.8}

/* Strength section: overlapping card layout */
#strength{height:auto;padding:120px 32px 0;background:#fff;color:#292929;font-synthesis:none}
#strength>.container{max-width:1216px;padding:80px 0;border-radius:20px;background:#f5f5f5;overflow:visible}
.strength-head{display:flex;flex-direction:column;align-items:center;margin:0 0 30px;text-align:center}
.strength-head .eyebrow{color:#292929;font-size:64px;font-weight:400;line-height:1;letter-spacing:1.92px}
.strength-head .section-title{margin-top:16px;padding:0;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.strength-list{display:flex;flex-direction:column;gap:80px;width:90%;margin:0 auto;padding:0}
.strength-item,.strength-item:nth-child(even){position:relative;display:flex;align-items:center;gap:32px;width:100%;height:388px;min-height:388px;padding:40px 88px 40px 48px;border-radius:10px;background:transparent;overflow:hidden}
.strength-item:nth-child(even){flex-direction:row-reverse;padding:40px 48px 40px 88px}
.strength-item:before{position:absolute;z-index:0;top:0;left:0;width:72px;height:72px;border:0;border-radius:10px 0 0;background:#ddeeee;content:""}
.strength-item:nth-child(even):before{right:0;left:auto;border:0;border-radius:0 10px 0 0}
.strength-copy{position:relative;z-index:2;flex:1;min-width:0;padding:0}
.strength-num{display:block;color:var(--teal);font-size:18px;font-weight:400;line-height:1.8}
.strength-item h3{margin:12px 0 24px;color:#292929;font-size:32px;font-weight:700;line-height:1.5}
.strength-item p{margin:0;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.strength-item img,.strength-item:nth-child(3) img{position:relative;z-index:2;flex:0 0 calc(50% - 16px);width:calc(50% - 16px);height:100%;object-fit:cover;border-radius:10px;transform:none}
.strength-item:nth-child(even) img{transform:none}

.strength-item:after{position:absolute;z-index:1;top:8px;bottom:8px;left:8px;width:63%;border-radius:10px;background:#fff;content:""}
.strength-item:nth-child(even):after{right:8px;left:auto}
.strength-motion .strength-item:after,.strength-motion .strength-item .strength-copy{opacity:0;transform:translateX(-56px)}
.strength-motion .strength-item img{opacity:0;transform:translateX(-32px)}
.strength-motion.strength-motion-ready .strength-item:after,.strength-motion.strength-motion-ready .strength-item .strength-copy,.strength-motion.strength-motion-ready .strength-item img{transition:opacity 1.35s cubic-bezier(.22,1,.36,1),transform 1.35s cubic-bezier(.22,1,.36,1)}
.strength-motion .strength-item:nth-child(even):after,.strength-motion .strength-item:nth-child(even) .strength-copy{transform:translateX(52px)}
.strength-motion .strength-item:nth-child(even) img{transform:translateX(32px)}
.strength-motion .strength-item:before{opacity:0;clip-path:inset(0 100% 100% 0);transform:none}
.strength-motion.strength-motion-ready .strength-item:before{transition:opacity .55s ease-out .42s,clip-path .65s cubic-bezier(.22,1,.36,1) .42s}
.strength-motion .strength-item:nth-child(even):before{clip-path:inset(0 0 100% 100%)}
.strength-motion .strength-item.is-visible:after,.strength-motion .strength-item.is-visible .strength-copy,.strength-motion .strength-item.is-visible img{opacity:1;transform:translateX(0)}
.strength-motion .strength-item.is-visible:before{opacity:1;transform:scale(1)}
.strength-motion .strength-item.is-visible:nth-child(even):before,.strength-motion .strength-item.is-visible:before{clip-path:inset(0)}

@media(max-width:760px){
  #strength{height:auto;padding:96px 19.5px 0}
  #strength>.container{padding:72px 16px 80px;border-radius:20px}
  .strength-head{margin-bottom:72px}
  .strength-head .eyebrow{font-size:48px;line-height:48px}
  .strength-head .section-title{margin-top:8px;font-size:16px}
  .strength-list{gap:80px;width:100%}
  .strength-item,.strength-item:nth-child(even){flex-direction:column;align-items:stretch;gap:20px;width:100%;height:auto;min-height:0;margin:0;padding:32px 20px 0;overflow:hidden}
  .strength-item:before,.strength-item:nth-child(even):before{top:0;right:auto;left:0;width:58px;height:58px;border:0;border-radius:10px 0 0;background:#ddeeee}
  .strength-item:nth-child(even):before{right:0;left:auto;border-radius:0 10px 0 0}
  .strength-item:after,.strength-item:nth-child(even):after{inset:6px 6px 6px 6px;width:auto;border-radius:10px}
  .strength-copy{order:1;padding:0}
  .strength-num{font-size:16px}
  .strength-item h3{margin:10px 0 18px;font-size:22px;line-height:1.5}
  .strength-item p{font-size:16px;line-height:1.8}
  .strength-item img,.strength-item:nth-child(even) img,.strength-item:nth-child(3) img{order:2;flex-basis:auto;width:calc(100% + 20px);height:220px;border-radius:10px;transform:translate(10px,16px)}
  .strength-motion .strength-item.is-visible img,.strength-motion .strength-item.is-visible:nth-child(even) img{transform:translate(10px,16px)}
}

@media(prefers-reduced-motion:reduce){
  .strength-motion .strength-item:after,.strength-motion .strength-item .strength-copy,.strength-motion .strength-item img,.strength-motion .strength-item:before{opacity:1;transform:none;clip-path:none;transition:none}
}

/* Problem answer entrance */
.answer-motion .answer h3{opacity:0;transform:translateY(30px) scale(.92)}
.answer-motion .answer p{opacity:0;transform:translateY(20px)}
.answer-motion.answer-motion-ready .answer h3{transition:opacity 1.15s cubic-bezier(.22,1,.36,1),transform 1.15s cubic-bezier(.22,1,.36,1)}
.answer-motion.answer-motion-ready .answer p{transition:opacity .95s cubic-bezier(.22,1,.36,1) .28s,transform .95s cubic-bezier(.22,1,.36,1) .28s}
.answer-motion .answer.is-answer-visible h3,.answer-motion .answer.is-answer-visible p{opacity:1;transform:translateY(0) scale(1)}

@media(prefers-reduced-motion:reduce){
  .answer-motion .answer h3,.answer-motion .answer p{opacity:1;transform:none;transition:none}
}

/* Service: sticky heading and scrolling cards */
.site-main{overflow:clip}
.services{height:auto;padding:160px 32px 180px;background:#fff;color:#292929;font-synthesis:none}
.services>.container{display:grid;grid-template-columns:minmax(260px,372px) minmax(0,658px);grid-template-rows:auto;column-gap:80px;align-items:start;max-width:1110px}
.service-heading{position:sticky;top:128px;align-self:start}
.service-heading .eyebrow{margin:0;color:var(--teal);font-size:64px;font-weight:400;line-height:1;letter-spacing:1.92px}
.service-heading .section-title{margin:16px 0 0;padding:0;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.service-content{grid-column:2;min-width:0}
.service-content>.section-lead{margin:0 0 56px;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.service-grid{display:flex;flex-direction:column;gap:80px;margin:0}
.service-card,.service-card:nth-child(even){display:flex;flex-direction:column;width:100%;min-height:0;margin:0;padding:36px;border:1px solid #dedede;border-radius:20px;background:#fff;color:#292929;box-shadow:none}
.service-card h3{margin:0 0 28px;color:var(--teal);font-size:28px;font-weight:500;line-height:1.5;letter-spacing:0}
.service-card .service-image{width:100%;height:280px;margin:0 0 28px;object-fit:cover;border-radius:12px}
.service-card>p{margin:0 0 28px;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.service-card h4{margin:0 0 14px;color:var(--teal);font-size:16px;font-weight:500;line-height:1.8}
.service-card ul{margin:0 0 28px;padding:20px 44px 20px 4px;list-style:none;border-top:1px solid #dedede;border-bottom:1px solid #dedede;color:#292929;font-size:16px;font-weight:400;line-height:2}
.service-card li{position:relative;padding-left:1em;color:#292929}
.service-card li:before{position:absolute;top:0;left:0;width:1em;content:"・";color:var(--teal)}
.service-card .price{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px;padding:18px 22px;border:0;border-radius:10px;background:#eef7f7;color:#292929;font-size:16px;font-weight:400;line-height:1.5}
.service-card .price strong{display:block;margin:0;color:var(--teal);font-size:24px;font-weight:500;line-height:1.4}
.service-card .price .price-tax{font-size:12px;color:inherit;white-space:nowrap;vertical-align:baseline}
.service-card .price-note{margin:-14px 0 28px;color:#666;font-size:13px;font-weight:400;line-height:1.7}
.service-card .btn{align-self:flex-end;justify-content:flex-end;gap:12px;width:auto;min-width:0;height:42px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#292929;font-size:14px;font-weight:400}
.service-card .btn:after{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--teal);border-radius:50%;color:var(--teal);content:"→";font-size:13px}
.service-card .btn:hover{background:transparent;color:var(--teal)}
.service-motion .service-card{opacity:0;transform:translateY(40px)}
.service-motion.service-motion-ready .service-card{transition:opacity .95s cubic-bezier(.22,1,.36,1),transform .95s cubic-bezier(.22,1,.36,1)}
.service-motion .service-card.is-service-visible{opacity:1;transform:translateY(0)}

@media(min-width:761px) and (max-width:1000px){
  .services{padding:120px 24px 160px}
  .services>.container{grid-template-columns:minmax(220px,32%) minmax(0,68%);column-gap:40px;max-width:none}
  .service-heading{top:120px}
  .service-card,.service-card:nth-child(even){padding:28px}
  .service-card .service-image{height:240px}
  .service-card .price{align-items:flex-start;flex-direction:column;gap:6px}
}

@media(max-width:760px){
  .services{height:auto;padding:104px 20px 128px}
  .services>.container{display:block;max-width:720px}
  .service-heading{position:static}
  .service-heading .eyebrow{font-size:48px;line-height:48px}
  .service-heading .section-title{margin-top:8px}
  .service-content{margin-top:36px}
  .service-content>.section-lead{margin:0 0 40px;font-size:16px;line-height:1.8}
  .service-grid{gap:48px}
  .service-card,.service-card:nth-child(even){width:100%;min-height:0;margin:0;padding:24px 20px;border-radius:16px}
  .service-card h3{margin-bottom:22px;font-size:22px}
  .service-card .service-image{height:210px;margin-bottom:22px;border-radius:10px}
  .service-card>p,.service-card h4,.service-card ul,.service-card .price{font-size:15px}
  .service-card .price{align-items:flex-start;flex-direction:column;gap:6px}
  .service-card .price strong{font-size:22px}
}

@media(prefers-reduced-motion:reduce){
  .service-motion .service-card{opacity:1;transform:none;transition:none}
}

/* Keep all existing Works cards reachable without changing their layout. */
#works .works-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
#works .works-scroll::-webkit-scrollbar{display:none}

/* Works: preserve the card geometry while limiting motion to image and title. */
#works .work{cursor:pointer}
#works .work-image{display:block;width:400px;height:400px;overflow:hidden;border-radius:0}
#works .work-image img{transition:transform .6s cubic-bezier(.22,1,.36,1)}
#works .work h3{margin-top:18px;color:#292929;transition:color .45s ease}
@media(hover:hover) and (pointer:fine){
  #works .work:hover .work-image img{transform:scale(1.04)}
  #works .work:hover h3{color:var(--teal)}
}
@media(max-width:760px){
  #works .work-image{width:280px;height:280px}
}
@media(prefers-reduced-motion:reduce){
  #works .work-image img,#works .work h3{transition:none}
}

/* Works continuous carousel */
#works>.container{position:static}
#works{position:relative}
#works .works-head .btn{position:absolute;top:112px;right:10%;justify-content:flex-end;gap:16px;width:auto;min-width:0;height:58px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#292929;font-size:16px;font-weight:400}
#works .works-head .btn:after{display:grid;place-items:center;width:58px;height:58px;border:1px solid var(--teal);border-radius:50%;color:var(--teal);font-size:16px;transition:background-color .3s ease,color .3s ease}
#works .works-head .btn:hover{background:transparent;color:#292929}
#works .works-head .btn:hover:after{background:var(--teal);color:#fff}
#works .works-grid{will-change:scroll-position}
#works .works-controls{position:absolute;right:10%;bottom:58px;display:flex;gap:12px;z-index:2}
#works .works-arrow{display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid var(--teal);border-radius:50%;background:transparent;color:var(--teal);cursor:pointer;font:400 16px/1 inherit;transition:background-color .3s ease,color .3s ease}
@media(hover:hover) and (pointer:fine){
  #works .works-arrow:hover{background:var(--teal);color:#fff}
}
@media(max-width:760px){
  #works .works-head .btn{position:static;gap:10px;height:42px;font-size:12px}
  #works .works-head .btn:after{width:42px;height:42px;font-size:13px}
  #works .works-controls{right:20px;bottom:42px}
  #works .works-arrow{width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce){
  #works .works-grid{will-change:auto}
}

/* Flow */
.flow{height:auto;min-height:900px;padding:140px 40px 170px;background:#fff;color:#292929}
.flow>.container{width:100%;max-width:1120px}
.flow>.container>.eyebrow{margin:0;color:#292929;font-size:64px;font-weight:400;line-height:1;text-align:center;letter-spacing:1.92px}
.flow>.container>.section-title{margin:14px 0 0;padding:0;color:#292929;font-size:16px;font-weight:400;line-height:1.8;text-align:center}
.flow-list{display:grid;grid-template-columns:repeat(4,minmax(0,220px));justify-content:space-between;gap:48px;margin:88px 0 0}
.flow-item{position:relative;width:100%;height:auto;min-height:390px;padding:252px 0 0;color:#292929;text-align:center}
.flow-item:before{position:absolute;top:0;left:50%;width:220px;height:220px;border:0;border-radius:50%;content:"";transform:translateX(-50%);background-color:#f5f5f5;background-position:center;background-repeat:no-repeat;background-size:auto 92px;box-shadow:none}
.flow-item:nth-child(1):before{background-image:url('assets/images/4233a4389fb01fbc.svg')}
.flow-item:nth-child(2):before{background-image:url('assets/images/e38b4ea982ce51d7.svg')}
.flow-item:nth-child(3):before{background-image:url('assets/images/048a62e24a660843.svg')}
.flow-item:nth-child(4):before{background-image:url('assets/images/8c6ed3f0f9897fbd.svg')}
.flow-item:not(:last-child):after{position:absolute;top:99px;right:-34px;width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:13px solid var(--teal);content:"";transform:none;color:transparent;font-size:0}
.flow-num{display:none}
.flow-item h3{margin:0 0 18px;color:var(--teal);font-size:20px;font-weight:500;line-height:1.5;letter-spacing:0}
.flow-item p{margin:0;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.flow-motion .flow-item{opacity:0;transform:translateY(15px)}
.flow-motion.flow-motion-ready .flow-item{transition:opacity .9s cubic-bezier(.22,1,.36,1),transform .9s cubic-bezier(.22,1,.36,1)}
.flow-motion .flow-item:nth-child(2){transition-delay:.15s}
.flow-motion .flow-item:nth-child(3){transition-delay:.3s}
.flow-motion .flow-item:nth-child(4){transition-delay:.45s}
.flow-motion .flow-item.is-flow-visible{opacity:1;transform:translateY(0)}
@media(max-width:760px){
  .flow{min-height:0;padding:104px 20px 128px}
  .flow>.container{width:100%;max-width:390px}
  .flow>.container>.eyebrow{font-size:48px;line-height:1}
  .flow>.container>.section-title{margin-top:10px;font-size:16px}
  .flow-list{display:flex;flex-direction:column;align-items:center;gap:72px;margin-top:64px}
  .flow-item{width:100%;min-height:0;padding:202px 0 0}
  .flow-item:before{top:0;width:170px;height:170px;background-size:auto 72px}
  .flow-item:not(:last-child):after{top:auto;right:auto;bottom:-47px;left:50%;border-top:13px solid var(--teal);border-right:9px solid transparent;border-bottom:0;border-left:9px solid transparent;transform:translateX(-50%)}
  .flow-item h3{margin-bottom:14px;font-size:18px}
  .flow-item p{font-size:16px;line-height:1.8}
}
@media(prefers-reduced-motion:reduce){
  .flow-motion .flow-item{opacity:1;transform:none;transition:none}
}

/* Contact */
.nav-contact{gap:11px}
.nav>a:not(.nav-contact){color:#292929;transition:color .3s ease}
.nav>a:not(.nav-contact):hover{color:var(--teal)}
.nav-contact-icon{display:block;flex:0 0 auto;width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.contact{position:relative;height:auto;min-height:720px;padding:120px 40px 110px;border-radius:0;background:#fff;color:#292929;isolation:isolate}
.contact:before{position:absolute;z-index:-1;inset:0;border-radius:48px 48px 0 0;background:linear-gradient(90deg,#f5f2e5 0%,#f0f3e9 52%,#dff3ef 100%);content:""}
.contact>.container{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:74%;max-width:1000px;min-height:490px;height:auto;padding:70px 56px 64px;border:0;border-radius:24px;background:#fff;box-shadow:none}
.contact .eyebrow{margin:0;color:#292929;font-size:64px;font-weight:400;line-height:1;letter-spacing:1.92px;text-align:center}
.contact .section-title{margin:14px 0 0;padding:0;color:#292929;font-size:16px;font-weight:400;line-height:1.8;text-align:center}
.contact>.container>p:not(.eyebrow){max-width:620px;margin:42px 0 46px;color:#292929;font-size:16px;font-weight:400;line-height:1.9;text-align:center}
.contact .btn{position:relative;display:flex;width:380px;min-width:0;height:76px;margin:0;padding:0 64px 0 32px;border:0;border-radius:12px;background:var(--teal);color:#fff;font-size:16px;font-weight:500;transition:background-color .45s ease}
.contact .btn:after{position:absolute;right:28px;color:#fff;font-size:18px;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.contact .btn:hover{background:#5f98a2;color:#fff}
.contact .btn:hover:after{transform:translateX(4px)}
.contact-motion .contact>.container{opacity:0;transform:translateY(20px)}
.contact-motion.contact-motion-ready .contact>.container{transition:opacity .9s cubic-bezier(.22,1,.36,1),transform .9s cubic-bezier(.22,1,.36,1)}
.contact-motion .contact>.container.is-contact-visible{opacity:1;transform:translateY(0)}
@media(max-width:760px){
  .nav-contact{gap:10px}
  .nav-contact-icon{width:17px;height:17px}
  .contact{min-height:0;padding:72px 20px 80px;border-radius:0}
  .contact:before{border-radius:32px 32px 0 0}
  .contact>.container{width:100%;min-height:440px;padding:52px 20px 48px;border-radius:20px}
  .contact .eyebrow{font-size:48px}
  .contact .section-title{margin-top:10px;font-size:16px}
  .contact>.container>p:not(.eyebrow){margin:32px 0 38px;font-size:15px;line-height:1.9}
  .contact .btn{width:100%;max-width:350px;height:68px;padding-right:56px;font-size:15px}
  .contact .btn:after{right:24px}
}
@media(prefers-reduced-motion:reduce){
  .contact-motion .contact>.container{opacity:1;transform:none;transition:none}
  .contact .btn,.contact .btn:after{transition:none}
}

/* Company / About page */
.company-page{overflow:clip;background:#fff;color:#292929;font-synthesis:none}
.company-shell{width:calc(100% - 128px);max-width:1120px;margin:0 auto}
.company-hero{padding:210px 0 86px;border-bottom:1px solid rgba(111,169,178,.45);background:#fff}
.company-hero h1{margin:0;color:#292929;font-size:80px;font-weight:400;line-height:1;letter-spacing:2.4px}
.company-hero p{margin:16px 0 0;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.company-section{padding:150px 0;background:#fff}
.company-layered{position:relative;min-height:850px}
.company-intro-card{position:absolute;z-index:2;top:0;left:0;width:620px;padding:64px 64px 68px;border-radius:24px;background:#fff;box-shadow:0 12px 38px rgba(41,41,41,.055)}
.company-intro-card:before{position:absolute;z-index:-1;top:-20px;left:-20px;width:72px;height:72px;border-top:5px solid #b9dfe3;border-left:5px solid #b9dfe3;border-radius:14px 0 0;content:""}
.company-intro-card h2,.company-profile-copy h3{margin:0 0 34px;color:#292929;font-size:32px;font-weight:400;line-height:1.6;letter-spacing:.3px}
.company-body p{margin:0 0 25px;color:#292929;font-size:16px;font-weight:400;line-height:1.95}
.company-body p:last-child{margin-bottom:0}
.company-intro-image{position:absolute;z-index:1;top:94px;right:0;width:650px;height:650px;margin:0;overflow:hidden;border-radius:24px}
.company-intro-image img{width:100%;height:100%;object-fit:cover}
.company-profile{padding-top:130px}
.company-section-head{text-align:center}
.company-en{margin:0;color:#292929;font-size:64px;font-weight:400;line-height:1;letter-spacing:1.92px}
.company-section-head h2{margin:14px 0 0;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.company-profile-grid{display:grid;grid-template-columns:minmax(0,508px) minmax(0,480px);align-items:start;justify-content:space-between;gap:72px;margin-top:88px}
.company-profile-image{width:100%;height:670px;margin:0;overflow:hidden;border-radius:20px}
.company-profile-image img{width:100%;height:100%;object-fit:cover;object-position:center top}
.company-profile-copy{padding:0}
.company-profile-copy h3{margin-bottom:22px}
.company-profile-copy .company-body p{margin-bottom:16px;font-size:16px;font-weight:400;line-height:1.8;color:#292929}
.company-profile-copy .company-body p:last-child{margin-bottom:0}
.company-signature{margin:22px 0 18px;color:#292929;font-size:14px;font-weight:400;line-height:1.8;text-align:right}
.company-signature strong{display:inline-block;margin-top:4px;font-size:18px;font-weight:400;letter-spacing:.12em}
.company-profile-box{position:relative;overflow:hidden;padding:72px 30px 28px;border:1px solid #ddd;border-radius:20px;background:#fff;box-shadow:none}
.company-profile-box h4{position:absolute;top:0;left:0;margin:0;padding:15px 30px 14px;border-radius:0 0 14px 0;background:#f0ede7;color:#292929;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:.08em}
.company-profile-box p{margin:0;color:#292929;font-size:14px;font-weight:400;line-height:1.8}
.company-values{margin-top:30px;padding:140px 0 160px;border-radius:56px 56px 0 0;background:#f5f5f5}
.company-values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:80px}
.company-value{min-height:370px;padding:44px 38px;border-radius:20px;background:#fff}
.company-value span{display:block;margin-bottom:38px;color:var(--teal);font-size:40px;font-weight:400;line-height:1}
.company-value h3{margin:0 0 24px;color:#292929;font-size:24px;font-weight:400;line-height:1.55}
.company-value p{margin:0;color:#292929;font-size:16px;font-weight:400;line-height:1.9}
.company-motion .company-reveal{opacity:0;transform:translateY(24px)}
.company-motion.company-motion-ready .company-reveal{transition:opacity 1.15s cubic-bezier(.22,1,.36,1),transform 1.15s cubic-bezier(.22,1,.36,1)}
.company-motion .company-reveal-image{transform:translateX(-36px)}
.company-motion .company-reveal-card{transform:translateX(32px)}
.company-motion .company-profile-copy.company-reveal-card{transform:translateY(24px);transition-delay:.18s}
.company-motion .company-reveal.is-company-visible{opacity:1;transform:translate(0,0)}
.company-values-grid .company-value:nth-child(2){transition-delay:.14s}
.company-values-grid .company-value:nth-child(3){transition-delay:.28s}
@media(max-width:760px){
  .company-shell{width:calc(100% - 40px);max-width:560px}
  .company-hero{padding:150px 0 62px}
  .company-hero h1{font-size:56px}
  .company-hero p{margin-top:10px}
  .company-section{padding:96px 0}
  .company-layered{display:flex;min-height:0;flex-direction:column}
  .company-intro-card{position:relative;top:auto;left:auto;order:1;width:100%;padding:0;background:transparent;box-shadow:none}
  .company-intro-card:before{display:none}
  .company-intro-card h2,.company-profile-copy h3{margin-bottom:28px;font-size:24px;line-height:1.6}
  .company-body p{font-size:15px;line-height:1.9}
  .company-intro-image{position:relative;top:auto;right:auto;order:2;width:100%;height:360px;margin-top:48px;border-radius:18px}
  .company-profile{padding-top:92px}
  .company-en{font-size:44px;line-height:1.12}
  .company-profile-grid{display:flex;flex-direction:column;gap:44px;margin-top:58px}
  .company-profile-image{order:1;height:460px;border-radius:18px}
  .company-profile-copy{order:2;padding:0}
  .company-signature{margin:24px 0 18px}
  .company-profile-box{padding:68px 22px 24px;border-radius:18px}
  .company-profile-box h4{padding:14px 24px 13px}
  .company-values{margin-top:0;padding:100px 0 120px;border-radius:36px 36px 0 0}
  .company-values-grid{grid-template-columns:1fr;gap:24px;margin-top:58px}
  .company-value{min-height:0;padding:36px 28px}
  .company-value span{margin-bottom:26px;font-size:34px}
  .company-value h3{margin-bottom:18px;font-size:22px}
  .company-value p{font-size:15px}
  .company-motion .company-reveal-image,.company-motion .company-reveal-card{transform:translateY(20px)}
}
@media(prefers-reduced-motion:reduce){
  .company-motion .company-reveal{opacity:1;transform:none;transition:none}
}

/* Works archive */
.works-page{overflow:clip;background:#fff;color:#292929;font-synthesis:none}
.works-archive-shell{width:calc(100% - 128px);max-width:1120px;margin:0 auto}
.works-archive-hero{padding:210px 0 86px;border-bottom:1px solid rgba(111,169,178,.45);background:#fff}
.works-archive-hero h1{margin:0;color:#292929;font-size:80px;font-weight:400;line-height:1;letter-spacing:2.4px}
.works-archive-hero p{margin:16px 0 0;color:#292929;font-size:16px;font-weight:400;line-height:1.8}
.works-archive-list{padding:120px 0 170px;background:#fff}
.works-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:72px 36px}
.works-archive-card{display:block;min-width:0;color:#292929;cursor:pointer}
.works-archive-image{display:block;overflow:hidden;width:100%;aspect-ratio:1;border-radius:12px;background:#f5f5f5}
.works-archive-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.works-archive-card h2{margin:20px 0 0;color:#292929;font-size:16px;font-weight:500;line-height:1.7;transition:color .4s ease}
@media(hover:hover) and (pointer:fine){
  .works-archive-card:hover .works-archive-image img{transform:scale(1.04)}
  .works-archive-card:hover h2{color:var(--teal)}
}
@media(min-width:761px) and (max-width:1000px){
  .works-archive-shell{width:calc(100% - 64px)}
  .works-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:56px 30px}
}
@media(max-width:760px){
  .works-archive-shell{width:calc(100% - 40px);max-width:560px}
  .works-archive-hero{padding:150px 0 62px}
  .works-archive-hero h1{font-size:56px}
  .works-archive-hero p{margin-top:10px}
  .works-archive-list{padding:72px 0 110px}
  .works-archive-grid{grid-template-columns:1fr;gap:48px}
  .works-archive-card h2{margin-top:16px;font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .works-archive-image img,.works-archive-card h2{transition:none}
}

/* Sakura work detail */
.work-detail-page{overflow:clip;background:#fff;color:#292929;font-synthesis:none}
.work-detail-shell{width:calc(100% - 128px);max-width:1120px;margin:0 auto}
.work-detail-head{padding:160px 0 0;border-bottom:0;background:#fff}
.work-detail-head .work-detail-shell{position:relative;width:800px;max-width:calc(100% - 128px)}
.work-detail-title-row{display:block}
.work-detail-title-row h1{max-width:none;margin:0;color:#292929;font-size:32px;font-weight:400;line-height:1.6;letter-spacing:.3px}
.work-site-link{position:absolute;right:0;bottom:0;font-size:14px;line-height:1.75}
.work-text-link{display:inline-flex;align-items:center;gap:12px;padding:0;border:0;color:#292929;font-weight:400;line-height:1.5;transition:color .35s ease}
.work-text-link-arrow{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border:1px solid var(--teal);border-radius:50%;color:var(--teal);transition:border-color .35s ease,color .35s ease}
.work-detail-meta{display:block;margin:16px 0 0}
.work-detail-meta>div{display:flex;align-items:baseline;gap:8px;min-height:22.4px}
.work-detail-meta dt{color:#292929;font-size:16px;font-weight:400;line-height:1.4}
.work-detail-meta dt:after{content:" :"}
.work-detail-meta dd{margin:0;color:#292929;font-size:16px;font-weight:400;line-height:1.4}
.work-detail-visuals{padding-top:48px;padding-bottom:150px}
.work-detail-main{width:800px;max-width:100%;margin:0 auto;overflow:hidden;border-radius:16px}
.work-detail-main img{width:100%;height:auto}
.work-detail-gallery{display:flex;flex-direction:column;gap:80px;margin-top:120px}
.work-detail-gallery figure{width:890px;max-width:100%;margin:0 auto;overflow:hidden;border-radius:14px;background:#f5f5f5}
.work-detail-gallery img{width:100%;height:auto}
.work-back-link{position:relative;display:flex;width:max-content;margin:90px auto 0;font-size:15px}
@media(hover:hover) and (pointer:fine){
  .work-text-link:hover{color:var(--teal)}
  .work-text-link:hover .work-text-link-arrow{color:var(--teal)}
}
@media(max-width:760px){
  .work-detail-shell{width:calc(100% - 40px);max-width:560px}
  .work-detail-head{padding:132px 0 0}
  .work-detail-head .work-detail-shell{width:calc(100% - 40px);max-width:560px}
  .work-detail-title-row h1{font-size:26px;line-height:1.55}
  .work-site-link{position:relative;margin-top:26px;font-size:14px}
  .work-detail-meta{margin-top:22px}
  .work-detail-meta>div{gap:8px}
  .work-detail-meta dt{font-size:15px}
  .work-detail-meta dd{font-size:15px}
  .work-detail-visuals{padding-top:52px;padding-bottom:100px}
  .work-detail-main{border-radius:12px}
  .work-detail-gallery{gap:44px;margin-top:72px}
  .work-detail-gallery figure{border-radius:10px}
  .work-back-link{margin-top:62px;font-size:14px}
}

/* Shared text + circular-arrow link */
.service-card .btn,#works .works-head .btn,.work-text-link{--text-arrow-space:54px;position:relative;color:#292929;transition:color .35s ease}
#works .works-head .btn{--text-arrow-space:70px}
.service-card .btn:before,#works .works-head .btn:before,.work-text-link:before{position:absolute;right:var(--text-arrow-space);bottom:-4px;left:0;height:1px;background:var(--teal);content:"";transform:scaleX(0);transform-origin:left center;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.service-card .btn:after,#works .works-head .btn:after,.work-text-link-arrow{background:transparent;color:var(--teal);transition:border-color .35s ease,background-color .35s ease,color .35s ease}
@media(hover:hover) and (pointer:fine){
  .service-card .btn:hover,#works .works-head .btn:hover,.work-text-link:hover{background:transparent;color:var(--teal)}
  .service-card .btn:hover:before,#works .works-head .btn:hover:before,.work-text-link:hover:before{transform:scaleX(1)}
  .service-card .btn:hover:after,#works .works-head .btn:hover:after,.work-text-link:hover .work-text-link-arrow{border-color:transparent;background:transparent;color:var(--teal)}
}

/* Keep the detail-page external link in the right column. */
.work-detail-title-row .work-site-link{position:absolute;right:0;bottom:0}
@media(max-width:700px){
  .work-detail-title-row .work-site-link{position:relative;right:auto;bottom:auto}
}

/* Shared wrapping: Japanese punctuation stays with text; Latin words stay whole. */
body :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,figcaption,label,button,a,.worry){
  word-break:normal;
  overflow-wrap:break-word;
  line-break:strict;
  hyphens:none;
}
body :where(button,a){text-wrap:pretty}
/* Prefer natural paragraph flow; named terms are protected separately. */
body :where(p,li,dt,dd,figcaption,label,.worry){text-wrap:pretty}
body :where(h1,h2,h3,h4,h5,h6){text-wrap:balance}
/* Let narrow service descriptions wrap as sentences instead of desktop lines. */
@media(max-width:768px){
  .service-card>p:not(.price):not(.price-note) br{display:none}
}

/* Only short terms stay together, never an entire paragraph. */
body .dp-keep-term{white-space:nowrap;word-break:normal;overflow-wrap:normal;hyphens:none}

/* Flow: circles participate in layout and never exceed their grid column. */
#flow{--flow-circle:clamp(170px,calc((100vw - 224px)/4),220px)}
#flow>.container{width:100%;max-width:1120px}
#flow .flow-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:48px;row-gap:64px;align-items:start}
#flow .flow-item{width:100%;min-width:0;height:auto;padding:0}
#flow .flow-item::before{position:relative;display:block;inset:auto;transform:none;width:min(100%,var(--flow-circle));height:auto;aspect-ratio:1;border-radius:50%;margin:0 auto 32px;background-position:center;background-size:auto 42%;background-repeat:no-repeat}
#flow .flow-item:not(:last-child)::after{top:calc(var(--flow-circle)/2 - 9px);right:-30.5px;bottom:auto;left:auto;transform:none;border-top:9px solid transparent;border-right:0;border-bottom:9px solid transparent;border-left:13px solid var(--teal)}
#flow .flow-item h3{white-space:normal;text-wrap:balance;word-break:normal;line-break:strict}
#flow .flow-item p{max-width:100%;text-wrap:balance;word-break:normal;line-break:strict}
@media(max-width:1024px){
  #flow{--flow-circle:clamp(180px,30vw,220px);min-height:0}
  #flow .flow-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  #flow .flow-item{min-height:0}
  #flow .flow-item:nth-child(2)::after{display:none}
}
@media(max-width:540px){
  #flow{--flow-circle:170px}
  #flow>.container{max-width:390px}
  #flow .flow-list{grid-template-columns:minmax(0,1fr);row-gap:72px}
  #flow .flow-item:not(:last-child)::after{display:block;top:auto;right:auto;bottom:-47px;left:50%;transform:translateX(-50%);border-top:13px solid var(--teal);border-right:9px solid transparent;border-bottom:0;border-left:9px solid transparent}
}
