@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) {
  .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; }

  .extension-label {
    display: inline-block;
    width: 400px;
    background: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 2px;
    position: relative;
    top: -10px;
    margin-bottom: 58px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 1.25rem;
  }

  #hero-corepilot {
    position: relative;
    width: 100%;
    height: 440px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 30px auto 60px;
  }

  .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }

  #hero-content {
    width: 100%;
    height: 440px;
    background-image: url("/static/img/core_pilot_graph/core-pilot-graph-pc.png");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 2px;
  }

  .hero-text-wrapper {
    flex: 0 0 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin-left: 40px;
  }

  #hero-title {
    max-width: 500px;
    font-size: 3rem;
    font-weight: 800;
    color: #020617;
    margin: 10px 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.35rem;
    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) #94a3b8 3px; /* 下線もグレー系に修正 */
    text-underline-offset: 5px;
  }

  /* --- カードセクション共通設定 --- */
  .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 #f1f5f9;
    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: #94a3b8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .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: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .value-card-wide h3 {
    font-size: 1.5rem;
    color: #1e293b;
    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: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
  }

  .return-link:hover {
    color: #0f172a;
    border-bottom: 1px solid #0f172a;
    opacity: 1;
  }
}

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

  #hero-corepilot {
    position: relative;
    margin: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    background-image: url("/static/img/core_pilot_graph/core-pilot-graph-mobile.png");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    min-height: 450px;
    display: flex;
    align-items: flex-start;
  }

  .hero-image-wrapper { display: none; }

  #hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
  }

  .hero-text-wrapper {
    padding: 0;
    text-align: left;
    width: 100%;
  }

  .extension-label {
    display: inline-block;
    background: #696969;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 60px;
  }

  #hero-title {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 20px;
    margin-bottom: 48px;
    text-shadow: 0 0 10px rgb(255, 255, 255);
  }

  #hero-copy {
    color: #1e293b;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 255, 255, 1.0),
                 0 0 5px rgba(255, 255, 255, 0.8);
  }

  /* --- PC版と色を同期 --- */
  .management-value { padding: 60px 20px; max-width: 100%; }
  
  .value-card-wide {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important; /* 青からグレーへ修正 */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 35px 25px;
    margin-bottom: 24px;
    width: auto;
  }

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

  .card-icon { 
    font-size: 0.8rem; 
    font-weight: 800; 
    color: #64748b; /* 青からグレーへ修正 */
    white-space: nowrap; 
  }

  .value-card-wide h3 { 
    font-size: 1.3rem; 
    color: #1e293b; /* 青からネイビーグレーへ修正 */
    margin: 0; 
  }

  .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: #475569; /* 青からグレーへ修正 */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
  }

  .return-link:hover { 
    color: #0f172a; 
    border-bottom: 1px solid #0f172a; 
    opacity: 1; 
  }

  /* タブレット・スマホのサイズ調整 */
  @media screen and (min-width: 701px) {
    #hero-title { font-size: 3rem; }
    #hero-copy { font-size: 1.5rem; }
    .extension-label { font-size: 1.25rem; }
  }

  @media screen and (min-width: 481px) and (max-width: 700px) {
    #hero-title { font-size: 2.5rem; }
    #hero-copy { font-size: 1.13rem; }
    .extension-label { font-size: 1rem; }
  }

  @media screen and (max-width: 480px) {
    #hero-corepilot { margin: 16px; min-height: 340px; }
    #hero-content { padding: 30px 20px; }
    #hero-title { font-size: 1.25rem; font-weight: bold; margin-bottom: 24px; }
    #hero-copy { font-size: 1rem; font-weight: bold; }
    .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; }
  }
}
