/*
Theme Name: R-pipe Renewal
Template: seien
Version: 20261006.4
*/
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-right-full{right:-100%}.bottom-0{bottom:0}.left-0{left:0}.right-4{right:1rem}.top-0{top:0}.top-2{top:.5rem}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mr-2{margin-right:.5rem}.mr-5{margin-right:1.25rem}.mr-8{margin-right:2rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-full{width:100%;height:100%}.h-screen{height:100vh}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/5{width:20%}.w-2\/5{width:40%}.w-3\/5{width:60%}.w-4\/5{width:80%}.w-48{width:12rem}.w-80{width:20rem}.w-96{width:24rem}.w-full{width:100%}.max-w-4xl{max-width:56rem}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.gap-y-8{row-gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2rem*var(--tw-space-x-reverse));margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.hover\:bg-stone-700:hover{--tw-bg-opacity:1;background-color:rgb(68 64 60/var(--tw-bg-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-80:hover{opacity:.8}@media (min-width:768px){.md\:relative{position:relative}.md\:bottom-auto{bottom:auto}.md\:right-0{right:0}.md\:top-40{top:10rem}.md\:mb-0{margin-bottom:0}.md\:mb-10{margin-bottom:2.5rem}.md\:mb-12{margin-bottom:3rem}.md\:mb-2{margin-bottom:.5rem}.md\:mb-20{margin-bottom:5rem}.md\:mb-40{margin-bottom:10rem}.md\:mr-0{margin-right:0}.md\:block{display:block}.md\:flex{display:flex}.md\:table{display:table}.md\:table-row{display:table-row}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-64{height:16rem}.md\:w-40{width:10rem}.md\:w-48{width:12rem}.md\:w-60{width:15rem}.md\:w-64{width:16rem}.md\:w-8{width:2rem}.md\:w-auto{width:auto}.md\:flex-1{flex:1 1 0%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-8{gap:2rem}.md\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.md\:gap-y-0{row-gap:0}.md\:gap-y-8{row-gap:2rem}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(2rem*var(--tw-space-x-reverse));margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))}.md\:p-14{padding:3.5rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-24{padding-top:6rem;padding-bottom:6rem}.md\:pb-20{padding-bottom:5rem}.md\:pb-8{padding-bottom:2rem}.md\:pl-28{padding-left:7rem}.md\:pt-12{padding-top:3rem}.md\:pt-16{padding-top:4rem}.md\:text-left{text-align:left}.md\:text-center{text-align:center}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:z-50{z-index:50}.lg\:mt-1{margin-top:.25rem}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1280px){.xl\:space-x-16>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(4rem*var(--tw-space-x-reverse));margin-left:calc(4rem*(1 - var(--tw-space-x-reverse)))}}
/* ==========================================================================
   R曲げパイプ.com renewal overrides
   Loaded after style.css (theme) and tailwind.css so these rules win.
   ========================================================================== */

/* ---------- Base / typography ---------- */
/* Windows' regular Yu Gothic renders too thin; map it to the Medium/Bold faces. */
@font-face { font-family: "YuGothicM"; src: local("Yu Gothic Medium"), local("YuGothic-Medium"); font-weight: 100 500; }
@font-face { font-family: "YuGothicM"; src: local("Yu Gothic Bold"), local("YuGothic-Bold"); font-weight: 600 900; }

:root {
  /* Brand colors from the logo manual: symbol red R230 G0 B18, logotype black R35 G24 B21. */
  --c-red: #e60012;
  --c-red-light: #ff808a;
  --c-red-soft: #fdeef0;
  --c-ink: #231815;
  --c-ink-2: #3b302c;
  --c-gray: #f4f5f7;
  --c-line: #e3e6ea;
  --c-text-sub: #5d646d;
  --grad-red: linear-gradient(135deg, #f2303c 0%, #e60012 50%, #bd0010 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 6px rgba(16, 24, 40, .06);
  --shadow: 0 22px 44px -22px rgba(16, 24, 40, .32);
  --shadow-lg: 0 30px 60px -24px rgba(16, 24, 40, .42);
  /* Designated typefaces: 游ゴシック体 Medium–Bold, and Montserrat as the web stand-in for Gotham. */
  --font-jp: "游ゴシック体", YuGothic, "YuGothicM", "游ゴシック", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --font-en: "Montserrat", var(--font-jp);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --arrow-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp);
  color: var(--c-ink);
  letter-spacing: .03em;
  /* The theme used word-break: break-all, which split words mid-way ("R曲げパイ/プ", "φ2/8.6"). */
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(230, 0, 18, .18); }

p, li, dd { line-height: 1.9; }
.bdx { word-break: keep-all; overflow-wrap: break-word; }
h1.bdx, h2.bdx, h3.bdx, h4.bdx { text-wrap: balance; }
main .flex-1 { min-width: 0; }
img { height: auto; }

a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  br.br-pc { display: none; }
  /* Long paragraphs centered for desktop read better left-aligned on phones. */
  .sp-left, .sp-left p { text-align: left !important; }
}
.para-gap { display: block; height: .9em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Dark photo panels. Heavy theme PNGs (0.3–1.1MB each) are replaced by WebP versions generated at build time. */
#top_mv, .page .page_mv, .top_contact { position: relative; isolation: isolate; overflow: hidden; color: #fff; background-color: var(--c-ink); }
#top_mv {
  background:
    radial-gradient(56rem 28rem at 92% -10%, rgba(230, 0, 18, .42), transparent 62%),
    linear-gradient(100deg, rgba(26, 17, 15, .95) 0%, rgba(26, 17, 15, .84) 55%, rgba(26, 17, 15, .66) 100%),
    url("assets/img/mv2.webp") center / cover no-repeat;
}
.page .page_mv {
  background:
    radial-gradient(40rem 20rem at 90% -20%, rgba(230, 0, 18, .38), transparent 60%),
    linear-gradient(100deg, rgba(26, 17, 15, .94) 0%, rgba(26, 17, 15, .74) 100%),
    url("assets/img/page_mv.webp") center / cover no-repeat;
}
.top_contact {
  background:
    radial-gradient(48rem 24rem at 8% 0%, rgba(230, 0, 18, .4), transparent 60%),
    linear-gradient(180deg, rgba(26, 17, 15, .9), rgba(26, 17, 15, .95)),
    url("assets/img/top_contact-bg.webp") center / cover no-repeat;
}
#top_mv::before, .page .page_mv::before, .top_contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
  pointer-events: none;
}

/* ---------- Header ---------- */
/* No backdrop-filter here: it would become the containing block of the fixed hamburger and SP menu. */
header#top { background: #fff; border-bottom: 1px solid var(--c-line); transition: box-shadow .3s var(--ease); }
header#top > .container > div { align-items: center; padding-top: .9rem; padding-bottom: .9rem; }
.header-catch {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-sub);
  margin-bottom: .3rem;
  letter-spacing: .04em;
}
@media (max-width: 767.98px) {
  /* One compact row for the sticky phone header. */
  .header-catch { display: none; }
  header#top > .container > div { padding: .7rem 4.5rem .7rem 1rem; }
  html.is-scrolled header#top { box-shadow: 0 10px 30px -18px rgba(16, 24, 40, .45); }
}

/* Site wordmark + corporate logo. The Seien logo keeps its clear space (0.25a) and stays wider than 20mm. */
.site-logo { display: flex; align-items: center; gap: 1.1rem; }
.site-logo__mark { flex: 0 1 auto; min-width: 0; width: 200px; height: auto; }
.site-logo__by { flex: none; display: flex; flex-direction: column; gap: .45rem; padding-left: 1.1rem; border-left: 1px solid var(--c-line); }
.site-logo__label { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1; color: var(--c-text-sub); white-space: nowrap; }
.site-logo__seien { width: 96px; height: auto; }
@media (max-width: 767.98px) {
  /* The hamburger already has its own padding; the 80% wrapper squeezed the logos. */
  header#top .w-4\/5 { width: auto; }
  .site-logo { gap: .75rem; }
  .site-logo__mark { width: 148px; }
  .site-logo__by { gap: .4rem; padding-left: .75rem; }
  .site-logo__label { font-size: 10px; letter-spacing: .08em; }
  .site-logo__seien { width: 80px; }
}

/* Tablet: the 9-item PC menu wrapped onto two lines and the hamburger overlapped it (768–1023px). */
@media (max-width: 1023.98px) {
  nav.pcnav { display: none !important; }
  header .container > div > .hidden.md\:block { display: none !important; }
  header .humburger-wrap { display: initial !important; }
}
@media (min-width: 1024px) {
  header .humburger-wrap { display: none !important; }
  header .menu_tel, header .menu_contact { display: initial; }
}
@media (min-width: 1180px) { header .menu_dl { display: initial; } }

header .menu_tel { margin-right: .75rem; }
.tel-link { display: inline-flex; flex-direction: column; line-height: 1.2; color: inherit; }
.tel-link__num { display: inline-flex; align-items: baseline; gap: .45rem; font-family: var(--font-en); font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.tel-link__label { font-size: .75rem; letter-spacing: .16em; color: var(--c-red); }
.tel-link__time { margin-top: .3rem; font-size: 12px; letter-spacing: .04em; color: var(--c-text-sub); white-space: nowrap; }
header .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-size: .88rem;
  letter-spacing: .05em;
  line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
header .btn:hover { transform: translateY(-1px); }
header .header-btn-red { background: var(--grad-red); box-shadow: 0 12px 22px -14px rgba(230, 0, 18, .9); }
header .header-btn-black { background: var(--c-ink); }

nav.pcnav {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s var(--ease);
}
html.is-scrolled nav.pcnav { box-shadow: 0 12px 30px -20px rgba(16, 24, 40, .45); }
nav.pcnav ul { display: flex; justify-content: center; }
nav.pcnav li { flex: 1 1 auto; }
nav.pcnav a { position: relative; white-space: nowrap; padding: 1.05rem .5rem; color: var(--c-ink); font-weight: 500; letter-spacing: .06em; transition: color .2s; }
nav.pcnav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: .65rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-red);
  transition: left .3s var(--ease), right .3s var(--ease);
}
nav.pcnav a:hover { background: none; color: var(--c-red); }
nav.pcnav a:hover::after, nav.pcnav a[aria-current="page"]::after { left: calc(50% - .9rem); right: calc(50% - .9rem); }
nav.pcnav a[aria-current="page"] { color: var(--c-red); }
@media (min-width: 1024px) and (max-width: 1279.98px) { nav.pcnav ul { font-size: 13px; } }

header .btn i { position: static; display: inline-flex; font-size: 1rem; }
/* Tailwind preflight makes <svg> block-level, which pushed the inline icons onto their own line. */
i.im { display: inline-flex; vertical-align: -.12em; }
header .btn .icon, .button-red .icon, .button-outline .icon { display: block; }

/* ---------- SP navigation (off-canvas) ---------- */
.hamburger { padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px -8px rgba(16, 24, 40, .35); top: .55rem !important; right: .75rem !important; }
.hamburger.is-active { background: transparent; box-shadow: none; }
.hamburger .hamburger-inner, .hamburger .hamburger-inner::before, .hamburger .hamburger-inner::after { height: 2px; border-radius: 2px; background-color: var(--c-ink); }
.hamburger.is-active .hamburger-inner, .hamburger.is-active .hamburger-inner::before, .hamburger.is-active .hamburger-inner::after { background-color: #fff; }
.sp-nav {
  right: 0 !important;
  width: min(20rem, 86vw);
  height: 100vh;
  height: 100dvh;
  transform: translateX(100%);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sp-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
.sp-nav > div { width: 100% !important; height: auto !important; min-height: 100%; padding-bottom: 2rem; background: linear-gradient(180deg, #231815 0%, #33241f 100%); }
.sp-nav nav ul { padding-right: 1rem; }
.sp-nav nav ul a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 15px; letter-spacing: .06em; padding: 1rem .25rem !important; border-color: rgba(255, 255, 255, .1) !important; }
.sp-nav nav ul a::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: .35rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .45; }
.sp-nav nav a[aria-current="page"] { color: var(--c-red-light); }
.sp-nav__cta { display: grid; gap: .75rem; padding: 1.5rem 1rem 0; }
.sp-nav__tel, .sp-nav__btn { display: block; text-align: center; color: #fff; font-weight: 700; padding: .95rem; line-height: 1.3; border-radius: 14px; }
.sp-nav__tel { font-family: var(--font-en); font-size: 1.2rem; border: 1px solid rgba(255, 255, 255, .22); letter-spacing: .04em; }
.sp-nav__btn { background: rgba(255, 255, 255, .08); }
.sp-nav__btn--red { background: var(--grad-red); }
.sp-nav-backdrop {
  position: fixed; inset: 0; z-index: 29;
  background: rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}
.sp-nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
html.is-nav-open, html.is-nav-open body { overflow: hidden; }

/* ---------- Headings ---------- */
.eyebrow {
  display: block;
  margin-bottom: .8rem;
  font-family: var(--font-en);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .26em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-red);
}
.h2-1 { font-size: clamp(1.55rem, 1.05rem + 2vw, 2.45rem); letter-spacing: .04em; line-height: 1.4; }
.h2-1::after { width: 44px; height: 3px; margin-top: 1.1rem; border-radius: 3px; background: var(--grad-red); }
.h2-1 + p, .top_column .wrap-2 > p:first-child { color: var(--c-text-sub); }
.top_news h2 { letter-spacing: .04em; }
.h3-1 {
  gap: .75rem;
  padding: 0 0 .85rem;
  margin-bottom: 1.5rem;
  background: none;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
  letter-spacing: .04em;
  line-height: 1.5;
}
.h3-1::before { flex: none; width: 4px; height: 1.25em; margin: 0; border-radius: 4px; background: var(--grad-red); }
.h3-page { color: var(--c-ink); font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem); line-height: 1.55; letter-spacing: .04em; }
.h3-3::before, .post-content h2::before { border-radius: 4px; background: var(--grad-red); }
.h4-1, .post-content h3 { position: relative; color: var(--c-ink); border-bottom-color: var(--c-line); }
.h4-1::after, .post-content h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 3rem; height: 2px; background: var(--c-red); }

/* ---------- Buttons ---------- */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1rem .95rem 2rem;
  border-radius: 999px;
  background: var(--c-ink);
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  box-shadow: 0 14px 28px -16px rgba(35, 24, 21, .8);
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-p::after { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-red) var(--arrow-w) center / .9rem no-repeat; transition: transform .25s var(--ease); }
.btn-p:hover { opacity: 1; background-color: #000; transform: translateY(-2px); }
.btn-p:hover::after { transform: translateX(3px); }
/* No display here: the theme's .hidden / md:hidden variants must keep working. */
.button-red, .button-outline {
  max-width: 22rem;
  padding: 1.05rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.button-red { background: var(--grad-red); box-shadow: 0 14px 28px -14px rgba(230, 0, 18, .8); }
.button-red:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(230, 0, 18, .9); }
.button-outline { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .05); }
.button-outline:hover { background: rgba(255, 255, 255, .14); }
.button-red i, .button-outline i { position: static; margin: 0 .45rem; font-size: 1em; }
.top_news .button-red { width: auto; margin: 0; padding: .8rem 1.5rem; }

/* ---------- Top: hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6.5rem) 0 clamp(2.75rem, 6vw, 5.5rem); }
.hero__inner { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; } }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .95rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-family: var(--font-en);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.hero__eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-red); box-shadow: 0 0 0 4px rgba(230, 0, 18, .28); }
/* PR logo is used as supplied: no shadow, border or rounded corners (logo manual). */
.hero__pr { display: flex; align-items: center; gap: 1.1rem; }
.hero__pr-logo { flex: none; width: clamp(66px, 5.6vw, 84px); height: auto; }
.hero__pr-text { display: grid; justify-items: start; gap: .6rem; margin: 0; line-height: 1.4; }
.hero__pr-lead { font-size: clamp(.88rem, .8rem + .3vw, 1.02rem); font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .92); }
@media (max-width: 639.98px) {
  .hero__pr .hero__eyebrow { display: none; }
}
.hero__title { margin: 1.3rem 0 1.2rem; font-size: clamp(1.85rem, 1.1rem + 3.3vw, 3.25rem); font-weight: 700; line-height: 1.34; letter-spacing: .03em; }
.hero__title .ib { display: inline-block; }
.hero__title em { font-style: normal; background: linear-gradient(90deg, #ff9ba2, #ff4d58); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 40rem; font-size: clamp(.95rem, .9rem + .25vw, 1.06rem); line-height: 2; color: rgba(255, 255, 255, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.5rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.hero__btn .icon { display: block; flex: none; transition: transform .25s var(--ease); }
.hero__btn--primary { background: var(--grad-red); color: #fff; box-shadow: 0 16px 32px -14px rgba(230, 0, 18, .85); }
.hero__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -14px rgba(230, 0, 18, .95); }
.hero__btn--primary:hover .icon { transform: translateX(3px); }
.hero__btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.hero__btn--ghost:hover { background: rgba(255, 255, 255, .14); }
@media (max-width: 639.98px) { .hero__btn { flex: 1 1 100%; } }
.hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.hero__stats li {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  line-height: 1.3;
}
.hero__num { display: block; font-family: var(--font-en); font-size: clamp(1.5rem, 1rem + 1.5vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.hero__num small { margin-left: .2em; font-size: max(12px, .46em); font-weight: 700; letter-spacing: .02em; color: var(--c-red-light); }
.hero__label { display: block; margin-top: .45rem; font-size: .8rem; letter-spacing: .06em; color: rgba(255, 255, 255, .68); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero__copy > *, .hero__stats li { animation: rise .9s var(--ease) backwards; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__stats li:nth-child(1) { animation-delay: .3s; }
.hero__stats li:nth-child(2) { animation-delay: .38s; }
.hero__stats li:nth-child(3) { animation-delay: .46s; }
.hero__stats li:nth-child(4) { animation-delay: .54s; }

/* ---------- Top: pipe category marquee (replaces the jQuery infinite slider) ---------- */
.top_scroll > .flex { background: #fff; border-bottom: 1px solid var(--c-line); }
.top_scroll .flex-1 { min-width: 0; }
.top_scroll .marquee-side { display: none; }
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 1.75rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; gap: 1.25rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; width: 184px; }
@media (min-width: 768px) { .marquee__item { width: 208px; } }
.marquee__item a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.marquee__item a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.marquee__item img { aspect-ratio: 4 / 3; object-fit: contain; padding: .75rem; background: linear-gradient(180deg, #fff, var(--c-gray)); }
.marquee__item p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-ink);
  font-size: .95rem;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}
.marquee__item p::after { content: ""; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-red) var(--arrow-w) center / .75rem no-repeat; }
@media (max-width: 767.98px) { .marquee__item p { padding: .7rem .8rem; font-size: .9rem; letter-spacing: .02em; } }
/* --marquee-shift (one card set, measured by renewal.js); the fallback assumes the two sets from the build. */
@keyframes marquee { to { transform: translateX(calc(-1 * var(--marquee-shift, calc(50% + .625rem)))); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
}

/* ---------- Top: technology band (PR logo) ---------- */
.tech-band { padding: clamp(3rem, 6vw, 5rem) 0; background: #fff; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.tech-band__inner { display: grid; gap: 2rem; align-items: center; padding: 0 1rem; }
@media (min-width: 768px) { .tech-band__inner { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); } }
.tech-band__logo { display: flex; justify-content: center; padding: 1.5rem; }
.tech-band__logo img { width: clamp(120px, 16vw, 168px); height: auto; }
.tech-band__title { color: var(--c-ink); font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.tech-band__body > p { margin: 1rem 0 1.4rem; color: var(--c-text-sub); }
.tech-band__points { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.9rem; }
.tech-band__points li { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-gray); font-size: .9rem; font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.tech-band__points li::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--c-red); }
@media (max-width: 767.98px) { .tech-band__body { text-align: left; } }
/* Product page for the micro R-bending service */
.pr-logo { display: block; width: 112px; height: auto; margin: 0 0 1.25rem; }
@media (min-width: 768px) { .pr-logo { margin-inline: auto; } }

/* ---------- Top: virtual tour / online consultation cards ---------- */
.top_links .zoom {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.top_links .zoom:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.top_links .zoom > .flex { flex-wrap: nowrap; height: 100%; }
/* The theme's fixed 240px image column squeezed the text into a 1-character-wide strip on tablets. */
.top_links .zoom .overflow-hidden { flex: 0 0 36%; width: 36%; }
.top_links .zoom picture, .top_links .zoom img { display: block; height: 100%; }
.top_links .zoom img { min-height: 9rem; object-fit: cover; }
.top_links .zoom .flex-1 { display: flex; flex-direction: column; justify-content: center; padding: 1.25rem 1.5rem; color: var(--c-ink); }
.top_links .flex-1 p.text-2xl { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.4; }
.top_links .flex-1 p.text-2xl::after { content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c-red) var(--arrow-w) center / .85rem no-repeat; transition: transform .3s var(--ease); }
.top_links .zoom:hover p.text-2xl::after { transform: translateX(4px); }
.top_links .flex-1 p.mb-2 { margin: .45rem 0 0; font-size: .9rem; line-height: 1.8; color: var(--c-text-sub); }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .top_links .zoom > .flex { flex-direction: column; }
  .top_links .zoom .overflow-hidden { flex: none; width: 100%; aspect-ratio: 16 / 9; }
}

/* ---------- Top: reasons ---------- */
/* The shorthand also drops the theme's background-attachment: fixed (blurry and zoomed on iOS). */
.top_reason { background: var(--c-gray) radial-gradient(circle at 1px 1px, rgba(35, 24, 21, .09) 1px, transparent 0) 0 0 / 22px 22px; }
.top_reason .flex.flex-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.top_reason .flex.flex-wrap > .relative {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  width: auto;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.top_reason .flex.flex-wrap > .relative:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.top_reason .relative > .overflow-hidden img { height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.top_reason .relative:hover > .overflow-hidden img { transform: scale(1.05); }
.top_reason .relative > .p-4 { align-self: center; padding: 1rem 1.15rem; }
.top_reason h3.ttl { display: block; color: var(--c-ink); font-size: 1.02rem; line-height: 1.6; letter-spacing: .04em; }
.top_reason h3.ttl br { display: none; }
.top_reason span.point {
  top: .6rem;
  left: .6rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--grad-red);
  font-family: var(--font-en);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px -8px rgba(230, 0, 18, .9);
}
@media (min-width: 768px) {
  .top_reason .flex.flex-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .top_reason .flex.flex-wrap > .relative { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .top_reason .flex.flex-wrap > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .top_reason .flex.flex-wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
  .top_reason .flex.flex-wrap > .relative { display: flex; flex-direction: column; grid-column: span 2; border-radius: var(--radius-lg); }
  .top_reason .flex.flex-wrap > :nth-child(-n + 2) { grid-column: span 3; }
  .top_reason .flex.flex-wrap > :last-child { grid-column: span 2; }
  .top_reason .relative > .overflow-hidden { aspect-ratio: 16 / 10; }
  .top_reason .relative > .p-4 { align-self: stretch; padding: 1.4rem 1.6rem 1.7rem; }
  .top_reason h3.ttl { font-size: clamp(1.1rem, .8rem + .6vw, 1.3rem); }
  .top_reason span.point { top: 1rem; left: 1rem; width: 2.75rem; height: 2.75rem; font-size: .95rem; }
}

/* ---------- Pipe type grid / usage / material lists ---------- */
.pipe-types > div > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pipe-types > div > a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.pipe-types img { aspect-ratio: 4 / 3; object-fit: contain; padding: .6rem; background: linear-gradient(180deg, #fff, var(--c-gray)); }
.pipe-types p { padding: .7rem .5rem; border-top: 1px solid var(--c-line); background: #fff; font-size: 1rem; line-height: 1.35; }
.top_results ul.grid li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  line-height: 1.5;
}
.top_results ul.grid li::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--c-red); }
@media (max-width: 1023.98px) {
  /* Two chips per row leave ~150px: keep 9-character katakana names such as ディーゼルエンジン on one line. */
  .top_results ul.grid li { gap: .45rem; padding: .7rem .65rem; font-size: .85rem; letter-spacing: 0; }
  .top_results ul.grid li::before { width: .35rem; height: .35rem; }
}
@media (min-width: 1024px) {
  /* Three chips per row in a half-width column. */
  .top_results ul.grid li { padding: .8rem .75rem; font-size: .9rem; letter-spacing: 0; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  /* The half-width column is too narrow for three long katakana chips per row. */
  .top_results ul.grid.lg\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .top_results ul.grid li { font-size: clamp(.8rem, 3.6vw, .88rem); }
  .pipe-types p { font-size: .88rem; padding: .55rem .25rem; }
}

/* Spec diagrams: tap to enlarge */
.zoomable { display: block; cursor: zoom-in; padding: 1rem 1rem .75rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; transition: box-shadow .3s var(--ease), border-color .3s; }
.zoomable:hover { box-shadow: var(--shadow); border-color: transparent; }
.zoomable__hint { display: block; margin-top: .5rem; font-size: 12px; color: var(--c-text-sub); text-align: right; }
.zoomable__hint::before { content: "\2922  "; color: var(--c-red); }

/* Lot chart (replaces lot-size.png, which was unreadable on phones) */
.lot-chart { max-width: 927px; margin: 0 auto; word-break: keep-all; }
.lot-chart__bar { display: flex; height: 180px; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.lot-chart__seg {
  width: var(--w);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .25rem; text-align: center; line-height: 1.5; border-right: 1px solid var(--c-line);
}
.lot-chart__seg:last-child { border-right: 0; }
.lot-chart__seg--sub { background: repeating-linear-gradient(135deg, #f8f9fa 0 10px, #eff1f4 10px 20px); color: var(--c-text-sub); font-size: .8rem; font-weight: 700; }
.lot-chart__seg--main { background: var(--grad-red); color: #fff; font-size: 2.1rem; font-weight: 700; letter-spacing: .08em; }
.lot-chart__seg small { display: none; }
.lot-chart__axis { position: relative; height: 1.9rem; margin-top: .5rem; font-family: var(--font-en); font-weight: 700; color: var(--c-text-sub); font-size: .95rem; }
.lot-chart__axis span { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.lot-chart__axis span:first-child { transform: none; }
.lot-chart__axis span:last-child { transform: translateX(-100%); }
@media (max-width: 767.98px) {
  .lot-chart__bar { flex-direction: column; height: auto; }
  .lot-chart__seg { width: auto; flex-direction: row; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-right: 0; border-bottom: 1px solid var(--c-line); font-size: .95rem; }
  .lot-chart__seg:last-child { border-bottom: 0; }
  .lot-chart__seg--main { font-size: 1.3rem; padding: 1.2rem 1rem; }
  .lot-chart__seg small { display: block; font-size: .95rem; font-weight: 700; letter-spacing: 0; }
  .lot-chart__axis { display: none; }
}

/* ---------- Case study cards ---------- */
.top_results.is-alt { background: var(--c-gray); }
.zoom img { transition: transform .6s var(--ease); }
.zoom:hover img { transform: scale(1.05); }
.archive-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.archive-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.archive-item > a { display: flex; flex-direction: column; height: 100%; }
.archive-item .overflow-hidden { aspect-ratio: 4 / 3; background: var(--c-gray); }
.archive-item .overflow-hidden img { width: 100%; height: 100%; object-fit: cover; }
.archive-item > a > .px-2 { display: flex; flex-direction: column; flex: 1; padding: 0; }
.archive-item h4.ttl { padding: 1rem 1rem .5rem; color: var(--c-ink); font-size: clamp(.92rem, .85rem + .3vw, 1.05rem); line-height: 1.55; transition: color .25s; }
.archive-item:hover h4.ttl { color: var(--c-red); }
.archive-item .table-scroll { margin-top: auto; padding: 0 1rem 1rem; }
.archive-item .table_spec { border: 0; font-size: .8rem; }
.archive-item .table_spec tbody tr th, .archive-item .table_spec tbody tr td {
  padding: .35rem 0;
  border: 0;
  border-top: 1px dashed var(--c-line);
  background: none;
  letter-spacing: .02em;
  line-height: 1.5;
  vertical-align: top;
}
.archive-item .table_spec tbody tr th { width: 3.2rem; padding-right: .5rem; color: var(--c-text-sub); font-weight: 500; }
@media (max-width: 767.98px) {
  .table_spec tbody tr th, .table_spec tbody tr td { padding: 6px 8px; letter-spacing: 0; }
}

/* ---------- Tables ---------- */
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767.98px) {
  .table-scroll .whitespace-nowrap, .table-scroll .whitespace-nowrap th { white-space: normal; }
}
.table_spec, .table_spec thead tr th, .table_spec thead tr td, .table_spec tbody tr th, .table_spec tbody tr td { border-color: var(--c-line); }
.table_spec thead tr th { background: var(--c-ink-2); }
.table_spec tbody tr th { background: #f7f8fa; }

/* ---------- Sub pages: layout ---------- */
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* Sidebar (256px) left only ~450px for the content on tablets: stack instead. */
  main > .container.md\:flex-row { flex-direction: column-reverse; }
  main > .container.md\:flex-row > * { margin-left: 0 !important; margin-right: 0 !important; }
  main > .container.md\:flex-row > aside.sidebar { width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; align-items: start; }
}
.page_mv > .container { padding-top: clamp(2.25rem, 6vw, 4.75rem); padding-bottom: clamp(2.25rem, 6vw, 4.75rem); }
.page_mv h1 { font-size: clamp(1.7rem, 1.15rem + 2.4vw, 3rem); line-height: 1.3; letter-spacing: .04em; }
.page_mv h1 > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .5rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .72);
}
.page_mv h1 > span:first-child::before { content: ""; width: 1.75rem; height: 2px; border-radius: 2px; background: var(--c-red); }
.breadcrumb { padding-top: .7rem; padding-bottom: .7rem; background: #fff; border-bottom: 1px solid var(--c-line); }
.breadcrumb li { color: var(--c-text-sub); }
.breadcrumb li a { transition: color .2s; }
.breadcrumb li a:hover { color: var(--c-red); }
.breadcrumb ol > li:last-child { color: var(--c-ink); }
.breadcrumb ol > li + li::before { width: 6px; height: 6px; top: calc(50% - 3px); left: -17px; border-top: 1.5px solid #b5bcc5; border-right: 1.5px solid #b5bcc5; background: none; transform: rotate(45deg); }
.breadcrumb li:first-child { flex-shrink: 0; white-space: nowrap; }
/* reason page: photos substituted for images missing on the live server */
.reason-photo { max-width: 36rem; }
.reason-photo img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Sidebar ---------- */
aside p.ttl { margin-bottom: .75rem; padding: 0 0 .7rem; background: none; color: var(--c-ink); border-bottom: 2px solid var(--c-ink); font-size: 1.05rem; letter-spacing: .06em; }
aside p.ttl::before { width: .55rem; height: .55rem; margin-right: .6rem; border-radius: 2px; background: var(--c-red); }
aside .side-wrap > div.border { padding: 0; border: 0; }
aside p.subttl { margin: 0; padding: .75rem .25rem; border-bottom: 1px solid var(--c-line); font-weight: 500; }
aside p.subttl a, aside ul li a { transition: color .2s; }
aside p.subttl a:hover, aside ul li a:hover { color: var(--c-red); }
aside ul li a { padding: .8rem .25rem; border-bottom-color: var(--c-line); }
aside ul li a:after { content: ""; flex: none; width: 6px; height: 6px; margin: 0 .35rem 0 auto; border-top: 1.5px solid var(--c-red); border-right: 1.5px solid var(--c-red); transform: rotate(45deg); }
aside .side-links a { gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; font-weight: 500; transition: border-color .2s, box-shadow .2s, color .2s; }
aside .side-links a:hover { opacity: 1; color: var(--c-red); border-color: rgba(230, 0, 18, .45); box-shadow: var(--shadow-sm); }
aside .side-links a svg { flex: none; margin-right: 0; }
aside .widget_text img { border-radius: 10px; }
aside button { width: 28px; height: 28px; border-radius: 50%; background-color: var(--c-gray); }
aside button:before { width: 11px; height: 1.5px; top: 13px; left: 8.5px; background-color: var(--c-ink); }
aside button:after { width: 1.5px; height: 11px; top: 8.5px; left: 13px; background-color: var(--c-ink); }

/* Sidebar blocks collapsible on phones */
@media (max-width: 767.98px) {
  aside .is-collapsible p.ttl { cursor: pointer; }
  aside .is-collapsible.is-closed > div { display: none; }
}
aside button[aria-expanded="true"]::after { transform: rotate(90deg); opacity: 0; }

/* ---------- FAQ ---------- */
.js .answer:not(.is-open) { display: none; }
.faq-item {
  margin-bottom: .75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s, box-shadow .25s var(--ease);
}
.faq-item:hover { border-color: #cdd2d9; }
.faq-item:has(.question[aria-expanded="true"]) { border-color: transparent; box-shadow: var(--shadow); }
.faq-item .question { align-items: center; padding: 1.05rem 2.25rem 1.05rem 0; font-size: 1.05rem; }
.question .flex-1 { line-height: 1.6; }
.faq-item .question > span:first-child, .faq-item .answer > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-right: .9rem;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  font-family: var(--font-en);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
}
.faq-item .answer > span:first-child { background: var(--grad-red); }
.faq-item .answer { padding: 1rem 0 1.25rem; border-top: 1px dashed var(--c-line); }
.answer p { line-height: 1.9; color: var(--c-ink-2); }
@media (max-width: 767.98px) {
  .faq-item { padding: 0 1rem; }
  .faq-item .question { font-size: 1rem; }
}
.faq-status { margin-top: .75rem; font-size: .9rem; color: var(--c-text-sub); }
.faq_search { overflow: hidden; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq_search:focus-within { border-color: var(--c-red); box-shadow: 0 0 0 4px rgba(230, 0, 18, .14); }
.faq_search input[type="search"] { padding: .85rem 1.25rem; border: 0; background: transparent; font-size: 16px; }
.faq_search input[type="search"]:focus-visible { outline: none; }
.faq_search button { padding: 0 1.4rem; background: var(--grad-red); }
/* Category tabs (FAQ / column lists) overflowed on 360px phones: allow wrapping. */
.faq_cat { flex-wrap: wrap; gap: .6rem; }
.faq_cat a { align-items: center; padding: .6rem 1.1rem; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; transition: border-color .2s, color .2s, box-shadow .2s; }
.faq_cat a:hover { opacity: 1; color: var(--c-red); border-color: var(--c-red); box-shadow: var(--shadow-sm); }
input[type="file"] { max-width: 100%; }

/* ---------- Forms ---------- */
/* Base rules from the Contact Form 7 plugin stylesheet (not loaded on the static sample). */
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7-response-output:empty, .wpcf7-spinner { display: none; }
.wpcf7-form-control-wrap { position: relative; }
.wpcf7-list-item { display: inline-block; margin: 0 1.25em .35em 0; }
.wpcf7-list-item label { display: inline-flex; align-items: center; gap: .45em; min-height: 32px; cursor: pointer; }
.wpcf7-list-item input[type="checkbox"], .wpcf7-list-item input[type="radio"] { width: 1.15em; height: 1.15em; accent-color: var(--c-red); }
.wpcf7-submit { cursor: pointer; }
.demo-notice { margin-bottom: 1.5rem; padding: .85rem 1.1rem; border: 1px solid #f0c36d; border-radius: 12px; background: #fff8e6; font-size: .9rem; line-height: 1.6; }
.demo-result { margin-top: 1rem; padding: .85rem 1.1rem; border: 1px solid #34d399; border-radius: 12px; background: #ecfdf5; font-weight: 700; }
/* iOS Safari zooms into inputs smaller than 16px */
.contact-wrap input, .contact-wrap textarea, .contact-wrap select, .c-input, .c-textarea { font-size: 16px; }
.contact-wrap .wpcf7 { padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.c-table.c-form_table tr > th, .c-table.c-form_table tr > td { border: 0; background: none; }
.c-table.c-form_table tr > th { padding: 1.1rem 0 .5rem; font-size: .95rem; text-align: left; }
.c-table.c-form_table tr > td { padding: 0 0 1.1rem; }
.c-table.c-form_table tr + tr > th { border-top: 1px solid var(--c-line); }
@media (min-width: 768px) {
  .c-table.c-form_table tr > th { width: 15rem; min-width: 0; padding: 1.35rem 1.5rem 1.35rem 0; vertical-align: middle; }
  .c-table.c-form_table tr > td { padding: 1.1rem 0; }
  .c-table.c-form_table tr + tr > td { border-top: 1px solid var(--c-line); }
}
.c-must, .c-any { display: inline-block; margin-left: .6rem; padding: .25rem .55rem; border: 0; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: .06em; vertical-align: .12em; }
.c-must { background: var(--c-red); color: #fff; }
.c-any { background: var(--c-gray); color: var(--c-text-sub); }
.wpcf7-form .wpcf7-form-control.c-input, .wpcf7-form .wpcf7-form-control.c-textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #d3d8df;
  border-radius: 12px;
  background: #fbfbfc;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.wpcf7-form .wpcf7-form-control.c-textarea { min-height: 12rem; }
/* The red ring replaces the default outline as the focus indicator. */
.wpcf7-form .wpcf7-form-control.c-input:focus, .wpcf7-form .wpcf7-form-control.c-textarea:focus { border-color: var(--c-red); background: #fff; box-shadow: 0 0 0 4px rgba(230, 0, 18, .14); outline: none; }
.c-check_list .wpcf7-list-item { margin: 0 .5rem .5rem 0; }
.c-check_list .wpcf7-list-item label { padding: .45rem .95rem; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; transition: border-color .2s, background-color .2s; }
.c-check_list .wpcf7-list-item label:has(input:checked) { border-color: var(--c-red); background: var(--c-red-soft); }
.c-note__txt p { font-size: .85rem; color: var(--c-text-sub); }
.wpcf7-form .wpcf7-form-control.c-input.is-readonly { background: var(--c-gray); color: var(--c-ink); font-weight: 700; cursor: default; }
.recaptcha-notice { margin-top: 1rem; font-size: 12px; line-height: 1.7; text-align: center; color: var(--c-text-sub); }
.recaptcha-notice a { text-decoration: underline; }
/* The v3 badge may be hidden only because .recaptcha-notice is shown (Google reCAPTCHA FAQ). */
.grecaptcha-badge { visibility: hidden; }
.wpcf7-form input.wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin: 2rem auto 0;
  padding: 1.1rem 1.5rem;
  border-radius: 999px;
  background: var(--grad-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2em;
  box-shadow: 0 16px 30px -14px rgba(230, 0, 18, .85);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wpcf7-form input.wpcf7-submit:hover { transform: translateY(-2px); }

/* ---------- Contact CTA ---------- */
.top_contact h3 { margin-bottom: 1.25rem; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); line-height: 1.4; letter-spacing: .04em; }
.top_contact .eyebrow { color: var(--c-red-light); }
.top_contact p { line-height: 1.95; color: rgba(255, 255, 255, .78); }
.top_contact .grid { align-items: center; gap: 1rem; }
.top_contact .tel-link { align-items: center; color: #fff; }
.top_contact .tel-link__num { font-size: 1.75rem; }
.top_contact .tel-link__label { color: var(--c-red-light); }
.top_contact .tel-link__time { color: rgba(255, 255, 255, .65); }

/* ---------- Footer ---------- */
footer { background: #fff; border-top: 1px solid var(--c-line); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.footer-brand__mark { width: 220px; height: auto; }
.footer-brand__company { display: inline-flex; align-items: center; gap: 1rem; padding: .35rem 0 .35rem 1.5rem; border-left: 1px solid var(--c-line); color: var(--c-text-sub); font-size: .78rem; letter-spacing: .1em; line-height: 1.4; }
.footer-brand__seien { width: 110px; height: auto; }
@media (max-width: 767.98px) {
  .footer-brand__mark { width: 190px; }
  .footer-brand__company { padding-left: 0; border-left: 0; }
}
footer dl dt { letter-spacing: .1em; }
footer dd { color: var(--c-text-sub); }
footer .footer-nav a { font-size: 15px; color: var(--c-ink-2); transition: color .2s; }
footer .footer-nav a:hover { color: var(--c-red); }
footer ul li a:before { top: .72em; left: -14px; width: 6px; height: 1.5px; border: 0; background: var(--c-red); }
footer p.bg-gray-800 { padding-top: .9rem; padding-bottom: .9rem; background: var(--c-ink); font-family: var(--font-en); font-weight: 600; letter-spacing: .08em; }
@media (max-width: 767.98px) {
  footer .wrap > .flex { flex-direction: column; }
  footer .wrap > .flex > * { margin-left: 0 !important; margin-right: 0 !important; }
  footer .footer-nav { gap: 0 1.5rem; margin-top: 1.75rem; padding-left: 1rem; }
  footer .footer-nav a { font-size: 14px; margin-bottom: .6rem; }
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
.sample-note { margin: 0; padding: 0 1rem .9rem; background: var(--c-ink); color: rgba(255, 255, 255, .6); font-size: 12px; text-align: center; line-height: 1.5; }

/* ---------- Floating menu / go-top ---------- */
#float-menu { z-index: 35; opacity: 0; visibility: hidden; transform: translateY(120%); transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s; }
#float-menu.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
#float-menu a { gap: .4rem; min-height: 44px; letter-spacing: .06em; transition: filter .2s, transform .2s var(--ease); }
#float-menu a:hover { opacity: 1; filter: brightness(1.08); }
#float-menu a.bg-red-600 { background: var(--grad-red); }
#float-menu a.bg-black { background: var(--c-ink); }
#float-menu i { display: inline-flex; margin: 0; font-size: .95rem; }
@media (max-width: 767.98px) {
  #float-menu {
    left: .75rem;
    right: .75rem;
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    width: auto;
    gap: .4rem;
    padding: .35rem;
    border: 1px solid rgba(35, 24, 21, .06);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
  }
  #float-menu a { flex: 1 1 0; width: auto; padding: .7rem .5rem; border-radius: 999px; font-size: .8rem; }
}
@media (min-width: 768px) {
  #float-menu { gap: .35rem; transform: translateX(120%); }
  #float-menu.is-visible { transform: none; }
  #float-menu a { width: 2.9rem; height: auto; padding: 1.2rem 0; border-radius: 14px 0 0 14px; box-shadow: var(--shadow); font-size: .85rem; }
  #float-menu a:hover { transform: translateX(-3px); }
}
#gotop { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
#gotop.is-visible { opacity: 1; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
@media (min-width: 768px) {
  #gotop { display: flex !important; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; right: 1.25rem; bottom: 1.25rem; border-radius: 50%; background: var(--c-ink); box-shadow: var(--shadow); }
  #gotop.is-visible:hover { transform: translateY(-3px); }
  #gotop > div { width: auto !important; }
  #gotop img { display: none; }
  #gotop p { font-family: var(--font-en); font-size: .75rem; letter-spacing: .1em; line-height: 1.2; }
}

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox__inner { max-width: 96vw; max-height: 88vh; min-width: min(280px, 90vw); min-height: 160px; overflow: auto; border-radius: 12px; background: #fff; }
.lightbox__inner img { width: auto; max-width: none; height: auto; display: block; }
@media (min-width: 768px) { .lightbox__inner img { max-width: 92vw; max-height: 86vh; } }
.lightbox__close { position: absolute; top: -.75rem; right: -.5rem; z-index: 1; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: #000; color: #fff; font-size: 1.4rem; line-height: 1; }

/* ---------- 404 ---------- */
.not-found__main { max-width: 640px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.not-found__main img { width: 252px; margin: 0 auto 2rem; }
.not-found__main h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.not-found__link { display: inline-block; margin-top: 1.5rem; padding: .95rem 2.5rem; border-radius: 999px; background: var(--grad-red); color: #fff; font-weight: 700; letter-spacing: .06em; box-shadow: 0 16px 30px -14px rgba(230, 0, 18, .85); }

/* ---------- Column teasers (top page + archives share this class from the build) ---------- */
.column-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.column-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.column-card > .flex { gap: 1.25rem; padding: 0; align-items: flex-start; }
.column-card .w-1\/5 { flex: 0 0 26%; width: 26%; margin: 0; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; }
.column-card .w-1\/5 img { height: 100%; object-fit: cover; }
.column-card .flex-1 > p:first-child { margin-bottom: .35rem; font-family: var(--font-en); font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--c-text-sub); }
.column-card h3, .column-card .flex-1 > p.font-bold { margin-bottom: .45rem; color: var(--c-ink); font-size: clamp(1rem, .95rem + .35vw, 1.2rem); line-height: 1.55; transition: color .2s; }
.column-card:hover h3, .column-card:hover .flex-1 > p.font-bold { color: var(--c-red); }
.column-card .flex-1 > div:not(.flex) p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--c-text-sub); font-size: .88rem; line-height: 1.8; }
.column-card .flex.gap-2 { margin-top: .75rem; }
.column-card .rounded.border { padding: .2rem .7rem; border-color: var(--c-line); border-radius: 999px; background: var(--c-gray); }
@media (max-width: 767.98px) {
  .column-card .w-1\/5 { flex-basis: 34%; width: 34%; }
  .column-card .flex-1 > div:not(.flex) { display: none; }
}

/* ---------- News / pager / tags ---------- */
.top_news { background: var(--c-gray); }
.top_news .wrap.bg-white { border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.top_news li { border-color: var(--c-line); }
.top_news li a { transition: color .2s; }
.top_news li a:hover { color: var(--c-red); }
.top_news li span.border { border-color: var(--c-line); border-radius: 999px; background: var(--c-gray); }
.pager .nav-links li { overflow: hidden; border: 1px solid var(--c-line); border-radius: 12px; font-family: var(--font-en); font-weight: 700; }
.pager .nav-links li:hover, .pager .nav-links li .current { border-color: var(--c-ink); background-color: var(--c-ink); }
span.tag { padding: .3rem .8rem; border-radius: 999px; }

/* ---------- Scroll reveal (classes are added by renewal.js only when IntersectionObserver exists) ---------- */
.reveal:not(.is-inview) { opacity: 0; }
.reveal.is-inview { animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@media print {
  .reveal { opacity: 1 !important; animation: none !important; }
}

i.im { mask-image: none; -webkit-mask-image: none; background: transparent; }
