@charset "UTF-8";
@import url("grid.css");

:root {
    --base-color: #2f2f2f;
    --link-color: #004ea2;
    --linkhover-color: #6695c7;
    --back-color: #e4eaf0;
    --border-color: #ccc;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: var(--link-color);
    text-decoration-line: underline;
}
a:hover { 
    color: var(--linkhover-color);
    text-decoration-line: none;
}

/*ヘッダー
-------------------------------------*/
.header {
	display: flex;
  flex-direction: row;
  padding: 2rem 0 0 0;
}
nav ul {
	display: flex;
  flex-direction: row;
  justify-content: space-around;
  list-style: none;
	margin: 3rem 0 0 0;
}
nav li {
	flex: 1 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}
/* ナビのホバーアニメーション */
nav li a {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  color: var(--base-color);
  font-weight:500;
  text-decoration: none;
  display: inline-block;
  overflow: hidden;
  text-align: center;
  width: 100%;
}

nav li a::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--linkhover-color);
  transform: scale(1, 0);
  transform-origin: bottom left;
  transition: transform 0.5s ease;
}

nav li a:hover {
  color: var(--white-color);
}

nav li a:hover::before {
  transform-origin: top left;
  transform: scale(1, 1);
}
nav a {
  padding: 0.5rem;
}

@media screen and (min-width: 769px){
/* PC時はMENUボタンを非表示 */
.menu-open-btn,.menu-close-btn {
    display: none;
}

.menu-nav {
    display: block;
}
}

@media screen and (max-width: 768px){
.header {
	flex-direction: column;
}
.header h1 img {
  height: 60px;
  width: auto;
}
.header .menu-open-btn,.menu-close-btn  {
    position: absolute;
    top: 20px;
    right: 12px;
}
nav ul {
	flex-direction: column;
}
.header li {
	padding-top: 0;
}
/* スマホ時はMENUボタンを表示 */
.menu-open-btn {
    display: block;
    background: url(../img/button.png) no-repeat center center;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
.menu-close-btn  {
    display: none;
    background: url(../img/button2.png) no-repeat center center;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
  .menu-nav {
    display: none;
  }
}

/*スクロール後の縮小固定ヘッダー
-------------------------------------*/
.fixed-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  padding-top:20px;
}

.fixed-header h1 img.fixed-logo {
  height: 40px; /* ロゴを縮小表示 */
  width: auto;
}
.fixed-header .container {
  width: 100%;
  max-width: 1200px; /* 必要なら設定 */
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fixed-header nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
@media screen and (max-width: 768px) {
  .fixed-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999; 
  }

  .fixed-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 10px 15px;
  }

  .fixed-header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .fixed-header .col {
    flex: 1;
  }

  .fixed-header nav .menu-open-btn,
  .fixed-header nav .menu-close-btn {
  display: block;
  position: absolute;
  top: 10px;
  right: 15px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  z-index: 9999;
  }
  
  .fixed-header nav .menu-nav {
    display: none;
  }

  .fixed-header .menu-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 9998;
    padding: 1rem;
  }
}
 
/*メイン画像
-------------------------------------*/
.mainimg {
  position: relative;
  width: 100%;
  height: 80vh;
  background-image: url("../img/mainimg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.mainimg-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; 
}
.mainimg-logo {
  width: 550px;
  max-width: 80%;
  height: auto;
}
.mainimg-text {
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  font-size: clamp(1.2rem, 5vw, 2.5rem); /* 自動可変 */
  white-space: nowrap; /* 改行防止 */
  padding: 0 1em;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  letter-spacing: 0.05em;
}


/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 0 0;
}
section {
	margin: 5rem 0;
	padding: 3rem 0;
}
.gray-back {
	background-color: var(--back-color);
}

/*キャッチコピー
-------------------------------------*/
.catch {
    text-align: center;
}
.catch h2 {
    padding-bottom: 1rem;
}
.under {
    border-bottom: 0.4rem solid var(--base-color);
    padding:0 1rem 1rem 1rem;
}
.center {
	text-align: center;
	margin-bottom: 4rem;
}

/*表組
-------------------------------------*/
.table_design {
  border-collapse: collapse;
  width: 100%;
}
.table_design th, .table_design td {
  border-bottom: 2px solid #b7b7b7;
  padding: 1em;
}
.table_design th {
  border-bottom: 2px solid var(--linkhover-color);
  font-weight: bold;
  text-align: center;
  width: 30%;
  min-width: 4em;
}
.table_design td ul {
  padding-left: 1.5em;
  margin: 0.5em 0 0;
}
.table_design td li {
  list-style-position: outside;
  margin-left: 0;
  padding-left: 0.1em;
}


/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color); 
    padding: 5rem 0;
}
footer h4 {
    border-bottom: 3px solid var(--border-color);
}

/*お問い合わせ
-------------------------------------*/
.contact-box {
	border: 1px solid var(--border-color);
	text-align: center;
	padding: 2rem 0;
}
.table {
	margin: 4rem 0;
}
.table th {
	width: 250px;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--base-color);
}
.copyright p {
    color: var(--white-color);
    font-size: 1rem;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
  position: fixed;
  bottom: 20px;
  right: 15px;
}

#pagetop a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--link-color);
  color: var(--white-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  border: 3px solid var(--link-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#pagetop a:hover {
  background-color: var(--linkhover-color);
  color: var(--white-color);
  border: 3px solid var(--linkhover-color);
}

/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){
	
/*ヘッダー
-------------------------------------*/
.header-box {
	display: none;
}
/*お問い合わせ
-------------------------------------*/
.table th {
	width: 100%;
	display: block;
}	
.table td {
	display: block;
}
}