/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2d3436;
  background: #fafafa;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: #0984e3; text-decoration: none; transition: color .2s; }
a:hover { color: #0652DD; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.3; color: #2d3436; }
h1 { font-size: 2.5rem; margin-bottom: .5rem; }
h2 { font-size: 2rem; margin-bottom: .75rem; }
h3 { font-size: 1.4rem; margin-bottom: .5rem; }
p { margin-bottom: 1.2rem; }

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.content-wrap { max-width: 800px; margin: 0 auto; }

/* ========== HEADER / NAV ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: #2d3436;
}
.logo span { color: #0984e3; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: #636e72; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: #0984e3; }
.hamburger { display: none; cursor: pointer; background: none; border: none; font-size: 1.5rem; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55)),
    url('https://images.unsplash.com/photo-1528164344705-47542687000d?w=1600&q=80') center/cover no-repeat;
  color: #fff;
}
.hero h1 { font-size: 3.2rem; color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; opacity: .9; }
.btn {
  display: inline-block; padding: .85rem 2rem;
  background: #0984e3; color: #fff; border-radius: 50px;
  font-weight: 600; font-size: 1rem; transition: background .3s, transform .2s;
  border: none; cursor: pointer;
}
.btn:hover { background: #0652DD; color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #2d3436; }

/* ========== FEATURED SECTION ========== */
.section-title {
  text-align: center; margin: 3rem 0 2rem;
  font-size: 2rem; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: #0984e3; margin: .75rem auto 0;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem; margin-bottom: 3rem;
}
.card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.card-img {
  height: 220px; background-size: cover; background-position: center;
  position: relative;
}
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: #0984e3; color: #fff; padding: .25rem .75rem;
  border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.card-body { padding: 1.25rem; }
.card-body h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.card-body p { color: #636e72; font-size: .95rem; margin-bottom: .75rem; line-height: 1.6; }
.card-meta { display: flex; gap: 1rem; font-size: .85rem; color: #b2bec3; }
.read-more { font-weight: 600; font-size: .9rem; }

/* ========== BLOG POST ========== */
.blog-header {
  position: relative; min-height: 50vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: #fff;
}
.blog-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,.75));
}
.blog-header-content { position: relative; z-index: 1; padding: 3rem 0 2rem; width: 100%; }
.blog-header h1 { color: #fff; font-size: 2.8rem; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.blog-header .meta { opacity: .85; margin-top: .5rem; font-size: .95rem; }
.blog-content { padding: 3rem 0; }
.blog-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.blog-content h3 { margin-top: 2rem; }
.blog-content p { font-size: 1.05rem; color: #2d3436; }
.blog-content img {
  border-radius: 10px; margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.blog-content ul, .blog-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.blog-content li { margin-bottom: .5rem; line-height: 1.7; }
.blog-content li::marker { color: #0984e3; }
.blog-content blockquote {
  border-left: 4px solid #0984e3; padding: 1rem 1.5rem;
  margin: 1.5rem 0; background: #f0f7ff; border-radius: 0 8px 8px 0;
  font-style: italic; color: #636e72;
}
.tip-box {
  background: #e8f8f0; border-left: 4px solid #00b894;
  padding: 1rem 1.5rem; border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.tip-box strong { color: #00b894; }

/* ========== SIDEBAR ========== */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.sidebar-widget {
  background: #fff; padding: 1.5rem; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); margin-bottom: 1.5rem;
}
.sidebar-widget h3 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid #eee; }
.sidebar-widget a { display: block; padding: .4rem 0; color: #2d3436; font-size: .95rem; }
.sidebar-widget a:hover { color: #0984e3; }

/* ========== AD PLACEHOLDER ========== */
.ad-slot {
  background: #f5f6fa; border: 2px dashed #dfe6e9; border-radius: 8px;
  min-height: 100px; display: flex; align-items: center; justify-content: center;
  color: #b2bec3; font-size: .85rem; margin: 2rem 0;
}

/* ========== NEWSLETTER ========== */
.newsletter {
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
  padding: 3rem 0; color: #fff; text-align: center; margin: 2rem 0 0;
}
.newsletter h2 { color: #fff; margin-bottom: .5rem; }
.newsletter p { opacity: .9; margin-bottom: 1.5rem; }
.newsletter-form { display: flex; max-width: 450px; margin: 0 auto; gap: .5rem; }
.newsletter-form input {
  flex: 1; padding: .85rem 1rem; border: none; border-radius: 50px;
  font-size: 1rem;
}
.newsletter-form button {
  padding: .85rem 1.5rem; background: #fff; color: #0984e3;
  border: none; border-radius: 50px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: #f0f0f0; }

/* ========== FOOTER ========== */
.site-footer {
  background: #2d3436; color: #dfe6e9; padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-col a { display: block; color: #b2bec3; padding: .25rem 0; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .9rem; color: #b2bec3; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #636e72; padding-top: 1.5rem; text-align: center; font-size: .85rem; color: #636e72; }

/* ========== PAGES ========== */
.page-header {
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
  color: #fff; padding: 4rem 0; text-align: center;
}
.page-header h1 { color: #fff; font-size: 2.5rem; }
.page-content { padding: 3rem 0; }
.page-content h2 { margin-top: 2rem; }
.page-content h3 { margin-top: 1.5rem; }

/* ========== CONTACT FORM ========== */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 2px solid #dfe6e9;
  border-radius: 8px; font-size: 1rem; transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: #0984e3; outline: none; }
.form-group textarea { min-height: 150px; resize: vertical; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar-widget { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 60vh; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff;
    padding: 1rem 1.5rem; border-top: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .hamburger { display: block; }
  .featured-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  h1 { font-size: 2rem; }
}
