@charset "utf8";

/* --------Base Style-------- */

body {
    font-family: 'Noto Sans JP',
                 "Helvetica Neue", 
                 "Helvetica", 
                 "Hiragino Sans", 
                 "Arial", 
                 "Yu Gothic", 
                 "Meiryo", 
                 sans-serif; 
    font-weight: 400; /* Regular */
    font-size: 1rem;
    line-height: 1.6;
    color: #24292e;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

label,
input,
textarea,
button {
    cursor: pointer;
}

button {
    border: none;
    background: none;
}

/* ========== 共通 ========== */

:root {
    --header-height: 72px;
}

/* ========== header ========== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8f8ff;
}

.header-list {
    display: flex;
    gap: 24px;
}

.header-list a {
    color: #f8f8ff;
    font-size: 0.95rem;
}

/* ========== hero ========== */

.hero {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
    box-sizing: border-box;
    background: url(../images/car-maintenance1.jpg) center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-inner {
    position: relative;
    color: #f8f8ff;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 36px;
    background: #ff8c00;
    color: #f8f8ff;
    border-radius: 999px;
}

/* 選ばれる理由 中央寄せ調整 */
#reason {
  text-align: center;
}

.reason-list {
  display: inline-block;   /* 中央に寄せるため */
  text-align: left; 
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;       /* チェック＋文章は左揃え */
}

.reason-list li {
  margin-bottom: 12px;
  padding-left: 1.2em;
  position: relative;
}

.reason-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ff8c00;
}

/* ========== 実績 ========== */

.service-gallery {
    background: url(../images/car-maintenance2.jpg) center/cover;
    padding: 120px 20px;
    color: #f8f8ff;
    text-align: center;
}

/* ========== 白背景セクション ========== */

.content {
    padding: 120px 20px;
    text-align: center;
    background: #f8f8ff;
}

/* ========== CTA ========== */

.btn-secondary {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    background: #00bfff;
    color: #f8f8ff;
    border-radius: 6px;
    font-weight: 700;
}

/* ========== footer ========== */

.footer {
    background: #000;
    color: #f8f8ff;
    text-align: center;
    padding: 24px;
} 

/* ========== フェード ========== */

.fade-item,
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s;
}

.is-show {
    opacity: 1;
    transform: none;
}

/* ========== レスポンシブ対応（スマホ） ========== */
@media screen and (max-width: 768px) {

  :root {
    --header-height: 104px;
  }

  body {
    padding-bottom: calc(56px + env(safe-srea-inset-bottom));
  }

  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .header-logo {
    font-size: 1.2rem;
  }

  .header-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 0.85rem;
  }

  /* hero */
  .hero-inner h2 {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  .hero-inner p {
    font-size: 0.95rem;
  }

  /* === スマホ固定CTA（完全版） === */
  .btn-secondary {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 56px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 0;
    font-size: 1rem;
    z-index: 1000;
  }

  /* section */
  .content,
  .service-gallery {
    padding: 80px 16px;
  }
}

/* ========== レスポンシブ対応（タブレット） ========== */

@media screen and (max-width: 1024px) {

  .btn-secondary {
    position: static;
    width: auto;
    height: auto;
    margin-top: 24px;
    padding: 12px 28px;
    border-radius: 6px;
    display: inline-block;
  }
  
    .header-inner {
    padding: 14px 20px;
  }

  .header-logo {
    font-size: 1.3rem;
  }

  .header-list {
    gap: 16px;
  }

  .hero-inner h2 {
    font-size: 1.7rem;
  }

  .hero-inner p {
    font-size: 1.05rem;
  }

  .content,
  .service-gallery {
    padding: 100px 20px;
  }
}

