/*
Theme Name: 楽天ECオウンドメディア
Version: 1.0.0
Requires PHP: 8.1
Text Domain: rakuten-ec-media
*/
body{background:#fff}
.device,.device.mobile,.device.tablet{width:100%;box-shadow:none}
.device:not(.mobile) main,.device:not(.mobile) .sitehead,.device:not(.mobile) .footer{max-width:1440px;margin-inline:auto}
.device .stickycta{position:sticky;bottom:0;z-index:10;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.device img{max-width:100%;height:auto}
.device .wp-thumb{aspect-ratio:16/9;object-fit:cover;width:100%;display:block}
.skip-link{position:absolute;left:-999em}.skip-link:focus{left:1em;top:1em;background:#fff;z-index:20;padding:8px}

.device .sec.home-photo-hero{
  grid-template-columns:minmax(0,1fr);min-height:clamp(420px,33vw,540px);
  background-color:#fff;
  background-image:linear-gradient(90deg,#fff 0%,#fff 41%,rgba(255,255,255,.94) 49%,transparent 73%),url(assets/hero-neutral-photo.png);
  background-size:cover;background-position:center
}
.device .home-photo-hero > div{max-width:min(54%,700px)}
.device .sec.home-photo-hero,
.device .sec.home-photo-hero h1{color:var(--navy)}
.device .sec.home-photo-hero .eyebrow{color:var(--red)}
.device .home-photo-hero h1{font-size:clamp(34px,3.45vw,52px)}
.device .home-photo-hero .eyebrow{font-size:14px}
.device .home-photo-hero p{font-size:17px}
.device.mobile .home-photo-hero h1{font-size:clamp(29px,8.2vw,34px)}
.device.mobile .home-photo-hero p{font-size:16px}
.device .sec.home-photo-hero .btn:not(.secondary){color:#fff;background:var(--red);border-color:var(--red)}
.device .sec.home-photo-hero .btn.secondary{color:var(--navy);background:#fff;border-color:var(--navy)}
.device.mobile .sec.home-photo-hero{
  min-height:0;padding-bottom:142px;background-position:70% center;
  background-image:linear-gradient(180deg,#fff 0%,#fff calc(100% - 142px),rgba(255,255,255,.7) calc(100% - 108px),transparent 100%),url(assets/hero-neutral-photo.png)
}
.device.mobile .home-photo-hero > div{max-width:none}

.device .consulting-audience .check.consulting-card{
  width:100%;min-height:0;padding:28px 0 0;
  border-radius:18px;overflow:hidden
}
.device .consulting-audience .consulting-card :is(h3,p){padding-inline:16px}
.device .consulting-audience .consulting-illustration{
  width:100%;height:auto;aspect-ratio:3 / 2;object-fit:contain;margin-top:auto
}
.device .consulting-audience .consulting-card p{margin-bottom:16px}
.device .consulting-audience > :is(.eyebrow,h2){text-align:left}

.device .eyebrow::before{
  content:"";display:inline-block;width:1.8em;height:1.35em;margin-inline-end:.55em;
  vertical-align:-.22em;background-color:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Ccircle cx='3.2' cy='13.5' r='2'/%3E%3Cpath d='M3.2 13.5 8.2 8.1l4.2 2.9 7.1-7' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16.2 2.8h5.2c.4 0 .7.3.7.7v5.2c0 .5-.6.7-.9.4l-5.4-5.4c-.3-.3-.1-.9.4-.9Z'/%3E%3C/svg%3E") center / contain no-repeat
}

/* Service scope comparison: the column and row headings share a tinted background. */
:is(#scope .tablewrap.scope,#service-comparison) table{width:100%;background:#fff;border:3px solid #cbd5e1}
:is(#scope .tablewrap.scope,#service-comparison) th,
:is(#scope .tablewrap.scope,#service-comparison) td{vertical-align:middle;text-align:center;overflow-wrap:anywhere;border:3px solid #cbd5e1}
:is(#scope .tablewrap.scope,#service-comparison) th{background:#dfe0e2}
:is(#scope .tablewrap.scope,#service-comparison) tbody th{background-color:#dce5ef}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) table{
  table-layout:fixed;border-collapse:separate;border-spacing:6px 0;
  background:transparent;border:0
}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) thead th{
  position:relative;border:0;border-bottom:14px solid transparent;background-clip:padding-box;
  border-radius:8px 8px 0 0
}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) thead th:first-child{width:27%;visibility:hidden}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) thead th:not(:first-child){
  background:transparent;color:#fff;isolation:isolate
}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) thead th:not(:first-child)::before{
  content:"";position:absolute;inset:0 2%;z-index:-1;
  background:#c8374b;border-radius:8px 8px 0 0
}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) thead th::after{
  content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);
  border:9px solid transparent;border-top-color:#c8374b
}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) tbody :is(th,td){
  border:0;padding-block:24px
}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) tbody td{background:#fff}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) tbody tr:not(:last-child) > *{
  background-image:linear-gradient(#cbd5e1,#cbd5e1);
  background-position:center bottom;background-size:calc(100% - 24px) 2px;background-repeat:no-repeat
}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) tbody tr:first-child > :first-child{border-top-left-radius:8px}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) tbody tr:first-child > :last-child{border-top-right-radius:8px}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) tbody tr:last-child > *{border-bottom:0}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) tbody tr:last-child > :first-child{border-bottom-left-radius:8px}
.device:not(.mobile) :is(#scope .tablewrap.scope,#service-comparison) tbody tr:last-child > :last-child{border-bottom-right-radius:8px}
.mobile :is(#scope .tablewrap.scope,#service-comparison) table{background:transparent;border:0}
.mobile :is(#scope .tablewrap.scope,#service-comparison) tbody tr{border:3px solid #cbd5e1}
.mobile :is(#scope .tablewrap.scope,#service-comparison) th,
.mobile :is(#scope .tablewrap.scope,#service-comparison) td{text-align:left}
.mobile :is(#scope .tablewrap.scope,#service-comparison) td{background:#fff}
.policy-art{display:grid;place-items:center;width:144px;margin-inline:auto}
.policy-art svg{display:block;width:100%;height:auto;color:var(--navy)}
.device:not(.mobile) .policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:32px 24px;background:#fff;border:1px solid #ead4d9;border-radius:18px;box-shadow:0 10px 28px #142b4908}
.device:not(.mobile) .policy-grid .reason{box-shadow:none;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;border:0;padding:0}
.device:not(.mobile) .policy-art{order:-1;margin-bottom:8px}
.device:not(.mobile) .policy-grid .reason h3{margin-top:0}
.mobile .policy-art{grid-column:2;width:108px}

.device:not(.mobile) #service-comparison thead th:first-child{visibility:visible;background-color:#dce5ef}
.device:not(.mobile) #service-comparison thead th:first-child::after{content:none}

.device .sec.pagetitle{
  background-color:#f4f4f5;
  background-image:url(assets/title-b-dots.png);background-blend-mode:luminosity;
  background-position:right center;
  background-size:cover;
  background-repeat:no-repeat
}
.device.mobile .sec.pagetitle{
  background-image:linear-gradient(90deg,#f4f4f5 0%,rgba(244,244,245,.88) 50%,rgba(244,244,245,.32) 100%),url(assets/title-b-dots.png)
}

.device .sec.pagetitle.title-photo{
  position:relative;isolation:isolate;overflow:hidden;background:#fff
}
.device .title-photo::before,.device .title-photo::after{
  content:"";position:absolute;pointer-events:none
}
.device .title-photo::before{
  inset:0 0 0 auto;width:220%;z-index:-2;
  background:var(--title-photo) right center / cover no-repeat
}
.device .title-photo::after{
  inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(255,255,255,.93),rgba(255,255,255,.85) 58%,rgba(255,255,255,.36) 86%,rgba(255,255,255,.14))
}
.device.mobile .title-photo::after{
  background:linear-gradient(105deg,rgba(255,255,255,.94),rgba(255,255,255,.85) 72%,rgba(255,255,255,.68))
}
.title-photo-services{--title-photo:url(assets/title-photos/services.png)}
.title-photo-operations{--title-photo:url(assets/title-photos/operations.png)}
.title-photo-consulting{--title-photo:url(assets/title-photos/consulting.png)}
.title-photo-columns{--title-photo:url(assets/title-photos/columns.png)}
.title-photo-company{--title-photo:url(assets/title-photos/company.png)}
.title-photo-contact{--title-photo:url(assets/title-photos/contact.png)}
.title-photo-thanks{--title-photo:url(assets/title-photos/thanks.png)}
.title-photo-privacy{--title-photo:url(assets/title-photos/privacy.png)}

.device .title-photo > .buttons{margin-top:26px}

.device .sec.contact-photo-cta{
  text-align:center;background-color:var(--pale);
  background-image:linear-gradient(rgba(244,244,245,.88),rgba(244,244,245,.88)),url(assets/contact-cta-hands.png);
  background-position:center;background-size:cover
}

.device .footer{text-align:center}
.device .footer a{margin-inline:10px}
.device.mobile .footer a{margin-inline:0}

.device .approach-photo{display:block;width:100%;height:auto;border-radius:12px}

.device .cycle-node:nth-child(1) .cycle-node-icon,
.device .cycle-node:nth-child(4) .cycle-node-icon{color:#3c7069}
.device .cycle-node:nth-child(3) .cycle-node-icon{color:#886b37}

.device :is(input,textarea)::placeholder{color:#000;opacity:1}

.device .service-plan-grid{margin-bottom:20px}
.device .service-plan-grid .pricing-card{--plan-color:#fe9737;--plan-ink:var(--navy)}
.device .service-plan-grid .pricing-card h3,
.device .service-plan-grid .pricing-card .plan-consult{background:var(--plan-color);color:var(--plan-ink)}
.device .service-plan-grid .pricing-card p{display:block;flex:none;padding:18px 22px}
.device .service-plan-grid .pricing-card p:first-of-type{
  margin-inline:20px;padding-inline:0;border-bottom:1px solid #ead4d9
}
.device .service-plan-grid .pricing-card p strong{
  font-size:clamp(24px,2.4vw,36px);line-height:1.3;color:var(--navy)
}
.device .service-plan-grid .plan-consult{
  position:relative;display:block;margin:auto 20px 20px;padding:10px 36px;
  border:0;border-radius:999px;text-align:center;font-weight:bold
}
.device .service-plan-grid .plan-consult::after{
  content:"";position:absolute;right:18px;top:50%;width:7px;height:7px;
  border:solid currentColor;border-width:2px 2px 0 0;transform:translateY(-50%) rotate(45deg)
}
.device .service-plan-grid .plan-consult:hover{filter:brightness(.94)}

.device .service-plan-grid .plan-name-ja{display:block;font-size:.72em;line-height:1.45;margin-top:3px}
.device .service-plan-grid .pricing-card h3 > [lang="en"]{font-size:clamp(20px,1.7vw,24px)}

.device .service-plan-grid .plan-price{white-space:nowrap}
.device .service-plan-grid .plan-price-unit{font-size:.6em}
.device .service-plan-grid .plan-features{
  list-style:none;width:fit-content;max-width:100%;margin:0 auto;padding:18px 22px 24px;display:grid;gap:8px;text-align:left
}
.device .service-plan-grid .plan-features li{display:flex;align-items:baseline;gap:10px;line-height:1.6}
.device .service-plan-grid .plan-features li::before{
  content:"";flex:0 0 6px;height:10px;border:solid var(--navy);border-width:0 2px 2px 0;
  transform:rotate(45deg)
}

.device .sec.pale.challenge-section{background-color:#f6dfe4}

.device:not(.mobile) .service-menu-cards{width:92%;max-width:1160px;margin-inline:auto}
.device .service-menu-cards .panel{--service-card-padding:24px;padding:var(--service-card-padding);border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.10)}
.device .service-menu-cards .service-menu-photo{
  display:block;width:100%;margin:0 0 var(--service-card-padding);border-radius:10px;
  aspect-ratio:1.85;object-fit:cover;object-position:center
}
.device.mobile .service-menu-cards .panel{--service-card-padding:18px}
.device.mobile .service-menu-cards .service-menu-photo{aspect-ratio:1.6}
.device .service-menu-cards + p{margin-top:28px}

/* Brand red and muted teal for section and component accents. */
.device {
  --pale: #f3f6f5;
  --teal: #37665f;
  --teal-wash: #eaf3f0;
  --teal-line: #c5d9d3;
  --warm-wash: #faf3e9;
}

.device .sec.cycle-section { background-color: var(--teal-wash); }
.device .sec.onboarding-section { background-color: var(--warm-wash); }
.device .sec.contact-photo-cta {
  background-color: var(--teal-wash);
  background-image: linear-gradient(rgba(234,243,240,.92), rgba(234,243,240,.92)), url(assets/contact-cta-hands.png);
}

.device .service-menu-cards .panel { border-color: var(--teal-line); }
.device .service-menu-cards .panel.featured { border-color: var(--red); }
.device .service-menu-cards .panel:not(.featured) .tag {
  background: var(--teal-wash);
  color: var(--teal);
}
.device .service-menu-cards .panel.featured .tag {
  background: #f8e9ec;
  color: var(--red);
}
.device .service-menu-cards .panel:not(.featured) .btn.secondary {
  border-color: var(--teal);
  color: var(--teal);
}

.device .cycle-flow .step.cycle-node { border-color: var(--teal-line); }
.device :is(.cycle-flow .cycle-node, .onboarding-flow .onboarding-node) .num {
  background-color: var(--teal);
}
.device .faq details { border-color: var(--teal-line); }
.device .faq summary { color: var(--teal); }

/* Keep the operations page's process and FAQ backgrounds neutral. */
.device .sec.service-cycle-section,
.device .sec.service-onboarding-section {
  background-color: #fff;
}
.device .sec.pale:has(+ .service-cycle-section),
.device .sec.pale:has(.service-plan-grid),
.device .service-onboarding-section ~ .sec.pale:has(.faq) {
  background-color: #f5f5f6;
}
.device :is(.service-cycle-section, .service-onboarding-section) .num {
  background-color: var(--navy);
}
.device .service-cycle-section .cycle-node:nth-child(n) .cycle-node-icon {
  color: var(--navy);
}
.device .service-cycle-section .step.cycle-node,
.device .service-onboarding-section .onboarding-node small,
.device .service-onboarding-section ~ .sec .faq details {
  border-color: #d7dce2;
}
.device .service-onboarding-section ~ .sec .faq summary {
  color: var(--navy);
}
.device .service-cycle-section > p { text-align: center; }


.device {
  --card-shadow: 0 2px 5px rgba(20, 43, 73, .26);
}
.device :is(.panel, .articlecard, .check, .reason, .onboarding-node small):not(.cycle-section *, .challenge-section *, .articlecard) {
  box-shadow: var(--card-shadow);
}
.device .service-menu-cards .panel:not(.cycle-section *) {
  box-shadow: var(--card-shadow);
}


.device :is(.sec.approach-highlight, .title-photo-company + .sec.pale) {
  background: #faf0f2;
}
.device :is(.approach-highlight, .title-photo-company + .sec.pale) > h3 {
  border-inline-start: 3px solid var(--red);
  padding-inline-start: 14px;
}
.device :is(.approach-highlight, .title-photo-company + .sec.pale) > p {
  max-width: 65em;
}

.device :is(p, li, dd, td, blockquote, small) { font-weight: 500; }


.device .btn {
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(20, 43, 73, .20), 0 4px 5px rgba(20, 43, 73, .19);
}
