@charset "utf-8";

/* ==================================================
   共通設定（全デバイス共通）
================================================= */
article {
  width: 950px;
  margin: 0 auto 50px;
  color: #444;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ==================================================
   🖥 PC（1024px〜）最新最適化版
================================================= */
@media screen and (min-width: 1024px) {
  
  /* 1. ヒーローセクション：文字組みとレイアウト */
  .moji-trim-left { display: inline-block; margin-left: -0.45em; letter-spacing: -0.2rem; vertical-align: middle; }
  .moji-trim-right { display: inline-block; margin-right: -0.2em; letter-spacing: -0.2rem; vertical-align: middle; }

  .line-break { display: block; }
  /* PrivateAI-Platform Extension ラベルの装飾 */
.extension-label {
    display: inline-block;
    width:400px;
    background-color: #eff6ff;    /* 非常に淡い青色背景 */
    color: #2563eb;               /* 鮮やかなブランドブルー */
    font-size: 0.85rem;           /* 少し小さめで洗練された印象に */
    font-weight: 700;             /* 太字で存在感を出す */
    padding: 4px 12px;            /* 上下左右に適切な余白 */
    border-radius: 6px;           /* 角を少し丸める */
    border: 1px solid #dbeafe;    /* 背景より少し濃い境界線 */
    margin-bottom: 16px;          /* 下のタイトルとの間隔 */
    letter-spacing: 0.05em;       /* わずかに字間を広げて可読性アップ */
    text-transform: uppercase;    /* 英字を大文字にしてプロっぽさを出す */
    font-size:1.25rem;
}

  #hero-corepilot {
    position: relative;
    width: 100%;
    height: 440px;
    background: linear-gradient(to right, #ffffff 65%, #f1f5f9 65%);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin: 30px auto 60px;
  }

  #hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
  }

  .hero-text-wrapper {
    flex: 0 0 650px;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    height: 100%;
    margin-left: -25px; /* 親のpaddingを調整して左端を揃える */
  }

  #hero-title {
    max-width: 500px;
    font-size: 3rem;
    font-weight: 800;
    color: #020617;
    margin: 50px 0 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
  }

  #hero-copy {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
    max-width: 600px;
    margin-top: 15px;
    font-feature-settings: "palt";
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }

  #hero-copy-highlight {
    color: #0f172a;
    text-decoration: underline cubic-bezier(.4, 0, .2, 1) #2563eb 3px;
    text-underline-offset: 5px;
  }

  /* ヒーロー画像（白カード部分） */
  .hero-image-wrapper {
    position: absolute;
    right: 25px;
    top: 60%;
    transform: translateY(-50%);
    z-index: 5;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    width: 480px;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.2);
    image-rendering: -webkit-optimize-contrast;
  }

  .management-value {
    max-width: 1000px; /* 少し広めに設定 */
    margin: 0 auto;
    padding: 0;
  }

  .value-stack-layout {
    display: flex;
    flex-direction: column;
    gap: 30px; /* カード同士の間隔 */
  }

  .value-card-wide {
    background: #ffffff;
    padding: 40px 50px; /* 左右の余白をたっぷり取る */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
  }

  .value-card-wide:hover {
    transform: translateY(-3px);
    border-color: #2563eb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  }

  .card-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
  }

  .card-icon {
    font-size: 0.85rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .value-card-wide h3 {
    font-size: 1.5rem;
    color: #1e40af;
    margin: 0;
    line-height: 1.2;
  }

  .value-card-wide p {
    font-size: 1.2rem;
    line-height: 1.8; /* 行間を広げて横への視線移動を楽に */
    color: #334155;
    text-align: justify;
    margin: 0;
    /* 文章が横長になるよう、最大幅を制限しすぎない */
  }

  #return-main {
    text-align: center;
    padding: 40px 0 120px; /* 下に余裕を持たせてページを締めくくる */
    background: #ffffff;
    font-size:1.2rem;
  }

  .return-description {
    color: #64748b; /* 少し淡い色にして、主張を抑える */
    margin-bottom: 25px;
    line-height: 1.6;
  }

  /* テキストリンク：ボタンではなく、洗練された「道しるべ」として */
  .return-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent; /* 下線の予備線 */
    padding-bottom: 2px;
  }

  .return-link:hover {
    color: #1d4ed8;
    border-bottom: 1px solid #1d4ed8; /* ホバー時のみ細い線を表示 */
    opacity: 0.8;
  }

}

/* ==================================================
   📱 モバイル・タブレット共通（〜1023px）
================================================== */
@media screen and (max-width: 1023px) {
  article {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* 1. ヒーローセクション：PC版の構造を上下に再配置 */
  #hero-corepilot {
    margin: 0;
    background: #ffffff; /* 上半分はテキスト用の白 */
    border-radius: 0;
    height: auto;
    border: none;
    display: block;
    overflow: visible;
  }

  #hero-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
  }

  /* テキストエリア（白背景領域） */
  .hero-text-wrapper {
    padding: 60px 24px 40px;
    text-align: center;
    width: 100%;
    margin-left: 0;
    height: auto;
  }

  .extension-label {
    display: inline-block;
    width: auto !important;
    background-color: #eff6ff;
    color: #2563eb;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.9rem !important;
    margin-bottom: 25px;
    border: 1px solid #dbeafe;
  }

  #hero-title {
    font-size: 2.5rem;
    margin: 0 auto 20px;
    line-height: 1.2;
    max-width: 100%;
  }

  #hero-copy {
    font-size: 1.25rem;
    line-height: 1.7;
    margin: 0 auto;
    color: #334155;
  }

  /* 画像エリア：PC版の「灰色領域」を完全再現 */
  .hero-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    background: #f1f5f9; /* PC版と同じ灰色領域 */
    padding: 20px 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e2e8f0;
    /* 白いカードを模した装飾（画像自体ではなくコンテナの装飾） */
    box-shadow: inset 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }

  /* 白いカードの上に載るアップリケ画像 */
  .hero-image-wrapper picture {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff; /* 白いカード部分 */
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    max-width: 450px;
    width: 90%;
  }

  .hero-image-wrapper img {
    width: 100%;
    height: auto;
    transform: scale(1.1); /* PC版に近い迫力を出すための微調整 */
    object-fit: contain;
  }

  .management-value {
    padding: 60px 20px;
    max-width: 100%;
  }

  /* 1. カードのデザインをPC版から継承しつつモバイル最適化 */
  .value-card-wide {
    background: #ffffff !important; /* 背景色を強制維持 */
    border: 1px solid #e2e8f0 !important; /* 枠線を強制維持 */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 35px 25px; /* モバイルの幅に合わせて左右の余白を少し調整 */
    margin-bottom: 24px;
    width: auto;
  }

  /* 2. ヘッダー部分（アイコンとタイトル） */
  .card-header {
    display: flex;
    align-items: baseline; /* PC版と同じく1行で並べる */
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
  }

  .card-icon {
    font-size: 0.8rem;
    font-weight: 800;
    color: #2563eb;
    white-space: nowrap;
  }

  .value-card-wide h3 {
    font-size: 1.3rem; /* 少しだけサイズを下げて1行に収まりやすくする */
    color: #1e40af;
    margin: 0;
  }

  /* 3. 本文：横長の印象を維持 */
  .value-card-wide p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    text-align: justify;
    margin: 0;
  }


  #return-main {
    padding: 0px 20px 100px;
    text-align: center;
  }
  
  .return-description {
    color: #64748b; /* 少し淡い色にして、主張を抑える */
    margin-bottom: 25px;
    line-height: 1.6;
  }

  /* テキストリンク：ボタンではなく、洗練された「道しるべ」として */
  .return-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent; /* 下線の予備線 */
    padding-bottom: 2px;
  }

  .return-link:hover {
    color: #1d4ed8;
    border-bottom: 1px solid #1d4ed8; /* ホバー時のみ細い線を表示 */
    opacity: 0.8;
  }
}

/* 📱 スマホ専用（〜480px）の微調整 */
@media screen and (max-width: 480px) {
  #hero-title { font-size: 1.9rem; font-weight:bold;}
  #hero-copy { font-size: 1.1rem; font-weight:bold;}
  .hero-image-wrapper picture { padding: 15px; } /* スマホではカード内の余白をタイトに */
  .card-header {
    flex-direction: column; /* 極小画面では縦並びにして崩れを防ぐ */
    align-items: flex-start;
    gap: 5px;
  }

  .value-card-wide {
    padding: 25px 20px; /* さらに余白をタイトに */
  }

  .value-card-wide h3 {
    font-size: 1.2rem;
  }

  .value-card-wide p {
    font-size: 1rem;
  }
}

