/* An understated warmer home treatment, with the original photos and content. */
.ivory-curves{--paper:#f8f4eb;--ink:#403a32;--accent:#2d7c77;--line:#e2d8c9;background:var(--paper)}
.ivory-curves .mast{background:#fbf8f1;border-color:#eae1d3}
.ivory-curves :is(.hero,.hero-soft-scene,.detail-intro,.classic-hero)::before{content:"";position:absolute;z-index:1;bottom:-1px;left:0;right:0;height:clamp(24px,5.2vw,75px);pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23f8f4eb' d='M0 69C228 106 424 104 710 55C960 12 1145 -21 1440 42V100H0Z'/%3E%3Cpath fill='none' stroke='%23d5e7df' stroke-width='2' d='M0 69C228 106 424 104 710 55C960 12 1145 -21 1440 42'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat}
.ivory-curves .hero-controls{bottom:clamp(21px,4.4vw,60px);z-index:2}
.ivory-curves .hero-copy{transform:translateY(2%)}
.ivory-curves .hero h1{letter-spacing:.047em}
.ivory-curves .quick{gap:clamp(10px,1.6vw,19px);margin-top:21px}
.ivory-curves .quick a{position:relative;isolation:isolate;border-color:#eee4d5;border-radius:19px;background:#fffaf2;box-shadow:0 5px 15px #7653390b}
.ivory-curves .quick a::before{content:"";position:absolute;z-index:-1;left:calc(50% + 2px);top:calc(50% - 29px);width:29px;height:29px;background:#d9eeea;border-radius:50%;pointer-events:none}
.ivory-curves .quick a:hover,.ivory-curves .quick a:focus-visible{background:#edf4ec;border-color:#a6c5bb}
.ivory-curves :is(#company,#services,#works)>.label{border:0;text-align:center;padding:0;margin-bottom:clamp(20px,4vw,42px)}
.ivory-curves :is(#company,#services,#works)>.label>span{color:#286e69;font-size:var(--section-en)}
.ivory-curves :is(#company,#services,#works)>.label>span::after{content:"";width:40px;height:1px;display:block;background:#71aaa4;margin:12px auto 14px}
.ivory-curves :is(#company,#services,#works)>.label h2{font-size:var(--section-ja);letter-spacing:.11em}
.ivory-curves .about-copy{text-align:center}
.ivory-curves .about-copy p{max-width:34em;margin:14px auto 20px}
.ivory-curves .about-grid img{border-radius:14px}
.ivory-curves .strength{border-color:#d8ddcd;background:#eef3e9;border-radius:17px}
.ivory-curves .services article{border-radius:18px;border-color:#ece1d0;background:#fffaf2;box-shadow:0 5px 18px #7653390b}
.ivory-curves .services a.service-detail-link,.ivory-curves a.ivory-action-fill{border-radius:999px;border:1px solid #357b75;background:#367e78;color:#fffdf8;padding-inline:17px}
.ivory-curves .services a.service-detail-link:hover,.ivory-curves a.ivory-action-fill:hover{border-color:#205b55;background:#276760;color:#fffdf8}
.ivory-curves .contact{border:1px solid var(--line);border-radius:18px}
@media(max-width:700px){.ivory-curves .hero-copy{transform:translateY(3%)}.ivory-curves .quick a::before{top:calc(50% - 25px);width:23px;height:23px}.ivory-curves .quick a{min-height:99px;border-radius:15px}.ivory-curves .about-grid{gap:20px}.ivory-curves .about-copy{grid-row:1}.ivory-curves .hero h1{font-size:clamp(28px,9.2vw,49px)}}

/* Carry the home palette and shapes through the remaining pages. */
.ivory-sub.ivory-curves{--panel:#fffaf2;--sand:#f1e8da;--sea:#e3f0eb;--teal:#286e69;--edge:#94aaa0}
.ivory-curves :is(.detail-intro,.classic-hero){position:relative;padding-bottom:clamp(54px,9vw,110px);border-bottom:0}
.ivory-curves .detail-intro h1,.ivory-curves .detail-intro .hero-opening-intro,.ivory-curves .detail-intro .kicker{text-align:center}
.ivory-curves .detail-intro .breadcrumb{margin-bottom:clamp(24px,4vw,48px)}
.ivory-curves .hero-soft-copy{padding-bottom:clamp(54px,7vw,84px)}
.ivory-curves :is(.scope-item,.scope-prep,.recruit-jobs li,.work article,.cc-service-button,.tiff-recruit-banner){border-radius:18px;border-color:#ece1d0;box-shadow:0 5px 18px #7653390b}
.ivory-curves .cc-service-button[aria-current=page]{border-color:#91b8ac;background:var(--sea)}
.ivory-curves .cc-service-button:hover{border-color:var(--accent);background:#edf4ec}
.ivory-curves .tiff-recruit-banner{overflow:hidden}
.ivory-curves .tiff-recruit-badge,.ivory-curves .tiff-recruit-highlights li{border-radius:999px}
.ivory-curves .work-photo-grid img{border-radius:14px}
.ivory-curves .contact{background:var(--sand,#f1e8da)}
.ivory-curves :is(.contact,.inquiry,.service-inquiry,.recruit-inquiry){border-radius:18px}
.ivory-curves :is(input,select,textarea){border-radius:8px}
.ivory-contact.ivory-curves main>section{background:linear-gradient(var(--sand) 0 240px,var(--paper) 240px)}
.ivory-sub.ivory-curves :is(a,button).ivory-action-fill,
.ivory-recruit.ivory-curves .hero-soft-copy .hero-soft-actions a,
.ivory-sub.ivory-curves .recruit-jobs a.service-card-more,
.ivory-sub.ivory-curves .work article a.service-card-more,
.ivory-curves .work-link-return,
.ivory-curves .classic-hero .button{border-radius:999px;border-color:#357b75;background:#367e78;color:#fffdf8}
.ivory-sub.ivory-curves :is(a,button).ivory-action-fill:hover,
.ivory-recruit.ivory-curves .hero-soft-copy .hero-soft-actions a:hover,
.ivory-sub.ivory-curves .recruit-jobs a.service-card-more:hover,
.ivory-sub.ivory-curves .work article a.service-card-more:hover,
.ivory-curves .work-link-return:hover,
.ivory-curves .classic-hero .button:hover{border-color:#205b55;background:#276760;color:#fffdf8}
.ivory-curves :is(.scope-lead-text h2,.work-link-heading){border:0;padding:0}
.ivory-curves :is(.work-link-heading,.tiff-recruit-heading,.work-conditions .wrap)>:is(span,.kicker,p[lang="en"]){display:block}
.ivory-curves :is(.work-link-heading,.tiff-recruit-heading,.work-conditions .wrap)>:is(span,.kicker,p[lang="en"])::after{content:"";display:block;width:36px;height:1px;margin:10px 0 13px;background:#71aaa4}
.ivory-curves :is(.work-link-heading,.tiff-recruit-heading,.work-conditions .wrap){text-align:center}
.ivory-curves :is(.work-link-heading,.tiff-recruit-heading,.work-conditions .wrap)>:is(span,.kicker,p[lang="en"])::after{margin-left:auto;margin-right:auto}
.ivory-curves .work-conditions dl{text-align:left}
@media(max-width:700px){.ivory-curves :is(.scope-item,.scope-prep,.recruit-jobs li,.cc-service-button,.tiff-recruit-banner,.contact,.inquiry,.service-inquiry,.recruit-inquiry){border-radius:14px}}

/* Keep the four main destinations visible and tappable on phones. */
.ivory-curves .head>nav a{display:flex;align-items:center;justify-content:center;min-height:44px;white-space:nowrap}
.ivory-curves .head>nav a:hover{color:#276760;text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){
 .ivory-curves .head{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0}
 .ivory-curves .head .brand{justify-self:start;min-height:58px;margin-inline:18px}
 .ivory-curves .head>nav{display:grid;grid-template-columns:1fr 1fr 1fr 1.25fr;gap:0;margin:0 12px 7px}
 .ivory-curves .head>nav a{font-size:clamp(.75rem,3.35vw,.875rem);line-height:1.3;padding:0 2px;color:#385853;border:0;font-weight:550}
 .ivory-curves .head>nav a+a{border-left:1px solid #d8e0d7}
 .ivory-curves .head>nav .header-contact{background:transparent}
 .ivory-curves .mast{border-bottom:1px solid #a9c8bd}
}

/* Related work uses the home's warm cards and blue-green icon accents. */
.ivory-curves .work-link-nav{position:relative;text-align:center;padding:8px 0 22px}
.ivory-curves .work-link-nav::before,.ivory-curves .work-link-nav::after{content:"";position:absolute;width:clamp(82px,26%,280px);height:54px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 54' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%238abdb6' stroke-opacity='.62' d='M0 51C113 58 160 3 260 3'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.ivory-curves .work-link-nav::before{right:0;top:-9px}
.ivory-curves .work-link-nav::after{left:0;bottom:0;transform:scaleY(-1)}
.ivory-curves .work-link-heading{margin-bottom:23px}
.ivory-curves .work-link-heading>span{letter-spacing:.19em}
.ivory-curves .work-link-nav .cc-service-button-grid{gap:clamp(9px,1.65vw,19px);margin-bottom:23px}
.ivory-curves .work-link-nav .cc-service-button{justify-items:center;gap:6px;padding:clamp(16px,2.7vw,30px) 10px;background:#fffaf2;min-height:163px}
.ivory-curves .work-link-nav .cc-service-button[aria-current=page]{background:#e9f2ea;border-color:#9cbfb5}
.ivory-curves .work-link-nav .cc-service-button:hover{background:#e3f0e9;border-color:var(--accent)}
.ivory-curves .work-link-nav .cc-service-button strong{color:var(--ink);font-size:clamp(1rem,2vw,1.375rem)}
.ivory-curves .work-link-nav .cc-service-button span[lang=en]{font-size:.81rem;letter-spacing:.13em}
.ivory-curves .work-link-return{padding-inline:25px}
.related-work-icon{position:relative;isolation:isolate;display:grid;place-items:center;width:52px;height:50px}
.related-work-icon::before{content:"";position:absolute;z-index:-1;right:0;bottom:1px;width:30px;height:30px;background:#d9eeea;border-radius:50%}
.related-work-icon .service-mark{width:41px;display:block;color:var(--accent)}
@media(max-width:720px){
 .ivory-curves .work-link-nav::before,.ivory-curves .work-link-nav::after{height:30px}
 .ivory-curves .work-link-nav .cc-service-button{grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;justify-items:start;column-gap:11px;row-gap:2px;min-height:76px;padding:10px 13px}
 .ivory-curves .work-link-nav .related-work-icon{grid-row:1/3;align-self:center}
 .ivory-curves .work-link-nav .cc-service-button span[lang=en]{grid-column:2}
}

/* The homepage keeps its copy on two lines before and after the reveal. */
.ivory-copy-line{display:block}
.hero-opening-line{display:inline-block}

/* Keep the reveal in two deliberate lines, independent of viewport wrapping. */
.ivory-english,.ivory-english-line{display:block}
.ivory-curves .hero h1 .ivory-english-line{white-space:nowrap}
@media(max-width:340px){.ivory-curves .hero h1{font-size:clamp(25px,9vw,31px)}}

/* Company details read as one card, with a separate area for qualifications. */
.ivory-curves .company-profile-card{
  padding:clamp(20px,4vw,48px);
  background:#fffaf2;
  border:1px solid #ece1d0;
  border-radius:clamp(15px,2vw,23px);
  box-shadow:0 5px 18px #7653390b;
}
.ivory-curves .company-profile-card{text-align:left}
.ivory-curves .company-profile-card > div:first-child{text-align:center}
.ivory-curves .company-profile-card .kicker{color:#286e69;font:400 var(--section-en)/1.2 var(--serif);letter-spacing:.12em}
.ivory-curves .company-profile-card .kicker::after{content:"";display:block;width:40px;height:1px;background:#71aaa4;margin:12px auto 14px}
.ivory-curves .company-profile-card h2{font:400 var(--section-ja)/1.5 var(--jp);letter-spacing:.11em}
.ivory-curves .company-profile-card dl{max-width:780px;margin:22px 0 0;text-align:left}
.ivory-curves .company-profile-card dl>div{grid-template-columns:minmax(0,1fr);gap:3px;padding:12px 0;border-color:#ede4d8}
.ivory-curves .company-profile-card dt{color:#28645c}
.ivory-curves .company-profile-card #qualifications{border:0;border-radius:12px;padding:14px;background:#eef3e9;margin-top:12px}
.ivory-curves .company-profile-card #qualifications .qualification-list li{justify-content:flex-start}
.ivory-curves .company-profile-card #qualifications li+li{margin-top:3px}
.ivory-curves .company-profile-card #qualifications{gap:8px}


/* Company facts pair each label with its value; qualifications stay stacked. */
.ivory-curves :is(#company-profile,#work-conditions) dl>div:not(:where(#qualifications)){
  grid-template-columns:clamp(5.2em,18%,7em) minmax(0,1fr);
  column-gap:clamp(10px,2vw,20px);
  align-items:baseline;
}


/* A consistent hierarchy: Japanese section title first in size, English supporting it. */
.ivory-curves{--section-en:clamp(1rem,1.8vw,1.375rem);--section-ja:clamp(1.5rem,3vw,2.125rem)}
.ivory-curves :is(.label>span,.work-link-heading>span,.tiff-recruit-heading>p,
  .work-conditions .kicker,#jobs .kicker,.contact .kicker,.strength .kicker,
  .ivory-classic .service-heading .kicker,.ivory-classic .company .kicker){
  font-size:var(--section-en);line-height:1.2;letter-spacing:.105em
}
.ivory-curves :is(.label h2,.work-link-heading h2,.tiff-recruit-heading h2,
  .work-conditions h2,#jobs h2,.contact h2,.strength h2,.detail-scope h2,
  .ivory-classic .service-heading h2,.ivory-classic .company h2){font-size:var(--section-ja)}

/* Postal code above the unbroken street address at every width. */
.ivory-curves #company-profile .company-address{
 display:flex;flex-direction:column;align-items:flex-start;gap:2px
}
.ivory-curves #company-profile .company-street{white-space:nowrap}
/* Match all company facts to the address text, but keep the title hierarchy. */
.ivory-curves #company-profile dt{font-size:1.08em;white-space:nowrap}
.ivory-curves #company-profile .qualification-count{font-size:inherit}
@media(max-width:520px){
 .ivory-curves #company-profile dl>div{font-size:clamp(.815rem,3.4vw,.94rem)}
 .ivory-curves #company-profile dl>div:not(:where(#qualifications)){grid-template-columns:5em minmax(0,1fr)}
}
@media(max-width:370px){
 .ivory-curves #company-profile{padding-inline:13px}
 .ivory-curves #company-profile .company-location{grid-template-columns:minmax(0,1fr)}
}
@supports (container-type:inline-size){
 .ivory-curves #company-profile{container-type:inline-size}
 @container (min-width:281px){
   .ivory-curves #company-profile .company-location{grid-template-columns:5em minmax(0,1fr)}
 }
 @container (min-width:400px){
   .ivory-curves #company-profile .company-location{grid-template-columns:clamp(5.2em,18%,7em) minmax(0,1fr)}
 }
}


.ivory-curves #work-conditions dd{min-width:0;overflow-wrap:anywhere}
.ivory-curves #work-conditions .workplace-name{white-space:nowrap}
@media(max-width:520px){
 .ivory-curves #work-conditions .workplace-name{font-size:clamp(.815rem,3.7vw,1rem)}
}

/* Consistent desktop frames for the service detail photography. */
@media(min-width:721px){
 .ivory-services.ivory-curves .scope-lead{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:16px
 }
 .ivory-services.ivory-curves .scope-lead-text{padding-inline-start:clamp(10px,2.3vw,32px)}
 .ivory-services.ivory-curves .scope-inline-photos .work-photo-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
 .ivory-services.ivory-curves .scope-inline-photos .work-photo-grid:has(>img:only-child){
  grid-template-columns:minmax(0,calc((100% - 16px)/2));justify-content:center
 }
 .ivory-services.ivory-curves .work-photo-grid img{width:100%;height:auto;aspect-ratio:1.42;object-fit:cover}
}

/* A scroll cue between the first photo and the quick links, with a quiet About backdrop. */
.ivory-curves .hero-scroll-band{width:min(1160px,calc(100% - 56px));margin:0 auto;height:45px;position:relative;z-index:3}
.ivory-curves .hero-scroll-link{display:block;width:86px;height:86px;border-radius:50%;position:absolute;right:8px;bottom:0;border:1px solid #9dbeb3;background:#fcf8ef;color:#276a63;box-shadow:0 4px 12px #49372014}
.ivory-curves .hero-scroll-link:hover{background:#e9f2e9}
.hero-scroll-link svg{display:block;width:100%;height:100%}
.hero-scroll-type{transform-origin:60px 60px;animation:ivory-scroll-turn 14s linear 1 both}
.hero-scroll-type text{font:600 10.5px/1 Georgia,serif;letter-spacing:.16em;fill:currentColor}
.hero-scroll-symbol{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round}
@keyframes ivory-scroll-turn{to{transform:rotate(360deg)}}
.ivory-curves .foam-card{
  background:#f8f2e9 url('/assets/background/ivory-foam-desktop.webp') center / 100% 100% no-repeat;
  border:1px solid #ece1d0;border-radius:clamp(16px,2vw,24px)
}
.ivory-curves #company.block{padding:clamp(20px,3.8vw,45px)}
@media(max-width:700px){
 .ivory-curves .hero-scroll-band{width:calc(100% - 36px);height:66px}
 .ivory-curves .hero-scroll-link{width:74px;height:74px;right:3px}
 .ivory-curves .hero-scroll-band+.container .quick{margin-top:12px}
 .ivory-curves .foam-card{background-image:url('/assets/background/ivory-foam-mobile.webp')}
 .ivory-curves #company.block{padding:26px 14px 17px}
}
@media(prefers-reduced-motion:reduce){.hero-scroll-type{animation:none}}

/* Shared, quiet card treatment for Company, Recruitment Status and Working Conditions. */
.ivory-curves .foam-card.ivory-info-card{
  background:#faf4eb;
  position:relative;
  isolation:isolate;
  overflow:hidden
}
.ivory-curves .foam-card.ivory-info-card::before,.ivory-curves .foam-card.ivory-info-card::after{
  content:"";
  position:absolute;pointer-events:none;z-index:-1;
  width:min(100%,630px);height:clamp(75px,12vw,118px);
  background-image:url('/assets/background/ivory-foam-desktop.webp');
  background-size:100% auto;background-repeat:no-repeat;opacity:.34
}
.ivory-curves .foam-card.ivory-info-card::before{top:0;right:0;background-position:top right;mask-image:linear-gradient(to bottom,#000 15%,transparent 100%)}
.ivory-curves .foam-card.ivory-info-card::after{bottom:0;left:0;background-position:bottom left;mask-image:linear-gradient(to top,#000 13%,transparent 100%)}
@media(max-width:700px){
 .ivory-curves .foam-card.ivory-info-card::before,.ivory-curves .foam-card.ivory-info-card::after{
   width:min(100%,400px);background-image:url('/assets/background/ivory-foam-mobile.webp')
 }
}


.ivory-curves .ivory-info-card .ivory-info-heading{
  text-align:center;margin:0 0 20px
}
.ivory-curves .ivory-info-card .ivory-info-heading .kicker{
  color:#286e69;font:400 var(--section-en)/1.2 var(--serif);
  letter-spacing:.12em;margin:0
}
.ivory-curves .ivory-info-card .ivory-info-heading .kicker::after{
  content:"";display:block;width:40px;height:1px;margin:12px auto 14px;background:#71aaa4
}
.ivory-curves .ivory-info-card .ivory-info-heading h2{
  font:400 var(--section-ja)/1.5 var(--jp);letter-spacing:.11em;margin:0;color:var(--ink)
}
@media(max-width:370px){
 .ivory-curves .ivory-info-card{padding-inline:13px}
}

/* Remove the visible beige cap behind the hiring badge. */
.ivory-recruit.ivory-curves #terms .tiff-recruit-banner{
  background:transparent;border:0;box-shadow:none;overflow:visible
}
.ivory-recruit.ivory-curves #terms .tiff-recruit-banner-copy{
  background:transparent
}
.ivory-recruit.ivory-curves #terms .tiff-recruit-craft{
  border-radius:clamp(12px,1.4vw,18px)
}
@media(max-width:720px){
 .ivory-recruit.ivory-curves #terms .tiff-recruit-banner-copy{
  padding:0 5px 17px
 }
}

/* The approved foam artwork is the canvas, not a layer over the content. */
body.ivory-curves{
  --paper:#fdf4e9;
  background:var(--paper);isolation:isolate
}
body.ivory-curves::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:url('/assets/background/ivory-cloud-desktop-puffy.webp') center / cover no-repeat
}
.ivory-contact.ivory-curves main>section{background:transparent}
@media(max-width:720px) and (orientation:portrait){
 body.ivory-curves::before{
   background-image:url('/assets/background/ivory-cloud-mobile-puffy.webp')
 }
}

/* Stronger recruiting invitation without moving the adjoining photograph. */
.ivory-recruit.ivory-curves #terms .tiff-recruit-message h3{
  color:#204a42;font-family:var(--jp);font-weight:750;
  font-size:clamp(1.28rem,6.7vw,2.6rem);line-height:1.47;letter-spacing:.01em
}
.ivory-recruit.ivory-curves #terms .tiff-recruit-message h3 .recruit-message-line{
  display:inline-block
}
.ivory-recruit.ivory-curves #terms .tiff-recruit-message p{
  color:#30594f;font-size:clamp(1.02rem,4.7vw,1.38rem);
  font-weight:650;margin-top:10px;line-height:1.55
}
@media(min-width:721px){
 .ivory-recruit.ivory-curves #terms .tiff-recruit-message h3{font-size:clamp(1.4rem,3vw,2.6rem)}
}

/* Soft foam under the original homepage wave; leave the hero itself untouched. */
.ivory-curves .hero-scroll-band::before{
  content:"";position:absolute;pointer-events:none;z-index:-1;
  top:0;left:calc(-1 * clamp(18px,4vw,28px));width:min(88vw,900px);
  aspect-ratio:5;
  background:url('/assets/background/ivory-hero-cloud.svg') left top / 100% auto no-repeat
}
@media(max-width:700px){
 .ivory-curves .hero-scroll-band::before{left:-18px;width:min(93vw,580px);top:0}
}

/* A responsive background only: no effect on page geometry or controls. */
.ivory-motion-backdrop{
  position:fixed;inset:0;display:block;width:100%;height:100%;
  object-fit:cover;object-position:center;z-index:-1;pointer-events:none;
  visibility:hidden
}
.ivory-motion-backdrop[data-playing]{visibility:visible}
@media(prefers-reduced-motion:reduce){
 .ivory-motion-backdrop{display:none!important}
}
