@charset "UTF-8";

/* === リセットCSS === */
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

html{
    font-size: 100%;
}

body{
    font-family: sans-serif;
    height: 100%;
    overflow-x: hidden;
}

ul, ol ,li{
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
  opacity: 0.85;
  color: #dddddd !important; 
  transform: translateY(-2px);
  transition: all 0.3s ease;
}
  
img {
    max-width: 100%;
    vertical-align: bottom;
}
  
  *, *::before, *::after {
    box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;         
  background: linear-gradient(to right, #003366, #0099cc);
  color: #fff;  
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 64px;       
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  height: 40px;
  width: auto;
}

.logo-area h1 {
  font-size: 1.6rem;
  line-height: 1;
  margin: 0;
}


.nav-list {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.nav-list li {
  position: relative;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: #1A75D1; 
  white-space: nowrap; 
}

.nav-list li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  display: inline-block; /* ← クリック領域を広げる */
  padding: 6px 20px;      /* ← ここで左右余白を持たせる */
}
.nav-list li:last-child {
  padding-right: 0; /* ← 右の余白をなくす */
}

.nav-contact {
  background: rgba(255, 0, 0, 0.15); /* 透明感のある赤背景 */
  color: #cc0000; /* 赤文字 */
  padding: 6px 18px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(2px); /* 背景に軽くぼかし効果 */
  transition: all 0.3s ease;
}

/* 三本線（ハンバーガーアイコン） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #1b2b3a; /* ネイビー寄りブルーグレー */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* オーバーレイ背景 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(20, 25, 35, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* スライドメニュー */
.slide-menu {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  height: 100vh;
  background: linear-gradient(160deg, #14222e, #2c4660);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 120px 30px;
  transition: right 0.4s ease;
  z-index: 99999;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.25);
}

/* 行政ページ専用 スライドメニュー色 */
.gyousei-page .slide-menu {
  background: linear-gradient(160deg, #20394f, #476c8f);
}

/* 調査ページ専用 スライドメニュー色 */
.chousa-page .slide-menu {
  background: linear-gradient(160deg, #1e2a38, #455567); 
}

.slide-menu.active {
  right: 0;
}

.slide-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
  gap: 12px;              
}
.slide-menu li {
  width: 100%;
}
.slide-menu a {
  display: block;
  color: #fff !important;
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  padding: 12px 0;
  width: 100%;
  text-align: left; /* ← 左寄せ */
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.slide-menu a:hover {
  color: #b7d2f0;
  background-color: rgba(255, 255, 255, 0.08);
  padding-left: 6px;
}
.close-btn {
  position: absolute;
  top: 26px;
  right: 22px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9); 
  font-size: 3.2rem;
  font-weight: 200;
  font-family: "Helvetica Neue", "Arial", sans-serif; 
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  transition: transform 0.25s ease, color 0.3s ease, opacity 0.3s ease;
}
.close-btn:hover {
  color: #b7d2f0; 
  transform: rotate(90deg) scale(1.05); 
  opacity: 0.8;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  color: #333;
  overflow: hidden;
}
  
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/building.jpg");
  background-size: 110%;          /* ← coverより少し小さく */
  background-position: center 20%;/* ← 上側を優先的に表示 */
  background-repeat: no-repeat;
  animation: zoomIn 12s ease-out forwards;
  z-index: 0;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2); 
  }
}
.hero-copy {
  position: absolute;
  top: 45%;
  left: 5%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 1;
  max-width: 90%;
}
  
.hero-copy h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
}
  
.hero-copy p {
  font-size: 2rem;
  line-height: 1.6;
  color: white; /* 文字色を白に統一 */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
}
.section {
  padding: 80px 20px;
}

.achievement-grid {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.achievement-column {
  flex: 1;
  min-width: 260px;
}

.achievement-column h3 {
  border-bottom: 2px solid #007acc;
  padding-bottom: 6px;
  margin-bottom: 12px;
  color: #005792;
  font-size: 1.2em;
  font-weight: bold;
}

.achievement-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievement-column ul li {
  padding: 6px 0;
  font-size: 0.95em;
  line-height: 1.5;
}
.achievements.section {
  padding: 100px 20px 60px; /* 上・左右・下の余白 */
}
  
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: stretch;
}
.services {
  background: linear-gradient(to bottom, #f3f4f6, #ffffff); 
  padding: 80px 20px;
  text-align: center;
}  

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d0dce8;  
  border-radius: 0;            
  box-shadow: none;           
  text-align: left;            
  transition: background 0.3s ease;
  overflow: hidden;
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card p {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.6;
}

.service-card img {
  width: 100%;
  
  object-fit: cover;
  transition: transform 0.5s ease;
}
.keibi-page .service-card .body {
  background: #fff !important;
  padding: 20px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #003366; 
  margin-bottom: 6px;
  border-bottom: 2px solid #1A75D1; 
  display: inline-block;  
  padding-bottom: 4px;   
}

.service-card .en {
  font-size: 0.8rem;
  color: #1A75D1; 
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.85rem;
  color: #666;
  padding: 0 10px 20px;
  line-height: 1.6;
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}
  
.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr)); 
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
        
  .feature-item {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: none; /* ← これが重要 */
  }
      
  .feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .features-section {
    background: #fff;
    padding: 80px 20px;
  }
  
/* === 全ページ共通 見出し統一CSS === */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.3em;
  color: #111; /* デフォルト。ページ別で上書き */
}

.subheading-en {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
  display: block;
  text-align: center;
  color: #b73239; /* デフォルト（赤系） */
}
/* 警備ページ */
body.keibi-page .section-title { color: #003366; }
body.keibi-page .subheading-en { color: #1A75D1; }

/* 行政書士ページ */
body.gyousei-page .section-title { color: var(--accent-gold); }
body.gyousei-page .subheading-en { color: var(--accent-green); }

/* 調査ページ */
body.chousa-page .section-title { color: #fff; }
body.chousa-page .subheading-en { color: var(--accent-gold); }

/* フェードイン演出 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


  
.access {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.map-wrap {
  max-width: 800px;
  margin: 0 auto 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.access-info {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}
.contact.section {
  padding-top: 100px;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form .privacy-check {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.contact-form .submit-btn {
  background-color: #b80000;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .submit-btn:hover {
  background-color: #990000;
}

.required {
  color: red;
  font-size: 0.8em;
}
form button {
  background-color: #b80000;
  color: #fff;
  padding: 16px 0;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 40px auto 60px;
  display: block;
  width: 260px;
  text-align: center;
  border: none;
  transition: all 0.3s ease;
}

form button:hover {
  background-color: #a00000;
  transform: scale(1.05); 
}


.site-footer {
  background: linear-gradient(to right, #003366, #0099cc);  
  color: #fff;
  padding: 40px 20px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer .company-name,
.site-footer .copyright {
  margin: 10px 0;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer .company-name,
.site-footer .copyright {
  margin: 10px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: auto;
  height: 28px;
}

.company-name {
  font-weight: bold;
  font-size: 16px;
}

.footer-right {
  text-align: right;
}

.page-top {
  display: inline-block;
  background-color: #fff;
  color: #b80000;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.page-top:hover {
  background-color: #eee;
  transform: translateY(-3px);
  transition: 0.3s ease;
}

.top-services-card {
  display: block;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.top-services-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.top-services-card .card-body { padding: 20px; text-align: left; }
.top-services-card .service-tag {
  font-size: 0.85rem;
  color: #1A75D1;
  margin-bottom: 6px;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.top-services-card .service-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #111;
}
.top-services-card .service-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}


/* === アップビーチの強みセクション背景装飾 === */
.features-section {
  position: relative;
  z-index: 1;
}

.features-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('../img/wave-top.svg') no-repeat top center;
  background-size: cover;
  z-index: 1;
}

.features-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('../img/wave-bottom.svg') no-repeat bottom center;
  background-size: cover;
  z-index: 1;
}
.wave-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.strengths-circles {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.circle-item {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 50%;
  width: 230px;
  height: 230px;
  padding: 25px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}

.circle-item:hover {
  transform: translateY(-5px);
}

.circle-number {
  position: absolute;
  top: -20px;
  left: -15px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #005387;
}

.circle-icon img {
  width: 48px;
  margin-bottom: 10px;
}
.wave-svg-bottom {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.strengths-section {
  padding: 100px 20px 120px; 
  background: #fff7f3;
  position: relative;
  z-index: 1;
}


.wave-svg {
  display: block;        
  margin: 0;              
  padding: 0;            
  line-height: 0;         
}

.wave-svg,
.wave-svg-bottom {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}
/* === 会社沿革（シンプル仕切り線タイプ） === */
#history {
  position: relative;
  padding: 100px 20px;
  background: linear-gradient(
    rgba(234,243,255,0.82),  /* #EAF3FF系：もう少し薄く */
    rgba(234,243,255,0.82)    ),
    url("../img/building.jpg") no-repeat center center; 
  background-size: cover;
  z-index: 1;
}

/* タイムライン全体 */
.timeline {
  background: #f9fbff;          /* 薄いブルー系 */
  padding: 40px 30px;
  border-radius: 12px;          /* 角丸 */
  border: 1px solid #dce7f3;    /* ほんのりブルー寄りの枠線 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* やわらかい影 */
  background: rgba(255,255,255,0.75);         /* 透けさせる */
  border: 1px solid rgba(0,56,112,0.08);      /* 枠は控えめに */
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);    /* 影も少しだけ強め */
  max-width: 900px;
  margin: 0 auto;
}
/* 各行 */
.timeline li {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #ccc; /* ← シンプルな区切り線 */
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}

/* 年号（丸） */
.timeline-year {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0056a3; /* ブランド青に変更してもOK */
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 内容部分 */
.timeline-content {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ================================
   警備ページ専用スタイル
================================ */

/* 代表あいさつ */
.keibi-page .greeting-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.keibi-page .greeting-photo img {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: -30px;
}

.keibi-page .hero-copy .hero-en {
  color: #C62828;
}

.keibi-page .container .section-title{
  text-align: center;
}

.keibi-page .career-box {
  box-shadow: inset 0 -40px 40px rgba(0,0,0,0.03);
}

/* 警備サービス */
.keibi-page .security-services {
  background: linear-gradient(135deg, #dfeffc 0%, #ffffff 100%);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 100px 0;
  text-align: center;
}

.keibi-page .security-services {
  padding: 40px 0;
  background: linear-gradient(135deg, #dfeffc 0%, #f0f6ff 100%);
}

/* タイトル部分 */
.keibi-page .security-services .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #002d64;
  margin-bottom: 10px;
}
.keibi-page .security-services .subheading-en {
  color: #0056a3;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 50px;
}

/* カードグリッド */
.keibi-page .security-services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}


/* 実績紹介 */
.achievement-list {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ご依頼案内 */
.contact-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* アクセス */
.keibi-page .access {
  background: #f7f9fc;  
  width: 100vw;         
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;    
  margin-right: -50vw;
}

.access .cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.keibi-page .contact.section {
  background: #f0f6ff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 100px 0;
}

/* フッター事業一覧 */
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

/* ヒーロー */
body.keibi-page .hero::before { content: none; }
.keibi-page .hero img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}
.hero.hero-small {
  position: relative;
  height: 45vh;
  overflow: hidden;
}
.hero.hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero.hero-small .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero.hero-small .hero-copy {
  position: absolute;
  top: 60%;
  right: 5%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 2;
  text-align: right;
}
.hero.hero-small .hero-copy h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.hero.hero-small .hero-copy p {
  font-size: 1.2rem;
}

/* ===== お問い合わせセクション ===== */
.contact.section {
  background: linear-gradient(to bottom right, #eaf3ff, #ffffff);
  padding: 80px 20px;
  border-radius: 12px;
}
.contact-section .section-title,
.contact-section .subheading-en,
.contact-section .contact-lead {
  text-align: center;
}
.contact-lead {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: #003366;
  margin: 20px auto 40px;
  white-space: normal;
  word-break: break-word;
}
.contact-phone-box {
  text-align: center;
  background: #fff;
  border: 2px solid #1A75D1;
  border-radius: 10px;
  padding: 20px 30px;
  max-width: 400px;
  margin: 0 auto 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-phone-box .label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.contact-phone-box .phone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;         /* ← 折り返し禁止！ */
  font-size: 2rem;
  font-weight: bold;
  color: #1A75D1;
  margin: 8px 0;
  text-decoration: none;
  gap: 10px;
  white-space: nowrap;       /* ← 念のため */
}

.contact-phone-box .phone-icon {
  font-size: 2rem;
}

.contact-phone-box .time {
  font-size: 0.9rem;
  color: #666;
}

/* フォーム */
.contact-form-area {
  background: #fff;
  border: 2px solid #d4e6f8;
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  max-width: 800px;
  margin: 0 auto;
}
.contact-form-area .form-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
  color: #0056a3;
}

/* ===== 職務経歴 ===== */
.career-box {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 80px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.career-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}
.career-left { flex: 1 1 50%; }
.career-intro { flex: 1 1 50%; text-align: center; }
.career-box h3 {
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #003366;
  border-left: 4px solid #0056a3;
  padding-left: 8px;
}
.career-box p {
  line-height: 1.8;
  font-size: 1rem;
  color: #333;
}
.career-left ul { margin-bottom: 25px; }
.career-left li { margin-bottom: 6px; }

/* 賞状画像 */
.career-intro .awards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.award-img {
  width: 45%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.career-intro p {
  text-align: left;           
  line-height: 1.9;           
  max-width: 720px;           
  margin: 30px auto 0;       
  color: #333;              
  font-size: 1rem;
}
.keibi-page .security-services .service-card {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  height: 100%; 
  background: #fff;
}

.keibi-page .security-services .grid {
  align-items: stretch; 
}


/* ================================
   行政書士ページ専用スタイル
================================ */
body.gyousei-page {
  --main-color: #0a2a43;     /* 深いネイビー */
  --accent-green: #1b5e4a;   /* 落ち着いたグリーン */
  --accent-gold: #d4af37;    /* 上品なゴールド */
}

/* ヒーロー */
body.gyousei-page .hero::before {
  background-image: url("../img/service-gyousei2.jpg"); /* 行政ページ用の画像 */
  background-position: center 55%; /* 必要に応じて調整 */
}

.gyousei-page .hero-small {
  position: relative;
  height: 45vh !important;
  overflow: hidden;
}

/* body.gyousei-page .hero-copy {
  position: absolute;
  bottom: 20%;
  right: 8%;
  text-align: right;
  transform: none !important; 
} */

body.gyousei-page .hero-copy h2,
body.gyousei-page .hero-copy p {
  text-align: right !important;
  margin-right: 0;
}

.gyousei-page .hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gyousei-page .hero-overlay {
  background: rgba(0, 0, 0, 0.45); /* 少し暗めにして文字を見やすく */
}

body.gyousei-page #greeting .about-container{
  display:grid;
  grid-template-columns: 1.6fr 1fr; /* 左：文章／右：写真 */
  gap:40px;
  align-items:center;
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

body.gyousei-page #greeting .greeting-text{
  line-height:1.9;
  color:#222;
  font-size:1rem;
}
body.gyousei-page #greeting .greeting-text .signature{
  margin-top:14px;
  font-weight:700;
  color:var(--main-color);
}
body.gyousei-page #greeting .greeting-photo{
  text-align:right;
}
body.gyousei-page #greeting .greeting-photo img{
  width:100%;
  max-width:420px;   /* バランス良いサイズ */
  height:auto;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* ========== 行政：代表挨拶（写真＋テキスト） ========== */
body.gyousei-page .gyousei-greeting {
  display: grid;
  grid-template-columns: 1fr 1.6fr;   /* 画像 : 文面（PC） */
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

body.gyousei-page #greeting .greeting-photo {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: block;
}

.gyousei-page .greeting-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  flex-wrap: wrap; /* スマホで縦並びになるように */
}

.gyousei-page .greeting-text {
  flex: 1 1 55%;
  text-align: left;
  line-height: 1.9;
  font-size: 1rem;
  color: #0b2545;
}

.gyousei-page .greeting-photo {
  flex: 1 1 40%;
  text-align: right;
}

.gyousei-page .greeting-photo img {
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

body.gyousei-page .gyousei-greeting .signature {
  margin-top: 14px;
  font-weight: 700;
  color: var(--main-color);
}


/* 業務内容カード */
.gyousei-page .service-card {
  border: 1px solid #ccd4db;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gyousei-page .service-card h3 {
  color: var(--main-color);
  border-bottom: 2px solid var(--accent-gold);
  display: inline-block;
  margin-bottom: 10px;
}

/* 強み（features） */
.gyousei-page .feature-item {
  border-top: 4px solid var(--accent-gold);
}

.gyousei-page .feature-item h3 {
  color: var(--main-color);
}

.gyousei-page .feature-item p {
  color: #333;
}

/* プロフィール（経歴部分） */
.gyousei-page .career-box {
  background: #f8f9fa;
  border-left: 4px solid var(--accent-gold);
}

.gyousei-page .career-box h3 {
  color: var(--main-color);
}

/* ご依頼の流れ セクション全体 */
.gyousei-page #flow {
  padding: 60px 0 40px;
  background-color: #fff; 
  text-align: center;
}
.gyousei-page #flow h2 {
  margin-bottom: 30px;
}
.gyousei-page #flow ol {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.gyousei-page #flow ol li {
  margin: 10px 0;
  font-weight: bold;
  color: var(--accent-green);
}

/* フッター（行政ページでも統一） */
.gyousei-page .site-footer {
  background: linear-gradient(to right, var(--main-color), var(--accent-green));
}
.gyousei-page .footer-links li a:hover {
  color: var(--accent-gold);
}
.gyousei-page h2 {
  color: var(--accent-gold);
  text-align: center;
}
.gyousei-page h2 {
  font-size: 2rem;            
  font-weight: 700;           
  color: var(--accent-gold);  
  text-align: center;         
  margin-bottom: 8px;         
}

.gyousei-page .subheading-en {
  display: block;
  text-align: center;
  font-size: 0.95rem;         
  color: var(--accent-green); 
  margin-bottom: 50px;        
  letter-spacing: 0.08em;    
}

/* ===============================
   探偵ページ専用スタイル
   =============================== */
/* ヒーロー */
body.chousa-page .greeting-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* テキスト左・画像右の順番 */
body.chousa-page .greeting-text {
  flex: 1 1 55%;
  order: 1;
  text-align: left;
  line-height: 1.8;
  font-size: 1rem;
}

body.chousa-page .greeting-photo {
  flex: 1 1 40%;
  order: 2;
  text-align: center;
}

body.chousa-page .greeting-photo img {
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

/* 調査内容 */
.chousa-services {
  background: var(--main-bg);
  color: #fff;
  padding: 100px 20px 120px;
  text-align: center;
}
.chousa-services h2.section-title {
  color: #fff;
  font-size: 2rem;
}

/* 円形カード */
.chousa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.chousa-card {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background-color: #000;
}
.chousa-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.chousa-card .text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  z-index: 2;
}
.chousa-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.chousa-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #f1f1f1;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
/* ホバー無効化 */
.chousa-card:hover {
  transform: none;
}
.chousa-card:hover img {
  opacity: 0.85;
}
body.chousa-page {
  background-color: #1b2330;
  color: #fff;
  --accent-gold: #d4af37;
  --main-bg: #1b2330;
}

/* ヒーロー */
.chousa-page .hero-small {
  height: 45vh;
  position: relative;
}
.chousa-page .hero-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chousa-page .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.chousa-page .hero-copy {
  position: absolute;
  bottom: 10px;
  left: 5%;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.chousa-page .hero-copy h2 {
  font-size: 2rem;
  line-height: 1.4;
}
.chousa-page .hero-copy p {
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* グリッド配置 */
.investigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px;
  justify-content: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* === 円形カード === */
.investigation-card {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.investigation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}
.investigation-card .card-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  z-index: 2;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s ease;
}

.investigation-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.investigation-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #f1f1f1;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* === ホバー演出 === */
.investigation-card:hover {
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
}
.investigation-card:hover img {
  opacity: 1;
}
.investigation-card:hover .card-text {
  background: rgba(0,0,0,0.55);
  border: 2px solid var(--accent-gold);
}

/* ===============================
   探偵ページ専用 お問い合わせ見出し修正
   =============================== */
body.chousa-page .contact.section {
  background: #f9fbff;
  color: #0b2545;     
} 
body.chousa-page .section-title { color: #fff; }

/* 日本語タイトル（h2） */
body.chousa-page .contact.section .section-title {
  color: #0b2545 !important;
  text-align: center;
  font-weight: 700;
}

/* ラベル（お問い合わせ項目・お名前など） */
body.chousa-page .contact-form label {
  color: #0b2545;
  font-weight: 600;
}

/* 必須マーク */
body.chousa-page .contact-form .required {
  color: #c62828;
}

/* 入力欄 */
body.chousa-page .contact-form input,
body.chousa-page .contact-form select,
body.chousa-page .contact-form textarea {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
}

.chousa-page .hero .hero-en {
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* 代表挨拶セクション */
body.chousa-page #greeting {
  background: #f9fbff;
  color: #0b2545;
  text-align: center;
  padding: 80px 20px;
}

.greeting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 40px;
}
.chousa-page .greeting-text {
  text-align: left;
}

.greeting-photo img {
  width: 260px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.greeting-text {
  max-width: 520px;
  line-height: 1.8;
  font-size: 1rem;
}

.chousa-page .container .section-title{
  text-align: center;
  color: #0b2545
}
.chousa-page #services .section-title{
  color: #fff;
}
#access .section-title {
  color: #0b2545 
}

/* =========================
   各ページ専用ヒーロー設定
   ========================= */

body.keibi-page .hero::before,
body.gyousei-page .hero::before,
body.chousa-page .hero::before {
  content: none !important;
  background: none !important;
}
/* === ページトップボタン === */
#pageTopBtn {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: #003366;      /* メインカラーに合わせてOK */
  color: #fff;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
#pageTopBtn:hover {
  background: #0099cc;       /* ホバー時カラー */
}

/* 表示状態 */
#pageTopBtn.show {
  opacity: 1;
  visibility: visible;
}
body.top-page .slide-menu {
  width: 80vw;
  max-width: 380px;
  height: 100vh;
  padding: 120px 30px;
}
.license-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.site-footer .footer-title {
  all: unset;
  font-size: 1.2rem;      
  font-weight: bold; 
}

body.top-page .slide-menu a {
  font-size: 1.4rem;     
  letter-spacing: 0.05em;
  padding: 16px 0;       
}

body.top-page .slide-menu ul {
  gap: 16px;             
}
body.gyousei-page .hero.hero-small .hero-copy {
  position: absolute !important;
  top: 70% !important;        /* ← 警備ページと同じ位置基準に統一 */
  right: 5% !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  text-align: right !important;
  z-index: 5 !important;
}



@media screen and (max-width: 767px) {
   header nav {
    display: none;
  }
  .logo-area {
    display: flex;            
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .logo-area h1,
  .logo-area h1 a {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;        
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
  } 

  .logo-area img {
  height: 32px;
  width: auto;               
  }

  .hamburger {
    display: flex;
  }
  .hero {
    height: 100vh;
  }
  .hero::before {
    background-size: cover;        
    background-position:75% center; 
  }
  .hero-copy {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    text-align: left;
  }
  .hero-copy h2 {
    font-size: 1.4rem;
  }
  .hero-copy p {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .card-grid {
    grid-template-columns: 1fr;  
    gap: 16px;
  } 
  
  .features {
    grid-template-columns: 1fr;
  }  
  .greeting-inner,
  .access .cols {
    grid-template-columns: 1fr;
  }
  .career-inner {
    flex-direction: column;  /* ← 縦並びにする */
    gap: 20px;               /* 縦の余白 */
  }
  .career-left, .career-right {
    flex: 1 1 100%; 
    max-width: 100%;
  }
   .career-right {
    text-align: center;      /* 免状の画像を中央寄せ */
  }
  .awards {
    flex-direction: column;   /* ← 横並び→縦並び */
    align-items: center;      /* 中央寄せ */
    gap: 20px;                /* 画像の間隔 */
  }
  .award-img {
    width: 80%;               /* スマホでは少し小さめ */
    max-width: 300px;
    margin: 0 auto;
    transform: none !important; /* ← PC用の位置ずらし解除 */
  }
  .investigation-card {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 16px;  
  }
.investigation-card p{
  display: block;      
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}  
.investigation-card img {
  width: 100%;
  height: 180px;         
  object-fit: cover;
}
.investigation-card .card-text{
  position: static;    
  display: block;      
  text-align: left;    
  background: #10151b;
  padding: 12px 16px;
}  
.investigation-card h3{
  text-align: center;   
  margin: 0 0 6px;
}
.greeting {
flex-direction: column;
text-align: center;
}
.greeting-photo img {
  width: 200px;
}
.chousa-page .hero-small {
   height: 55vh; 
}   
.chousa-page .hero-copy { 
  bottom: 36px; 
}
.chousa-page .greeting-inner {
    flex-direction: column;
    text-align: center;
  }
.chousa-page .greeting-text {
    order: 2;
    text-align: center;
  }
.chousa-page .greeting-photo {
    order: 1;
  }  .chousa-page .greeting-photo img {
    max-width: 200px;
  }
  .chousa-page .greeting .section-title {
  color: #0b2545;
}

  .contact-phone-box .phone-number {
    font-size: 1.6rem;  
  }
  /* タイトル */
  .keibi-page .security-services .section-title {
    font-size: 1.6rem;
    color: #003366; /* 元に戻す */
    margin-bottom: 0.5em;
  }

  /* 英語見出し */
  .keibi-page .security-services .subheading-en {
    font-size: 0.9rem;
    margin-bottom: 40px;
  }

  /* グリッド → 1列に */
  .keibi-page .security-services .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 95%;
    margin: 0 auto;
  }

  /* カード調整 */
  .keibi-page .security-services .service-card img {
    height: 200px;
    object-fit: cover;
  }

  .keibi-page .security-services .service-card .body {
    padding: 16px;
  }

  .keibi-page .security-services .service-card h3 {
    font-size: 1.1rem;
  }

  .keibi-page .security-services .service-card p {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  /* コンテナの固定幅解除 */
  .keibi-page .security-services .container {
    max-width: none;
    width: 100%;
    padding: 0 10px;
  }
  .keibi-page .greeting-inner {
    display: block;
    text-align: center;
    padding: 0 20px;
  }

  .keibi-page .greeting-text {
    max-width: 100%;
    margin-bottom: 30px;
    text-align: left; 
    line-height: 1.8;
  }

  .keibi-page .greeting-photo {
    text-align: center;
  }

  .keibi-page .greeting-photo img {
    width: 70%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
  }  
.contact .contact-lead {
    display: block;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 15px auto 25px;
    padding: 0 14px;
    text-align: center;
    white-space: normal;     
    word-break: break-word;  
  }
  /* 電話ボックス（全ページ共通） */
  .contact-phone-box {
    max-width: 320px; /* 一回り小さく */
    padding: 15px 20px;
    margin: 0 auto 40px;
    border-radius: 10px; /* 柔らかい印象に */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .contact-phone-box .phone-number {
    font-size: 1.6rem;
  }

  .contact-phone-box .label {
    font-size: 0.85rem;
  }

  .contact-phone-box .time {
    font-size: 0.8rem;
  }
  .keibi-page .security-services,
  .keibi-page .access,
  .keibi-page .contact.section,
  .career-box {
    width: 100%;
    left: auto; right: auto;
    margin-left: 0; margin-right: 0;
  }
    .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;       
  }
  .footer-left, .footer-right { text-align: center; 
  }
  #pageTopBtn {
    bottom: 20px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
body.gyousei-page .hero-small {
    height: 55vh;
    position: relative;
  }

body.gyousei-page .hero-copy {
    position: absolute !important;
    bottom: 25% !important;   /* ← 今より上に上げる（数字を大きくするほど上へ） */
    right: 5% !important;
    left: auto !important;
    text-align: right !important;
    transform: none !important;
  }
  body.gyousei-page .hero-copy h2 {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  body.gyousei-page .hero-copy p {
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: normal;
  }
  
  body.gyousei-page .hero.hero-small .hero-copy {
    top: 70% !important;     
    right: 5% !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  body.gyousei-page .hero-copy h2 {
    font-size: 1.5rem !important; 
  }

  body.gyousei-page .hero-copy p {
    font-size: 0.95rem !important; 
  }
  
}

@media (min-width: 768px) {
  .hamburger,
  .slide-menu,
  .overlay {
    display: none !important;
  }
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;       
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


