@charset "UTF-8";
/* ==========================================================================
   site.css — HISPRO 固有の実装
   --------------------------------------------------------------------------
   ヘッダー・グローバルメニュー・ページヘッド・ヒーロー・フッター。
   他サイトへ流用する際は、このファイルだけを書き換える。
   ========================================================================== */

/* ==========================================================================
   1. ヘッダー
   ========================================================================== */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  height:var(--header-height);
  background:var(--canvas-translucent);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--hairline);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:var(--header-height);
}

.brand{
  display:flex;
  align-items:center;
  gap:13px;
}
.brand .mark{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:5px;
  background:var(--surface);
  border:1px solid var(--hairline);
  border-radius:var(--r-md);
}
.brand .mark img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand .name-wrap{
  display:flex;
  flex-direction:column;
  white-space:nowrap;
}
.brand .name-ja{
  font-size:22px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.04em;
  color:var(--ink);
}
.brand .name-org{
  margin-top:2px;
  font-size:11px;
  line-height:1.3;
  color:var(--slate);
}
.brand .name-en{
  font-family:var(--mono);
  font-size:9px;
  line-height:1.3;
  letter-spacing:.02em;
  color:var(--stone);
}

/* --- ハンバーガー -------------------------------------------------------- */
.hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px;
  height:44px;
  padding:0;
  background:transparent;
  border:0;
  cursor:pointer;
}
.hamburger span{
  width:24px;
  height:2px;
  margin-inline:auto;
  background:var(--ink);
  border-radius:2px;
  transition:transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* --- 折り畳みメニュー（狭幅時） ------------------------------------------ */
.nav-drawer{
  position:absolute;
  left:0;
  right:0;
  top:var(--header-height);
  display:none;
  padding:var(--sp-8) 0 var(--sp-16);
  background:var(--canvas);
  border-bottom:1px solid var(--hairline);
  box-shadow:var(--e2);
}
.nav-drawer.is-open{ display:block; }
.nav-drawer a{
  display:block;
  padding:14px var(--gutter);
  font-size:15px;
  font-weight:500;
  color:var(--charcoal);
  border-bottom:1px solid var(--hairline-soft);
}
.nav-drawer a:last-child{ border-bottom:none; }
.nav-drawer a[aria-current="page"]{
  color:var(--brand-green-dark);
  font-weight:600;
}

/* ==========================================================================
   2. グローバルメニュー（下層ページ）
   ========================================================================== */
.gmenu{
  position:sticky;
  top:var(--header-height);
  z-index:45;
  background:var(--teal-deep);
  border-bottom:1px solid var(--hairline-dark);
}
.gmenu-inner{
  display:flex;
  align-items:stretch;
}
/* 通常の画面幅では横スクロールに入らないよう、狭幅で3段階に詰めたうえで
   480px 以下は2行に折り返している（下のレスポンシブ節）。
   ここは、それでも溢れた場合（利用者が文字を拡大している、項目名を長くした等）の
   受け皿。ただしスクロールバーの帯は出さない ── スクロールバーを常時表示する
   設定のブラウザでは、メニューとパンくずの間に灰色の帯が残り、壊れて見えるため */
.gmenu .scroll-x{ scrollbar-width:none; }
.gmenu .scroll-x::-webkit-scrollbar{ display:none; }
.gmenu a{
  display:flex;
  align-items:center;
  gap:9px;
  padding:16px 24px 15px;
  font-size:14.5px;
  font-weight:500;
  white-space:nowrap;
  color:var(--on-dark-muted);
  border-bottom:2px solid transparent;
}
.gmenu a:first-child{ padding-left:0; }
.gmenu a .n{
  font-family:var(--mono);
  font-size:11px;
  color:var(--on-dark-faint);
}
.gmenu a[aria-current="page"]{
  color:var(--on-dark);
  font-weight:600;
  border-bottom-color:var(--brand-green);
}
.gmenu a[aria-current="page"] .n{ color:var(--brand-green); }
@media (hover: hover){
  .gmenu a:hover{ color:var(--on-dark); }
}

/* ==========================================================================
   3. 紺の見出し帯（ヒーロー／ページヘッド）
   ========================================================================== */
.hero,
.phead{
  position:relative;
  overflow:hidden;
  background:var(--teal-deep);
  color:var(--on-dark);
}
.hero::after,
.phead::after{
  content:"";
  position:absolute;
  right:-140px;
  width:520px;
  height:520px;
  background:var(--glow-brand);
  pointer-events:none;
}
.hero::after{ top:-120px; }
.phead::after{ top:-160px; }

.hero-inner,
.phead-inner{
  position:relative;
  z-index:1;
}
.hero-inner{ padding-block:84px 92px; }
.phead-inner{ padding-block:52px 58px; }

.hero h1{
  max-width:20em;
  margin:18px 0 22px;
  font-size:clamp(30px, 4.4vw, 52px);
  line-height:1.22;
  letter-spacing:-.5px;
}
.phead h1{
  margin:14px 0 18px;
  font-size:clamp(28px, 3.4vw, 42px);
  line-height:1.25;
  letter-spacing:-.4px;
}
.hero .sub,
.phead .sub{
  max-width:var(--prose-width);
  font-size:17px;
  line-height:1.8;
  color:var(--on-dark-muted);
}
.hero .btnrow{
  display:flex;
  gap:14px;
  margin-top:var(--sp-32);
  flex-wrap:wrap;
}

/* --- 記事の日付・分類（コラムの記事ページ） -------------------------------
   パンくずと h1 の間に置く。日付は等幅・淡い白、分類は .badge-soft。
   Django が記事ページを出すようになっても同じ形で使えるようにしておく */
.phead .meta{
  display:flex;
  align-items:center;
  gap:var(--sp-12);
  flex-wrap:wrap;
  margin-top:14px;
  font-family:var(--mono);
  font-size:13px;
  color:var(--on-dark-muted);
}
/* 直後の h1 の上マージン（14px）と二重にしない */
.phead .meta + h1{ margin-top:var(--sp-12); }

/* --- ページ内ジャンプ ---------------------------------------------------- */
.phead .jump{
  display:flex;
  gap:var(--sp-12);
  margin-top:30px;
  flex-wrap:wrap;
}
.phead .jump a{
  display:inline-flex;
  align-items:center;
  gap:var(--sp-8);
  min-height:40px;
  padding:9px 18px;
  font-size:13.5px;
  font-weight:600;
  color:var(--on-dark);
  border:1px solid var(--hairline-dark);
  border-radius:var(--r-full);
}
@media (hover: hover){
  .phead .jump a:hover{ color:var(--on-dark); background:var(--overlay-light); }
}

/* ==========================================================================
   4. パンくず
   ========================================================================== */
.crumbs{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:12.5px;
  color:var(--on-dark-muted);
}
.crumbs .sep{ color:var(--on-dark-faint); }
@media (hover: hover){
  .crumbs a:hover{ color:var(--on-dark); text-decoration:underline; }
}

/* ==========================================================================
   5. トップページ 概要セクション
   ========================================================================== */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:start;
}
.about-num{
  display:block;
  font-family:var(--mono);
  font-size:13px;
  font-weight:600;
  color:var(--brand-green-mid);
}
.about-purpose h3{
  margin:10px 0 18px;
  font-size:clamp(22px, 2.4vw, 28px);
  line-height:1.4;
  letter-spacing:-.3px;
}
.about-purpose .prose{ margin-bottom:var(--sp-24); }
/* 右の列は「目的」「事業内容」の2つの塊を縦に積む。
   2つ目以降のラベルの前に間隔を空けて塊の切れ目を示す */
.about-biz .about-num ~ .about-num{ margin-top:44px; }
.about-biz .about-sub{
  margin:10px 0 14px;
  font-size:19px;
  line-height:1.5;
}
.about-biz .numbered-list{ margin-top:18px; }
.about-biz .feature-band{ margin-top:36px; }

/* ==========================================================================
   6. フッター
   ========================================================================== */
.site-footer{
  background:var(--teal-deep);
  color:var(--on-dark);
}
.foot-top{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:var(--sp-40);
  padding:var(--sp-72) 0 48px;
}
.foot-brand .name-ja{
  font-size:24px;
  font-weight:700;
  letter-spacing:.04em;
}
.foot-brand .org{
  margin-top:var(--sp-8);
  font-size:12.5px;
  line-height:1.6;
  color:var(--on-dark-muted);
}
.foot-brand .en{
  margin-top:6px;
  font-family:var(--mono);
  font-size:10px;
  color:var(--on-dark-faint);
}
.foot-col h2{
  margin-bottom:var(--sp-16);
  font-size:14px;
  font-weight:600;
  color:var(--on-dark);
}
.foot-col a{
  display:block;
  padding:6px 0;
  font-size:14px;
  color:var(--on-dark-muted);
}
.foot-addr{
  font-size:13px;
  line-height:1.8;
  color:var(--on-dark-muted);
}
.foot-addr .note-sm{ font-size:12px; }
.foot-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--sp-16);
  flex-wrap:wrap;
  padding:22px 0 30px;
  border-top:1px solid var(--hairline-dark);
}
.foot-bottom .cc{
  font-family:var(--mono);
  font-size:11px;
  color:var(--on-dark-faint);
}
.foot-bottom .policy{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--on-dark-muted);
}
@media (hover: hover){
  .site-footer a:hover{ color:var(--brand-green); }
}

/* ==========================================================================
   7. JS 無効時のフォールバック
   ========================================================================== */
.nojs-nav{
  padding:14px var(--gutter);
  background:var(--surface);
  border-bottom:1px solid var(--hairline);
  font-size:14px;
}
.nojs-nav a{
  color:var(--brand-green-dark);
  text-decoration:underline;
  margin-right:1em;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width:1024px){
  .hamburger{ display:flex; }
  .hero-inner{ padding-block:60px 68px; }
  .about-grid{ grid-template-columns:1fr; gap:44px; }
  .foot-top{ grid-template-columns:1fr 1fr; gap:var(--sp-32); }
  .gmenu a{ padding:14px 18px 13px; font-size:14px; }
  .gmenu a:first-child{ padding-left:0; }
}

/* 番号（01〜04）を出したままだと、この幅では4項目が必ず収まらない。
   番号は装飾であり、落としても項目名は変わらない。
   700px を境にするのは、560px までこれを残していたために
   561〜642px でだけ横スクロールが発生していたため */
@media (max-width:700px){
  .gmenu a{ padding:14px 14px 13px; }
  .gmenu a:first-child{ padding-left:0; }
  .gmenu a .n{ display:none; }
}

@media (max-width:560px){
  .brand .name-org,
  .brand .name-en{ display:none; }
  .hero-inner{ padding-block:48px 56px; }
  .phead-inner{ padding-block:40px 44px; }
  .hero .sub,
  .phead .sub{ font-size:16px; }
  .gmenu a{ padding:13px 12px 12px; font-size:13px; }
  /* 横スクロール領域は画面端まで使い切る。項目が端で切れて見えることが
     「続きがある」合図になり、あわせて余白ぶん収まる幅も広がる。
     先頭項目だけは本文と左端を揃える */
  .gmenu .scroll-x{ padding-inline:0; }
  .gmenu a:first-child{ padding-left:var(--gutter); }
  .foot-bottom{ flex-direction:column; align-items:flex-start; }
}

/* 4項目（計26文字）は 446px 前後で1行に収まらなくなる。
   スマートフォン幅で1行に収める方法は無いため、ここから 2×2 に折り返して
   横スクロールを無くす。1行ぶん背が高くなるので、行間と上下余白を詰め、
   base.css の scroll-padding-top も同じ幅で広げている */
@media (max-width:480px){
  /* 折り返す＝はみ出さないので、画面端まで広げる必要がなくなる。
     左右の余白を戻して本文と同じ器に収める */
  .gmenu .scroll-x{ padding-inline:var(--gutter); }
  .gmenu-inner{ flex-wrap:wrap; }
  .gmenu a{
    /* 2列に等分する。成り行きで折り返すと 3＋1 になり、
       最後の1項目だけが次の行に取り残されて見える */
    flex:0 0 50%;
    /* 左右の余白は持たせない。1列目の項目名が本文の左端と揃う */
    padding:10px 0 9px;
    line-height:1.4;
  }
  .gmenu a:first-child{ padding-left:0; }
}
