@charset "UTF-8";

:root{
  --navy:#102a43;
  --navy-2:#173f62;
  --red:#b7132d;
  --ink:#141b22;
  --muted:#66717b;
  --line:#dfe5ea;
  --surface:#ffffff;
  --surface-muted:#f4f7f9;
  --container:1180px;
  --header-height:96px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:#fff;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
  line-height:1.8;
}
body.is-menu-open{overflow:hidden}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
.container{width:min(calc(100% - 48px),var(--container));margin-inline:auto}
.skip-link{
  position:fixed;left:16px;top:-80px;z-index:10000;
  padding:10px 16px;background:#fff;color:var(--navy);font-weight:700;
}
.skip-link:focus{top:16px}

.site-header{
  position:fixed;inset:0 0 auto;z-index:1000;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(16,42,67,.08);
  transition:box-shadow .25s ease;
}
.site-header.is-scrolled{box-shadow:0 10px 28px rgba(16,42,67,.12)}
.site-header__inner{
  width:min(calc(100% - 40px),1320px);
  height:var(--header-height);margin:auto;
  display:flex;align-items:center;justify-content:space-between;gap:30px;
}
.site-logo{display:block;flex:0 0 auto}
.site-logo img{display:block;width:300px;max-width:32vw}

.global-nav{display:flex;align-items:stretch;gap:6px}
.global-nav a{
  min-width:102px;padding:18px 12px 14px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-weight:700;font-size:.91rem;line-height:1.3;transition:.2s;
}
.global-nav a small{margin-top:4px;color:var(--muted);font-size:.65rem;letter-spacing:.11em}
.global-nav a:hover{color:var(--red)}
.global-nav__contact{background:var(--navy);color:#fff!important}
.global-nav__contact small{color:#dbe7ef!important}

.menu-button{display:none;width:48px;height:48px;border:0;background:transparent}
.menu-button span{display:block;width:28px;height:2px;margin:6px auto;background:var(--navy);transition:.2s}

.foundation-hero{
  min-height:610px;padding:calc(var(--header-height) + 110px) 24px 100px;
  display:grid;align-items:center;color:#fff;
  background:
    linear-gradient(110deg,rgba(9,29,47,.92),rgba(16,42,67,.72)),
    repeating-linear-gradient(135deg,#102a43 0,#102a43 28px,#173f62 28px,#173f62 56px);
}
.foundation-hero__inner{width:min(100%,var(--container));margin:auto}
.foundation-hero__eyebrow{margin:0 0 18px;color:#f1a9b5;font-weight:800;letter-spacing:.2em}
.foundation-hero h1{
  margin:0 0 24px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(2.2rem,5vw,4.8rem);line-height:1.35;
}
.foundation-hero p:last-child{max-width:760px;margin:0;color:#e6eef4;font-size:1.06rem}

.foundation-section{padding:100px 0;background:var(--surface)}
.foundation-section--muted{background:var(--surface-muted)}
.section-heading p{margin:0;color:var(--red);font-weight:800;letter-spacing:.18em}
.section-heading h2{margin:7px 0 30px;font-size:clamp(1.8rem,4vw,3.1rem)}
.foundation-panel{padding:42px;background:#fff;border:1px solid var(--line);box-shadow:0 14px 36px rgba(16,42,67,.07)}
.foundation-panel h3{margin-top:0;font-size:1.45rem}
.foundation-panel p{margin-bottom:0;color:var(--muted)}

.section-placeholder{
  min-height:210px;border:1px solid var(--line);background:rgba(255,255,255,.72);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.section-placeholder strong{font-size:clamp(2.2rem,6vw,4.5rem);color:var(--navy);letter-spacing:.08em}
.section-placeholder span{font-weight:700;color:var(--muted)}

.site-footer{background:#fff;color:#111;border-top:1px solid var(--line)}
.site-footer__inner{
  width:min(calc(100% - 48px),var(--container));margin:auto;padding:30px 0 20px;
  display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;
}
.footer-company img{display:block;width:240px;max-width:100%;margin-bottom:10px}
.footer-company address{font-style:normal}
.footer-company p{margin:6px 0 0}
.footer-company a{text-decoration:underline;text-underline-offset:3px}
.footer-links{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 26px}
.footer-links a{padding:6px 0;border-bottom:1px solid var(--line);font-weight:700}
.footer-links a:hover{color:var(--red)}
.site-footer__bottom{padding:10px 24px;border-top:1px solid var(--line);text-align:center}
.site-footer__bottom p{margin:0;font-size:.82rem}

.page-top{
  position:fixed;right:22px;bottom:22px;z-index:500;
  width:48px;height:48px;border:0;border-radius:50%;
  background:var(--navy);color:#fff;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(10px);transition:.2s;
}
.page-top.is-visible{opacity:1;visibility:visible;transform:none}
.page-top:hover{background:var(--red)}

:focus-visible{outline:3px solid #f2b705;outline-offset:3px}


/* ===== STAGE 2 ===== */
.hero{position:relative;min-height:760px;display:grid;align-items:center;overflow:hidden;color:#fff}
.hero__slides,.hero__slide,.hero__overlay{position:absolute;inset:0}
.hero__slide{background-size:cover;background-position:center;opacity:0;transform:scale(1.04);transition:opacity 1s ease,transform 6s ease}
.hero__slide.is-active{opacity:1;transform:scale(1)}
.hero__overlay{background:linear-gradient(90deg,rgba(5,22,36,.76),rgba(5,22,36,.28) 62%,rgba(5,22,36,.08))}
.hero__content{position:relative;z-index:2;padding-top:var(--header-height)}
.hero__eyebrow{margin:0 0 18px;color:#ffc2cc;font-weight:800;letter-spacing:.2em}
.hero h1{margin:0 0 22px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(2.5rem,5.6vw,5.3rem);line-height:1.34;text-shadow:0 3px 14px rgba(0,0,0,.38)}
.hero__content>p:last-child{font-size:1.08rem;text-shadow:0 2px 10px rgba(0,0,0,.42)}
.hero__dots{position:absolute;z-index:3;left:50%;bottom:28px;transform:translateX(-50%);display:flex;gap:10px}
.hero__dots button{width:36px;height:4px;padding:0;border:0;background:rgba(255,255,255,.46);cursor:pointer;transition:.25s}
.hero__dots button.is-active{width:54px;background:#fff}

.content-section{padding:105px 0}
.about-section,.access-section{background:#fff}
.message-section,.company-section{background:var(--surface-muted)}
.two-column{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center}
.section-title p{margin:0;color:var(--red);font-weight:800;letter-spacing:.18em}
.section-title h2{margin:7px 0 32px;font-size:clamp(2rem,4vw,3.2rem)}
.section-title--inline{display:flex;align-items:center;gap:22px}
.section-title--inline h2{margin:0;font-size:1.22rem}
.section-title--light p,.section-title--light h2{color:#fff}
.section-copy h3,.company-intro h3,.recruit-banner h3{margin:0 0 24px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(1.8rem,3.6vw,3rem);line-height:1.55}
.section-copy p,.company-intro p{color:var(--muted)}
.section-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;box-shadow:0 18px 45px rgba(16,42,67,.16)}

.message-layout{display:grid;grid-template-columns:minmax(270px,390px) 1fr;gap:65px;align-items:start;margin-top:42px}
.message-photo img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;box-shadow:0 18px 45px rgba(16,42,67,.14)}
.message-copy p{margin:0 0 17px;color:#38434c}
.president-signature{margin-top:34px;display:flex;justify-content:flex-end;align-items:center;gap:22px}
.president-signature__title{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:1.15rem;line-height:1.55;letter-spacing:.08em}
.president-signature img{display:block;width:350px;max-width:52%;height:auto}

.works-preview{background:#fff}
.works-stage-note{padding:42px;background:linear-gradient(135deg,#102a43,#173f62);color:#fff}
.works-stage-note strong{font-size:1.25rem}
.works-stage-note p{margin-bottom:0;color:#dce8f1}

.company-layout{display:grid;grid-template-columns:.72fr 1.28fr;gap:78px;align-items:start}
.company-intro{position:sticky;top:130px}
.company-table-wrap,.recruit-details{background:#fff;box-shadow:0 12px 34px rgba(16,42,67,.08)}
.info-table{width:100%;border-collapse:collapse;border-top:2px solid var(--navy)}
.info-table th,.info-table td{padding:17px 20px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.info-table th{width:165px;background:#eef3f6;color:var(--navy)}
.info-table a{text-decoration:underline;text-underline-offset:3px}

.recruit-section{background:#0b2d4e;color:#fff}
.recruit-banner{display:grid;grid-template-columns:1fr auto;align-items:center;gap:40px;padding:52px;background:#123a5e}
.recruit-banner p{color:#dce8f1}
.recruit-accent{font:900 clamp(3rem,9vw,7rem)/1 Arial,sans-serif;letter-spacing:.08em;color:rgba(255,255,255,.08)}
.recruit-details{margin-top:24px;padding:40px;color:var(--ink)}
.primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:26px;padding:11px 25px;background:var(--navy);color:#fff;font-weight:700}
.primary-button:hover{background:var(--red)}

.access-layout{display:grid;grid-template-columns:.75fr 1.25fr;background:#fff;box-shadow:0 12px 36px rgba(16,42,67,.09)}
.access-info{padding:46px}
.access-info h3{margin-top:0;font-size:1.45rem}
.access-info dl{margin:22px 0}
.access-info dl div{display:grid;grid-template-columns:62px 1fr;padding:8px 0;border-bottom:1px solid var(--line)}
.access-info dt{font-weight:700}.access-info dd{margin:0}
.map-frame{min-height:430px}.map-frame iframe{width:100%;height:100%;min-height:430px;border:0}

.contact-section{padding:95px 0;background:linear-gradient(135deg,#071d33,#0d3b63);color:#fff}
.contact-layout{display:grid;grid-template-columns:.82fr 1.18fr;gap:70px;align-items:start}
.contact-copy__eyebrow{margin:0 0 12px;color:#ffc2cc;font-weight:800;letter-spacing:.2em}
.contact-copy h2{margin:0 0 22px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(2rem,4vw,3rem);line-height:1.5}
.contact-copy>p{color:#d6e2ec}
.contact-direct{display:grid;gap:14px;margin-top:32px}
.contact-direct a{display:flex;flex-direction:column;padding:18px 20px;border:1px solid rgba(255,255,255,.25)}
.contact-direct a:hover{background:rgba(255,255,255,.07)}
.contact-direct small,.contact-direct span{color:#bed0df}
.contact-direct strong{font-size:1.45rem}
.contact-form{padding:36px;background:#fff;color:var(--ink)}
.contact-form label{display:block;margin-bottom:18px;font-weight:700}
.contact-form label>span{display:inline-block;margin-left:8px;padding:1px 7px;background:var(--red);color:#fff;font-size:.7rem}
.contact-form input,.contact-form textarea{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #cad3da;background:#fafbfc}
.contact-form .privacy-check{display:flex;align-items:center;gap:9px;font-size:.88rem;font-weight:500}
.contact-form .privacy-check input{width:auto;margin:0}
.contact-form button{width:100%;padding:15px;border:0;background:var(--red);color:#fff;font-weight:700;cursor:pointer}
.contact-form__note{margin:10px 0 0;color:var(--muted);font-size:.78rem}

.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.reveal.is-visible{opacity:1;transform:none}


/* ===== STAGE 3 : WORKS ===== */
.works-section{background:#f5f7f9;overflow:hidden}
.works-heading{display:grid;grid-template-columns:.72fr 1.28fr;gap:55px;align-items:end;margin-bottom:44px}
.works-heading__copy h3{margin:0 0 12px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(1.7rem,3.4vw,2.7rem);line-height:1.55;color:var(--navy)}
.works-heading__copy p{margin:0;color:var(--muted)}
.works-carousel-shell{position:relative}
.works-carousel{
  display:flex;gap:24px;overflow-x:auto;padding:6px 2px 26px;
  scroll-behavior:auto;overscroll-behavior-x:contain;
  scrollbar-width:thin;scrollbar-color:var(--navy) #dce4ea;
}
.works-carousel::-webkit-scrollbar{height:8px}
.works-carousel::-webkit-scrollbar-track{background:#dce4ea}
.works-carousel::-webkit-scrollbar-thumb{background:var(--navy);border-radius:99px}
.work-card{
  flex:0 0 calc((100% - 48px)/3);
  min-width:330px;background:#fff;border:1px solid var(--line);
  box-shadow:0 12px 30px rgba(16,42,67,.08);overflow:hidden;
  transition:transform .3s ease,box-shadow .3s ease;
}
.work-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(16,42,67,.14)}
.work-card__slider{position:relative;aspect-ratio:4/3;overflow:hidden;background:#e9eef2}
.work-card__slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.015);transition:opacity .8s ease,transform 5s ease}
.work-card__slide.is-active{opacity:1;transform:scale(1)}
.work-card__dots{position:absolute;z-index:2;left:50%;bottom:12px;transform:translateX(-50%);display:flex;gap:7px;padding:6px 9px;border-radius:99px;background:rgba(255,255,255,.88)}
.work-card__dot{width:7px;height:7px;border-radius:50%;background:#aab3bb}
.work-card__dot.is-active{background:var(--navy)}
.work-card__body{padding:25px 26px 28px}
.work-card__type{margin:0 0 10px;color:var(--red);font:700 .72rem/1 Arial,sans-serif;letter-spacing:.15em}
.work-card__body h3{margin:0 0 20px;min-height:4.6em;padding-left:14px;border-left:4px solid var(--navy);font-size:1.22rem;line-height:1.55}
.work-card__body dl{margin:0}
.work-card__body dl div{display:grid;grid-template-columns:76px 1fr;gap:10px;padding:8px 0;border-top:1px solid #edf0f2}
.work-card__body dt{font-weight:700;font-size:.88rem}
.work-card__body dd{margin:0;color:#59646e;font-size:.9rem}
.work-card__body>a{display:inline-flex;align-items:center;gap:10px;margin-top:18px;color:var(--red);font-weight:700}
.work-card__body>a span{transition:transform .2s}
.work-card__body>a:hover span{transform:translateX(4px)}
.works-arrow{position:absolute;z-index:5;top:43%;width:46px;height:46px;border:0;border-radius:50%;background:var(--navy);color:#fff;font-size:2rem;line-height:1;cursor:pointer;box-shadow:0 8px 22px rgba(16,42,67,.25)}
.works-arrow:hover{background:var(--red)}
.works-arrow--prev{left:-23px}.works-arrow--next{right:-23px}

.subpage{background:#f5f7f9}
.subpage-hero{padding:calc(var(--header-height) + 72px) 24px 72px;background:linear-gradient(135deg,#102a43,#173f62);color:#fff}
.subpage-hero__inner{width:min(100%,var(--container));margin:auto}
.breadcrumb{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px;color:#d7e3ec;font-size:.85rem}
.breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.subpage-hero p{margin:0 0 12px;color:#ffc2cc;font-weight:800;letter-spacing:.16em}
.subpage-hero h1{margin:0;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(2rem,5vw,4rem);line-height:1.35}
.work-detail{padding:78px 24px 100px}
.work-detail__inner{width:min(1100px,100%);margin:auto}
.work-summary{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start;margin-bottom:52px}
.gallery-button{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in;overflow:hidden}
.gallery-button img{display:block;width:100%;height:100%;object-fit:cover}
.work-summary__image{aspect-ratio:4/3;box-shadow:0 14px 36px rgba(16,42,67,.13)}
.work-detail-table{width:100%;border-collapse:collapse;border-top:2px solid var(--navy);background:#fff}
.work-detail-table th,.work-detail-table td{padding:16px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.work-detail-table th{width:130px;background:#eef3f6;color:var(--navy)}
.work-detail-copy{margin-bottom:54px;padding:32px;background:#fff;border-left:5px solid var(--red);line-height:2;color:#414a52}
.detail-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.detail-gallery .gallery-button{aspect-ratio:4/3;background:#ddd}
.detail-nav{display:flex;justify-content:space-between;gap:18px;margin-top:55px;padding-top:28px;border-top:1px solid var(--line)}
.detail-nav a{display:inline-flex;padding:11px 17px;background:var(--navy);color:#fff}
.detail-nav a:hover{background:var(--red)}

.lightbox{position:fixed;inset:0;z-index:10000;display:grid;grid-template-columns:70px minmax(0,1fr) 70px;align-items:center;background:rgba(2,10,18,.94);opacity:0;visibility:hidden;transition:.25s}
.lightbox.is-open{opacity:1;visibility:visible}
.lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:92vh}
.lightbox figure img{max-width:min(1200px,90vw);max-height:82vh;object-fit:contain}
.lightbox figcaption{margin-top:14px;color:#fff;text-align:center}
.lightbox__close,.lightbox__prev,.lightbox__next{border:0;background:transparent;color:#fff;cursor:pointer}
.lightbox__close{position:absolute;right:20px;top:14px;font-size:2.5rem}
.lightbox__prev,.lightbox__next{font-size:4rem;opacity:.8}


/* ===== STAGE 4 : FINAL POLISH ===== */
body{overflow-x:hidden}
.site-header{backdrop-filter:saturate(150%) blur(12px)}
.site-header__inner,.container,.site-footer__inner{transition:width .2s ease}
.global-nav a{position:relative}
.global-nav a:not(.global-nav__contact)::after{
  content:"";position:absolute;left:18px;right:18px;bottom:10px;height:2px;
  background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .22s ease
}
.global-nav a:not(.global-nav__contact):hover::after{transform:scaleX(1)}
.primary-button,.contact-form button,.detail-nav a,.works-arrow,.page-top{
  transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease,opacity .2s ease
}
.primary-button:hover,.contact-form button:hover,.detail-nav a:hover,.works-arrow:hover,.page-top:hover{
  transform:translateY(-2px)
}
.section-photo img,.message-photo img,.work-summary__image{
  background:#e8edf1
}
.footer-links a{transition:color .2s ease,padding-left .2s ease}
.footer-links a:hover{padding-left:4px}
.contact-form__note a{text-decoration:underline;text-underline-offset:3px}
.contact-form input:focus,.contact-form textarea:focus{
  outline:2px solid rgba(16,42,67,.22);border-color:var(--navy)
}
img{content-visibility:auto}
iframe{background:#e9eef2}
.sitemap-page,.privacy-page,.error-page{padding:calc(var(--header-height) + 70px) 24px 90px;background:#f5f7f9;min-height:70vh}
.simple-page__inner{width:min(1000px,100%);margin:auto;background:#fff;padding:48px;box-shadow:0 14px 38px rgba(16,42,67,.09)}
.simple-page__inner h1{margin-top:0;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(2rem,4vw,3.3rem)}
.simple-page__inner h2{margin-top:36px;color:var(--navy)}
.sitemap-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 34px;margin-top:30px}
.sitemap-grid a{padding:14px 0;border-bottom:1px solid var(--line);font-weight:700}
.sitemap-grid a:hover{color:var(--red)}
.error-code{margin:0;color:#dbe4eb;font:900 clamp(5rem,18vw,13rem)/1 Arial,sans-serif}
.error-page p{font-size:1.08rem}

/* Favicon / transparent signature update */
.president-signature img{
  background:transparent !important;
  mix-blend-mode:multiply;
}

/* ===== FINAL LAYOUT UPDATE APPLIED TO FAVICON/SIGNATURE BASE ===== */
.hero__content{padding-top:var(--header-height)}
.message-heading{display:flex;align-items:center;gap:26px;margin-bottom:42px}
.message-heading h2{
  margin:0;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(2.5rem,5vw,4.4rem);
  line-height:1.2;
  color:var(--ink)
}
.message-heading p{
  margin:0;
  color:#8a9299;
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-size:clamp(1rem,1.5vw,1.25rem);
  font-weight:700;
  letter-spacing:.18em
}
.works-section .section-title>p,
.works-heading .section-title>p{color:#8a9299!important}

.recruit-section--light{background:var(--surface-muted)!important;color:var(--ink)!important}
.recruit-layout{display:grid;grid-template-columns:.72fr 1.28fr;gap:78px;align-items:start}
.recruit-intro{position:sticky;top:130px}
.recruit-title p{color:#8a9299!important}
.recruit-title h2{color:var(--ink)!important}
.recruit-intro h3{
  margin:0 0 24px;
  font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
  font-size:clamp(1.8rem,3.6vw,3rem);
  line-height:1.55
}
.recruit-intro>p{color:var(--muted)}
.recruit-section .recruit-details{
  margin-top:0;
  padding:0;
  background:#fff;
  color:var(--ink);
  box-shadow:0 12px 34px rgba(16,42,67,.08)
}
.recruit-section .primary-button{margin:26px 40px 40px}


/* ===== FINAL WALLPAPER / SECTION BACKGROUND UPDATE ===== */

/* Use the supplied construction illustration as the page-wide wallpaper.
   Section backgrounds are made translucent so the illustration remains subtle. */
body{
  background-color:#f7f8f7;
  background-image:
    linear-gradient(rgba(255,255,255,.88),rgba(255,255,255,.88)),
    url("../images/site-construction-wallpaper.png");
  background-size:cover, 100% auto;
  background-position:center top, center top;
  background-repeat:no-repeat, repeat-y;
  background-attachment:scroll, fixed;
}

/* Keep main content transparent enough to show the wallpaper softly. */
.about-section,
.message-section,
.company-section,
.access-section{
  background-color:rgba(255,255,255,.86) !important;
}

/* WORKS block: requested white background. */
.works-section{
  background:#fff !important;
}

/* RECRUIT block: requested pale yellow-green tone. */
.recruit-section--light{
  background:rgba(238,244,218,.94) !important;
}

/* Preserve readability of the right-hand recruitment table. */
.recruit-section--light .recruit-details{
  background:rgba(255,255,255,.94) !important;
}

/* Contact remains intentionally dark for visual separation/readability. */
.contact-section{
  background:linear-gradient(135deg,rgba(7,29,51,.97),rgba(13,59,99,.97)) !important;
}


/* ===== BACKGROUND FIX v2 ===== */
html{
  background:#fff;
}
body{
  position:relative;
  isolation:isolate;
  background:transparent !important;
}
body::before{
  content:"";
  position:fixed;
  z-index:-2;
  inset:0;
  background-image:url("../images/site-construction-wallpaper.png");
  background-repeat:repeat-y;
  background-position:center top;
  background-size:100% auto;
  opacity:.42;
  pointer-events:none;
}
body::after{
  content:"";
  position:fixed;
  z-index:-1;
  inset:0;
  background:rgba(255,255,255,.28);
  pointer-events:none;
}

/* Sections where the site wallpaper should remain visible */
.about-section,
.access-section{
  background:rgba(255,255,255,.72) !important;
}

/* Requested pale blue blocks */
.message-section,
.company-section{
  background:rgba(231,244,250,.91) !important;
}

/* WORKS stays white */
.works-section{
  background:rgba(255,255,255,.97) !important;
}

/* RECRUIT: much lighter yellow-green */
.recruit-section--light{
  background:rgba(247,250,237,.91) !important;
}
.recruit-section--light .recruit-details{
  background:rgba(255,255,255,.94) !important;
}

/* Keep header/footer readable while allowing a slight hint of the wallpaper */
.site-header{
  background:rgba(255,255,255,.96) !important;
}
.site-footer{
  background:rgba(255,255,255,.94) !important;
}


/* ===== FINAL SECTION COLOR UPDATE ===== */
/* 代表挨拶・会社概要・アクセス：薄いグレー */
.message-section,
.company-section,
.access-section{
  background:rgba(242,243,244,.94) !important;
}

/* 採用情報：白 */
.recruit-section--light{
  background:rgba(255,255,255,.97) !important;
}
.recruit-section--light .recruit-details{
  background:#fff !important;
}


/* ===== SUBTLE WALLPAPER VISIBILITY UPDATE ===== */

/* 全体壁紙を少し見えやすく */
body::before{
  opacity:.32 !important;
}
body::after{
  background:rgba(255,255,255,.34) !important;
}

/* 濃い背景・画像セクション以外では壁紙をうっすら表示 */
.about-section,
.message-section,
.company-section,
.access-section,
.recruit-section--light{
  background-color:rgba(255,255,255,.80) !important;
}

/* 指定済みの薄いグレー背景は維持しつつ、壁紙が透けるよう調整 */
.message-section,
.company-section,
.access-section{
  background:rgba(242,243,244,.82) !important;
}

/* 採用情報は白基調のまま、壁紙をわずかに見せる */
.recruit-section--light{
  background:rgba(255,255,255,.84) !important;
}

/* 施工実績は白を維持しつつ、ごく薄く壁紙を透過 */
.works-section{
  background:rgba(255,255,255,.90) !important;
}

/* 表・カード類は読みやすさ優先で白を維持 */
.company-table-wrap,
.recruit-details,
.access-layout,
.contact-form,
.work-card{
  background:rgba(255,255,255,.96) !important;
}

/* ヒーロー画像と濃色のお問い合わせは壁紙を見せない */
.hero,
.contact-section{
  isolation:isolate;
}

/* ===== MESSAGE GOTHIC / RECRUIT TABLE LEFT UPDATE ===== */
.message-heading h2{
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  font-weight:700;
  letter-spacing:.02em;
}
.recruit-layout{grid-template-columns:1.28fr .72fr !important}
.recruit-details{grid-column:1;grid-row:1}
.recruit-intro{grid-column:2;grid-row:1}


/* ===== ACCESS / MESSAGE SIZE UPDATE ===== */

/* ACCESS を RECRUIT と同じグレー調へ */
.access-section .section-title > p{
  color:#8a9299 !important;
}

/* 代表挨拶を少し小さく */
.message-heading h2{
  font-size:clamp(2.2rem,4.3vw,3.8rem) !important;
}


/* ===== CONTACT FORM HEIGHT / WIDTH UPDATE ===== */

/* 右側フォームを少し細くし、左側メール枠の高さ感に近づける */
.contact-layout{
  grid-template-columns:1fr .86fr !important;
  align-items:start !important;
}

.contact-form{
  width:100%;
  max-width:560px;
  justify-self:end;
  padding:24px 28px !important;
}

.contact-form label{
  margin-bottom:12px !important;
}

.contact-form input,
.contact-form textarea{
  margin-top:5px !important;
  padding:9px 10px !important;
}

.contact-form textarea{
  min-height:108px !important;
  max-height:108px !important;
  resize:vertical;
}

.contact-form .privacy-check{
  margin-bottom:10px !important;
}

.contact-form button{
  padding:12px !important;
}

.contact-form__note{
  margin-top:7px !important;
  line-height:1.5;
}

/* 左側のお問い合わせ枠も上端を揃える */
.contact-copy,
.contact-form{
  align-self:start;
}

/* ===== FINAL LOADER TEXT UPDATE ===== */
.site-loader__word,
.loader-mark{
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",Arial,sans-serif !important;
  font-size:clamp(2rem,7vw,5rem) !important;
  font-weight:500 !important;
  font-style:italic !important;
  letter-spacing:.16em !important;
  color:#a7adb3 !important;
}


/* ===== LOADER FINAL TYPOGRAPHY ADJUSTMENT ===== */
.site-loader__word,
.loader-mark{
  font-weight:600 !important;
  letter-spacing:.10em !important;
}

/* LOADER LETTER SPACING UPDATE */
.site-loader__word,
.loader-mark{
  letter-spacing:.06em !important;
}

/* ===== LATEST HERO SETTINGS ===== */
.hero__slide{
  transform:scale(1.045) translate3d(0,0,0);
  transition:opacity 1s ease, transform 8s ease;
  will-change:transform,opacity;
  filter:brightness(1.12) !important;
}
.hero__slide.is-active{
  transform:scale(1) translate3d(0,0,0);
}

/* ===== LOADER COMPANY NAME UPDATE ===== */
.site-loader__word,
.loader-mark{
  letter-spacing:.015em !important;
}


/* ===== MESSAGE LAYOUT: TEXT LEFT / PHOTO RIGHT / SIGNATURE BELOW ===== */
.message-layout--reversed{
  display:grid;
  grid-template-columns:1.35fr .65fr !important;
  gap:64px;
  align-items:start;
}

.message-layout--reversed .message-copy{
  grid-column:1;
}

.message-portrait-block{
  grid-column:2;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.message-portrait-block .message-photo{
  width:100%;
  max-width:300px;
}

.message-portrait-block .message-photo img{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  box-shadow:0 14px 36px rgba(16,42,67,.12);
}

.message-portrait-block .president-signature{
  margin-top:18px !important;
  width:100%;
  max-width:330px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
}

.message-portrait-block .president-signature__title{
  white-space:nowrap;
}

.message-portrait-block .president-signature img{
  width:220px !important;
  max-width:68% !important;
}


/* ===== PRESIDENT PHOTO / TITLE / SIGNATURE VERTICAL ALIGNMENT ===== */
.message-portrait-block{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
}

.message-portrait-block .message-photo{
  width:300px !important;
  max-width:100% !important;
}

.message-portrait-block .president-signature{
  width:300px !important;
  max-width:100% !important;
  margin:16px 0 0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:10px !important;
}

.message-portrait-block .president-signature__title{
  width:100% !important;
  text-align:center !important;
  white-space:nowrap;
  order:1;
}

.message-portrait-block .president-signature img{
  order:2;
  display:block !important;
  width:300px !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain;
}


/* ===== VERIFIED PRESIDENT VERTICAL STACK v2 ===== */
.message-layout--reversed{
  display:grid !important;
  grid-template-columns:1.35fr .65fr !important;
  gap:64px !important;
  align-items:start !important;
}

.message-layout--reversed .message-copy{
  grid-column:1 !important;
}

.message-portrait-block{
  grid-column:2 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
}

.message-portrait-block .message-photo,
.president-title-only,
.president-signature-image{
  width:300px !important;
  max-width:100% !important;
}

.message-portrait-block .message-photo img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
}

.president-title-only{
  margin:14px 0 8px !important;
  text-align:center !important;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  font-size:1.08rem !important;
  font-weight:500 !important;
  line-height:1.4 !important;
}

.president-signature-image img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  background:transparent !important;
}


/* ===== COMPANY PROFILE COMPACT TABLE ===== */
#company .company-table th,
#company .company-table td,
#company table th,
#company table td{
  padding-top:7px !important;
  padding-bottom:7px !important;
  line-height:1.45 !important;
  vertical-align:top !important;
}

#company .company-table th,
#company table th{
  white-space:nowrap;
}

#company .company-multiline,
#company .company-license{
  line-height:1.42 !important;
}

#company .company-license strong{
  font-weight:600;
}

/* ===== LOADER LETTER SPACING TIGHTER ===== */
.site-loader__word,
.loader-mark{
  letter-spacing:-0.015em !important;
}

/* Recruit compact update */
#recruit table th,#recruit table td{padding-top:8px!important;padding-bottom:8px!important;line-height:1.5!important;vertical-align:top!important}
#recruit table th{white-space:nowrap}

/* ===== WALLPAPER DARKER + SIMPLE SECTION COLOR CONTRAST 2026-08-26 ===== */
/* 壁紙自体の濃さは全ページ共通。セクションごとに壁紙濃度は変えない。 */
body::before{
  opacity:.52 !important;
}
body::after{
  background:rgba(255,255,255,.18) !important;
}

/* 背景色だけでセクションのメリハリを付ける */
.about-section{
  background:rgba(255,255,255,.72) !important;
}
.message-section{
  background:rgba(232,236,239,.84) !important;
}
.works-section{
  background:rgba(255,255,255,.93) !important;
}
.company-section{
  background:rgba(232,236,239,.84) !important;
}
.recruit-section--light{
  background:rgba(255,255,255,.88) !important;
}
.access-section{
  background:rgba(232,236,239,.84) !important;
}

/* 内容部分は読みやすさを維持 */
.company-table-wrap,
.recruit-details,
.access-layout,
.contact-form,
.work-card{
  background:rgba(255,255,255,.96) !important;
}

/* ===== WALLPAPER EXTRA DARK 2026-08-26 ===== */
body::before{
  opacity:.70 !important;
}
body::after{
  background:rgba(255,255,255,.10) !important;
}

/* ===== MAIN CONTENT MAX WIDTH 1280px 2026-08-26 =====
   Header / hero / footer keep their existing width. */
main .container{
  width:min(calc(100% - 48px),1280px);
}
@media (max-width: 768px){
  main .container{
    width:min(calc(100% - 32px),1280px);
  }
}

/* ===== WALLPAPER SLIGHTLY LIGHTER 2026-08-26 ===== */
body::before{
  opacity:.60 !important;
}
body::after{
  background:rgba(255,255,255,.14) !important;
}

/* ===== WALLPAPER LIGHTER STEP 2 2026-08-26 ===== */
body::before{
  opacity:.50 !important;
}
body::after{
  background:rgba(255,255,255,.18) !important;
}

/* Access route description: reduced two font-size steps */
.access-info .access-route{
  font-size: 0.7rem;
  line-height: 1.75;
}


/* ===== WORKS LIST PAGE 2026-08-28 ===== */
.works-heading__copy{position:relative}
.works-list-link{
  display:flex;justify-content:flex-end;align-items:center;gap:8px;
  width:max-content;margin:18px 0 0 auto;padding-bottom:4px;
  color:var(--navy);font-weight:700;border-bottom:1px solid currentColor;
  transition:color .2s ease,gap .2s ease
}
.works-list-link:hover{color:var(--red);gap:13px}
.works-list-page{padding:76px 24px 110px;background:rgba(245,247,249,.92)}
.works-list-page>.container{width:min(calc(100% - 0px),1280px)}
.works-list-intro{margin-bottom:42px}
.works-list-intro h2{margin:0 0 14px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(1.8rem,3.4vw,2.8rem);color:var(--navy)}
.works-list-intro p{margin:0;color:var(--muted)}
.works-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px;align-items:stretch}
.works-grid .work-card{min-width:0;flex:none;height:100%;display:flex;flex-direction:column}
.works-grid .work-card__body{display:flex;flex:1;flex-direction:column}
.works-grid .work-card__body>a{margin-top:auto;padding-top:18px}
.detail-nav__left,.detail-nav__right{display:flex;gap:12px;flex-wrap:wrap}
.detail-nav__right{margin-left:auto;justify-content:flex-end}
@media (max-width:980px){.works-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .works-list-page{padding:56px 16px 80px}
  .works-grid{grid-template-columns:1fr;gap:22px}
  .detail-nav{flex-direction:column;align-items:stretch}
  .detail-nav__left,.detail-nav__right{width:100%}
  .detail-nav__right{margin-left:0;justify-content:flex-start}
}

/* ===== FC2 PUBLIC HOSTING STABILITY FIX 2026-08-28 ===== */
.works-heading__copy{display:block}
.works-list-link{display:table;width:auto;margin:18px 0 0 auto;float:none}
.works-list-page .works-grid{opacity:1!important;transform:none!important}
@media (max-width:640px){.works-list-link{margin-top:14px;margin-left:auto}}


/* ===== LOADER MOBILE SUFFIX ALIGNMENT 2026-08-28 ===== */
@media (max-width:600px){
  .site-loader__word{
    width:min(92vw,520px);
    font-size:clamp(1.15rem,5.6vw,2rem) !important;
  }
  .site-loader__main{
    white-space:nowrap;
  }
  .site-loader__suffix{
    display:block;
    width:100%;
    text-align:right;
    margin-top:.12em;
    white-space:nowrap;
  }
}

/* ===== LOADER MOBILE SINGLE LINE 2026-08-28 ===== */
@media (max-width:600px){
  .site-loader__word{
    width:auto;
    max-width:96vw;
    white-space:nowrap;
  }
  .site-loader__main,
  .site-loader__suffix{
    display:inline;
    width:auto;
    text-align:inherit;
    margin-top:0;
    white-space:nowrap;
  }
}
