html, body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==== NAVIGATION MENU ==== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 40px;
  z-index: 100;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
}

.logo {
  height: 20px !important;
  vertical-align: top;
  margin-top: -15px;
  margin-left: -23px;
}

.site-header a { 
display: inline-block;
  }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px; /* 各リンクの間隔 */
  list-style: none;
  margin-left: 920px;
  margin-top: -25px;
}

/* テキストリンクだけにマージン調整 */
.nav-menu li:not(:last-child) a {
  margin-top: 10px; /* ← 調整用。必要に応じて微調整 */
}

.nav-menu ul {
  display: flex;
  align-items: flex-start;
  gap: 40px !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  list-style: none;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 18px !important;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

/* テキストリンクだけにアンダーラインつける（画像リンクは除外） */
.nav-menu a:not(.logo-link)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #63a2ff;
  transition: width 0.3s ease;
}

/* テキストリンク：ホバーでズーム＋アンダーライン */
.nav-menu a:hover:not(.logo-link) {
  transform: scale(1.05);
}

.nav-menu a:hover:not(.logo-link)::after {
  width: 100%;
}

.officialsite {
  height: 45px;
  transform: translateY(-8px);
  margin-top: 13px;
  margin-left: 0px;
}

/* ==== ABOUTセクション ==== */
.about {
  margin-top: -5px;
  padding: 100px 40px;
  background-color: #fff;
}

.about-title {
  width: 200px;
}

.about-text {
  margin-top: 20px;
  font-size: 1rem;
  color: #333;
}

/* ==== FIRST VIEW ==== */
.company-hero {
  position: relative;
  width: 100%;
  height: 47vh !important;
  max-height: 60vh !important;
  overflow: hidden !important;
  margin: 0;
  padding: 0;
}

.company-hero .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.firstview::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  z-index: 100;
}

.wave-first-view {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100vh;
}

.fv-text {
  position: absolute;
  left: 10%;
  bottom: 20%;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.mask-text {
  display: inline-block;
  background: linear-gradient(90deg, #B8E6FC 50%, #fff 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mask-text br {
  line-height: 1.2;
}

/* ==== アニメーション・表示処理 ==== */
.overlay-wave.finished {
  transform: none !important;
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.firstview,
.overlay-wave,
.slideshow-bg,
.car-icon {
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.overlay-wave {
  animation-fill-mode: forwards;
}

.main-content {
  opacity: 0;
  position: relative;
  z-index: 1;
  transition: opacity 1s ease;
}

.opening-finished .main-content {
  opacity: 1;
}

/* 追従バナー */
.floating-banner {
  width: 190px!important;
  height: 190px!important;
  bottom: -40px;
  right: 5px;
  position: fixed;
  z-index: 9999;
  opacity: 1;
}

.banner-circle {      /* ← アイコン?テキストセット */
  position: relative;
  width: 100%;
  height: 100%;
  margin-left: -20px;
  margin-top: -30px;
}

.banner-main {
  width: 100%;
  height: auto;
  display: block;
}

.circle-icon { /* ← アイコン */
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 165px;
  height: auto;
  z-index: 2;
}

.circle-text { /* ← テキスト */
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  animation: rotateText 20s linear infinite;
  transform-origin: center center;
  z-index: 3;
  pointer-events: none;
  transform: translate(-35px, -35px) !important;
}

.circle-text text {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  fill: #002c3e;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 2px;
  transform-origin: center center;
  animation: rotateText 20s linear infinite;
}

@keyframes rotateText {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(360deg);
  }
}

/* === 代表あいさつ === */
.message-section {
  background: none;
  padding: 60px 20px 40px;
  margin-bottom: 100px;
  border: none;
  box-shadow: none;
}

/* 見出し類は中央 */
.message-section h2,
.message-section .subheading {
  text-align: center;
}

.message-section h2 {
  font-size: 28px;
  color: #444;
  margin-bottom: 10px;
}

.message-section .subheading {
  font-size: 14px;
  color: #007BFF;
  margin-bottom: 30px;
}

/* 本文テキストは左揃え */
.message-text {
  font-size: 1.125rem;
  color: #333;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: left;
}

/* 署名部分：右寄せ */
.message-sign {
  text-align: right;
  font-size: 1.125rem;
  color: #333;
  margin-top: 20px;
}

/* 三木啓司だけちょっと目立たせる */
.message-sign .name {
  font-family: 'Yuji Mai', serif;
  font-size: 1.7rem;
  display: inline-block;
  margin-left: 10px;
}

main {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.info-section h2 {
  text-align: center;
  font-size: 28px;
  color: #444;
  margin-bottom: 10px;
}

.subheading {
  text-align: center;
  color: #007BFF;
  font-size: 14px;
  margin-bottom: 30px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.company-table th {
  text-align: left;
  width: 25%;
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
}

.company-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
}

/* 安心・安全・便利 */
.vision-section {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}

.vision-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 50px;
  letter-spacing: 0.1em;
  color: #222;
}

.vision-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.vision-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 30px 20px;
  width: 180px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s;
  backdrop-filter: blur(4px);
}

.vision-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

.vision-icon安心,
.vision-icon安全,
.vision-icon便利 {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4a90e2, #8ab4f8);
  box-shadow: inset -4px -4px 12px rgba(255,255,255,0.5),
              inset 4px 4px 12px rgba(0,0,0,0.1);
}

/* 個別アニメ風味 */
.vision-icon安心 { animation: float 3s ease-in-out infinite; }
.vision-icon安全 { animation: pulse 2s ease-in-out infinite; }
.vision-icon便利 { animation: pop 2.5s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes pop { 0%,100% { transform: scale(1); } 40% { transform: scale(1.15); } }

.vision-label h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}

.vision-label p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.access-section {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.access-section h2 {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.access-section .subtitle {
  color: #007BFF;
  font-size: 14px;
  margin-bottom: 40px;
}

.access-card {
  background: #fff;
  border-radius: 20px;
  max-width: 1000px;
  margin: 0 auto 50px auto;
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  box-shadow: 0 0 20px #eee;
  gap: 30px;
}

.access-image {
  width: 460px;
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
}

.access-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.access-info {
  text-align: left;
  max-width: 460px;
}

.access-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.access-info p {
  font-size: 15px;
  margin-bottom: 15px;
}

.map-link {
  color: #007BFF;
  text-decoration: none;
  border-bottom: 1px dotted #007BFF;
  font-size: 14px;
}

.arrow {
  display: inline-block;
  margin-left: 5px;
  font-weight: bold;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* 沿革セクション */
.history-section {
  background: #f9fbfd;
  padding: 80px 20px;
}
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  color: #333;
  font-weight: bold;
}
.history-subtitle {
  text-align: center;
  color: #007BFF;
  font-size: 14px;
  margin-bottom: 50px;
  margin-top: -30px;
}
.timeline {
  max-width: 900px;
  margin: 0 auto;
  border-left: 3px solid #005bac;
  padding-left: 20px;
}
.timeline-year {
  font-size: 22px;
  font-weight: bold;
  color: #005bac;
  margin-top: 40px;
  margin-bottom: 15px;
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 5px;
  width: 13px;
  height: 13px;
  background-color: #005bac;
  border-radius: 50%;
}
.timeline-date {
  font-weight: bold;
  color: #005bac;
  margin-bottom: 5px;
}
.timeline-content {
  background: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ---------------------------------- */
/*   　 PC・ファーストビュー画像        */
/* ---------------------------------- */
body {
  overflow-x: hidden;
}

/* 親コンテナではみ出し部分をクリップ */
.company-hero {
  width: 100vw;
  height: 70vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
}

.company-hero img {
  width: 100%;
  height: 95%;
  object-fit: cover;
}

/* ---------------------------------- */
/*    　　 PC・companyタイトル         */
/* ---------------------------------- */
.company-title {
  position: absolute;
  bottom: -50px;
  right: 0;
  padding-right: 20px;

  font-size: clamp(250px, 9vw, 550px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.15);
  font-family: 'Helvetica Neue', sans-serif;
  top: -10px;

  transform: translateX(-100%);
  opacity: 0;
  animation: slideInRight 1.5s ease-out forwards;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 表紙 */
.business-heading {
  text-align: center;
  padding: 60px 20px 30px;
  background-color: #fff;
}

.business-ja {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.business-en {
  font-size: 14px;
  color: #2a78c4;
  margin-bottom: 0;
}

.renta-section {
  background-color: #f4f6fa;
  padding: 80px 40px;
}

.renta-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 60px;
}

.renta-text { flex: 1 1 500px; }
.renta-en { color: #6082bb; font-size: 14px; margin-bottom: 10px; }
.renta-title { font-size: 30px; font-weight: bold; line-height: 1.6; margin-bottom: 30px; color: #333; }
.renta-desc { font-size: 16px; line-height: 1.9; color: #444; }

.renta-image { flex: 1 1 400px; }
.renta-image img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }

.business-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f9f9f9;
  flex-wrap: nowrap;
  margin-bottom: 40px;
}

.business-tag { color: #2a78c4; font-size: 14px; margin-bottom: 10px; font-weight: bold; }
.business-text { flex: 1 1 50%; min-width: 300px; }
.business-image { flex: 1 1 50%; min-width: 300px; }
.business-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 12px rgba(0, 0, 0, 0.1); }
.business-ja { font-size: 28px; font-weight: bold; color: #333; margin-bottom: 5px; }
.business-en { font-size: 14px; color: #2a78c4; margin-bottom: 30px; }
.business-copy { font-size: 24px; font-weight: bold; line-height: 1.6; margin-bottom: 30px; color: #222; }
.business-detail { font-size: 15px; line-height: 1.8; color: #444; }
.business-intro.second .business-image { margin-left: 20px; }
.business-intro.second .business-text { margin-right: 20px; }

/* フッター */
.site-footer {
  position: relative;
  background-color: #0B1E32;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(#0B1E32, #0B1E32);
  background-repeat: repeat;
  background-size: 20px 20px, cover;
  padding: 60px 20px 20px;
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
}

.footer-top { text-align: center; margin-bottom: 40px; }
.footer-top h2 { font-size: 28px; margin-bottom: 10px; }
.footer-top p { margin: 6px 0; font-size: 15px; line-height: 1.6; }

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 40px 0;
}

.footer-logo { max-width: 280px; }
.footer-logo img { width: 160px; margin-bottom: 10px; }
.footer-logo p { font-size: 14px; margin: 6px 0; }

.footer-icon-group { margin-top: 10px; }
.footer-icon-group a { display: inline-block; margin-right: 12px; }
.footer-icon-group img { width: 24px; height: 24px; vertical-align: middle; filter: brightness(0) invert(1); }

.footer-nav { display: flex; margin-left: 0px; gap: 70px; }
.footer-nav h3 { font-size: 16px; margin-bottom: 10px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { font-size: 14px; margin-bottom: 6px; cursor: pointer; }

.footer-bottom { text-align: center; margin-top: 130px; font-size: 13px; opacity: 0.7; }

.footer-nav a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: border-bottom 0.2s ease; }
.footer-nav a:hover { border-bottom: 1px solid #fff; }

/* □ LINEバナーとのスペース調整 */
.site-footer { margin-top: 40px; }

/* line・Instagramアイコン */
.footer-icon-group a { display: inline-block; margin-right: 10px; transition: transform 0.3s ease, opacity 0.3s ease; }
.footer-icon-group a:hover { transform: scale(1.1); opacity: 0.8; }
.sns-icon { width: 38px !important; height: 38px !important; }

/* ========================================== */
/* モバイル対応・ハンバーガーメニュー */
/* ========================================== */
.nav-menu { display: flex; gap: 20px; }
.hamburger, .mobile-nav { display: none; }

/* ===== モバイル表示（768px以下） ===== */
@media screen and (max-width: 768px) {
  html, body { font-size: 14px; overflow-x: hidden; }

  /* ヘッダー */
  .site-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; position: absolute; top: 0; left: 0; width: 100%;
    background: transparent !important; z-index: 999;
  }

  .nav-menu { display: none !important; }

  .hamburger {
    display: block; position: absolute; top: 20px; right: 20px;
    width: 30px; height: 22px; z-index: 10000; cursor: pointer;
  }

  .hamburger span {
    position: absolute; width: 100%; height: 3px; background-color: #ffffff;
    border-radius: 2px; transition: all 0.3s ease;
  }
  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 9px; }
  .hamburger span:nth-child(3) { bottom: 0; }

  .mobile-nav {
    display: none; flex-direction: column; background-color: rgba(0, 0, 0, 0.7);
    position: absolute; top: 60px; left: 0; width: 100%; padding: 0; z-index: 9999;
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .mobile-nav.active { display: flex; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; width: 100%; }
  .mobile-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); background-color: transparent; }
  .mobile-nav a {
    display: block; padding: 16px; color: #fff; text-decoration: none; font-size: 16px; width: 100%;
  }
  .mobile-nav a:hover { background-color: rgba(255, 255, 255, 0.1); }

  .company-title { display: none; z-index: -100; }

  .logo{ width: 190px; margin-top: 10px !important; }
}

/* ------------------------------------ */
/* モバイル対応・ファーストビュー画像 */
/* ------------------------------------ */
html, body { margin: 0; padding: 0; overflow-x: hidden; }

@media (max-width: 768px) {
  .company-hero {
    background: url('../../images/bg.jpg') center/cover no-repeat;
    position: relative; margin: 0 auto; padding: 0;
    max-width: 100%; width: 100%; height: 30vh !important; overflow: hidden;
  }

  .hero-image { width: 100%; height: 100vh; object-fit: cover; }

  .company-title {
    display: block; position: absolute; top: 150px; left: 90px;
    font-size: 5rem; font-weight: 300; font-family: 'Helvetica Neue', sans-serif;
    z-index: 10; font-weight: 400; color: rgba(255, 255, 255, 0.2);
  }
}

/* --------------------------- */
/* モバイル対応・あいさつ */
/* --------------------------- */
.message-section { padding: 24px 16px 40px 16px; margin-top: 0; }
.message-sign .name { font-family: 'Yuji Mai', serif; font-size: 20px; display: inline-block; margin-left: 6px; }

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .menu-toggle { display: block; font-size: 28px; background: none; border: none; color: white; margin-left: auto; z-index: 9999; position: relative; cursor: pointer; }
  .nav-menu {
    display: none; flex-direction: column; align-items: flex-start; background: rgba(255, 255, 255, 0.85);
    width: 100%; padding: 20px; position: absolute; top: 100%; left: 0; z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-list { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 0; margin: 0; }
  .nav-list li { list-style: none; width: 100%; }
  .nav-list li a {
    display: block; width: 100%; font-size: 14px; padding: 10px 12px; color: #000; text-decoration: none;
    background: rgba(255, 255, 255, 0.05); border-radius: 4px;
  }
  .logo { height: 10px; margin-left: -10px !important; margin-top: 0px; }
  .site-header { background: transparent; }
}

/* PCではモバイル非表示 */
@media screen and (min-width: 769px) {
  .mobile-nav { display: none !important; }
  .hamburger { display: none !important; }
  .nav-menu { display: block; }
  .logo { height: 28px; }
}

/* ----------------------------- */
/* モバイル対応・安全安心便利 */
/* ----------------------------- */
@media screen and (max-width: 768px) {
  .vision-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 12px; }
  .vision-card {
    width: calc(33.333% - 10px);
    padding: 12px 4px; box-sizing: border-box; border-radius: 12px; background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); text-align: center;
  }
  .vision-card h3 { font-size: 13px; margin-top: 8px; margin-bottom: 4px; }
  .vision-card p { font-size: 11px; margin: 0; }
  .vision-icon安心, .vision-icon安全, .vision-icon便利 {
    width: 48px; height: 48px; border-radius: 12px; margin: 0 auto;
    background: linear-gradient(to bottom, #4d91ff, #9bcfff);
  }
}

/* --------------------------- */
/* モバイル対応・事業所紹介 */
/* --------------------------- */
@media screen and (max-width: 768px) {
  .access-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; justify-content: center; }
  .access-card {
    transform: scale(0.85); transform-origin: top center; padding: 6px; font-size: 11px; max-width: 160px;
    box-sizing: border-box; background-color: #fff; max-height: 270px; border-radius: 12px;
    box-shadow: 0 0 4px rgba(0,0,0,0.08); position: relative; z-index: 0;
  }
  .access-image { position: relative; z-index: 1; margin-bottom: 0; }
  .access-image img { width: 100%; height: auto; display: block; border-radius: 8px 8px 0 0; }
  .access-info { position: relative; z-index: 10; background-color: white; padding: 4px 4px 0 4px; margin-top: -190px; }
  .access-info h3 { font-size: 13px; margin-bottom: 2px; }
  .access-info p { margin: 0 0 2px 0; font-size: 11px; line-height: 1.3; }
  .map-link { display: inline-block; font-size: 11px; margin-top: 2px; }
}

/* --------------------------- */
/* モバイル対応・フッター */
/* --------------------------- */
@media screen and (max-width: 768px) {
  .footer-nav { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .footer-nav div { margin-right: 0; min-width: auto; flex: 1; }
  .footer-nav h3 { font-size: 13px; margin-bottom: 4px; white-space: nowrap; }
  .footer-nav li { font-size: 11px; white-space: nowrap; margin-bottom: 2px; }
  .footer-nav a { text-decoration: none; color: #fff; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .footer-nav div { margin-right: 12px; min-width: 100px; }
  .footer-main { flex-wrap: wrap; padding: 12px; gap: 12px; }
  .footer-logo p { font-size: 11px; }
  .site-footer { font-size: 11px; }
}

@media screen and (max-width: 768px) {
  .floating-banner{ display: none; }
}

/* ----------------------------------------------- */
/* モバイル対応・フォント統一＆横スクロール禁止 */
/* ----------------------------------------------- */
@media screen and (max-width: 768px) {
  html, body {
    margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; overflow-x: hidden !important;
  }
  * { box-sizing: border-box !important; }
  img, svg, video { max-width: 100% !important; height: auto !important; display: block !important; }
}

@media (max-width: 768px) {
  body, html, h1, h2, h3, h4, h5, h6, p, a, li, dt, dd, small, strong, em {
    font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic", Meiryo,system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;
  }
  .message-sign .name { font-family: "Yuji Mai", serif !important; }
}

/* ---------------------------------------- */
/* 　　　　　　　パソコン表示調整　　　　　　　 */
/* ---------------------------------------- */

:root{
  font-size:16px;
  --container:1200px;
  --gutter:24px;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
img,svg,video{ display:block; max-width:100%; height:auto; }

.container{
  width:min(100% - 2*var(--gutter), var(--container));
  margin-inline:auto;
}

h1{ font-size:clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height:1.2; }
h2{ font-size:clamp(1.4rem, 1.0rem + 1.2vw, 2.2rem); line-height:1.3; }
p,li{ font-size:clamp(0.95rem, 0.85rem + 0.5vw, 1.1rem); line-height:1.8; }

.grid{ display:grid; gap:clamp(16px,2vw,32px); }
.grid.cols-2{ grid-template-columns:1fr; }
@media (min-width:1024px){
  .grid.cols-2{ grid-template-columns:1fr 1fr; }
}

.frame-3x1{ aspect-ratio:3/1; position:relative; overflow:hidden; }
.frame-scale{
  position:absolute; inset:0; display:grid; place-items:center;
  transform:scale(clamp(0.8, 100vw/1200, 1.2));
  transform-origin:center;
}

.motion-enter{ opacity:0; transform:translateY(12px); will-change:transform,opacity; transition:.6s ease; }
.motion-enter.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .motion-enter{ transition:none; transform:none; opacity:1; }
}

@media (min-width:1440px){ :root{ --container:1280px; } }
@media (min-width:1920px){ :root{ --container:1360px; } }








/* --------------------------------------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------------------------------------- */




/* ===============================
   Companyページ：レイアウト最終ガード
   =============================== */

/* 本文カラムを100%・フロート解除 */
body.page-template-page-company .site-content .content-area,
.company-page .site-content .content-area,
.page-company-force .site-content .content-area,
.company-page #primary,
.company-page .site-main,
.company-page .content-area,
.company-page .inside-article {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 右サイドバー完全封印 */
body.page-template-page-company .site-content .sidebar,
.company-page .site-content .sidebar,
.company-page .sidebar,
.company-page #right-sidebar,
.company-page #left-sidebar,
.company-page .widget-area {
  display: none !important;
  width: 0 !important;
}

/* 親ラッパでクリア */
body.page-template-page-company .site-content,
.company-page .site-content,
.page-company-force .site-content {
  display: block !important;
}
body.page-template-page-company .site-content::after,
.company-page .site-content::after,
.page-company-force .site-content::after {
  content: "";
  display: block;
  clear: both;
}

/* フッターは常に下に単独で並ぶ */
body.page-template-page-company .site-footer,
.company-page .site-footer,
.page-company-force .site-footer {
  position: static !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  display: block !important;
  margin-top: 40px;
}
body.page-template-page-company .site-footer *,
.company-page .site-footer *,
.page-company-force .site-footer * {
  float: none !important;
}

/* ===============================
   Companyページ：ヘッダー調整（中央揃え + 縦幅拡張）
   =============================== */

/* ヘッダーの基本リセット */
.company-page .site-header {
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.company-page .inside-header,
.company-page .site-branding,
.company-page .main-navigation {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* ▼ ヘッダー高さ（118px）& 中央揃え */
body.company-page header.site-header,
body.company-page .inside-header,
body.company-page nav.main-navigation,
body.company-page nav.main-navigation .inside-navigation,
body.company-page .nav-menu,
body.company-page .nav-menu ul,
body.company-page .wp-block-navigation,
body.company-page .wp-block-navigation__container {
  display: flex !important;
  align-items: center !important;
  min-height: 118px !important;
}

body.company-page .nav-menu ul > li > a,
body.company-page nav.main-navigation .main-nav > ul > li > a,
body.company-page .wp-block-navigation__container > li > a,
body.company-page .wp-block-navigation-item__content {
  display: flex !important;
  align-items: center !important;
  height: 118px !important;
  padding: 0 20px !important;
  line-height: 1.4 !important;
  font-size: 15px !important;
}

/* ロゴ */
body.company-page .site-logo,
body.company-page .site-branding {
  display: flex !important;
  align-items: center !important;
  height: 118px !important;
}
.company-page .site-header .site-logo img,
.company-page .site-branding img {
  max-height: 72px !important;
  height: auto;
}

/* ===============================
   ファーストビュー：Companyテキスト位置
   =============================== */
body.company-page .company-hero { margin-top: 0 !important; }
body.company-page .company-title { bottom: -30px !important; top: auto !important; }

/* ===============================
   代表あいさつ＆基本情報：枠/影消去 + 横幅調整
   =============================== */
body.company-page #primary,
body.company-page .site-main,
body.company-page .content-area,
body.company-page .inside-article,
body.company-page article.page {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.company-page .message-section,
body.company-page .info-section {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* 代表あいさつ & 基本情報タイトル → 他セクションと同じサイズ感 */
body.company-page .message-section h2,
body.company-page .info-section h2 {
  font-weight: 700 !important;
  font-size: 1.6em !important;   /* VisionやAccessと同じクラス感 */
}

/* ▼ ファーストビューと代表あいさつセクションの間隔を広げる */
body.company-page .company-hero + .message-section {
  margin-top: 80px !important;   /* 余裕を持たせる */
}

/* PC時のみ横幅を抑えて中央寄せ */
@media (min-width: 769px){
  body.company-page .message-section,
  body.company-page .info-section {
    max-width: 1000px;
    margin: 40px auto 60px;
    padding: 0 20px;
  }
  body.company-page .info-section .company-table {
    width: 100%;
    border-collapse: collapse;
  }
}

/* ===============================
   特殊フォント適用：「三木啓司」だけ毛筆フォント
   =============================== */
body.company-page .message-sign .name {
  font-family: 'Yuji Mai', 'Noto Serif JP', serif !important;
  font-weight: 400 !important;
  font-size: 1.3em;
  letter-spacing: 0.05em;
}


/* ======================================
   追従バナー：テキストサークルだけ拡大（アイコンは据え置き）
   ====================================== */

/* バナー外枠が140pxで潰していたので広げる */
body.company-page .floating-banner {
  width: 220px !important;   /* 140 → 220 */
  height: 220px !important;
  overflow: visible !important; /* 余った部分も見えるように */
}

/* 中のコンテナは枠いっぱい使う */
body.company-page .floating-banner .banner-circle {
  width: 100% !important;
  height: 100% !important;
  position: relative;
}

/* 回転テキストのSVGを拡大（直径 230 → 320） */
body.company-page .floating-banner .circle-text {
  width: 320px !important;
  height: 320px !important;
  transform-origin: center center !important;
  /* 既存は translate(-35px,-35px)。サイズ差(320-230)=90 の半分45を加算して中心補正 */
  transform: translate(-80px, -80px) !important; /* -35 - 45 = -80 */
  pointer-events: none;
  z-index: 3;
}

/* 中央の車アイコンはサイズを固定して据え置き */
body.company-page .floating-banner .circle-icon {
  width: 155px !important;   /* 既存のまま */
  height: auto !important;
  position: absolute;
  top: 3px; left: 57%;        /* 既存配置のまま */
  transform: translateX(-50%);
  z-index: 2;
}

/* PCでだけ大きく、モバイルは控えめにしたい場合（任意） */
@media (max-width: 768px) {
  body.company-page .floating-banner {
    width: 180px !important;
    height: 180px !important;
  }
  body.company-page .floating-banner .circle-text {
    width: 280px !important;
    height: 280px !important;
    transform: translate(-70px, -70px) !important; /* 230→280 の補正: -35 - 25 */
  }
}

/* ===============================
   追従バナー：サークルとアイコンを別々に右下へ
   =============================== */
body.company-page .banner-circle {
  /* 好きな値に変えて調整してね */
  --circle-offset-x: 40px;   /* サークルを右に40px */
  --circle-offset-y: 40px;   /* サークルを下に40px */
  --icon-offset-x: 20px;     /* アイコンを右に20px */
  --icon-offset-y: 20px;     /* アイコンを下に20px */
}

/* ===== テキストサークル（回転SVG） ===== */
body.company-page .floating-banner .circle-text {
  position: absolute !important;
  top: 4px; left: 227px;
  transform: translate(
    calc(-35px + var(--circle-offset-x)),
    calc(-35px + var(--circle-offset-y))
  ) !important;
  transform-origin: center center !important;
  pointer-events: none;
  z-index: 3;
}

/* ===== 丸アイコン ===== */
body.company-page .floating-banner .circle-icon {
  position: absolute !important;
  top: 23px; left: 50%;
  transform: translate(
    calc(-50% + var(--icon-offset-x)),
    var(--icon-offset-y)
  ) !important;
  z-index: 2;
  width: 165px !important;
  height: auto !important;
}

/* ===============================
   追従バナー：テキストサークルだけ拡大
   =============================== */
body.company-page .floating-banner .circle-text {
  transform: scale(1.07) translate(-35px, -35px) !important;
  transform-origin: center center !important;
  z-index: 3;
}













/* ========================================== *//* ========================================== *//* ========================================== *//* ========================================== */

.history-section {
  background-color: rgba(0, 123, 255, 0.05); /* 青 (#007BFF) を5%だけ混ぜる */
  padding: 80px 20px;
}






