html, body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
  background: #fff;
  color: #333;
  max-width: 100vw;
  background-image: url(img/back.jpg);
}

.bd {
  font-weight: 700;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #D4AF37;
  padding: 10px 20px;
  max-width: 100vw;
}

nav .logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #D4AF37;
}

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

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #D4AF37;
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.5rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  color: #ffffff ;
  transform: translateY(-2px);
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: white;
}

@media (min-width: 769px) {

.menu-trigger {
  display: none;
}

#sp-menu {
  display: none;
}

}

@media (max-width: 768px) {

nav ul {
  display: none;
}

.menu-trigger,
.menu-trigger span {
  display: inline-block;
  transition: all .4s;
  box-sizing: border-box;
}

.menu-trigger {
  position: fixed;
  top: 17px;
  right: 15px;
  width: 35px;
  height: 25px;
  z-index: 102;
}
  
.menu-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #D4AF37;
  border-radius: 4px;
}

.menu-trigger span:nth-of-type(1) {
  top: 0;
}

.menu-trigger span:nth-of-type(2) {
  top: 11px;
}

.menu-trigger span:nth-of-type(3) {
  bottom: 0;
}

.menu-trigger.active span:nth-of-type(1) {
  -webkit-transform: translateY(8px) rotate(-315deg);
  -moz-transform: translateY(-6px) rotate(315deg);
  transform: translateY(10px) rotate(-315deg);
  background-color: #ffffff;
}

.menu-trigger.active span:nth-of-type(2) {
  opacity: 0;
}

.menu-trigger.active span:nth-of-type(3) {
  -webkit-transform: translateY(-13px) rotate(315deg);
  -moz-transform: translateY(-13px) rotate(315deg);
  transform: translateY(-13px) rotate(315deg);
  background-color: #D4AF37;
}



#sp-menu {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0px;
  right: -100%;
  background-color: rgba(151,144,164,0);
  z-index: 90;
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  box-sizing: border-box;
  text-align: center;
  padding-top: 60px;
}

#sp-menu.open {
  width: 100%;
  height: 100%;
  background-color: rgba(151,144,164,0.95);
  z-index: 96;
  -moz-transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  padding-top: 60px;
}

#sp-1{
  width: 90%;
  margin-left: 5%;
  margin-top: 20px;
}

#sp-1 li{
  border-bottom: 1px solid #656565;
  font-size: 1.2rem;
  padding: 20px 0px 20px 0px;
  list-style: none;
}

#sp-1 li a{
  color: #333;
  text-decoration: none;
}

.selected{
  border-bottom: 1px solid #ffffff;
  padding-bottom: 8px;
}

#sp-menu{
  text-align: center;
}

#sp-menu p{
  font-size: 1.5rem;
  color: #ffffff;
  line-height: 1.8;
}

}

.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.hero .sub {
  font-size: 1.2em;
}

section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  margin-bottom: 20px;
  font-size: 2em;
  text-align: center;
  margin-top: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #ceccd6;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 10px 0 5px;
}

.highlight {
  background-color: #eee;
  padding: 60px 20px;
}

.map-placeholder {
  height: 400px;
  background: #ccc;
  border-radius: 8px;
  text-align: center;
  line-height: 400px;
  font-size: 1.2em;
  color: #666;
}

.card ol {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.card ol li {
  font-size: 0.95em;
  padding: 4px 0;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.selected {
  padding: 0;
}

.selected p {
  padding: 0 15px 0 15px;
}

.selected ol {
  padding: 0 15px 25px 15px;
}

.selected img {
  border-radius: 8px 8px 0 0;
}



/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,50%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
        box-sizing: border-box;
        z-index: 103;
}
/*モーダル本体の擬似要素の指定*/
.modal-container:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active{
	opacity: 1;
	visibility: visible;
}
/*モーダル枠の指定*/
.modal-body{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 500px;
	width: 96%;
}
/*モーダルを閉じるボタンの指定*/
.modal-close{
	position: absolute;
	display: flex;
    align-items: center;
    justify-content: center;
	top: -30px;
	right: -30px;
	width: 35px;
	height: 35px;
	font-size: 35px;
	color: #fff;
	cursor: pointer;
        z-index: 999;
}
/*モーダル内のコンテンツの指定*/
.modal-content{
	background: #aeabb7;
	text-align: left;
	padding: 15px;
	border-radius: 15px;
}

.modal-content ol {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.modal-content ol li {
  font-size: 0.95em;
  padding: 4px 0;
  color: #333;
  border-bottom: 1px solid #ddd;
  text-align: center;
}



.modal-content a {
  color: #333;
  margin: 0 0.5rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.modal-content a:hover {
  color: #ffffff ;
  transform: translateY(-2px);
}











.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.suberizaka-slider {
  display: flex;
  overflow-x: auto;
  gap: 0px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  margin-bottom: 15px;
}

.suberizaka-slider::-webkit-scrollbar {
  display: none;
}

.slide-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.slide-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  z-index: 10;
}
.slider-nav.prev { left: 0.5rem; }
.slider-nav.next { right: 0.5rem; }







nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 101;
  background: ;      /* ここを透明にする */
  color: white;                 /* hero画像上でも文字が見えるよう白文字に */
  box-shadow: none;             /* 必要に応じて影を外す */
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

body {
  margin: 0;
  padding-top: 60px;       /* navの高さ分、コンテンツを下げる */
}


#secret {
  text-align: center;
}

#social {
  text-align: center;
}



footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.fadein {
  opacity: 0;
  transform: translate(0, 100px);
  transition: all 1300ms;
}

.fadein.scrollin {
  opacity: 1;
  transform: translate(0, 0);
}

.slidein{
  opacity: 0;
  transform: translate(150px, 0);
  transition: all 1700ms;
}

.slidein.scrollin {
  opacity: 1;
  transform: translate(0, 0);
}

.slidein2{
  opacity: 0;
  transform: translate(-150px, 0);
  transition: all 1700ms;
}

.slidein2.scrollin {
  opacity: 1;
  transform: translate(0, 0);
}






.card a {
  color: #333;
  margin: 0 0.5rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.card a:hover {
  color: #ffffff ;
  transform: translateY(-2px);
}





/* 新しいスライダーのスタイルを追加します */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.suberizaka-slider {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.suberizaka-slider::-webkit-scrollbar {
  display: none;
}

.slide-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.slide-item img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  z-index: 10;
}

.slider-nav.prev {
  left: 0.5rem;
}

.slider-nav.next {
  right: 0.5rem;
}
