/* =====================================================
   Style Sheet for os-keiri (JSなし / レスポンシブ)
   カラー・余白・タイポを共通化
===================================================== */
:root{
  --brand:#0000CD;          /* メインブルー */
  --accent:#F47E00;         /* CTAオレンジ */
  --ink:#222;
  --muted:#666;
  --line:#E3E7EF;
  --bg:#fff;
  --bg-soft:#F7F9FC;
  --blue-100:#EEF3FF;
  --footer:#093A95;
  --radius:16px;
  --shadow:0 10px 24px rgba(1,7,40,.06);
  --w:1120px;
}
html{scroll-behavior:smooth}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--bg);font-family:"Noto Sans JP",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";line-height:1.8}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

/* Layout */
.container{max-width:var(--w);margin-inline:auto;padding-inline:clamp(16px,3.6vw,24px)}
.section{padding:clamp(40px,6vw,80px) 0}
.section--soft{background:var(--bg-soft)}
.grid{display:grid;gap:clamp(20px,3vw,40px)}
.grid--2{grid-template-columns:1fr}

/* ------ 共通ボタン（全ボタンの土台） ------ */
.btn {
  display: inline-block;
  background: #0080CC;  /* 青 */
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4em 1.2em;  /* 高さはここで調整 */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: background .2s ease, transform .2s ease;
  text-decoration: none;
}
.btn:hover {
  background: #006ba6;
  transform: translateY(-1px);
  text-decoration: none;
}

/* 大きめバリエーション */
.btn--lg {
  font-size: clamp(15px,2.2vw,18px);
  padding: 0.7em 1.4em;
}

/* アクセント指定も青に統一 */
.btn--accent {
  background: #0080CC;
}

/* Topbar（ヘッダー） */
.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;           /* ヘッダーの高さ */
}
.brand img{ height: 28px; width: auto; }
.topbar__right{
  display: flex;
  align-items: center;
  gap: 14px;              /* 電話とボタンの間隔 */
}
.hours{ color: var(--muted); font-size: .92rem; }  /* 削除予定 */
.tel{ font-weight: 800; color: #111; text-decoration: none; }
.tel:hover{ text-decoration: underline; }

@media (max-width: 767px) {
  .topbar__right {
    display: none;
  }
}
/* ベース（モバイル優先） */
.logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.logo:hover {
  text-decoration: none; /* ホバー時も下線を出さない */
}
.logo__img {
  height: 22px;      /* スマホ時のロゴ高さ */
  width: auto;
}
.sitetitle {
  font-weight: 700;
  line-height: 1.2;
  /* 機種依存文字の「⑯」を修正し、スマホで小さめ、PCで拡大する */
  font-size: clamp(14px, 4.2vw, 20px);
  color: #093A95;
  margin: 0;         /* ヘッダー内の縦ズレ防止 */
  padding-right: 12px;
}

/* タブレット以上（ロゴ少し大きく、タイトルも読みやすく） */
@media (min-width: 720px) {
  .logo__img { height: 26px; }
  .sitetitle { font-size: clamp(16px, 2vw, 20px); }
}

/* PC（横幅に余裕があるので、さらに一段階アップ） */
@media (min-width: 1024px) {
  .topbar__inner { height: 68px; }  /* 見た目を整えるため少し背を高く */
  .logo__img { height: 32px; }
  .sitetitle { font-size: clamp(18px, 1.6vw, 24px); }
}

/* Hero */
.hero{background:linear-gradient(180deg,#f8fbff, #fff)}
.hero__inner{display:grid;grid-template-columns:1fr;align-items:center;gap:clamp(20px,3vw,40px);padding-block:clamp(36px,6vw,64px)}
.hero__col--visual img{max-width:560px;margin-inline:auto}
.hero__pill{display:inline-block;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.35em .9em;font-weight:700;color:#334}
.hero__title{font-size:clamp(40px,7vw,64px);line-height:1.1;margin:.2em 0 .1em;color:var(--brand);font-weight:900;letter-spacing:.02em}
.hero__subtitle{font-size:clamp(16px,2.2vw,20px);margin:0;color:#193}
.badge{position:relative;display:inline-block;background:var(--accent);color:#fff;font-weight:900;border-radius:999px;padding:.55em .9em;margin-bottom:10px;box-shadow:var(--shadow)}

/* Lead (center line) */
.lead{background:#fff}
.lead__headline{position:relative;text-align:center;font-weight:800;margin:0;padding:20px 0;color:#111}
.lead__headline::before,.lead__headline::after{content:"";position:absolute;top:50%;width:18%;height:2px;background:var(--line)}
.lead__headline::before{left:0}
.lead__headline::after{right:0}
.lead__text{margin:0;text-align:center;color:#222}

/* Section titles */
.section__h2{font-size:clamp(22px,2.6vw,28px);font-weight:900;margin:0 0 14px;border-bottom:3px solid var(--brand);display:inline-block;padding-bottom:8px}
.section__h2--center{display:block;text-align:center;border:0}

/* About block */
.about__illus .circle{width:220px;height:220px;border-radius:50%;overflow:hidden;margin-inline:auto;border:6px solid #fff;box-shadow:var(--shadow)}
.about__illus img{width:100%;height:100%;object-fit:cover}

/* Merit box */
.merit__box{border:3px solid var(--brand);
  border-radius:16px;
  padding:clamp(20px,3vw,28px);
  background:#fff;
  max-width: 700px;   /* 横幅の最大値を指定 */
  margin: 0 auto;     /* 中央寄せ */}
.merit__title{margin:0 0 12px;text-align:center;font-size:clamp(20px,2.4vw,24px);font-weight:900}
.list{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.list--check li{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:4px 12px;border-radius:12px;font-size:1.1em}
.list--check li::before{content:"✔";color:var(--brand);font-weight:900}

/* Recommend */
.list--dashed li{padding:12px 14px;border:1px dashed var(--line);border-radius:12px;box-shadow:0 0 0 #0000}
.recommend__illus img{max-width:320px;margin-inline:auto}

/* Voices */
.cards{display:grid;grid-template-columns:1fr;gap:18px}
.voice{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
/*.voice__avatar{width:84px;height:84px;border-radius:50%;overflow:hidden;box-shadow:var(--shadow)}*/
.voice__avatar img{width:100%;height:100%;object-fit:cover}
.voice__role{color:var(--muted);font-size:.95rem;margin-top:6px}

/* お客様の声（比率はここで調整） */
.voice--rect{
  --img-col: 1fr;   /* ← 画像側の比率（1:3なら 1fr） */
  --txt-col: 3fr;   /* ← テキスト側（1:3なら 3fr、1:4なら 4fr） */
}
.voice--rect .voice{
  grid-template-columns: minmax(0, var(--img-col)) minmax(0, var(--txt-col));
  column-gap: 24px;
  align-items: start; /* 縦に引き伸ばさない＝aspect-ratioが効く */
}

.voice--rect .voice__avatar {
  width: 120px;            /* 幅を固定（任意で調整可） */
  height: 120px;           /* 高さも同じにして正方形に */
  border-radius: 50%;      /* ←これで完全な円に */
  overflow: hidden;
  box-shadow: var(--shadow);
}
.voice--rect .voice__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 中央でトリミング */
  object-position: center; /* 中心を基準に */
  display: block;
}
/* テキストが広がれず重なるのを防ぐ重要ルール */
.voice--rect .voice__body{ min-width:0; }  /* ← これで折り返しOK */

/* ご利用法人のお声：スマホ最適化（1列カード/中央寄せ） */
@media (max-width: 767px){
.voice--rect .cards{ gap:16px; }

  .voice--rect .voice{
    grid-template-columns: 1fr;   /* 縦並び */
    text-align: left;             /* テキストは左寄せ */
    padding: 18px;
    row-gap: 12px;
  }

  /* 画像は中央 */
  .voice--rect .voice__avatar{
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-inline: auto;          /* 中央寄せ */
    box-shadow: var(--shadow);
  }
  .voice--rect .voice__avatar img{
    width: 100%; height: 100%; object-fit: cover;
  }

  .voice--rect .voice__body{
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;      /* 左寄せ */
  }

  /* 説明文 */
  .voice--rect .voice__body p{
    margin: 0 0 10px 0;           /* 下に余白をつけて役職と区切る */
    line-height: 1.8;
  }

  /* 役職は説明文の下に配置、特別な見出し装飾なし */
  .voice--rect .voice__role{
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
  }
}

/* FAQ */
.faq__list{display:grid;gap:12px}
.faq__item{border:1px solid var(--line);border-radius:12px;background:#fff}
.faq__item>summary{cursor:pointer;font-weight:800;padding:16px 48px 16px 16px;position:relative}
.faq__item>summary::marker{content:""}
.faq__item>summary::after{content:"\25BC";position:absolute;right:16px;top:16px;font-size:14px;transition:transform .2s ease}
.faq__item[open]>summary::after{transform:rotate(180deg)}
.answer{padding:0 16px 16px 16px;color:#333}

/* CTA */
.cta{background:linear-gradient(180deg, var(--blue-100), #fff), url('./assets/img/bg-sky.jpg') center/cover no-repeat;}
.cta__inner{padding:clamp(40px,6vw,72px) 0;text-align:center}
.cta__title{margin:0 0 6px;font-size:clamp(22px,2.8vw,28px);font-weight:900}
.cta__text{margin:0 0 14px}

/* ========== Company section ========== */
/* Grid構成 */
#company .company-grid{
  display:grid;
  grid-template-columns: 1fr 350px;   /* 左テキスト＋右ロゴ */
  grid-template-rows: auto auto;      /* 上段:会社情報, 下段:KPI */
  gap:24px;
  align-items:start;
}

/* ロゴは右上に固定 */
#company .company-image{
  grid-row:1; grid-column:2;
}

/* KPIは下段に横幅いっぱいで配置 */
#company .metrics{
  grid-column:1 / -1;    /* 左右カラムをまたいで全幅 */
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
  margin-top:10px;
}

/* KPIカード */
#company .kpi{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  background:#fff;
}
#company .kpi .num{
  font-size:28px;
  font-weight:500;
  color:var(--brand);
}
#company .kpi .cap{
  color:var(--muted);
  font-size:.95rem;
  font-weight:500;
}

#company {
  margin-bottom: 60px; /* companyセクションとフッターの間に余白を確保 好みで20〜60pxに調整 */
}
/* スマホ表示 */
@media (max-width: 720px){
  #company .company-grid{
    grid-template-columns:1fr; 
    grid-template-rows:auto auto auto;
  }
  #company .company-image{
    grid-column:1; grid-row:2; 
    justify-self:center;
  }
  #company .metrics{
    grid-template-columns:1fr;
    grid-row:3;
  }
}



/* Footer */
.footer{background:var(--footer);color:#fff;text-align:center;padding:28px 0;margin-top:20px}

/* Media Queries */
@media (min-width:768px){
  .grid--2{grid-template-columns:1.05fr .95fr;align-items:center}
  .hero__inner{grid-template-columns:1.1fr .9fr}
  .cards{grid-template-columns:repeat(2,1fr)}
}

/* テキスト PCでは中央寄せ */
.responsive-text {
  text-align: center;
}
/* テキスト スマホでは左寄せ */
@media (max-width: 720px) {
  .responsive-text {
    text-align: left;
  }
}
/* PCでは改行タグを無効化 */
.sp-br { display: none; }

/* スマホ表示では有効化 */
@media (max-width: 720px) {
  .sp-br { display: inline; }
}
/* デフォルトはスマホ用に左右に余白を追加 */
#form-wrapper {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box; /* 横スクロール防止 */
}
/* PC幅では余白を戻す */
@media (min-width: 768px) {
  #form-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width:1024px){
  .cards{grid-template-columns:repeat(2,1fr)}
}
/* Small helpers */
.sp{display:inline}
@media (min-width:768px){.sp{display:none}}

/* 画像だけのヒーローを常に全幅に */
.hero--image-only{ padding:0; background:#fff; }
/* ヒーロー内では container の最大幅/左右パディングを外す */
.hero--image-only .container{
  max-width:none;
  padding-inline:0;
}
/* 画像を親幅いっぱいに */
.hero--image-only .hero__image img{
  display:block;
  width:100%;
  max-width:none;
  height:auto;
}


@media (max-width: 480px){
  /* ヘッダー内を左右配置 */
  .topbar__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ロゴ表示*/
  .brand .logo { display: max-height: 35px; width: auto; }
  
  /* 受付時間は非表示 */
  .hours { 
    display: none;
  }

  /* 右側の電話とボタンを横並び */
  .topbar__right{
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  .tel {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap; /* 折り返し防止 */
  }

  .btn {
    padding: .4em .6em;
    font-size: .85rem;
    white-space: nowrap;
  }
}