/* ================================
   Gazolab – Common Tool UI Core
================================ */

/* --- Card --- */
.gz-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}

/* --- Dropzone --- */
.gz-dropzone {
  border: 2px dashed #bcbcbc;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #999;
  background: #fafafa;
  transition: 0.2s;
  cursor: pointer;
  margin-bottom:15px;
}
.gz-dropzone:hover {
  border-color: #007aff;
  color: #007aff;
}

/* --- File meta --- */
.gz-filemeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.gz-file-name {
  font-size: .9rem;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Link button --- */
.gz-link-button {
  border: none;
  background: none;
  color: #007aff;
  font-size: .9rem;
  cursor: pointer;
  padding: 0;
}
.gz-link-button:hover { text-decoration: underline; }

/* --- Settings card --- */
.gz-settings-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.gz-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gz-settings-label {
  font-size: .95rem;
  font-weight: 500;
}
.gz-settings-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* --- Buttons --- */
.gz-primary-btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: .5rem 1.4rem;
  margin-top:15px;
  background: #007aff;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.gz-primary-btn:hover:not(:disabled) {
  background: #005fd1;
  box-shadow: 0 8px 18px rgba(37,99,235,0.25);
}
.gz-primary-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* --- Result stats --- */
.gz-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  font-size: .9rem;
}

.gz-tool-wrap {
  display: grid;
  grid-template-columns: minmax(0,1.9fr) minmax(0,1.2fr);
  gap: 1.6rem;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .gz-tool-wrap {
    grid-template-columns: 1fr;
  }
}

/* --- Preview --- */
.gz-preview-frame {
  margin-top:1.2rem;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gzPreview img {
  max-width:100%;
  display:block;
  margin:0 auto;
}

.gz-download-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 170px;
}

.gz-primary-btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  background-color: #007aff;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.gz-primary-btn:hover:not(:disabled) {
  background-color: #005fd1;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.gz-primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.gz-result { flex: 1; font-size:.85rem; }
.gz-bar-row { display:flex; align-items:center; gap:.3rem; margin-bottom:.25rem; }
.gz-bar-label { min-width: 80px; flex: 0 0 auto; color:#4b5563; }
.gz-bar { flex:1; height:6px; background:#e5e7eb; border-radius:4px; overflow:hidden; }
.gz-bar-inner { height:100%; border-radius:4px; background:#10b981; width:0; transition:width .25s ease; }
.gz-bar-size { min-width:70px; text-align:right; color:#111827; }

@media (max-width:768px) {
  .gz-card { padding:1.2rem; }
  .gz-settings-row { flex-direction:row; align-items:flex-start; }
  .gz-stats-row { flex-direction:column; align-items:flex-start; gap:.8rem; }
  .gz-compare-card, .gz-settings-card {
    max-width:100%; margin-left:0; margin-right:0;
  }
}

/* ================================
   Features Section
================================ */

.gz-feature-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.gz-feature-section .gz-section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gz-feature-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem 2.2rem;
  justify-items: center; 
}

@media (max-width: 768px) {
  .gz-feature-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

.gz-feature-item {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 280px; 
}

.gz-feature-item img {
  width: 100%;
  height: auto;
  margin: 0 0 1.2rem 0;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.gz-feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: #111827;
}

.gz-feature-text {
  font-size: .95rem;
  line-height: 1.55;
  color: #4b5563;
}

@media (max-width: 768px) {
  .gz-feature-item {
    max-width: 240px;    
  }
}


.tool-size-info {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #4b5563;
}

.tool-size-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.tool-size-row + .tool-size-row {
  margin-top: 0.2rem;
}

.tool-size-row--delta {
  margin-top: 0.3rem;
}

.tool-size-label {
  font-weight: 500;
  color: #374151;
}

.tool-size-value {
  font-variant-numeric: tabular-nums;
}

.tool-size-value--processed {
  font-weight: 600;
}

.tool-size-delta {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.tool-size-delta--larger {
  color: #b45309;
  background: #fffbeb;
  border-color: #facc15;
}

.tool-size-delta--smaller {
  color: #065f46;
  background: #ecfdf5;
  border-color: #34d399;
}

.tool-size-note {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6b7280;
}
.gz-diff-description {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.45;
}


.tool-privacy-note {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  font-size: 0.85rem;
  color: #4338ca;
  line-height: 1.5;
}

.tool-privacy-note strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}
/* ===============================
   Range slider (Gazolab / touch friendly)
=============================== */

input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:10px;         
  padding:0;
  margin:0;
  background:
    linear-gradient(
      to right,
      #0a84ff 0%,
      #0a84ff var(--val, 0%),
      transparent var(--val, 0%),
      transparent 100%
    ),
    #e5e7eb;          

  border-radius:999px;
}


/* track */
input[type="range"]::-webkit-slider-runnable-track{
  height:6px;
  background:transparent;
  border-radius:999px;
}

/* Firefox */
input[type="range"]::-moz-range-track{
  height:6px;
  background:#e5e7eb;
  border-radius:999px;
}

input[type="range"]::-moz-range-progress{
  height:6px;
  background:#0a84ff;
  border-radius:999px;
}

/* thumb */
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#ffffff;
  border:1px solid #d1d5db;
  margin-top:-11px; 
  box-shadow:
    0 1px 2px rgba(0,0,0,.12),
    0 4px 10px rgba(0,0,0,.08);
}

input[type="range"]::-moz-range-thumb{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#ffffff;
  border:1px solid #d1d5db;
  box-shadow:
    0 1px 2px rgba(0,0,0,.12),
    0 4px 10px rgba(0,0,0,.08);
}

input[type="range"]:active::-webkit-slider-thumb{
  transform:scale(1.08);
}

input[type="range"]:active::-moz-range-thumb{
  transform:scale(1.08);
}

@media (pointer:coarse){
  input[type="range"]::-webkit-slider-thumb{
    width:30px;
    height:30px;
    margin-top:-13px;
  }

  input[type="range"]::-moz-range-thumb{
    width:30px;
    height:30px;
  }
}
/* =========================================
   GazoLine Single Hero (Top)
   - PC/iPad維持
   - SPだけ高さを+10%くらい増やす
========================================= */

.gz-hero--gazoline{
  position: relative;
  overflow: hidden;
  border-radius: 28px;

  /* 下のsection幅と揃える */
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 34px auto 26px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  /* PC/iPadは“昨日の見た目”維持 */
  min-height: 520px;
}

.gz-hero--gazoline .gz-hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gz-hero--gazoline .gz-hero-bgimg{
  position: absolute;
  inset: 0;
  background: url("/tools/gazoline/img/hero-car.webp") center right / cover no-repeat;
  /* 全体見せ寄り */
  transform: none;
}

.gz-hero--gazoline .gz-hero-vignette{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.70) 0%,
    rgba(0,0,0,.32) 45%,
    rgba(0,0,0,0) 72%,
    rgba(0,0,0,0) 100%
  );
  opacity: .95;
}

.gz-hero--gazoline .gz-hero-inner{
  position: relative;
  z-index: 1;
  width: min(560px, 92%);
  padding: 22px 44px;
  text-align: left;
margin:0;
}

.gz-hero--gazoline .gz-hero-title{
  margin: 0 0 14px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(34px, 4.0vw, 56px);
  text-align: left;
}

.gz-hero--gazoline .gz-hero-text{
  margin: 0 0 22px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.65;
  max-width: 46ch;
  text-align: left;
}

.gz-hero--gazoline .gz-hero-cta{
  display: flex;
  justify-content: flex-start;
}

gz-hero-cta {
    margin-bottom: 55px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    width: fit-content;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    background: #2f6bff;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
    transition: transform .18s ease, opacity .18s ease;
}

.gz-hero--gazoline .gz-hero-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f6fff;
  text-decoration: none;
  font-weight: 700;
}

/* iPad：今が完璧なら触らない（高さ固定のまま） */
@media (min-width:768px) and (max-width:1024px){
  .gz-hero--gazoline{ min-height: 520px; }
}

/* SP：高さを“約10%だけ”増やす（PC/iPadは維持） */
@media (max-width:640px){
  .gz-hero--gazoline{
    border-radius: 22px;
    width: calc(100% - 28px);
    margin: 18px auto 18px;

    /* ここだけ増やす：基準 68vh → 75vh（≒+10%） */
    min-height: 40vh;
  }

  .gz-hero--gazoline .gz-hero-inner{
    padding: 22px;
    width: min(520px, 92%);
  }

  .gz-hero--gazoline .gz-hero-title{
    font-size: 2.05rem;
    line-height: 1.18;
    margin-bottom: 12px;
  }

  .gz-hero--gazoline .gz-hero-text{
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
  }

  /* SPは少しだけ“画像全体見せ”寄りに */
  .gz-hero--gazoline .gz-hero-bgimg{
    background-position: 90% 45%;
  }
}
@media (min-width: 960px) {
    .gz-hero {padding-bottom:0;}
}
