/* =========================
   variables
========================= */
:root {
  --primary-color: #c1272d;
  --text-color: #333;
  --bg-color: #fff;
  --link-color: #c1272d;
  --font-family: 'Noto Sans JP', sans-serif;
  --header-h: 56px;       /* モバイルバー高さ */
  --header-pad-x: 1rem;   /* モバイル左右パディング */
}

/* =========================
   base
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: text-decoration 0.3s;
}
a:hover { text-decoration: underline; }

/* =========================
   header / nav
========================= */
.header-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  padding: 0 var(--header-pad-x);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.header-spacer { height: var(--header-h); }

/* モバイルのロゴ：1つ目のCSSサイズを採用 */
.header-bar .brand .logo {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* PCナビはモバイルでは非表示 */
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; }
.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta {
  color: #fff; background: var(--primary-color);
  padding: .5rem .9rem; border-radius: 6px; text-decoration: none;
}
.site-nav .nav-cta:hover { background: #a32024; }

/* =========================
   hamburger button
========================= */
.hamburger {
  width: 44px; height: 40px;
  display: grid; place-content: center; gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 40;             /* ロゴより前 */
  position: fixed;         /* 三本線は固定 */
  top: 0.5rem; right: 1rem;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary-color);
}

/* =========================
   drawer / overlay
========================= */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.3);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 35;
}
.nav-overlay.is-active {
  opacity: 1; pointer-events: auto;
}

.nav-drawer {
  position: fixed; top: 0; right: 0;
  height: 100dvh;
  width: 80vw; max-width: 320px;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 36;
  padding: 16px;
}
.nav-drawer.is-open { transform: translateX(0); }

/* ×ボタン：三本線と同じ位置・色 */
.drawer-close {
  position: fixed;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 41;
  opacity: 0; pointer-events: none;
  transition: transform .28s ease, opacity .2s ease;
}
.drawer-open .drawer-close {
  opacity: 1; pointer-events: auto;
  transform: rotate(90deg);   /* 回転アニメーション */
}

.drawer-nav ul { list-style: none; margin: 56px 0 0; padding: 0; }
.drawer-nav li { border-bottom: 1px solid #eee; }
.drawer-nav a {
  display: block;
  padding: 14px 4px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
}
.drawer-nav a.nav-cta {
  margin-top: 10px;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  border-radius: 6px;
}

/* =========================
   PC override
========================= */
@media (min-width: 768px) {
  :root {
    --header-h: 72px;
    --header-pad-x: 15vw; /* heroと揃える */
  }
  .site-nav { display: block; }
  .hamburger { display: none; }

  /* ロゴ：バー高さの80%、縦中央揃え、アスペクト比保持 */
  .header-bar .brand .logo {
    width: auto;
    margin: 0;
  }
}

/* =========================
   hero（モバイル：幅いっぱい/隙間なし）
========================= */
.hero {
  position: relative;
  width: 100%;           /* 画面幅いっぱい */
  margin: 0;             /* 隙間なし */
  height: 60vh;
  overflow: hidden;
  border-radius: 0;      /* モバイルは角丸なし */
}

/* 背景画像（スライドショー用） */
.hero .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  /* フェード切替用 */
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 0;
}
.hero .bg-img.is-active {
  opacity: 1;
  z-index: 1;
}

/* 黒フィルター */
.hero .overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* キャッチコピー（モバイル：大きく/横幅いっぱい/2行想定） */
.hero .catch {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  font-weight: 800;
  text-align: center;

  /* 横幅いっぱいを使う（左右にわずかに余白） */
  width: 92vw;
  padding: 0 .5rem;

  /* 2行想定。小さすぎず大きすぎない可変サイズ */
  font-size: clamp(1.8rem, 9vw, 2.6rem);
  line-height: 1.25;
  word-break: keep-all;
}

/* =========================
   sections 共通（モバイル基準）
========================= */
section { padding: 3rem 1rem; }
section h2 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary-color);
}
section p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

/* =========================
   about（モバイルは縦積み）
========================= */
.about .about-inner {
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.about-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 1rem;
}
.about-text {
  width: 100%;
  text-align: left;
}

/* =========================
   service（モバイルは縦積み）
========================= */
.service .service-block {
  display: flex;
  flex-direction: column;   /* 画像 → テキスト */
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 0.5rem;
}

.service .service-media { flex: 1 1 auto; width: 100%; }
.service .service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* 4:3で統一表示（外側トリミング可） */
  border-radius: 12px;
  object-fit: cover;
}
.service .service-text { flex: 1 1 auto; width: 100%; }

/* リストの見た目：点を消し、強調はカラーで */
.service .service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service .service-list li {
  margin-bottom: 1rem;
  padding-left: 0;
  position: relative;
}
.service .service-list li::before { content: none; }
.service .service-list li strong {
  font-weight: bolder;                 /* 極太ではなく中太 */
  color: var(--primary-color);      /*黒太字の代わりに色で強調:/
  /* color: #555; */
  font-size: 1.3rem;
}
.service .service-list li.highlight {
  color: #333;                      /* 強調行は本文色のままに調整 */
}


/* =========================
   video section
========================= */
.video-section {
  padding: 2rem 0;
  background-color: #fff;
}

.video-section p {
  margin-bottom: 1.5rem;
}

.video-wrapper {
  width: 80%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  /* background-color: #000; */
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 2rem auto;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
} */



/* =========================
   sns
========================= */
.sns {
  background-color: #fafafa;
  text-align: center;
}

.sns p {
  margin-bottom: 1.5rem;
  text-align: center;
}

.sns .insta-link {
  display: inline-flex;          /* アイコンとテキストを横並びに */
  align-items: center;           /* 縦位置を中央に */
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
  text-decoration: none;
  gap: 0.8rem;                   /* アイコンと文字の間に余白 */
}

.sns .insta-link:hover {
  background-color: #a32024;
}

.sns .insta-logo {
  width: 30px;                 /* 適度なサイズ感（調整OK） */
  height: 30px;
  object-fit: contain;
}


/* =========================
   会社概要company
========================= */
/* ===== Company Section ===== */
.company {
  padding: 3rem 1rem;
}

.company h2 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
}

.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table ul{
  padding-left: 1.2rem;       /* リストの左余白 */
  list-style-type: disc;      /* 黒丸リスト */
}
.company-table ul li {
  margin-bottom: .4rem;      /* リスト項目の下余白 */
}
.company-table tr {
  border-bottom: 1px solid var(--primary-color); /* 行ごとに1本線 */
}

.company-table th,
.company-table td {
  border: none;                /* セルごとの線は消す */
  padding: 0.75rem 0.5rem;
  text-align: left;
}

.company-table th {
  font-weight: 700;
  width: 30%;
  white-space: nowrap;
}

.company-table td {
  font-weight: 400;
  color: var(--text-color);
}

/* ===== モバイル版: th と td を縦並びに ===== */
@media (max-width: 767px) {
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table tr {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-color);
  }

  .company-table th {
    margin-bottom: 0.3rem;
  }

  .company-table td {
    border: none;
  }
}
/* =========================
   access
========================= */
.access { text-align: center; }
.access .map {
  margin-top: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #ddd;
}
.access .map iframe {
  display: block;
  width: 100%;
  height: 300px;
}

/* =========================
   buttons / contact / footer
========================= */
.btn { text-align: center; }
.btn-contact {
  display: inline-block;
  margin: 1rem auto;
  padding: .6rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  width: 70%;
  max-width: 400px;
  text-align: center;
}
.btn-contact:hover { background: #a32024; }

.contact { padding: 1rem 1rem 6rem; background: #fafafa; }
.contact .contact-form {
  max-width: 720px; margin: 0 auto; display: grid; gap: 1rem;
}
.contact .form-row { display: grid; gap: .4rem; }
.contact label { font-weight: 700; }
.contact input, .contact textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .6rem .8rem;
}
.btn-primary {
  background: var(--primary-color); color: #fff; border: 0; padding: .8rem 1.2rem;
  border-radius: 6px; font-weight: 700; cursor: pointer;
}
.btn-primary:hover { background: #a32024; }

footer {
  background-color: #333;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* 必須マーク */
.req { color: #c1272d; font-weight: 700; }

/* 入力エラー表示 */
.field-error {
  color: #c1272d;
  font-size: .9rem;
  margin-top: .25rem;
  min-height: 1.1em; /* レイアウトのガタつき防止 */
}
input.invalid, textarea.invalid {
  border-color: #c1272d !important;
  background: #fff6f6;
}

/* 送信完了メッセージ（既出のものがなければ） */
.form-success {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: .8rem 1rem;
  border: 1px solid #cdeccd;
  background: #f3fff3;
  color: #256029;
  border-radius: 8px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.form-success.is-show {
  opacity: 1;
  transform: translateY(0);
}

.error-message {
  display: none;        /* 初期は非表示 */
  color: red;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* 送信ボタンの無効状態 */
#contactSubmit:disabled,
#contactSubmit[disabled] {
  background: #ccc;         /* 灰色にする */
  color: #777;              /* 文字色も淡く */
  cursor: not-allowed;      /* 押せないカーソル */
  opacity: 0.7;             /* 少し透過させる */
  box-shadow: none;         /* 立体感を消す */
}

/* ===== Floating CTA（閉じるボタンなし）===== */
.floating-cta{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 360px;

  /* フェード表示 */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.floating-cta.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 中身（枠：primary、中：白、テキスト：--text-color） */
.floating-cta .cta-inner{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;                 /* 参考画像の“横長”バランス */
  background: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  text-decoration: none;
  color: var(--text-color);
}

/* 画像とテキストのサイズ感 */
.floating-cta .cta-icon{
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.floating-cta .cta-text{
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}
.floating-cta .cta-pre{
  font-size: .9rem;
  font-weight: 600;
  opacity: .85;
}
.floating-cta .cta-main{
  font-size: 1.15rem;
  font-weight: 800;
}

/* スマホははみ出しにくい幅に */
@media (max-width: 480px){
  .floating-cta{ right: 12px; left: 12px; max-width: none; }
  .floating-cta .cta-inner{ padding: 14px 16px; }
  .floating-cta .cta-icon{ width: 60px; height: 60px; }
  .floating-cta .cta-main{ font-size: 1.05rem; }
}

/* =========================
   Desktop overrides（PC時のみ）
========================= */
@media (min-width: 768px) {
  /* header / logo：左寄せ & サイズ調整 + hero左辺にそろえる（10vw） */
  header { padding: 3rem 0; }              /* 左右パディングは揃えのため0に */
  header .logo {
    margin: 1rem 0 1rem 10vw;              /* 左端を10vwに */
    max-width: 30%;                         /* ご指定 */
  }

  /* hero：幅80%・高さ70vh・中央寄せ・角丸なし */
  .hero {
    width: 70%;
    height: 70vh;
    margin: 0 auto;                         /* 中央寄せ */
    border-radius: 0;                        /* 角丸なし */
  }
  .hero .catch {
    font-size: 3rem;                         /* PCの見出しサイズ */
    width: 70vw;                              /* テキスト横幅も広めに */
    padding: 0;                               /* 余白は不要 */
  }

  /* sections：余白を少し広めに */
  section { padding: 4rem 2rem; }

  /* about：左右2カラム */
  .about .about-inner {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-direction: row;
  }
  .about-img { width: 50%; margin-top: 0; }
  .about-text { width: 50%; }

  /* service：左右並び（2段目だけ反転） */
  .service .service-block {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .service .service-block.reverse-desktop { flex-direction: row-reverse; }
  .service .service-media,
  .service .service-text { flex: 1 1 50%; width: auto; }
}
