/*
 Theme Name:   MEリゾート播磨
 Theme URI:    https://merharima.com/
 Description:  Child theme of Twenty Twenty-Five
 Author:       MEリゾート播磨
 Author URI:   https://merharima.com/
 Template:     twentytwentyfive
 Version:      1.0.0
 Text Domain:  merharima
*/

html {
  font-size: 16px; /* 1rem = 16px */
}

body {
  font-size: 1rem; /* 16pxを基準に */
  line-height:1.75;
}

/* 共通設定 */
header{
  width:100%;
  height:78px;
  display:block;
  position:relative;
}

h1.site-title{
  width:173px;
  height:30px;
  display:block;
  position:absolute;
  top:24px;
  left:24px;
  margin:0;
  z-index:1;
}

h1.site-title a{
  width:173px;
  height:30px;
  display:block;
  background:url(images/logo.svg) no-repeat;
  background-size: 100% auto;
  text-indent:-9999px;
}
.main-nav {
  position: relative;
  position:absolute;
  top:26px;
  right:24px;
}

.menu-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  font-size: 2rem;
  background: white;
  border: none;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1em;
}

#business .is-layout-flex{
  justify-content: center !important;
}

table{
  margin-bottom:80px;
  border:none;
  background:#fefefe;
  border-radius:6px;
}

.wp-block-table td, .wp-block-table th{
  border:none !important;
  padding:8px !important;
  text-align:left;
}

h3{
  font-weight:bold;
  line-height:1.5;
  margin:0 0 16px 0
}

/* モバイル用（〜767px） */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .menu-container {
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    padding: 2em 1em;
    z-index: 999;
  }

  .menu-container.open {
    right: 0;
  }

  .main-menu {
    flex-direction: column;
    gap: 1.5em;
  }
}


/* 共通 */
.main-nav {
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ナビリストの基本 */
.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1em;
}

  .menu-toggle {
    display: block;
  }

  .menu-container {
    position: fixed;
    top: 0;
    right: -100%; /* モバイルでは非表示 */
    width: 60%;
    height: 100vh;
    background: #f0f0f0;
    transition: right 0.3s ease;
    z-index: 9999;
  }

  .menu-container.open {
    right: 0;
  }

  .main-menu {
    flex-direction: column;
    gap: 1.5em;
  }

  .main-menu li a{
    color:#111;
    text-decoration: none;
  }

  .main-menu li a:hover{
    text-decoration: underline;
  }

  section{
    padding:80px 0;
  }

  section.works-carousel{
    padding:0;
  }

.wrapper{
  width:100%;
  max-width:800px;
  height:auto;
  display:block;
  overflow: hidden;
  box-sizing:border-box;
  padding:0 16px;
  margin:0 auto;
}

.wrapper.narrow{
  max-width:720px;
}

.wrapper.wide{
  max-width:1024px;
}

.wrapper img,.entry-content img{
  width: 100%;
  height:auto;
}

.entry-content{
  width:100%;
  max-width:600px;
  height:auto;
  display:block;
  overflow: hidden;
  box-sizing:border-box;
  padding:0 16px;
  margin:0 auto 80px auto;
}

#works-single .works-logo{
  width:100%;
  height:auto;
  display:block;

}

#works-single .works-logo img{
  width:200px;
  height:auto;
  display:block;
  margin:0 auto;
}

#works-single h1,.entry-content h1{
font-size:2rem;
font-weight:bold;
line-height:1.5;
margin:0 0 24px 0;
}

#works-single ul{
margin:0;
padding:0;
list-style:none;
}

.entry-header{
  width: 100%;
  height:auto;
  display:block;
  box-sizing:border-box;
  background:#EBF0F0;
  padding:16px;
  margin-bottom:80px;
}

.entry-content .entry-header h1{
  margin:0 0 8px 0;
}

.entry-header p{
  margin:0 0 8px 0;
}

.entry-header p span{
  display:block;
  font-size:0.8rem;
}

.entry-content p.entry-time{
  font-size:0.8rem;
  margin-bottom:8px;
}

a.link-btn{
  width:100%;
  max-width:400px;
  display:block;
  box-sizing:border-box;
  padding:16px 8px;
  margin:0 auto;
  border-radius: 4px;
  border: 2px solid var(--Primary, #106A69);
  background: var(--white, #FFF);
  color:#106A69;
  font-size:1rem;
  line-height:1;
  text-align:center;
  text-decoration:none;
}

.box{
  width:100%;
  height:auto;
  display:block;
  overflow: hidden;
  box-sizing:border-box;
  margin:0 auto 40px auto;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

#business .grid{
  margin-bottom:40px;
}
  
.item {
  flex: 0 0 calc(50% - 8px); /* grow=0, shrink=0, basis=33.3333%-gap */
  box-sizing: border-box;
  text-align: left;
}

.item a h2{
  font-size:1rem;
  line-height:1.5;
  color:#2E3532;
  margin:8px 0;
}

.item a .works-label{
  width:auto;
  height:auto;
  display:inline-block;
  background:#106a69;
  color:#fff;
  font-size:0.8rem;
  line-height:1;
  padding:8px;
  margin:0;
}

.item h3{
  font-weight:bold;
  text-align:center;
  line-height:1.5;
}

.item a{
  text-decoration:none;
}

.item a p{
  font-size:0.8rem;
  line-height:1.5;
  color:#2E3532;
  margin:8px 0;
}

.left h3,.right h3{
  margin-bottom:8px;
}

.left p,.right p{
  margin:0 0 24px 0;
}

main article header,main#works section header,main#archive section header{
  width: 100%;
  height:200px;
  display:block;
  position:relative;
  overflow: hidden;     /* はみ出しを隠す */
  line-height:1;
  margin-bottom:80px;
}

main article header figure,main#works section header figure,main#archive section header figure{
  width: 100%;
  height:200px;
  display:block;
  background:#ccc;
  position:relative;
  overflow: hidden;     /* はみ出しを隠す */
  line-height:1;
}

main article header img,main#works section header img,main#archive section header img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 枠を埋めるように拡大・トリミング */
  object-position: 50% 50%;  /* 中央基準でトリミング */
  line-height:1;
}
 

main#works-single article header{
  margin-bottom:0;
}

main article header h1,main#works section header h1{
  width: 100%;
  height:auto;
  display:block;
  font-size:2.75rem;
  color:#fff;
  line-height:1;
  text-align:center;
  position:absolute;
  top:50%;
  margin:-2.5rem 0 0 0;
}

main article header h1 span,main#works section header h1 span{
  display:block;
  font-size:1.3rem;
  margin-top:16px;
}

footer{
  width: 100%;
  height:auto;
  display:block;
  overflow:hidden;
  box-sizing:border-box;
  background:#106A69;
  color:#fff;
  text-align:center;
  padding:80px 0;
}

/* HOME */
.home-slider{
  width: 100%;
  height:auto;
  display:block;
  position:relative;
  line-height:1;
}

p.catch{
  width: 100%;
  height:auto;
  display:block;
  font-size:40px;
  font-weight:bold;
  text-shadow: 0 0 0.8px rgba(0,0,0,0.1);
  color:#fff;
  text-align:center;
  line-height:1;
  margin:0;
  position:absolute;
  top:50%;
  left;0;
  z-index:2;
  margin-top:-20px;
}

.top-slider{
  height:auto;
  position: relative;
  margin:0;
  padding:0;
}

.top-slider figure {
  width: 100%;
  height: 400px; /* 任意の高さ */
  overflow: hidden;
}

.top-slider figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 枠を埋めるように拡大・トリミング */
  object-position: center;  /* 中央基準でトリミング */
  display: block;
}

#home section h2{
  width: 100%;
  height:auto;
  display:block;
  font-size:2.75rem;
  color:#111;
  line-height:1;
  text-align:center; 
  margin:0 0 40px 0;
}

#home section h2 span{
  display:block;
  font-size:1.3rem;
  margin:16px 0 0 0;
}

.auto-slider{
  height:auto;
  position: relative;
  margin:0;
  padding:0;
}


.auto-slider figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 枠を埋めるように拡大・トリミング */
  object-position: center;  /* 中央基準でトリミング */
  display: block;
}

section#home-news,section#scope{
background:#EBF0F0;
}

section#home-business{
  background:url(https://merharima.com/website/wp-content/uploads/2025/09/image-wide.jpg) no-repeat center;
  background-size:cover;
}

section#home-business .inner{
width:100%;
max-width:400px;
height:auto;
display:block;
box-sizing:border-box;
margin:0 auto;
padding:32px;
background:rgba(255,255,255,0.9);
}
  

section#home-recruit img{
  width:100%;
  max-width:560px;
  display:block;
  margin:0 auto;
}

#home-news dl{
  width: 100%;
  max-width:600px;
  height:auto;
  display:block;
  margin:0 auto 40px auto;
  font-size:0;
  letter-spacing:0;
}

#home-news dl dt{
  width: 100%;
  max-width:600px;
  height:auto;
  display:block;
  font-size:14px;
  margin:0 0 8px 0;
}

#home-news dl dd{
  width: 100%;
  max-width:600px;
  height:auto;
  display:block;
  font-size:14px;
  font-weight:bold;
  margin:0 0 16px 0;
  padding:0 0 16px 0;
  border-bottom:1px solid #999;
}


/* BUSINESS */

 #business p.intro{
  text-align:center;
  margin-bottom:80px;
  }

.accordion-toggle {
  display: none;
}

.accordion-label {
  width:auto;
  max-width:300px;
  height:auto;
  display: block;
  cursor: pointer;
  padding: 0.8em 1.5em;
  background: #106A69;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  text-align:center;
  margin:0 auto 40px auto;
}

.accordion-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: all 0.6s ease;
}

.accordion-toggle:checked ~ .accordion-content {
  opacity: 1;
  max-height: 1600px;
  visibility: visible;
}

.wrapper.usp {
  margin-bottom: 1.5em;
}


figure.president-image img{
  width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

.lead{
  font-size:1.4rem;
  font-weight: bold;
  text-align: left;
  margin:0 0 40px 0;
}

.lead br{
  display:none;
}

.usp{
  display:block;
  background:#E0EFEF;
  margin:24px auto;
  padding:16px;
}

/* COMPANY */

.message-title{
  font-size:2rem;
  text-align:center;
  font-weight:bold;
}

.message-title span{
  display:block;
  font-size:0.75rem;
}

.box.president{
  background:#eee;
  padding:24px;
  margin:0 0 40px 0;
}

.box.president figure{
  /* width:300px; */
  height:auto;
  display:block;
  margin:0 auto 16px auto;
}

p.president-title{
  font-size:1.8rem;
  font-family:serif;
}

.president-name{
  text-align:right;
  font-weight:bold;
  font-family:serif;
  letter-spacing:1px;
  margin:0 !important;
}

.president-name span{
  display:block;
  font-size:1.5rem;
}


#mission,#value{
  width:100%;
  height:auto;
  display:block;
  background:#0B5958;
  color:#fff;
  padding:80px 0;
  margin:80px 0 0 0;
}

#value{
  margin:0;
}

#role{
  width:100%;
  height:auto;
  display:block;
  background:#fff;
  padding:80px 0;
}

#vision,#information{
  width:100%;
  height:auto;
  display:block;
  background:#E0EFEF;
  padding:80px 0;
}

#recruit section.index{
  width:100%;
  height:auto;
  display:block;
  background:#EBF0F0;
  padding:80px 0 !important;
  margin-top:80px;
}

h2.wp-block-heading{
  font-size:2rem;
  font-weight:bold;
  text-align:center;
  margin:0 0 40px 0
}

.interview-content h2.wp-block-heading{
  margin:40px 0
}


#mission h2,#vision h2,#value h2,#role h2,#business h2,#recruit h2{
  font-size:2rem;
  font-weight:bold;
  text-align:center;
  margin:0 0 40px 0
}

#mission h2 span,#vision h2 span,#value h2 span,#role h2 span{
  display:block;
  font-size:1.5rem;
  text-align:center;
  margin-top:16px;
}

#mission h3,#vision h3,#value h3,#role h3{
  width:100%;
  max-width:600px;
  margin:0 auto 40px;
  text-align:center;
  line-height:1.75;
}

#mission p,#vision p,#value p,#role p{
  width:100%;
  max-width:600px;
  margin:0 auto;
}

div.interview-eyecatch{
  width:100%;
  max-width:800px;
  margin:0 auto 24px auto;
}

div.interview-eyecatch img{
  width:100%;
  height:auto;
}

#company dl{
  width: 100%;
  height:auto;
  display:block;
  position:relative;
  font-size:0;
  letter-spacing:0;
  padding-left:16px;
  border-left:4px solid #82C7C6;
}

#company dl:after{
  content:"▼";
  font-size:24px;
  color:#82C7C6;
  position:absolute;
  bottom:-16px;
  left:-11px;

}

#company dt{
  width: auto;
  height:auto;
  display:inline-block;
  font-size:12px;
  letter-spacing:0;
  background:#82C7C6;
  margin-bottom:8px;
  padding:4px;
  border-radius:4px;
}

#company dd{
  width: 100%;
  height:auto;
  display:block;
  font-size:14px;
  letter-spacing:0;
  margin:0 0 16px 0;
  padding:0;
}

/* WORKS */

section.index{
  padding-top:0 !important;
}

.works-quick ul{
  width:100%;
  height:auto;
  display:block;
  list-style:none;
  margin:0 0 24px 0;
  padding:0;
  text-align:center;
}

.works-quick ul li{
  width:auto;
  display:inline-block;
  padding: 4px;
  text-align: left;
  font-size:0.9rem;
  text-align:center;
  margin:0 8px;
}

/* スライドを横に詰めて“帯”にする */
.works-carousel { position: relative; overflow: hidden; }
.works-swiper .swiper-wrapper { align-items: center; } /* 画像高さがマチマチでも中央寄せ */
.works-swiper .swiper-slide {
  width: auto;              /* slidesPerView:'auto' とセット */
  flex-shrink: 0;
}
.works-slide__img { display: block; height: auto; width: auto; max-height: 600px; } /* 任意 */

.works-point{
  width: 100%;height:auto;
  display:block;
  background:#EBF0F0;
  margin-top:40px;
  padding:80px 0;
}

.works-point h2{
font-size:2rem;
font-weight:bold;
text-align:center;
margin-bottom:40px;
}

.works-point h3{
  font-size:1.2rem;
  font-weight:bold;
}

/* CONTACT */

input.wpcf7-form-control.wpcf7-text {
	width: 100%;
	max-width: 400px;
	height: auto;
	box-sizing: border-box;
	border-radius: 0;
	font-size: 16px;
	margin: 16px 0;
	padding: 8px;
	border: 1px solid #2E2210;
}

textarea.wpcf7-form-control.wpcf7-textarea {
	width: 100%;
	min-height: 400px;
	box-sizing: border-box;
	border-radius: 0;
	font-size: 16px;
	margin: 16px 0;
	padding: 8px;
}

select.wpcf7-form-control{
  padding:8px;
  font-size:16px;
}

select.wpcf7-form-control option{
  font-size:16px;
}

input.wpcf7-form-control.wpcf7-submit {
	width: 90%;
	height: auto;
	display: block;
	box-sizing: border-box;
	padding: 16px;
	margin: 16px 5%;
	background: none;
	font-size: 1.1em;
	font-weight: normal;
	letter-spacing: 1.5px;
	color: #2E2210;
	text-align: center;
	text-decoration: none;
	letter-spacing: 2px;
	border: 1px solid #2E2210;
	border-radius: 2px;
	box-shadow: 1px 1px 1px #2E2210;
	-webkit-transition: 0.3s ease-in-out;
	-moz-transition: 0.3s ease-in-out;
	-o-transition: 0.3s ease-in-out;
	transition: 0.3s ease-in-out;
}

input.wpcf7-form-control.wpcf7-submit:hover,
input.wpcf7-form-control.wpcf7-submit:focus {
	cursor: pointer;
	width: 90%;
	height: auto;
	display: block;
	box-sizing: border-box;
	padding: 16px;
	margin: 16px 5%;
	background: #2E2210;
	font-size: 1.1em;
	font-weight: normal;
	letter-spacing: 1.5px;
	color: #F4F1ED;
	text-align: center;
	text-decoration: none;
	letter-spacing: 2px;
	border-radius: 2px;
	box-shadow: 1px 1px 1px #2E2210;
	-webkit-transition: 0.3s ease-in-out;
	-moz-transition: 0.3s ease-in-out;
	-o-transition: 0.3s ease-in-out;
	transition: 0.3s ease-in-out;
}

input.wpcf7-form-control.wpcf7-submit:active {
	background: #999;
}

div.wpcf7 p{
	margin-bottom:16px;
}

div.wpcf7-response-output {
	font-size: 0.9rem;
	text-align: center;
}


@media screen and (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .menu-container {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .main-menu {
    flex-direction: row;
  }

    .menu-container {
      position: static;
      height: auto;
      background: none;
      box-shadow: none;
      padding: 0;
    }
  

  .left{
    width:48%;
    height:auto;
    display:block;
    float:left;
    margin:1%;
  }

  .right{
    width:48%;
    height:auto;
    display:block;
    float:right;
    margin:1%;
  }

  .wp-block-table td, .wp-block-table th{
    padding:16px !important;
  }


main article header,main#works section header{
  height:360px;
}

main article header figure,main#works section header figure{
  height:360px;
}

  /* HOME */

  p.intro{
  text-align:center;
  margin-bottom:40px;
  }
  

  /* BUSINESS */
  .lead{
    font-size:1.8rem;
    text-align: center;
  }

.lead br{
  display:block;
}

/* WORKS */

.item {
  flex: 0 0 calc(33.3333% - 16px); /* grow=0, shrink=0, basis=33.3333%-gap */
}


#works-single .works-logo{
  width:33%;
  display: inline-block;
  vertical-align: middle;

}

#works-single .works-info{
  width:66%;
  display: inline-block;
  vertical-align: middle;
}
  

}