@media (max-width: 768px) {
  html, body {
    scroll-snap-type: none; /* スナップ解除 */
    overflow-y: auto;
  }
}@media (max-width: 768px) {
  html, body {
    scroll-snap-type: none; /* スナップ解除 */
    overflow-y: auto;
  }
}@media (max-width: 768px) {
  html, body {
    scroll-snap-type: none; /* スナップ解除 */
    overflow-y: auto;
  }
}@media (max-width: 768px) {
  html, body {
    scroll-snap-type: none; /* スナップ解除 */
    overflow-y: auto;
  }
}@media (max-width: 768px) {
  html, body {
    scroll-snap-type: none; /* スナップ解除 */
    overflow-y: auto;
  }
}@media (max-width: 768px) {
  html, body {
    scroll-snap-type: none; /* スナップ解除 */
    overflow-y: auto;
  }
}@media (max-width: 768px) {
  html, body {
    scroll-snap-type: none; /* スナップ解除 */
    overflow-y: auto;
  }
}@media (max-width: 768px) {
  html, body {
    scroll-snap-type: none; /* スナップ解除 */
    overflow-y: auto;
  }
}

/*----------------------------------------
  リセットCSS & 基本設定
----------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', sans-serif;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  overflow-x: hidden;
}

:root {
  --header-height: 130px;
}

/*----------------------------------------
  共通要素スタイル
----------------------------------------*/

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
}

aside, footer, header, nav, section {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*----------------------------------------
  ヘッダー & ナビゲーション
----------------------------------------*/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background-color: #3171b9;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 30px;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  width: 500px;
  height: 88px;
  display: flex;
  align-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 30px;
  margin: 10px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0em 0.1em;
  height: 2.5em;
  line-height: 1;
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  box-sizing: border-box;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
  color: #ff8c00;
}

.nav-contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85em;
  color: white;
}

.contact-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-row span {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.menu-toggle.open::before {
  content: "X";
}

.thislocation {
 position: relative;
  display: inline-block;
  padding: 20px 10px;
  background-color: #1D9EBF;
  color:#FFFFFF;
  border-radius: 10px;
}

/*----------------------------------------
  サブナビゲーション
----------------------------------------*/

.sub-nav {
  background-color: #f8f8f8;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
  position: fixed;
  top: 88px;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow: auto;
}

.sub-nav ul {
  display: inline-flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-nav li a {
  color: #333;
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.sub-nav li a:hover {
  color: #0078d4;
}

.sub-nav li p {
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

/*----------------------------------------
  excelsystem セクション
----------------------------------------*/

#exsys_top{
    display: block;
    text-align: center;
    height: 100vh;
    margin-bottom: 100px;
}

#exsys_top h1{
    font-size: 60px;
    margin-top: 250px;
    margin-bottom: 50px;
}

.section-anchor {
    scroll-margin-top: 140px;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

.subtitle {
  font-size: 1.2em;
  text-align: center;
  color: #005599;
  margin-bottom: 40px;
}

#introduction{
    text-align: center;
    height: auto;
    margin-bottom: 0px;
}

.main-text-box{
    text-align: center;
}

.main-text-box  h2 {
    font-size: 60px;
}

.main-text-box p{
    font-size: 40px;
    margin: 60px;
}

.explain{
 text-align: center;
 display: block;
 height: auto;
}

#demo{
    margin-top: 180px;
    scroll-margin-top: 180px;
}

.video-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
}

.explanation {
  max-width: 500px;
 margin-bottom: 2rem;
}
.explanation h2{
    font-size: 1.4rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
}
.catch {
  font-size: 1.2rem;
  font-weight: bold;
  color: #005bac; /* 青系で強調 */
  margin: 0.5rem 0;
}

.description {
  font-size: 1rem;
  color: #333;
  margin: 0.3rem 0 0;
}


.video_center{
    text-align: center;
}

.videoplay{
    margin: 200px 20px;
}

.video-box {
  position: relative;
  display: inline-block;
    margin-left: 50px; 
}

.video-box iframe {
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 100, 200, 0.9);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  transition: opacity 0.4s ease;
}

.overlay p{
text-align: center;
}

/* hover時に消える */
.video-box:hover .overlay {
  opacity: 0;
  pointer-events: none;
}

.explanation h2 {
  font-size: 1.6em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #333;
}

.explanation p {
  margin-bottom: 1.2em;
  line-height: 1.6;
}


/*----------------------------------------
  アニメーション
----------------------------------------*/

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(8px) rotate(-45deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/*----------------------------------------
スマホ対応
----------------------------------------*/
/* 基本：PCでは横並び */
.video-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 80px;
}

/* スマホ・タブレットでは縦並びに切り替え */
@media (max-width: 768px) {
  .video-wrapper {
flex-direction: column-reverse;
;   /* 縦並び */
    gap: 40px;                /* 縦方向の余白 */
    align-items: center;      /* 中央揃え */
  }

  .video-box {
    margin-left: 0;           /* 左余白をリセット */
    width: 100%;              /* 幅いっぱいに */
    max-width: 640px;         /* 最大幅を制限 */
  }

  .video-box iframe {
    width: 100%;              /* iframeを親幅に合わせる */
    height: auto;             /* 高さは自動調整 */
    aspect-ratio: 16 / 9;     /* 比率を維持 */
  }

  .explanation {
    max-width: 100%;          /* テキストも幅いっぱいに */
    padding: 0 20px;          /* 左右に余白を追加 */
    text-align: center;       /* 中央揃えで読みやすく */
  }

  .main-text-box p {
    font-size: 18px;          /* モバイル用に文字サイズ縮小 */
    margin: 20px;             /* 余白も調整 */
    word-wrap: break-word;    /* 長い単語を折り返し */
  }

  .main-text-box h2 {
    font-size: 32px;          /* 見出しも縮小 */
  }
}
/*----------------------------------------
  フッター
----------------------------------------*/

footer {
  background-color: #3171b9;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

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

.footer-left{
  flex: 1 1 300px;
  margin: 10px;
}

.footer-left p:first-child {
  margin-top: 5px;
}

.footer-right {
  flex: 1 1 300px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-right h4 {
  font-size: 16px;
  margin: 5px 0;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
}

.sitemap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap li {
  margin: 6px 0;
}

.sitemap a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.sitemap a:hover {
  opacity: 0.7;
}

/* 初期状態（PCでは非表示） */
.menu-toggle {
  display: none;
}

/*----------------------------------------
  レスポンシブ対応（max-width: 768px）
----------------------------------------*/

@media screen and (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    height: 90px;
    padding: 0 15px;
  }
   .logo img {
  width: 80%;
  height: 100%;
  object-fit: contain;
}
  .menu-toggle {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    display: block;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 25px;
    z-index: 1100;
    color: #FFF;
    transition: all 0.3s ease;
  }

  .nav-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #3171b9;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    margin: 0;
    padding: 0;
  }

  .nav-container.active {
    max-height: 800px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #fff;
    text-align: center;
  }

  .nav-contact-info {
    padding: 10px 15px;
    color: #fff;
  }
    
  html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  *, *::before, *::after {
    box-sizing: inherit;
  }    
}

/*----------------------------------------
  レスポンシブ対応（max-width: 768px）
----------------------------------------*/
/* Seven Summits セクション */

/* サイトマップ */

.sitemap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap li {
  margin: 6px 0;
}

.sitemap a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.sitemap a:hover {
  opacity: 0.7;
}

/* ナビゲーション */

.menu-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    height: 90px;
    padding: 0 15px;
  }

  .menu-toggle {
    font-family: 'Segoe UI','Arial',sans-serif;
    display: block;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 25px;
    z-index: 1100;
    color: #FFF;
    transition: all 0.3s ease;
  }

  .nav-container {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: #3171b9;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    margin: 0;
    padding: 0;
  }

  .nav-container.active {
    max-height: 800px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #fff;
    text-align: center;
    display: block;
  }

  .nav-contact-info {
    padding: 10px 15px;
    color: #fff;
  }
    
/*----------------------------------------
  レスポンシブ対応（max-width: 900px）
----------------------------------------*/
@media (max-width: 900px) {
  .section-anchor {
    height: auto !important;
    padding-top: 130px;
    padding-bottom: 60px;
    box-sizing: border-box;
    scroll-margin-top: 140px;
  }

  html, body {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}
    }
}
@media (max-width: 768px) {
    
  .footer-inner {
      
    flex-direction: column;
  }

  .footer-left,
  .footer-right {
    flex: 1 1 auto;
    margin: 15px 0;
}

  .sitemap {
    max-height: none;
    overflow: visible;
  }

  .sitemap li {
    margin: 10px 0;
  }

  .sitemap a {
    font-size: 16px;
    padding: 6px 0;
    display: inline-block;
  }
}