/* ユーザートップサムネイル */
.user-thumbnail {
  width: 100%;
  height: 200px;
}

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

/* ユーザープロフィール */
.profile {
  display: flex;
  align-items: center;
  max-width: 1200px;
  padding: 30px 20px;
  margin: 0 auto;
}

.profile-icon {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin-right: 20px;
}

.profile-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.profile-links img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.follow-button {
  margin-left: auto;
}

.follow-button button {
  padding: 5px 10px;
  font-size: 16px;
  background-color: #0099ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .profile {
    padding: 10px 20px;
  }

  .profile-icon {
    width: 65px;
    height: 65px;
    margin-right: 10px;
    margin-bottom: 20px;
  }

  .profile-info h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .profile-links img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }

  .follow-button button {
    font-size: 12px;
  }
}

/* ナビバー */
.profile-navbar {
  display: flex;
  padding: 0 0 20px 0;
  padding-left: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-navbar a {
  color: black;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
  margin-right: 30px;
}

.profile-navbar a:hover {
  color: #0099ff;
}

.profile-navbar a.active {
  color: #0099ff;
  border-bottom: 3px solid #0099ff;
}

@media (max-width: 600px) {
  .profile-navbar a {
    font-size: 12px;
    margin-right: 20px;
  }
}

/* プロフィールホーム */

.profile-home {
  display: block;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.profile-readmore{
  position: relative;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #CCC;
}

.profile-readmore-content{
  position: relative;
  overflow: hidden;
  height: 300px;
}
.profile-readmore-content::before {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  content: "";
  height: 50px;
  background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.8) 50%, #fff 100%);
  background: linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.8) 50%, #fff 100%);
}

/* 続きを読むボタン */
.profile-readmore-label{
  display: table;
  bottom: 5px;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  margin: 0 auto;
  z-index: 2;
  padding: 0 10px;
  background-color: #0099ff;
  border-radius: 10px;
  color: #FFF;
}
.profile-readmore-label:before{
  content: '続きを読む';
}

.profile-readmore-check{
  display: none;
}

.profile-readmore-check:checked ~ .profile-readmore-label{
  position: static;
  transform: translateX(0);
  -webkit-transform: translateX(0);
  /* 「続きを読む」を押した後、元に戻す必要がない場合は、上のオプションを消してこの1行だけにする */
  /* display: none; */
}
.profile-readmore-check:checked ~ .profile-readmore-label:before{
  content: '閉じる';
}

.profile-readmore-check:checked ~ .profile-readmore-content{
  height: auto;
}

.profile-readmore-check:checked ~ .profile-readmore-content::before {
  display: none;
}

@media (max-width: 780px) {
  .profile-home {
    display: block;
  }
}

/* プロフィール新着投稿 */
.profile-posts{
  padding: 5px 10px;
  border: 1px solid #ccc;
}

.profile-ipselect-wrap{
  display: flex;
}

.profile-ipselect {
	overflow: hidden;
	width: 150px;
  margin-right: 5px;
}
.profile-ipselect select {
	width: 100%;
	padding-right: 1em;
	cursor: pointer;
	text-indent: 0.01px;
	text-overflow: ellipsis;
	border: none;
	outline: none;
	background: transparent;
	background-image: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.profile-ipselect select::-ms-expand {
    display: none;
}
.profile-ipselect.cpip {
	position: relative;
	border: 1px solid #ccc;
  border-radius: 5px;
	background: #ffffff;
}
.profile-ipselect.cpip::before {
	position: absolute;
	top: 0.8em;
	right: 0.8em;
	width: 0;
	height: 0;
	padding: 0;
	content: '';
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #000000;
	pointer-events: none;
}
.profile-ipselect.cpip select {
	padding: 8px 38px 8px 8px;
	color: #000000;
}


.new-article-t-center {
  display: flex;
  justify-content: center;
}

.new-article-t-center-element {
  margin: 0px;
}

*,
:after,
:before {
  background-repeat: no-repeat;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
:after,
:before {
  text-decoration: inherit;
  vertical-align: inherit;
}
* {
  padding: 0;
  margin: 0;
}
main {
  display: block;
}
a {
  background-color: transparent;
}
a:active,
a:hover {
  outline-width: 0;
}
input {
  border-radius: 0;
}
button,
input {
  font: inherit;
}
button {
  overflow: visible;
}
button {
  text-transform: none;
}
[type="submit"],
button {
  cursor: pointer;
  color: inherit;
}
[type="submit"]::-moz-focus-inner,
button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
[type="submit"]::-moz-focus-inner,
button:-moz-focusring {
  outline: 1px dotted ButtonText;
}
[type="submit"],
button {
  -webkit-appearance: button;
}
button,
input {
  background-color: transparent;
  border-style: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  color: inherit;
  font: inherit;
}
img {
  border-style: none;
}
@media screen {
  [hidden~="screen"]:not(:active):not(:focus):not(:target) {
    position: absolute !important;
    clip: rect(0 0 0 0) !important;
  }
}

@media screen and (min-width: 768px) {
  body {
    font-size: 1.4rem;
  }
}
* {
  word-break: break-word;
  outline: 0;
}
a {
  text-decoration: none;
  color: #07b;
}
a:hover {
  color: #00649c;
  text-decoration: underline;
  cursor: pointer;
}
.cardbox {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0;
  height: 100%;
}
.cardbox .cardbox-item {
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  width: 100%;
}
.cardbox .cardbox-item:last-of-type {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
@media screen and (min-width: 768px) {
  .cardbox .cardbox-item {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    overflow: hidden;
  }
}
.cardbox.is-multiCell {
  height: auto;
}
@media screen and (min-width: 768px) {
  .cardbox.is-multiCell .cardbox-item {
    border: 1px solid rgba(0, 0, 0, 0.12);
    margin: 0 0px 12px 12px;
    width: calc(33% - 12px);
  }
}
@media screen and (min-width: 960px) {
  .cardbox.is-multiCell .cardbox-item {
    margin: 0 0px 12px 12px;
    width: calc(33% - 12px);
  }
}
@media screen and (min-width: 768px) {
  .cardbox.is-multiCell.is-2line .cardbox-item {
    display: block;
  }
}
.card-article {
  padding: 16px;
  background-color: #fff;
  display: grid;
  grid-template-rows: -webkit-min-content 1fr -webkit-min-content;
  grid-template-rows: min-content 1fr min-content;
  grid-template-columns: 36px 1fr;
  grid-template-areas: "header header" "content content" "nav nav";
  gap: 8px;
  height: 100%;
}
@media screen and (min-width: 768px) {
  .card-article {
    grid-template-areas: "header header" "content content" "nav nav";
    padding: 16px 12px;
    border-radius: 5px;
    height: 100%;
  }
}
.card-article .card-header {
  grid-area: header;
}
.card-article .card-content {
  grid-area: content;
}
.card-link {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}
.thumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
}
.thumbnail::before {
  display: block;
  width: 100%;
  padding-top: 100%;
  content: "";
  background-color: #e1e1e1;
}
.thumbnail.article-thumbnail {
  border-radius: 7px;
}
.thumbnail.article-thumbnail::before {
  padding-top: 56.25%;
}
.thumbnail .thumbnail-image {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 100%;
  -webkit-transition: 0.1s linear;
  transition: 0.1s linear;
}
.thumbnail .thumbnail-image:hover {
  opacity: 0.6;
}
.article-date {
  color: rgba(0, 0, 0, 0.64);
  font-size: 1.2rem;
}
.article-title {
  line-height: 1.5;
}
.article-title.article-3size {
  font-size: 1.4rem;
}
.article-title.articlecard-element {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 8px;
  height: 3em;
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}
.article-box {
  padding: 16px;
}
.article-box.article-box-top {
  padding: 0;
}
@media screen and (min-width: 768px) {
  .article-box.article-box-top {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}


@media screen and (max-width: 768px) {
  .cardbox .cardbox-item {
    display: block; /* すべてのカードを表示 */
    margin: 10px;
  }
}

@media screen and (max-width: 768px) {
  .cardbox .cardbox-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }
}

.only-plan{
  padding: 5px 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.only-plan p{
  font-size: 12px;
  color: #3b3b3b;
  
}

.only-plan button{
  display: block;
  margin: 5px auto;
  z-index: 2;
  padding: 0 10px;
  background-color: #ff8801;
  border-radius: 10px;
  color: #FFF;
}

.open-plan p{
  font-size: 12px;
  color: #3b3b3b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 600px) {

  .only-plan button{
    font-size: 12px;
  }
}

.profile-morep-button{
  display: block;
  margin: 0 auto;
  z-index: 2;
  padding: 0 10px;
  background-color: #0099ff;
  border-radius: 10px;
  color: #FFF;
}

