/*riset_CSS*/

/* すべての余白をゼロに */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* リストマーカーを消す */

ul, ol {
  list-style: none;
}

/* リンクの下線を消す */
a {
  text-decoration: none;
}

/* HTML5要素の表示をブロックに */

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

/*-----------riset_CSS-----------*/

html, body {
  margin: 0;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', sans-serif;
  scroll-snap-type: y mandatory; /* 垂直方向にスナップ */
  overflow-y: auto;
}

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

/*ヘッダー -----------------------------------*/

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;
}

/*スクロールアニメ------------------------------*/

@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; }
}

/* contact -------------------------------------*/

#contact {
  box-sizing: border-box;
}

.headline {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-top: 100px;
  color: #01243f;
}
#contact p{
text-align: center;    
}
/* レスポンシブ対応 */
@media (max-width: 900px) {
  .section-anchor {
    height: auto !important;
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 60px;
    box-sizing: border-box;
  }

  html, body {
    scroll-snap-type: none;
  }
  #company-overview.section-anchor {
    padding-top: 10px; /* 通常130px → -40px */
  }
 #partner.section-anchor {
    padding-top: 10px; /* 通常130px → -40px */
  }

  .contact-container,
  #company-profile {
    margin-top: 0;
  }

  .headline-wrap,
  #company-profile h2 {
    margin-top: 0;
    padding-top: 0;
  }
}
/*----------------------------------------
  フッター
----------------------------------------*/
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-logo {
  width: 160px;
  margin-bottom: 15px;
}

.footer-left p:first-child {
  margin-top: 5px; /* h4と同じ高さに揃える */
}

.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;
}
/*スマホ対応--------------------------*/

@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;
  }
  
  .menu-toggle.open::before {
  content: "X"; /* 閉じるアイコンに変更 */
}

  /* メニューはスライドダウン */
  .nav-container {
    position: absolute;
    top: 80px; /* headerの下から展開 */
    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; /* ← 白文字 */
  }

  /* セクション高さを自然に */
  #contact, #motto, #sponsorship, #products, #service, #company, #contact {
    height: auto;
    min-height: 100vh;
  }

.logo img {
  width: 80%;
  height: 100%;
  object-fit: contain;
}
}
    
/*スマホhome--------------------------*/
    
@media screen and (max-width: 768px) {
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

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

#contact {
  width: 100%;
padding-top: 90px;
margin-top:90px;
}

#contact h1 {
    font-size: 3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

.contents-field {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5vw; /* ← 左右に均等な余白 */
  text-align: center;
}

.text-box {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.section-anchor {
  scroll-snap-align: start;
  height: 100vh; /* 画面全体を占有 */
  box-sizing: border-box;
}