@charset "utf-8";

/* 文字がはみ出さないよう設定 */
.titles, .company, .detailTxt p a{
  word-wrap: break-word;
}



/* 全体サイズ */
#detailInfo{
  margin-left: auto;
  margin-right: auto;
}



/* 画像 */
.contImg img{
  width: 100%;
}


/* 企業情報 */
#compDisp{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.compImg{
  font-weight: 700;
	color: #0088d0;
}
.compImg a{
  display: inline-block;
  height: auto;
  transition: all 0.2s;
}
.compImg a:hover{ transform: translateY(-3px); }
/* 開設日 */
.company, .openDay{
  width: fit-content;
}
.company{
  display: inline-block;
  width: 100%;
  color: #fff;
  background: #555;
}
#compImgId{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#goodWrap{
  display: flex;
  justify-content: space-between;
}

/* タグ */
.detailTags{
  display: flex;
  flex-wrap: wrap;
}

/* 詳細情報 */
.detailTxt{
  max-width: 100%;
}
.detailTxt p{
  display: flex;
}
.detailTxt p span:first-child{
  display: inline-block;
}
.pageLink{
  text-decoration: underline;
  color: #2f94ca;
  transition: all 0.2s;
}
.pageLink:hover{
  color: #f46c1d;
}
.detailTxt p:nth-child(2) span:last-child{
  width: fit-content;
}
#infoTo{
  text-align: right;
}



/* コメント */
#commentWrap{
  margin-left: auto;
  margin-right: auto;
}
.comment{
  display: flex;
}
.comment:first-child{
  margin-top: 0 !important;
}
.commentArea{
  position: relative;
  background: #D5F4EA;
}
.commentArea::before{
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
}
.companyName{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-weight: 700;
}
.commentDay{
  text-align: right;
}
/* コメントなしの場合 */
#nothingComment{
  text-align: center;
  color: #555;
}
#cmtBtn{
  border-radius: 1000px;
  color: #fff;
  background: #2f94ca;
}
/* ボタンのホバーアニメーション */
#cmtBtn, #cmtForm input[type="submit"]{
  transition: all 0.2s;
}
#cmtBtn:hover, #cmtForm input[type="submit"]:hover{
  background: #163849;
}

/* コメント追加のポップアップ */
#cmtBack, #cmtPop{
  display: none;
  position: fixed;
}
#cmtBack{
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00000088;
  z-index: 9998;
}
#cmtPop{
  background: #eaeaea;
  z-index: 9999;
}
#cmtCheck:checked ~ #cmtBack, #cmtCheck:checked ~ #cmtPop{
  display: block;
}
#cmtForm{
  display: flex;
  flex-direction: column;
}
#cmtForm textarea{
  overflow-y: scroll;
  resize: none;
  background: #f8f8f8;
}
#cmtTitle{
  display: flex;
  justify-content: space-between;
}
#cmtTitle div{
  display: flex;
  align-items: center;
}
#cmtTitle div p:last-child{
  color: #555;
}
#cmtCross{
  cursor: pointer;
}
#cmtForm input[type="submit"]{
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1000px;
  color: #fff;
  background: #2f94ca;
}



/* 各パーツで文字が横幅100%を超えないよう設定 */
.detailTxt p:first-child, .detailTxt p:last-child a, .companyName, .commentTxt{
  word-break: break-all;
}





/* PCサイズ */
@media screen and (min-width: 1025px){

  /* 全体サイズ */
  html{
    height: auto;
  }
  main{
    min-height: calc(100vh - 208px);
    margin-bottom: 50px;
  }
  #detailInfo{
    width: 80%;
  }

  

  .contentsWrap{
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }
  .contentsWrap > div:first-child{
    width: fit-content;
    max-width: 40%;
  }
  .contentsWrap > div:last-child{
    max-width: 100%;
    width: 100%;
  }

  .detailWrap{
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 10px;
    padding-left: 30px;
    width: 100%;
  }
  .titles{
    font-size: 1.75rem;
  }
  /* 企業情報 */
  #compDisp{
    margin-bottom: 10px;
  }
  .compImg{
    font-size: 1.8rem;
  }
  .compImg img:not(.mediasLogo, .goolightLogo){
    max-height: 55px;
  }
  /* 特定のロゴを例外的に大きめに表示 */
  .mediasLogo{ /* メディアス */ max-height: 85px; }
  .goolightLogo{ /* goolight */ max-height: 75px; }
  .compImg a:nth-child(2){
    margin-left: 10px;
  }

  /* 提供会社 */
  .company{
    padding: 7px 10px;
  }
  #compImgId{
    row-gap: 20px;
    column-gap: 20px;
  }

  /* タグ */
  .detailTags{
    row-gap: 5px;
    column-gap: 5px;
    max-width: 100%;
    width: 100%;
    padding-right: 30px;
  }
  .detailTags input{
    padding: 5px 10px;
  }

  /* 詳細情報 */
  .detailTxt{
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin: 30px auto 0 auto;
  }
  .detailTxt p, #infoTo{
    font-size: 1.1rem;
  }
  .detailTxt p:not(:first-child), #infoTo{
    margin-top: 30px;
  }
  .detailTxt p:first-child span:last-child{
    line-height: 1.5rem;
  }
  .detailTxt p:last-child a{
    max-width: calc(100% - 112px);
  }
  .detailTxt p:last-child a span{
    margin-left: 3px;
  }
  .detailTxt p:last-child a span i{
    font-size: 0.9rem;
  }
  .detailTxt p span:first-child{
    width: 123.22px;
  }
  .detailTxt p span:last-child:not(.metaDetails){
    max-width: calc(100% - 123.22px);
    padding-left: 20px;
  }
  .metaDetails{
    padding-left: 7px;
  }



  /* コメント */
  #commentWrap{
    margin-top: 100px;
  }
  .comment{
    margin-top: 20px;
  }
  .companyName{
    width: 15%;
  }
  .commentArea{
    width: 85%;
    margin-left: 25px;
    padding: 20px;
    border-radius: 5px;
  }
  .commentArea::before{
    border-right: 15px solid #D5F4EA;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }
  .commentTxt{
    line-height: 1.3rem;
  }
  .commentDay{
    margin-top: 5px;
    font-size: 0.9rem;
  }
  
  .goodIcon{
    font-size: 1.1rem;
  }
  .goodIcon button{
    padding: 6px 20px;
  }
  .goodIcon button i{
    margin-right: 3px;
    font-size: 1rem;
  }
  /* コメントなしの場合 */
  #nothingComment{
    font-size: 1.2rem;
  }
  #cmtBtn{
    padding: 6px 20px 10px 20px;
  }

  /* コメント追加のポップアップ */
  #cmtPop{
    top: 50%;
    left: 50%;
    width: 70%;
    height: 60%;
    padding: 30px;
    transform: translate(-50%, -50%);
  }
  #cmtForm{
    height: calc(100% - 30px);
  }
  #cmtTitle div p:first-child{
    font-size: 1.2rem;
  }
  #cmtTitle div p:last-child{
    margin-left: 20px;
    font-size: 1.1rem;
  }
  #cmtCross{
    font-size: 1.6rem;
  }
  #cmtForm textarea{
    height: 80%;
    margin-top: 20px;
    padding: 10px;
    line-height: 1.5rem;
  }
  #cmtForm input[type="submit"]{
    margin-top: 10px;
    padding: 10px 50px;
    font-size: 1.15rem;
  }
}





/* スマホ・タブレットサイズ */
@media screen and (max-width: 1024px){

  /* 微調整 */
  html{
    padding: 30px 30px 0 30px;
  }
  main{
    min-height: calc(100vh - 245px);
    padding-bottom: 50px;
  }



  /* 詳細情報 */
  .contentsWrap{
    /* width: 75%; */
    margin: 0 auto;
  }
  .detailWrap{
    position: relative;
    padding-top: 56px;
  }

  #compDisp{
    justify-content: center;
    margin-bottom: 30px;
  }
	.compImg{
    margin-right: 10px;
  }
	.compImg a{
		display: block;
    height: fit-content;
	}
	.compImg a img{
		height: 55px;
	}

  .titles{
    margin-bottom: 20px;
    font-size: 1.7rem;
    text-align: center;
  }
  .offer{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    margin-top: 10px;
  }
  .detailTags{
    justify-content: center;
    margin-top: 10px;
    column-gap: 7px;
    row-gap: 7px;
  }
  .detailTags input, .company{
    padding: 5px 10px;
    font-size: 1.2rem;
  }
  .openDay{
    font-size: 1.3rem;
  }

  .goodIcon{
    position: absolute;
    top: 10px;
    right: 0;
  }
  .goodIcon button{
    padding: 7px 17px;
  }
  .goodIcon button i{
    margin-right: 3px;
  }
  .goodIcon button p{
    font-size: 1.1rem;
  }
  .detailTxt{
    /* width: fit-content; */
    margin-top: 30px;
  }
  .detailTxt p{
    flex-direction: column;
    width: fit-content;
  }
  .detailTxt p:not(:first-child){
    margin-top: 30px;
  }
  .detailTxt p span{
    font-size: 1.2rem;
  }
  .detailTxt p span:first-child{
    margin-bottom: 2px;
  }
  .detailTxt p span:last-child{
    line-height: 1.8rem;
  }

  #infoTo{
    margin-top: 30px;
  }



  /* コメント */
  #commentWrap{
    margin-top: 100px;
  }
  .comment{
    margin-top: 15px;
  }
  .companyName{
    width: 15%;
  }
  .commentArea{
    width: 85%;
    margin-left: 20px;
    padding: 18px;
    border-radius: 3px;
  }
  .commentArea::before{
    border-right: 15px solid #D5F4EA;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }
  .commentDay{
    margin-top: 10px;
    font-size: 0.9rem;
  }
  #cmtBtn{
    padding: 5px 20px;
    font-size: 1.1rem;
  }

  /* コメント追加用のポップアップ表示 */
  #cmtPop{
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 40%;
    padding: 20px;
  }
  #cmtCross{
    font-size: 1.7rem;
  }
  #cmtTitle div p:first-child{
    font-size: 1.2rem;
  }
  #cmtTitle div p:last-child{
    margin-left: 15px;
  }
  #cmtForm{
    height: calc(100% - 31.28px);
  }
  #cmtForm textarea{
    height: 100%;
    margin-top: 10px;
    border: 10px solid #fff;
    font-size: 0.9rem;
    line-height: 1.5rem;
  }
  #cmtForm input[type='submit']{
    margin-top: 15px;
    padding: 7px 40px;
    font-size: 1.1rem;
  }
}





/* スマホ専用サイズ ※微調整用 */
@media screen and (max-width: 499px){

  /* 微調整 */
  html{
    padding: 20px 15px 0 15px;
  }
  main{
    margin-bottom: 45px;
    padding-bottom: 0;
  }


  
  /* 詳細情報 */
  .contentsWrap{
    width: 100%;
  }
  .compImg a img{
    height: 35px;
    vertical-align: top;
  }


  .titles{
    font-size: 1rem;
  }
  .offer{
    display: flex;
    flex-wrap: wrap;
  }
  .company{
    margin-bottom: 5px;
  }
  .detailTags input, .company{
    font-size: 0.9rem;
  }
  .detailTags input, .company{
    padding: 7px 10px;
  }
  .openDay{
    font-size: 0.95rem;
  }
  .detailTxt{
    margin-top: 50px;
  }
  .detailTxt p{
    width: auto;
  }
  .detailTxt p span:first-child{
    line-height: 1.5rem;
    font-size: 0.95rem;
  }
  .detailTxt p span:last-child a{
    width: fit-content;
    font-size: 0.9rem;
  }
  .detailTxt p span:last-child a span i{
    font-size: 0.7rem;
  }

  .detailTxt p:nth-child(2) span:last-child{
    width: auto;
  }
  .detailTxt p span:first-child{
    margin-bottom: 2px;
  }
  .detailTxt p span:last-child{
    line-height: 1.4rem;
  }
  .goodIcon button{
    padding: 7px 20px;
  }
  .goodIcon button i{
    font-size: 0.9rem;
  }



  /* コメント */
  #commentWrap{
    margin-top: 50px;
  }
  .comment{
    flex-direction: column;
  }
  .companyName, .commentArea{
    width: 100%;
  }
  .commentArea{
    margin-top: 15px;
    margin-left: unset;
  }
  .commentArea::before {
    border-bottom: 10px solid #D5F4EA;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    top: -18px; /* 任意の数値 + border-bottom + 親要素の線(1px) */
    left: 50%;
    transform: translateX(-50%);
  }
  #cmtBtn{
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.85rem;
  }

  /* コメント追加用のポップアップ表示 */
  #cmtPop{
    width: 100%;
    height: 55%;
  }
  #cmtTitle div p:first-child{
    font-size: 1rem;
  }
  #cmtTitle div p:last-child{
    font-size: 0.85rem;
  }

  /* コメント内容 */
  .commentTxt{
    font-size: 0.9rem;
  }
  .commentDay{
    font-size: 0.75rem;
  }
  
}