:root{
  --primary:#0b6efd;
  --bg:#f7f9fc;
  --text:#1f2937;
  --muted:#6b7280;
  --container:1100px;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
body{margin:0;color:var(--text);background:var(--bg);line-height:1.6}
.container{max-width:var(--container);margin:0 auto;padding:24px}

.site-header{background:#fff;border-bottom:1px solid #e6eef8}
.site-header .container{display:flex;align-items:center;justify-content:space-between}

.nav a{margin-left:18px;color:var(--text);text-decoration:none}

.hero{background:linear-gradient(90deg, #eef6ff 0%, #ffffff 100%);padding:64px 0}
.hero-inner h1{font-size:28px;margin:0 0 12px}
.hero-inner p{margin:0 0 18px;color:var(--muted)}

.btn{display:inline-block;padding:10px 16px;border-radius:6px;border:1px solid transparent;background:#fff;color:var(--text);text-decoration:none}
.btn.primary{background:var(--primary);color:#fff}

.services .service-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.contact form{display:grid;gap:8px;max-width:600px}
.contact input,.contact textarea{width:100%;padding:8px;border:1px solid #d1e3ff;border-radius:6px}

.site-footer{padding:18px 0;text-align:center;color:var(--muted);background:#fff;border-top:1px solid #e6eef8}

/* ============================
   メディアクエリ修正
============================ */
@media(max-width:720px){
  .services .service-list{grid-template-columns:1fr}
  .hero-inner h1{font-size:20px}
}  /* ← これが抜けていた！ */

@media (max-width: 600px) {
  .logo img {
    height: 60px;
  }
}
/* PC用ロゴサイズ */
.site-header .logo img {
  height: 120px;
}

/* ============================
   Helpfeel風 特長カードデザイン
============================ */

/* グリッドを横並びに */
.features .grid {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-top: 32px;
}

/* カード本体 */
.features .grid article {
  background: #ffffff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  flex: 1;
}

/* ホバーでふわっと浮く */
.features .grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* 見出し */
.features .grid article h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

/* テキスト */
.features .grid article p {
  color: #4b5563;
  line-height: 1.6;
}

/* ロゴサイズ（全ページ共通） */
.site-header .logo img {
  height: 120px;
  width: auto;
}

/* ===== Helpfeel風ヘッダー調整 ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo img {
  height: 120px;
  width: auto;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.site-header nav ul li a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  padding-bottom: 4px;
}

.site-header nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #2563eb;
  transition: width 0.25s ease;
}

.site-header nav ul li a:hover::after {
  width: 100%;
}

/* ===== Helpfeel風ヒーロー ===== */
.hero-helpfeel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  background: #ffffff;
}

.hero-helpfeel .hero-text {
  max-width: 540px;
}

.hero-helpfeel h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #111827;
}

.hero-helpfeel p {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 24px;
}

.hero-helpfeel .btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.hero-helpfeel .hero-image img {
  width: 400px;
  height: auto;
  border-radius: 12px;
}

/* スクロール時に縮む */
.site-header.shrink {
  padding: 4px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.site-header.shrink .logo img {
  height: 36px;
}

/* ============================
   固定ページ：Helpfeel風デザイン
============================ */

/* ヒーロー（タイトル部分） */
.page-hero {
  padding: 40px 0 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

.page-lead {
  font-size: 18px;
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto;
}

/* 本文 */
.page-content {
  padding: 10px 0;
}

.page-content p {
  font-size: 17px;
  line-height: 1.2;
  color: #374151;
  margin-bottom: 20px;
}

/* 見出し */
.page-content h2 {
  font-size: 28px;
  margin-top: 20px;
  margin-bottom: 16px;
  color: #111827;
}

.page-content h3 {
  font-size: 22px;
  margin-top: 18px;
  margin-bottom: 12px;
  color: #111827;
}

/* フェードイン初期状態 */
.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

/* 表示時 */
.fadein.show {
  opacity: 1;
  transform: translateY(0);
}

/* スクロール時にヘッダーを縮小 */
.site-header {
  transition: all 0.3s ease;
}

.site-header.shrink {
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
}

.site-header.shrink .logo img {
  height: 30px; /* ← 好きな縮小サイズに調整 */
  transition: height 0.3s ease;
}

/* ヘッダーを画面上部に固定 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  transition: all 0.3s ease;
}

/* ヘッダー縮小時 */
.site-header.shrink {
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
}

/* ロゴ縮小 */
.site-header.shrink .logo img {
  height: 40px;
  transition: height 0.3s ease;
}

/* ヘッダー分の余白をページ上部に追加（重要） */
body {
  padding-top: 60px; /* ← ヘッダーの高さに合わせて調整 */
}

/* ============================
   埋め込みHTMLのレスポンシブ対応
============================ */
.page-content iframe,
.page-content embed,
.page-content object {
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* iframeをレスポンシブにするラッパー */
.embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 の比率 */
  height: 0;
  overflow: hidden;
}

.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ============================
   スマホ調整（ロゴ・見出し・余白）
============================ */
@media (max-width: 600px) {

  /* ヘッダー自体を小さく */
  .site-header {
    padding: 6px 0;
  }

  /* ロゴも最初から小さく */
  .site-header .logo img {
    height: 40px;
  }
}

  /* 見出しを小さく */
  .page-hero h1 {
    font-size: 25px;
  }

  .page-lead {
    font-size: 15px;
  }

  .page-content h2 {
    font-size: 20px;
  }

  .page-content h3 {
    font-size: 18px;
  }

  .page-content p {
    font-size: 15px;
  }

  /* コンテナ余白 */
  .container {
    padding: 16px;
  }

  .page-hero {
    padding: 50px 0 40px;
  }

  .page-content {
    padding: 40px 0;
  }
}

@media (max-width: 600px) {
  .site-header .logo img {
    height: 40px;
  }
}

/* ハンバーガーボタン（スマホのみ表示） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #111;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* スマホで表示 */
@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {

  /* 特長を縦並びに強制 */
  .features .grid {
    flex-direction: column !important;
  }

  /* ヒーロー縦並び */
  .hero-helpfeel {
    flex-direction: column;
    text-align: center;
  }

  .hero-helpfeel .hero-image img {
    width: 100%;
    margin-top: 24px;
  }

  /* ロゴを小さく */
  .site-header .logo img {
    height: 40px !important;
  }

  /* ヘッダーの高さ調整 */
  .site-header {
    padding: 6px 0;
  }
}