*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scrollbar-gutter: stable; }

  .page-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
  }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f2f6fb;
    color: #2d3a4a;
    overflow-x: hidden;
  }

  /* ===== NAV ===== */
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    position: relative;
    z-index: 10;
  }

  .logo-text {
    font-family: 'Caveat', cursive;
    font-size: 26px;
    font-weight: 600;
    color: #1e2c3c;
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .logo-text span {
    color: #5bb89a;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }

  .nav-links a {
    text-decoration: none;
    color: #2d3a4a;
    font-size: 14px;
    font-weight: 400;
  }

  .nav-links a.active {
    color: #5b8fc9;
    border-bottom: 2px solid #5b8fc9;
    padding-bottom: 2px;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
  }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 48px 80px 48px;
    min-height: 620px;
    overflow: hidden;
  }

  .hero-left {
    flex: 1;
    position: relative;
    z-index: 5;
    padding-top: 10px;
  }

  .hero-hello {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: #2d3a4a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .hero-title {
    font-size: 52px;
    font-weight: 500;
    line-height: 1.25;
    color: #1e2c3c;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
  }

  .hero-desc {
    font-size: 14px;
    color: #4a5a6a;
    line-height: 1.8;
    margin-bottom: 32px;
  }

  .btn-about {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6b9ec7;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-decoration: none;
  }

  .hero-code-tag {
    margin-top: 36px;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: #5b8fc9;
    opacity: 0.7;
  }

  /* hero right */
/**
  .hero-main-img {
    position: absolute;
    width: 550px;
    right: -40px;
    top: -20px;
    z-index: 3;
  }
*/
  .hero-blob-bg {
    position: absolute;
    right: -80px;
    top: -60px;
    width: 580px;
    height: 580px;
    z-index: 1;
  }

  .hero-right {
    flex: 1;
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-code {
    position: absolute;
    width: 260px;
    bottom: 60px;
    right: -20px;
    z-index: 5;
  }

  .hero-mug {
    position: absolute;
    width: 150px;
    bottom: 10px;
    left: 20px;
    z-index: 4;
  }

  .hero-plane {
    position: absolute;
    width: 320px;
    top: 10px;
    left: -280px;
    z-index: 4;
  }

  .hero-leaves {
    position: absolute;
    width: 280px;
    top: -20px;
    right: -20px;
    z-index: 6;
    pointer-events: none;
  }

  /* deco elements hero */
  .deco-wave {
    position: absolute;
    width: 120px;
    bottom: 20px;
    left: 260px;
    z-index: 6;
    opacity: 0.8;
  }

  .deco-curly-green {
    position: absolute;
    width: 80px;
    bottom: 30px;
    left: 180px;
    z-index: 4;
    opacity: 0.8;
  }

  .deco-dots-hero {
    position: absolute;
    width: 90px;
    top: 60px;
    left: 0;
    z-index: 1;
    opacity: 0.4;
  }

  /* ===== APPS SECTION ===== */
  .apps-section {
    padding: 60px 48px 40px;
    position: relative;
    overflow: hidden;
  }

  .apps-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .apps-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    white-space: nowrap;
  }

  .apps-cube {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .apps-title {
    font-size: 28px;
    font-weight: 500;
    font-family: 'Caveat', cursive;
    color: #2d3a4a;
    white-space: nowrap;
  }

  .apps-sub {
    font-size: 13px;
    color: #7a8a9a;
    font-weight: 300;
  }

  /* App card */
  .app-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    max-width: 720px;
    margin: 0 auto 32px;
    position: relative;
    box-shadow: 0 4px 24px rgba(100,140,200,0.08);
  }

  .app-card-number {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: #5b8fc9;
    position: absolute;
    top: -14px;
    left: 24px;
  }

  .app-card-inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
  }

  .app-card-left {
    flex: 1;
  }

  .app-card-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
  }

  .app-icon {
    width: 156px;
    height: 156px;
    border-radius: 36px;
    flex-shrink: 0;
  }

  .app-name {
    font-size: 22px;
    font-weight: 500;
    color: #2d3a4a;
  }

  .app-tagline {
    font-size: 13px;
    color: #7a8a9a;
    margin-top: 2px;
  }

  .app-desc {
    font-size: 13px;
    line-height: 1.9;
    color: #4a5a6a;
    margin-bottom: 20px;
  }

  .btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6b9ec7;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 11px 24px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    margin-bottom: 16px;
    text-decoration: none;
  }

  .app-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }
  .app-tag {
    background: #fff;
    border: 1px solid #dde6f0;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 14px;
    color: #4a6080;
    font-family: 'Noto Sans JP', sans-serif;
  }

  .app-card-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-phone {
    width: 170px;
    border-radius: 20px; /* 好きな丸み */
  }

  /* blob deco behind card */
  .apps-blob-right {
    position: absolute;
    right: 30px;
    top: 80px;
    width: 180px;
    opacity: 0.5;
    z-index: 0;
  }

  .apps-yellow-deco {
    position: absolute;
    right: 200px;
    bottom: 180px;
    width: 80px;
    opacity: 0.8;
    z-index: 10;
  }

  /* ===== COMING SOON ===== */
  .coming-section {
    padding: 16px 48px 60px;
    position: relative;
  }

  .coming-grid {
    display: grid;
    grid-template-columns: 270px 270px 270px 270px;
    gap: 16px;
    max-width: 1100px;
    margin: 0;
    align-items: stretch;
  }

  .coming-more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
  }

  .coming-more img {
    width: 130px;
  }

  .coming-card {
    width: 100%;
    aspect-ratio: 1;
    max-width: 270px;
  }

  /* ===== FOOTER ===== */
  footer {
    padding: 24px 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
  }

  .footer-social {
    height: 56px;
    width: 200px;
    object-fit: contain;
  }

  .footer-copy {
    height: 44px;
    width: 200px;
    object-fit: contain;
  }

  .footer-plant {
    position: absolute;
    right: 48px;
    bottom: 20px;
    width: 80px;
    opacity: 0.8;
  }


/* ===== CONTACT ===== */  
.contact-section {
  padding: 100px 20px;
  background: #f9fbfd;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-card {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 40px;
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 左 */
.contact-text {
  flex: 1;
}

.mail-box {
  background: #f1f6fb;
  padding: 10px;
  border-radius: 10px;
  margin-top: 20px;
}

/* フォーム */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.contact-form button {
  background: linear-gradient(135deg, #6fb1fc, #4364f7);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
}

#formStatus {
  font-size: 12px;
  color: #888;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .contact-card {
    flex-direction: column;
  }
}

/* 画像の基本ルール（超重要） */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ハンバーガーボタン — デスクトップでは非表示 */
.hamburger {
  display: none;
}



/* =========================
   📱 スマホ対応
========================= */
@media (max-width: 768px) {

  /* 全体余白 */
  nav {
    padding: 16px;
  }
  .hero,
  .apps-section,
  .coming-section,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ===== NAV ===== */

  /* ===== HERO ===== */
  /*
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px 40px;
  }
  */
  .hero {
    position: relative;   /* ← これ絶対必要 */
    overflow: hidden;
  }

  /* 背景画像レイヤー */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/images/index/element_61_r1c1.png") no-repeat center;
    background-size: cover;
    background-position: right 20% bottom;
    opacity: 1;
    z-index: 0;   /* ← 一番下 */
  }
  
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .hero-left {
    /*width: 100%;*/
    position: relative;
    z-index: 2;    
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 13px;
  }

  /* 右側全部消す（これ超重要） */
  .hero-right {
    display: none;
  }
  .hero-main-img,
  .hero-blob-bg,
  .hero-plane,
  .hero-code,
  .hero-leaves {
    display: none;
  }
  .deco-wave,
  .deco-curly-green,
  .deco-dots-hero {
    display: none;
  }

  /* ===== APPS ===== */
  .app-card {
    padding: 20px;
  }

  .app-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-icon {
    width: 100px;
    height: 100px;
  }

  .app-phone {
    width: 140px;
  }

  .app-card-right {
    display: none;
  }

  /* ===== COMING SOON ===== */
  .coming-grid {
    grid-template-columns: 1fr;
    justify-items: center; /* ← これが超重要 */
  }

  .coming-card {
    max-width: 100%;
  }

  /* ===== CONTACT ===== */
  .contact-card {
    flex-direction: column;
    padding: 20px;
  }

  /* ===== FOOTER ===== */
  .footer-plant {
    display: none;
  }

  /**
   * さらに細かい調整
   *  - ナビのリンクを2行にしてスペース確保
   *  - アプリカードの右側の写真を小さくして、全体のバランスを取る
   */

  /* ===== NAV ドロップダウン ===== */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 99;
  }

  .nav-links.open {
    max-height: 360px;
  }

  .nav-links li {
    flex: none;
    text-align: left;
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    color: #2d3a4a;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-links a:hover {
    background: rgba(91,140,200,0.05);
    color: #5b8fc9;
  }

  /* ===== ハンバーガー ===== */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 200;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2d3a4a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


}

