@charset "utf-8";

:root {
--main-color: #81CB9E;
--sub-color: #B9E3C8;
--background-color: #EDF9F2;
--text-color: #4D4D4D;
--border-color: #ddd;
--modal-color: rgba(0,0,0,0.4);
}

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

body {
	background: white;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	padding-top: 70px;
	padding-bottom: 70px;
}



.screen {
	display: none;
}
.screen.active {
	display: block;
}



.top-area {
	background: white;
	margin: 0;
	width: 100%;
	paddind: 80px 0 24px;
	border-bottom: 1px solid var(--border-color);
}
header {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	margin: 0;
	background: white;
	border-bottom: 1px solid var(--border-color);
	transition: transform 0.3s ease;
	z-index: 1000;
}
.setting-button {
	position: absolute;
	left: 16px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 48px;
	width: 48px;
	flex-shrink: 0;
	border: none;
	cursor: pointer;
	background: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	top: 50%;
	transform: translateY(-50%);
}
.setting-button svg {
	height: 32px;
	width: 32px;
	fill: var(--main-color);
}
/* 背景 */
.menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.35);
	opacity: 0;
	pointer-events: none;
	transition: .25s;
	z-index: 2100;
}

.menu-overlay.active {
	opacity: 1;
	pointer-events: auto;
}
.side-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 260px;
	height: 100%;
	background: white;
	box-shadow: 4px 0 20px rgba(0,0,0,.12);
	transform: translateX(-100%);
	transition: transform .3s ease;
	z-index: 2200;
	padding: 32px 20px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.side-menu.active {
	transform: translateX(0);
}
.close-menu {
	align-self: flex-end;
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.menu-item {
	background: #F6FBF8;
	border: none;
	border-radius: 18px;
	padding: 14px 18px;
	text-align: left;
	font-size: 12px;
	cursor: pointer;
	transition: .2s;
	-webkit-tap-highlight-color: transparent;
}
.menu-item:hover {
	background: #EAF6EF;
}

.title {
	padding: 20px;
	max-width: 500px;
	margin: 0 auto;
	text-align: center;
	font-size: 22px;
	font-weight: 550;
	letter-spacing: 0.03em;
	color: var(--text-color);
}
.profile-area {
	padding: 32px 24px 0px;
	border-bottom: 1px solid var(--border-color);
	text-align: center;
	background-color: white;
}
.profile-icon-wrapper {
	width: 110px;
	height: 110px;
	margin: 0 auto;
}
.profile-icon {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto;
	border: 2px solid var(--border-color);
	display: block;
}
#profileName {
	margin: 0 auto 10px;
	font-size: 20px;
	font-weight: 1000;
	color: var(--text-color);
}
#profileBio {
	white-space: pre-wrap;
	margin: 0 auto 14px;
	width: 70%;
	font-size: 14px;
	color: var(--text-color);
}
.profile-btn-area{
	display: flex;
	margin: 0;
	padding: 0;
	gap: 10px;
	justify-content: center;
}
.profile-btn-area.single {
	justify-content: center;
}
.profile-btn-area.duo{
	justify-content: space-between;
}
.profile-btn {
	display: block;
	box-sizing: border-box;
	margin: 0 auto 14px;
	padding: 8px 16px;
	background: var(--main-color);
	color: white;
	border: none;
	border-radius: 10px;
	text-align: center;
	font-size:14px;
	letter-spacing: 0.1em;
	text-indent: 0.2em;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	transition:.25s;
}
.profile-btn:hover {
  box-shadow:0 3px 8px rgba(120,80,180,.12);
  transform:translateY(-1px);
}
.input-wrapper {
	max-height: 0;
	opacity: 0.5;
	overflow: hidden;
	transition: 0.7s ease;
	background-color: white;
}
.input-wrapper.active {
	max-height: 600px;
	opacity: 1;
}

.input-area {
	display: block;
	box-sizing: border-box;
	width: 80%;
	height: 130px;
	margin: 16px auto 0;
	border: 1px solid var(--border-color);
	border-radius: 10px;
	padding: 16px;
	font-size: 16px;
}
.file-upload-area{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-top:14px;
}

#postImageInput{
  display:none;
}
.file-upload-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  border-radius:999px;
  background: var(--background-color);
  border:1px solid var(--sub-color);
  color: var(--text-color);
  font-size:12px;
  cursor:pointer;
  transition:.25s;
}
.file-upload-btn:hover {
  background: #DDF3E6;
  box-shadow:0 3px 8px rgba(120,80,180,.12);
  transform:translateY(-1px);
}

.add-button {
	display: block;
	box-sizing: border-box;
	margin: 16px auto 10px;
	padding: 12px 20px;
	background: #B3E0C5;
	color: white;
	border: none;
	border-radius: 14px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 16px;
	letter-spacing: 0.2em;
	text-indent: 0.2em;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
	transition: 0.1s;
}
.add-button.active {
	background: var(--main-color);
 	transform: scale(0.9);
 	box-shadow: 0px 3px 5px lightgray;
}
.sort-area {
	text-align: center;
}
.sort-select {
	padding: 6px 24px;
	margin: 10px auto;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	background: white;
	font-size: 12px;
	cursor: pointer;
}



.post {
 	display: block;
	box-sizing: border-box;
	width: 85%;
 	background: white;
 	border: 1px solid var(--border-color);
 	margin: 16px auto 0;
 	padding: 16px 24px 6px;
 	border-radius: 10px;
 }
.post p {
 	white-space: pre-wrap;
 	word-break: break-word;
 	font-size: 14px;
 	line-height: 1.4;
	letter-spacing: 0.04em;
 	color: var(--text-color);
 	margin: 0 0 4px;
}
small {
	display: block;
	font-size: 10px;
	line-height: 1.4;
	color: gray;
	margin: 0;
}
.post-image {
	width: 100%;
	margin-top: 8px;
	border-radius: 10px;
}
.send-btn {
 	background: var(--main-color);
	color: white;
	border: none;	
	border-radius: 14px;
	padding: 8px 16px;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	float: right;
}
#sendTextarea {
	width: 100%;
	height: 100px;
	padding: 12px;
	box-sizing: border-box;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 10px;
	resize: none;
}
#sendMessageBtn {
	background: var(--main-color);
	color: white;
	border: none;	
	border-radius: 14px;
	padding: 8px 16px;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	margin-top: 12px;
}


.modal.active {
	display: flex;
}
.modal-content {
	white-space: pre-wrap;
 	word-break: break-word;
	width: 85%;
	font-size: 16px;
	background: white;
	border-radius: 16px;
	padding: 24px;
}
.close-btn {
	background: none;
	border: none;
	color: var(--main-color);
	font-size: 36px;
	float: right;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.modal-buttons {
	margin-top: 24px;
	display: flex;
	gap: 12px;
}
.modal-button {
	padding: 12px 24px;
	border-radius: 16%;
	font-size: 10px;
	cursor: pointer;
	outline: none;
	border: none;
	-webkit-tap-highlight-color: transparent;
}
.modal {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--modal-color);
	justify-content: center;
	align-items: center;
	z-index: 2000;
}
#editTextarea {
	width: 100%;
	height: 200px;
	padding: 12px;
	box-sizing: border-box;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 10px;
	resize: none;
}



.share-text {
	font-size: 12px;
	color: var(--text-color);
}
.share-x-btn{
	width:100%;
	padding:14px;
	margin: 0;
	border:none;
	border-radius:14px;
	background:#EDF9F2;
	border:1px solid #B9E3C8;
	color: var(--text-color);
	font-size:14px;
	cursor:pointer;
}
.share-url-area{
	display:flex;
	gap:10px;
	margin-top:12px;
}
#shareUrlInput{
	flex:1;
	padding:12px;
	border:1px solid #ddd;
	border-radius:12px;
	font-size:13px;
	background:#fafafa;
}
#copyUrlBtn{
	padding:12px 16px;
	border:none;
	border-radius:12px;
	background:var(--main-color);
	color:white;
	cursor:pointer;
}


.reply-target {
	display: block;
	box-sizing: border-box;
	width: 85%;
	background: white;
	border: 1px solid var(--border-color);
	margin: 16px auto 0;
	padding: 16px 24px 6px;
	border-radius: 10px;
	font-size: 14px;
}



footer {
	box-sizing: border-box;
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 70px;
	background: white;
	padding: 0 40px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: space-around;
	align-items: center;
	transition: transform 0.3s ease;
	z-index: 1000;
}
.hidden {
	display: none;
}
header.hide {
	transform: translateY(-100%);
}
footer.hide {
	transform: translateY(100%);
}
footer.hidden {
	display: none;
}
.footer-btn {
	background: none;
	border: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}
.footer-btn svg {
	display: block;
	height: 32px;
	width: 32px;
	flex-shrink: 0;
	cursor: pointer;
	fill: var(--main-color);
	outline: none;
	border: none;
	-webkit-tap-highlight-color: transparent;
}
.footer-btn:focus {
	outline: none;
}
.footer-btn:focus-visible {
	outline: none;
}

#postScreen.active{
	display: flex;
	padding: 24px;
	flex-direction: column;
	height: 100%;
}
.inbox-area {
	flex: 1;
	padding: 24px;
	overflow-y: auto;
}
.inbox-message {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: .2s;
}

.inbox-message:active {
  transform: scale(.98);
}

.inbox-preview {
  font-size: 15px;
  line-height: 1.5;
  color: #444;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reply-modal-message {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
  margin: 20px 0;
}

.reply-target {
  background:
    rgba(129,203,158,.08);

  border:
    1px solid
    rgba(129,203,158,.3);

  border-radius: 14px;

  padding: 16px;
  margin-top: 18px;
}

.reply-target h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-color);
}
.deleted-label {
  display: inline-block;
  background:rgba(255,120,120,.08);
  color:#cc5f5f;
	text-align: center;
  border:1px solid rgba(255,120,120,.25);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
  font-size: 12px;
}




#profileEditScreen.active {
	display: block;
	padding: 24px;
}
.profile-edit-title {
	margin-top: 16px;
	text-align: center;
	color: var(--text-color);
}
.profile-edit-area {
	max-width: 420px;
	margin: 24px auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
#editProfileIcon {
	width: 200px;
	height: 200px;
	margin: auto;
	border-radius: 50%;
	border: 2px solid var(--border-color);
}
.profile-name-input {
	width: 100%;
	height: 30px;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 16px;
	resize: none;
}
.profile-bio-input {
	width: 100%;
	height: 200px;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 16px;
	resize: none;
}
#saveProfileBtn {
	padding: 12px;
	border: none;
	border-radius: 12px;
	background: var(--main-color);
	color: white;
	font-size: 15px;
	cursor: pointer;
}
.counter{
	text-align:right;
	font-size:12px;
	color: var(--text-color);
	margin-top:6px;
	transition:.2s;
}
.counter.limit{
	color:#E56B6B;
}
.input-error{
	border:2px solid #E56B6B !important;
}



#toast {
	position:fixed;
	left:50%;
	top:100px;
	transform:translateX(-50%) translateY(20px);
	background:#EDF9F2;
	color: var(--text-color);
	padding:14px 18px;
	border-radius:12px;
	font-size:12px;
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
	opacity:0;
	pointer-events:none;
	transition:
	opacity .25s,
	transform .3s;
	z-index:3000;
}
#toast.show {
	opacity:1;
	transform:
	translateX(-50%)
	translateY(0);
}



.empty-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.empty-icon {
	width: 96px;
	height: 96px;
	display: block;
	margin: 40px auto 0;
}
.empty-message {
	white-space: pre-line;
	color: gray;
	margin: 100px auto;
	justify-content: center;
}



.still-yet {
	flex-direction: column;

	justify-content: center;
}
.screen.active.still-yet {
	display: flex;
}
.yet-i {
	fill: var(--main-color);
	width: 160px;
	height: 160px;
	display: block;
	margin: 250px auto 0;
}
.yet-m {
	font-size: 16px;
	width: 80%;
	white-space: pre-line;
	color: var(--text-color);
	margin: 30px auto 0;
	text-align: center;
}
.yet-m2 {
	font-size: 14px;
	width: 80%;
	color: var(--text-color);
	margin: 20px auto;
	text-align: center;
}
