/* mach_color_apple.css
   machintools/index.html — Apple-like light palette override (content/layout unchanged)
   Notes:
   - Header links: black
   - Only "お問い合わせ" text is white
   - Phone text is black
*/

html[data-theme="apple"]{
  --txt:#1d1d1f;
  --muted:#6e6e73;

  --bg1:#ffffff;
  --bg2:#f5f5f7;

  --shadow: 0 12px 30px rgba(0,0,0,.12);

  --acc1:#0071e3;
  --acc2:#2997ff;

  --navAlpha: .72;
  --navAlphaSolid: .92;
  --navBg: rgba(255,255,255,var(--navAlpha));
  --navBgSolid: rgba(255,255,255,var(--navAlphaSolid));
}

/* Base */
html[data-theme="apple"] body{
  color: var(--txt);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* Default content links: Apple blue (header is overridden below) */
html[data-theme="apple"] main a,
html[data-theme="apple"] .section a,
html[data-theme="apple"] footer a{
  color: var(--acc1);
  text-decoration: none;
}
html[data-theme="apple"] main a:hover,
html[data-theme="apple"] .section a:hover,
html[data-theme="apple"] footer a:hover{
  color: #005bbf;
}

/* ===== Header: white glass + black links ===== */
html[data-theme="apple"] .g-nav{
  background: var(--navBg);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
html[data-theme="apple"] .g-nav.shrink{ background: var(--navBgSolid); }

html[data-theme="apple"] nav.g-nav a,
html[data-theme="apple"] nav.g-nav a:visited{
  color: var(--txt) !important;
}

/* Dropdown */
html[data-theme="apple"] .dd-menu{
  background: var(--navBgSolid);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
}
html[data-theme="apple"] .dd-menu a{ color: var(--txt) !important; }
html[data-theme="apple"] .dd-menu a:hover{ background: rgba(0,0,0,.04); }

/* Language switch */
html[data-theme="apple"] .lang-switch a{
  color: var(--txt) !important;
  border-color: rgba(0,0,0,.12);
  background: rgba(255,255,255,.60);
}
html[data-theme="apple"] .lang-switch a:hover{ background: rgba(255,255,255,.92); }

/* CTA buttons
   - "お問い合わせ" only: white text
   - phone text: black
*/
html[data-theme="apple"] a.nav-cta{
  background: linear-gradient(135deg, var(--acc1), var(--acc2));
  box-shadow: var(--shadow);
}
html[data-theme="apple"] a.nav-cta,
html[data-theme="apple"] a.nav-cta:visited{
  color: var(--txt) !important; /* default: black */
}
html[data-theme="apple"] a.nav-cta:not(.tel-cta),
html[data-theme="apple"] a.nav-cta:not(.tel-cta):visited{
  color: #ffffff !important; /* only contact: white */
}

/* Mobile menu button */
html[data-theme="apple"] .sp-toggle button{
  border-color: rgba(0,0,0,.14);
  color: var(--txt) !important;
  background: rgba(255,255,255,.70);
}

/* Drawer */
@media (max-width: 960px){
  html[data-theme="apple"] .drawer{ background: rgba(0,0,0,.35); }
  html[data-theme="apple"] .drawer-panel{
    background: rgba(255,255,255,.96);
    border-left: 1px solid rgba(0,0,0,.10);
    box-shadow: -20px 0 40px rgba(0,0,0,.18);
  }
  html[data-theme="apple"] .drawer-panel a,
  html[data-theme="apple"] .drawer-panel a:visited{
    color: var(--txt) !important;
    border-bottom-color: rgba(0,0,0,.08);
  }
  html[data-theme="apple"] .drawer .group-title{ color: var(--muted); }
  html[data-theme="apple"] .drawer .close{
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86));
  }
  html[data-theme="apple"] .drawer .close button{
    border-color: rgba(0,0,0,.14);
    background: rgba(255,255,255,.90);
    color: var(--txt);
  }
  html[data-theme="apple"] .acc-link,
  html[data-theme="apple"] .acc-btn{
    border-color: rgba(0,0,0,.12);
    background: rgba(0,0,0,.02);
    color: var(--txt);
  }
}

/* ===== Hero: keep image, lighten overlays ===== */
html[data-theme="apple"] .hero{
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(245,245,247,.38)),
    url('../img/mecha_a.png') center/cover no-repeat !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
}
html[data-theme="apple"] .hero::before,
html[data-theme="apple"] .hero::after{
  content: none !important;
}
html[data-theme="apple"] .neon-lines{ display:none !important; }
html[data-theme="apple"] .hero .title{ color:#000 !important; }
html[data-theme="apple"] .hero .lead{ color: rgba(29,29,31,.72) !important; }

/* ===== Cards ===== */
html[data-theme="apple"] .card{
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  box-shadow: var(--shadow) !important;
}
html[data-theme="apple"] .card-title,
html[data-theme="apple"] .card-title a{
  color: var(--txt) !important;
}
html[data-theme="apple"] .card-more a,
html[data-theme="apple"] .card-more a:visited{
  color: var(--muted) !important;
}
html[data-theme="apple"] .card-more a:hover{ color: #4a4a4a !important; }

/* Footer */
html[data-theme="apple"] footer{
  color: rgba(29,29,31,.64) !important;
}
html[data-theme="apple"] footer .copyright{
  color: rgba(29,29,31,.52) !important;
}
