/* =========================================================
   HP-INDEX-001 共通定義
========================================================= */
:root{
  --index-color-heading:#0a1b44;          /* トップページ共通見出し色 */
  --index-color-primary:#2563eb;          /* トップページ共通アクセント色 */
  --index-color-news-label:#123b8f;       /* お知らせラベル背景色 */
  --index-color-text:#4a5568;              /* 会社情報本文色 */
  --index-color-section-gray:#f5f7fb;      /* 会社概要セクション背景色 */
  --index-color-border:#ddd;               /* お知らせ区切り線色 */
  --index-font-section-title:42px;         /* PC共通セクション見出しサイズ */
}

/* =========================================================
   HP-INDEX-002 固定背景
========================================================= */
.hero-bg{
  position:fixed;                            /* 背景固定 */
  inset:0;                                   /* 全画面配置 */
  width:100%;
  height:100vh;
/*
  background:
    linear-gradient(
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.18)
    ),
    url("../images/systembranch_bg0_pc.png");
*/
  background-image:url("../images/systembranch_bg0_pc.png");
  background-size:cover;                     /* 背景画像：全体表示 */
  background-position:center;                /* 背景画像：中央配置 */
  z-index:-1;                                /* 背面配置 */
  filter:brightness(1.08) saturate(1.05);    /* 明るさ・彩度調整 */
}

/* =========================================================
   HP-INDEX-003 ファーストビュー
========================================================= */
.hero{
  height:50vh;
  position:relative;
}

/* 企業メッセージ */

.hero-message{
  position:absolute;                          /* 固定背景の手前に企業メッセージを配置 */
  top:425px;                                  /* 全体を移動 */
  display:flex;                               /* メッセージ全体を縦方向中央へ配置 */
  align-items:center;                         /* ファーストビュー内で上下中央揃え */
  min-height:40vh;                            /* 従来の背景表示領域を保持 */
  padding:40px 8% 72px;                      /* 固定ヘッダーと画面端からの余白を確保 */
  overflow:hidden;                            /* 装飾グラデーションのはみ出しを抑止 */
  z-index:1;                                  /* 固定背景より前面へ表示 */
}

.hero-message::before{
  content:"";                              /* 文字を読みやすくする左側の光彩レイヤー */
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(2,18,55,0.88) 0%,rgba(4,39,95,0.70) 38%,rgba(6,49,108,0.25) 66%,rgba(6,49,108,0) 100%);
  pointer-events:none;                        /* 装飾レイヤーによる操作阻害を防止 */
}

.hero-message-inner{
  position:relative;                          /* グラデーションより前面に文章を配置 */
  width:min(760px,58vw);                      /* 右側の背景グラフを見せる幅に制限 */
  color:#fff;
  text-shadow:0 2px 18px rgba(0,13,45,0.72); /* 明るい背景部分でも可読性を確保 */
  z-index:1;
}

.hero-message-lead{
  margin:0 0 14px;
  font-size:clamp(18px,1.45vw,25px);          /* 画面幅に応じて本文サイズを調整 */
  font-weight:500;
  line-height:1.9;
  letter-spacing:0.04em;
}

.hero-message-bridge{
  display:flex;
  align-items:baseline;                       /* 英語名と日本語名の基準線を揃える */
  flex-wrap:wrap;                             /* 狭い幅では自然に折り返す */
  gap:8px 14px;
  margin:0 0 16px;
}

.hero-message-bridge-en{
  font-size:clamp(36px,4.6vw,72px);           /* 最重要語をファーストビュー最大文字で表示 */
  font-weight:700;
  line-height:1.05;
  letter-spacing:0.015em;
  color:#fff;
  text-shadow:0 0 12px rgba(90,197,255,0.92),0 0 34px rgba(32,132,255,0.62);
}

.hero-message-bridge-ja{
  font-size:clamp(15px,1.35vw,21px);          /* 英語名を補足する日本語表記 */
  font-weight:500;
  letter-spacing:0.08em;
  color:#d9f3ff;
}

.hero-message-history,
.hero-message-future{
  margin:0;
  font-size:clamp(16px,1.2vw,20px);
  line-height:1.9;
  letter-spacing:0.035em;
}

.hero-message-history{
  margin-bottom:14px;
}

.hero-message-history strong{
  display:inline-block;                       /* 実績年数を独立した強調要素として表示 */
  margin:0 3px;
  font-size:1.24em;
  color:#9fe5ff;
  text-shadow:0 0 16px rgba(64,191,255,0.82);
}

.hero-message-future{
  color:rgba(255,255,255,0.92);
}

/* =========================================================
   HP-INDEX-004 コンテンツ領域
========================================================= */
.top-content{
  position:relative;
  margin-top:40vh;
  background:white;
  z-index:10;
}

/* =========================================================
   HP-INDEX-005 共通セクション
========================================================= */
.top-section{
  padding:120px 10%;
}

.top-section h2,
.section-title-wrap h2,
.section-title-wrap h3{
  font-size:var(--index-font-section-title); /* PC共通セクション見出しサイズ */
  color:var(--index-color-heading);          /* PC共通セクション見出し色 */
}

.top-section h2{
  margin-bottom:40px;
}

.top-section.gray{
  background:var(--index-color-section-gray);
}

/* =========================================================
   HP-INDEX-006 お知らせ
========================================================= */
.news-list{
  margin-top:40px;
}

.news-item{
  padding:25px 0;
  border-bottom:1px solid var(--index-color-border);
}

.news-item .date{
  margin-right:20px;
}

.news-item .label{
  background:var(--index-color-news-label);
  color:white;
  font-size:12px;
  padding:4px 10px;
  border-radius:4px;
  margin-right:20px;
}

/* =========================================================
   HP-INDEX-007 会社情報
========================================================= */
.company-info-section{
  padding:0 10% 120px;
}

.section-title-wrap{
  text-align:center;
  margin-bottom:60px;
}

.section-title-wrap h2,
.section-title-wrap h3{
  font-weight:600;
}

.info-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:30px;
  max-width:1100px;
  margin:0 auto;
}

.info-card{
  background:rgba(255,255,255,0.72);
  backdrop-filter:blur(18px);
  border-radius:28px;
  padding:40px;
  box-shadow:0 10px 40px rgba(0,0,0,0.05);
}

.info-card h3{
  color:var(--index-color-primary);
  font-size:15px;
  margin-bottom:16px;
  letter-spacing:1px;
}

.info-card p{
  color:var(--index-color-text);
  font-size:22px;
  line-height:1.8;
}

/* =========================================================
   HP-INDEX-008 事務所情報
========================================================= */
.office-section{
  margin-top:10px;
}

.office-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:40px;
  max-width:1200px;
  margin:0 auto;
}

.office-card{
  background:white;
  backdrop-filter:blur(18px);                /* 現在の提供コードを保持 */
  border-radius:30px;
  overflow:hidden;
  box-shadow:0 10px 40px rgba(0,0,0,0.06);
}

.office-label{
  background:var(--index-color-primary);
  color:white;
  padding:8px 16px;
  display:inline-block;
  border-radius:999px;
  margin:24px;
}

.office-card h3{
  font-size:28px;
  margin:20px 24px 10px;
}

.office-address{
  padding:0 24px 24px;
}

.map-wrap iframe{
  width:100%;
  height:320px;
  border:none;
}

/* =========================================================
   HP-INDEX-009 事業内容
========================================================= */
.hero-text{
  max-width:860px;
  margin:0 auto 50px;
  text-align:center;
  font-size:20px;
  line-height:2;
}

.service-list{
  margin-top:30px;
  padding-left:20px;
}

.service-list li{
  margin-bottom:16px;
}

/* =========================================================
   HP-INDEX-010 アクセシビリティ
========================================================= */
.visually-hidden{
  position:absolute;                         /* 通常レイアウトから分離 */
  width:1px;                                 /* 画面上の占有幅を最小化 */
  height:1px;                                /* 画面上の占有高さを最小化 */
  padding:0;                                 /* 余白を除去 */
  margin:-1px;                               /* 表示領域外へ退避 */
  overflow:hidden;                           /* 内容を画面上へ表示しない */
  clip:rect(0,0,0,0);                        /* 旧ブラウザ向けに表示領域を切り取る */
  white-space:nowrap;                        /* 改行による領域拡大を防止 */
  border:0;                                  /* 枠線を除去 */
}

/* =========================================================
   HP-INDEX-011 UI操作制御
========================================================= */
body{
  user-select:none;                           /* トップページ全体の不要な文字選択を抑止 */
  -webkit-user-select:none;                   /* Safari向け文字選択抑止 */
}

.info-card p,
.office-address{
  user-select:text;                           /* 会社情報・住所・電話番号・FAX番号のみ選択可能 */
  -webkit-user-select:text;                   /* Safari向け文字選択許可 */
}

/* =========================================================
   HP-INDEX-101 SP表示（768px以下）
========================================================= */
@media(max-width:768px){

  .hero-bg{
    background-position:62% center;           /* SPでは文字背面の情報量を抑えつつ右側デザインを残す */
  }

  .hero-message{
    top:30vh;
    align-items:flex-start;                   /* SPでは上部から順に読みやすく配置 */
    min-height:auto;
    padding:20px 0px 58px;                 /* 固定ヘッダーと左右余白を確保 */
  }

  .hero-message::before{
    background:linear-gradient(180deg,rgba(1,17,52,0.92) 0%,rgba(3,37,88,0.82) 58%,rgba(4,45,101,0.64) 100%);
  }

  .hero-message-inner{
    width:calc(100% - 60px);                    /* 左右30pxずつ確保 */
    margin:0 auto;
    text-align:left;
  }

  .hero-message-lead{
    margin-bottom:16px;
    font-size:16px;
    line-height:1.85;
    letter-spacing:0.025em;
  }

  .hero-message-pc-break{
    display:none;                             /* SPでは端末幅に応じた自然改行へ切り替え */
  }

  .hero-message-bridge{
    display:block;                            /* SPでは英語名と日本語名を2段表示 */
    margin-bottom:18px;
  }

  .hero-message-bridge-en{
    display:block;
    font-size:clamp(31px,10.2vw,46px);
    white-space:nowrap;                       /* ブランド名を1行で保持 */
  }

  .hero-message-bridge-ja{
    display:block;
    margin-top:7px;
    font-size:14px;
  }

  .hero-message-history,
  .hero-message-future{
    font-size:14px;
    line-height:1.85;
    letter-spacing:0.02em;
  }

  .hero-message-history{
    margin-bottom:15px;
  }

  .top-content{
    padding-top:0;                            /* ヘッダー余白を企業メッセージ側で確保するため解除 */
  }

  .top-content{
    padding-top:100px;                       /* SP時にヘッダー分の余白を確保 */
  }

  .top-section{
    padding:80px 6%;                         /* SP時のセクション余白 */
  }

  .top-section h2{
    font-size:32px;                          /* SP時の見出しサイズ */
  }

  .hero-text{
    font-size:16px;                          /* SP時の本文サイズ */
  }

  .service-list li{
    font-size:16px;                          /* SP時のリスト文字サイズ */
  }

  .info-grid{
    grid-template-columns:1fr;               /* SPでは会社情報カードを1列表示 */
  }

  .office-grid{
    grid-template-columns:1fr;               /* SPでは事務所カードを1列表示 */
  }
}
