/*
Theme Name: NKSS Theme
Theme URI: https://www.nkss.jp
Author: 日計産商株式会社
Author URI: https://www.nkss.jp
Description: 日計産商株式会社 オリジナルWordPressテーマ。工場・建物の修繕・補修工事専門会社向けカスタムデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Private
Text Domain: nkss-theme
*/

/* ================================================
   BASE RESET & VARIABLES
================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:   #3d3d4d;
  --dark:    #464656;
  --steel:   #505060;
  --iron:    #5a5a6a;
  --border:  #444455;
  --accent:  #c9a84c;
  --accent2: #e8d5a3;
  --light:   #f0ece4;
  --muted:   #b0b0c0;
  --white:   #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--light);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ================================================
   NAV
================================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px;
  background: rgba(8,9,9,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: padding 0.3s;
}
.site-logo { display: flex; flex-direction: column; line-height: 1; }
.site-logo-jp { font-weight: 700; font-size: 17px; letter-spacing: 3px; color: var(--white); }
.site-logo-en { font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: 4px; color: var(--muted); margin-top: 2px; }

.nav-menu { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-menu a { color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s; }
.nav-menu a:hover,
.nav-menu .current-menu-item a { color: var(--white); }
.nav-menu .menu-contact a {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 9px 22px;
  transition: background 0.3s, color 0.3s;
}
.nav-menu .menu-contact a:hover { background: var(--accent); color: var(--white); }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 300;
}
.nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: rgba(8,9,9,0.98); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-drawer.open { opacity: 1; pointer-events: all; }
.nav-drawer a {
  color: var(--muted); font-size: 28px;
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 6px;
  padding: 18px 0; border-bottom: 1px solid var(--iron);
  width: 260px; text-align: center; transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--accent); }

/* ================================================
   HERO / FRONT PAGE
================================================ */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 56px 80px;
  position: relative; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(212,86,15,0.10) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 40%, var(--black) 100%);
}
.hero-bg-text {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-55%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(180px, 28vw, 380px);
  color: rgba(255,255,255,0.025);
  line-height: 1; user-select: none; z-index: 0; letter-spacing: -4px;
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.2s;
}
.hero-tag::before { content: ''; width: 36px; height: 1px; background: var(--accent); }
.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10.5vw, 148px);
  line-height: 0.88; letter-spacing: 1px; color: var(--white);
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero-h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: 30px; font-size: 15px; line-height: 2;
  color: var(--muted); max-width: 500px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-btns {
  display: flex; align-items: center; gap: 28px; margin-top: 44px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.8s;
}
.hero-stats {
  position: absolute; right: 56px; bottom: 80px; z-index: 2;
  display: flex; gap: 40px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 1s;
}
.stat { text-align: right; }
.stat-n { font-family: 'Bebas Neue', sans-serif; font-size: 44px; color: var(--white); line-height: 1; }
.stat-n sup { font-size: 24px; color: var(--accent); }
.stat-l { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   TICKER
================================================ */
.ticker { background: var(--accent); padding: 13px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: tick 26s linear infinite; }
.tick-item { font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 4px; color: var(--white); padding: 0 36px; }
.tick-item::after { content: ' ◆ '; opacity: 0.5; font-size: 10px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================
   SECTION COMMONS
================================================ */
.s-tag {
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.s-tag::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.s-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(44px, 5.5vw, 72px); line-height: 0.95; color: var(--white); }
.s-body { font-size: 14px; line-height: 2; color: var(--muted); }

.btn-fill {
  background: var(--accent); color: var(--white); border: none;
  padding: 16px 38px; font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  display: inline-block; position: relative; overflow: hidden; transition: transform 0.3s;
}
.btn-fill::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%); transition: transform 0.35s;
}
.btn-fill:hover::after { transform: translateX(0); }
.btn-ghost {
  color: var(--muted); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s;
}
.btn-ghost .arrow { transition: transform 0.3s; }
.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover .arrow { transform: translateX(6px); }

/* ================================================
   ABOUT
================================================ */
.about-section {
  padding: 120px 56px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: center;
}
.about-visual { position: relative; }
.about-box { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.about-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  width: 160px; height: 160px; background: var(--accent);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 2;
}
.about-badge strong { font-family: 'Bebas Neue', sans-serif; font-size: 60px; color: var(--white); line-height: 1; }
.about-badge span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); line-height: 1.5; text-align: center; }
.about-corner { position: absolute; top: -18px; left: -18px; width: 80px; height: 80px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); }
.about-text .s-title { margin-bottom: 28px; }
.about-text .s-body { margin-bottom: 16px; }
.feature-row { display: flex; gap: 2px; margin-top: 36px; }
.feature-chip { flex: 1; background: var(--steel); padding: 20px 14px; text-align: center; border-bottom: 2px solid transparent; transition: border-color 0.3s; }
.feature-chip:hover { border-color: var(--accent); }
.feature-chip .ico { font-size: 22px; margin-bottom: 8px; }
.feature-chip .lbl { font-size: 10px; letter-spacing: 1px; color: var(--muted); }

/* ================================================
   WORKS
================================================ */
.works-section { padding: 100px 56px; background: var(--dark); }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { background: var(--steel); overflow: hidden; }
.work-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.85); }
.work-card:hover .work-img img { transform: scale(1.06); }
.work-body { padding: 24px 24px 28px; }
.work-cat { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.work-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; color: var(--white); margin-bottom: 8px; }
.work-desc { font-size: 12px; line-height: 1.8; color: var(--muted); }

/* ================================================
   SERVICES
================================================ */
.services-section { padding: 100px 56px; }
.services-head { margin-bottom: 56px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.svc-card { background: var(--steel); padding: 44px 36px; position: relative; overflow: hidden; transition: transform 0.35s; }
.svc-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.svc-card:hover { transform: translateY(-4px); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-n { font-family: 'Bebas Neue', sans-serif; font-size: 72px; color: rgba(255,255,255,0.04); line-height: 1; position: absolute; top: 16px; right: 16px; }
.svc-ico { font-size: 32px; margin-bottom: 24px; }
.svc-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; color: var(--white); margin-bottom: 14px; }
.svc-desc { font-size: 13px; line-height: 1.9; color: var(--muted); }

/* ================================================
   STRENGTH
================================================ */
.strength-section { background: var(--dark); padding: 100px 56px; }
.strength-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.strength-points { display: flex; flex-direction: column; gap: 2px; margin-top: 48px; }
.sp { background: var(--steel); padding: 28px 32px; display: flex; gap: 24px; align-items: flex-start; border-left: 3px solid transparent; transition: border-color 0.3s; }
.sp:hover { border-color: var(--accent); }
.sp-num { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--accent); line-height: 1; flex-shrink: 0; }
.sp-title { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
.sp-desc { font-size: 12px; line-height: 1.8; color: var(--muted); }
.strength-bigtext { font-family: 'Bebas Neue', sans-serif; font-size: clamp(80px, 10vw, 130px); line-height: 0.9; color: rgba(255,255,255,0.05); letter-spacing: -2px; margin-bottom: 32px; }

/* ================================================
   HISTORY
================================================ */
.history-section { padding: 100px 56px; }
.history-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.timeline { margin-top: 48px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-item { display: flex; gap: 32px; padding: 0 0 40px 32px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: -4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--black); }
.tl-year { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--accent); letter-spacing: 2px; flex-shrink: 0; width: 80px; }
.tl-text { font-size: 13px; line-height: 1.8; color: var(--muted); padding-top: 2px; }
.recruit-box { background: var(--steel); padding: 48px; border-left: 3px solid var(--accent); }
.recruit-box .s-title { margin-bottom: 20px; font-size: 48px; }
.recruit-box .s-body { margin-bottom: 28px; }
.recruit-links { display: flex; flex-direction: column; gap: 12px; }
.recruit-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--iron); color: var(--muted); font-size: 13px; transition: background 0.3s, color 0.3s; }
.recruit-link:hover { background: var(--accent); color: var(--white); }

/* ================================================
   NEWS (おしらせ)
================================================ */
.news-section { padding: 100px 56px; background: var(--dark); }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--steel); overflow: hidden; transition: transform 0.3s; }
.news-card:hover { transform: translateY(-4px); }
.news-card-inner { padding: 32px; }
.news-date { font-size: 10px; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; font-family: 'Bebas Neue', sans-serif; }
.news-card-title { font-size: 15px; font-weight: 500; color: var(--white); line-height: 1.6; margin-bottom: 12px; }
.news-card-title a { color: var(--white); transition: color 0.3s; }
.news-card-title a:hover { color: var(--accent); }
.news-excerpt { font-size: 12px; line-height: 1.8; color: var(--muted); }
.news-card-foot { padding: 16px 32px; border-top: 1px solid var(--iron); }
.news-card-foot a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 6px; transition: gap 0.3s; }
.news-card-foot a:hover { gap: 12px; }

/* Single post */
.single-post-wrap { max-width: 800px; margin: 120px auto 80px; padding: 0 32px; }
.single-post-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 5vw, 60px); color: var(--white); margin-bottom: 16px; letter-spacing: 2px; }
.single-post-meta { font-size: 11px; letter-spacing: 2px; color: var(--accent); margin-bottom: 40px; }
.single-post-content { font-size: 15px; line-height: 2; color: var(--light); }
.single-post-content p { margin-bottom: 1.6em; }
.single-post-content h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--white); margin: 2em 0 0.6em; letter-spacing: 2px; }
.single-post-content img { margin: 2em 0; }
.single-post-content a { color: var(--accent); }

/* ================================================
   TEAM
================================================ */
.team-section { padding: 100px 56px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.team-card { background: var(--steel); overflow: hidden; }
.team-photo { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--iron); display: flex; align-items: center; justify-content: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); }
.team-info { padding: 28px 28px 32px; }
.team-name { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 3px; color: var(--white); margin-bottom: 6px; }
.team-role { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

/* ================================================
   CONTACT
================================================ */
.contact-section { padding: 100px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info .s-title { margin-bottom: 24px; }
.c-items { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.c-item { border-left: 2px solid var(--border); padding-left: 20px; }
.c-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.c-val { font-size: 15px; color: var(--white); }
.c-val a { color: var(--white); transition: color 0.3s; }
.c-val a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 2px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cf-field input,
.cf-field textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%; background: var(--steel); border: none;
  border-bottom: 2px solid transparent;
  color: var(--white); font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; padding: 20px 18px; outline: none; resize: none;
  transition: border-color 0.3s, background 0.3s;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--muted); }
.cf-field input:focus,
.cf-field textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--accent); background: var(--iron); }
.cf-field textarea { min-height: 130px; }
.cf-submit,
.wpcf7-form input[type="submit"] {
  background: var(--accent); color: var(--white); border: none;
  padding: 20px; font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: background 0.3s; width: 100%;
}
.cf-submit:hover,
.wpcf7-form input[type="submit"]:hover { background: #b84510; }

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: var(--black); border-top: 1px solid var(--iron);
  padding: 44px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.f-logo-jp { font-weight: 700; font-size: 15px; letter-spacing: 3px; color: var(--white); }
.f-logo-en { font-family: 'Bebas Neue', sans-serif; font-size: 10px; letter-spacing: 4px; color: var(--muted); }
.f-links { display: flex; gap: 28px; }
.f-links a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.f-links a:hover { color: var(--white); }
.f-copy { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

/* ================================================
   REVEAL ANIMATION
================================================ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 900px) {
  .site-header { padding: 18px 24px; }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }

  .hero-section { padding: 100px 24px 100px; min-height: 100svh; }
  .hero-h1 { font-size: clamp(56px, 14vw, 100px); }
  .hero-sub { font-size: 13px; max-width: 100%; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-stats { position: static; flex-direction: row; margin-top: 40px; gap: 24px; animation: fadeUp 0.8s ease forwards 1s; }
  .stat { text-align: left; }
  .stat-n { font-size: 32px; }

  .about-section { grid-template-columns: 1fr; gap: 60px; padding: 80px 24px; }
  .about-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .about-badge { width: 120px; height: 120px; bottom: -16px; right: -16px; }
  .about-badge strong { font-size: 44px; }

  .works-section { padding: 80px 24px; }
  .works-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .works-grid { grid-template-columns: 1fr; gap: 16px; }

  .services-section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }

  .strength-section { padding: 80px 24px; }
  .strength-inner { grid-template-columns: 1fr; gap: 48px; }

  .history-section { padding: 80px 24px; }
  .history-inner { grid-template-columns: 1fr; gap: 60px; }

  .team-section { padding: 80px 24px; }
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-photo { aspect-ratio: 3/2; }

  .contact-section { padding: 80px 24px; grid-template-columns: 1fr; gap: 56px; }
  .cf-row { grid-template-columns: 1fr; }

  .news-section { padding: 80px 24px; }
  .news-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }

  .site-footer { flex-direction: column; gap: 24px; text-align: center; padding: 40px 24px; }
  .f-links { flex-wrap: wrap; justify-content: center; gap: 20px; }

  .s-title { font-size: clamp(40px, 10vw, 64px); }
}

@media (max-width: 480px) {
  .site-header { padding: 16px 20px; }
  .site-logo-jp { font-size: 14px; letter-spacing: 2px; }
  .hero-section { padding: 90px 20px 80px; }
  .hero-btns { width: 100%; }
  .btn-fill { width: 100%; text-align: center; padding: 18px 24px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .about-section, .works-section, .services-section,
  .strength-section, .history-section, .team-section,
  .contact-section, .news-section { padding: 64px 20px; }
  .recruit-box { padding: 32px 24px; }
  .svc-card { padding: 32px 24px; }
}

/* ================================================
   INSTAGRAM FEED (おしらせページ)
================================================ */
.ig-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.ig-feed-item { display: block; position: relative; aspect-ratio: 1; overflow: hidden; }
.ig-feed-img  { width: 100%; height: 100%; position: relative; overflow: hidden; }
.ig-feed-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.ig-feed-item:hover .ig-feed-img img { transform: scale(1.06); }
.ig-feed-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: flex-end;
  padding: 16px;
  transition: background 0.3s;
}
.ig-feed-item:hover .ig-feed-overlay { background: rgba(0,0,0,0.55); }
.ig-feed-caption {
  color: #fff; font-size: 12px; line-height: 1.5;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.ig-feed-item:hover .ig-feed-caption { opacity: 1; transform: translateY(0); }
.ig-video-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 12px; padding: 3px 8px; border-radius: 3px;
}

/* おしらせカード：Instagram画像サムネイル */
.news-ig-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.news-ig-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.news-card:hover .news-ig-thumb img { transform: scale(1.05); }
.news-ig-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(212,86,15,0.9); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 2px;
  letter-spacing: 1px;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .ig-feed-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
}
@media (max-width: 480px) {
  .ig-feed-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
}

/* Smash Balloon Instagram Feed カスタマイズ */
#sb_instagram { background: transparent !important; }
#sb_instagram .sbi_follow_btn a { background: var(--accent) !important; }
#sb_instagram a { color: var(--light) !important; }
#sb_instagram .sbi_header_text h3 { color: var(--white) !important; }
#sb_instagram .sbi_header_text p { color: var(--muted) !important; }
#sb_instagram .sbi_bio { color: var(--muted) !important; }
