@charset "UTF-8";

/* 共通：LIST & SINGLE */

.company-page .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 20px;
  max-width: 1140px;
  width: 92%;
  margin: 100px auto;
}

.company-page .gallery-item {
  width: calc(33.333% - 20px);
  text-align: left;
  display: block;
  cursor: pointer;
}

.company-page .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.news-cat {
  font-size: 12px;
  background: #EB5F51;
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 10px;
}

.news-date {
  font-size: 12px;
  color: #666;
  margin-left: 10px;
}

.company-page .gallery-item .title,
.single-news .title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.company-page .gallery-item .line {
  width: 100%;
  height: 2px;
  background: #000;
  margin-top: 12px;
}
.company-page .gallery-item .item-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-page .gallery-item .arrow {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 20px;
  overflow: hidden;
  color: transparent;
  line-height: 20px;
}

.company-page .gallery-item .arrow::before {
  content: "＞＞";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 18px;
  font-weight: bold;
  color: transparent;
  transform: translateX(-70%);
  transition: transform 0.4s ease;
}

.company-page .gallery-item:hover .arrow::before {
  transform: translateX(0);
  background: linear-gradient(to right,
    #EB5F51 0%,
    #e67360 30%,
    #cc7e66 50%,
    #808080 80%,
    #000000 100%
  );
  -webkit-background-clip: text;
  color: transparent;
}

/* 個別ページ：SINGLE ONLY */

.single-news .gallery {
  display: block;
  max-width: 800px;
  width: 92%;
  margin: 100px auto;
}

.single-news .gallery-item {
  width: 100%;
  max-width: 780px;
  margin: 120px auto;
}

.news-meta {
  margin: 20px 0 10px;
}

.single-news .title {
  line-height: 1.5;
  margin-bottom: 16px;
}

.news-content{
  max-width: 760px;
  margin: 40px auto 50px;
  font-size: 16px;
  line-height: 1.9;
}
.news-content p{ margin: 1.2em 0; }
.news-content h2{
  margin: 2.2em 0 0.8em;
  font-size: 1.4rem;
}
.news-content h3{
  margin: 1.8em 0 0.6em;
  font-size: 1.15rem;
}
.news-content img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8em auto;
}
.news-content figcaption{
  font-size: 13px;
  color: #666;
  margin-top: .5em;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 80px;
  text-decoration: none;
  font-weight: 700;
  color: #000;
  line-height: 20px;
}
.back-btn:hover { opacity: 0.7; }

.footer-link .text {
  display: inline-block;
  opacity: 0.75;
  transition: opacity 0.4s ease, transform 0.45s ease;
}
.footer-link:hover .text {
  opacity: 1;
  transform: translateX(6px);
}

.footer-arrow {
  display: inline-block;
  max-width: 18px;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.6s ease, opacity 0.5s ease;
  opacity: 0.6;
  font-weight: bold;
}
.footer-link:hover .footer-arrow {
  max-width: 53px;
  opacity: 1;
}
.footer-link:hover .footer-arrow::before {
  content: "＞＞";
  background: linear-gradient(
    to right, #EB5F51 0%,
    #F07266 30%,
    #FF968C 50%,
    #FFBAB3 80%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  color: transparent;
}

.news-toc{
  max-width: 760px;
  margin: 24px auto;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
}
.news-toc-title{
  font-weight: 700;
  margin-bottom: 10px;
}
.news-toc-list{
  margin: 0;
  padding-left: 1.2em;
}
.news-toc-list li{ margin: .4em 0; }
.news-toc-list .toc-h3{ margin-left: 1em; font-size: .95em; }
.news-toc a{ text-decoration: none; }
.news-toc a:hover{ text-decoration: underline; }

.news-share{
  max-width: 760px;
  margin: 28px auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-share-title{ font-weight: 700; margin-right: 8px; }
.share-btn{

  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}
.share-btn:hover{ opacity: .85; }

.news-pager{
  max-width: 760px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.news-pager a{
  display: block;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
}
.news-pager .label{
  display:block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}
.news-pager .txt{
  display:block;
  font-weight: 600;
  line-height: 1.4;
}

.news-related{
  max-width: 960px;
  width: 92%;
  margin: 42px auto 0;
}
.news-related-title{
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.news-related-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.news-related-card{
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: grid;
  grid-template-rows: auto 1fr;
}
.news-related-card .thumb img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display:block;
}
.news-related-card .meta{
  padding: 10px 12px 12px;
}
.news-related-card .date{
  font-size: 12px;
  color: #666;
  display:block;
  margin-bottom: 6px;
}
.news-related-card .ttl{
  font-weight: 600;
  line-height: 1.4;
  font-size: 14px;
}

.pagination {
  text-align: center;
  margin: 60px 0 100px;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  color: #000;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid #000;
}

.pagination .current {
  background: #000;
  color: #fff;
}

@media (max-width: 1024px){
  .company-page .gallery{
    gap: 28px 16px;
    width: 92%;
    margin: 80px auto;
  }
  .single-news .gallery{
    max-width: 1000px;
    width: 96%;
    margin: 100px auto;
  }
  .single-news .gallery-item{
    max-width: 100%;
	  margin: 60px auto;
  }

  .news-content,
  .news-toc,
  .news-share,
  .news-pager{
    max-width: 100%;
  }

  .news-related-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px){

  .company-page .gallery{
    gap: 22px;
    width: 92%;
    margin: 100px auto;
  }
  .company-page .gallery-item{
    width: 100%;
margin: 30px auto;
  }
  .company-page .gallery-item img{
    margin-bottom: 10px;
  }

  .news-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
  }
  .news-date{ margin-left: 0; }

  .single-news .gallery{
    margin: 72px auto;
  }
  .single-news .title{
    font-size: 18px;
  }

  .news-content{
    margin: 28px auto 40px;
    font-size: 15px;
  }
  .news-content h2{ font-size: 1.22rem; }
  .news-content h3{ font-size: 1.05rem; }

  .news-toc{
    padding: 14px;
    margin: 18px auto;
  }

  .share-btn{
    padding: 7px 10px;
    font-size: 13px;
  }

  .news-pager{
    grid-template-columns: 1fr;
  }

  .news-related-grid{
    grid-template-columns: 1fr;
  }
  .news-related-card .thumb img{
    height: 190px;
  }

  .back-btn{
    margin: 26px 0 64px;
  }
}

@media (max-width: 420px){
  .news-cat{
    font-size: 11px;
    padding: 3px 8px;
  }
  .news-content{
    font-size: 14.5px;
  }
}
