/*
Theme Name: MEGALOPPERS
Theme URI: https://megaloppers.com
Author: MEGALOPPERS
Description: フリーランスWebクリエイター ポートフォリオテーマ
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #ffffff;
  --bg2:     #faf9f7;
  --dark:    #231f14;
  --text:    #4a4540;
  --muted:   #7a736b;
  --red:     #cc2222;
  --gold:    #c9921a;
  --green:   #1a6b2a;
  --card-bg: #ffffff;
  --border:  #e8e4df;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 70px;
  background: rgba(35,31,20,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo {
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  text-decoration: none; color: #fff;
}
.logo .lm { color: #e05555; }
.logo .lg { color: #d4a832; }
.logo .ll { color: #4caf6a; }
nav { display: flex; gap: 36px; }
nav a {
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px;
  letter-spacing: 0.5px; transition: color .2s;
}
nav a:hover { color: #e05555; }

/* ── HERO ── */
#home {
  padding: 0; min-height: 820px;
  display: flex; align-items: center;
  background: #fdfcfb;
  overflow: hidden; position: relative;
}
#home::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,34,34,0.05) 0%, transparent 70%);
  pointer-events: none;
}
#home::after {
  content: ""; position: absolute; bottom: -100px; left: 20%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,146,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1300px; margin: 0 auto; padding: 30px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  width: 100%; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 20px;
  background: #fff4f4; border: 1px solid #f5c2c2;
  font-size: 12px; letter-spacing: 2px; color: var(--red);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}
.hero-title {
  font-size: clamp(24px, 3.2vw, 52px);
  font-weight: 900; line-height: 1.15; color: var(--dark);
  margin-bottom: 16px; white-space: nowrap;
}
.hero-inner > div { min-width: 0; }
.hero-title-sub { display: block; font-size: 0.58em; font-weight: 700; color: var(--text); margin-top: 8px; }
.hero-title .accent-red  { color: var(--red); }
.hero-title .accent-gold { color: var(--gold); }
.hero-title .title-sub {
  font-size: 1em;
  font-weight: 900;
  color: var(--text);
}
.hero-line {
  width: 180px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  margin-bottom: 24px;
}
.hero-sub { font-size: 16px; color: var(--text); margin-bottom: 40px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-primary {
  display: inline-block; padding: 15px 36px; border-radius: 4px;
  background: var(--red); color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(204,34,34,0.22);
}
.btn-primary:hover { background: #aa1c1c; transform: translateY(-2px); }
.btn-outline {
  display: inline-block; padding: 14px 36px; border-radius: 4px;
  border: 1.5px solid var(--border); color: var(--text);
  font-size: 15px; text-decoration: none; background: #fff;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; max-width: 100%; height: auto; max-height: 460px; object-fit: contain; display: block; }

/* ── SECTION COMMON ── */
section { padding: 100px 80px; }
.section-label { font-size: 11px; letter-spacing: 4px; color: var(--red); margin-bottom: 14px; font-weight: 700; }
.section-title { font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin-bottom: 14px; }
.section-desc { font-size: 16px; color: var(--text); max-width: 600px; line-height: 1.8; }
.divider { width: 60px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  margin-bottom: 20px; }

/* ── ABOUT ── */
#about { background: var(--bg); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.about-cards { display: flex; flex-direction: column; gap: 20px; }
.about-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 32px;
  transition: box-shadow .2s, border-color .2s;
}
.about-card:hover { box-shadow: 0 4px 20px rgba(204,34,34,0.08); border-color: #f5c2c2; }
.about-card h4 { font-size: 15px; color: var(--red); margin-bottom: 8px; font-weight: 700; }
.about-card p { font-size: 14px; color: var(--text); }
.sns-links { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.sns-link {
  padding: 8px 18px; border-radius: 4px;
  border: 1px solid var(--border); background: #fff;
  color: var(--muted); text-decoration: none; font-size: 13px;
  transition: border-color .2s, color .2s;
}
.sns-link:hover { border-color: var(--red); color: var(--red); }

/* ── SKILLS ── */
#skills { background: var(--bg2); }
.skills-inner { max-width: 1200px; margin: 0 auto; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 60px; }
.skill-group h3 {
  font-size: 13px; color: var(--muted); letter-spacing: 2px; font-weight: 700;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tag {
  padding: 14px 26px; border-radius: 4px;
  background: #fff; border: 1px solid var(--border);
  font-size: 15px; color: var(--dark);
  transition: border-color .2s, box-shadow .2s;
}
.skill-tag:hover { border-color: var(--gold); box-shadow: 0 2px 10px rgba(201,146,26,0.1); }
.skill-tag .sub { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── SERVICES ── */
#services { background: var(--bg); }
.services-inner { max-width: 1200px; margin: 0 auto; }
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 60px; }
.plan {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 36px 32px;
  position: relative; transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.plan.featured { border-color: #f5c2c2; background: #fff9f9; }
.badge-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 18px; border-radius: 4px; white-space: nowrap;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.plan-price { font-size: 40px; font-weight: 900; color: var(--red); margin-bottom: 4px; }
.plan-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan-features { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { font-size: 14px; color: var(--text); padding-left: 22px; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* flow */
.flow { display: flex; align-items: flex-start; gap: 0; margin-top: 60px; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 140px; text-align: center; position: relative; padding: 0 8px; }
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -10px; top: 18px;
  font-size: 20px; color: var(--gold); opacity: .6;
}
.flow-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff; margin: 0 auto 12px;
}
.flow-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.flow-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── CONTACT ── */
#contact { background: var(--bg2); }
.contact-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start;
}
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-top: 28px; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: #fff4f4; border: 1px solid #f5c2c2;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  flex-shrink: 0;
}
.contact-item-label { font-size: 12px; color: var(--muted); }
.contact-item-val { font-size: 14px; color: var(--dark); margin-top: 2px; }
.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.form-group label .req { color: var(--red); font-size: 11px; margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--dark); font-size: 14px;
  padding: 12px 16px; outline: none;
  transition: border-color .2s; font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); background: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.form-submit {
  width: 100%; padding: 16px; border-radius: 4px;
  background: var(--red); color: #fff;
  font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; transition: background .2s;
  box-shadow: 0 4px 16px rgba(204,34,34,0.22);
}
.form-submit:hover { background: #aa1c1c; }

/* ── FOOTER ── */
footer { background: var(--dark); color: #fff; padding: 60px 80px 40px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px;
}
.footer-logo {
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  text-decoration: none; color: #fff;
}
.footer-logo .lm { color: #e05555; }
.footer-logo .lg { color: #d4a832; }
.footer-logo .ll { color: #4caf6a; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 12px; line-height: 1.7; }
.footer-sns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.footer-sns a {
  padding: 7px 14px; border-radius: 4px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 12px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.footer-sns a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col h4 { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.35); margin-bottom: 20px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: color .2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ── HAMBURGER ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 200;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  header { padding: 0 32px; }
  .hero-inner { padding: 40px 40px; gap: 40px; }
  section { padding: 80px 40px; }
  footer { padding: 50px 40px 32px; }
}

@media (max-width: 768px) {
  header { padding: 0 24px; }
  .nav-toggle { display: flex; }
  nav {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(35,31,20,0.97);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 32px; z-index: 150;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
  }
  nav.open { opacity: 1; pointer-events: auto; }
  nav a { font-size: 18px; }

  #home { min-height: auto; padding-bottom: 40px; }
  .hero-inner {
    grid-template-columns: 1fr; padding: 100px 24px 40px;
    gap: 32px; text-align: center;
  }
  .hero-title { white-space: normal; font-size: clamp(28px, 7vw, 44px); }
  .hero-line { margin: 0 auto 24px; }
  .hero-btns { justify-content: center; }
  .hero-visual img { max-height: 280px; margin: 0 auto; }

  section { padding: 64px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .flow { gap: 24px; justify-content: center; }
  .flow-step { min-width: 120px; }
  .flow-step:not(:last-child)::after { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 48px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .plans { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(26px, 8vw, 38px); }
}
