@charset "utf-8";

/* CSS Document */

/*----------------------------------------------------------------------------------------------------
  共通部分
----------------------------------------------------------------------------------------------------*/

.blog-wrap {
  display: flex;
  gap: calc(var(--BaseSpaceSize) * 3);
}

.main { width: 75%; }

.title_show {
  margin-bottom: calc(var(--BaseSpaceSize) * 3);
  padding-bottom: var(--BaseSpaceSize);
  border-bottom: 1px solid var(--Color2);
  
  h1,
  h2 {
    margin: 0;
  }
}

/* sidebar */
.sidebar {
  width: 25%;

  .sidebox {
    border: 2px solid var(--Color4);
    border-radius: calc(var(--BaseFontSize) / 2);
    margin-bottom: calc(var(--BaseSpaceSize) * 3);
    overflow: hidden;
    background-color: #fff;
    
    h2 {
      text-align: center;
      padding: .5em;
      margin: 0;
      box-sizing: border-box;
      background-color: var(--Color4);
      color: #fff;
    }
    
    li {
      position: relative;
      padding: var(--BaseSpaceSize);
      border-bottom: 1px solid #ccc;
      transition: .2s;
      background-color: #fff;
      
      &:hover {
        color: var(--Color2);
      }
      &.nolink:hover {
        background-color: #fff;
      }
      
      &:last-child {
        border-bottom: none;
      }
      
      a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-decoration: none;
      }
      
      span {
        display: block;
        color: #777;
      }
    }
  } 
}

@media screen and (max-width: 960px) {
  .blog-wrap { flex-wrap: wrap; }
  .main { width: 100%; }
  .sidebar {
    width: 100%;
    margin-top: calc(var(--BaseSpaceSize) * 2);
  }
}


/*----------------------------------------------------------------------------------------------------
  一覧
----------------------------------------------------------------------------------------------------*/
.list {

  .box {
    position: relative;
    box-sizing: border-box;
    padding: 1em 0;
    border-bottom: 1px solid #bbb;

    a,
    .nolink {
      display: block;
      transition: .2s;

      .img {
        overflow: hidden;
        border-radius: var(--BaseSpaceSize);

        img {
          width: 100%;
          height: auto;
          aspect-ratio: 4 / 3;
          object-fit: cover;
          transition: .2s;
        }
      }

      .date {
        display: block;
        color: #888;
      }

      .title {
        display: block;
        margin-top: .25em;
      }
    }

    a:hover {
      .img {
        img {
          transform: scale(1.1);
        }
      }
    }
  }
}  
@media (max-width:768px) {
  .list {
    grid-template-columns: 1fr 1fr;
  } 
}


/*----------------------------------------------------------------------------------------------------
  詳細
----------------------------------------------------------------------------------------------------*/
.detail {
  overflow: hidden;
  
  .date {
    margin: 0;
    color: #777
  }
  
  .blog-section {
    margin-bottom: calc(var(--BaseSpaceSize) * 3);
    
    p {
      margin-top: 0;
    }
  }
  
  .pmove {
    margin-top: calc(var(--BaseSpaceSize) * 4);
    
    .btn02 {
      width: 10em;
      margin-left: auto;
      margin-right: auto;
    }
  }
}


/* file-icon */
a[href$=".pdf"], a[href$=".doc"], a[href$=".docx"], a[href$=".docm"], a[href$=".dotx"], a[href$=".dotm"], a[href$=".rtf"], a[href$=".xls"], a[href$=".xlsx"], a[href$=".xlsm"], a[href$=".xlsb"], a[href$=".ppt"], a[href$=".pptx"] {
  position: relative;
  padding-left: 1.5em;
  text-decoration: underline;
  transition: all .2s;
}

/* PDF */
a[href$=".pdf"]:hover {
  text-decoration: none;
  color: #c45757;
}

a[href$=".pdf"]::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  content: "";
  background-image: url("../../image/icon/pdf.png");
  display: inline-block;
  width: 20px;
  height: auto;
  aspect-ratio: 1/1;
  background-size: contain;
}

/* Word */
a[href$=".doc"]:hover, a[href$=".docx"]:hover, a[href$=".docm"]:hover, a[href$=".dotx"]:hover, a[href$=".dotm"]:hover, a[href$=".rtf"]:hover {
  text-decoration: none;
  color: #5771ad;
}

a[href$=".doc"]::before, a[href$=".docx"]::before, a[href$=".docm"]::before, a[href$=".dotx"]::before, a[href$=".dotm"]::before, a[href$=".rtf"]::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  content: "";
  display: inline-block;
  width: 20px;
  height: auto;
  aspect-ratio: 1/1;
  background-size: contain;
  background-image: url("../../image/icon/doc.png");
}

/* excel */
a[href$=".xls"]:hover, a[href$=".xlsx"]:hover, a[href$=".xlsm"]:hover, a[href$=".xlsb"]:hover {
  text-decoration: none;
  color: #618e4d;
}

a[href$=".xls"]::before, a[href$=".xlsx"]::before, a[href$=".xlsm"]::before, a[href$=".xlsb"]::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  content: "";
  display: inline-block;
  width: 20px;
  height: auto;
  aspect-ratio: 1/1;
  background-size: contain;
  background-image: url("../../image/icon/xls.png");
}

/* powerpoint */
a[href$=".ppt"]::before, a[href$=".pptx"]::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  content: "";
  display: inline-block;
  width: 20px;
  height: auto;
  aspect-ratio: 1/1;
  background-size: contain;
  background-image: url("../../image/icon/ppt.png");
}

a[href$=".ppt"]:hover, a[href$=".pptx"]:hover {
  text-decoration: none;
  color: #cc773e;
}

/* youtube */
iframe[src*="youtube"] {
  margin: 20px 0;
}

@media screen and (max-width: 750px) {
  iframe[src*="youtube"] {
    margin: 20px 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
  }
}