/* リセットスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #333;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

header.hidden {
  transform: translateY(-100%);
}

header .logo {
  font-size: 1.5em;
  font-weight: bold;
}

header .nav ul {
  list-style: none;
  display: flex;
}

header .nav ul li {
  margin: 0 15px;
}

header .nav ul li a {
  color: #fff;
  text-decoration: none;
}

main a{
  text-decoration: none;
}

.section {
  min-height: 100vh;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  margin-top: 50px;
}

.section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}



#home {
  background-image:url(tana_phot/カラフルスーツ2825.png);
  background-repeat:no-repeat;
  background-size:contain;   
  width:auto;
  height:auto;
  color: #fff;
}

#about{
  background-image:url(tana_phot/シーサイドももち2825.jpg);
  background-repeat:no-repeat;
  background-size:contain;   
  width:auto;
  height:auto;
  color: #fff;
}


.about h2{
  color: #333;
  padding-top: 1.5em;
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-bottom: 1em;
}
.about h2:before {
  content: '';
  position: absolute;
  bottom: -15px;
  display: inline-block;
  width: 60px;
  height: 5px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: rgb(255, 181, 69);
  border-radius: 2px;
}


.kaisha {
  width: 100%;
  }
  
  .kaisha th,
  .kaisha td {
  border: 1px solid #ccc;
  padding: 20px;
  }
  
  .kaisha th {
  font-weight: bold;
  background-color: #dedede; 
  }
  
  @media screen and (max-width: 767px) {
  .kaisha,
  .kaisha tr,
  .kaisha td,
  .kaisha th {display:block;}
  .kaisha th {width:auto;}
  }

.th,td{
  color: #000000;
}

#philosophy{
  background-image:url(tana_phot/本棚2825.png);
  background-repeat:no-repeat;
  background-size:contain;   
  width:auto;
  height:auto;
  color: #fff;
}
#philosophy h1{
  padding-bottom: 0px;
  border-bottom: rgb(210, 136, 0);
}

.philosophy h2{
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 10px;
}

.philosophy h1{
  color: #333;
  padding-top: 1.5em;
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-bottom: 1em;
}
.philosophy h1:before {
  content: '';
  position: absolute;
  bottom: -15px;
  display: inline-block;
  width: 60px;
  height: 5px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: rgb(255, 181, 69);
  border-radius: 2px;
}

#recruit{
  background-image:url(tana_phot/握手2825.png);
  background-repeat:no-repeat;
  background-size:contain;   
  width:auto;
  height:auto;
  color: #fff;
}

.services h2{
  color: #333;
  padding-top: 1.5em;
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-bottom: 1em;
}
.services h2:before {
  content: '';
  position: absolute;
  bottom: -15px;
  display: inline-block;
  width: 60px;
  height: 5px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: rgb(255, 181, 69);
  border-radius: 2px;
}

#services{
  background: #ffffff;
  border-top: 1px solid #c7c7c7;
}

.service-item {
  background: #d7d7d7c0;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0px 0px 10px 0px rgba(216, 216, 216, 0.5);
}

#contact{
  background-image:url(tana_phot/コンタクトマウス2825.png);
  background-repeat:no-repeat;
  background-size:contain;   
  width:auto;
  height:auto;
  color: #fff;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
}

#back-to-top:hover {
  background: #555;
}

/* フッター全体のスタイル */
#footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* フッターのコンテンツ部分 */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.footer-content div {
  flex: 1;
  margin: 10px;
}

/* 各セクションのスタイル */
.footer-about h3,
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: bold;
}

.footer-about p,
.footer-contact p {
  font-size: 0.9em;
  line-height: 1.6;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin: 5px 0;
}

.footer-links ul li a,
.footer-contact ul li a{
  color: #fff;
  text-decoration: none;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover{
  text-decoration: underline;
}

/* フッター下部のスタイル */
.footer-bottom {
  border-top: 1px solid #444;
  padding: 10px;
  margin-top: 20px;
  font-size: 0.8em;
}


/* ==== レスポンシブ対応 ==== */
@media screen and (max-width: 768px) {
header {
  flex-direction: column;
  align-items: flex-start;
}

header .nav ul {
  flex-direction: column;
  width: 100%;
  display: none;
  background: #444;
}

header .nav ul li {
  margin: 10px;
}

.menu-toggle {
  display: block;
  cursor: pointer;
  color: #fff;
  font-size: 1.2em;
  margin-top: 10px;
}

.nav.open ul {
  display: flex;
}

.section {
  padding: 30px 10px;
  margin-top: 60px;
}

.service-item {
  padding: 10px;
  font-size: 0.95em;
}

.footer-content {
  flex-direction: column;
  align-items: center;
}

.footer-content div {
  margin: 15px 0;
}
}

img, video {
max-width: 100%;
height: auto;
}

#home,
#about,
#philosophy,
#recruit,
#contact {
background-size: cover;
background-position: center;
}


/* ==== PC画面ではハンバーガーメニューを非表示 ==== */
@media screen and (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}
