@charset "UTF-8";
/* TOPページ専用CSS */

#c-catch-top{
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}
#c-catch-top .hero-bg{ position:absolute; inset:0; background: var(--brand-dark); }
#c-catch-top .hero-bg img{
  position: absolute; inset: 0;
  width:100%; height:100%; object-fit:cover;
  opacity: 0;
  animation: heroSlideFade 25s infinite;
}
#c-catch-top .hero-bg img:nth-child(1){ animation-delay: 0s; }
#c-catch-top .hero-bg img:nth-child(2){ animation-delay: 5s; }
#c-catch-top .hero-bg img:nth-child(3){ animation-delay: 10s; }
#c-catch-top .hero-bg img:nth-child(4){ animation-delay: 15s; }
#c-catch-top .hero-bg img:nth-child(5){ animation-delay: 20s; }

@keyframes heroSlideFade{
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  16%  { opacity: 1; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  #c-catch-top .hero-bg img{ animation: none; opacity: 0; }
  #c-catch-top .hero-bg img:first-child{ opacity: 1; }
}
#c-catch-top .hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(46,163,214,0.55), rgba(59,171,138,0.65));
}
#c-catch-top .hero-inner{
  position:relative; z-index:2;
  height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
}
#c-catch-top .hero-logo{ width: 160px; margin-bottom: 1em; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25)); }
#c-catch-top .hero-copy{
  color:#fff; font-size: clamp(1.3em, 3vw, 2em); font-weight:700; letter-spacing:0.08em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

@media screen and (max-width: 640px){
  #c-catch-top{ height: 60vh; min-height: 360px; }
  #c-catch-top .hero-logo{ width: 120px; }
}
/* TOPページ B案 専用CSS（記事一覧＋PICKUP機能） */

/* ===== PICKUP：ヒーロー内に重ねて表示する注目記事カード ===== */
/* SCFフィールド想定：PICKUP（true/false）にチェックが入っている記事が
   イベント／活動報告／コラム／アンケートのいずれかに1件でもあれば、
   その中で最新のものをこの枠に表示する。該当が無ければ枠ごと非表示。 */
.hero-pickup{
  position: absolute;
  right: 6%;
  bottom: 8%;
  z-index: 3;
  display: flex;
  align-items: stretch;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .25s;
}
a.hero-pickup:link,
a.hero-pickup:visited{
  text-decoration: none;
  color: var(--brand-dark);
}
.hero-pickup:hover{ transform: translateY(-4px); }
.hero-pickup-badge{
  flex: 0 0 auto;
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 0.5em;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-green));
  color: #fff;
  font-weight: 800;
  font-size: 0.85em;
  letter-spacing: 0.1em;
}
.hero-pickup-body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4em;
  padding: 1em 1.2em;
}
.hero-pickup-cat{
  align-self: flex-start;
  font-size: 0.72em;
  font-weight: 700;
  padding: 0.15em 0.7em;
  border-radius: 3px;
  background: var(--brand-blue);
  color: #fff;
}
.hero-pickup-title{
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brand-dark);
}
.hero-pickup-date{
  font-size: 0.8em;
  color: #888;
}

@media screen and (max-width: 640px){
  .hero-pickup{
    left: 4%;
    right: 4%;
    bottom: 4%;
    max-width: none;
  }
  .hero-pickup-title{ font-size: 0.88em; }
}

/* ===== 記事一覧（イベント／活動報告／コラム／アンケートを時系列でまとめて表示） ===== */
.c-feedlist{
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.c-feed-item{
  display: flex;
  gap: 0.5em;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
a.c-feed-item:link,
a.c-feed-item:visited{
  text-decoration: none;
  color: var(--brand-dark);
}
.c-feed-item:hover{
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.c-feed-item.is-placeholder{
  opacity: 0.6;
  pointer-events: none;
}
.c-feed-thumb{
  flex: 0 0 180px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: #eee;
}
.c-feed-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.c-feed-body{
  flex: 1 1 auto;
  min-width: 0;
  padding: 1em 1.2em 1em 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5em;
}
.c-feed-meta{
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.78em;
  color: #888;
}
.c-feed-tag{
  display: inline-block;
  padding: 0.2em 0.8em;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92em;
  letter-spacing: 0.02em;
}
.c-feed-tag.is-event{ background: var(--brand-blue); }
.c-feed-tag.is-report{ background: var(--brand-green); }
.c-feed-tag.is-column{ background: #e08a3e; }
.c-feed-tag.is-survey{ background: #9366c9; }
.c-feed-body h3{
  font-size: 1.02em;
  font-weight: 700;
  line-height: 1.6;
}

@media screen and (max-width: 640px){
  .c-feed-item{ gap: 1em; }
  .c-feed-thumb{ flex-basis: 110px; }
  .c-feed-body{ padding: 0.7em 0.9em 0.7em 0; }
  .c-feed-body h3{ font-size: 0.92em; }
}

/* ===== PC：記事一覧を5列×2段程度のカードグリッドに ===== */
@media screen and (min-width: 641px){
  .c-feedlist{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.6em;
  }
  .c-feed-item{
    flex-direction: column;
  }
  .c-feed-thumb{
    flex: 0 0 auto;
    width: 100%;
  }
  .c-feed-body{
    padding: 1em 1.1em 1.2em;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 0.6em;
  }
  .c-feed-meta{
    flex-wrap: wrap;
    gap: 0.5em;
  }
  .c-feed-tag{
    font-size: 0.78em;
    padding: 0.2em 0.7em;
  }
  .c-feed-body h3{
    font-size: 0.92em !important;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
   margin: 0 !important;
  }
}

@media screen and (min-width: 641px) and (max-width: 1000px){
  .c-feedlist{
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================
   story ページ：STEPタイムライン（旧 story/css/style.css より統合）
   ========================================================== */
/* story: モビラボしまねが描くストーリー */

.c-story-list{
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
  position: relative;
}

.c-story-step{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.8em;
  padding: 1.6em 0 !important;
  border-bottom: 1px dashed var(--brand-line);
}
.c-story-step:last-child{ border-bottom: none; }

.c-story-num{
  flex: 0 0 auto;
  width: 92px;
  text-align: center;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  border-radius: 10px;
  padding: 0.6em 0.2em 0.7em;
  line-height: 1.2;
}
.c-story-num span{
  display: block;
  font-size: 1.9em;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.05em;
}

.c-story-img{
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #eee;
}
.c-story-img img{ width:100%; height:100%; object-fit: cover; display:block; }
.c-story-img::after{
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n4'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n4)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.c-story-body{ flex: 1 1 0; padding-top: 0.2em; min-width: 0; }

.c-story-body h3{
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.6;
  color: var(--brand-dark);
  margin: 0 0 0.5em;
}

.c-story-body p{
  font-size: 0.92em;
  line-height: 1.8;
  margin: 0 0 0.4em;
  color: #444;
}

.c-story-body p.hint{
  color: var(--brand-green);
  background: var(--brand-bg);
  border-left: 3px solid var(--brand-green);
  padding: 0.5em 0.9em;
  border-radius: 0 4px 4px 0;
}

.c-story-body p.who{
  font-size: 0.85em;
  color: #777;
  margin-top: 0.6em;
}

@media screen and (max-width: 640px){
  .c-story-step{
    gap: 1em;
    padding: 1.3em 0;
  }
  .c-story-num{
    width: 64px;
    padding: 0.45em 0.1em 0.55em;
    font-size: 0.65em;
    border-radius: 8px;
  }
  .c-story-num span{ font-size: 1.4em; }
  .c-story-img{
    width: 100%;
    max-width: 100%;
    order: 2;
  }
  .c-story-body{
    flex: 1 1 100%;
    order: 3;
  }
  .c-story-num{
    order: 1;
  }
  .c-story-body h3{ font-size: 0.98em; }
  .c-story-body p{ font-size: 0.85em; }
}
