/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: #FFF7ED;
  --green: #16A34A;
  --green-light: #F0FDF4;
  --red: #DC2626;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --bg: #FFFBF7;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-900);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only { display: inline; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 2px solid var(--orange);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.header-nav a { color: var(--gray-700); transition: color .2s; }
.header-nav a:hover { color: var(--orange); }
.btn-header {
  background: var(--orange);
  color: white !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 700;
  transition: background .2s, transform .1s;
}
.btn-header:hover { background: var(--orange-dark) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 16px 24px;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--gray-700); padding: 4px 0; }

/* ===== HERO ===== */
.hero {
  margin-top: 68px;
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 68px;
}
.hero-content { flex: 1; }
.hero-sub {
  font-size: 14px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--gray-900);
}
.hero-title .accent {
  color: var(--orange);
  position: relative;
}
.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  opacity: .2;
  border-radius: 2px;
}
.hero-lead {
  font-size: 17px;
  color: var(--gray-700);
  margin-bottom: 32px;
  line-height: 1.9;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.btn-primary {
  background: var(--orange);
  color: white;
  padding: 14px 32px;
  border-radius: 32px;
  font-weight: 700;
  font-size: 17px;
  display: inline-block;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249,115,22,0.45);
}
.btn-outline {
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 12px 28px;
  border-radius: 32px;
  font-weight: 700;
  font-size: 17px;
  display: inline-block;
  transition: background .2s;
}
.btn-outline:hover { background: var(--orange-light); }
.hero-note {
  font-size: 13px;
  color: var(--gray-500);
}

.hero-img {
  flex-shrink: 0;
  position: relative;
  width: 260px;
}
.character-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--orange-light);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}
.hero-bubble {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: white;
  border: 2px solid var(--orange);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.5;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* ===== SECTION COMMON ===== */
.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 16px;
  color: var(--gray-700);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ===== TROUBLE ===== */
.trouble {
  background: #FFF3E8;
  color: var(--gray-900);
  padding: 80px 0;
  border-top: 3px solid #FED7AA;
  border-bottom: 3px solid #FED7AA;
}
.trouble .section-label { color: var(--orange); }
.trouble .section-title { color: var(--gray-900); }
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.trouble-card {
  background: white;
  border: 1.5px solid #FED7AA;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(249,115,22,0.08);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s, transform .5s;
}
.trouble-card.in-view { opacity: 1; transform: none; }
.trouble-icon { font-size: 28px; margin-bottom: 10px; }
.trouble-card p { font-size: 14px; line-height: 1.7; color: var(--gray-700); }
.trouble-card b { color: #C2410C; }
.trouble-footer {
  text-align: center;
  font-size: 17px;
  color: var(--gray-700);
  background: white;
  border: 1.5px solid #FED7AA;
  border-radius: var(--radius-sm);
  padding: 24px;
  line-height: 1.8;
}
.trouble-footer b { color: var(--orange); }

/* ===== BEFORE/AFTER ===== */
.beforeafter {
  padding: 80px 0;
  background: var(--bg);
}
.ba-case {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s;
}
.ba-case.in-view { opacity: 1; transform: none; }

.ba-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--orange-light);
  padding: 20px 32px;
  border-bottom: 2px solid rgba(249,115,22,0.15);
}
.ba-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: .05em;
  line-height: 1;
}
.ba-header h3 {
  font-size: 20px;
  font-weight: 700;
}
.ba-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}

.ba-before, .ba-after {
  padding: 28px 28px 32px;
}
.ba-before { background: #FFFBF2; border-right: 1px solid var(--gray-200); }
.ba-after { background: #F0FDF4; }

.ba-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.ba-label.before {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.ba-label.after {
  background: #DCFCE7;
  color: #14532D;
  border: 1px solid #86EFAC;
}

.paper-mock {
  margin-bottom: 20px;
}
.paper-svg {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

.ba-pains p, .ba-gains p {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ba-pains p { color: var(--gray-700); }
.ba-gains p { color: #166534; }
.ba-pains b { color: var(--gray-900); }
.ba-gains b { color: #166534; font-weight: 700; }

.app-screen {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  border: 2px solid #DCFCE7;
}
.app-img {
  width: 100%;
  display: block;
}

.ba-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: white;
}
.arrow-circle {
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}
.ba-arrow p {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-align: center;
  line-height: 1.4;
}

/* ===== EXCEL SECTION ===== */
.excel-section {
  background: #F8FAFF;
  padding: 80px 0;
  border-top: 2px solid var(--gray-200);
  border-bottom: 2px solid var(--gray-200);
}
.excel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.excel-card {
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s, transform .5s;
}
.excel-card.in-view { opacity: 1; transform: none; }
.excel-before-after {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ex-before, .ex-after {
  flex: 1;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
}
.ex-before {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
}
.ex-after {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}
.tag-before, .tag-after {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  letter-spacing: .05em;
}
.tag-before {
  background: #FED7AA;
  color: #9A3412;
}
.tag-after {
  background: #BBF7D0;
  color: #14532D;
}
.ex-arrow {
  font-size: 22px;
  color: var(--orange);
  font-weight: 900;
  flex-shrink: 0;
}
.excel-note {
  background: var(--orange-light);
  border: 2px solid rgba(249,115,22,0.2);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  text-align: center;
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
}
.excel-note b { color: var(--orange); }

/* ===== MERITS ===== */
.merits {
  padding: 80px 0;
  background: var(--bg);
}
.merits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.merit-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  border-top: 4px solid var(--orange);
  position: relative;
}
.merit-num {
  font-size: 44px;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 8px;
}
.merit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.merit-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
}
.merit-note {
  margin-top: 12px;
  padding: 8px 12px;
  background: #FFF3E8;
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  font-size: 13px !important;
  color: #C2410C !important;
}

/* ===== ABOUT ===== */
.about {
  background: var(--gray-100);
  padding: 80px 0;
}
.about-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.about-img {
  flex-shrink: 0;
  text-align: center;
  width: 220px;
}
.about-character {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--orange);
  box-shadow: var(--shadow-lg);
  margin: 0 auto 12px;
}
.about-profile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}
.about-area {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}
.about-text { flex: 1; }
.about-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 14px;
  line-height: 1.9;
}
.about-text b { color: var(--gray-900); font-weight: 700; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.about-tags span {
  background: white;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg);
  padding: 80px 0;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.contact-phone {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 24px;
  text-align: center;
  border-top: 4px solid var(--orange);
}
.contact-phone-icon { font-size: 40px; margin-bottom: 10px; }
.contact-phone-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.contact-phone-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 8px;
}
.contact-phone-num a { color: inherit; }
.contact-phone-hours { font-size: 12px; color: var(--gray-500); }

.contact-form-wrap {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.contact-form-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.required {
  background: var(--orange);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  transition: border-color .2s;
  outline: none;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}
.form-group textarea { resize: vertical; }
.btn-submit {
  background: var(--orange);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 32px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .1s;
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
  align-self: flex-start;
}
.btn-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}
.form-note { font-size: 12px; color: var(--gray-500); margin-top: 8px; }

/* ===== FOOTER ===== */
.footer {
  background: #FFF3E8;
  color: var(--gray-900);
  padding: 40px 0 20px;
  border-top: 3px solid #FED7AA;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: 0.02em;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: none;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  margin-left: auto;
}
.footer-nav a { color: var(--gray-500); transition: color .2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-area {
  width: 100%;
  font-size: 12px;
  color: var(--gray-500);
}
.footer-copy {
  font-size: 12px;
  color: var(--gray-500);
  border-top: 1px solid #FED7AA;
  padding-top: 16px;
  text-align: center;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ===== FLYER SECTION ===== */
.flyer-section {
  background: var(--gray-100);
  padding: 60px 0;
}
.flyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.flyer-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.flyer-item:hover { transform: translateY(-4px); }
.flyer-img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 48px 20px 40px;
  }
  .hero-img { width: 100%; }
  .character-img { width: 160px; height: 160px; }
  .hero-btns { justify-content: center; }
  .hero-bubble { bottom: -8px; right: 50%; transform: translateX(60%); font-size: 12px; }

  .trouble-grid { grid-template-columns: 1fr 1fr; }
  .merits-grid { grid-template-columns: 1fr; gap: 16px; }

  .ba-content {
    grid-template-columns: 1fr;
  }
  .ba-before { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .ba-arrow {
    flex-direction: row;
    padding: 12px 28px;
    background: var(--orange-light);
    border-top: none;
    border-bottom: none;
  }
  .arrow-circle { width: 36px; height: 36px; font-size: 14px; transform: rotate(90deg); }

  .excel-grid { grid-template-columns: 1fr; }
  .excel-before-after { flex-direction: column; gap: 8px; }
  .ex-arrow { transform: rotate(90deg); }

  .about-inner { flex-direction: column; align-items: center; gap: 32px; }
  .about-img { width: auto; }
  .about-text { text-align: center; }
  .about-tags { justify-content: center; }
  .about-title { text-align: center; }

  .contact-wrap { grid-template-columns: 1fr; }
  .flyer-grid { grid-template-columns: 1fr; gap: 20px; }

  .pc-only { display: none; }
}

@media (max-width: 600px) {
  .trouble-grid { grid-template-columns: 1fr; }
  .ba-header { padding: 16px 20px; }
  .ba-header h3 { font-size: 17px; }
  .ba-before, .ba-after { padding: 20px; }
  .contact-form-wrap { padding: 24px 20px; }
  .ba-num { font-size: 22px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-left: 0; }
}
