@charset UTF-8;

body {
	    font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif, Verdana, "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif;
	background-color: #faebd7;
	max-width: 1130px;
  padding: 0 20px;
  margin: 0 auto;
}

html, body { overflow-x: clip; }  /* 古めの環境は hidden でもOK */


/*main-visual CSS*/

h1{
	position: absolute;
	z-index: 1;
	bottom: 50%;
	margin-left: 200px;
}

h2{
	font-size: 32px;
	margin-bottom: 50px;
	margin-left: 100px;
}

h3{
	font-size: 24px;
	margin-bottom: 50px;
}

p{
	font-size: 18px;
}

a{
	text-decoration: none;
	color: #333333;
}

.main1{
	top: 0px;
	left: 0px;
}

.main2{
	background: no-repeat;
    position: relative;
    left: 500px;
    top: -200px;
}

/* SPでtop_img2を確実に表示 */
@media (max-width: 767px){
  .main2{
    visibility:visible !important;
    opacity:1 !important;
    position:relative;    /* 絶対配置で飛んでた場合の保険 */
    right:auto;
	left:50px;
	top:auto;
	bottom:auto;
    max-width:100%;
    height:auto;
  }
  /* 親が切っている場合の保険（必要なら） */
  .top_img2, .top_img2 *{ overflow:visible !important; }
}



/* スマホ用 */
@media screen and (max-width: 767px) {
	.main-visual {
		height: 600px; /* スマホ用に調整する場合 */
	}
}



/* スマホ用 */
@media screen and (max-width: 767px) {
	.main-visual {
		height: 600px; /* スマホ用に調整する場合 */
	}
}

.safety-link{
	position: absolute;
	z-index: 1;
	bottom: -5%;
	margin-left: 50px;
}

.background1{
	position: absolute;
	z-index: -1;
	top: 0;
	margin-left: 600px;
}

.background2{
	position: relative;
	z-index: -1;
	margin-left: 100px;
	margin-top: -600px;
}

/* デフォルト（PC）では .sp-only を非表示に、.pc-only を表示 */
.sp-only {
  display: none;
}
.pc-only {
  display: block;
}

/* スマホ表示（767px以下）のときは逆にする */
@media screen and (max-width: 767px) {
  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
}

/*menu CSS*/



.menu li{
	margin: 40px 55px;
	padding-top: 15px;
}

.menu .right {
    background-image: url("images/top_link1.png");
    background-repeat: no-repeat;
    background-size: contain;   /* ← Retina用を使うとき必須 */
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    z-index: 1;
    writing-mode: vertical-rl;
	max-width: 100%; /* 画面幅に合わせる */
  width: 150px;    /* 固定で大きく表示するならpx指定 */
}

/* Retina対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .menu .right {
        background-image: url("images/top_link1@2x.png");
        background-size: contain; /* 元の見た目を維持 */
    }
}


.menu .left {
    background-image: url("images/top_link2.png");
    background-repeat: no-repeat;
    background-size: contain;   /* ← Retina対応に必須 */
    height: 100%;
    position: fixed;
    right: 0;
    top: 0;
    display: flex;
    z-index: 1;
    writing-mode: vertical-rl;
}

/* Retina対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .menu .left {
        background-image: url("images/top_link2@2x.png");
        background-size: contain;  /* 元の見た目を維持 */
    }
}



/*contact CSS*/
.contact {
  position: fixed;
  right: 100px;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.contact.hide {
  opacity: 0;
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  .contact {
    display: none !important;
  }
}


/*about CSS*/
.about{
	margin-top: 130px;
}

.about-wrapper{
	max-width: 1000px;
    width: 100%;
	margin: 0 auto;
	margin-bottom: 58px;
	display: flex;
	justify-content: space-between;
	overflow: hidden;
}

.about-img{
	flex: 1;
}

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


.about-contents{
      display: flex;
      flex-direction: column;
      justify-content: center; 
}

.about-contents p{
	padding: 30px;
}

.about-contents a{
	display: flex;
    justify-content: flex-end;
}

@media screen and (max-width: 767px) {
  .about {
	  margin-top: 220px;/* 余白の大きさは調整 */
    /* もしmarginで崩れる場合は padding-top に変更してOK */
  }
}


.background3{
	position: absolute;
	z-index: -1;
}

/*course CSS*/

.course{
	margin-top: 130px;
}

.course-wrapper{
	max-width: 1000px;
  width: 100%;
	margin: 0 auto;
	margin-bottom: 58px;
	display: flex;
	justify-content: space-between;
}

.course-btn {
  display: block;
  text-align: center;
  width: 200px;
  height: 200px;
  background-color: #f3d7b2;
  border-radius: 30px;
}

.course-btn:hover {
  background-color: #edb56b;
}

/* スマホ時だけ “赤ちゃんと参加<br>ママのコース” をコンパクトに */
@media (max-width: 768px){
  .course-btn--mama{
    white-space: normal;      /* 折り返し許可（念のため） */
    text-align: center;
    letter-spacing: -0.03em;  /* 文字間を軽く詰める（-0.02〜-0.05で調整） */
    line-height: 1.15;        /* 行間を少しだけ狭める */
    box-sizing: border-box;   /* パディング起因のはみ出し防止 */
    padding-inline: 0.8em;    /* 横パディングを少しだけ減らす（必要なら） */
    font-size: clamp(13px, 3.6vw, 16px); /* それでも厳しければ微調整 */
  }
  .course-btn--mama br{ display: inline; } /* brは有効のまま */
}



/*works CSS*/

.works{
	margin-top: 130px;	
}

@keyframes infinity-scroll-left {
from {
  transform: translateX(0);
}
  to {
  transform: translateX(-100%);
}
}

.iscrollnfinity__wrap {

  display: flex;
  overflow: hidden;
  padding-bottom: 30px;
}
.scroll-infinity__list {
  display: flex;
  list-style: none;
	padding: 0;
  margin: 0;
  width: max-content;
}
.scroll-infinity__list--left {
  animation: infinity-scroll-left 80s infinite linear 0.5s both;
}

.scroll-infinity__item>img {
  width: 640px;
  height: 480px;
  object-fit: cover; /* はみ出し対策としておすすめ */;
}

.works a{
	display: flex;
    justify-content: flex-end;
}

.background4{
	position: absolute;
	z-index: -1;
}

@media screen and (max-width: 767px) {
  .iscrollinfinity__wrap {
    height: 480px !important;
    overflow: hidden;
    position: relative;
  }

  .iscrollinfinity__wrap img {
    height: 100% !important;
    width: auto !important;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
}

.scroll-infinity__item > img {
    width: auto !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
}

/*voice CSS*/

.voice{
	margin-top: 130px;	
}

.voice-wrapper{
	max-width: 1000px;
  width: 100%;
	margin: 0 auto;
	margin-bottom: 58px;
}

.voice-img,.voice-message{
  display: inline-block;
  vertical-align:middle;
}

.voice-img{
	margin-right: 30px;
}

.voice a{
	display: flex;
    justify-content: flex-end;
}

/* SPでvoiceメッセージの不自然な改行を抑制 */
@media (max-width: 768px) {
  .voice-message br {           /* 手打ち<br>をSPでは無効化 */
    display: none;
  }
  .voice-message p {
    white-space: normal !important;  /* pre / pre-line / nowrap を上書き */
    word-break: normal;              /* break-all を打ち消す */
    overflow-wrap: break-word;       /* はみ出すときだけ改行 */
    line-height: 1.8;                /* 読みやすく */
  }
  /* もし本文に text-align: justify; があれば崩れやすいので解除 */
  .voice-message p { text-align: start; }
}
.voice-message h3{
	margin-top: 30px;
}

/* SP時：画像を必ず h3 の上に配置（両コンテナとも） */
@media (max-width: 768px){
  .voice .voice-wrapper .container{
    display: grid !important;
    grid-template-areas:
      "img"
      "msg";
    gap: 12px;
    align-items: start;
  }
  .voice .voice-wrapper .container .voice-img{
    grid-area: img;
    margin: 0 0 8px 0;
    float: none !important;
    width: 100% !important;
  }
  .voice .voice-wrapper .container .voice-message{
    grid-area: msg;
    float: none !important;
    width: 100% !important;
  }
  /* 画像のはみ出し防止＆中央寄せ */
  .voice .voice-wrapper .container .voice-img img{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  /* h3の上余白を控えめに（お好みで調整） */
  .voice .voice-wrapper .container .voice-message h3{
    margin-top: 0.25em;
  }
}


.br-pc { display: none; }
@media (min-width: 769px) { .br-pc { display: inline; } }


.background4{
	position: absolute;
	z-index: -1;
	margin-top: -100px;
}

/*safety CSS*/
.safety{
	margin-top: 130px;		
}

.safety-wrapper{
	max-width: 1000px;
  width: 100%;
	margin: 0 auto;
}

.safety-wrapper .container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← 縦位置を揃えるならこれも */
  gap: 30px; /* ← 必要なら余白調整 */
}

.safety-img,.safety-message{
  display: inline-block;
  vertical-align:middle;
}

.background5{
	position: absolute;
	z-index: -1;
	margin-top: -180px;
}

/* 親にだけ position 付与（無くてもOKだが安全） */
.voice { 
	position: relative; 
	margin-top: 130px;
}

/* ←ここを“元の形＋横だけ”で調整 */
.background5{
  position: absolute;
  z-index: -1;         /* 背景に回す */
  margin-top: -180px;  /* これはそのまま活かす */
  /* ★左にだけずらす（追加） */
  margin-left: -28px;  /* 数値を±で微調整：-40px, -60px… */
}

/* 触っていたら削除/無効化したいプロパティ */
.background5{
  /* left: ...; top: ...; transform: ...; width/height: ...; は入れない */
}



/* ===== safety：スマホで画像→文章の縦並び ===== */
@media (max-width: 768px) {
  /* voiceと同じく縦積み */
  .safety .container {
    display: flex;
    flex-direction: column;   /* 上：画像 / 下：文章 */
    gap: 16px;
    align-items: stretch;
  }

  /* 並び順の指定（画像を先、文章を後） */
  .safety .safety-img { order: 1; width: 100%; }
  .safety .safety-message { order: 2; width: 100%; }

  /* 画像は画面幅にフィット */
  .safety .safety-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 見出しの左余白などを打ち消し（あなたの全体CSSに合わせて） */
  .safety h2 { margin-left: 0; font-size: 22px; }

  /* 背景飾り画像がレイアウトを押す場合は非表示 or 背面化 */
  .safety .background5 { display: none; }          /* まずは簡単に非表示でOK */
  /* 背面に残したい場合は以下に差し替え
  .safety-wrapper { position: relative; }
  .safety .background5 {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
  }
  */
}

/* SPではsafety本文の<br>を基本は消す */
@media (max-width: 768px){
  .safety .safety-message br{ display:none; }
  /* 残したい<br>だけクラスを付けて残す */
  .safety .safety-message br.br-sp-keep{ display:inline; }
}



/*FAQ CSS*/
/* 必須 */

.faq{
	margin-top: 130px;	
	 
}

.faq-wrapper{
	max-width: 1000px;
  width: 100%;
	margin: 0 auto;
}
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.panel {
 background: linear-gradient(90deg, #fce4ec 0%, #fff8e1 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.panel-header {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f89b37;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}

.panel-header:hover {
  background-color: #e68a2d;
}

.icon {
  font-size: 20px;
  background-color: #fff;
  color: #f89b37;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: transform 0.3s;
}

.panel-header.active .icon {
  transform: rotate(45deg);
}

.panel-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-out;
  background-color: #ffffff;
  padding: 0 24px;
  border-radius: 0 0 12px 12px;
}

.panel-body {
  padding: 20px 0;
  border-top: 1px solid #eee;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}



/*access CSS*/

.access{
	margin-top: 130px;
}

.access-wrapper{
	max-width: 1000px;
  width: 100%;
	margin: 0 auto;	
}

.access p{
	margin-bottom: 80px;
}

.map {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* アスペクト比16:9。必要に応じて調整 */
  height: 0;
  overflow: hidden;
}

.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.background6{
	position: absolute;
	z-index: -1;
	margin-top: 260px;
}

/*SNS CSS*/

.sns{
	width: 1000px;
	margin: 100px auto 150px auto;
	text-align: center;
}


/* ===== SPでSNSアイコンを強制横並び ===== */
@media (max-width: 768px){
  .sns ul.top-banner{
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 !important;
    margin: 12px 0 0 !important;
    list-style: none !important;
  }
  .sns ul.top-banner > li{
    list-style: none !important;
    float: none !important;   /* もし既存でfloatされてたら解除 */
    width: auto !important;   /* もし100%を当てられてたら解除 */
    display: inline-flex !important;
  }
  .sns ul.top-banner a{
    display: inline-flex !important;
    width: auto !important;   /* aが幅100%で縦積みされるのを防止 */
  }
  .sns ul.top-banner img{
    width: 32px;              /* 好みで調整 28〜40pxなど */
    height: auto;
    display: block;
  }
}


.top-banner{
	display: flex;
	flex-wrap:wrap;
}
.top-banner li {
	width: calc(100%/3);/*←画像を横に4つ並べる場合*/
	padding:0 5px;/*←画像の左右に5pxの余白を入れる場合*/
	box-sizing:border-box;
}
.top-banner li img {
	max-width:100%; /*画像のはみだしを防ぐ*/
	height: auto; /*画像の縦横比を維持 */
}

/*footer CSS*/
.footer {
  position: relative;
  background-color: #f9a943;
  padding-top: 60px; /* ロゴ分の余白 */
  text-align: center;
}

.footer__logo{
	 position: absolute;
  top: -100px; /* 上に30pxはみ出す */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.footer_link{
	width: 800px;
	 margin: 0 auto;
  text-align: center;
}

.footer__navi {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
	margin-top: 100px;
}

.footer__navi li {
  display: block;
  margin-right: 16px;
	line-height: 30px;
}

.footer__navi li:not(:last-child) {
  margin-right: 16px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .md-flex {
    display: flex;
  }

  .md-justify-between {
    justify-content: space-between;
  }

  .copyright {
    font-size: 16px;
	  color: #636363;
  }
}

/* ===== タブレットサイズ（560px〜959px） ===== */
@media screen and (min-width: 560px) and (max-width: 959px) {
  body {
    padding: 0 10px;
  }

  .about-wrapper,
  .course-wrapper,
  .voice-wrapper,
  .safety-wrapper,
  .faq-wrapper,
  .access-wrapper,
  .sns,
  .footer_link {
    max-width: 1000px;
  width: 100%;
    flex-direction: column;
    padding: 0 10px;
  }

  .about-wrapper,
  .course-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .about-img,
  .about-contents,
  .voice-img,
  .voice-message,
  .safety-img,
  .safety-message {
    width: 100%;
    display: block;
    text-align: center;
  }

  .course-btn {
    width: 45%;
    margin: 10px auto;
  }

  h2 {
    font-size: 28px;
    margin-left: 20px;
  }

  p {
    font-size: 16px;
  }

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

  .footer__navi li {
    margin: 5px 0;
  }
}


/* ===== スマホサイズ（〜559px） ===== */
@media screen and (max-width: 559px) {
  body {
    padding: 0 5px;
  }

  h1 img {
  height: auto;       /* 縦横比を維持して高さを自動調整 */
  max-width: 200px;   /* これ以上は大きくならないよう制限 */
  position: absolute;
  top: -212px;
  left: -190px;
  z-index: 10;
  }

  h2 {
    font-size: 24px;
    margin-left: 10px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 15px;
    line-height: 1.8;
  }

  .about-wrapper,
  .course-wrapper,
  .voice-wrapper,
  .safety-wrapper,
  .faq-wrapper,
  .access-wrapper,
  .sns,
  .footer_link {
    max-width: 1000px;
  width: 100%;
    flex-direction: column;
    padding: 0 5px;
  }

  .about-img img,
  .safety-img img,
  .voice-img img {
    width: 100%;
    height: auto;
  }

  .about-contents a,
  .works a,
  .voice a {
    justify-content: center;
  }

  .course-btn {
    width: 50%;
    margin: auto auto 30px auto;
  }

  .scroll-infinity__item > img {
    width: 100%;
    height: auto;
  }

  .top-banner {
    flex-direction: column;
  }

  .top-banner li {
    width: 100%;
    margin-bottom: 10px;
  }

  .footer__logo {
    margin-bottom: 20px;
  }
	
	

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

  .footer__navi li {
    margin: 5px 0;
  }
	
	@media (max-width: 768px){
  footer .footer_link,
  footer .footer-links,
  footer .footer_menu,
  footer nav ul{
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;        /* ← ここで間隔を統一 */
    padding: 0 !important;
    margin: 0 !important;
  }
  footer .footer_link li,
  footer .footer-links li,
  footer .footer_menu li,
  footer nav ul li{
    list-style: none !important;
    margin: 0 !important;
    float: none !important;      /* もしfloat指定があれば解除 */
    width: auto !important;
  }
  footer .footer_link a,
  footer .footer-links a,
  footer .footer_menu a,
  footer nav ul a{
    display: block !important;
    line-height: 1.4 !important; /* 行高を統一 */
    padding: .4em 0 !important;
  }
  /* フッター内の手打ち <br> は無効化（高さが不揃いになる原因） */
  footer .footer_link br,
  footer .footer-links br,
  footer .footer_menu br,
  footer nav br{ display: none !important; }
}



  .contact,
  .safety-link {
    margin: 10px auto;
  }
	
	
	/* 初期状態ではどちらも非表示 */
.pc-only, .sp-only {
	display: none;
}

/* PC：768px以上 */
@media screen and (min-width: 768px) {
	.pc-only {
		display: block;
	}
}

/* SP：767px以下 */
@media screen and (max-width: 767px) {
	.sp-only {
		display: block;
	}
}
	
	
	

  .background1,
  .background2,
  .background3,
  .background4,
  .background5,
  .background6 {
    display: none;
  }

  .menu .left,
  .menu .right {
    display: none;
  }
}


/* ハンバーガーメニュー */
/* ハンバーガーアイコンをスマホ表示で表示する */

/* デフォルトで非表示（PC表示） */
.hamburger-overlay {
    display: none;
}

/* スマホ表示（768px以下）で表示 */
@media screen and (max-width: 768px) {
    .hamburger-overlay {
        display: block;
    }
}

.hamburger-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger-overlay__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all .6s;
}

.hamburger-overlay__line:nth-of-type(1) { top: 14px; }
.hamburger-overlay__line:nth-of-type(2) { top: 23px; }
.hamburger-overlay__line:nth-of-type(3) { top: 32px; }

.hamburger-overlay.active .hamburger-overlay__line {
  background-color: #fff;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f9a943;
  visibility: hidden;
  opacity: 0;
  transition: all .6s;
  z-index: 900;
}

.nav-overlay.active {
  visibility: visible;
  opacity: 1;
}

.nav-overlay__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.nav-overlay__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-overlay__item {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s;
}

.nav-overlay.active .nav-overlay__item {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active .nav-overlay__item:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-overlay__item:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.active .nav-overlay__item:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.active .nav-overlay__item:nth-child(4) { transition-delay: 0.4s; }

.nav-overlay__link {
  display: inline-block;
  padding: 20px;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: color .3s;
}

.nav-overlay__link:hover {
  color: #4a90e2;
}
@media (max-width: 768px){
  /* about と同じぐらいの横余白（20px想定） */
  .voice .container,
  .safety .container{
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  /* 画像のはみ出し予防（任意） */
  .safety .container img{
    max-width: 100%;
    height: auto;
  }
}


@media screen and (min-width:1025px){
  .btn img{display:inline-block;transform-origin:center;transition:transform .3s ease;}
  .btn:hover img{transform:rotate(5deg);}
  .btn:active img{transform:rotate(-3deg);}
}
