body {
  margin: 0;
  font-family: sans-serif;
}

header {
  padding: 16px 24px;
}

.site-logo img {
  height: 44px;
}

:root{
  --text:#111;
  --muted:#555;
  --line:#e6e6e6;
  --bg:#ffffff;
  --subbg:#fafafa;
  --card:#fff;
  --radius:14px;
  --max: 1160px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  color: var(--text);
  background: var(--bg);
  line-height:1.7;
}

/* Header */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  position:sticky;
  top:0;
  background: rgba(250,250,250,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

nav{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}

nav a{
  color: var(--text);
  text-decoration:none;
  font-size: 14px;
  opacity: .9;
}

nav a:hover{ opacity: 1; }

.nav-cta{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

/* Section & container */
.section{
  padding: 84px 0;
  position: relative;
  background: transparent;
}

.section--alt{
  background: transparent;
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1{ font-size: 44px; line-height: 1.2; margin: 0 0 22px; }
h2{ font-size: 26px; margin: 0 0 18px; }
p{ margin: 0 0 18px; color: var(--muted); }

/* Hero */
.hero-wrap{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}

.pill{
  display:inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  background: #fff;
  color: var(--text);
  margin-bottom: 10px;
}

.lead{ font-size: 16px; line-height: 1.9; }


.cta-row{
  display:flex;
  gap:12px;
  margin-top: 18px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration:none;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.btn-primary{
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-ghost{
  background: transparent;
}

.btn-wide{ width:100%; }

.trust-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top: 16px;
  font-size: 13px;
}

.trust-item{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #111;
  opacity: .25;
}

.hero-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: #fff;
}

.hero-img{
  height: 260px;
  background-size: cover;
  background-position: center;
  background-image:
  linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.25)),
  url("hero.jpg");
}

.hero-cap{
  padding: 14px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;

  justify-content: center; /* ← 追加 */
}


.grid-2{
  grid-template-columns: repeat(2, 1fr);
}

#services .grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow:hidden;
}

.card-inner{
  padding: 14px;
  color: var(--text);
  padding-left: 24px;
  padding-right: 24px;
}

.thumb{
  height: 160px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.meta{
  color: var(--muted);
  font-size: 12px;
}

.mini-cta{
  margin-top: 18px;
}

.mini-cta-inner{
  display:flex;
  justify-content: center; /* space-between を上書き */
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(2px);
}

.process{
  display:grid;
  gap: 12px;
}

.step{
  display:grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-no{
  font-weight: 700;
  color: #111;
  opacity: .75;
}

.step-body strong{
  display:block;
  margin-bottom: 6px;
}

.list{
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--muted);
}

.list li{ margin: 6px 0; }
.list span{ color: var(--text); font-weight: 600; }

.faq{
  display:grid;
  gap: 10px;
}

.faq-item{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
}

.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items:start;
}

.contact-box{
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

footer{
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align:center;
}

/* Responsive */
@media (max-width: 980px){
  .hero-wrap{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .contact{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  h1{ font-size: 34px; }
  .grid{ grid-template-columns: 1fr; }
}


/* =====================================================
   Loading Overlay
===================================================== */
#loading{
  position: fixed;
  inset: 0;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9999;
}

#loadingLogo{
  width: 86px;
  height: 86px;
  animation: rollSteps 2.2s steps(8, end) infinite;
  transform-origin: center;
}

@keyframes rollSteps{
  to{ transform: rotate(360deg); }
}

body.is-loading header,
body.is-loading section,
body.is-loading footer{
  opacity: 0;
}

body.is-ready header,
body.is-ready section,
body.is-ready footer{
  opacity: 1;
  transition: opacity 500ms ease;
}

#loading.is-hide{
  opacity: 0;
  transition: opacity 500ms ease;
}


/* =====================================================
   Background Puzzle (Scroll-Linked Steps)
===================================================== */
#bgStage{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#bgWrap{
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

#bgLogo{
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(360px, 52vw);
  height: auto;

  opacity: 0; /* 最初は隠す */
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: transform 700ms cubic-bezier(.25,.8,.25,1), opacity 700ms ease;

  filter:
    drop-shadow(0 10px 22px rgba(0,0,0,.22))
    drop-shadow(0 2px  6px rgba(0,0,0,.30));
}
/* =========================
   Section title rule（統一）
   - FAQのライン（= .containerの左端）に揃える
========================= */
.section h2,
#company h2,
#contact h2{
  text-align: left;
  font-size: 26px;
  margin: 0 0 18px;
}

/* もし h2 が container 直下じゃない場所にある場合でも
   FAQと同じ「左ライン」に揃える（= container の左右paddingと同じ） */
#company h2,
#contact h2{
  padding-left: 24px;
  padding-right: 24px;
}

/* =========================
   Company（整理：1回だけ）
   - カード自体は中央
   - 中身は左
========================= */
.card.company{
  max-width: 720px;
  width: 100%;
  text-align: left;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding-left: 24px;
  padding-right: 24px;
}

.company-rule{
  height: 4px !important;
  background: rgba(0,0,0,.55) !important;
  border-radius: 999px !important;
  margin: 14px 0 10px !important;
}

.company-row{
  padding: 22px 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.18) !important;
}

.company-label{
  font-weight: 700 !important;
  font-size: 20px !important;
  color: #111 !important;
  margin-bottom: 10px !important;
}

.company-value{
  font-size: 15px !important;
  color: #555 !important;
  line-height: 1.9 !important;
}

/* =========================
   Contact: 1カラム中央寄せ（中身だけ）
   - 中身は中央に収める
========================= */
#contact .contact{
  grid-template-columns: 1fr;
  justify-content: center;
}

#contact .contact > div{
  max-width: 720px;
}

/* =========================
   Contact Form
========================= */
.contact-form{
  margin-top: 12px;
  text-align: left;
}

.form-row{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.form-row label{
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.req{
  color: #d33;
  font-weight: 700;
  font-size: 12px;
  margin-left: 6px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline: none;
}

.contact-form textarea{
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(17,17,17,.55);
  box-shadow: 0 0 0 4px rgba(17,17,17,.08);
}

.form-note{
  margin-top: 10px;
  font-size: 12px;
}

/* もし section-title を使っているならこれだけ残す（任意） */
.section-title{
  text-align: left !important;
  font-size: 26px !important;
  margin: 0 0 18px !important;
  color: var(--text);
  padding-left: 24px !important;
  padding-right: 24px !important;
}
/* FAQの見出しラインに合わせる（狙い撃ち） */
#faq h2,
.company-head h2,
#contact h2{
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.card.company{
  text-align: left !important;
}
.contact-simple{
  max-width: 720px;
}

.mail-link{
  display:block;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration:none;
  color: var(--text);
  background: rgba(255,255,255,.92);
  margin: 12px 0 14px;
  font-weight: 700;
}

.mail-link:hover{
  opacity: .9;
}

.contact-notes{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.note{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,.75);
}
/* =========================
   Mobile fixes
========================= */
@media (max-width: 560px){

  /* 1) ヘッダー：1行に収める + ロゴ小さく */
  header{
    padding: 10px 14px;      /* 余白を縮める */
    gap: 10px;
    flex-wrap: nowrap;       /* 改行させない */
  }

  .site-logo img{
    height: 28px;            /* ロゴを小さく（44px→28px） */
  }

  nav{
    flex-wrap: nowrap;       /* 改行させない */
    gap: 10px;
    overflow-x: auto;        /* 入りきらない分は横スクロール */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;   /* Firefox */
  }
  nav::-webkit-scrollbar{ display:none; } /* Chrome/Safari */

  nav a{
    font-size: 12px;         /* 文字を少し小さく */
  }

  .nav-cta{
    padding: 7px 10px;       /* CTAも少し小さく */
  }

  /* 2) 提供サービス：必ず縦並び（スマホで3列にならないよう強制） */
  #services .grid{
    grid-template-columns: 1fr !important;
  }
}
