/* ===== Wonbrand Site CSS (Nissin-style) ===== */

/* Reset */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Source Sans Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#333;background:#fff;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
body.is-preload *{transition:none!important;animation:none!important}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
ul{list-style:none}
button{font-family:inherit;cursor:pointer}

/* i18n wait */
html.i18n-wait [data-i18n]{visibility:hidden}

/* Skip link */
.skip-link{position:absolute;left:-9999px;top:0;z-index:10000;background:#2563eb;color:#fff;padding:8px 16px;font-size:13px}
.skip-link:focus{left:0}

/* Container */
.container{max-width:1360px;margin:0 auto;padding:0 40px}

/* ===== HEADER ===== */
.site-header{position:fixed;top:0;left:0;right:0;height:64px;background:#fff;border-bottom:1px solid #eaeaea;z-index:1000}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:100%}
.site-header .logo{flex-shrink:0}
.site-header .logo img{height:36px}

/* Nav in header */
.site-header #nav{display:flex;align-items:center}
.site-header #nav>ul{display:flex;align-items:center;gap:0;margin:0;padding:0}
.site-header #nav>ul>li{position:relative}
.site-header #nav>ul>li>a,.site-header #nav>ul>li>span{display:block;padding:0 16px;font-size:13px;font-weight:600;color:#333;line-height:64px;transition:opacity .2s;white-space:nowrap}
.site-header #nav>ul>li>a:hover{opacity:.6}
.site-header #nav>ul>li>ul{display:none}

/* Dropotron */
.dropotron{background:#fff;border:1px solid #eaeaea;border-radius:8px;padding:8px 0;min-width:150px;box-shadow:0 4px 12px rgba(0,0,0,.08);list-style:none;z-index:10001}
.dropotron li{border:0}
.dropotron li a,.dropotron li span{display:block;padding:8px 16px;font-size:13px;color:#333;transition:background .15s}
.dropotron li a:hover{background:#f5f5f5}
.dropotron.level-0{margin-top:8px;font-size:.9em}

/* Hide Helios mobile panel */
#navButton,#navPanel{display:none!important}

/* ===== BREADCRUMB ===== */
.breadcrumb{padding:72px 0 8px;font-size:12px;color:#999}
.breadcrumb a{color:#999}
.breadcrumb a:hover{color:#2563eb}

/* ===== DIVIDER ===== */
.divider{border:none;border-top:1px solid #eaeaea;margin:0}

/* ===== SECTION ===== */
.section{padding:48px 0}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.section-header h2{font-size:18px;font-weight:700;color:#000}
.section-header .more{font-size:12px;color:#999;transition:opacity .2s}
.section-header .more:hover{opacity:.6}

/* ===== HERO BANNER ===== */
.hero-banner{background:#f5f5f5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 40px}
.hero-banner h1{font-size:28px;font-weight:700;color:#000}
.hero-banner .sub{font-size:13px;color:#666;margin-top:8px;max-width:480px}

/* ===== PRODUCT CARD ===== */
.card{display:block;transition:opacity .3s}
.card:hover{opacity:.7}
.card .card-img{aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:#f5f5f5}
.card .card-img img{width:100%;height:100%;object-fit:cover}
.card .card-title{font-size:14px;font-weight:700;color:#000;margin-top:10px}
.card .card-desc{font-size:12px;color:#666;margin-top:4px;line-height:1.6}

/* ===== TAB NAV ===== */
.tab-nav{display:flex;border-bottom:2px solid #eaeaea;margin-bottom:0}
.tab-nav button{background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;padding:12px 24px;font-size:13px;font-weight:600;color:#999;transition:color .2s}
.tab-nav button:hover{color:#555}
.tab-nav button.active{color:#000;border-bottom-color:#2563eb}

/* ===== PRODUCT DETAIL 2-COL ===== */
.product-hero{display:flex;gap:40px;padding:32px 0;align-items:flex-start}
.product-hero .ph-img{flex:0 0 55%;max-width:55%}
.product-hero .ph-img img{width:100%;border-radius:16px;background:#f5f5f5}
.product-hero .ph-info{flex:1}
.product-hero .ph-info h1{font-size:22px;font-weight:700;color:#000}
.product-hero .ph-info .sub{font-size:13px;color:#666;margin-top:6px;line-height:1.7}
.product-hero .ph-info .badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.product-hero .ph-info .badge{background:#e6e6e6;color:#4d4d4d;padding:3px 10px;border-radius:4px;font-size:11px;font-weight:600}
.product-hero .ph-info .desc{font-size:13px;color:#333;line-height:1.8;margin-top:16px}
.product-hero .ph-info .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;align-items:center}

/* Pill buttons */
.btn-pill{display:inline-block;padding:10px 28px;border-radius:24px;font-size:13px;font-weight:600;transition:opacity .3s;text-align:center}
.btn-pill:hover{opacity:.7}
.btn-pill--fill{background:#2563eb;color:#fff;border:1px solid #2563eb}
.btn-pill--outline{background:transparent;color:#2563eb;border:1px solid #2563eb}
.btn-pill--pink{background:#e91e8c;color:#fff;border:1px solid #e91e8c}
.btn-pill--pink-outline{background:transparent;color:#e91e8c;border:1px solid #e91e8c}
.btn-text{font-size:13px;color:#999;transition:opacity .2s}
.btn-text:hover{opacity:.6}

/* ===== FEATURES GRID ===== */
.feat-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px 36px;padding:32px 0}
.feat-grid h4{font-size:14px;font-weight:700;color:#000;margin-bottom:4px}
.feat-grid p{font-size:12px;color:#666;line-height:1.7}

/* ===== SPECS TABLE ===== */
.spec-table{padding:32px 0}
.spec-row{display:flex;padding:12px 0;border-bottom:1px solid #eaeaea}
.spec-row:first-child{border-top:1px solid #eaeaea}
.spec-row dt{min-width:120px;font-size:12px;color:#999;font-weight:600;flex-shrink:0}
.spec-row dd{font-size:13px;color:#000;margin:0}
.spec-note{font-size:11px;color:#999;text-align:center;margin-top:20px}

/* ===== HORIZONTAL SCROLL ===== */
.h-scroll{display:flex;overflow-x:auto;gap:16px;padding-bottom:12px;-webkit-overflow-scrolling:touch}
.h-scroll::-webkit-scrollbar{height:3px}
.h-scroll::-webkit-scrollbar-thumb{background:#ddd;border-radius:2px}
.h-scroll .card{min-width:240px;flex-shrink:0}

/* ===== COMPANY CARDS ===== */
.company-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.company-card{position:relative;border-radius:16px;overflow:hidden;height:200px;display:block;transition:opacity .3s}
.company-card:hover{opacity:.7}
.company-card img{width:100%;height:100%;object-fit:cover}
.company-card .overlay{position:absolute;bottom:0;left:0;right:0;padding:16px;background:linear-gradient(transparent,rgba(0,0,0,.55))}
.company-card .overlay span{color:#fff;font-size:15px;font-weight:700}
.company-card--info{background:#fff;border:1px solid #eaeaea;padding:24px;display:flex;flex-direction:column;justify-content:center}
.company-card--info p{font-size:13px;color:#333;line-height:2}
.company-card--solid{background:#2563eb;display:flex;align-items:center;justify-content:center}
.company-card--solid span{color:#fff;font-size:16px;font-weight:700}

/* ===== TIMELINE ===== */
.tl-item{display:flex;gap:16px;padding:14px 0;border-bottom:1px solid #eaeaea;align-items:baseline}
.tl-item:first-child{border-top:1px solid #eaeaea}
.tl-date{min-width:90px;font-size:13px;font-weight:700;color:#2563eb;white-space:nowrap}
.tl-desc{font-size:13px;color:#333;line-height:1.7}

/* ===== VISION ===== */
.vision-section{background:#fafafa;padding:56px 0;text-align:center}
.vision-section .inner{max-width:560px;margin:0 auto}
.vision-section .quote{font-size:18px;font-weight:600;font-style:italic;color:#000;line-height:1.5}
.vision-section p{font-size:14px;color:#333;line-height:1.8;margin-top:12px}

/* ===== ABOUT PAGE ===== */
.about-h2{font-size:18px;font-weight:700;color:#000;margin-bottom:24px}
.about-intro{display:flex;gap:40px;align-items:flex-start}
.about-intro .about-img{flex:0 0 240px}
.about-intro .about-img img{width:100%;border-radius:16px}
.about-intro .about-text{flex:1;font-size:13px;color:#333;line-height:2.2}
.about-vision{display:flex;gap:40px;align-items:flex-start}
.about-vision .about-img{flex:0 0 240px;border-radius:16px;overflow:hidden}
.about-vision .about-img img{width:100%;border-radius:16px}
.about-vision .about-text{flex:1;max-width:560px}
.about-vision .about-text .quote{font-size:18px;font-weight:600;font-style:italic;color:#000;line-height:1.5}
.about-vision .about-text p{font-size:14px;color:#333;line-height:1.8;margin-top:12px}
.about-vision .about-text p+p{margin-top:4px}

/* ===== FORM ===== */
.form-wrap{max-width:560px;margin:0 auto;padding:40px 0}
.field{margin-bottom:18px}
.field label{display:block;font-size:12px;font-weight:700;color:#000;margin-bottom:5px}
.field .req{color:#2563eb}
.field input,.field select,.field textarea{width:100%;border:1px solid #eaeaea;border-radius:8px;padding:10px 14px;font-size:13px;font-family:inherit;color:#333;background:#fff}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#2563eb;outline:none}
.field textarea{min-height:140px;resize:vertical}
.field select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L0 2h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:32px}
.btn-submit{display:block;width:100%;background:#2563eb;color:#fff;border:none;border-radius:8px;padding:12px;font-size:13px;font-weight:700;transition:opacity .3s}
.btn-submit:hover{opacity:.7}
.btn-reset{display:block;width:100%;text-align:center;margin-top:10px;font-size:12px;color:#999;background:none;border:none;text-decoration:underline}
.status{margin-top:10px;font-size:12px;color:#666;text-align:center;min-height:1.2em}

/* ===== FOOTER ===== */
.site-footer{border-top:1px solid #eaeaea;padding:24px 0;text-align:center;font-size:11px;color:#999}
.footer-biz{margin-bottom:8px;line-height:1.8}
.footer-links{display:inline-flex;gap:12px;margin-top:4px}
.footer-links a{color:#999;transition:color .2s}
.footer-links a:hover{color:#2563eb}

/* ===== PLANNING BADGE ===== */
.badge--planning{background:#d4edda;color:#155724;border:1px solid #28a745;font-size:11px;font-weight:700;padding:3px 10px;border-radius:4px;margin-left:8px;display:inline-block;vertical-align:middle;letter-spacing:.02em}

/* ===== PINK ACCENT (app22 only) ===== */
.accent-pink .tab-nav button.active{border-bottom-color:#e91e8c}
.accent-pink .badge{background:#fce7f3!important;color:#e91e8c!important}
.accent-pink .breadcrumb a:hover{color:#e91e8c}
.accent-pink .site-header #nav>ul>li>a:hover{color:#e91e8c}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .container{padding:0 16px}
  .site-header .container{padding:0 12px}
  .site-header .logo{display:none}
  .site-header #nav{width:100%}
  .site-header #nav>ul{justify-content:space-evenly;width:100%}
  .site-header #nav>ul>li>a,.site-header #nav>ul>li>span{padding:0 8px;font-size:12px}
  .tab-nav{overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap}
  .tab-nav button{white-space:nowrap;flex-shrink:0}
  .hero-banner{padding:32px 16px}
  .hero-banner h1{font-size:22px}
  .card .card-img{border-radius:8px}
  .product-hero{flex-direction:column;gap:20px;padding:32px 0}
  .product-hero .ph-img{flex:none;max-width:100%}
  .product-hero .ph-img img{border-radius:8px}
  .feat-grid{grid-template-columns:1fr;gap:20px;padding:32px 0}
  .spec-row{flex-direction:column;gap:2px}
  .spec-row dt{min-width:auto}
  .spec-table{padding:32px 0}
  .company-grid{grid-template-columns:1fr}
  .company-card{height:160px}
  .tab-nav button{padding:10px 14px;font-size:12px}
  .breadcrumb{padding-top:64px}
  .h-scroll .card{min-width:200px}
  .about-intro{flex-direction:column;gap:20px}
  .about-intro .about-img{flex:none;max-width:100%}
  .about-vision{flex-direction:column;gap:20px}
  .about-vision .about-img{flex:none;max-width:100%}
  .about-h2{margin-top:24px}
  .section-header h2{margin-top:24px}
}
