/* ============================================================
   合同会社しののめ — Company Top Page
   テーマ: しののめ（夜明け・暁）
   ============================================================ */

/* ── Reset / Base ── */
.sn-page { margin: 0; padding: 0; font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Yu Gothic', sans-serif; color: #111; background: #faf9f7; overflow-x: hidden; }
.sn-page *, .sn-page *::before, .sn-page *::after { box-sizing: border-box; }
.sn-page a { text-decoration: none; color: inherit; }
.sn-page img { max-width: 100%; display: block; }

/* ── CSS Variables ── */
.sn-page {
  --sn-black:   #0d0d0d;
  --sn-white:   #faf9f7;
  --sn-gray:    #888;
  --sn-light:   #ede9e3;
  /* 暁カラー: 夜明けのアンバーゴールド */
  --sn-dawn:    #C8913A;
  --sn-dawn-lt: #E8B86D;
  --sn-dawn-dk: #8C5E1A;
  /* グラデーション: 深夜紺 → 暁 */
  --sn-grad: linear-gradient(135deg, #0a0e1a 0%, #1a1228 30%, #3d1f08 65%, #8C5E1A 100%);
}

/* ── Loading ── */
#sn-loading {
  position: fixed; inset: 0; background: var(--sn-black);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .6s ease, visibility .6s ease;
}
#sn-loading.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.sn-loading-inner { text-align: center; color: var(--sn-white); }
.sn-loading-mark { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .5; margin-bottom: 14px; }
.sn-loading-bar { width: 120px; height: 1px; background: rgba(255,255,255,.15); margin: 0 auto; position: relative; overflow: hidden; }
.sn-loading-bar::after { content: ''; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background: var(--sn-dawn); animation: snLoadBar 1.4s ease forwards; }
@keyframes snLoadBar { to { left: 0; } }

/* ── Header / Nav ── */
.sn-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: transparent;
  transition: background .4s ease, height .3s ease;
}
.sn-header.scrolled { background: rgba(10,10,15,.92); backdrop-filter: blur(8px); height: 56px; }

/* 左上の会社名は非表示 */
.sn-header-logo { display: none; }

/* ロゴ非表示のためnavを右寄せ */
.sn-header { justify-content: flex-end; }

.sn-nav-desktop { display: flex; align-items: center; gap: 0; }
.sn-nav-desktop a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 22px; color: rgba(255,255,255,.85); transition: color .2s;
  border-right: 1px solid rgba(255,255,255,.12);
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
}
.sn-nav-desktop a:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.sn-nav-desktop a span { font-size: 9px; letter-spacing: .25em; color: rgba(255,255,255,.4); text-transform: uppercase; }
.sn-nav-desktop a:hover { color: var(--sn-dawn-lt); }
.sn-nav-desktop a:hover span { color: var(--sn-dawn-lt); }
.sn-nav-desktop a.is-active { color: var(--sn-dawn-lt); }
.sn-nav-desktop a.is-active span { color: var(--sn-dawn-lt); }

.sn-hamburger {
  display: none; width: 36px; height: 36px; position: relative;
  background: none; border: none; cursor: pointer; padding: 0;
}
.sn-hamburger span {
  position: absolute; left: 4px; right: 4px; height: 1.5px;
  background: var(--sn-white); transition: transform .3s, opacity .3s;
}
.sn-hamburger span:nth-child(1) { top: 9px; }
.sn-hamburger span:nth-child(2) { top: 17px; }
.sn-hamburger span:nth-child(3) { top: 25px; }
.sn-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sn-hamburger.is-open span:nth-child(2) { opacity: 0; }
.sn-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.sn-mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--sn-black); z-index: 99; padding: 80px 32px 40px;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 0;
}
.sn-mobile-drawer.is-open { transform: translateX(0); }
.sn-mobile-drawer a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--sn-white); font-size: 13px; letter-spacing: .05em;
}
.sn-mobile-drawer a span { font-size: 9px; letter-spacing: .2em; color: var(--sn-dawn); text-transform: uppercase; }
.sn-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sn-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ── Hero Section ── */
.sn-hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.sn-hero-bg {
  position: absolute; inset: 0; background: var(--sn-grad);
  background-size: cover; background-position: center;
}
.sn-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
/* Plexus canvas — 画像の上に重なる / パララックスで動かすので少し大きめ */
.sn-plexus {
  position: absolute;
  top: -40px; left: -40px;
  width: calc(100% + 80px); height: calc(100% + 80px);
  z-index: 1; pointer-events: none;
  will-change: transform;
}
/* スマホ: canvasを非表示・CSSパーティクルを表示 */
.sn-particles-mobile { display: none; }

@media (hover: none) and (pointer: coarse) {
  .sn-plexus { display: none; }
  .sn-particles-mobile {
    display: block;
    position: absolute; inset: 0;
    z-index: 1; pointer-events: none; overflow: hidden;
  }
  .sn-particles-mobile span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,145,58,.55) 0%, transparent 70%);
    animation: snDrift linear infinite;
  }
  /* 各パーティクルのサイズ・位置・速度をバラバラに */
  .sn-particles-mobile span:nth-child(1) { width:120px; height:120px; left:10%; top:15%; animation-duration:14s; animation-delay:0s; }
  .sn-particles-mobile span:nth-child(2) { width: 80px; height: 80px;  left:75%; top:20%; animation-duration:18s; animation-delay:-4s; }
  .sn-particles-mobile span:nth-child(3) { width:100px; height:100px; left:50%; top:60%; animation-duration:12s; animation-delay:-7s; }
  .sn-particles-mobile span:nth-child(4) { width: 60px; height: 60px;  left:25%; top:70%; animation-duration:20s; animation-delay:-2s; }
  .sn-particles-mobile span:nth-child(5) { width: 90px; height: 90px;  left:85%; top:55%; animation-duration:16s; animation-delay:-9s; background: radial-gradient(circle, rgba(232,184,109,.4) 0%, transparent 70%); }
  .sn-particles-mobile span:nth-child(6) { width: 70px; height: 70px;  left:40%; top:30%; animation-duration:22s; animation-delay:-5s; background: radial-gradient(circle, rgba(255,220,150,.35) 0%, transparent 70%); }
  .sn-particles-mobile span:nth-child(7) { width: 50px; height: 50px;  left:60%; top:80%; animation-duration:15s; animation-delay:-11s; }
  .sn-particles-mobile span:nth-child(8) { width: 85px; height: 85px;  left: 5%; top:50%; animation-duration:19s; animation-delay:-3s; background: radial-gradient(circle, rgba(232,184,109,.45) 0%, transparent 70%); }

  @keyframes snDrift {
    0%   { transform: translate(0px,   0px)  scale(1);   opacity: .7; }
    25%  { transform: translate(30px, -25px) scale(1.1); opacity: 1;  }
    50%  { transform: translate(-20px, 20px) scale(.9);  opacity: .6; }
    75%  { transform: translate(25px,  30px) scale(1.05);opacity: .9; }
    100% { transform: translate(0px,   0px)  scale(1);   opacity: .7; }
  }
}
.sn-hero { overflow: hidden; pointer-events: auto; }

/* 暁グロウ: 右下から光が差す演出 */
.sn-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 75% 85%, rgba(200,145,58,.28) 0%, transparent 65%);
}

/* 縦書き SCROLL DOWN */
.sn-hero-scroll {
  position: absolute; left: 36px; bottom: 48px; z-index: 2; pointer-events: none;
  writing-mode: vertical-rl; font-size: 9px; letter-spacing: .3em;
  color: rgba(255,255,255,.4); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.sn-hero-scroll::before {
  content: ''; display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--sn-dawn-lt));
}

.sn-hero-content {
  position: relative; z-index: 2; padding: 0 48px 72px;
  pointer-events: none;
  width: 100%; display: flex; justify-content: space-between; align-items: flex-end;
}
.sn-hero-title { }
.sn-hero-label {
  display: inline-block; background: var(--sn-black); color: var(--sn-dawn-lt);
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  padding: 7px 16px; margin-bottom: 14px;
}
.sn-hero-name-jp {
  display: block; background: var(--sn-black); color: var(--sn-white);
  font-size: clamp(48px, 7vw, 88px); font-weight: 900; letter-spacing: .05em;
  padding: 14px 28px; line-height: 1.1; margin-bottom: 8px;
}
.sn-hero-name-en {
  display: block; background: var(--sn-dawn); color: var(--sn-black);
  font-size: clamp(14px, 1.8vw, 20px); font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; padding: 10px 28px; line-height: 1;
}
.sn-hero-tagline {
  text-align: right; max-width: 480px;
}
.sn-hero-tagline p {
  color: rgba(255,255,255,.92); font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 700; line-height: 1.8; letter-spacing: .08em; margin: 0;
}

/* ── Section共通 ── */
.sn-section { padding: 100px 0; }
.sn-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.sn-section-header { margin-bottom: 56px; display: flex; align-items: flex-end; gap: 20px; }
.sn-section-num { font-size: 11px; letter-spacing: .3em; color: var(--sn-dawn); text-transform: uppercase; }
.sn-section-title-wrap { }
.sn-section-title-jp { font-size: clamp(22px, 3vw, 32px); font-weight: 900; letter-spacing: .05em; line-height: 1; color: var(--sn-black); }
.sn-section-title-en { font-size: 10px; letter-spacing: .3em; color: var(--sn-gray); text-transform: uppercase; margin-top: 4px; }
.sn-section-line { flex: 1; height: 1px; background: var(--sn-light); margin-bottom: 6px; }

/* ── Philosophy (会社理念) ── */
.sn-philosophy { background: var(--sn-black); color: var(--sn-white); }
.sn-philosophy .sn-section-title-jp { color: var(--sn-white); }
.sn-philosophy .sn-section-title-en { color: rgba(255,255,255,.3); }
.sn-philosophy .sn-section-line { background: rgba(255,255,255,.1); }
.sn-philosophy .sn-section-num { color: var(--sn-dawn-lt); }

.sn-phil-body { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sn-phil-quote {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 900; line-height: 1.8;
  letter-spacing: .08em; color: var(--sn-white);
  border-left: 3px solid var(--sn-dawn); padding-left: 28px;
}
.sn-phil-text { font-size: 13px; line-height: 2.2; color: rgba(255,255,255,.65); letter-spacing: .06em; }

/* ── Services ── */
.sn-services { background: var(--sn-white); }
.sn-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.sn-service-card {
  position: relative; background: var(--sn-light);
  padding: 40px 32px; overflow: hidden;
  transition: background .3s;
}
.sn-service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--sn-dawn);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.sn-service-card:hover { background: #e8e3db; }
.sn-service-card:hover::before { transform: scaleX(1); }
.sn-service-num { font-size: 10px; letter-spacing: .3em; color: var(--sn-dawn); margin-bottom: 16px; }
.sn-service-title-en { font-size: 18px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--sn-black); margin-bottom: 4px; }
.sn-service-title-jp { font-size: 11px; color: var(--sn-gray); letter-spacing: .1em; margin-bottom: 20px; }
.sn-service-desc { font-size: 12px; line-height: 2; color: #555; letter-spacing: .04em; }

/* ── About / Company ── */
.sn-about { background: var(--sn-light); }
.sn-about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.sn-about-info { }
.sn-about-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.sn-about-info dt {
  font-size: 10px; letter-spacing: .2em; color: var(--sn-dawn-dk); text-transform: uppercase;
  padding: 14px 20px 14px 0; border-bottom: 1px solid rgba(0,0,0,.08);
  white-space: nowrap; font-weight: 700;
}
.sn-about-info dd {
  font-size: 12px; color: #444; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08);
  letter-spacing: .04em; line-height: 1.7; margin: 0;
}
.sn-about-visual {
  background: none; min-height: 320px; border-radius: 2px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sn-about-visual.has-thumbnail {
  background: none !important;
  min-height: unset;
}
.sn-about-visual::after {
  display: none;
}
.sn-about-visual-text { color: var(--sn-white); text-align: center; position: relative; z-index: 1; }
.sn-about-visual-text .jp { font-size: 28px; font-weight: 900; letter-spacing: .15em; }
.sn-about-visual-text .en { font-size: 10px; letter-spacing: .3em; color: var(--sn-dawn-lt); margin-top: 8px; text-transform: uppercase; }

/* ── News ── */
.sn-news { background: var(--sn-white); }
.sn-news-list { display: flex; flex-direction: column; gap: 0; }
.sn-news-item {
  display: grid; grid-template-columns: 100px 80px 1fr auto;
  align-items: center; padding: 20px 0; border-bottom: 1px solid var(--sn-light);
  transition: background .2s;
}
.sn-news-item:first-child { border-top: 1px solid var(--sn-light); }
.sn-news-date { font-size: 11px; color: var(--sn-gray); letter-spacing: .1em; }
.sn-news-cat {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sn-dawn-dk); background: rgba(200,145,58,.1);
  padding: 3px 10px; border-radius: 2px; width: fit-content;
}
.sn-news-title { font-size: 13px; color: var(--sn-black); letter-spacing: .04em; padding: 0 20px; }
.sn-news-arrow { font-size: 11px; color: var(--sn-dawn); opacity: 0; transition: opacity .2s; }
.sn-news-item:hover .sn-news-arrow { opacity: 1; }
.sn-news-item a { display: contents; color: inherit; }
.sn-news-item:hover .sn-news-title { color: var(--sn-dawn-dk); }

/* ── Enji Nia Activity ── */
.sn-enia { background: var(--sn-black); color: var(--sn-white); overflow: hidden; position: relative; }
.sn-enia::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(200,145,58,.15) 0%, transparent 60%);
  pointer-events: none;
}
.sn-enia .sn-section-title-jp { color: var(--sn-white); }
.sn-enia .sn-section-title-en { color: rgba(255,255,255,.3); }
.sn-enia .sn-section-line { background: rgba(255,255,255,.1); }
.sn-enia .sn-section-num { color: var(--sn-dawn-lt); }
.sn-enia-body { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sn-enia-text { font-size: 13px; line-height: 2.2; color: rgba(255,255,255,.65); letter-spacing: .06em; }
.sn-enia-links { display: flex; flex-direction: column; gap: 16px; }
.sn-enia-link-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border: 1px solid rgba(200,145,58,.3);
  color: var(--sn-white); font-size: 12px; letter-spacing: .08em;
  transition: background .3s, border-color .3s;
}
.sn-enia-link-btn:hover { background: rgba(200,145,58,.15); border-color: var(--sn-dawn); }
.sn-enia-link-btn span { font-size: 10px; letter-spacing: .2em; color: var(--sn-dawn-lt); text-transform: uppercase; }

/* ── Contact CTA ── */
.sn-contact { background: var(--sn-grad); color: var(--sn-white); text-align: center; padding: 120px 48px; position: relative; overflow: hidden; }
.sn-contact::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200,145,58,.3) 0%, transparent 65%);
}
.sn-contact-inner { position: relative; z-index: 1; }
.sn-contact-label { font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--sn-dawn-lt); margin-bottom: 24px; }
.sn-contact-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; letter-spacing: .05em; margin-bottom: 16px; }
.sn-contact-sub { font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: .1em; margin-bottom: 48px; }
.sn-contact-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--sn-dawn); color: var(--sn-black);
  font-size: 12px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase;
  padding: 18px 48px; transition: background .3s, transform .2s;
}
.sn-contact-btn:hover { background: var(--sn-dawn-lt); transform: translateY(-2px); }

/* ── Footer ── */
.sn-footer {
  background: #050505; color: rgba(255,255,255,.35);
  padding: 48px; display: flex; justify-content: space-between; align-items: center;
}
.sn-footer-logo { font-size: 14px; font-weight: 800; color: rgba(255,255,255,.6); letter-spacing: .08em; }
.sn-footer-copy { font-size: 10px; letter-spacing: .15em; }

/* ── Fade-in animation ── */
.sn-fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.sn-fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ── Scroll progress bar ── */
#sn-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--sn-dawn); z-index: 200; width: 0%; transition: width .1s linear; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sn-services-grid { grid-template-columns: repeat(2, 1fr); }
  .sn-phil-body, .sn-about-body, .sn-enia-body { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .sn-header { padding: 0 20px; }
  .sn-nav-desktop { display: none; }
  .sn-hamburger { display: flex; flex-direction: column; justify-content: center; }

  .sn-hero-content { flex-direction: column; align-items: flex-start; gap: 24px; padding: 0 24px 80px; }
  .sn-hero-tagline { text-align: left; }
  .sn-hero-scroll { left: 16px; bottom: 32px; }

  .sn-section { padding: 64px 0; }
  .sn-section-inner { padding: 0 24px; }
  .sn-section-header { flex-wrap: wrap; }
  .sn-section-line { display: none; }

  .sn-services-grid { grid-template-columns: 1fr; }

  .sn-news-item { grid-template-columns: 80px 1fr; grid-template-rows: auto auto; gap: 4px; }
  .sn-news-cat { grid-row: 1; grid-column: 2; }
  .sn-news-title { grid-row: 2; grid-column: 1 / 3; padding: 0; }
  .sn-news-arrow { display: none; }

  .sn-contact { padding: 80px 24px; }
  .sn-footer { flex-direction: column; gap: 12px; text-align: center; padding: 32px 24px; }
}
