/* ================================
   Gazolab Layout Styles
================================ */

/* Header */
.gz-header {
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}

.gz-header-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* ★ 高さをほぼ固定するための最低ライン */
  min-height: 64px;
}

.gz-logo {
  font-size: 20px; 
  font-weight: 600;
  color: #1c1c1e;
}

/* Global Nav */
.gz-nav {
  display: flex;
  gap: 1.4rem;
}

.gz-nav-item {
  font-size: 0.95rem;
  color: #333;
  line-height: 1; 
  padding: 0.2rem 0; 
}

.gz-nav-bold {
  font-weight: 600; /* or 700 */
}

.gz-nav-item:hover {
  color: #007aff;
}

/* Language */
.gz-lang-nav {
  font-size: 0.9rem;
  color: #666;
}


/* Footer */
.gz-footer {
  margin-top: 4rem;
  padding: 2.25rem 1.5rem 2.5rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

.gz-footer-inner {
  max-width: 1080px;  
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.gz-footer-logo {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #111827;
}

/* 説明テキスト（左カラム） */
.gz-footer-desc {
  color: #6b7280;
  line-height: 1.5;
}

/* 中央リンクカラム */
.gz-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 120px;
}

.gz-footer-links a {
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
}

.gz-footer-links a:hover {
  text-decoration: underline;
}

/* 右側コピーライト */
.gz-footer-copy {
  font-size: 0.8rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* footer SP レイアウト調整 */
@media (max-width: 768px) {
  .gz-footer-inner {
    flex-direction: column;      /* 左中右 → 縦並び */
    align-items: flex-start;
    gap: 1.2rem;
  }

  .gz-footer-brand,
  .gz-footer-links,
  .gz-footer-copy {
    width: 100%;
  }

  .gz-footer-links {
    flex-direction: row;         /* リンクは横並び＋折り返し */
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
  }

  .gz-footer-links a {
    margin-bottom: 0;
  }

  .gz-footer-copy {
    font-size: 0.8rem;
  }
}


/* ========== Hero ========== */

.gz-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  background: #fbfbfd;
  border-bottom: 1px solid #e5e5ea;
}

.gz-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* PC */
.gz-hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 1100px;
  margin: 0 0 12px;
}

/* 説明文：PCは2行固定 */
.gz-hero-lead {
  font-size: 15px;
  line-height: 1.6;
  max-width: 650px;

  /* 行数固定化 */
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* PCは2行 */
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* 必ず2行分の高さを確保する */
  min-height: calc(1.6em * 2);
}

/* ★ PC のときは hero 高さをほぼ固定にする */
@media (min-width: 960px) {
  .gz-hero {
    /* padding は既存と同じでOK。必要なら微調整 */
    padding: 2rem 1.5rem 2.5rem;
    min-height: 200px;        /* タイトル1行＋説明2行が余裕で入る値に調整 */
    display: flex;
    align-items: center;      /* テキストを縦方向センターに */
  }

  .gz-hero-inner {
    width: 100%;
  }
}
/* =========================================
   SP レイアウト（画面幅768px以下）
========================================= */
@media (max-width: 768px) {

  .gz-hero-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
    -webkit-line-clamp: 2; /* SPは2行 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gz-hero-lead {
    font-size: 14px;
    line-height: 1.6;

    /* SPは4行固定 */
    -webkit-line-clamp: 4;
    min-height: calc(1.6em * 4);
  }
}

/* ========== Section / Category Grid ========== */

.gz-section {
  padding: 2.5rem 1.5rem 3rem;
}

.gz-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gz-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #111827;
}

/* カテゴリカードのグリッド */
.gz-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* タブレット（2列） */
@media (max-width: 900px) {
  .gz-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ（1列） */
@media (max-width: 600px) {
  .gz-category-grid {
    grid-template-columns: 1fr;
  }
}

/* カード本体 */
.gz-category-card {
  display: block;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.1rem 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              border-color 0.15s ease, background-color 0.15s ease;
}

.gz-category-card:hover {
  transform: translateY(-2px);
  /*box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);*/
  border-color: #d1d5db;
  background-color: #f9fafb;
  text-decoration: none;
}

/* カード内テキスト */
.gz-category-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: #0952ad;
}

.gz-category-desc {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
}

.gz-category-list {
  list-style: none;
  font-size: 0.85rem;
  color: #6b7280;
}

.gz-category-list li + li {
  margin-top: 0.15rem;
}
/* =======================================
   Hero background (glass blobs)
   /assets/img/background.webp
======================================= */
.gz-hero-bg {
  position: relative;
  overflow: hidden;        /* はみ出し防止 */
}

/* 右上にふわっと出す */
.gz-hero-bg::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: 400px;            /* ここで大きさ調整 */
  height: 400px;
  background-image: url("/assets/img/background.webp");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.8;            /* うるさかったら 0.6〜0.7 に */
  pointer-events: none;    /* クリックの邪魔をしない */
}

/* ================================
   Mobile adjustments
================================ */
@media (max-width:768px){
  .gz-header-inner{
    padding:.6rem 1rem;
    flex-wrap:wrap;
    row-gap:.4rem;
  }
  .gz-logo{
    font-size:1.1rem;
    flex:1 0 auto;
  }
  .gz-lang-nav{
    font-size:.85rem;
    margin-left:.5rem;
  }
  .gz-nav{
    order:3;
    width:100%;
    margin-top:.3rem;
    padding-top:.7rem;
    border-top:1px solid #eee;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    justify-content:flex-start;
    gap:.1.2rem;
  }
  .gz-nav::-webkit-scrollbar{display:none}
  .gz-nav-item{
    white-space:nowrap;
    font-size:.9rem;
  }

  .gz-hero{
    padding:2rem 1.25rem 0.8rem;
  }
  .gz-section{
    padding:1.8rem 1.25rem 2.4rem;
  }

  /* ★ SPでも右側に背景を残す */
  .gz-hero-bg::after{
    top:38%;
    right:0%;        /* 右にはみ出させる */
    transform:translateY(-50%);
    width:180px;       /* 少し小さめに */
    height:180px;
    opacity:.8;
  }
}

/* ================================
   SP: Hero 説明文を3行固定
================================ */
@media (max-width: 600px) {

  .gz-hero-inner {
    min-height: 150px; /* 説明文3行＋タイトル1行を収める高さ */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 中央寄せで安定 */
  }

  .gz-hero-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* ★ 最大3行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;       /* はみ出しを隠す */
  }
}


/* ===== Static Pages (Privacy / Terms / About) ===== */
.gz-page h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
}

/* 段落とのバランスを整える */
.gz-page p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.gz-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1rem;
}


