:root {
  --color-orange: #f26a21;
  --color-yellow: #ffd21f;
  --color-blue: #4bb3e6;
  --color-text: #2b2b2b;
  --color-muted: #555;
  --color-bg: #fffaf2;
  --color-white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 18px 50px rgba(0, 0, 0, 0.06);
  --radius-large: 28px;
  --radius-medium: 22px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ===== Container ===== */
.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1120px);
  }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-logo img {
  width: 180px;
  max-width: 40vw;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 40px;
  margin: 0;
  list-style: none;
}

.site-nav a {
  font-weight: 600;
  color: var(--color-text);
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.site-nav a:hover {
  border-bottom-color: var(--color-orange);
}

.header-icons {
  display: flex;
  gap: 12px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(242, 106, 33, 0.1), rgba(75, 179, 230, 0.1));
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: linear-gradient(135deg, rgba(242, 106, 33, 0.2), rgba(75, 179, 230, 0.2));
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 48%, #eef9ff 100%);
  padding: 96px 0 80px;
  min-height: auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.hero-content h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 24px 0 32px;
  font-weight: 700;
}

.hero-content h1 span {
  color: var(--color-orange);
}

.hero-lead {
  font-size: 22px;
  line-height: 1.8;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text);
}

.hero-text {
  line-height: 2;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f26a21, #e94e1b);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(233, 78, 27, 0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(233, 78, 27, 0.3);
}

.primary-btn span {
  font-size: 18px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 0 0 0 160px;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 0 0 0 180px;
  display: block;
}

.sun-shape {
  position: absolute;
  right: -60px;
  top: -100px;
  width: 280px;
  height: 280px;
  background: var(--color-yellow);
  border-radius: 50%;
  opacity: 0.4;
  z-index: 1;
}

.blue-shape {
  position: absolute;
  left: -120px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(75, 179, 230, 0.2), transparent);
  border-radius: 50%;
  z-index: 1;
}

.dot-shape {
  position: absolute;
  left: 40px;
  top: 80px;
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  box-shadow: 30px 0 0 rgba(0, 0, 0, 0.06), 60px 0 0 rgba(0, 0, 0, 0.04);
  z-index: 1;
}

/* ===== Sections Common ===== */
section {
  padding: 88px 0;
}

.section-script {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-yellow);
  margin-bottom: 4px;
}

.section-script.orange {
  color: var(--color-orange);
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.section-desc {
  color: var(--color-muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* ===== Service ===== */
.service {
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.service .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.service-card {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px dashed rgba(0, 0, 0, 0.14);
  transition: background 0.3s ease;
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background: #fafafa;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
}

.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, var(--color-blue), #2f8fd4);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-text);
}

.service-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 0;
}

/* ===== Works ===== */
.works {
  background: #ffffff;
}

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.works-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.work-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
}

.work-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7e8, #eaf8ff);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card-body {
  padding: 20px;
}

.work-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-text);
}

.work-card p {
  font-size: 14px;
  color: var(--color-blue);
  margin: 0;
  font-weight: 500;
}

/* ===== About ===== */
.about {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.image-frame {
  background: linear-gradient(135deg, #fff7e8, #eaf8ff);
  border-radius: var(--radius-large);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-soft);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.about-content h2 {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin: 16px 0 24px;
  color: var(--color-text);
}

.about-content p {
  line-height: 2;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--color-orange);
  border-radius: 999px;
  color: var(--color-orange);
  font-weight: 700;
  background: transparent;
  transition: all 0.3s ease;
}

.outline-btn:hover {
  background: var(--color-orange);
  color: #fff;
}

.outline-btn span {
  font-size: 16px;
}

/* ===== Flow ===== */
.flow {
  background: #ffffff;
  position: relative;
}

.flow > .container > div:first-child {
  margin-bottom: 48px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.flow-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-medium);
  padding: 32px 24px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.flow-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
  margin: 0 auto 20px;
}

.flow-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-text);
}

.flow-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 0;
}

/* ===== Contact CTA ===== */
.contact-cta {
  padding: 56px 0;
  background: linear-gradient(100deg, #f26a21 0%, #ffd21f 45%, #4bb3e6 100%);
  color: #fff;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.cta-inner h2 {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.cta-inner p {
  margin: 0;
  font-size: 15px;
  opacity: 0.95;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 18px 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
  background: #ffffff;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-left img {
  width: 160px;
  height: auto;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-orange);
}

.footer-icons {
  display: flex;
  gap: 12px;
}

.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-muted);
  font-size: 13px;
}

/* ===== Animations ===== */
.reveal,
.fade-in {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-visual img {
    height: 420px;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }

  .service-card {
    border-right: 1px dashed rgba(0, 0, 0, 0.14);
  }

  .service-card:nth-child(3n) {
    border-right: none;
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  section {
    padding: 64px 0;
  }

  .site-header {
    padding: 12px 0;
  }

  .site-logo img {
    width: 150px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 64px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content h1 {
    font-size: 42px;
    margin: 16px 0 24px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-visual img {
    height: 300px;
  }

  .service .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .works-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }

  .work-card h3 {
    font-size: 15px;
  }

  .about-inner {
    gap: 32px;
  }

  .image-frame {
    min-height: 320px;
  }

  .image-frame img {
    min-height: 320px;
  }

  .about-content h2 {
    font-size: 28px;
  }

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

  .flow-card {
    padding: 24px 20px;
  }

  .flow-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta-inner h2 {
    font-size: 22px;
  }

  .cta-btn {
    min-width: 100%;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
  }

  .footer-icons {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section-script {
    font-size: 42px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-content h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 16px;
  }

  .primary-btn {
    padding: 16px 24px;
    font-size: 14px;
  }

  .service-grid,
  .flow-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.14);
    padding: 24px 20px;
  }

  .service-card:last-child {
    border-bottom: none;
  }

  .about-content h2 {
    font-size: 24px;
    margin: 12px 0 16px;
  }

  .about-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .cta-inner h2 {
    font-size: 20px;
  }

  .cta-inner p {
    font-size: 14px;
  }

  .cta-btn {
    font-size: 14px;
  }
}

