/* ============================================================
   Nagano Setsubi Corporate - Main Stylesheet
   ピンクアクセント・白基調・クリーン
   ============================================================ */

/* ----- 1. Variables ----- */
:root {
  --color-primary:      #0099D9;   /* メイン水色 */
  --color-primary-deep: #006B8F;   /* 深い青 */
  --color-primary-light:#A4D7E8;   /* 淡水色 */
  --color-primary-pale: #E8F5F9;   /* 最淡水色 */
  --color-accent:       #00BCD4;   /* シアン */
  --color-accent-deep:  #00838F;   /* 深シアン */

  --color-yellow:       #F5D800;   /* 互換用（廃止予定）*/
  --color-yellow-deep:  #D4BA00;
  --color-dark:         #102B3E;   /* 深紺（黒の代わり）*/

  --color-text:         #102B3E;
  --color-text-muted:   #5A7080;
  --color-text-light:   #8FA0AD;

  --color-bg:           #FFFFFF;
  --color-bg-soft:      #F5FAFC;   /* 薄水色みの白 */
  --color-bg-alt:       #EFF7FB;   /* 淡水色背景 */
  --color-border:       #DCE7ED;
  --color-border-pink:  #C9E3EE;   /* 互換性のため名前残し（中身は水色）*/

  --shadow-sm: 0 1px 2px rgba(16,43,62,.06);
  --shadow-md: 0 4px 14px rgba(16,43,62,.08);
  --shadow-lg: 0 12px 36px rgba(16,43,62,.10);

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --font-jp:        "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Yu Gothic", "Meiryo", sans-serif;
  --font-jp-serif:  "Noto Serif JP", "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-en:        "Marcellus", "Cormorant Garamond", "Times New Roman", serif;
  --font-en-bold:   "Oswald", "Marcellus", sans-serif;
  --font-serif:     "Shippori Mincho B1", "Yu Mincho", serif;

  --header-h: 80px;
  --container: 1200px;
}

/* ----- 2. Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-primary-deep); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.4em; }
h1, h2, h3, h4 { font-family: var(--font-jp-serif); font-weight: 700; line-height: 1.5; letter-spacing: .04em; }

.ns-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ns-narrow { max-width: 820px; margin: 0 auto; }
.ns-text-center { text-align: center; }
.ns-mt-md { margin-top: 24px; }
.ns-mt-lg { margin-top: 48px; }
.ns-py-xl { padding-block: 80px; }
.ns-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ----- 3. Header ----- */
.ns-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.ns-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.ns-header__logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--color-text); flex-shrink: 0;
  max-height: 56px;
}
/* WP custom-logo の <img> サイズ制御 */
.ns-header__logo img,
.ns-header__logo .custom-logo,
.custom-logo-link img {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 600px) {
  .ns-header__logo img,
  .ns-header__logo .custom-logo,
  .custom-logo-link img {
    max-height: 44px;
  }
}
.ns-header__logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-en); font-weight: 400; font-size: 28px;
  border-radius: 0;
  letter-spacing: 0;
}
.ns-header__logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.ns-header__logo-en { font-family: var(--font-en); font-weight: 400; font-size: 13px; letter-spacing: .25em; color: var(--color-primary); }
.ns-header__logo-ja { font-family: var(--font-jp-serif); font-weight: 700; font-size: 20px; color: var(--color-text); letter-spacing: .06em; }

.ns-nav { flex: 1; }
.ns-nav__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; justify-content: center;
}
.ns-nav__list a {
  color: var(--color-text); font-weight: 700; font-size: 15px;
  position: relative; padding: 6px 0;
}
.ns-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--color-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.ns-nav__list a:hover { color: var(--color-primary); }
.ns-nav__list a:hover::after { transform: scaleX(1); }

.ns-header__cta { display: flex; align-items: center; gap: 12px; }
.ns-header__tel { display: flex; flex-direction: column; line-height: 1.1; text-align: left; color: var(--color-text); }
.ns-header__tel-label { font-size: 10px; color: var(--color-text-muted); }
.ns-header__tel-num { font-family: var(--font-en); font-size: 22px; font-weight: 400; color: var(--color-primary); letter-spacing: .04em; }
.ns-header__contact { font-size: 14px; padding: 10px 18px; }

.ns-burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.ns-burger span {
  display: block; width: 24px; height: 2px; background: var(--color-text);
  transition: transform .25s ease, opacity .25s ease;
}
.ns-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ns-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ns-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ns-mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  padding: 32px 24px;
  overflow-y: auto;
}
.ns-mobile-menu__list { list-style: none; padding: 0; margin: 0; }
.ns-mobile-menu__list li { border-bottom: 1px solid var(--color-border-pink); }
.ns-mobile-menu__list a { display: block; padding: 18px 8px; color: var(--color-text); font-weight: 700; font-size: 17px; }
.ns-mobile-menu__cta { margin-top: 24px; }
.ns-mobile-menu__cta .ns-btn { width: 100%; justify-content: center; }

/* ----- 4. Buttons ----- */
.ns-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  font-weight: 600; font-size: 14px;
  letter-spacing: .12em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ns-btn:hover { transform: translateY(-2px); }
.ns-btn--primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.ns-btn--primary:hover { background: var(--color-primary-deep); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.ns-btn--ghost {
  background: transparent; color: var(--color-dark); border-color: var(--color-dark);
}
.ns-btn--ghost:hover { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.ns-btn--lg { padding: 20px 44px; font-size: 14px; }

/* ----- 5. Hero ----- */
.ns-hero { position: relative; overflow: hidden; }
.ns-hero--front {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  background: linear-gradient(135deg, #E8F5F9 0%, #FFFFFF 50%, #F0FAFB 100%);
}
.ns-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,153,217,.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,188,212,.10) 0%, transparent 50%);
  pointer-events: none;
}
.ns-hero__inner { position: relative; z-index: 1; padding: 80px 24px; }
.ns-hero__en { font-family: var(--font-en); color: var(--color-primary); font-weight: 600; letter-spacing: .15em; font-size: 14px; margin: 0 0 16px; }
.ns-hero__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(30px, 5vw, 56px);
  margin: 0 0 24px;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .08em;
}
.ns-hero--front .ns-hero__title { color: var(--color-dark); }
.ns-hero__sub { font-size: 17px; color: var(--color-text-muted); margin: 0 0 32px; max-width: 680px; }
.ns-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.ns-hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; color: var(--color-primary);
}
.ns-hero__scroll-line {
  display: block; width: 1px; height: 48px; background: var(--color-primary);
  animation: ns-scroll 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes ns-scroll {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.ns-hero--sub {
  padding: 52px 0 32px;
  background: linear-gradient(135deg, #E8F5F9 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--color-border-pink);
}

/* ----- 6. Section ----- */
.ns-section { padding: 56px 0; }
.ns-section--alt { background: var(--color-bg-alt); }
.ns-section__en { font-family: var(--font-en); color: var(--color-primary); font-weight: 400; letter-spacing: .3em; font-size: 12px; margin: 0 0 16px; text-transform: uppercase; }
.ns-section__title { font-family: var(--font-jp-serif); font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 16px; letter-spacing: .06em; }
.ns-section__lead { font-size: 16px; color: var(--color-text-muted); margin: 0 0 48px; max-width: 720px; }

/* ----- 7. Message body (greetings) ----- */
.ns-message__body { font-family: var(--font-serif); font-size: 16px; line-height: 2; color: var(--color-text); }
.ns-message__body p { margin: 0 0 1.4em; }
.ns-message__body strong { color: var(--color-primary); font-weight: 700; }
.ns-message__sign { text-align: right; font-style: normal; }

/* ----- 8. Service Cards ----- */
.ns-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.ns-service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 0;
  padding: 40px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ns-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ns-service-card__no {
  font-family: var(--font-en); font-weight: 400; font-size: 32px;
  color: var(--color-primary); margin: 0 0 16px;
  letter-spacing: .1em;
}
.ns-service-card__title { font-family: var(--font-jp-serif); font-size: 22px; margin: 0 0 14px; letter-spacing: .05em; font-weight: 700; color: var(--color-dark); }
.ns-service-card__desc { font-size: 14px; color: var(--color-text-muted); margin: 0 0 16px; line-height: 1.7; }
.ns-service-card__more { font-weight: 700; font-size: 14px; }

.ns-service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.ns-service-detail__head { border-right: 2px solid var(--color-primary-light); padding-right: 32px; }
.ns-service-detail__no { font-family: var(--font-en); font-size: 64px; font-weight: 800; color: var(--color-primary); margin: 0; line-height: 1; }
.ns-service-detail__title { font-size: 24px; margin: 8px 0 0; }
.ns-service-detail__body { font-size: 15px; line-height: 1.9; }
.ns-list { padding-left: 1.4em; margin: 16px 0; }
.ns-list li { margin: 6px 0; }

/* ----- 9. Features ----- */
.ns-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.ns-feature {
  background: #fff;
  border: 1px solid var(--color-border-pink);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ns-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ns-feature__num {
  font-family: var(--font-en); font-weight: 800; font-size: 56px;
  color: var(--color-primary);
  margin: 0 0 8px;
  line-height: 1;
}
.ns-feature__num small { font-size: 18px; margin-left: 4px; color: var(--color-text); }
.ns-feature__title { font-size: 16px; margin: 0 0 12px; }
.ns-feature__desc { font-size: 13px; color: var(--color-text-muted); margin: 0; line-height: 1.7; }

/* ----- 10. Works ----- */
.ns-works-pickup__grid,
.ns-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.ns-works-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ns-works-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ns-works-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-soft); }
.ns-works-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ns-works-card:hover .ns-works-card__img img { transform: scale(1.05); }
.ns-works-card__title { font-size: 15px; padding: 16px 16px 4px; margin: 0; font-weight: 700; }
.ns-works-card__cat { font-size: 12px; color: var(--color-primary); padding: 0 16px; margin: 0; }
.ns-works-card__desc { font-size: 13px; color: var(--color-text-muted); padding: 0 16px 16px; margin: 8px 0 0; line-height: 1.7; }
.ns-works-card--detail .ns-works-card__body { padding: 16px; }
.ns-works-card--detail .ns-works-card__title { padding: 0; margin: 4px 0 8px; }
.ns-works-card--detail .ns-works-card__cat { padding: 0; }
.ns-works-card--detail .ns-works-card__desc { padding: 0; margin: 8px 0 0; }

/* ----- 11. Recruit teaser ----- */
.ns-recruit-teaser {
  background: var(--color-primary-deep);
  color: #fff;
  position: relative;
}
.ns-recruit-teaser::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}
.ns-recruit-teaser .ns-section__en,
.ns-recruit-teaser .ns-section__title { color: #fff; }
.ns-recruit-teaser p { color: rgba(255,255,255,.95); }
.ns-recruit-teaser .ns-btn--primary { background: #fff; color: var(--color-primary); }
.ns-recruit-teaser .ns-btn--primary:hover { background: var(--color-primary-pale); color: var(--color-primary-deep); }
.ns-recruit-teaser__inner { padding: 60px 0; }

/* ----- 12. CTA ----- */
.ns-cta {
  background: var(--color-dark);
  color: #fff;
}
.ns-cta .ns-cta__title { color: #fff; }
.ns-cta .ns-cta__lead { color: rgba(255,255,255,.85); }
.ns-cta .ns-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.ns-cta .ns-btn--ghost:hover { background: #fff; color: var(--color-dark); }
.ns-cta__title { font-family: var(--font-jp-serif); font-size: clamp(24px, 3vw, 34px); margin: 0 0 18px; letter-spacing: .06em; font-weight: 700; }
.ns-cta__lead { font-size: 16px; color: var(--color-text-muted); margin: 0 0 32px; }
.ns-cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ----- 13. Info Table (会社情報) ----- */
.ns-info-table { margin: 0; padding: 0; border-top: 1px solid var(--color-border-pink); }
.ns-info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--color-border-pink);
}
.ns-info-row dt { padding: 20px 20px; background: var(--color-bg-soft); font-weight: 700; font-size: 13px; color: var(--color-dark); margin: 0; font-family: var(--font-jp-serif); letter-spacing: .04em; }
.ns-info-row dd { padding: 20px 20px; font-size: 15px; margin: 0; line-height: 1.7; }

/* ----- 14. History (沿革) ----- */
.ns-history { list-style: none; padding: 0; margin: 0; position: relative; }
.ns-history::before {
  content: ""; position: absolute; left: 100px; top: 0; bottom: 0;
  width: 2px; background: var(--color-primary-light);
}
.ns-history__item {
  display: grid; grid-template-columns: 100px 1fr; gap: 32px;
  padding: 20px 0;
  position: relative;
}
.ns-history__item::before {
  content: ""; position: absolute; left: 96px; top: 28px;
  width: 10px; height: 10px; background: var(--color-primary); border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 2px var(--color-primary);
}
.ns-history__year { font-family: var(--font-en); font-weight: 700; color: var(--color-primary); font-size: 14px; margin: 0; padding-top: 4px; }
.ns-history__body { padding-left: 32px; }
.ns-history__title { font-size: 16px; margin: 0 0 6px; }
.ns-history__body p { font-size: 14px; color: var(--color-text-muted); margin: 0; }

/* ----- 15. Job / Flow ----- */
.ns-job { background: #fff; border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.ns-job__title {
  font-size: 20px; margin: 0 0 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary-light);
  color: var(--color-primary-deep);
}
.ns-flow { list-style: none; padding: 0; margin: 0; }
.ns-flow__item {
  background: #fff; border-radius: var(--radius-md);
  padding: 24px 32px; margin-bottom: 16px;
  border-left: 4px solid var(--color-primary);
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start;
  box-shadow: var(--shadow-sm);
}
.ns-flow__time { font-family: var(--font-en); font-weight: 700; font-size: 22px; color: var(--color-primary); margin: 0; }
.ns-flow__title { font-size: 16px; margin: 0 0 4px; }
.ns-flow__desc { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* ----- 16. Form ----- */
.ns-form { max-width: 720px; margin: 32px auto 0; }
.ns-form__row { margin-bottom: 24px; }
.ns-form__label { display: block; font-weight: 700; margin: 0 0 8px; font-size: 14px; }
.ns-required { display: inline-block; background: var(--color-primary); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 4px; margin-left: 6px; font-weight: 700; }
.ns-form__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ns-form__input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,153,217,.15); }
textarea.ns-form__input { resize: vertical; }
.ns-form__privacy { font-size: 13px; color: var(--color-text-muted); margin: 16px 0; padding: 16px; background: var(--color-bg-alt); border-radius: var(--radius-sm); }
.ns-form__submit { text-align: center; }

.ns-contact-info {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
  text-align: center;
}
.ns-contact-info a { font-family: var(--font-en); font-weight: 700; font-size: 22px; }

/* ----- 17. News list ----- */
.ns-news-list { list-style: none; padding: 0; margin: 0; }
.ns-news-item { border-bottom: 1px solid var(--color-border-pink); }
.ns-news-item__link {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 20px 16px;
  color: var(--color-text);
  transition: background .2s ease;
}
.ns-news-item__link:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.ns-news-item__date { font-family: var(--font-en); font-weight: 600; color: var(--color-primary); }
.ns-news-item__title { font-weight: 700; }

/* ----- 18. Page title / prose / eyecatch ----- */
.ns-page-title { font-size: 32px; margin: 0 0 32px; }
.ns-prose h2 { font-size: 22px; margin: 32px 0 16px; padding-left: 16px; border-left: 4px solid var(--color-primary); }
.ns-prose p { margin: 0 0 1.2em; line-height: 1.9; }
.ns-prose ul { margin: 0 0 1.2em; }
.ns-eyecatch { margin: 0 0 32px; border-radius: var(--radius-md); overflow: hidden; }
.ns-meta { color: var(--color-text-muted); font-size: 14px; }

/* ----- 19. Map ----- */
.ns-map { border-radius: var(--radius-md); overflow: hidden; margin-top: 24px; box-shadow: var(--shadow-sm); }

/* ----- 20. Footer ----- */
.ns-footer { background: #102B3E; color: #E5E7EB; padding: 48px 0 24px; margin-top: 0; }
.ns-footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.ns-footer__logo { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.ns-footer__mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--color-primary); color: #fff; font-family: var(--font-en); font-weight: 400; border-radius: 0; }
.ns-footer__name { font-weight: 700; color: #fff; }
.ns-footer__catch { font-size: 13px; color: #9CA3AF; line-height: 1.7; margin: 0 0 24px; }
.ns-footer__addr, .ns-footer__tel, .ns-footer__email { font-size: 13px; margin: 4px 0; line-height: 1.6; color: #9CA3AF; }
.ns-footer__tel a, .ns-footer__email a { color: var(--color-primary-light); }
.ns-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.ns-footer__nav li { margin: 6px 0; }
.ns-footer__nav a { color: #E5E7EB; font-size: 14px; }
.ns-footer__nav a:hover { color: var(--color-primary-light); }
.ns-footer__sns { display: flex; gap: 8px; flex-wrap: wrap; }
.ns-sns {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; font-size: 12px;
  background: rgba(255,255,255,.08); color: #fff;
  border-radius: 999px;
}
.ns-sns:hover { background: var(--color-primary); color: #fff; }
.ns-footer__group { font-size: 12px; color: #9CA3AF; text-align: center; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.ns-footer__group-label { display: inline-block; padding: 2px 10px; background: var(--color-primary); color: #fff; border-radius: 4px; font-weight: 700; margin-right: 8px; }
.ns-footer__promo { border-top: 1px solid rgba(255,255,255,.12); margin-top: 8px; padding: 14px 16px 0; }
.ns-footer__promo-text { font-size: 12px; line-height: 1.7; color: #9CA3AF; text-align: center; margin: 0; }
.ns-footer__promo-text a { color: var(--color-primary); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.ns-footer__promo-text a:hover { opacity: .8; }
.ns-footer__promo-br { display: none; }
@media (max-width: 600px) { .ns-footer__promo-br { display: inline; } }
.ns-footer__copy { font-size: 12px; color: #6B7280; text-align: center; margin: 0; }

/* ----- 21. Back to Top ----- */
.ns-back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.ns-back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.ns-back-to-top:hover { transform: translateY(-3px); background: var(--color-primary-deep); }

/* ----- 22. Scroll fade in ----- */
.ns-fade { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.ns-fade.is-visible { opacity: 1; transform: translateY(0); }

/* ----- 23. Responsive ----- */
@media (max-width: 960px) {
  .ns-nav { display: none; }
  .ns-header__cta .ns-header__tel { display: none; }
  .ns-burger { display: flex; }
  .ns-mobile-menu[hidden] { display: none; }
  .ns-service-detail { grid-template-columns: 1fr; padding: 32px 24px; }
  .ns-service-detail__head { border-right: none; border-bottom: 2px solid var(--color-primary-light); padding-right: 0; padding-bottom: 16px; }
  .ns-footer__main { grid-template-columns: 1fr; }
  .ns-info-row { grid-template-columns: 1fr; }
  .ns-info-row dt { padding: 12px 16px 4px; }
  .ns-info-row dd { padding: 0 16px 12px; }
  .ns-history::before { left: 8px; }
  .ns-history__item { grid-template-columns: 1fr; gap: 8px; padding-left: 32px; 

/* ============================================================
   v2 追加: ワイヤーフレーム v5 構造対応
   ============================================================ */

/* ----- v2-1. 信頼バッジ (ヒーロー直下) ----- */
.ns-trust-badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.ns-trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--color-dark);
  border-radius: 0;
  font-size: 12px; font-weight: 600;
  letter-spacing: .05em;
  color: var(--color-dark);
  transition: background .2s ease, color .2s ease;
}
.ns-trust-badge:hover { background: var(--color-dark); color: #fff; }
.ns-trust-badge__icon { font-size: 16px; }

/* ----- v2-2. 数字で見る (Stats) ----- */
.ns-stats {
  background: linear-gradient(135deg, var(--color-dark) 0%, #082238 100%);
  color: #fff;
  padding: 80px 0;
}
.ns-stats .ns-section__en { color: var(--color-yellow); }
.ns-stats .ns-section__title { color: #fff; }
.ns-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.ns-stat {
  text-align: center;
  padding: 24px 16px;
}
.ns-stat__num {
  font-family: var(--font-en); font-weight: 400;
  font-size: clamp(56px, 7vw, 88px);
  color: var(--color-primary-light);
  line-height: 1; margin: 0 0 12px;
  letter-spacing: .02em;
}
.ns-stat__num small {
  font-size: .35em;
  margin-left: 6px;
  color: #fff;
  font-weight: 400;
  font-family: var(--font-jp-serif);
}
.ns-stat__label { font-size: 13px; color: rgba(255,255,255,.85); margin: 0; font-weight: 600; }
.ns-stat__desc { font-size: 11px; color: rgba(255,255,255,.6); margin: 8px 0 0; }

/* ----- v2-3. 選ばれる理由 (Reasons) ----- */
.ns-reasons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.ns-reason {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 48px 32px 36px;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ns-reason:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ns-reason__num {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-dark);
  color: #fff;
  font-family: var(--font-en); font-weight: 400; font-size: 14px;
  padding: 6px 18px; border-radius: 0;
  letter-spacing: .2em;
}
.ns-reason__icon { font-size: 40px; margin: 8px 0 16px; }
.ns-reason__title { font-family: var(--font-jp-serif); font-size: 20px; margin: 0 0 14px; color: var(--color-dark); font-weight: 700; letter-spacing: .04em; }
.ns-reason__desc { font-size: 14px; color: var(--color-text-muted); margin: 0; line-height: 1.8; }

/* ----- v2-4. 工事の流れ (Process) ----- */
.ns-process__list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.ns-process__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 0;
  margin-bottom: 12px;
  counter-increment: step;
}
.ns-process__item::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 400; font-size: 32px;
  color: var(--color-primary);
  letter-spacing: .05em;
  padding-top: 0;
  border-right: 1px solid var(--color-border);
  padding-right: 20px;
  height: 100%;
}
.ns-process__title { font-family: var(--font-jp-serif); font-size: 18px; margin: 0 0 8px; color: var(--color-dark); font-weight: 700; letter-spacing: .03em; }
.ns-process__desc { font-size: 14px; color: var(--color-text-muted); margin: 0; line-height: 1.8; }

/* ----- v2-5. 対応エリア (Area) ----- */
.ns-area {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #fff 100%);
}
.ns-area__main {
  text-align: center;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  color: var(--color-dark);
  margin: 32px 0;
  letter-spacing: .2em;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}
.ns-area__pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 16px;
}
.ns-area__pill {
  display: inline-block;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: 12px; font-weight: 500;
  letter-spacing: .05em;
  color: var(--color-text-muted);
}

/* ----- v2-6. FAQ ----- */
.ns-faq__list { max-width: 820px; margin: 0 auto; }
.ns-faq__item {
  background: #fff;
  border: 1px solid var(--color-border-pink);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.ns-faq__q {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  display: grid; grid-template-columns: 32px 1fr 24px;
  gap: 12px; align-items: center;
  list-style: none;
  transition: background .2s ease;
}
.ns-faq__q::-webkit-details-marker { display: none; }
.ns-faq__q::before {
  content: "Q";
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-en); font-weight: 700;
}
.ns-faq__q::after {
  content: "+";
  font-size: 24px; color: var(--color-primary);
  font-weight: 300;
  transition: transform .2s ease;
}
.ns-faq__item[open] .ns-faq__q::after { transform: rotate(45deg); }
.ns-faq__item[open] .ns-faq__q { background: var(--color-primary-pale); }
.ns-faq__a {
  padding: 8px 24px 24px;
  display: grid; grid-template-columns: 32px 1fr; gap: 12px;
  font-size: 14px; line-height: 1.8; color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-pink);
}
.ns-faq__a::before {
  content: "A";
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--color-dark);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-en); font-weight: 400;
  align-self: start;
}

/* ----- v2-7. 強み (Strengths) ----- */
.ns-strengths__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.ns-strength {
  background: #fff;
  border-radius: 0;
  padding: 40px 28px 32px;
  text-align: center;
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ns-strength:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ns-strength__no {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 400;
  color: var(--color-primary);
  background: transparent;
  padding: 0 0 8px;
  border-radius: 0;
  border-bottom: 1px solid var(--color-primary);
  margin: 0 0 20px;
  letter-spacing: .25em;
}
.ns-strength__title { font-family: var(--font-jp-serif); font-size: 20px; margin: 0 0 14px; color: var(--color-dark); font-weight: 700; letter-spacing: .04em; }
.ns-strength__desc { font-size: 14px; color: var(--color-text-muted); margin: 0; line-height: 1.8; }

/* ----- v2-8. ロードマップ (Career Path) ----- */
.ns-roadmap { position: relative; padding-left: 40px; }
.ns-roadmap::before {
  content: ""; position: absolute; left: 16px; top: 16px; bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-yellow), var(--color-primary));
}
.ns-roadmap__item {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.ns-roadmap__item::before {
  content: ""; position: absolute; left: -32px; top: 24px;
  width: 16px; height: 16px;
  background: var(--color-primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-primary);
}
.ns-roadmap__year {
  font-family: var(--font-en); font-weight: 400;
  font-size: 13px;
  color: var(--color-primary);
  background: transparent;
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid var(--color-primary);
  border-radius: 0;
  margin: 0 0 12px;
  letter-spacing: .15em;
}
.ns-roadmap__title { font-family: var(--font-jp-serif); font-size: 19px; margin: 4px 0 10px; font-weight: 700; letter-spacing: .04em; }
.ns-roadmap__desc { font-size: 14px; color: var(--color-text-muted); margin: 0; }

/* ----- v2-9. ヒーロー改修 (ワイヤーフレーム風) ----- */
.ns-hero--v2 {
  min-height: calc(100vh - var(--header-h));
  background: #fff;
  padding-block: 80px;
  display: flex; align-items: center;
}
.ns-hero--v2 .ns-hero__bg {
  background:
    radial-gradient(circle at 75% 20%, rgba(0,153,217,.12) 0%, transparent 50%),
    radial-gradient(circle at 25% 80%, rgba(0,188,212,.08) 0%, transparent 50%);
}
.ns-hero__en-mark {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-en); font-size: 12px;
  color: var(--color-primary);
  letter-spacing: .2em;
  margin: 0 0 24px;
}
.ns-hero__en-mark::before { content: ""; display: inline-block; width: 32px; height: 1px; background: var(--color-primary); margin-right: 4px; }
.ns-hero__title--strong {
  font-family: var(--font-jp-serif);
  font-size: clamp(34px, 6.5vw, 68px);
  letter-spacing: .06em;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-dark);
}
.ns-hero__title--strong em {
  font-style: normal;
  color: var(--color-primary-deep);
  position: relative;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--color-primary);
}

/* ----- v2-10. レスポンシブ補完 ----- */
@media (max-width: 768px) {
  .ns-process__item { grid-template-columns: 1fr; }
  .ns-process__item::before { padding-top: 0; }
  .ns-roadmap { padding-left: 28px; }
  .ns-roadmap::before { left: 8px; }
  .ns-roadmap__item::before { left: -24px; width: 12px; height: 12px; top: 20px; }
}


/* ============================================================
   v3 追加: スタッフボイス + お知らせピックアップ
   ============================================================ */

/* ----- v3-1. お知らせピックアップ (front-page) ----- */
.ns-news-pickup__list { list-style: none; padding: 0; margin: 0; max-width: 820px; margin-inline: auto; }
.ns-news-pickup__item {
  border-bottom: 1px solid var(--color-border-pink);
  transition: background .2s ease;
}
.ns-news-pickup__item:first-child { border-top: 1px solid var(--color-border-pink); }
.ns-news-pickup__item:hover { background: var(--color-bg-alt); }
.ns-news-pickup__link {
  display: grid;
  grid-template-columns: 120px 100px 1fr 16px;
  gap: 20px;
  align-items: center;
  padding: 20px 16px;
  color: var(--color-text);
}
.ns-news-pickup__date {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary);
}
.ns-news-pickup__cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-primary-pale);
  color: var(--color-primary-deep);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
  letter-spacing: .05em;
}
.ns-news-pickup__title { font-weight: 700; font-size: 15px; }
.ns-news-pickup__arrow { color: var(--color-primary); font-weight: 700; }
.ns-news-pickup__link:hover .ns-news-pickup__title { color: var(--color-primary); }

@media (max-width: 768px) {
  .ns-news-pickup__link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
  }
  .ns-news-pickup__cat { justify-self: start; }
  .ns-news-pickup__arrow { display: none; }
}

/* ----- v3-2. 働く人の声 (Voice) ----- */
.ns-voices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.ns-voice {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-pink);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ns-voice:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ns-voice::before {
  content: "\201C";
  position: absolute;
  top: 16px; right: 24px;
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--color-primary-light);
  line-height: 1;
  opacity: .8;
}
.ns-voice__header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-pink);
}
.ns-voice__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-en); font-weight: 700; font-size: 20px;
  flex-shrink: 0;
}
.ns-voice__meta { flex: 1; }
.ns-voice__name { font-weight: 700; font-size: 15px; margin: 0; }
.ns-voice__role { font-size: 12px; color: var(--color-text-muted); margin: 2px 0 0; }
.ns-voice__years {
  display: inline-block;
  font-family: var(--font-en); font-weight: 700; font-size: 11px;
  color: var(--color-yellow-deep);
  background: rgba(0,188,212,.18);
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: .05em;
}
.ns-voice__q { font-size: 13px; color: var(--color-primary-deep); font-weight: 700; margin: 16px 0 6px; }
.ns-voice__q:first-of-type { margin-top: 0; }
.ns-voice__a { font-size: 14px; color: var(--color-text); line-height: 1.8; margin: 0 0 8px; }
}
}


/* ============================================================
   v4 追加: 動き / アニメーション / インタラクション
   ============================================================ */

/* ----- v4-0. グローバル motion 設定 ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ----- v4-1. カスタムカーソル ----- */
.ns-cursor {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--color-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s cubic-bezier(.2,.8,.2,1), height .3s cubic-bezier(.2,.8,.2,1), background .3s ease, border-color .3s ease, opacity .3s ease;
  mix-blend-mode: difference;
  opacity: 0;
}
.ns-cursor.is-active { opacity: 1; }
.ns-cursor.is-hover {
  width: 56px; height: 56px;
  background: var(--color-primary);
  border-color: var(--color-primary);
  mix-blend-mode: normal;
}
.ns-cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--color-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.ns-cursor__dot.is-active { opacity: 1; }
@media (hover: none), (max-width: 768px) {
  .ns-cursor, .ns-cursor__dot { display: none; }
}

/* ----- v4-2. ボタン：背景スライドフィル ----- */
.ns-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.ns-btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--color-primary-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.7,.0,.2,1);
  z-index: -1;
}
.ns-btn:hover::before { transform: scaleX(1); }
.ns-btn--primary::before { background: var(--color-dark); }
.ns-btn--ghost::before { background: var(--color-dark); }

/* hover transformを上書き */
.ns-btn:hover { transform: none; }

/* ----- v4-3. ナビ：アンダーラインスワイプ ----- */
.ns-nav__list a {
  overflow: hidden;
}
.ns-nav__list a::after {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s cubic-bezier(.7,.0,.2,1);
}
.ns-nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ----- v4-4. セクションタイトル：マスクスワイプ ----- */
.ns-section__title,
.ns-section__en {
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.ns-section__title.ns-mask,
.ns-section__en.ns-mask {
  opacity: 1;
  transform: translateY(0);
}
.ns-mask-init {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(.7,.0,.2,1);
}
.ns-mask-init.is-revealed {
  clip-path: inset(0 0 0 0);
}

/* ----- v4-5. Hero タイトル：文字ごとに出現 ----- */
.ns-hero__title--strong {
  overflow: hidden;
}
.ns-hero__title--strong .ns-line {
  display: block;
  overflow: hidden;
}
.ns-hero__title--strong .ns-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.ns-hero__title--strong.is-loaded .ns-line > span {
  transform: translateY(0);
}
.ns-hero__title--strong.is-loaded .ns-line:nth-child(2) > span {
  transition-delay: .15s;
}

.ns-hero__en-mark,
.ns-hero__sub,
.ns-hero__cta,
.ns-trust-badges {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.ns-hero.is-loaded .ns-hero__en-mark { opacity: 1; transform: translateY(0); transition-delay: .1s; }
.ns-hero.is-loaded .ns-hero__sub { opacity: 1; transform: translateY(0); transition-delay: .6s; }
.ns-hero.is-loaded .ns-hero__cta { opacity: 1; transform: translateY(0); transition-delay: .8s; }
.ns-hero.is-loaded .ns-trust-badges { opacity: 1; transform: translateY(0); transition-delay: 1.0s; }

/* ----- v4-6. 画像カード：オーバーレイ＋ズーム ----- */
.ns-works-card {
  position: relative;
  overflow: hidden;
}
.ns-works-card__img {
  position: relative;
  overflow: hidden;
}
.ns-works-card__img img {
  transition: transform 1s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.ns-works-card:hover .ns-works-card__img img {
  transform: scale(1.08);
}
.ns-works-card__overlay {
  position: absolute; inset: 0;
  background: rgba(26, 26, 26, 0.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.ns-works-card:hover .ns-works-card__overlay {
  opacity: 1;
}
.ns-works-card__overlay-text {
  color: #fff;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .25em;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 10px 24px;
  transform: translateY(20px);
  transition: transform .55s cubic-bezier(.16,1,.3,1) .1s;
}
.ns-works-card:hover .ns-works-card__overlay-text {
  transform: translateY(0);
}

/* ----- v4-7. サービス/強み/理由カードの stagger アニメ ----- */
.ns-service-card,
.ns-reason,
.ns-strength,
.ns-voice,
.ns-process__item,
.ns-roadmap__item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.ns-service-card.is-visible,
.ns-reason.is-visible,
.ns-strength.is-visible,
.ns-voice.is-visible,
.ns-process__item.is-visible,
.ns-roadmap__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger delays */
.ns-services__grid > .ns-service-card:nth-child(2) { transition-delay: .12s; }
.ns-services__grid > .ns-service-card:nth-child(3) { transition-delay: .24s; }
.ns-services__grid > .ns-service-card:nth-child(4) { transition-delay: .36s; }
.ns-reasons__grid > .ns-reason:nth-child(2) { transition-delay: .12s; }
.ns-reasons__grid > .ns-reason:nth-child(3) { transition-delay: .24s; }
.ns-reasons__grid > .ns-reason:nth-child(4) { transition-delay: .36s; }
.ns-strengths__grid > .ns-strength:nth-child(2) { transition-delay: .12s; }
.ns-strengths__grid > .ns-strength:nth-child(3) { transition-delay: .24s; }
.ns-strengths__grid > .ns-strength:nth-child(4) { transition-delay: .36s; }
.ns-voices__grid > .ns-voice:nth-child(2) { transition-delay: .12s; }
.ns-voices__grid > .ns-voice:nth-child(3) { transition-delay: .24s; }

/* ----- v4-8. Stats（数字で見る）: 押し上げ効果 ----- */
.ns-stat {
  opacity: 1;
  transform: none;
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.ns-stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ns-stats__grid > .ns-stat:nth-child(2) { transition-delay: .15s; }
.ns-stats__grid > .ns-stat:nth-child(3) { transition-delay: .30s; }
.ns-stats__grid > .ns-stat:nth-child(4) { transition-delay: .45s; }

/* ----- v4-9. 信頼バッジ stagger ----- */
.ns-trust-badge {
  opacity: 0;
  transform: translateY(10px) scale(.95);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.ns-hero.is-loaded .ns-trust-badge:nth-child(1) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 1.05s; }
.ns-hero.is-loaded .ns-trust-badge:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 1.15s; }
.ns-hero.is-loaded .ns-trust-badge:nth-child(3) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 1.25s; }
.ns-hero.is-loaded .ns-trust-badge:nth-child(4) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 1.35s; }

/* ----- v4-10. パララックス背景（Hero） ----- */
.ns-hero__bg {
  will-change: transform;
  transition: transform .1s linear;
}

/* ----- v4-11. リンク矢印スライド ----- */
.ns-service-card__more,
.ns-btn {
  position: relative;
}
.ns-service-card__more {
  display: inline-block;
  transition: color .3s ease, padding-right .3s ease;
}
.ns-service-card__more:hover {
  padding-right: 8px;
}

/* ----- v4-12. テーブル行のホバー ----- */
.ns-info-row {
  transition: background .25s ease;
}
.ns-info-row:hover {
  background: var(--color-bg-alt);
}

/* ----- v4-13. ニュースピックアップ：左ボーダースワイプ ----- */
.ns-news-pickup__link {
  position: relative;
}
.ns-news-pickup__link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s cubic-bezier(.7,.0,.2,1);
}
.ns-news-pickup__item:hover .ns-news-pickup__link::before {
  transform: scaleY(1);
}

/* ----- v4-14. スクロールインジケータ：イージング調整 ----- */
.ns-hero__scroll-line {
  animation: ns-scroll 2s cubic-bezier(.65,.0,.35,1) infinite;
}
@keyframes ns-scroll {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----- v4-15. ヘッダー：スクロール時の縮小 ----- */
.ns-header.is-scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ----- v4-16. ロゴホバーマイクロインタラクション ----- */
.ns-header__logo {
  transition: opacity .3s ease;
}
.ns-header__logo:hover {
  opacity: .75;
}


/* ============================================================
   v5 追加: 写真スペース / プレースホルダー / ABOUT セクション
   ============================================================ */

/* ----- v5-1. 共通：写真フレーム & プレースホルダー ----- */
.ns-photo {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.ns-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
/* プレースホルダー：画像未設定時に表示 */
.ns-photo-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 18px, rgba(0,0,0,.04) 18px, rgba(0,0,0,.04) 19px),
    var(--color-bg-soft);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-photo-placeholder::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 60px; height: 60px;
  border: 1.5px solid var(--color-text-muted);
  border-radius: 50%;
  transform: translate(-50%, calc(-50% - 14px));
  opacity: .35;
}
.ns-photo-placeholder::after {
  content: "PHOTO";
  position: absolute;
  bottom: 32%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--color-text-muted);
  opacity: .6;
}

/* ----- v5-2. ヒーロー：左右2カラム＋右写真 ----- */
.ns-hero--with-photo .ns-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.ns-hero__photo {
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 1;
}
.ns-hero__photo .ns-photo,
.ns-hero__photo .ns-photo-placeholder {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 5;
}
.ns-hero__photo::before {
  content: "";
  position: absolute;
  top: 24px; left: 24px;
  right: -24px; bottom: -24px;
  border: 1px solid var(--color-primary);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 960px) {
  .ns-hero--with-photo .ns-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ns-hero__photo { aspect-ratio: 16 / 10; }
  .ns-hero__photo .ns-photo,
  .ns-hero__photo .ns-photo-placeholder { aspect-ratio: 16 / 10; }
  .ns-hero__photo::before { display: none; }
}

/* ----- v5-3. ABOUT セクション ----- */
.ns-about {
  position: relative;
}
.ns-about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.ns-about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
}
.ns-about__photo .ns-photo,
.ns-about__photo .ns-photo-placeholder {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 5;
}
.ns-about__photo::before {
  content: "";
  position: absolute;
  top: -20px; left: -20px;
  width: 80px; height: 80px;
  border-top: 1px solid var(--color-primary);
  border-left: 1px solid var(--color-primary);
}
.ns-about__photo::after {
  content: "";
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  border-bottom: 1px solid var(--color-primary);
  border-right: 1px solid var(--color-primary);
}
.ns-about__sign {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-jp-serif);
  font-size: 14px;
  color: var(--color-text-muted);
}
.ns-about__sign strong { display: block; color: var(--color-dark); font-size: 16px; margin-bottom: 4px; }

@media (max-width: 800px) {
  .ns-about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ns-about__photo { max-width: 320px; margin: 0 auto; }
  .ns-about__photo::before, .ns-about__photo::after { display: none; }
}

/* ----- v5-4. サービスカード：写真エリア追加 ----- */
.ns-service-card {
  padding: 0 !important;
  overflow: hidden;
}
.ns-service-card__photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
}
.ns-service-card__photo .ns-photo,
.ns-service-card__photo .ns-photo-placeholder {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}
.ns-service-card__body {
  padding: 32px 28px;
}
.ns-service-card:hover .ns-service-card__photo .ns-photo img {
  transform: scale(1.08);
}

/* ----- v5-5. 採用：スタッフボイスのアバター写真化 ----- */
.ns-voice__avatar {
  overflow: hidden;
  position: relative;
}
.ns-voice__avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ----- v5-6. 会社概要：オフィス写真エリア ----- */
.ns-office {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.ns-office__photo {
  aspect-ratio: 4 / 3;
}
.ns-office__photo .ns-photo,
.ns-office__photo .ns-photo-placeholder {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
}
.ns-office__body { padding: 24px 0; }
.ns-office__title {
  font-family: var(--font-jp-serif);
  font-size: 20px; margin: 0 0 16px;
}
.ns-office__desc {
  font-size: 14px; color: var(--color-text-muted); line-height: 1.9;
}
@media (max-width: 720px) {
  .ns-office { grid-template-columns: 1fr; }
}

/* ----- v5-7. ギャラリーセクション（オプション） ----- */
.ns-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px;
}
.ns-gallery__item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-soft);
  position: relative;
}
.ns-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.ns-gallery__item:hover img { transform: scale(1.1); }

/* ----- v5-8. アバター（スタッフボイス）強化 ----- */
.ns-voice__avatar {
  background: linear-gradient(135deg, var(--color-bg-soft), var(--color-bg-alt));
}
.ns-voice__avatar:not(:has(img))::after {
  content: attr(data-initial);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-primary);
}


/* ============================================================
   v6 追加: パンくず / 404 / SNSアイコン
   ============================================================ */

/* ----- v6-1. パンくずリスト ----- */
.ns-breadcrumb {
  padding: 16px 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
}
.ns-breadcrumb__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
  letter-spacing: .04em;
}
.ns-breadcrumb__item {
  display: inline-flex; align-items: center;
}
.ns-breadcrumb__item + .ns-breadcrumb__item::before {
  content: "/";
  color: var(--color-text-light);
  margin-right: 8px;
  font-family: var(--font-en);
}
.ns-breadcrumb__item a {
  color: var(--color-text-muted);
  transition: color .2s ease;
}
.ns-breadcrumb__item a:hover { color: var(--color-primary); }
.ns-breadcrumb__item span[aria-current] {
  color: var(--color-dark);
  font-weight: 600;
}

/* ----- v6-2. 404 ページ ----- */
.ns-404 {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%);
}
.ns-404__num {
  font-family: var(--font-en);
  font-size: clamp(140px, 22vw, 280px);
  line-height: 1;
  color: var(--color-primary);
  margin: 16px 0 24px;
  letter-spacing: .04em;
  opacity: .9;
}
.ns-404__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 20px;
  color: var(--color-dark);
}
.ns-404__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 40px;
  line-height: 1.9;
}
.ns-404__cta {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 60px;
}
.ns-404__links {
  max-width: 600px;
  margin: 0 auto 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.ns-404__links-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--color-primary);
  margin: 0 0 20px;
  text-transform: uppercase;
}
.ns-404__links-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.ns-404__links-list a {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-dark);
  font-size: 13px;
  letter-spacing: .04em;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ns-404__links-list a:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}
.ns-404__search {
  max-width: 500px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.ns-404__search form {
  display: flex;
  gap: 0;
  margin-top: 20px;
}
.ns-404__search input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-right: none;
  font-size: 14px;
  background: #fff;
}
.ns-404__search input[type="search"]:focus {
  outline: none;
  border-color: var(--color-primary);
}
.ns-404__search button {
  background: var(--color-dark);
  color: #fff;
  border: 1px solid var(--color-dark);
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .25s ease;
}
.ns-404__search button:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* ----- v6-3. SNS アイコン（SVG対応） ----- */
.ns-sns {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 50%;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.ns-sns:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.ns-sns svg { width: 18px; height: 18px; display: block; }

/* ----- v6-4. パンくず h1 と被らないように ----- */
.ns-breadcrumb + main,
.ns-breadcrumb ~ .ns-hero--sub {
  margin-top: 0;
}


/* ============================================================
   v7 追加: スタッフページ（杉浦さん）
   ============================================================ */

/* ----- v7-1. スタッフイントロ ----- */
.ns-staff-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.ns-staff-intro__photo {
  aspect-ratio: 3 / 4;
  position: relative;
}
.ns-staff-intro__photo .ns-photo,
.ns-staff-intro__photo .ns-photo-placeholder {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 4;
}
.ns-staff-intro__photo::after {
  content: "";
  position: absolute;
  right: -16px; bottom: -16px;
  width: 60%; height: 60%;
  border-right: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  pointer-events: none;
}
.ns-staff-intro__name {
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4vw, 42px);
  margin: 16px 0 6px;
  letter-spacing: .04em;
}
.ns-staff-intro__role {
  font-family: var(--font-en);
  color: var(--color-primary);
  font-size: 14px;
  letter-spacing: .2em;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.ns-staff-meta {
  margin: 0; padding: 0;
}
.ns-staff-meta > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 14px;
}
.ns-staff-meta dt {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  color: var(--color-primary-deep);
  letter-spacing: .04em;
  margin: 0;
}
.ns-staff-meta dd { margin: 0; color: var(--color-text); }

@media (max-width: 800px) {
  .ns-staff-intro { grid-template-columns: 1fr; gap: 28px; }
  .ns-staff-intro__photo { max-width: 320px; margin: 0 auto; }
}

/* ----- v7-2. ステータスバー ----- */
.ns-stat-bars {
  list-style: none; padding: 0; margin: 32px 0 0;
}
.ns-stat-bar {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.ns-stat-bar__label {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-dark);
  letter-spacing: .04em;
  margin: 0;
}
.ns-stat-bar__track {
  position: relative;
  height: 8px;
  background: var(--color-bg-soft);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.ns-stat-bar__fill {
  display: block;
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--v, 50%);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.ns-stat-bar.is-visible .ns-stat-bar__fill { transform: scaleX(1); }
.ns-stat-bar__val {
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--color-primary-deep);
  text-align: right;
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  .ns-stat-bar { grid-template-columns: 100px 1fr 32px; gap: 12px; }
  .ns-stat-bar__label { font-size: 13px; }
  .ns-stat-bar__val { font-size: 18px; }
}

/* ----- v7-3. Q&A インタビュー ----- */
.ns-qa {
  margin-top: 32px;
}
.ns-qa__q, .ns-qa__a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 16px 0;
}
.ns-qa__q {
  border-bottom: 1px solid var(--color-border);
}
.ns-qa__a {
  margin-bottom: 24px;
  color: var(--color-text);
  background: var(--color-bg-soft);
  padding: 20px;
}
.ns-qa__mark {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .04em;
}
.ns-qa__q .ns-qa__mark { color: var(--color-primary); }
.ns-qa__a .ns-qa__mark { color: var(--color-dark); }
.ns-qa__q .ns-qa__text {
  font-family: var(--font-jp-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: .04em;
  padding-top: 2px;
}
.ns-qa__a .ns-qa__text {
  font-size: 15px;
  line-height: 1.95;
  padding-top: 2px;
}

/* ----- v7-4. 一問一答 ----- */
.ns-rapid {
  list-style: none; padding: 0; margin: 32px 0 0;
}
.ns-rapid__item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--color-border);
  align-items: center;
}
.ns-rapid__item::before {
  content: counter(rapid, decimal-leading-zero);
  counter-increment: rapid;
  font-family: var(--font-en);
  color: var(--color-primary);
  font-size: 14px;
  letter-spacing: .04em;
  position: absolute;
  margin-left: -32px;
  opacity: .5;
}
.ns-rapid { counter-reset: rapid; position: relative; }
.ns-rapid__item { position: relative; padding-left: 40px; }
.ns-rapid__q {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  color: var(--color-dark);
  font-size: 15px;
}
.ns-rapid__a {
  color: var(--color-primary-deep);
  font-size: 15px;
}
@media (max-width: 600px) {
  .ns-rapid__item { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
}

/* ----- v7-5. ONE WORD ----- */
.ns-staff-oneword {
  position: relative;
}
.ns-staff-oneword__big {
  font-family: var(--font-jp-serif);
  font-size: clamp(28px, 4.5vw, 48px);
  color: var(--color-dark);
  margin: 32px 0 12px;
  letter-spacing: .04em;
  font-weight: 700;
  line-height: 1.5;
}
.ns-staff-oneword__big::before,
.ns-staff-oneword__big::after {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--color-primary);
  vertical-align: middle;
  margin: 0 16px;
}
.ns-staff-oneword__by {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--color-text-muted);
}

/* ----- v7-6. blockquote ----- */
.ns-staff-quote {
  font-family: var(--font-jp-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 2;
  color: var(--color-dark);
  margin: 24px 0;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ----- v7-7. ヒーロー（スタッフ用ハイライト） ----- */
.ns-hero--staff .ns-hero__en {
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: .3em;
}


/* スタッフボイス：杉浦さんピックアップ */
.ns-voice--featured {
  border: 2px solid var(--color-primary);
  position: relative;
}
.ns-voice__pickup {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  padding: 4px 12px;
}


/* ============================================================
   v8 追加: イントロ動画 + 水源ヒーロー
   ============================================================ */

/* ----- v8-1. イントロ動画オーバーレイ ----- */
.ns-intro {
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity .8s cubic-bezier(.7,.0,.2,1);
}
.ns-intro.is-leaving { opacity: 0; pointer-events: none; }
.ns-intro.is-hidden  { display: none !important; }
.ns-intro__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ns-intro__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,30,55,.35) 0%, rgba(0,30,55,.55) 100%);
  z-index: 1;
}
.ns-intro__brand {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  animation: ns-intro-text 1s cubic-bezier(.16,1,.3,1) .3s both;
}
.ns-intro__en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .4em;
  margin: 0 0 24px;
  opacity: .8;
}
.ns-intro__catch {
  font-family: var(--font-jp-serif);
  font-size: clamp(36px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: .15em;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
@keyframes ns-intro-text {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.ns-intro__skip {
  position: absolute; bottom: 32px; right: 32px; z-index: 3;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .25em;
  padding: 10px 20px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.ns-intro__skip:hover {
  background: rgba(255,255,255,.2);
  border-color: #fff;
}
.ns-intro__progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 2px;
  background: rgba(255,255,255,.15);
}
.ns-intro__progress span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, #00BCD4, #0099D9, #00BCD4);
  transition: width linear;
}

/* スクロールロック中はbody固定 */
body.ns-intro-active {
  overflow: hidden;
  height: 100vh;
}

@media (max-width: 600px) {
  .ns-intro__skip { bottom: 20px; right: 20px; padding: 8px 16px; font-size: 11px; }
  .ns-intro__catch { font-size: 36px; }
}

/* ----- v8-2. ヒーロー水紋エフェクト ----- */
.ns-hero--front .ns-hero__bg {
  background:
    radial-gradient(circle at 80% 20%, rgba(0,153,217,.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,188,212,.10) 0%, transparent 50%);
}

/* 水のリップル（同心円） */
.ns-water-ripple {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ns-water-ripple::before,
.ns-water-ripple::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 100px; height: 100px;
  border: 1px solid rgba(0, 153, 217, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ns-ripple 6s cubic-bezier(.4, 0, .2, 1) infinite;
}
.ns-water-ripple::after {
  animation-delay: 3s;
}
@keyframes ns-ripple {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 1; border-width: 2px; }
  100% { transform: translate(-50%, -50%) scale(12); opacity: 0; border-width: 0.5px; }
}

/* 水面 SVG 波紋（追加用） */
.ns-wave-svg {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: 80px;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
}

/* ヒーロー右画像枠線を水色に */
.ns-hero__photo::before {
  border: 1px solid var(--color-primary);
}

/* ----- v8-3. 文字色のダーク → 深紺バックも調整 ----- */
.ns-footer { background: #0a1a28; }
.ns-stats { background: linear-gradient(135deg, #102B3E 0%, #082238 100%); }
.ns-cta { background: #102B3E; }

/* ----- v8-4. リカバー: 黄色アクセントを使ってた箇所を青へ ----- */
.ns-strength__no {
  color: var(--color-primary) !important;
  border-bottom: 1px solid var(--color-primary) !important;
  background: transparent !important;
}
.ns-roadmap__year {
  color: var(--color-primary) !important;
  border-bottom: 1px solid var(--color-primary) !important;
  background: transparent !important;
}
.ns-faq__a::before {
  background: var(--color-primary) !important;
  color: #fff !important;
}


/* ============================================================
   v9: 画像未設定時の余白解消
   ============================================================ */

/* ヒーロー右画像が無い場合は中央寄せの1カラムに */
.ns-hero--with-photo .ns-hero__inner:not(:has(.ns-photo)) {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.ns-hero--with-photo .ns-hero__inner:not(:has(.ns-photo)) .ns-hero__photo {
    display: none;
}

/* ABOUTセクション：画像が無い場合は1カラム */
.ns-about__inner:not(:has(.ns-photo)) {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
}
.ns-about__inner:not(:has(.ns-photo)) .ns-about__photo {
    display: none;
}

/* オフィス：画像が無い場合は1カラム */
.ns-office:not(:has(.ns-photo)) {
    grid-template-columns: 1fr;
}
.ns-office:not(:has(.ns-photo)) .ns-office__photo {
    display: none;
}

/* サービスカード：画像が無い場合はカード上部の写真エリアを完全削除 */
.ns-service-card:not(:has(.ns-photo)) .ns-service-card__photo {
    display: none;
}

/* スタッフページ：プロフィール画像なし時 */
.ns-staff-intro:not(:has(.ns-photo)) {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}
.ns-staff-intro:not(:has(.ns-photo)) .ns-staff-intro__photo {
    display: none;
}

/* :has 非対応ブラウザ対策（古いブラウザ用フォールバック） */
/* スタッフボイスのアバター：画像なし時はピンク背景で頭文字表示（既存仕様維持） */


/* ============================================================
   v10: 英字キャプション・英字大見出しを非表示
   ============================================================ */
.ns-section__en,
.ns-hero__en,
.ns-hero__en-mark,
.ns-area__main,
.ns-strength__no,
.ns-roadmap__year,
.ns-voice__pickup,
.ns-intro__en,
.ns-staff-intro__role,
.ns-rapid::before,
.ns-staff-oneword__by {
    display: none !important;
}

/* 日本語表記に置き換え */
.ns-area::before {
    content: "横浜・川崎を中心に神奈川県全域";
    display: block;
    text-align: center;
    font-family: var(--font-jp-serif);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--color-dark);
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    letter-spacing: .06em;
}
.ns-area .ns-container > p:first-of-type::after { content: none; }

/* section__title の上の英字キャプションが消えたので、上マージン調整 */
.ns-section__title { margin-top: 0; }

/* ヒーローのキャッチコピーの上の英字キャプションが消えた分、垂直バランス調整 */
.ns-hero--front .ns-hero__inner { padding-block: 64px; }

/* スタッフロール（給排水・現場リーダー）の下線スタイルが英字向けだったので調整 */
.ns-staff-intro__name { margin-top: 0; }

/* 「数字で見る」セクションの上の余白も縮める */
.ns-stats { padding-block: 48px; }


/* ============================================================
   v11: イントロ動画テキスト位置調整
   ============================================================ */
/* 動画と被るので、テキストを画面下方に移動 */
.ns-intro {
    align-items: flex-end !important;
    padding-bottom: 18vh;
}
.ns-intro__brand {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 0;
}
/* スマホでは少しだけ下に */
@media (max-width: 600px) {
    .ns-intro {
        padding-bottom: 22vh;
    }
}


/* ============================================================
   v12: ご依頼者別カード・引き込みフロー・保証バッジ
   ============================================================ */

/* ----- v12-1. ご依頼者別カード（個人/工務店/不動産） ----- */
.ns-clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.ns-client {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ns-client:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ns-client__icon {
  width: 56px; height: 56px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 22px;
  color: var(--color-primary);
}
.ns-client__title {
  font-family: var(--font-jp-serif);
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--color-dark);
}
.ns-client__sub {
  font-size: 12px;
  color: var(--color-primary);
  letter-spacing: .15em;
  margin: 0 0 16px;
}
.ns-client__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  text-align: left;
  font-size: 14px;
  line-height: 1.9;
}
.ns-client__list li {
  padding-left: 18px;
  position: relative;
}
.ns-client__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}
.ns-client__cta {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
  font-size: 13px;
  letter-spacing: .1em;
  transition: background .25s ease, color .25s ease;
}
.ns-client__cta:hover {
  background: var(--color-dark);
  color: #fff;
}

/* ----- v12-2. 引き込み工事フロー（番号付き） ----- */
.ns-process--leadin .ns-process__item {
  border-left: 3px solid var(--color-primary);
  background: #fff;
}

/* ----- v12-3. 保証バッジ・アフターサービス ----- */
.ns-warranty {
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  padding: 48px 40px;
  text-align: center;
  margin-top: 32px;
}
.ns-warranty__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--color-primary);
  padding: 24px 36px;
  margin-bottom: 24px;
  position: relative;
}
.ns-warranty__badge::before,
.ns-warranty__badge::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--color-primary);
  border-style: solid;
}
.ns-warranty__badge::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  background: #fff;
}
.ns-warranty__badge::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  background: #fff;
}
.ns-warranty__num {
  font-family: var(--font-en);
  font-size: 48px;
  color: var(--color-primary);
  line-height: 1;
  font-weight: 400;
}
.ns-warranty__label {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.ns-warranty__title {
  font-family: var(--font-jp-serif);
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--color-dark);
}
.ns-warranty__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto;
}
.ns-warranty__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 32px auto 0;
}
.ns-warranty__point {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 16px;
  text-align: left;
  font-size: 13px;
  line-height: 1.7;
}
.ns-warranty__point strong {
  display: block;
  font-family: var(--font-jp-serif);
  color: var(--color-primary-deep);
  margin-bottom: 6px;
}


/* ============================================================
   v13: 強み・選ばれる理由カードに写真エリア追加
   ============================================================ */
.ns-strength__photo,
.ns-reason__photo {
  margin: -40px -28px 20px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.ns-strength__photo .ns-photo,
.ns-reason__photo .ns-photo {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 10;
}
.ns-strength__photo .ns-photo img,
.ns-reason__photo .ns-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.ns-strength:hover .ns-photo img,
.ns-reason:hover .ns-photo img {
  transform: scale(1.05);
}
/* reason はもともと padding 48 32 36 だったので、-padding分マージン */
.ns-reason__photo {
  margin: -48px -32px 20px;
}
/* 画像未設定の場合は写真エリアごと非表示 */
.ns-strength__photo:not(:has(.ns-photo)),
.ns-reason__photo:not(:has(.ns-photo)) {
  display: none;
}


/* ============================================================
   v14: ABOUTセクション余白最適化
   ============================================================ */

/* ABOUTセクション全体のpaddingを縮める */
.ns-about {
    padding-block: 64px;
}

/* 画像未設定時：テキスト部の下余白も詰める */
.ns-about__inner:not(:has(.ns-photo)) {
    padding-bottom: 0;
}
.ns-about__inner:not(:has(.ns-photo)) .ns-about__text > *:last-child {
    margin-bottom: 0;
}

/* about__sign の余白を圧縮 */
.ns-about__sign {
    margin-top: 16px;
    padding-top: 12px;
}

/* about セクション直後（数字で見るセクション等）の上余白を縮める */
.ns-about + section,
.ns-about + .ns-stats {
    padding-top: 64px;
}

/* スタッフロール下線（英字キャプションのもの）も無効化されたので、関連スペース整理 */
.ns-staff-intro__role { padding-bottom: 8px; margin-bottom: 16px; }


/* ============================================================
   v15: PHP側条件分岐対応 + ABOUT余白の根本対策
   ============================================================ */

/* ABOUTセクションが画像なし時、テキスト中央寄せ＆余白圧縮 */
.ns-about__inner.ns-about__inner--no-photo {
    display: block !important;
    max-width: 820px;
    margin: 0 auto;
    grid-template-columns: 1fr !important;
}
.ns-about__inner--no-photo .ns-about__text {
    padding: 0;
}
.ns-about__inner--no-photo .ns-about__text > p:last-of-type,
.ns-about__inner--no-photo .ns-about__text > p:has(> a) {
    margin-bottom: 0;
}

/* ABOUTセクション 上下padding 強制圧縮 */
.ns-section.ns-about {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}

/* ABOUT直後のセクションも詰める */
.ns-about + .ns-section,
.ns-about + section {
    padding-top: 56px !important;
}

/* HEROで photoが無い場合、grid 1カラムに */
.ns-hero--with-photo .ns-hero__inner:not(:has(.ns-hero__photo)) {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}


/* ============================================================
   v16: 紺色セクション余白圧縮 + スタッフ紹介文
   ============================================================ */

/* 「数字で見る」紺色セクションの余白を大幅圧縮 */
.ns-stats {
    padding-block: 56px !important;
}
.ns-stats .ns-section__title {
    margin-bottom: 24px;
}
.ns-stats__grid {
    margin-top: 32px !important;
}

/* スタッフ紹介文 */
.ns-voice__intro {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-muted);
    padding-top: 10px;
    border-top: 1px dashed var(--color-border);
    font-family: var(--font-jp-serif);
    letter-spacing: .02em;
}


/* ----- FAQ (details accordion) ----- */
.ns-faq__item { border-bottom: 1px solid var(--color-border, #e5e7eb); }
.ns-faq__q { cursor: pointer; font-weight: 700; padding: 18px 32px 18px 0; position: relative; list-style: none; }
.ns-faq__q::-webkit-details-marker { display: none; }
.ns-faq__q::after { content: "＋"; position: absolute; right: 4px; top: 16px; color: var(--color-primary); font-weight: 400; font-size: 18px; }
.ns-faq__item[open] .ns-faq__q::after { content: "−"; }
.ns-faq__a { margin: 0 0 18px; color: var(--color-text); line-height: 1.8; }


/* ----- Footer brand meta ----- */
.ns-footer__desc { font-size: 13px; line-height: 1.9; color: #CBD5E1; margin: 12px 0 16px; max-width: 32em; }
.ns-footer__meta { margin: 0; font-size: 13px; color: #CBD5E1; }
.ns-footer__meta > div { display: flex; gap: 10px; padding: 3px 0; }
.ns-footer__meta dt { flex: 0 0 76px; color: #9CA3AF; }
.ns-footer__meta dd { margin: 0; }
.ns-footer__meta a { color: #CBD5E1; text-decoration: none; }
.ns-footer__meta a:hover { color: #fff; }


/* ----- スマホ: ヘッダーのロゴ社名を1行にコンパクト化 ----- */
@media (max-width: 600px){
  .ns-header__logo{flex-wrap:nowrap;align-items:center;gap:8px}
  .ns-header__logo img,
  .ns-header__logo .custom-logo{max-height:32px;width:auto}
  .ns-header__logo-en{display:none}
  .ns-header__logo-text{line-height:1.1}
  .ns-header__logo-ja{font-size:15px;white-space:nowrap;letter-spacing:0}
}


/* ----- フッター: 実ロゴ画像 ----- */
.ns-footer__mark--img { background: transparent !important; width: 44px; height: 44px; border-radius: 0; overflow: hidden; }
.ns-footer__mark--img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ----- スマホ: ヒーロー写真を薄いモノクロ背景に、文字を手前 ----- */
@media (max-width: 768px){
  .ns-hero--front.ns-hero--with-photo{ position: relative; }
  .ns-hero--front.ns-hero--with-photo .ns-hero__photo{
    position: absolute; inset: 0; margin: 0; z-index: 0;
    width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto;
  }
  .ns-hero--front.ns-hero--with-photo .ns-hero__photo img,
  .ns-hero--front.ns-hero--with-photo .ns-hero__photo .ns-photo{
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1); opacity: .16; aspect-ratio: auto;
  }
  .ns-hero--front.ns-hero--with-photo .ns-hero__photo::before{ display: none; }
  .ns-hero--front.ns-hero--with-photo .ns-hero__inner{ position: relative; z-index: 1; }
}


/* ============================================================
   v17: 日本語の改行を自然に（禁則処理・行長・見出しバランス）
        + 選ばれる理由の番号バッジ写真かぶり回避
        + フッター訴求文の改行整理
   ============================================================ */

/* --- 見出し類: 行の長さを自動で均等化し、禁則処理を厳格に --- */
.ns-hero__title,
.ns-section__title,
.ns-cta__title,
.ns-reason__title,
.ns-service-card__title,
.ns-strength__title,
.ns-process__title {
  line-break: strict;      /* 句読点・小書き文字が行頭に来ない（禁則処理） */
  text-wrap: balance;      /* 対応ブラウザで各行の長さを均等化（見出し向け） */
  word-break: normal;
  overflow-wrap: anywhere; /* 長い英字・URLでもはみ出さない */
}

/* --- 本文・リード文: 禁則処理＋末尾のバランス --- */
.ns-hero__sub,
.ns-section__lead,
.ns-cta__lead,
.ns-reason__desc,
.ns-service-card__desc,
.ns-process__desc,
.ns-footer__promo-text,
.ns-footer__desc {
  line-break: strict;
  text-wrap: pretty;       /* 最終行に語が1つだけ残る「泣き別れ」を抑制 */
  word-break: normal;
  overflow-wrap: anywhere;
}

/* 改行させたくない語のまとまり（テンプレ側で span.ns-nb を使用） */
.ns-nb { display: inline-block; }

/* リード文の1行を読みやすい長さに（日本語は全角35字前後が目安 ≒ 約36em） */
.ns-section__lead { max-width: 36em; margin-left: auto; margin-right: auto; }

/* --- 選ばれる理由: 番号バッジを写真に重ねず通常フローで配置（写真との被り・文字の見切れを完全排除） --- */
.ns-reason__num {
  position: static !important;   /* 旧: absolute で写真に重なっていた */
  transform: none !important;
  display: inline-block;
  margin: 0 0 14px !important;   /* 写真の下・タイトルの上に配置 */
  top: auto; left: auto;
}
/* 写真がある場合は画像直下に詰める */
.ns-reason:has(.ns-photo) .ns-reason__num { margin-top: 2px !important; }
/* カードは中身を絶対に隠さない（見切れ防止） */
.ns-reason { overflow: visible; }

/* --- フッター訴求文: スマホでも自然な位置で折り返す --- */
.ns-footer__promo-text { line-height: 1.9; }
@media (max-width: 600px){
  .ns-footer__promo-text { font-size: 13px; }
  /* スマホでは制作会社の一文（PC用の改行）を詰める */
  .ns-footer__promo-br { display: none; }
}

/* --- スマホ: ヒーロー本文を1文ずつ収まりやすいサイズに --- */
@media (max-width: 768px){
  .ns-hero--front .ns-hero__sub{
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: .01em;
  }
}

/* ============================================================
   v18: お知らせ本文の表組み（移転案内などの「記」ブロック）
        スマホでは縦積みにして住所などの見切れを防止
   ============================================================ */
.ns-prose table{
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 1.6em;
  font-size: 15px;
}
.ns-prose th,
.ns-prose td{
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.85;
}
.ns-prose th{
  width: 34%;
  white-space: nowrap;
  color: var(--color-dark);
  font-weight: 700;
  background: var(--color-bg-alt, #f6f6f4);
}
.ns-prose td{ overflow-wrap: anywhere; }
@media (max-width: 600px){
  .ns-prose table,
  .ns-prose tbody,
  .ns-prose tr,
  .ns-prose th,
  .ns-prose td{ display: block; width: auto; }
  .ns-prose th{
    border-bottom: none;
    background: transparent;
    padding: 12px 16px 2px;
    white-space: normal;
  }
  .ns-prose td{ padding: 2px 16px 12px; border-bottom: 1px solid var(--color-border); }
}

/* お知らせ本文: 署名（敬具・以上）を右寄せしやすく */
.ns-prose .ns-prose__sign{ text-align: right; color: var(--color-text-muted); }


/* ============================================================
   v20: ページ別 背景ウォーターマーク
        各ページのアイキャッチを極薄(5%)・固定でページ全体の背面に。
        --ns-page-bg が未設定なら background-image:none で何も出ない。
        z-index:-1 + pointer-events:none でレイアウト/操作に一切干渉しない。
   ============================================================ */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--ns-page-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .05;
  pointer-events: none;
}
/* 印刷時は背景を出さない */
@media print { body::before{ display: none; } }


/* ============================================================
   v21: イントロ動画 スマホ縦画面の見切れ対策
        横長動画を cover で全面表示すると縦画面で端が大きく切れるため、
        スマホ・縦向きでは contain にして動画全体を表示（上下は黒帯）。
   ============================================================ */
@media (max-width: 768px), (orientation: portrait){
  .ns-intro__video{
    object-fit: contain;
    background: #000;
  }
}


/* ============================================================
   v19: スマホの横スクロール（見切れ）解消
        ヘッダー右側の重複CTAを非表示＋横はみ出しの安全網
   ============================================================ */

/* 横方向のはみ出しを画面内にクリップ（stickyヘッダーは維持される clip を使用） */
html { overflow-x: clip; }

/* スマホ(600px以下): 電話・お問い合わせはバーガーメニュー内に有るのでヘッダーの重複CTAを隠す
   （logo + contact + burger が並びきらず 60px以上はみ出していた） */
@media (max-width: 600px){
  .ns-header__cta{ display: none; }
  .ns-burger{ margin-left: auto; }   /* バーガーを右端に */
  .ns-header__inner{ gap: 12px; }

  /* 選ばれる理由/強み: フルブリード写真の左右はみ出し(約8px)を解消
     カード左右padを20pxに、写真の負マージンも-20pxに合わせる */
  .ns-reason,
  .ns-strength{ padding-left: 20px; padding-right: 20px; }
  .ns-reason__photo,
  .ns-strength__photo{ margin-left: -20px; margin-right: -20px; }
}


/* ============================================================
   v22: 余白リズムの統一（黄金比ベースのゆとり）
        ─ 第1段階：セクションの縦余白を上品に、見出し周りを整える。
        個別に !important 指定済みのセクション(ABOUT等)はそのまま維持される。
   ============================================================ */

/* セクションの上下余白：スマホは詰め、PCはゆったり（56px固定→レスポンシブ） */
.ns-section { padding-block: clamp(60px, 7vw, 96px); }

/* 見出し→リード→本文の間隔を黄金比的に段階化 */
.ns-section__title { margin-bottom: 20px; }
.ns-section__lead  { margin-bottom: 40px; line-height: 1.9; }

/* 英字キャプションと見出しの近接感を少しだけ整える */
.ns-section__en { margin-bottom: 14px; }


/* ============================================================
   v23: アクセス（本社＋資材センター）2枚地図 ＋ PCの本文可読性UP
   ============================================================ */

/* アクセス: 2拠点の地図を横並び（スマホは縦積み） */
.ns-access-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.ns-access__label{ font-family: var(--font-jp-serif); font-size: 18px; font-weight: 700; letter-spacing: .04em; color: var(--color-dark); margin: 0 0 4px; }
.ns-access__addr{ font-size: 14px; color: var(--color-text-muted); margin: 0 0 12px; }
.ns-access__note{ font-size: 13px; color: var(--color-text-muted); margin: 10px 0 0; }
.ns-access-grid .ns-map{ margin-top: 0; }
@media (max-width: 768px){
  .ns-access-grid{ grid-template-columns: 1fr; gap: 28px; }
}

/* PC(769px以上)の本文を読みやすいサイズに（スマホ用の小さめ設定は維持） */
@media (min-width: 769px){
  body{ font-size: 16.5px; }
  .ns-section__lead{ font-size: 17px; }
  .ns-service-card__desc,
  .ns-reason__desc,
  .ns-strength__desc,
  .ns-process__desc,
  .ns-client__list,
  .ns-office__desc,
  .ns-faq__a,
  .ns-voice__a,
  .ns-voice__intro,
  .ns-info-row dt,
  .ns-info-row dd{
    font-size: 15.5px;
    line-height: 1.9;
  }
}
