/* ===== リセット・基本 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; color: #333; line-height: 1.7; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== カラー変数 ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #f18f01;
  --gray: #f5f4ff;
  --border: #e2e8f0;
  --text: #333;
  --light: #fff;
  --rainbow: linear-gradient(135deg, #ff6b6b 0%, #ffa94d 18%, #ffd43b 36%, #51cf66 54%, #339af0 72%, #cc5de8 100%);
  --rainbow-h: linear-gradient(90deg, #ff6b6b 0%, #ffa94d 18%, #ffd43b 36%, #51cf66 54%, #339af0 72%, #cc5de8 100%);
}

/* ===== 虹ライン（ページ最上部） ===== */
body::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--rainbow-h);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
}

/* ===== ヘッダー ===== */
header {
  position: sticky; top: 5px; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark {
  background: var(--rainbow); color: #fff;
  font-size: 1.6rem; font-weight: 900;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.logo-text { font-size: 1.2rem; font-weight: 700; }
.logo-text small { font-size: .8rem; color: #666; font-weight: 400; display: block; }
nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
nav a { font-size: .9rem; color: #555; transition: color .2s; }
nav a:hover { color: var(--primary); }
.btn-nav {
  background: var(--rainbow); color: #fff !important;
  padding: 8px 20px; border-radius: 24px;
  font-weight: 700; transition: opacity .2s !important;
}
.btn-nav:hover { opacity: .88; }

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(135deg, rgba(26,38,64,0.65) 0%, rgba(26,38,64,0.55) 100%), url('../hero-bg.jpg') center center / cover no-repeat;
  color: #fff; padding: 80px 24px;
  min-height: 480px; display: flex; align-items: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-sub { font-size: .9rem; letter-spacing: .1em; opacity: .85; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.3; margin-bottom: 24px; }
.hero-desc { font-size: 1.05rem; opacity: .9; margin-bottom: 36px; }
.btn-hero {
  display: inline-block;
  background: var(--rainbow); color: #fff;
  padding: 14px 40px; border-radius: 32px;
  font-weight: 700; font-size: 1.05rem;
  transition: opacity .2s;
}
.btn-hero:hover { opacity: .85; }

/* ===== セクション共通 ===== */
.section { padding: 72px 24px; }
.section-gray { background: var(--gray); }
.section-primary { background: var(--rainbow); }
.container { max-width: 1000px; margin: 0 auto; }
.section-title {
  font-size: 1.8rem; font-weight: 900;
  text-align: center; margin-bottom: 12px;
}
.section-title::after {
  content: ''; display: block;
  width: 48px; height: 4px;
  background: var(--rainbow-h); border-radius: 2px;
  margin: 12px auto 0;
}
.section-title.white { color: #fff; }
.section-title.white::after { background: rgba(255,255,255,.6); }
.section-lead { text-align: center; color: #666; margin-bottom: 48px; }
.section-lead.white { color: rgba(255,255,255,.9); }

/* ===== カード（私たちについて） ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: 16px;
  padding: 32px 24px; text-align: center;
  box-shadow: 0 4px 16px rgba(99,102,241,.08);
  border-top: 4px solid transparent;
  border-image: var(--rainbow-h) 1;
}
.card-icon { font-size: 2.4rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: .9rem; color: #666; }

/* ===== サービス一覧 ===== */
.service-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.service-item {
  background: #fff; border-radius: 12px;
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-left: 4px solid var(--primary);
}
.service-icon { font-size: 1.8rem; flex-shrink: 0; }
.service-item h3 { font-size: 1rem; margin-bottom: 4px; }
.service-item p { font-size: .85rem; color: #666; }
.service-link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.service-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(99,102,241,.15); border-left-color: var(--primary-light); }
.order-badge { background: var(--rainbow); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 10px; margin-left: 8px; font-weight: 600; vertical-align: middle; }
.coming-badge { background: #aaa; color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 10px; margin-left: 8px; font-weight: 600; vertical-align: middle; }

/* ===== 依頼の流れ ===== */
.flow-list { max-width: 600px; margin: 0 auto; }
.flow-item {
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.flow-num {
  font-size: 2rem; font-weight: 900;
  background: var(--rainbow);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0; width: 52px; text-align: center;
}
.flow-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.flow-body p { font-size: .9rem; color: #666; }
.flow-arrow { text-align: center; font-size: 1.4rem; color: var(--primary); padding: 8px 0; }

/* ===== お問い合わせ ===== */
.contact-box {
  background: #fff; border-radius: 16px; padding: 40px;
  max-width: 680px; margin: 0 auto;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.required { background: #e74c3c; color: #fff; font-size: .75rem; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid #ddd; border-radius: 8px;
  font-size: 1rem; font-family: inherit;
  transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-submit { text-align: center; margin-top: 8px; }
.btn-submit {
  background: var(--rainbow); color: #fff;
  border: none; cursor: pointer;
  padding: 14px 60px; border-radius: 32px;
  font-size: 1.05rem; font-weight: 700;
  transition: opacity .2s;
}
.btn-submit:hover { opacity: .88; }

/* ===== フッター ===== */
footer {
  background: #1a1a2e; color: #aaa;
  text-align: center; padding: 40px 24px;
  font-size: .85rem; line-height: 2;
}
.footer-logo { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-copy { margin-top: 16px; font-size: .75rem; }

/* ===== ハンバーガーメニュー ===== */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; background: #333; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  #global-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 99;
  }
  #global-nav.open { display: block; }
  #global-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  #global-nav ul li a { display: block; padding: 14px 24px; border-bottom: 1px solid #f0f0f0; }
  .btn-nav { border-radius: 0 !important; background: none !important; color: var(--primary) !important; font-weight: 700; }
  .hero { padding: 60px 20px; }
  .contact-box { padding: 24px 16px; }
}

/* ===== 無料HP作成バナー ===== */
.hp-banner-section {
  background: #fafafa;
  padding: 16px 24px;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  background-image: linear-gradient(#fafafa, #fafafa), var(--rainbow-h);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.hp-banner {
  display: flex; align-items: center; gap: 16px;
  background: var(--rainbow); color: #fff; border-radius: 12px;
  padding: 16px 24px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99,102,241,.2);
  transition: transform .2s, box-shadow .2s;
  max-width: 860px; margin: 0 auto;
}
.hp-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,.3); }
.hp-banner-icon { font-size: 1.8rem; flex-shrink: 0; }
.hp-banner-body { flex: 1; }
.hp-banner-label {
  font-size: .72rem; letter-spacing: .1em;
  opacity: .85; margin-bottom: 2px;
  background: rgba(255,255,255,.2); display: inline-block;
  padding: 1px 8px; border-radius: 20px;
}
.hp-banner-body h3 { font-size: 1rem; font-weight: 900; margin: 3px 0 4px; }
.hp-banner-body p { font-size: .82rem; opacity: .92; line-height: 1.5; }
.hp-banner-arrow {
  flex-shrink: 0; font-size: .85rem; font-weight: 700;
  background: rgba(255,255,255,.22); border-radius: 30px;
  padding: 7px 16px; white-space: nowrap;
}
@media (max-width: 768px) {
  .hp-banner { flex-direction: column; text-align: center; padding: 24px 20px; gap: 16px; }
  .hp-banner-arrow { width: 100%; text-align: center; }
}

/* ===== 価格ヒント ===== */
.price-hint {
  font-size: .82rem; color: var(--primary);
  font-weight: 600; margin-top: 6px;
}

/* ===== FAQ アコーディオン ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; font-size: .95rem; font-weight: 700;
  color: var(--text); text-align: left; font-family: inherit; transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  font-size: 1.2rem; flex-shrink: 0; color: var(--primary);
  transition: transform .3s; display: inline-block;
}
.faq-q[aria-expanded=true] .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 4px 20px;
  font-size: .9rem; color: #666; line-height: 1.8;
}
.faq-a.open { display: block; }
