/* すべての画像にレスポンシブ対応 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* bodyとmainのリセット・中央寄せ */
body, html {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

main {
  width: 100%;
  max-width: 1366px; /* 元画像の幅に合わせた上限 */
  margin: 0 auto;
  padding: 0;
}



footer {
  text-align: center;
  padding: 20px 0;
  background-color: #f5f5f5;
  font-size: 14px;
  color: #666;
}

.center{
	text-align:center;
	}
	
	
	
	.responsive-iframe {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9の比率（高さ÷幅×100） */
  margin: 20px auto;
  max-width: 800px; /* 任意の最大幅（省略可） */
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}


.responsive-table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
  padding: 12px;
  border: 1px solid #ddd;
  vertical-align: top;
  text-align: left;
}

.responsive-table th {
  background-color: #F4F4F4;
  width: 30%;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .responsive-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }

  .responsive-table td {
    padding: 10px;
    border: none;
  }
}



/*************************
TOPページのタイルボタン
**************************/

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  max-width: 480px;
  margin: 30px auto;
  padding: 0 10px;
}

.menu-button {
  border: 1px solid #f26c4f;
  color: #f26c4f;
  text-align: center; /* これが中央揃えの決め手 */
  padding: 10px 0px 0px 0px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  border-right: 1px solid #f26c4f;
  border-bottom: 1px solid #f26c4f;
}

/* 1行目のボタンに上線 */
.menu-button:nth-child(-n+3) {
  border-top: 1px solid #f26c4f;
}

/* 1列目（左端）のボタンに左線 */
.menu-button:nth-child(3n+1) {
  border-left: 1px solid #f26c4f;
}

.menu-button .icon-img {
  width: 48px;
  height: 48px;
  margin-bottom: 0px;
	margin-top:10px;
  /* display: block; は不要 */
}

.menu-button .label {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: inherit;
  font-size: 16px;
  padding-bottom: 10px;
	margin-bottom:15px;
}

.menu-button .label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.menu-button .arrow {
  display: none;
}

.menu-button:hover {
  background-color: #f26c4f;
  color: #fff;
}

@media (max-width: 480px) {
  .menu-grid {
    max-width: 100%;
    padding: 0 5px;
  }

  .menu-button {
    padding: 10px 5px 0px 5px !important;
    font-size: 12px;
  }

.st-main .menu-button .icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 0px;
	  vertical-align: middle;
  }
	
  .menu-button .label {
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .menu-button .label::after {
    width: 8px;
    height: 8px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
  }
}

@media (max-width: 640px) {
    .st-main .menu-button img {
        position: none;
        left: 0;
        right: 0;
        margin-left:0;
        margin-right:0;
    }
}

.menu-button .icon-img {
  width: 40px;
  height: 40px;
}

@media (max-width: 480px) {
  .menu-button .icon-img {
    width: 36px;
    height: 36px;
  }
}

.menu-button a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.menu-button a:hover {
  color: inherit; /* ホバーでも色を親要素に従わせる */
}

.menu-button a .label::after {
  border-color: currentColor;
}


/*************************
スムーズスクロール
**************************/

html {
  scroll-behavior: smooth;
}