body {
  font-family: "Kiwi Maru", serif;
  font-size: 18px;
  margin: 0;
  padding: 0;
  background-image: url(/img/background-star.png);
  background-size: 100%;
  background-repeat: repeat;
  background-color:#fcfcfc;

  @media screen and (max-width:600px) {
    background-size: 180%;
    font-size: 16px;
  }
}

img{
	vertical-align:top;
  width: 100%;
  height: auto;
}

a{
  text-decoration: none;
}

h1{
  font-size: 3rem;
  font-weight: 500;
  color: #ffffff;

  @media screen and (max-width:600px) {
  font-size: 2rem;
  }
}

h2{
  font-weight: 500;
}

h3{
  font-weight: 500;
  display: inline-block;
  margin: 1rem 0 0.5rem 0;
}

.container{
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 50px;
}

.section-container{
  margin:20px auto 50px auto;
}


/*********************************
    下線ードット
*********************************/
.dotted-border {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.dotted-border::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px; /* 線の高さ */
  background-size: 5px 5px; /* 点の間隔を調整 */
  background-repeat: repeat-x;
}

.red::after{
  background-image: radial-gradient(circle, #F4614C 40%, transparent 50%);
}

.orange::after{
  background-image: radial-gradient(circle, #F4B54C 40%, transparent 50%);
}

.dotted-border-large {
  position: relative;
  display: inline-block;
  padding: 0 0 0.5rem 0;
  min-width: 50%;
}

.dotted-border-large::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px; /* 線の高さ */
  background-image: radial-gradient(circle, #F4614C 40%, transparent 50%);
  background-size: calc(5px * 2) 5px; /* 点の間隔を調整 */
  background-repeat: repeat-x;
}


/*********************************
    ヘッダー
*********************************/
header {
    text-align: center;
    background-color:#F4B54C;
    padding: 1rem;
    background-image: url(/img/background-star.png);
    background-size: 100%;
    background-repeat: repeat;

    @media screen and (max-width:600px) {
      background-size: 180%;
    }
}


/*********************************
    今日のイラスト
*********************************/
#today-illustration {
  border-radius: 30px;
  max-width: 500px;
}

#today-illustration h2::after, #today-illustration h2::before{
  content: "-";
}

#today-illustration img {
  padding: 20px;
  border-radius: 50%;
  max-height: 400px;
  max-width: 400px;
}

.tab-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}


/*********************************
    月のタブ
*********************************/
#month-tabs {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* デスクトップでは12列 */
  gap: 10px;
  justify-content: center;

  @media (max-width: 900px) {
      grid-template-columns: repeat(6, 1fr); /* 6列 */
      grid-template-rows: repeat(2, auto); /* 2行にする */
  }
}

.month-tab {
  background-color: #F4B54C;
  border-radius: 10px;
  color: #FCFCFC;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s;

  @media screen and (max-width:600px) {
    font-size: 14px;
  }
}

.month-tab:hover {
  background-color: #f6d39c;
}

.month-tab.active {
  background-color: #F4614C;
  color: #FCFCFC;
}


/*********************************
    ギャラリー
*********************************/
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;

    @media screen and (max-width:768px) {
      grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    background-color: #FCFCFC;
    transition: all 0.3s;

    &:hover{
      transform: scale(1.02);
    }
}

.gallery-item img {
    object-fit: cover;
    border-radius: 10px;
}

/******** 日付 **********/
.gallery-item span {
  position: absolute;
  top: 5px;
  left: 5px;
  color: #FCFCFC;
  padding: 2px 5px;
  font-size: 1.2rem;
  text-shadow: #333 0 0 10px;
}

 /******** カクつき対策 **********/
.skeleton {
  width: 100%;
  min-height: 100px;
  max-height: 150px;
}


/*********************************
    ポップアップ
*********************************/
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FCFCFC;
    border-radius: 20px;
    padding: 20px;
    display: none;
    z-index: 1000;
    width: 400px;
    max-width: 95%;

    & img {
      max-width: 400px;
      border-radius: 50%;
      padding: 10px;
  }

}

.popup-text{
  margin: 10px 0;

  .date::after, .date::before{
    content: "-";
  }

  .title{
    display: inline-block;
    font-weight: 500;
  }

  .description{
    padding: 10px;
  }

  .subtitle{
    font-size: 0.875rem;
    color: gray;
    margin-top: 1rem;
  }

  .subtitle::before{
    content: "(";
  }

  .subtitle::after{
    content: ")";
  }
}

/******** ボタン **********/
#prev-btn, #next-btn {
  background-color: #F4B54C;
  color: #FCFCFC;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#prev-btn {
  left: 10px;
}

#next-btn {
  right: 10px;
}

#close-popup {
  margin-top: 20px;
  padding: 5px 10px;
  background-color: #F4B54C;
  color: #FCFCFC;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 5px 0 0 5px;
}

#close-popup:hover,
#next-btn:hover,
#prev-btn:hover {
  background-color: #f6d39c;
}

/******** 背景 **********/
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}


/*********************************
    プロフィール
*********************************/
#profile img{
  width: 200px;
  border-radius: 50%;
}

.external-link{
  color: #F4B54C;
  transition: all 0.3s ease;
}

.external-link::after{
  content: "";
  display: inline-block;
  background-image: url(/img/icon_external-link.svg);
  background-size: contain;
  width: 1rem;
  height: 1rem;
  margin-left: 1px;
}

.external-link:hover{
  color: rgba(244, 181, 76, 0.7);
}


/*********************************
    フッター
*********************************/
footer{
  text-align: center;
  padding: 15px;
  color: #FCFCFC;
  background-color: #F4B54C;
}


/*********************************
    404
*********************************/
.link-button-404 {
  padding: 10px 50px;
  background-color: #FCFCFC;
  border: #F4B54C 2px solid;
  color: #F4B54C;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  margin: 0 auto;
}

.link-button-404:hover{
  background-color: #f4b54c;
  color: #FCFCFC;
}