/* ========================================
   肉球エンジニアリングサービス合同会社
   Design: Organic Technology — 安曇野の風
   プレーンCSS（フレームワーク不使用）
   ======================================== */

/* --- リセット & ベース --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #3A3A3A;
  background-color: #FFF9F0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- ユーティリティ --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.text-orange { color: #F28B50; font-weight: 700; }
.link-orange { color: #F28B50; font-weight: 500; transition: opacity 0.2s; }
.link-orange:hover { opacity: 0.7; text-decoration: underline; }

.hide-sp { display: none; }
@media (min-width: 640px) {
  .hide-sp { display: inline; }
}

/* --- フェードインアニメーション --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- ボタン共通 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(135deg, #F28B50, #E06830);
  color: #fff;
  box-shadow: 0 4px 16px rgba(242, 139, 80, 0.3);
}
.btn--primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(242, 139, 80, 0.4);
}

.btn--outline {
  border: 2px solid rgba(242, 139, 80, 0.3);
  color: #F28B50;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  background: rgba(242, 139, 80, 0.1);
  border-color: rgba(242, 139, 80, 0.5);
}

.btn--white {
  background: #fff;
  color: #F28B50;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}
.btn--white:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn--map {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* --- チップ --- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: #FFF0E8;
  color: #E06830;
  border: 1px solid rgba(242, 139, 80, 0.15);
}

/* --- セクション共通 --- */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header { margin-bottom: 4rem; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #F28B50;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-label-line {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: #F28B50;
}

.section-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title { font-size: 2rem; }
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

.section-desc {
  color: #6B6B6B;
  max-width: 36rem;
  margin: 0 auto;
  font-size: 0.9375rem;
}


/* ========================================
   ヘッダー
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* スマホでメニューを開いている間はヘッダ背景を白にする */
@media (max-width: 767px) {
  .header.is-menu-open {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-inner { height: 5rem; }
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-paw {
  color: #F28B50;
  transition: transform 0.3s;
}

.logo:hover .logo-paw {
  transform: rotate(12deg);
}

.logo-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #3A3A3A;
}

@media (min-width: 768px) {
  .logo-text { font-size: 1rem; }
}

/* デスクトップナビ */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3A3A3A;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: #F28B50;
}

.btn-nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #F28B50, #F4A7B9);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(242, 139, 80, 0.3);
  color: #fff !important;
}

/* ハンバーガー */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3A3A3A;
  transition: all 0.3s;
}

.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* モバイルメニュー */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.mobile-menu.is-open {
  max-height: 24rem;
  border-bottom: 1px solid rgba(244, 167, 185, 0.2);
}

@media (min-width: 768px) {
  .mobile-menu { display: none; }
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mobile-menu-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #3A3A3A;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu-nav a:hover {
  color: #F28B50;
}

.btn-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #F28B50, #F4A7B9);
  margin-top: 0.5rem;
}


/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #FFF5EC 0%, #FFF0E8 30%, #FFE8E0 70%, #FFDDD5 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-size: cover;
  background-position: center;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-blob--pink {
  top: -5rem;
  right: -5rem;
  width: 400px;
  height: 400px;
  opacity: 0.2;
  background: radial-gradient(circle, #F4A7B9, transparent);
}

.hero-blob--orange {
  bottom: -8rem;
  left: -8rem;
  width: 500px;
  height: 500px;
  opacity: 0.15;
  background: radial-gradient(circle, #F28B50, transparent);
}

.hero-paw {
  position: absolute;
  display: none;
}

@media (min-width: 768px) {
  .hero-paw { display: block; }
}

.hero-paw--1 {
  top: 15%;
  right: 8%;
  color: rgba(242, 139, 80, 0.06);
  transform: rotate(-15deg);
}

.hero-paw--2 {
  bottom: 20%;
  left: 5%;
  color: rgba(244, 167, 185, 0.08);
  transform: rotate(20deg);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 8rem 1rem 6rem;
}

@media (min-width: 768px) {
  .hero-content { padding: 10rem 1rem 8rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(242, 139, 80, 0.2);
  margin-bottom: 2rem;
}

.hero-badge svg { color: #F28B50; }

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3A3A3A;
}

.hero-heading {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  color: #3A3A3A;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-heading { font-size: 2.5rem; }
}

@media (min-width: 768px) {
  .hero-heading { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-heading { font-size: 3.5rem; }
}

.hero-heading-accent {
  display: inline-block;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #F28B50, #E06830);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: #5A5A5A;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

@media (min-width: 640px) {
  .hero-sub { font-size: 1.125rem; }
}

@media (min-width: 768px) {
  .hero-sub { font-size: 1.25rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}


/* ========================================
   サービスセクション
   ======================================== */
.services-section {
  background-color: #FFF9F0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(244, 167, 185, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s, box-shadow 0.5s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.service-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #FFF5EC;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.service-card-badge svg { color: #F28B50; }

.service-card-body {
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .service-card-body { padding: 2rem; }
}

.service-card-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .service-card-title { font-size: 1.25rem; }
}

.service-card-desc {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.7;
  margin-bottom: 1rem;
}


/* ========================================
   強み・特徴セクション
   ======================================== */
.strengths-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF0E8 50%, #FFF9F0 100%);
}

.strengths-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.strengths-blob--1 {
  top: 2rem;
  right: 0;
  width: 300px;
  height: 300px;
  opacity: 0.1;
  background: radial-gradient(circle, #F28B50, transparent);
}

.strengths-blob--2 {
  bottom: 2rem;
  left: 0;
  width: 250px;
  height: 250px;
  opacity: 0.1;
  background: radial-gradient(circle, #F4A7B9, transparent);
}

.strengths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .strengths-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.strength-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s, box-shadow 0.4s;
}

@media (min-width: 1024px) {
  .strength-card { padding: 2rem; }
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.strength-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF0E8, #FFE0D0);
  margin-bottom: 1.25rem;
}

.strength-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 0.75rem;
}

.strength-desc {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.7;
}


/* ========================================
   会社概要セクション
   ======================================== */
.company-section {
  background-color: #FFF9F0;
}

.company-table-wrap {
  max-width: 48rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(244, 167, 185, 0.1);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid rgba(244, 167, 185, 0.1);
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th,
.company-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  vertical-align: top;
}

@media (min-width: 1024px) {
  .company-table th,
  .company-table td {
    padding: 1.25rem 2rem;
  }
}

.company-table th {
  font-weight: 700;
  color: #F28B50;
  white-space: nowrap;
  width: 8rem;
}

@media (min-width: 1024px) {
  .company-table th { width: 10rem; }
}

.company-table td {
  color: #3A3A3A;
  line-height: 1.7;
}

/* スマホでは縦並び */
@media (max-width: 639px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
  }
  .company-table th {
    padding-bottom: 0.25rem;
  }
  .company-table td {
    padding-top: 0.25rem;
    padding-bottom: 1rem;
  }
}


/* ========================================
   アクセスセクション
   ======================================== */
.access-section {
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF0E8 100%);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .access-grid { grid-template-columns: 1fr 1fr; }
}

.access-image-wrap {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(244, 167, 185, 0.1);
}

.access-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}

.access-info {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(244, 167, 185, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .access-info { padding: 2.5rem; }
}

.access-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.access-info-item:last-of-type {
  margin-bottom: 0;
}

.access-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #FFF0E8, #FFE0D0);
}

.access-info-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #3A3A3A;
  margin-bottom: 0.25rem;
}

.access-info-text {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.7;
}


/* ========================================
   CTAセクション
   ======================================== */
.cta-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, #F28B50, #E06830, #F4A7B9);
}

@media (min-width: 768px) {
  .cta-section { padding: 7rem 0; }
}

.cta-paw {
  position: absolute;
}

.cta-paw--1 {
  top: -30px;
  right: -30px;
  color: rgba(255, 255, 255, 0.06);
  transform: rotate(-20deg);
}

.cta-paw--2 {
  bottom: -20px;
  left: -20px;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(15deg);
}

.cta-dots {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 80%, white 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, white 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta-icon {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 1.5rem;
  display: block;
}

.cta-heading {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cta-heading { font-size: 2rem; }
}

@media (min-width: 768px) {
  .cta-heading { font-size: 2.25rem; }
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-email {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}


/* ========================================
   フッター
   ======================================== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(244, 167, 185, 0.15);
  background-color: #FFF9F0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo svg { color: #F28B50; }

.footer-logo span {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #3A3A3A;
}

.footer-copy {
  font-size: 0.75rem;
  color: #9A9A9A;
}
