/* =========================
   Brand strip (design heavy)
========================= */
.brand-strip{
  position: relative;
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(0,0,0,.05), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
  border-top: 1px solid rgba(0,0,0,.08);
}

.brand-kicker{
  letter-spacing: .22em;
  font-size: .75rem;
  color: rgba(0,0,0,.45);
}

.brand-rule{
  height: 2px;
  width: 72px;
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  margin-top: .9rem;
}

/* Logo card */
.brand-card{
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 96px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* subtle highlight */
.brand-card::before{
  content:"";
  position:absolute;
  inset:-30% -30% auto -30%;
  height: 90%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), transparent 55%);
  transform: rotate(-8deg);
  pointer-events:none;
}

.brand-card img{
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  filter: saturate(1.02);
  transition: transform .18s ease, filter .18s ease;
}

/* arrow badge */
.brand-arrow{
  position:absolute;
  top: 10px;
  right: 12px;
  font-size: .85rem;
  color: rgba(0,0,0,.35);
  transform: translateY(-2px);
  transition: transform .18s ease, color .18s ease;
}

.brand-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.14);
}

.brand-card:hover img{
  transform: scale(1.02);
  filter: saturate(1.08);
}

.brand-card:hover .brand-arrow{
  transform: translateY(0);
  color: rgba(0,0,0,.55);
}

/* Mobile tuning */
@media (max-width: 576px){
  .brand-card{
    min-height: 86px;
    padding: 14px 12px;
    border-radius: 16px;
  }
  .brand-card img{
    max-height: 44px;
  }
}

/* =========================
   Global polish
========================= */
:root{
  --radius-xl: 1.25rem;
  --radius-lg: 1.1rem;
  --line: rgba(0,0,0,.08);
  --shadow: 0 12px 28px rgba(0,0,0,.08);
}

.rounded-4{ border-radius: var(--radius-xl) !important; }
.object-fit-cover{ object-fit: cover; }

/* =========================
   Navbar
========================= */
@media (max-width: 991.98px){
  .site-nav{
    /* disable blur on mobile to avoid overlay issues */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Navbar height: slightly taller than logo */
.site-nav{
  /* ロゴ高さ(76px) + 余白(約12px) = 88px */
  min-height: 88px;
  background: rgba(255,255,255,.9);
}

.site-nav .navbar-brand img{
  height: 76px;   /* 念のため固定（HTMLと一致） */
  width: auto;
}

/* container の上下余白を微調整（今は py-2 が入っているため） */
.site-nav .container{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* =========================================
   Mobile menu fix (Bootstrap Offcanvas)
   - full width + full height
========================================= */
@media (max-width: 991.98px){
  .offcanvas{ --bs-offcanvas-width: 100vw; }

  .offcanvas.offcanvas-top,
  .offcanvas.offcanvas-bottom{
    --bs-offcanvas-height: 100dvh;
  }

  .offcanvas .offcanvas-body{
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.nav-pill .nav-link{
  border-radius: 999px;
  padding: .55rem .85rem;
  color: rgba(0,0,0,.72);
}

.nav-pill .nav-link:hover{
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.92);
}

.cta-pill{
  border-radius: 999px;
}

.offcanvas{
  border-left: 1px solid var(--line);
}

/* =========================
   Section headings (shared)
========================= */
.section-kicker{
  letter-spacing: .22em;
  font-size: .75rem;
  color: rgba(0,0,0,.45);
}

.section-rule{
  height: 2px;
  width: 72px;
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  margin-top: .9rem;
}

.section-head h2{ line-height: 1.2; }

/* =========================
   Hero
========================= */
.hero-pro{
  background:
    radial-gradient(1200px 460px at 50% 0%, rgba(0,0,0,.06), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
}

.hero-kicker{
  letter-spacing: .22em;
  font-size: .75rem;
  text-transform: uppercase;
  color: rgba(0,0,0,.45);
}

.hero-media{
  box-shadow: var(--shadow);
}


/* /contact hero image: full-bleed on mobile (CSS only) */
@media (max-width: 575.98px){

  /* まず container の左右余白を消す（これが本丸） */
  .hero > .container{
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* g-4 の余白が効いている場合もゼロに */
  .hero .row{
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
  }

  /* 念のため：画像ブロック自体を 100vw にしてフルブリード化 */
  .hero .page_title{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero .page_title img{
    display: block;
    width: 100%;
    height: auto;
  }

  /* 横スクロールが出る場合の保険 */
  html, body{
    overflow-x: clip;
  }
}

/* =========================
   Services cards
========================= */
.service-card{
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-media{
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease;
}

.service-media img.obj-left{
  object-position: 15% center; /* 0%に近いほど左が見える */
}

.service-body{
  padding: 16px 16px 18px;
}

.service-arrow{
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.15rem;
  color: rgba(0,0,0,.35);
  transition: transform .18s ease, color .18s ease;
}

.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.14);
}

.service-card:hover .service-media img{
  transform: scale(1.03);
}

.service-card:hover .service-arrow{
  transform: translateX(2px);
  color: rgba(0,0,0,.6);
}

/* =========================
   strip + glass card
========================= */
.glass-card{
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* =========================
   Mobile tuning
========================= */
@media (max-width: 576px){
  .nav-pill .nav-link{ padding: 1rem .8rem; }
  .service-body{ padding: 14px 14px 16px; }
  .service-arrow{ top: 10px; right: 12px; }
}


/* Content blocks */
.content-stack{ display: grid; gap: 12px; }

.content-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  padding: 16px 16px 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.media-card{
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

/* Features */
.feature-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}

.feature-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  flex: 0 0 auto;
}

/* Mobile tuning */
@media (max-width: 576px){
  .content-card{ padding: 14px 14px 16px; }
  .feature-item{ padding: 11px 11px; }
}


/* =========================
   Gallery thumbs
========================= */
.gallery-thumb{
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.gallery-thumb .ratio{
  transition: transform .18s ease, box-shadow .18s ease;
}

.gallery-thumb:hover .ratio{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
}

.modal-content .carousel img{
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Contact (polish) - main content only
========================= */
#contact .contact-wrap{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

@media (max-width: 991.98px){
  #contact .contact-wrap{
    grid-template-columns: 1fr;
  }
}

/* Card */
#contact .contact-card{
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 22px;
}

@media (min-width: 768px){
  #contact .contact-card{ padding: 28px; }
}

#contact .contact-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

#contact .contact-badge{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  background: rgba(0,0,0,.02);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .85rem;
  color: rgba(0,0,0,.72);
  white-space: nowrap;
}

#contact .contact-lead{
  color: rgba(0,0,0,.62);
  margin: 0 0 18px;
}

/* Form layout */
#contact .formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}

/* full-width rows */
#contact .formGrid .fieldRow:nth-child(1),
#contact .formGrid .fieldRow:nth-child(6),
#contact .formGrid .fieldRow:nth-child(7),
#contact .formGrid .fieldRow:nth-child(8),
#contact .formGrid .actions{
  grid-column: 1 / -1;
}

@media (max-width: 576px){
  #contact .formGrid{ grid-template-columns: 1fr; }
}

/* Labels */
#contact .fieldRow label,
#contact .fieldRow .label{
  display:block;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(0,0,0,.78);
}

/* Inputs */
#contact input[type="text"],
#contact input[type="tel"],
#contact input[type="email"],
#contact select,
#contact textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  padding: .75rem .85rem;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}

#contact textarea{
  resize: vertical;
  min-height: 180px;
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus{
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

/* Inline radio/checkbox groups */
#contact .inlineGroup{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  border-radius: 14px;
}

#contact .inlineGroup label{
  margin: 0;
  font-weight: 500;
  color: rgba(0,0,0,.78);
}

#contact .inlineGroup input{
  margin-right: 6px;
  transform: translateY(1px);
}

/* Buttons (keep your existing .btn system, just align) */
#contact .actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

#contact .contact-note{
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: .9rem;
  color: rgba(0,0,0,.55);
}

/* Honeypot hidden */
#contact .hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Map */
#contact .contact-map{
  padding: 22px;
}

#contact .map-frame{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #f6f6f6;
  aspect-ratio: 4 / 3;
}

#contact .map-frame iframe{
  width: 100%;
  height: 100%;
  display: block;
}

#contact .map-meta{
  margin-top: 14px;
  color: rgba(0,0,0,.62);
}

#contact .map-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}


#contact .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}

#contact .btn:active{ transform: translateY(1px); }
#contact .btn:focus{ outline: none; }
#contact .btn:focus-visible{ box-shadow: 0 0 0 4px rgba(0,0,0,.12); }

/* Primary */
#contact .btnPrimary{
  background: #111;
  color: #fff;
  border-color: #111;
}
#contact .btnPrimary:hover{
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}

/* Outline (縁のみ) */
#contact .btnOutline{
  background: transparent;
  color: #111;
  border-color: rgba(0,0,0,.35);
}
#contact .btnOutline:hover{
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.55);
}

/* Ghost (薄い) */
#contact .btnGhost{
  background: rgba(0,0,0,.03);
  color: #111;
  border-color: rgba(0,0,0,.12);
}
#contact .btnGhost:hover{
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.20);
}


/* =========================
   Contract page CSS (moved from <style>)
   Scope: #contract only
========================= */
#contract{
  background:#fafafa;
  color:#222;
}

/* wrap */
#contract .wrap{
  max-width:960px;
  margin:0 auto;
  padding:24px 14px;
}

/* card */
#contract .card{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:12px;
}

/* typography */
#contract h1{
  font-size:20px;
  margin:0 0 6px;
}

#contract p{
  margin:0 0 14px;
  color:#666;
  line-height:1.6;
}

/* list */
#contract ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

#contract li{
  margin:5px 0;
}

/* links */
#contract a{
  display:block;
  text-decoration:none;
  border:1px solid #e5e5e5;
  border-radius:10px;
  padding:15px 14px;
  background:#fff;
  color:#222;
}

#contract a:hover{
  background:#f4f4f4;
}

#contract .t{
  font-weight:700;
}

#contract .f{
  font-size:12px;
  color:#777;
  margin-top:4px;
}


/* =========================
   Responsive Google Map (inside .map-frame)
========================= */
#company .map-frame{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #f6f6f6;

  /* 高さを比率で可変（PC/スマホで崩れない） */
  aspect-ratio: 16 / 9;
}

/* iframe を枠いっぱいにフィット */
#company .map-frame iframe{
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: 0;
}


/* =========================
   Fluid typography (mobile & desktop)
   - Put this at the END of style.css
========================= */
:root{
  /* base */
  --fs-base: clamp(15px, 0.25vw + 14px, 17px);   /* 本文 */
  --lh-base: 1.75;

  /* headings */
  --fs-h1: clamp(28px, 2.2vw + 18px, 44px);      /* ヒーロー見出し */
  --fs-h2: clamp(20px, 1.1vw + 18px, 30px);
  --fs-h3: clamp(18px, 0.8vw + 17px, 24px);

  /* small / kicker / nav */
  --fs-small: clamp(12px, 0.2vw + 11px, 13px);
  --fs-kicker: clamp(11px, 0.2vw + 10px, 12px);
  --fs-nav: clamp(14px, 0.25vw + 13px, 16px);

  /* lead text */
  --fs-lead: clamp(16px, 0.6vw + 14px, 20px);
}

/* Base text */
html{ font-size: 16px; } /* rem基準は維持（Bootstrapと相性◎） */
body{
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* Paragraphs & list */
p, li{ font-size: var(--fs-base); line-height: var(--lh-base); }

/* Headings (generic) */
h1{ font-size: var(--fs-h1); line-height: 1.15; }
h2{ font-size: var(--fs-h2); line-height: 1.25; }
h3{ font-size: var(--fs-h3); line-height: 1.3; }

/* Bootstrap-ish helpers used in your pages */
.display-6{ font-size: var(--fs-h1) !important; line-height: 1.12; }
.lead{ font-size: var(--fs-lead) !important; line-height: 1.75; }
.small, small{ font-size: var(--fs-small) !important; }

/* Kicker (e.g., section labels) */
.section-kicker{
  font-size: var(--fs-kicker);
  letter-spacing: .08em;
}

/* Navbar text */
.site-nav .nav-link{
  font-size: var(--fs-nav);
}

/* Buttons (keep design, just prevent tiny text on mobile) */
.site-nav .btn,
#contact .btn,
#contract .btn{
  font-size: var(--fs-nav);
}
