/* =========================
   1. 全体共通
========================= */
body {
  margin: 0;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;
  background: #f3f8e6;
  color: #0f172a;
}

/* =========================
   2. ヘッダー
========================= */
.site-header {
  background: #eaf4d8;
  border-bottom: 1px solid #d1d5db;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img { height: 40px; }

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #1f9d8b;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================
   3. 検索ボックス
========================= */
.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  width: 160px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.search-box button {
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  border: 1px solid #ccc;
  background: #1f9d8b;
  color: #fff;
  cursor: pointer;
}

/* =========================
   4. グローバルナビ
========================= */
.global-nav {
  background: #dfeecd;
  border-top: 1px solid #d1d5db;
}

.global-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  gap: 40px;
}

.global-nav a {
  text-decoration: none;
  font-size: 14px;
  color: #0f172a;
}

/* =========================
   5. ハンバーガー & ドロワー
========================= */
.menu-btn {
  width: 36px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn span {
  height: 3px;
  background: #0f172a;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* ドロワーメニュー */
.drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0,0,0,0.15);
  padding: 96px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: 0.4s;
  z-index: 1000;
}

.drawer-menu.open { right: 0; }

.drawer-menu a {
  font-size: 16px;
  text-decoration: none;
  color: #0f172a;
}

.drawer-menu a:hover { color: #1f9d8b; }

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
}

/* =========================
   6. 共通ページレイアウト
========================= */
.page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.page h1 {
  font-size: 28px;
  margin-bottom: 32px;
}

.page h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1f9d8b;
  border-left: 4px solid #1f9d8b;
  padding-left: 10px;
}

.page p {
  font-size: 15px;
  line-height: 1.8;
}

.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: #1f9d8b;
  text-decoration: none;
}

.section {
  margin-bottom: 48px;
}

/* =========================
   7. トップページ
========================= */
.main-visual {
  padding: 24px 20px;
  text-align: center;
}

.main-visual img {
  width: 100%;
  max-width: 840px;
  height: auto;
  object-fit: contain; /* cover でも可だが意味がなくなる */
  border-radius: 16px;
}


.grid-section {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d1d5db;
}

.grid-item {
  background: #fff;
  padding: 32px 24px;
}

.grid-item h3 {
  font-size: 16px;
  color: #1f9d8b;
}

/* =========================
   8. 会社概要・事業・フォーム共通BOX
========================= */
.service-box,
.system-box,
.news-article,
.app-box,
.calendar-box {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 事業画像 */
.service-image,
.calendar-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.service-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.greeting { text-align: center; } 
.greeting-image { width: 100%; max-width: 520px; margin: 0 auto 20px; border-radius: 20px; overflow: hidden; } 
.greeting-image img { width: 100%; height: auto; } 
.greeting-catch { font-size: 18px; font-weight: 700; margin-bottom: 16px; } 
.sign { text-align: right; font-weight: 600; margin-top: 20px; }


/* =========================
   9. フォーム
========================= */
.service-box label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.service-box input,
.service-box textarea,
.service-box select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  margin-bottom: 16px;
}

.service-box textarea {
  min-height: 120px;
  resize: vertical;
}

.service-box button {
  padding: 12px 30px;
  border-radius: 24px;
  border: none;
  background: #1f9d8b;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}


/* アプリ紹介レイアウト */ 
.app-flex { display: flex; gap: 24px; align-items: flex-start; } 
.app-icon { width: 120px; flex-shrink: 0; } 
.app-icon img { width: 100%; border-radius: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform 0.3s, box-shadow 0.3s; }
 .app-icon img:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
/* =========================
   アプリ紹介（スマホ対応）
========================= */
@media screen and (max-width: 768px) {

  /* 白背景からはみ出させない */
  .app-box {
    overflow: hidden;
  }

  /* 横並び → 縦並び */
  .app-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* アイコンサイズ調整 */
  .app-icon {
    width: 90px;
    margin-bottom: 12px;
  }

  .app-icon img {
    width: 100%;
  }
}


/* =========================
   業務管理システム
========================= */
.system-content {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 24px;
}

/* 左アイコン */
.system-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* 右説明 */
.system-text {
  flex: 1;
}

.system-lead {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.system-points {
  padding-left: 18px;
  margin-bottom: 12px;
}

.system-points li {
  margin-bottom: 6px;
}

.system-framework {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}

/* =========================
   下のUI画像（PC用・安定版）
========================= */
.system-ui {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.system-ui img {
  width: 300px;   /* ← 固定 */
  height: auto;
}




/* =========================
   スマホ対応
========================= */
@media screen and (max-width: 768px) {

  .system-box,
  .app-box {
    overflow: hidden;
  }

  .system-content {
    flex-direction: column;
    text-align: center;
  }

  .system-ui {
    flex-direction: column;
    max-width: 100%;
  }

  .system-ui img {
    width: 100%;
    max-width: 100%;
  }
}






/* =========================
   11. フッター
========================= */
footer {
  background: #1f9d8b;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 6px;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.9;
}

/* SNS */
.footer-sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}

.footer-sns img {
  width: 32px;
  height: 32px;
}

/* 白アイコン専用（Instagram / TikTokには付けない） */
.icon-white {
  filter: brightness(0) invert(1);
}

/* =========================
   11. レスポンシブ
========================= */
@media (max-width: 768px) {
  .global-nav { display: none; }
  .search-box input { width: 120px; }
  .grid-section { grid-template-columns: 1fr; }
  .main-visual img { height: 200px; }
  .page h1 { font-size: 24px; }
}
