/* ================================
   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;
}

@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;
  text-align: center;
}

.hero-image {
  width: clamp(240px, 30vw, 390px);
  margin-bottom: 1.5rem;
  border-radius: 18px;
}

@media (max-width: 600px) {
  .hero-image {
    width: 70vw;
    max-width: 300px;
  }
}


/* PC */
.gz-hero-title {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 25px;
}

.gz-hero-lead {
  font-size: 15px;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;

  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 2);
}

@media (min-width: 960px) {
  .gz-hero {
    padding: 5rem 1.5rem 4rem;
    /*min-height: 200px;*/
    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: 0 auto 10px; 
  }

  .gz-hero-lead{
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto;
  }
}

/* ========== 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;
}

@media (max-width: 900px) {
  .gz-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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;         
  pointer-events: none;    
}*

/* 769〜1005px */
@media (max-width: 1005px) and (min-width: 769px) {
  .gz-header-inner {
    padding: 0.6rem 1.2rem;
    flex-wrap: wrap;
    row-gap: 0.4rem;
    align-items: center;
  }

  .gz-logo {
    flex: 0 0 auto;
  }

  .gz-lang-nav {
    margin-left: auto;
  }

  .gz-nav {
    order: 3;
    width: 100%;
    margin-top: 0.3rem;
    padding-top: 0.7rem;
    border-top: 1px solid #eee;
    justify-content: flex-start;
    gap: 1.4rem;  
  }
}


/* ================================
   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.25rem 1.25rem 2.4rem;
  }


  /*.gz-hero-bg::after{
    top:38%;
    right:0%;    
    transform:translateY(-50%);
    width:180px;    
    height:180px;
    opacity:.8;
  }*/
}

/* ================================
   SP: Hero 
================================ */
@media (max-width: 600px) {

  .gz-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gz-hero-text {
    display: -webkit-box;
    -webkit-line-clamp: 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;
}


/* =========================
   Tools Carousel (Apple-style) — stable full-bleed
========================= */

/* section */
.gz-tools-carousel{
  width: 100%;
  padding: 6rem 0 3rem;
  overflow-x: clip; 
}

/* inner (title area only) */
.gz-tools-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.gz-tools-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.gz-tools-title{
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0;
}

.gz-tools-more{
  font-size: .95rem;
  color: #2f6bff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.gz-tools-slider-wrap{
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  /*overflow-x: clip;*/
  padding-bottom: 80px;
}

/* slider */
.gz-tools-slider{
  display: flex;
  gap: 28px;

  overflow-x: auto;
  overflow-y: hidden;    
  -webkit-overflow-scrolling: touch;

  scroll-behavior: smooth;
  justify-content: flex-start;

  width: 100%;
  margin: 0;

  padding-left: max(18px, calc((100vw - 1100px) / 2));
  padding-right: max(18px, calc((100vw - 1100px) / 2));
  padding-bottom: 40px;

  scroll-padding-left: max(18px, calc((100vw - 1100px) / 2));
  scroll-padding-right: max(18px, calc((100vw - 1100px) / 2));

  overscroll-behavior-x: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gz-tools-slider::-webkit-scrollbar{ height: 0; }

/* card */
.gz-tool-card{
  flex: 0 0 350px;
  background: #fff;
  border-radius: 20px;
  padding: 45px 35px;
  text-decoration: none;
  color: inherit;
  box-shadow: 6px 6px 10px rgba(0, 0, 0, .08);
  transition: transform .15s ease;
  scroll-snap-align: start;
}
.gz-tool-card:hover{
  text-decoration: none;
  transform: translateY(-3px);
}

.gz-tool-icon-img{
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
}
.gz-tool-icon-img img{
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: contain;
  display: block;
  image-rendering: auto;
}

.gz-tool-name{
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.gz-tool-desc{
  font-size: .9rem;
  color: #666;
  line-height: 1.6;
  letter-spacing: 0.1rem;
  margin: 0;
}

.gz-tool-link{
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2f6bff;
  opacity: 0.9;
  pointer-events: none;
}


/* arrows */
.gz-slide-controls{
  position: absolute;
  bottom: 20px;
  right: max(18px, calc((100vw - 1100px) / 2));
  display: flex;
  gap: 30px;
  z-index: 10;
}

.gz-slide-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  cursor: pointer;

  display: grid;
  place-items: center;
  position: relative;

  color: #111;
  font-size: 22px;
  line-height: 1;

  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.gz-slide-btn--prev::before{ content:"‹"; }
.gz-slide-btn--next::before{ content:"›"; }

.gz-slide-btn:hover{
  background: #f0f0f0;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.gz-slide-btn:hover::before{ color: #555; }
.gz-slide-btn:active{ transform: translateY(1px); }

/* SP */
@media (max-width: 768px){
  .gz-tools-slider{
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scroll-padding-left: 1.25rem;
    scroll-padding-right: 1.25rem;
  }
  .gz-tools-carousel{ padding: 6rem 0 2rem; }
  .gz-tools-title{
    font-size: 1.55rem;
    line-height: 1.12;
    margin-bottom: 1rem;
  }
  .gz-tools-head{
    margin-bottom: 2.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
  }
}

@media (max-width: 600px){
  .gz-tool-card{ flex-basis: 220px; }
}

/* =========================================
   Controls spacing (global) 2025 12 17
========================================= */

.gz-settings-card{
  padding: 22px;
}

.gz-settings-body{
  display: grid;
  gap: 14px; /* 行間 */
}

.gz-settings-row{
  display: grid;
  gap: 8px;
  padding: 10px 0;
}

.gz-settings-row:last-child{
  border-bottom: none;
}

.gz-settings-label,
.gz-settings-label-inline{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.gz-settings-label-inline{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
}

.gz-settings-label-inline input{
  width: 18px;
  height: 18px;
}

.gz-primary-btn,
.gz-secondary-btn,
.gz-button-primary{
  min-height: 44px;   
  padding: 0 16px;
  border-radius: 14px;
}

@media (max-width: 768px){
  .gz-tool-wrap,
  .gz-batch-layout{
    display: block;
  }

  .gz-batch-left,
  .gz-batch-right{
    width: 100%;
  }

  .gz-settings-card{
    padding: 18px;
  }

  .gz-settings-row{
    padding: 12px 0;
  }
}

