@charset "UTF-8";

/* =========================================
 * 2025年以降向け プロ仕様CSSリセット
 * ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: #f4f5f7;
  /* 背景色を少しグレーに */
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol {
  margin: 0;
  overflow-wrap: break-word;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

/* =========================================
 * Hero Section Layout
 * ========================================= */

#hero-container {
  position: relative;
  width: 100%;
  /* 最小高さを確保して背景を見せる */
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 垂直方向中央寄せ */
  padding-bottom: 30px;
  overflow: hidden;
  margin-bottom: 30px;
}

/* -----------------------------------------
 * 背景画像レイヤー (絶対配置)
 * ----------------------------------------- */
.hero-background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* ★修正: 背景画像を添付のimage_0.pngに変更 */
  background-image: url(../images/kintone-mv-re001.jpeg);
  /* 画像の表示位置を調整 (右寄せ、中央揃え) */
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* kintoneロゴ（雲のマーク）の配置 */
.hero-logo-kintone {
  background-image: url(../images/logo_kintone_mark.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  /* PCでは右上に配置して賑やかす */
  top: 3%;
  right: 2%;
  width: 160px;
  height: 120px;
  z-index: 1;
}

/* -----------------------------------------
 * コンテンツラッパー
 * ----------------------------------------- */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  /* 背景より手前に */
  max-width: 1200px;
  width: 90%;
  margin: 60px auto 20px;
  /* 上下に余白 */
  display: flex;
  justify-content: flex-start;
  /* 左寄せ（カードを左に配置） */
  align-items: center;
}

/* -----------------------------------------
 * 白いコンテンツカード (The White Box)
 * ----------------------------------------- */
.hero-card {
  background-color: rgba(255, 255, 255, 0.96);
  /* わずかに透過 */
  width: 100%;
  max-width: 580px;
  /* カードの最大幅 */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  /* 浮遊感を出すドロップシャドウ */
}

/* -----------------------------------------
 * カード内要素のデザイン
 * ----------------------------------------- */

/* ロゴエリア */
.kintone-logo-area {
  margin-bottom: 20px;
}

.kintone-logo-area .logo-list {
  display: flex;
  align-items: center;
  /* gap: 15px; */
  flex-wrap: wrap;
  /* Safari対策: 負のマージンで最後のマージンを打ち消す */
  margin-right: -15px;
}

.kintone-logo-area .logo-list li {
  /* Flexアイテムの設定 (前回の修正を維持) */
  flex-shrink: 1;
  flex-basis: auto;

  /* gapの代わりにマージンを設定 */
  margin-right: 15px;
  /* アイテム間にスペースを追加 */

  /* ★修正コード: SafariでのFlexアイテムの幅計算のバグ対策 */
  min-width: 0;
}

.kintone-logo-area .logo-list li img {
  height: 5dvb;
  /* 少し小さめに調整 */
  width: auto;
  object-fit: contain;
}

/* タイトルエリア */
/* * ヘッダー (H1) の調整 */
.hero-header {
  margin-bottom: 20px;
  text-align: center;
}

.hero-header h1 {
  color: #333;
  font-weight: bold;
}

/* 上段：kintone × 伴走支援 - ここで下段との隙間を制御 */
.hero-header h1 .main-title {
  display: block;
  /* ★★ 修正: ブロック要素化で改行とマージンを有効化 ★★ */
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 10px;
  /* ★★ 修正: 下段との隙間を10pxに設定 ★★ */
  color: #000;
}

/* 下段：自治体・中小企業の業務効率化 */
.hero-header h1 .sub-title {
  display: block;
  font-size: 1em;
  line-height: 1.4;
  color: #000;
}

/* 強調ポイント（黄色帯） */
.escortone-point {
  text-align: center;
  background-color: #F9BE00;
  color: #000;
  padding: 8px 15px;
  margin: 0 0 20px 0;
  font-weight: 700;
  font-size: 1.6rem;
  display: inline-block;
  /* 文字幅に合わせる場合 */
  width: 100%;
  /* 全幅にする場合 */
  border-radius: 4px;
}

/* 導入文 */
.introduction-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
  text-align: justify;
}

/* -----------------------------------------
 * CTAボタン
 * ----------------------------------------- */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-cta-contact {
  display: block;
  width: 70%;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.hero-cta-contact:hover {
  transform: translateY(-3px);
  /* 浮き上がる動き */
  opacity: 0.95;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cta-row {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

/* グラデーション背景設定 */
.cta-document .cta-row {
  background-image: linear-gradient(135deg, #FF5F5F, #D324FF);
}

.cta-contact .cta-row {
  background-image: linear-gradient(135deg, #A450FF, #248DFF);
}

.cta-col.cta-img {
  width: 50px;
  margin-right: 15px;
  flex-shrink: 0;
}

.cta-col.cta-img img {
  border-radius: 50%;
  border: 2px solid #fff;
}

.cta-col.cta-text {
  flex-grow: 1;
  color: #fff;
}

.cta-heading {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2px;
  opacity: 0.9;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* -----------------------------------------
 * 下部バナーエリア
 * ----------------------------------------- */
.banner-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-row {
  display: flex;
  justify-content: center;
  /* カードの下に揃えるならflex-start, 中央ならcenter */
  gap: 20px;
  padding: 0 5%;
}

.banner-col {
  width: 48%;
  max-width: 400px;
}

.banner-col a {
  display: block;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.banner-col a:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* バナーの下の余白をリセット */
.fixed__wrap+main {
  margin-top: 9% !important;
  padding-top: 0 !important;
}

/* =========================================
 * Responsive Design
 * ========================================= */

/* タブレット (〜1024px) */
@media (max-width: 1024px) {
  #hero-container {
    min-height: auto;
    padding-top: 40px;
  }

  .hero-content-wrapper {
    justify-content: center;
    /* 中央寄せに変更 */
  }

  .hero-card {
    max-width: 90%;
  }

  /* バナーも中央寄せ */
  .banner-row {
    justify-content: center;
  }

  .hero-logo-kintone {
    width: 200px;
    height: 80px;
    top: 7%;
    right: 80%;
    transform: translate(50%, -50%);
    /* 画像の中央にロゴ */
  }
}

/* スマートフォン (〜768px) */
@media (max-width: 768px) {

  /* スマホでは背景画像を「上部のイメージエリア」として扱うようなレイアウトに変更 */
  #hero-container {
    background-color: #fff;
    padding-top: 0;
    padding-bottom: 20px;
  }

  .hero-background-layer {
    position: relative;
    /* 絶対配置を解除して高さを確保 */
    height: 250px;
    /* スマホでの画像の高さ */
    width: 100%;
    background-position: center center;
    /* スマホでは中央揃え */
  }

  .hero-logo-kintone {
    width: 200px;
    height: 120px;
    top: 35%;
    right: 70%;
    transform: translate(50%, -50%);
    /* 画像の中央にロゴ */
  }

  .hero-content-wrapper {
    margin-top: -30px;
    /* 画像に少し被せる */
    padding: 0 15px;
    width: 100%;
  }

  .hero-card {
    padding: 25px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    /* 上向きの影を意識 */
  }

  .hero-cta-contact {
    width: 100%;
  }

  /* ロゴサイズ調整 */
  .kintone-logo-area .logo-list {
    justify-content: center;
    gap: 10px;
  }

  .kintone-logo-area .logo-list li img {
    height: 40px;
  }

  /* テキストサイズ調整 */
  /* H1のスマホ調整 */
  .hero-header h1 .main-title {
    font-size: 2.8rem;
    /* スマホ用にサイズ調整 */
    margin-bottom: 8px;
    /* スマホ用に隙間を調整 */
  }

  .hero-header h1 .sub-title {
    font-size: 1.6rem;
  }

  /* 強調ポイント（黄色帯） */
  .escortone-point {
    font-size: 1.2rem;
  }

  .introduction-text {
    font-size: 0.98rem;
  }

  .cta-col.cta-text {
    flex-grow: 1;
    color: #fff;
  }

  .cta-heading {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 2px;
    opacity: 0.9;
  }

  .cta-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .hero-cta-contact {
    height: 60px;
  }

  /* バナーを縦積みに */
  .banner-row {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    /* ★修正: 左右に余白を設けて切れないようにする */
    margin-top: 10px;
  }

  .banner-col {
    /* width: 80%; <- 既存のコード */
    width: 85%;
    /* ★修正: 親要素の幅いっぱいに広げる */
    max-width: 400px;
    /* ★追加: デザイン崩れを防ぐための最大幅を設定 */
  }

  .fixed__wrap+main {
    margin-top: 23% !important;
    padding-top: 0 !important;
  }
}

/* -----------------------------------------
 * ロゴエリアの個別調整
 * ----------------------------------------- */
/* .kintone-logo-area .logo-list li.is-large-logo img {
  height: 5dvb !important; 例: 7dvbに大きくする
  必要であれば、他の調整もここに追加できます
} */

/* スマートフォンでの調整も考慮 */
/* @media (max-width: 768px) {
  .kintone-logo-area .logo-list li.is-large-logo img {
    height: 50px;
  }} */


/* スマートフォン (〜768px) ブロック内 */

/* ▼▼▼ ロゴエリアの修正（ここから書き換え） ▼▼▼ */

.kintone-logo-area .logo-list {
  justify-content: center;
  /* PCのネガティブマージンを打ち消し */
  margin-right: 0 !important;
  
  /* ★最重要: 縦横の隙間を一括指定 */
  /* 値1つ目: 縦(行)の隙間 15px */
  /* 値2つ目: 横(列)の隙間 10px */
  gap: 15px 10px; 
}

.kintone-logo-area .logo-list li {
  /* PC用のマージンが邪魔しないように強制的にゼロにする */
  margin: 0 !important;
  
  /* 幅の自動調整 */
  width: auto;
}

/* ▲▲▲ ロゴエリアの修正（ここまで） ▲▲▲ */