
body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
  color: #3E3A39;
  font-size: 14px;
}
br.sp{
  display: none;
}
.header-inner{
  max-width: 990px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0 0 0;
  flex-wrap: wrap;
}
.logo img {
  height: 52px;
}
.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
}
.container img{
  max-width: 100%;
}
.section-title {
  font-size: 1.5em;
  margin-bottom: 1em;
  font-family: 'M PLUS 1c', sans-serif;
  font-weight: 900;
}
h2.section-title {
  position: relative;
  color: #374E79;
  border-bottom: 4px solid #374E79;
  font-size: 24px;
  position: relative;
  padding-bottom: 12px;   /* テキストと下線の余白 */
}
h2.section-title span {
  position: relative;
  display: inline-block;
}
.section-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px; /* 調整して文字の下に太線 */
  width: 100%;
  height: 10px;
  background: #374E79;
}
header .tel{
  font-weight: bold;
  font-size: 40px;
  font-family: 'Poppins', sans-serif;
  color: #374E79;
  display: none;
}
header .tel span{
  font-size: 30px;
}
nav {
  display: flex;
  width: 100%;
  text-align: center;
  max-width: 990px;
  margin: auto;
}
nav a {
  flex: 1;
  padding: 1em 0 0.5em;
  text-decoration: none;
  color: #fff;
  background:#919EB5;
  font-weight: 600;
  margin: 0;
  display: block;
  border-radius: 16px 0 0 0;
}
nav a:hover,
nav a.active {
  background:#374E79;
}
footer{
  padding: 0;
  margin: auto;
  background:#374E79;
  color: #fff;
}
footer .footer-inner .copy{
  text-align: center;
  font-weight: normal;
  font-size: 10px;
  font-family: 'Poppins', sans-serif;
  padding:12.5px;
}
main.container{
  width: 100%;
  margin: auto;
}
main .sub{
  width: 700px;
  margin: auto;
  padding: 110px 0;
}
main .sub.top{
  padding-bottom: 0;
}
p.center{
  text-align: center;
}
.container iframe{
  width: 100%;
}
.fxcont {
/*  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2em;
  margin: 0 auto 110px;
  max-width: 800px;*/
  width: 100%;
}

.fxcont .section-title {
  min-width: 120px;
  flex-shrink: 0;
  font-size: 1.2em;
  margin: 0;
}

/* pやtableも適切に表示されるように */
.fxcont table,
.fxcont p {
  flex: 1;
  margin: 0;
  line-height: 1.7;
}
.fxcont h3{
  padding: 14px 0 0 0;
}
.fxcont h3.section-title{
  text-align: center;
  color: #374E79;
}
.fxcont p{
  padding: 14px 0;
  border-bottom: 1px solid #B9B9B9;
}
.fxcont table{
  border-collapse: collapse;
  width:100%;
  max-width: 800px;
  margin: 0 auto 50px;
  
}
.fxcont table th{
  font-weight: normal;
  color: #374E79;
  text-align: left;
  vertical-align: top;
  padding: 14px 6px;
  border-bottom: 1px solid #B9B9B9;
}
.fxcont table td{
  padding: 14px 6px;
  border-bottom: 1px solid #B9B9B9;
}
#insta{
  max-width: 990px;
  width: 100%;
  margin: 0 auto 100px;
  padding:0 0.8em;
  box-sizing: border-box;
}
.fxcont .card{
  width:100%;
  max-width: 800px;
  margin: auto;
}
.fxcont .card h3{
  color: #374E79;
}
span.badge{
  display: none;
}
@media screen and (min-width: 769px) {
  .nav-wrapper{
    display: none;
  }
}
@media screen and (max-width: 768px) {
  br.sp{
    display: inline;
  }
  #header-image .section-title {
    font-size: 1.5rem;
  }
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-inner .logo {
    margin-bottom: 0.5em;
  }
  .header-inner .tel {
    font-size: 1.5em;
  }
  .header-inner .tel span{
    font-size: 0.9em;
  }
  main .sub{
    width: 100%;
    margin: auto;
    padding: 50px 16px;
    box-sizing: border-box;
  }
  .fxcont {
    flex-direction: column;
    padding-bottom: 50px;
    margin-bottom: 0;
    gap: 1em;
  }
  .fxcont .section-title {
    margin-bottom: 0;
    min-width: 100%;
    margin: auto;
    text-align: left;
  }
}
@media screen and (max-width: 480px) {
  #header-image .section-title {
    font-size: 1.2rem;
  }
  .nav-wrapper{
    margin-top: 6px;
  }
}

/**ヘッダースライド**/
#header-image {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1920 / 860; /* ← 追加：アスペクト比を固定 */
  overflow: hidden;
}

#header-image ul {
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0; と同じ意味 */
  margin: 0;
  padding: 0;
  list-style: none;
}
#header-image ul li {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  display: none;
}

#header-image ul li:first-child {
  display: block;
}

#header-image ul li img {
  width: 100%;
  height: auto;
  display: block;
}

#header-image .header-title {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%); /* 縦横中央配置 */
  color: #fff;
  text-align: center;
  margin: 0;
  font-weight: normal;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  font-size: clamp(18px, 3.5vw, 60px);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.3em 0.8em;
  box-sizing: border-box;
  line-height: 1.4; /* 視認性向上 */
}

/* 濃紺の下ライン＋影 */
header{
  border-bottom:10px solid #374E79;
  box-shadow: 0px 8px 6px #0000004D;
}

/* ロゴ */
.logo{
  margin-top:-36px;
}
.logo img{height:38px; width:auto; display:block}

/* ========= タブ型ナビ ========= */
.header-inner ul.pc{
  grid-column:1 / -1; 
  grid-row:2;
  display:inline-flex; 
  gap:0;
  padding:0; 
  position:relative; 
  list-style:none; 
  margin:0;
}
@media screen and (max-width: 768px) {
  .header-inner ul.pc{
    display: none;
  }
}
.header-inner ul.pc li{
  position:relative
}

/* タブ本体 */
.header-inner ul.pc li a{
  display:block;
  line-height: 60px;
  width: 200px;
  color:#fff;
  text-align: center;
  font-size: 18px;
  background:#919EB5;
  border-radius: 20px 0 0 0;
  text-decoration: none;
  font-family: 'M PLUS 1c';
}

/* アクティブ（濃いタブ） */
.header-inner ul.pc li a.active{
  background:#374E79;                 /* 濃紺 */
}

/* ホバー時の微強調 */
.header-inner ul.pc li a:hover{filter:brightness(1.05)}
