/*
Theme Name: DemBox
Theme URI: https://example.com/
Author: Your Name
Description: DemBox theme — 4 pages matching supplied mockups. Responsive, Japanese labels, contact form with file upload.
Version: 1.1
Text Domain: dembox
*/

:root{
  --navy:#111f66; /* 深いネイビー */
  --muted:#666;
  --container:1100px;
}
*{box-sizing:border-box}
body{font-family: "Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial; color:#111; margin:0; background:#fff}
a{color:inherit}
.container{max-width:var(--container); margin:0 auto; padding:28px}
.header{display:flex; justify-content:space-between; align-items:center; padding:18px 0}
.header .logo{font-weight:800; color:var(--navy); font-size:20px}
.header .nav{display:flex; gap:28px}
.header .nav a{font-size:14px; color:#222}

/* Front hero */
.hero{min-height:420px; display:flex; align-items:center; justify-content:center; text-align:center; padding:64px 20px}
.hero h1{font-size:44px; line-height:1.15; color:var(--navy); margin:0 0 18px; font-weight:700}
.hero p.lead{max-width:720px; margin:0 auto; color:var(--muted); font-size:14px}

/* Grid of 2x2 cards for front (images provided already act as pages, but keep fallback) */
.grid{display:grid; grid-template-columns:repeat(2,1fr); gap:18px; padding:18px 0}
.card{position:relative; overflow:hidden; border-radius:8px; background:#fff; min-height:300px}
.card img{width:100%; height:100%; object-fit:cover; display:block}
.card .label{position:absolute; left:18px; bottom:18px; background:rgba(0,0,0,0.55); color:#fff; padding:8px 12px; border-radius:6px; font-weight:600}

/* Service page */
.service-hero{background:var(--navy); color:#fff; padding:40px 20px; border-radius:6px}
.service-hero h2{margin:0; font-size:18px}
.service-body{display:grid; grid-template-columns:230px 1fr; gap:18px; padding:30px 0}
.service-left{font-weight:700; color:var(--navy)}
.service-list{font-size:14px; color:#111}
.service-item{margin-bottom:28px}
.service-item h3{margin:0 0 8px; font-size:14px}
.service-item p{margin:0; color:var(--muted); font-size:13px}

/* About page */
.about-wrap{display:grid; grid-template-columns:230px 1fr; gap:18px; align-items:start; padding:36px 0}
.about-left{color:var(--navy); font-weight:700}
.about-table{font-size:14px; color:#222}
.about-table dl{display:grid; grid-template-columns:160px 1fr; row-gap:10px}
.about-table dt{color:var(--muted)}

/* Contact page */
.contact-wrap{display:grid; grid-template-columns:230px 1fr; gap:18px; padding:36px 0}
.contact-left{color:var(--navy); font-weight:700}
.form-card{background:#fff; padding:18px; border-radius:8px}
.form-row{display:flex; gap:12px; margin-bottom:12px}
.form-row .half{flex:1}
input[type=text], input[type=email], textarea{padding:10px; border:1px solid #ddd; border-radius:6px; width:100%; font-size:14px}
textarea{min-height:120px}
label.small{font-size:13px; color:var(--muted)}
button[type=submit]{padding:10px 16px; border-radius:6px; border:0; background:var(--navy); color:#fff; cursor:pointer}
.notice{padding:10px; background:#f3f4f8; border-radius:6px; margin-bottom:12px}
.small-link{text-decoration:underline; font-size:13px; color:var(--navy)}

.footer{padding:30px 0; text-align:right; font-size:13px; color:var(--muted)}

/* Responsive */
@media (max-width:900px){
  .grid{grid-template-columns:1fr}
  .hero h1{font-size:32px}
  .service-body, .about-wrap, .contact-wrap{grid-template-columns:1fr;}
  .header{padding:12px 0}
}