/* pro_color_apple.css
   profile/index.html — COLOR ONLY override to match /index.html Apple-like palette
   Content/layout unchanged.
*/

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

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

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

  /* Apple blue */
  --acc1:#0071e3;
  --acc2:#2997ff;

  /* light glass nav */
  --navAlpha: .72;
  --navAlphaSolid: .92;
  --navBg: rgba(255,255,255,var(--navAlpha));
  --navBgSolid: rgba(255,255,255,var(--navAlphaSolid));
}

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

/* Links: keep readable on light bg */
html[data-theme="apple"] a,
html[data-theme="apple"] a:visited{
  color: var(--acc1);
}
html[data-theme="apple"] a:hover{ color:#005bbf; }

/* Global nav: white glass */
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"] .brand{ color: var(--txt) !important; }
html[data-theme="apple"] .nav-links > a,
html[data-theme="apple"] .nav-links > .dd > a{
  color: var(--txt) !important;
}
html[data-theme="apple"] .nav-links > a:hover,
html[data-theme="apple"] .nav-links > .dd:hover > a{
  border-color: rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
}

/* 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 */
html[data-theme="apple"] .nav-cta{
  background: linear-gradient(135deg, var(--acc1), var(--acc2));
  color: #fff !important;
  box-shadow: var(--shadow);
}

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

/* Drawer: light */
@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 a{
    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 existing image from pro_style.css; only soften overlays to light */
html[data-theme="apple"] .hero{
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
}

/* If pro_style uses dark overlays via ::before/::after, make them light */
html[data-theme="apple"] .hero::before{
  opacity: .12 !important;
  mix-blend-mode: normal !important;
}
html[data-theme="apple"] .hero::after{
  background: radial-gradient(120% 80% at 50% -10%,
    rgba(255,255,255,0) 0%,
    rgba(245,245,247,.45) 60%,
    rgba(245,245,247,.70) 100%) !important;
}

/* Hero text */
html[data-theme="apple"] .hero .title{ color: var(--txt) !important; }
html[data-theme="apple"] .hero .lead{ color: var(--muted) !important; }

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

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

/* Profile hero text color tweak */
html[data-theme="apple"] .hero .title{
  color: #000000 !important; /* 会社概要：ブラック */
}
html[data-theme="apple"] .hero .lead{
  color: #4a4a4a !important; /* Corporate Profile：濃いグレー */
}



/* Hero text looks faded -> force full opacity (profile) */
html[data-theme="apple"] .hero .hero-inner{
  opacity: 1 !important;
}

html[data-theme="apple"] .hero .title,
html[data-theme="apple"] .hero .lead{
  opacity: 1 !important;
  text-shadow: none; /* 必要ならコメントアウト可 */
}

/* 色指定（前回指示分：ブラック＆濃いグレー） */
html[data-theme="apple"] .hero .title{
  color: #000000 !important;
}
html[data-theme="apple"] .hero .lead{
  color: #4a4a4a !important;
}

html[data-theme="apple"] .hero{
  opacity: 1 !important;
}

/* === prof.png (hero background) visibility tweak ===
   prof.png is defined in pro_style.css as a CSS background image.
   This block overrides ONLY the overlay transparency for the hero background,
   so the image looks less "washed out".
*/

/* Make the dark overlay more transparent so the image shows clearer */
html[data-theme="apple"] .hero{
  background:
    linear-gradient(180deg, rgba(15,27,54,.42), rgba(15,27,54,.10)),
    url('https://www.nikko-kikai.co.jp/img/prof.png') center/cover no-repeat !important;
}

/* Reduce additional overlays that can haze the image */
html[data-theme="apple"] .hero::before{
  opacity: .08 !important;
}
html[data-theme="apple"] .hero::after{
  background: radial-gradient(120% 80% at 50% -10%,
    rgba(255,255,255,0) 0%,
    rgba(245,245,247,.30) 60%,
    rgba(245,245,247,.46) 100%) !important;
}

/* Ensure hero text is not faded */
html[data-theme="apple"] .hero .hero-inner,
html[data-theme="apple"] .hero .title,
html[data-theme="apple"] .hero .lead{
  opacity: 1 !important;
}

/* Hero text on prof.png -> white */
html[data-theme="apple"] .hero .title{
  color: #ffffff !important;
  opacity: 1 !important;
}
html[data-theme="apple"] .hero .lead{
  color: rgba(255,255,255,.84) !important; /* 白のまま少し落ち着かせる */
  opacity: 1 !important;
}

/* 可読性UP（不要なら削除OK） */
html[data-theme="apple"] .hero .title,
html[data-theme="apple"] .hero .lead{
  text-shadow: 0 6px 20px rgba(0,0,0,.45);
}


/* Apple-like accents for buttons / chips */
html[data-theme="apple"], html[data-theme="corporate"]{
  --btnBg: rgba(0,113,227,.12);
  --btnBorder: rgba(0,113,227,.28);
}
html[data-theme="apple"] .btn-primary,
html[data-theme="corporate"] .btn-primary{
  background: linear-gradient(180deg, var(--acc2), var(--acc1));
  border-color: rgba(0,0,0,.08);
  color:#fff;
}
html[data-theme="apple"] .btn-primary:hover,
html[data-theme="corporate"] .btn-primary:hover{
  filter: brightness(1.02);
}
