/* ============ Base ============ */
:root{
  --ink:#111827;
  --muted:#555;
  --brand:#007bff;
  --header-h:72px;              /* ヘッダーの想定高さ */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:#333; line-height:1.6;
}
a{color:var(--brand); text-decoration:none}
img{max-width:100%; height:auto; display:block}

.container{width:90%; max-width:1100px; margin:0 auto; padding:0 20px}
h1,h2,h3{line-height:1.2}

/* ============ Header (統一) ============ */
/* ※ 旧: header nav ul/li/a … は削除してください */
header{
  position:sticky; top:0; z-index:1000;
  background:#fff; border-bottom:1px solid #eee; box-shadow:0 2px 5px rgba(0,0,0,.08);
  min-height:var(--header-h);
}
.header-inner{display:flex; align-items:center; gap:16px; padding:12px 0}
.header-inner h1{margin:0; font-size:22px}
.header-inner h1 a{color:var(--ink); text-decoration:none}

.main-nav{
  list-style:none; display:flex; align-items:center; gap:24px; margin:0 0 0 24px; padding:0;
}
.main-nav a{
  color:var(--ink); font-weight:700; text-decoration:none; opacity:.9;
}
.main-nav a:hover{opacity:1; text-decoration:underline}

/* CTA（黒ピル） */
.nav-cta{
  margin-left:auto; display:inline-flex; align-items:center; gap:8px;
  background:var(--ink); color:#fff;
  padding:10px 16px; border-radius:999px; font-weight:700;
  box-shadow:0 8px 20px rgba(17,24,39,.12); line-height:1;
}
.nav-cta:hover{transform:translateY(-1px)}

/* ============ Main spacing ============ */
/* stickyなので巨大なpaddingは不要。アンカーずれ対策のみ */
main{padding-top:18px; scroll-padding-top:calc(var(--header-h) + 12px)}
main > *:first-child{margin-top:0; padding-top:12px}

/* ============ Hero ============ */
#hero{
  background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)), url('/images/image2.jpg') center/cover no-repeat;
  color:#fff; text-align:center;
  min-height:80svh; height:80dvh; padding:120px 20px;
  display:flex; justify-content:center; align-items:center;
}
.hero-btn{
  background:#007bff; color:#fff; padding:15px 30px; border-radius:6px; font-weight:700;
  display:inline-block; transition:transform .2s, background-color .2s;
}
.hero-btn:hover{background:#0056b3; transform:translateY(-2px)}

/* ============ Sections ============ */
section{padding:60px 0}
section h2, section h3{margin-bottom:40px; font-size:32px; text-align:center}

/* About */
#about-us{padding-top:60px}
#about-us h2{margin-top:0}
.about-us-wrapper{display:flex; align-items:center; gap:40px}
.about-us-wrapper img{width:45%; border-radius:8px; box-shadow:0 4px 15px rgba(0,0,0,.1)}
.about-us-text{width:55%}
.about-us-text h3{text-align:left; margin-top:0; font-size:28px}

/* Blog cards */
#blog{padding-top:60px}
#blog h2{margin-top:40px}
.blog-posts{display:grid; grid-template-columns:repeat(3,1fr); gap:30px}
.post{background:#fff; border:1px solid #ddd; border-radius:8px; overflow:hidden;
     box-shadow:0 2px 8px rgba(0,0,0,.1); transition:transform .2s, box-shadow .2s}
.post:hover{transform:translateY(-4px); box-shadow:0 8px 20px rgba(0,0,0,.12)}
.post-content{padding:20px}
.post-content h3{font-size:20px; margin:0 0 10px; text-align:left}
.read-more{display:inline-block; margin-top:12px; font-weight:700}

/* Forms */
.contact-form{max-width:600px; margin:0 auto}
.form-group{margin-bottom:20px}
.form-group label{display:block; margin-bottom:6px; font-weight:700}
.form-group input,.form-group textarea{
  width:100%; padding:12px; border:1px solid #ccc; border-radius:6px; font:inherit
}
.submit-btn{width:100%; padding:15px; background:#28a745; color:#fff; border:0; border-radius:6px; font-size:18px; font-weight:700}
.submit-btn:hover{background:#218838}

/* Footer */
footer{background:#333; color:#fff; text-align:center; padding:20px 0; margin-top:40px}

/* ============ Responsive ============ */
@media (max-width:960px){
  .blog-posts{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  .header-inner{flex-wrap:wrap}
  .main-nav{gap:14px}
  .about-us-wrapper{flex-direction:column}
  .about-us-wrapper img,.about-us-text{width:100%}
  .blog-posts{grid-template-columns:1fr}
}
@media (max-width:640px){
  .nav-cta{padding:8px 12px; font-size:14px}
}

/* --- シェアボタンのスタイル --- */
        .share-container { margin: 40px 0; text-align: center; }
        .share-title { font-weight: bold; font-size: 14px; margin-bottom: 15px; color: #666; text-transform: uppercase; letter-spacing: 1px; }
        .share-buttons { display: flex; justify-content: center; gap: 15px; }
        .share-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; border: none; cursor: pointer; }
        .share-btn svg { width: 20px; height: 20px; fill: white; }
        .x-btn { background-color: #000; }
        .fb-btn { background-color: #1877F2; }
        .link-btn { background-color: #607d8b; }
        .link-btn svg { stroke: white; fill: none; }
        .share-btn:hover { transform: translateY(-3px); opacity: 0.8; }
