@import url("style-base.css?v=20260708-logo");

/* Header logo display */
.ctm-logo{
  width:clamp(255px, 23vw, 310px) !important;
  max-width:34vw !important;
  height:48px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:visible !important;
}

/* =========================
   Step 5: Related paths and company facts
   ========================= */
.ctm-related-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin:28px 0;
}
.ctm-related-links a,
.cases-topic-links a{
  color:var(--ctm-green);
  font-weight:700;
  text-underline-offset:4px;
}
.ctm-related-links a{
  border:1px solid rgba(38,74,39,.25);
  border-radius:10px;
  padding:12px 18px;
  text-decoration:none;
  background:#fff;
}
.cases-topic-links{
  padding:18px 0 8px;
  background:#fff;
}
.cases-topic-links p{
  margin:6px 0;
}
.ctm-company-overview{
  padding:clamp(48px,7vw,80px) 0;
  background:#fff;
}
.ctm-company-overview h2{
  color:var(--ctm-green);
  font-family:'Noto Serif JP',serif;
  font-size:clamp(1.8rem,3vw,2.4rem);
}
.ctm-company-facts{
  margin:28px 0;
  border-top:1px solid #d9e1d9;
}
.ctm-company-facts div{
  display:grid;
  grid-template-columns:minmax(120px,25%) 1fr;
  border-bottom:1px solid #d9e1d9;
}
.ctm-company-facts dt,
.ctm-company-facts dd{
  margin:0;
  padding:14px 16px;
}
.ctm-company-facts dt{
  color:var(--ctm-green);
  font-weight:700;
  background:#f3f7f3;
}
@media (max-width:640px){
  .ctm-related-links{flex-direction:column;align-items:stretch;}
  .ctm-related-links a{text-align:center;}
  .ctm-company-facts div{grid-template-columns:34% 1fr;}
  .ctm-company-facts dt,.ctm-company-facts dd{padding:12px 10px;overflow-wrap:anywhere;}
}

.ctm-logo img{
  content:url("images/ctm-logo-header.png");
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  object-position:center !important;
  background:transparent !important;
  filter:none !important;
  opacity:1 !important;
}

@media (max-width:979.98px){
  .ctm-logo{
    width:clamp(210px, 58vw, 240px) !important;
    max-width:calc(100vw - 88px) !important;
    height:48px !important;
  }
}

@media (min-width:1025px){
  .understanding.section{
    padding-bottom:clamp(24px, 3vw, 42px) !important;
  }

  #service.section--svc{
    padding-top:clamp(34px, 4vw, 52px) !important;
  }

  #service.section--svc .container{
    width:min(1220px, 94%) !important;
  }

  #service.section--svc .svc-grid{
    gap:clamp(14px, 1.6vw, 18px) !important;
  }

  #service.section--svc .svc-card .svc-title{
    margin:14px 18px 7px !important;
    font-size:clamp(1.08rem, 1.65vw, 1.28rem) !important;
  }

  #service.section--svc .svc-card .svc-desc{
    margin:0 18px 18px !important;
    font-size:clamp(.98rem, 1.25vw, 1.08rem) !important;
  }
}

@media (min-width:901px){
  .problems .problem-row:first-of-type{
    width:min(1180px, 96vw);
    margin-left:50%;
    margin-right:0;
    transform:translateX(-50%);
  }
}

/* Office manager comparison table */
#comparison .office-table th,
#comparison .office-table td{
  height:52px;
  padding:18px 22px;
  vertical-align:middle;
}

#comparison .office-table thead th{
  background:#244119;
  color:#fff;
  font-weight:800;
}

#comparison .office-table thead th:nth-child(4){
  background:#4f7f52;
  color:#fff;
}

#comparison .office-table th:nth-child(4),
#comparison .office-table td:nth-child(4){
  background:#f0f7f1;
  font-weight:700;
}

#comparison .office-table tbody th:nth-child(4){
  color:#244119;
}

@media (hover:hover) and (pointer:fine){
  #comparison .office-table tbody tr{
    transition:background-color .2s ease;
  }

  #comparison .office-table tbody tr:hover th,
  #comparison .office-table tbody tr:hover td{
    background:#eef7ef;
  }

  #comparison .office-table tbody tr:hover td:nth-child(4){
    background:#e7f2e8;
  }
}

/* Office manager outsourcing section */
.office-outsourcing{
  max-width:1080px;
  grid-template-columns:minmax(0, 1fr) minmax(320px, 1fr);
  gap:clamp(28px, 4.5vw, 48px);
  align-items:center;
}
.office-outsourcing .office-visual{
  width:100%;
  aspect-ratio:4/3;
}
.office-outsourcing .office-visual img{
  object-position:center center;
}
.office-recommend-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  margin:20px 0 0;
  padding:0;
  list-style:none;
}
.office-recommend-list li{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
  min-height:112px;
  padding:20px 22px;
  border:1px solid #d7e8d9;
  border-radius:16px;
  background:#f5faf5;
  color:#254233;
  font-size:clamp(1rem, 1.8vw, 1.08rem);
  line-height:1.75;
  transition:transform .2s ease, box-shadow .2s ease;
}
.office-recommend-list li::before{
  content:"✓";
  flex:0 0 22px;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:2px solid #244119;
  background:#edf5ee;
  color:#244119;
  font-size:.82rem;
  font-weight:700;
  line-height:1;
}
@media (max-width:900px){
  .office-outsourcing .office-visual{
    order:-1;
    aspect-ratio:16/9;
  }
  .office-recommend-list{
    grid-template-columns:1fr;
  }
}
@media (hover:hover) and (pointer:fine){
  .office-recommend-list li:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(36,65,25,.1);
  }
}

/* =========================
   SEO / AI content sections
   ========================= */
.ctm-content-container,
.ctm-wide-container{
  width:min(100% - 48px, 920px);
  margin-inline:auto;
}
.ctm-wide-container{
  max-width:1180px;
}
.ctm-definition,
.svc-intro,
.svc-about,
.svc-fit,
.svc-process,
.svc-faq,
.svc-final-cta{
  padding:clamp(56px, 7vw, 88px) 0;
}
.ctm-definition,
.svc-intro,
.svc-about,
.svc-faq{
  background:#fff;
}
.ctm-definition,
.svc-about,
.svc-fit,
.svc-process,
.svc-faq,
.svc-final-cta{
  text-align:center;
}
.ctm-definition h2,
.svc-about h2,
.svc-fit h2,
.svc-process h2,
.svc-faq h2,
.svc-final-cta h2{
  margin:0 0 28px;
  color:#264a27;
  font-size:clamp(1.65rem, 3.2vw, 2.35rem);
  line-height:1.45;
}
.ctm-content-copy,
.svc-intro,
.svc-section-lead,
.svc-final-cta{
  line-height:1.95;
}
.ctm-content-copy p,
.svc-intro p,
.svc-final-cta p{
  margin:0 0 18px;
}
.ctm-primary-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  min-height:52px;
  margin-top:18px;
  padding:12px 28px;
  border:1px solid #264a27;
  border-radius:8px;
  background:#264a27;
  color:#fff;
  font-weight:800;
  line-height:1.5;
  text-decoration:none;
  transition:background-color .2s ease, transform .2s ease;
}
.ctm-primary-link:hover{
  background:#1d3b20;
  transform:translateY(-1px);
}
.ctm-support-method{
  max-width:820px;
  margin:30px auto 0;
  color:#37433a;
  line-height:1.95;
}
.ctm-support-method p{
  margin:0 0 18px;
}
.svc-intro{
  font-size:1.05rem;
}
.svc-intro + .svc-about{
  padding-top:0;
}
.svc-about{
  border-bottom:1px solid #e3ebe4;
}
.svc-fit,
.svc-process{
  background:#f4f7f3;
}
.svc-section-lead{
  max-width:820px;
  margin:0 auto 30px;
}
.svc-check-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
  text-align:left;
}
.svc-check-list li{
  position:relative;
  padding:18px 20px 18px 52px;
  border:1px solid #d9e5da;
  border-radius:10px;
  background:#fff;
  line-height:1.75;
}
.svc-check-list li::before{
  content:"✓";
  position:absolute;
  top:17px;
  left:20px;
  color:#264a27;
  font-weight:800;
}
.svc-process{
  padding-top:0;
}
.svc-process-list{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:svc-step;
  text-align:left;
}
.svc-process-list li{
  counter-increment:svc-step;
  position:relative;
  padding:62px 22px 24px;
  border:1px solid #d9e5da;
  border-radius:10px;
  background:#fff;
}
.svc-process-list li::before{
  content:counter(svc-step, decimal-leading-zero);
  position:absolute;
  top:20px;
  left:22px;
  color:#56805a;
  font-size:1.5rem;
  font-weight:800;
}
.svc-process-list h3{
  margin:0 0 12px;
  color:#264a27;
  font-size:1.08rem;
  line-height:1.5;
}
.svc-process-list p{
  margin:0;
  line-height:1.75;
}
.svc-faq-list{
  text-align:left;
}
.svc-faq-list details{
  border-top:1px solid #d9e5da;
}
.svc-faq-list details:last-child{
  border-bottom:1px solid #d9e5da;
}
.svc-faq-list summary{
  position:relative;
  padding:22px 52px 22px 0;
  cursor:pointer;
  list-style:none;
}
.svc-faq-list summary::-webkit-details-marker{
  display:none;
}
.svc-faq-list summary::after{
  content:"＋";
  position:absolute;
  top:50%;
  right:12px;
  color:#264a27;
  font-size:1.4rem;
  transform:translateY(-50%);
}
.svc-faq-list details[open] summary::after{
  content:"−";
}
.svc-faq-list summary h3{
  margin:0;
  color:#264a27;
  font-size:1.06rem;
  line-height:1.65;
}
.svc-faq-answer{
  padding:0 52px 22px 0;
  line-height:1.85;
}
.svc-faq-answer p{
  margin:0 0 14px;
}
.svc-final-cta{
  background:#edf4ed;
}

@media (max-width:768px){
  .ctm-content-container,
  .ctm-wide-container{
    width:min(100% - 32px, 920px);
  }
  .ctm-definition,
  .svc-intro,
  .svc-about,
  .svc-fit,
  .svc-faq,
  .svc-final-cta{
    padding:48px 0;
  }
  .ctm-content-copy,
  .ctm-support-method,
  .svc-intro,
  .svc-section-lead,
  .svc-final-cta{
    text-align:left;
  }
  .ctm-primary-link{
    width:100%;
    padding-inline:16px;
    text-align:center;
  }
  .svc-check-list,
  .svc-process-list{
    grid-template-columns:1fr;
  }
  .svc-process{
    padding:0 0 48px;
  }
  .svc-faq-list summary{
    padding:20px 42px 20px 0;
  }
  .svc-faq-answer{
    padding-right:0;
  }
}
