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

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --back-color: #f7f7f7;
    --border-color: #ccc;
    --white-color: #fff;
}

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





/*ヘッダー
-------------------------------------*/
.header {
	display: flex;
    flex-direction: row;
    padding: 2rem 0 0 0;
}
.header-box {
	margin-left: auto;
	margin-top: 8px;
}
.contact-button {
	padding: 1rem;
	border: 2px solid var(--base-color);
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin: 1rem 0 0 0;
}
nav li {
	flex: 1 0 auto;
}
nav li a {
    text-decoration: none;
    text-align: center;
    width: 100%;
}
nav a:hover {
    background-color: var(--back-color);   
}
nav a {
    padding: 0.5rem;
}

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

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
  .header {
    flex-direction: column;
    margin-bottom: 10px;
  }
  .header #open,#close  {
    position: absolute;
    top: 20px;
    right: 12px;
  }
  nav ul {
    flex-direction: column;
  }
  .header li {
    padding-top: 0;
  }
}







/* ===== 会社沿革 スマホ用 ===== */
@media screen and (max-width: 768px) {

  .history thead {
    display: none;
  }

  .history, 
  .history tbody, 
  .history tr, 
  .history td {
    display: block;
    width: 100%;
  }

  .history tr {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .history td {
    border: none;
    padding: 10px 14px;
  }

  .history td:first-child {
    background: #1f3a5f;
    color: #fff;
    font-weight: 600;
    text-align: left;
  }

  .history td:last-child {
    background: #f8f9fb;
  }

/* 年月列を折り返さない */
.history td:first-child,
.history th:first-child {
  white-space: nowrap;
  min-width: 8em;   /* 1946年1月15日 が入る幅 */
}

}







/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}





/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}



    
/*メイン画像
-------------------------------------*/
.mainimg img {
    width: 100%;
}






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






/* 製品情報 画像ズーム */
.sample_box {
  overflow: hidden;
}

.sample_box img {
  width: 100%;
  transition: transform 0.4s ease;
}

.sample_box:hover img {
  transform: scale(1.15);
}







/*若チャレのリンク
-------------------------------------*/
.special-link {
  display: inline;              /* 文章の中で使える */
  color: #0066cc;               /* リンク色 */
  text-decoration: underline;  /* 下線 */
  font-weight: 600;
}

.special-link:hover {
  color: #003f80;
  text-decoration-thickness: 2px;
}






/*キャッチコピー
-------------------------------------*/
.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;
}






/*申し込みの流れ
-------------------------------------*/
.flow.row {
	margin-bottom: 3rem;
}






/*フッター
-------------------------------------*/
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 a {
    color: var(--white-color);
    text-decoration: none;
	display: inline;
}






/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 0px;
    right: 0px;
}
#pagetop a {
    display: block;
    width: 100px;
    text-align: center;
}
#pagetop a:hover {
    background-color: var(--link-color);
}






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





/* 会社沿革だけ、年月列の幅固定を解除 */
.history th:first-child,
.history td:first-child {
  width: auto !important;
  min-width: 8em !important;
  white-space: nowrap !important;
}

/* ===== 会社沿革の年月が縦に割れるのを防ぐ ===== */
.history th:first-child,
.history td:first-child {
  white-space: nowrap !important;
  min-width: 9em !important;   /* 1946年1月15日 が入る幅 */
  word-break: keep-all !important;
}

.year {
  white-space: nowrap !important;
  min-width: 140px !important;
}











/* カタログレイアウト（PC・スマホ共通） */
.slider {
  max-width: 900px;
  margin: 40px auto;
  position: relative;
}

/* ===== 画像 ===== */
.viewer {
  width: 90vw;
  max-width: 600px;
  margin: 0 auto;
}

.viewer img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 矢印共通 ===== */
.nav {
  font-size: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
}

/* ===== PC：画像の左右 ===== */
@media (min-width: 769px) {
  .nav-area {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
  }

  .nav {
    pointer-events: auto;
  }
}

/* ===== スマホ：画像の下 ===== */
@media (max-width: 768px) {
  .nav-area {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 15px auto 0;
  }

  .nav {
    font-size: 32px;
  }
}
