/*
Theme Name: NodeUP Theme
Theme URI: https://nodeup.info
Author: NodeUP Inc.
Description: NodeUP Inc. full original corporate theme
Version: 1.0.2
License: Proprietary
Text Domain: nodeup-theme
*/

/* ==== RESET & BASE ==== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;line-height:1.6;scroll-behavior:smooth;}
body{font-family:'Noto Sans JP','Inter',system-ui,sans-serif;color:#1e293b;background:#f8fafc;overflow-x:hidden;}
img{max-width:100%;height:auto;display:block;}
a{text-decoration:none;color:inherit;}
ul,ol{list-style:none;}
button{border:none;background:none;cursor:pointer;font:inherit;}
.nu-container{width:95%;max-width:1200px;margin:0 auto;}

/* ==== HEADER ==== */
.nu-header{position:fixed;top:0;left:0;width:100%;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);box-shadow:0 2px 10px rgba(0,0,0,.05);z-index:1000;padding:0;}
.nu-header__inner{display:flex;align-items:center;justify-content:space-between;width:95%;max-width:1200px;margin:0 auto;}
.nu-logo{display:flex;align-items:center;gap:.5rem;font-size:0.9rem;font-weight:700;color:#1a3a6b;}
.nu-logo__image{width:auto;max-width:150px;height:auto;max-height:50px;}

.nu-nav-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:4px;}
.nu-nav-toggle__line{display:block;width:25px;height:3px;background:#1a3a6b;border-radius:2px;transition:all .3s;}

/* Desktop: hamburger hidden, nav visible */
@media(min-width:769px){
  .nu-nav-toggle{display:none;}
  .nu-nav{display:flex;gap:2rem;}
  .nu-nav ul{display:flex;gap:2rem;list-style:none;padding:0;margin:0;}
  .nu-nav ul li{margin:4px 0;transition:.3s;}
}

/* Mobile */
@media(max-width:1024px){
  .nu-header{top:0;}
  .nu-nav-toggle{display:flex;}
  .nu-nav{display:none;position:absolute;top:100%;left:0;width:100%;background:rgba(255,255,255,.98);flex-direction:column;padding:1rem 0;box-shadow:0 4px 10px rgba(0,0,0,.1);}
  .nu-nav.active{display:flex;}
  .nu-nav ul{flex-direction:column;gap:0;}
  .nu-nav ul li a{display:block;padding:.8rem 5%;border-bottom:1px solid #e2e8f0;}
  .nu-nav-toggle.active .nu-nav-toggle__line:nth-child(1){transform:translateY(8px) rotate(45deg);}
  .nu-nav-toggle.active .nu-nav-toggle__line:nth-child(2){opacity:0;}
  .nu-nav-toggle.active .nu-nav-toggle__line:nth-child(3){transform:translateY(-8px) rotate(-45deg);}
}

/* ==== HERO ==== */
.nu-hero{position:relative;min-height:100vh;background:linear-gradient(135deg,#0a1628 0%,#1a3a6b 50%,#2563eb 100%);display:flex;align-items:center;padding-top:80px;}
.nu-hero__bg{position:absolute;inset:0;background:url('data:image/svg+xml,%3Csvg width=\"1440\" height=\"560\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cpath d=\"M0 112L60 134.2C120 156.3 240 200.7 360 201.8C480 203 600 161 720 145.7C840 130.3 960 141.7 1080 143.8C1200 146 1320 139 1380 135.5L1440 132V0H0Z\" fill=\"rgba(255,255,255,.05)\" /%3E%3C/svg%3E') no-repeat center/cover;opacity:.3;}
.nu-hero__content{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;width:100%;max-width:100%;margin:0 auto;padding:0 2rem;}
.nu-hero__subtitle{font-size:.9rem;text-transform:uppercase;letter-spacing:2px;color:#7dd3fc;margin-bottom:1rem;}
.nu-hero__title{font-size:3.5rem;font-weight:900;line-height:1.2;color:#fff;margin-bottom:1.5rem;}
.nu-accent{background:linear-gradient(135deg,#7dd3fc,#2563eb);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
.nu-hero__chara-img{width:100%;max-width:100%;height:auto;display:block;object-fit:cover;}
.nu-hero__scroll{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);color:#fff;text-align:center;font-size:0.8rem;letter-spacing:2px;}
.nu-scroll-line{width:2px;height:60px;background:rgba(255,255,255,0.2);margin:10px auto;position:relative;overflow:hidden;}
.nu-scroll-line::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;animation:scroll-down 2s infinite;}
@keyframes scroll-down{0%{transform:translateY(-100%)}100%{transform:translateY(100%)}}

/* ==== SECTION ==== */
.nu-section{padding:5rem 0;}
.nu-section__header{text-align:center;margin-bottom:3rem;}
.nu-section-header{font-size:2.5rem;font-weight:800;color:#1a3a6b;}

/* ==== POSTS GRID ==== */
.nu-manga-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;width:95%;max-width:1200px;margin:0 auto;}
.nu-manga-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 4px 15px rgba(0,0,0,0.05);transition:all .3s;display:block;}
.nu-manga-card:hover, .nu-manga-card:hover{transform:translateY(-5px);box-shadow:0 10px 25px rgba(0,0,0,0.1);}
.nu-manga-card img, .nu-manga-card img{object-fit:cover;}
.nu-manga-card h3, .nu-manga-card h3{padding:1rem 1.5rem .5rem;font-size:1.2rem;color:#1a3a6b;}
.nu-manga-card-date, .nu-manga-card p{padding:0 1.5rem 1.5rem;font-size:0.9rem;color:#64748b;}

/* ==== ACCORDION (Company Info) ==== */
.nu-accordion-details{width:90%;max-width:800px;margin:0 auto;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,0.05);}
.nu-accordion-toggle{padding:1.5rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#1a3a6b;list-style:none;}
.nu-accordion-toggle::-webkit-details-marker{display:none;}
.nu-accordion-body{padding:0 1.5rem 1.5rem;}
.nu-accordion-body table{width:100%;border-collapse:collapse;}
.nu-accordion-body th{width:30%;text-align:left;padding:0;color:#64748b;font-weight:500;}
.nu-accordion-body td{padding:0;color:#1a3a6b;font-weight:600;}

/* ==== FOOTER ==== */
.nu-footer{background:#0a1628;color:#fff;padding:4rem 0 2rem;}
.nu-footer__top{display:flex;justify-content:space-between;align-items:center;width:95%;max-width:1200px;margin:0 auto 3rem;}
.nu-footer__logo{display:flex;align-items:center;gap:1rem;}
.nu-footer__chara{width:50px;height:50px;border-radius:50%;background:#fff;padding:5px;}
.nu-footer__name{font-size:1.2rem;font-weight:700;}
.nu-footer__links ul{display:flex;gap:2rem;}
.nu-footer__links a{color:#cbd5e1;font-size:0.9rem;transition:.3s;}
.nu-footer__links a:hover{color:#7dd3fc;}
.nu-footer__bottom{text-align:center;padding-top:2rem;border-top:1px solid rgba(255,255,255,0.1);font-size:0.8rem;color:#64748b;}

@media(max-width:1024px){
  .nu-hero__content{grid-template-columns:1fr;text-align:center;padding-top:40px;width:100%;padding-left:0;padding-right:0;}
  .nu-hero__title{font-size:2.5rem;}
  .nu-footer__top{flex-direction:column;gap:2rem;}
  .nu-footer__links ul{flex-direction:column;align-items:center;gap:1rem;}
}

/* ==== PAGE CONTENT (single/page offset for fixed header) ==== */
.nu-page-content{
  padding-top:150px;
  padding-bottom:4rem;
  min-height:80vh;
}
@media(max-width:1024px){
  .nu-page-content{
    padding-top:130px;
  }
}

/* === HERO IMAGE FIX === */
.nu-hero__chara{width:100%;margin-top:1.5rem;text-align:center;}
.nu-hero__chara-img{width:100%!important;max-width:100%!important;height:auto!important;display:block;object-fit:cover;border-radius:0;filter:none;}
.nu-hero__chara-link{display:block;position:relative;overflow:hidden;border-radius:0;transition:transform 0.3s ease;}
.nu-hero__chara-link:hover{transform:scale(1.02);}
.nu-hero__chara-label{display:block;padding:0.6rem 1rem;background:rgba(0,0,0,0.6);color:#fff;text-align:center;font-size:0.9rem;letter-spacing:1px;}
@media(max-width:1024px){
  .nu-hero__chara{max-width:100%;padding:0;margin-top:1.5rem;}
  .nu-hero__chara-img{width:100%;height:auto;}
}

/* === HERO LANDSCAPE IMAGE FIX === */
.nu-hero__chara-link{display:block;overflow:hidden;}
.nu-hero__chara-link .nu-hero__chara-img{width:100%!important;height:auto;min-height:200px;object-fit:cover;border-radius:0;}

/* === FORCE HERO IMAGE FULL WIDTH === */
.nu-hero__chara,.nu-hero__chara-link,.nu-hero__chara-link img{width:100%!important;max-width:100%!important;box-sizing:border-box;}
.nu-hero__chara{padding:0!important;margin-left:0!important;margin-right:0!important;}
img.nu-hero__chara-img{width:100%!important;max-width:none!important;height:auto!important;display:block!important;}
/* FULL WIDTH HERO IMAGE FIX */
@media(max-width:1024px){
  .nu-hero__chara{width:100vw!important;margin-left:calc(-50vw + 50%)!important;margin-right:calc(-50vw + 50%)!important;max-width:none!important;padding:0!important;}
  .nu-hero__chara-img{width:100vw!important;max-width:none!important;border-radius:0!important;}
  .nu-hero__chara-link{border-radius:0!important;}
}
.nu-hero__content{padding-left:0!important;padding-right:0!important;gap:0!important;overflow:visible!important;}
.nu-hero{padding-left:0!important;padding-right:0!important;overflow:hidden!important;}
/* POSTS SCROLL AREA */
.nu-posts-scroll{max-height:300px;overflow-y:auto;border:1px solid #e0e0e0;border-radius:12px;padding:0.5rem;margin-top:1rem;background:#f9f9fb;}
.nu-posts-scroll .nu-card{margin-bottom:0.5rem;}
.nu-posts-scroll::-webkit-scrollbar{width:6px;}
/* POSTS GRID v2 */
.nu-posts-grid{display:flex!important;flex-direction:column!important;gap:1rem!important;width:95%!important;max-width:1200px!important;margin:0 auto!important;}
.nu-posts-grid .nu-card{display:flex!important;flex-direction:row!important;align-items:center!important;gap:1rem!important;padding:1rem!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,0.06)!important;text-decoration:none!important;transition:all .3s!important;overflow:hidden!important;}
.nu-posts-grid .nu-card:hover{box-shadow:0 4px 16px rgba(0,0,0,0.1)!important;transform:translateY(-2px)!important;}
.nu-posts-grid .nu-card img{width:80px!important;height:80px!important;min-width:80px!important;object-fit:cover!important;border-radius:8px!important;flex-shrink:0!important;display:block!important;}
.nu-posts-grid .nu-card .nu-card-text{display:flex!important;flex-direction:column!important;gap:0.25rem!important;}
.nu-posts-grid .nu-card h3{margin:0!important;padding:0!important;font-size:1rem!important;color:#1a3a6b!important;}
.nu-posts-grid .nu-card .nu-card-date{margin:0!important;padding:0!important;font-size:0.85rem!important;color:#64748b!important;}
@media(min-width:768px){
.nu-posts-grid{flex-direction:row!important;gap:1.5rem!important;}
.nu-posts-grid .nu-card{flex:1 1 0!important;flex-direction:column!important;align-items:stretch!important;padding:0!important;min-width:0!important;}
.nu-posts-grid .nu-card img{width:100%!important;height:140px!important;min-width:auto!important;border-radius:12px 12px 0 0!important;}
.nu-posts-grid .nu-card .nu-card-text{padding:1rem!important;}
.nu-posts-grid .nu-card h3{font-size:0.95rem!important;}
}
