@charset "UTF-8";
:root {
  --text: #644133;
  --main: #db57a1;
  --bg: #ebd3d4;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-family: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body::-webkit-scrollbar {
  display: none;
}
@media screen and (min-width: 375px) {
  body {
    font-size: 1rem;
  }
}

section {
  position: relative;
}

a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
  color: currentColor;
  text-decoration: none;
  cursor: pointer;
  transition: 0.5s;
}
a:hover {
  outline-width: 0;
  text-decoration: none;
  opacity: 0.7;
}

img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-style: none;
  display: inline-block;
  -o-object-fit: contain;
     object-fit: contain;
  vertical-align: bottom;
}

strong {
  font-weight: 700;
}

.maru {
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

.c_main {
  color: var(--main);
}
.c_white {
  color: #fff;
}

/* ============= common class ================ */
.inner {
  width: calc(100% - 30px);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
@media screen and (min-width: 768px) {
  .inner {
    max-width: 980px;
  }
}

.button {
  width: 100%;
  max-width: 17.3077em;
  height: 2.1154em;
  background-color: #fff;
  border: 2px solid var(--main);
  border-radius: 3em;
  color: var(--main);
  font-size: 125%;
  font-weight: 700;
  letter-spacing: 0.075em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:hover, .button:active {
  background-color: var(--main);
  color: #fff;
  opacity: 1;
}
.button_bgmain {
  background-color: var(--main);
  color: #fff;
}
.button_bgmain:hover, .button_bgmain:active {
  background-color: #fff;
  color: var(--main);
}
@media screen and (min-width: 768px) {
  .button {
    font-size: 137.5%;
  }
}
@media screen and (min-width: 992px) {
  .button {
    font-size: 162.5%;
  }
}

#header {
  width: 100%;
  height: 65px;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
}
#header > .inner {
  width: 100%;
  max-width: 100%;
  height: 100%;
}
#header .navbar {
  height: 100%;
  padding: 0;
}
#header .navbar > .container-fluid {
  height: 100%;
  padding: 0;
  flex-wrap: nowrap;
}
#header .navbar-brand {
  color: var(--text);
  font-size: 70%;
}
#header .navbar-brand img {
  width: 85px;
}
#header .navbar-toggler {
  width: 4.375em;
  height: 100%;
  background-color: #db57a1;
  border-radius: 0;
  color: #fff;
  font-size: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#header .navbar-toggler:focus {
  box-shadow: none;
}
#header .navbar-collapse {
  width: 100%;
  background-color: #fff;
  position: fixed;
  top: 65px;
  left: 0;
	/* 以下を追加 */
  height: calc(100vh - 65px); /* ビューポートの高さからヘッダー分を引く */
  overflow-y: auto; /* 縦スクロールを有効化 */
  overflow-x: hidden; /* 横スクロールは無効 */
  -webkit-overflow-scrolling: touch; /* iOS向けの慣性スクロール */
  z-index: 99999; /* 他の要素より前面に */
}
#header .header_menu {
  width: 13em;
  height: 100%;
  font-size: 75%;
}
#header .header_menu > li {
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#header .header_menu > li::before {
  content: "";
  width: 100%;
  height: 0.35em;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
#header .header_menu > li.join {
  color: var(--text);
}
#header .header_menu > li.join::before {
  background-color: var(--text);
}
#header .header_menu > li.login {
  color: var(--main);
}
#header .header_menu > li.login::before {
  background-color: var(--main);
}
@media screen and (min-width: 768px) {
  #header {
    height: 85px;
  }
  #header .navbar-brand {
    font-size: 100%;
  }
  #header .navbar-brand img {
    width: 160px;
  }
  #header .navbar-toggler {
    width: 98px;
  }
  #header .navbar-collapse {
    top: 85px;
  }
  #header .header_menu {
    font-size: 100%;
  }
}
@media screen and (min-width: 992px) {
  #header .navbar-toggler {
    font-size: 125%;
  }
  #header .header_menu {
    font-size: 125%;
  }
}
@media screen and (min-width: 1200px) {
  #header .navbar-brand {
    font-size: 125%;
  }
}


/* ヘッダーのスクロール制御用スタイル */
#header {
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

/* スムーズなアニメーションのためのGPU高速化 */
#header.scrolling-down {
    transform: translateY(-100%);
}

#header.scrolling-up,
#header.at-top {
    transform: translateY(0);
}

/* モバイルナビゲーションが開いている時は常に表示 */
#header.navbar-open {
    transform: translateY(0) !important;
}

/* スクロール時のシャドウ効果（オプション） */
#header.scrolled {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



.nav-item {
  border-bottom: 1px dotted #a9a9a9;
  text-align: center;
}



.main {
  margin-top: 65px;
	word-break: break-all;
}
@media screen and (min-width: 768px) {
  .main {
    margin-top: 85px;
  }
}

#footer {
  padding: 0;
	padding-top:30px;
  background-color: #f2efe7;
  font-size: 112.5%;
}
#footer > .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#footer .footer_sitename {
  margin-bottom: 1.7647em;
  font-size: 130.77%;
  font-weight: 700;
  grid-gap: 1.1765em;
}
#footer .footer_sitename .otona {
  width: 3.2353em;
  margin-right: 0.5882em;
}
#footer .footer_sitename .mocha {
  width: 6.0882em;
}
#footer .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
#footer .links li:not(:last-child) {
  margin-right: 1.154em;
}
#footer .links li:not(:last-child)::after {
  content: "|";
  margin-left: 1.154em;
  color: var(--main);
}
#footer .footer_menu {
  margin-bottom: 2.3em;
}
#footer .footer_privacy {
  margin-bottom: 5em;
}
#footer .footer_privacy .title {
  margin-bottom: 0.7em;
  font-size: 111.54%;
  font-weight: 700;
}
#footer .copyright {
  width: 100%;
  height: 3em;
  background-color: var(--text);
  color: #fff;
  font-size: 76.92%;
  font-weight: 400;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
#footer .float_link {
  width: 10.2308em;
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 999;
}
@media screen and (min-width: 768px) {
  #footer {
    font-size: 125%;
  }
}
@media screen and (min-width: 992px) {
  #footer {
    font-size: 162.5%;
  }
}






/*ナビゲーションとPWA*/
:root {
	--safe-area-inset-top: env(safe-area-inset-top);
	--safe-area-inset-right: env(safe-area-inset-right);
	--safe-area-inset-bottom: env(safe-area-inset-bottom);
	--safe-area-inset-left: env(safe-area-inset-left);
}

/* PWAモードの時のみ適用 */
@media (display-mode: standalone) {
	body {
		padding-top: var(--safe-area-inset-top);
		padding-bottom: var(--safe-area-inset-bottom);
	}
	
	/* ブラウザっぽさを消す */
	a {
		-webkit-tap-highlight-color: transparent;
		-webkit-touch-callout: none;
	}
	
	/* 長押しメニューを無効化 */
	img, a {
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		user-select: none;
	}
	
	/* オーバースクロールを無効化 */
	body {
		overscroll-behavior: contain;
	}
}

/* ナビゲーションメニューのスタイル */
.navbar-collapse .navbar-nav {
	padding: 1rem 0;
}

.navbar-collapse .nav-item {
	border-bottom: 1px solid rgba(112, 56, 53, 0.1);
	transition: all 0.3s ease;
}

.navbar-collapse .nav-item:last-child {
	border-bottom: none;
}

.navbar-collapse .nav-link {
	display: flex;
	align-items: center;
	padding: 1rem 1.5rem;
	color: var(--text);
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.navbar-collapse .nav-link:hover {
	background-color: rgba(219, 87, 161, 0.1);
	color: var(--main);
	padding-left: 2rem;
}

.navbar-collapse .nav-link i {
	font-size: 1.25rem;
	margin-right: 1rem;
	color: var(--main);
	transition: transform 0.3s ease;
}

.navbar-collapse .nav-link:hover i {
	transform: scale(1.2);
}

/* ログアウトリンクのスタイル */
.nav-item-logout .nav-link {
	color: #dc3545;
}

.nav-item-logout .nav-link i {
	color: #dc3545;
}

.nav-item-logout .nav-link:hover {
	background-color: rgba(220, 53, 69, 0.1);
	color: #dc3545;
}

/* お問い合わせ（外部リンク）のスタイル */
.nav-item-external .nav-link::after {
	content: '\f1c5';
	font-family: 'bootstrap-icons';
	font-size: 0.75rem;
	margin-left: 0.5rem;
	opacity: 0.5;
}

/* ユーザー情報表示のスタイル */
.navbar-user-info {
	background-color: rgba(112, 56, 53, 0.05);
	padding: 1rem 1.5rem;
	margin: 1rem 0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	color: var(--text);
}

.navbar-user-info i {
	font-size: 2rem;
	margin-right: 1rem;
	color: var(--main);
}

.navbar-user-info .user-details {
	flex: 1;
}

.navbar-user-info .user-name {
	font-weight: 700;
	color: var(--text);
	margin-bottom: 0.25rem;
}

.navbar-user-info .user-status {
	font-size: 0.875rem;
	color: #6c757d;
}

/* メニューセクションのスタイル */
.menu-section {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid rgba(112, 56, 53, 0.1);
}

.menu-section-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0 1.5rem;
	margin-bottom: 0.5rem;
}

/* アニメーション 
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.navbar-collapse.show .nav-item {
	animation: slideIn 0.3s ease forwards;
}

.navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.05s; }
.navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.1s; }
.navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.15s; }
.navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.2s; }
.navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.25s; }
.navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.3s; }
.navbar-collapse.show .nav-item:nth-child(7) { animation-delay: 0.35s; }

*/



/* ヘッダーの24時間以内活動インジケーター */
.header-activity-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*animation: pulse 2s infinite;*/
  z-index: 10;
}

.header-activity-indicator img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ナビゲーションメニュー内の活動インジケーター */
.nav-activity-indicator {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*animation: pulse 2s infinite;*/
}

.nav-activity-indicator img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* メインヘッダーのマイページリンク調整 */
.mypage-link {
  position: relative;
  overflow: visible !important;
}

.mypage-link a {
  position: relative;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .header-activity-indicator {
    width: 30px;
    height: 30px;
    top: -2em;
    right: -6px;
  }
}

@media screen and (min-width: 768px) {
  .header-activity-indicator {
    width: 36px;
    height: 36px;
    top: -1.5em;
    right: -10px;
  }
}

@media screen and (min-width: 992px) {
  .header-activity-indicator {
    width: 40px;
    height: 40px;
    top: -1.5em;
    right: -12px;
  }
}

/* アニメーション（既存のものを流用） */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}


/* ============= 下部固定ナビゲーション ================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom); /* iOS セーフエリア対応 */
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 600px;
  margin: 0 auto;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.bottom-nav-item:hover {
  color: var(--main);
  text-decoration: none;
  opacity: 1;
}

.bottom-nav-item.active {
  color: var(--main);
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--main);
  border-radius: 0 0 3px 3px;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.bottom-nav-item span {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

/* フッターの調整 */
#footer {
  margin-bottom: 60px; /* 下部ナビゲーションの高さ分 */
}


/* レスポンシブ対応 */
@media screen and (min-width: 768px) {
  .bottom-nav-inner {
    height: 70px;
  }
  
  .bottom-nav-item svg {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }
  
  .bottom-nav-item span {
    font-size: 11px;
  }
  
  .main {
    padding-bottom: 70px;
  }
  
  #footer {
    margin-bottom: 70px;
  }
  
  #footer .float_link {
    bottom: 90px;
  }
}

@media screen and (min-width: 992px) {
  .bottom-nav {
    display: none; /* PCサイズでは非表示 */
  }
  
  .main {
    padding-bottom: 0; /* 元に戻す */
  }
  
  #footer {
    margin-bottom: 0; /* 元に戻す */
  }
  
  #footer .float_link {
    bottom: 20px; /* 元に戻す */
  }
  
  .pwa-install-button {
    bottom: 80px; /* 元に戻す */
  }
}

/* タブレット向けの調整 */
@media screen and (min-width: 600px) and (max-width: 991px) {
  .bottom-nav-item span {
    font-size: 12px;
  }
}

/* PWAモードでの調整 */
@media (display-mode: standalone) {
  .bottom-nav {
    padding-bottom: calc(env(safe-area-inset-bottom) + 10px);
  }
}

/* アニメーション */
.bottom-nav-item {
  position: relative;
  overflow: hidden;
}

.bottom-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 100%;
  background-color: rgba(219, 87, 161, 0.1);
  transition: transform 0.3s ease;
  transform-origin: center;
  z-index: -1;
}

.bottom-nav-item:active::after {
  transform: translateX(-50%) scaleX(1);
}

/* アイコンのアニメーション */
.bottom-nav-item:active svg {
  animation: bounce 0.3s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
