/* Additions for the fifth service; the original stylesheets remain intact. */
/* October 2026 copy update. Retain the existing photography and brand palette. */
.home-page #header .home-brand {
  position: relative; z-index: 1003; width: 116px; height: 116px;
  margin: 38px 0 0 48px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.home-page #header .home-brand a { display: block; line-height: 1; }
.home-page #header .brand-mark { display: grid; place-items: center; width: 116px; height: 116px; background: #3c68b8; }
.home-page #header .brand-mark img { width: 68px; }
.home-page.fv-scrolled #header .home-brand,
.home-page.nav-open #header .home-brand { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.home-page #sec_fv .hero-brand {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: clamp(24px, 2.6vw, 38px);
  width: max-content; max-width: calc(100% - 96px); margin: 0;
  color: #fff; font-weight: 400; opacity: 1; visibility: visible;
  transition: opacity .45s ease, visibility 0s linear 0s;
}
.home-page #sec_fv .hero-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: clamp(140px, 12vw, 174px); aspect-ratio: 1; background: #3c68b8;
}
.home-page #sec_fv .hero-mark img { width: 66%; height: auto; }
.home-page #sec_fv .hero-copy { display: block; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.home-page #sec_fv .hero-name { display: block; font-size: clamp(38px, 3.5vw, 51px); line-height: 1.15; letter-spacing: .04em; font-weight: 500; white-space: nowrap; }
.home-page #sec_fv .hero-tagline { display: block; margin-top: 16px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; letter-spacing: .035em; white-space: nowrap; }
.home-page.fv-scrolled #sec_fv .hero-brand,
.home-page.nav-open #sec_fv .hero-brand { opacity: 0; visibility: hidden; transition-delay: 0s, .45s; }
@media (prefers-reduced-motion: reduce) {
  .home-page #header .home-brand, .home-page #sec_fv .hero-brand { transition: none; }
}
.home-page #sec_fv .part1 { height: 100vh; height: 100svh; min-height: 480px; padding: 0; }
.home-page #sec_fv .bg { height: 100%; }
.home-page #sec_fv .bg .top_slicker_parts .slicker_part img { height: 100vh; height: 100svh; min-height: 480px; }
.home-page #sec_fv .part1 .scroll_block { top: auto; bottom: 64px; }
.home-page #sec2 { padding-top: 90px; background: #fff; }
.home-page #sec2 .part1 .part_header h2 { font-size: clamp(24px, 2.5vw, 33px); line-height: 1.7; }
.home-page #sec2 .part1 .part_header > p { font-size: 21px; margin-top: 12px; line-height: 1.6; }
.home-page #sec2 .part1 .part_body { gap: 56px; }
.home-page #sec2 .part1 .part_body .block { flex: 1 1 0; min-width: 0; }
.home-page #sec2 .part1 .part_body .block.block1 p { font-size: 18px; line-height: 2.2; }
.home-page #sec2 .part1 .part_body .block.block2 p { font-size: 15px; line-height: 2.2; }
.home-page #sec2 .part1 .part_footer { margin-top: 30px; }
#philosophy2 .part1 .part_body dl dt { flex: 0 0 345px; }
#philosophy2 .part1 .part_body dl dd { line-height: 1.6; }
@media screen and (min-width: 768px) and (max-width: 1279px) {
  .home-page #sec2 .fixedcontainer { width: calc(100% - 96px); }
  #philosophy2 .part1 .part_body dl dt { flex-basis: 310px; width: 310px; font-size: 50px; }
  #philosophy2 .part1 .part_body dl dd { font-size: 22px; }
}
@media screen and (max-width: 767px) {
  #wrapper { width: 100%; }
  .home-page #header .home-brand { width: 14.1333333333vw; height: 14.1333333333vw; margin: 3.4666666667vw 0 0 4.5333333333vw; }
  .home-page #header .brand-mark { width: 14.1333333333vw; height: 14.1333333333vw; }
  .home-page #header .brand-mark img { width: 8.1333333333vw; }
  .home-page #sec_fv .hero-brand { flex-direction: column; gap: 24px; width: calc(100% - 40px); max-width: 560px; text-align: center; }
  .home-page #sec_fv .hero-mark { width: clamp(100px, 29vw, 140px); }
  .home-page #sec_fv .hero-name { font-size: clamp(26px, 7.5vw, 40px); letter-spacing: .045em; }
  .home-page #sec_fv .hero-tagline { margin-top: 12px; font-size: clamp(13px, 3.6vw, 18px); letter-spacing: .025em; }
  .home-page #sec_fv .part1, .home-page #sec_fv .bg .top_slicker_parts .slicker_part img { min-height: 420px; }
  .home-page #sec_fv .part1 .scroll_block {
    left: 50%; right: auto; bottom: max(28px, env(safe-area-inset-bottom, 0px));
    width: clamp(64px, 19.2vw, 76px); height: auto; aspect-ratio: 1;
    transform: translateX(-50%);
  }
  .home-page #sec_fv .part1 .scroll_block .arrow { top: 50%; width: 27.5%; }
  .home-page #sec2 { padding-top: 48px; }
  .home-page #sec2 .part1 .part_header h2 { font-size: 23px; }
  .home-page #sec2 .part1 .part_header > p { font-size: 15px; margin-top: 16px; }
  .home-page #sec2 .part1 .part_body { padding-top: 28px; gap: 24px; }
  .home-page #sec2 .part1 .part_body .block.block1 p { font-size: 15px; line-height: 2; }
  .home-page #sec2 .part1 .part_body .block.block2 { margin-top: 0; }
  .home-page #sec2 .part1 .part_body .block.block2 p { font-size: 14px; line-height: 1.9; }
  .home-page #sec2 .part1 .part_footer { margin-top: 8px; }
  #philosophy2 .part1 .part_body { width: 100%; }
  #philosophy2 .part1 .part_body dl { min-height: 17vw; gap: 3vw; }
  #philosophy2 .part1 .part_body dl dt { flex: 0 0 45vw; width: 45vw; font-size: 7.4vw; }
  #philosophy2 .part1 .part_body dl dd { flex: 1; min-width: 0; font-size: 3.8vw; }
}

/* Keep the signature and scroll cue separate on short mobile screens. */
@media screen and (max-width: 767px) and (max-height: 540px) {
  .home-page #sec_fv .part1,
  .home-page #sec_fv .bg .top_slicker_parts .slicker_part img { min-height: 320px; }
  .home-page #sec_fv .hero-brand { top: 44%; gap: 16px; }
  .home-page #sec_fv .hero-mark { width: clamp(80px, 22svh, 100px); }
  .home-page #sec_fv .hero-name { font-size: clamp(24px, 6vw, 32px); }
  .home-page #sec_fv .hero-tagline { margin-top: 10px; font-size: clamp(13px, 3vw, 16px); }
  .home-page #sec_fv .part1 .scroll_block { width: 64px; bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
}

#header .menu-trigger { padding: 0; border: 0; background: transparent; font-family: inherit; }
#header .menu-trigger.dark:not(.active) span { background: #000; }
#header .menu-trigger.dark:not(.active) p { color: #000; }
#header .menu-trigger:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
body.nav-open { overflow: hidden; }
#header .g_nav { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
#header .g_nav .nav_body { min-height: 100%; padding: max(160px, calc((100vh - 440px) / 2)) 0 50px; }
#header .g_nav .nav_body > ul { margin-top: 0; flex-shrink: 0; }
#header .g_nav .nav_body > ul > li { margin-bottom: 35px; }
#header .g_nav .nav_body > ul > li:last-child { margin-bottom: 0; }
#header .g_nav .nav_body > ul > li > ul li a { display: inline-block; line-height: 1.65; }
#sec3 .part { gap: 24px; }
#sec3 .part .block { flex: 1; min-width: 0; }
#sec3 .part .block h3 { min-height: 70px; line-height: 1.15; margin-bottom: 22px; }
#sec4 .slicker_part > .research-image { width: 100%; aspect-ratio: 796 / 506; object-fit: cover; }
#sec4 .archive-continuous { overflow: hidden; }
#sec4 .archive-track {
  display: flex; width: max-content; will-change: transform;
  animation: archive-flow var(--archive-duration) linear infinite;
}
#sec4 .archive-group { display: flex; flex: 0 0 auto; }
#sec4 .part2 .archive-continuous .slicker_part {
  display: block; flex: 0 0 var(--archive-card-width); width: var(--archive-card-width);
}
#sec4 .archive-continuous .slicker_part img { display: block; width: 100%; }
@keyframes archive-flow {
  from { transform: translate3d(var(--archive-start), 0, 0); }
  to { transform: translate3d(var(--archive-end), 0, 0); }
}
footer { background-size: 100% 100%; }
footer .part1 .btn_wrapper { padding-left: 25px; }
footer .part1 .btn_wrapper ul { flex-wrap: wrap; gap: 12px 22px; }
footer .part1 .btn_wrapper ul li a { white-space: nowrap; }

@media screen and (min-width: 768px) and (max-width: 1100px) {
  #header .g_nav .nav_body { width: calc(100% - 120px); gap: 64px; }
  #sec3 .part { flex-wrap: wrap; justify-content: center; gap: 30px; }
  #sec3 .part .block { flex: 0 0 calc((100% - 60px) / 3); }
  footer .part1 { flex-wrap: wrap; row-gap: 28px; }
  footer .part1 .btn_wrapper { flex-basis: 100%; padding-left: 0; }
  footer .part1 .btn_wrapper ul { justify-content: flex-start; }
}
@media screen and (max-width: 767px) {
  #header .g_nav .nav_body {
    height: auto; min-height: 100%; width: 76%; max-width: 480px;
    padding: 125px 0 38px; align-items: stretch; justify-content: center;
  }
  #header .g_nav .nav_body > ul { flex: 0 0 auto; min-width: 0; margin: 0; }
  #header .g_nav .nav_body > ul > li { margin-bottom: 20px; }
  #header .g_nav .nav_body > ul:first-child > li:last-child { margin-bottom: 20px; }
  #header .g_nav .nav_body > ul > li > a { font-size: 18px; }
  #header .g_nav .nav_body > ul > li > ul { margin-top: 12px; }
  #header .g_nav .nav_body > ul > li > ul li { padding-bottom: 5px; }
  #header .g_nav .nav_body > ul > li > ul li a { font-size: 13px; }
  #header .g_nav .nav_body > ul:last-child > li:last-child { display: none; }
  #header .g_nav .nav_body > ul:last-child > li:nth-last-child(2) { margin-bottom: 0; }
  #sec3 .part { gap: 11.6vw; }
  #sec3 .part .block { flex: 0 0 67.8667vw; }
  #sec3 .part .block h3 { min-height: 0; margin-bottom: 30px; line-height: 1.1; }
  footer .part1 .btn_wrapper { padding-left: 0; }
  footer .part1 .btn_wrapper ul { justify-content: center; gap: 12px 18px; }
}


/* 2026-10-29: service copy and responsive service names. */
.cm-name-main, .cm-name-extra, .cm-interior-en { display: inline-block; }
.cm-name-main, .cm-name-extra { white-space: nowrap; }
.cm-name-break { display: none; }
.cm-name.is-stacked .cm-name-break { display: initial; }
.cm-name.is-stacked .cm-name-separator { display: none; }
#service1_fv .cm-hero-title { padding-left: 24px; padding-right: 24px; line-height: 1.3; }
#service2 .part1 h2 { margin-bottom: 24px; }
#service2 .part1 > p {
  background: transparent; color: inherit; padding: 0;
  display: block; max-width: 52em; margin: 0 auto; text-align: center; line-height: 2;
}
#service2 .part2 .block .flex_body h3:has(.cm-name),
#service_common_sec .part1 .block .flex_body h3:has(.cm-name) { line-height: 1.5; }
@media screen and (min-width: 768px) {
  #sec3 .part .block h3 { min-height: 4.6em; }
}
@media screen and (min-width: 768px) and (max-width: 1100px) {
  #service1_fv .cm-hero-title { font-size: clamp(24px, 3.4vw, 37px); }
}
@media screen and (max-width: 767px) {
  #service1_fv .cm-hero-title { padding-left: 5vw; padding-right: 5vw; }
  .cm-name-break { display: initial; }
  .cm-name-separator { display: none; }
  #service1_fv .cm-name { display: inline-block; line-height: 1.7; }
  #sec4 .slicker_part .cm-name { line-height: 1.6; }
  #service2 .part1 h2 { margin-bottom: 20px; }
  #service2 .part1 > p { max-width: 100%; text-align: left; }
}
