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

:root {
  --accent-color: #E76520;
  --base-color: #F4F4F4;
  --text-color: #1A1A1A;
}
/*#133269 ネイビーアクセントカラー*/
p {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: var(--base-color);
  color: var(--text-color);
  line-height: 1.6; /* お好みで1.4〜1.8くらいで調整 */
}

h2 {
  position: relative;
  /*display: inline-block;*/
  margin-bottom: 1em; /* 下の余白はお好みで */
  font-size: 1.8rem;
  text-align: center;
}
h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}



/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--accent-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header .logo {
  display: flex;
  align-items: center;
}

.header .logo img {
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}


/*流れる文字*/
.marquee-bar {
  background-color: #133269;
  color: white;
  overflow: hidden;
  white-space: nowrap;
  height: 30px;
  display: flex;
  align-items: center;
  position: relative;
  top: 70px;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%; /* 初期位置を右に寄せる */
  animation: marquee-scroll 20s linear infinite;
}

.marquee-track span {
  display: inline-block;
  padding-right: 50px; /* テキスト同士の間隔 */
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ヒーロー画像 */
.hero {
  margin-top: 70px;
  width: 100%;
}
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slides img {
  position: absolute;
  width: 100%;
  height: 500px;
  object-fit: cover;
  opacity: 0;
  animation: fadeAnimation 16s infinite;
}

/* 各画像に異なるアニメーション遅延を付ける */
.slides img:nth-child(1) {
  animation-delay: 0s;
}
.slides img:nth-child(2) {
  animation-delay: 4s;
}
.slides img:nth-child(3) {
  animation-delay: 8s;
}
.slides img:nth-child(4) {
  animation-delay: 12s;
}

@keyframes fadeAnimation {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  35%  { opacity: 1; }
  45%  { opacity: 0; }
  100% { opacity: 0; }
}




section {
  padding: 30px 20px;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list a {
  text-decoration: none;
  color:var(--text-color);
}
.news-list li {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
}

.news-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 5px;
}

.btn,
.navy_btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn {
  background-color: var(--accent-color);
  color: white;
}

.navy_btn {
  border: 2px solid #133269;
  color:#133269;
  background-color: transparent;
}

.btn:hover,
.navy_btn:hover {
  box-shadow: none;
  transform: translateY(2px);
}





.location {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.location > div {
  flex: 1 1 45%;
}

.location-map {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  min-height: 250px;       /* 最小高さを設定して縮小を防ぐ */
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}



.inquiry {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.inquiry > div {
  flex: 1 1 45%;
}

.location .content-wrapper,
.inquiry .content-wrapper {
  /*display: flex;*/
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}


.location-text, .location-map,
.inquiry-text, .inquiry-button {
  flex: 1 1 45%;
}
.inquiry-text {
  text-align: left;
  margin-bottom: 20px;
}

.footer {
  background: #1A1A1A;
  padding: 20px;
  text-align: center;
  height: 200px;
}

.footer nav a {
  margin: 0px 10px;
  text-decoration: none;
  color: #999;
  font-size: 14px;
}
.footer nav {
  margin-bottom: 80px;
}

.footer .copyright {
  display: block;
  text-align: center;
  font-size: 0.875em; /* 小さめの文字 */
  color: #555; /* 任意：少し薄い色 */
}
/*お問い合わせフォーム*/
.form-container {
  text-align: center;
  margin: 100px auto 30px;
  padding: 0 16px;
  box-sizing: border-box;
}
.form-container iframe{
  width:640px;
  height:855px;
}




/* レスポンシブ */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .location, .inquiry {
    flex-direction: column;
  }
.hero {
  height: 300px;
}
  .hero img {
    height: 300px;
  }
  .location .content-wrapper,
  .inquiry .content-wrapper {
    flex-direction: column;
  }
  p {
  font-size: 13px;
}
  h2 {
  margin-bottom: 1em; /* 下の余白はお好みで */
  font-size: 1.4rem;
}
  .footer nav a {
  font-size: 12px;
}
.news-date {
  font-size: 0.6rem;
}

.news-title {
  font-size: 1rem;
  margin-top: 5px;
}
}
@media (max-width: 680px){
 .form-container iframe{
  width:100%;
  height:1200px;
} 
}
 
