@charset "UTF-8";

body{
    line-height: 1.5;
      font-family: "M PLUS 1p", sans-serif;
      background: #EEEEEE;
      font-weight: 400;
      font-style: normal;
}
a{
	text-decoration: none;
	color: #000;
}
ul,
ol,
dl {
	margin: 0;
	padding: 0;
	list-style: none
}
p{
    margin: 0;
    padding: 0;
}
h1{
    font-size: 4rem;
    line-height: 1.4;
}
@media(max-width:992px){
  h1{
    font-size: 2rem;
  }
}
@media(max-width:768px){
  h1{
    font-size: 1.5rem;
  }
}


h2{
    font-size: 5rem;
}
h3{
    font-size: 2rem;
}
h5{
    font-weight: bold;
}
section{
    margin: 10% 0;
}

/******  ボタン ********/
.btn{
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}
.cnt-btn{
    font-size: 2.5rem;
    padding: 0.5em 2em;
}

/******* Header ********/
.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.site-header .nav-link {
  color: #333; 
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.site-header .nav-link:hover {
  color: #000; 
}

/****** footer ********/
.site-footer {
  background-color: #000;
  color: #fff;
}
.site-footer .footer-link {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}
.footer-link{
  display: block;
  margin-bottom: 15px;
}
.site-footer .footer-link:hover {
  opacity: 0.7;
}

/*******hero section********/
/**.hero {
  position: relative;
}**/
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 80px);
    min-height: 600px;
    background-image: url('../img/home/hero.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.hero img {
  object-fit: cover;
  width: 100%;
  height: 100vh;
}

.hero-overlay {
  position: absolute;
  top: 90%; 
  left: 0;
  width: 100%;
}

.hero-title {
  background-color: rgba(238, 238, 238, 0.7);
  padding: 1rem;
}


.hero-caption {
  padding: 1rem;
  color: #333;
  line-height: 1.6;
  font-weight: 500;
}

/****** NEWS ********/
.news-icon {
  font-size: 1.5rem;
}

.news-item a:hover {
  background-color: #EEEEEE;
  transition: background-color 0.2s ease-in-out;
}

/****** philosophy ********/
.philosophy-title-overlay {
  background-color: rgba(238, 238, 238, 0.7);
  top: 80%;
  transform: translate(-50%, -50%);
}

.label-frame {
  padding: 0.3em;
}

/****** service ********/
.card{
    background-color: #EEEEEE;
}
.service-section .section-title {
  font-size: 2.5rem;
  font-weight: bold;
}

.service-image {
  width: 100%;
  height: 250px; /* 高さを指定します。値は適宜調整してください。 */
  overflow: hidden; /* はみ出した部分を非表示にします */
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像のアスペクト比を維持したまま、コンテナ全体を覆います */
}

/****** company ********/
.company-table {
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid #999;
  padding: 0.75rem;
  vertical-align: middle;
}

.company-table th {
  width: 20%;
  font-weight: 600;
  text-align: left;
}

.company-table td a {
  color: #333;
  text-decoration: none;
}

.company-table td a:hover {
  text-decoration: underline;
}

/*--------------------------------------------------------------
## Philosophyページ
--------------------------------------------------------------*/
.hero-philosophy{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 80px);
    min-height: 600px;
    background-image: url('../img/philosophy/hero-philosophy.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}


/*--------------------------------------------------------------
## お問い合わせページ
--------------------------------------------------------------*/
.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border: none; /* テーブル自体の枠線を削除 */
}

.contact-table tr {
  display: block; /* thとtdをブロック要素として扱うため */
  padding: 1rem 0;
  border-bottom: 1px solid #ccc; /* 各項目の区切り線 */
}

.contact-table tr:last-of-type {
  border-bottom: none; /* 最後の項目の区切り線は不要 */
}

.contact-table th,
.contact-table td {
  display: block; /* thとtdを縦に並べる */
  width: 100%;
  padding: 0;
  border: none;
  background-color: transparent; /* 背景色をなくす */
}

.contact-table th {
  font-weight: bold;
  text-align: left;
  padding-bottom: 0.5rem; /* ラベルと入力欄の間のスペース */
}

/* Contact Form 7 specific adjustments */
.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 .form-control {
  width: 100%;
  background-color: #fff; /* 入力欄の背景色 */
  border: 1px solid #999; /* 枠線 */
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}
.wpcf7-spinner {
    display: none !important;
}

.contact-flex{    /***ボタン横並び**/
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
