
/* Sandias TOP Content v1.4 */
.sandias-top {
  --c-border:#e5e7eb; --c-muted:#6b7280; --c-pill:#eef2f7;
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,'Noto Sans JP',sans-serif;
/* 
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
*/
  color:#111827; line-height:1.75;
}
.sandias-top .container { max-width:1100px; margin:0 auto; padding:24px 20px 80px; }

.section-wrap { margin-bottom: 40px; }
.section-title { font-size: clamp(22px, 2.6vw, 28px); font-weight:700; margin:0 0 12px 0; }
.section-box { background:#fff; border:1px solid var(--c-border); border-radius:12px; padding:24px; }

/* NEWS — (unchanged spec) */
.news-list{list-style:none; margin:0; padding:0;}
.news-item{display:grid; grid-template-columns:60px 1fr; gap:16px; padding:14px 0; border-top:1px solid var(--c-border);}
.news-item:first-child{border-top:none; padding-top:0;}
.news-thumb{width:60px; height:60px; border-radius:10px; overflow:hidden; border:1px solid #d9dee7; background:#e8ecf3; display:block;}
.news-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.news-meta{display:flex; flex-wrap:wrap; gap:10px; font-size:14px; color:var(--c-muted); margin-bottom:4px;}
.news-pill{background:var(--c-pill); border-radius:999px; padding:4px 10px; font-size:12px; color:#475569;}
.news-title{font-weight:400; font-size:clamp(1.1rem,2.2vw,20px); margin:0;}
.news-title a{color:#1f2937; text-decoration:none;}
.news-title a:hover{text-decoration:underline;}

/* BL text — larger */
.bl-standard p{margin:0 0 1em; text-align:justify; text-justify: inter-ideograph; font-size:1.1rem;}
.bl-standard p:last-child{margin-bottom:0;}

/* SNS — icon + label + URL anchor */
.sns-group-title {
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0;
  font-size: 1.5rem;
}

.sns-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sns-item {
  padding: 12px 0;
  border-top: 1px solid var(--c-border);
}

.sns-item:first-child {
  border-top: none;
  padding-top: 0;
}

/* 行全体をリンク化 */
.sns-row a {
  display: flex;
  align-items: flex-start; /* 上端揃え */
  gap: 10px;
  text-decoration: none;
  color: inherit;
  line-height: 1.4;
}

.sns-row a:hover {
  opacity: 0.8;
}

.sns-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.sns-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.sns-label {
  font-weight: 400;
  font-size: 1.1rem;
  margin-top: 2px; /* 微調整 */
  line-height: 1.4;
}

/* --- SP: wrap icon/text neatly --- */
@media (max-width: 640px) {
  .sns-row a {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 10px;
    align-items: start;
  }

  .sns-icon {
    width: 28px;
    height: 28px;
  }

  .sns-label {
    grid-column: 2;
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.4;
  }
}
@media(min-width:768px){
  .news-item{grid-template-columns:96px 1fr;}
  .news-thumb{width:96px; height:96px;}
}

/* --- v1.4.1 Mobile Fixes for SNS wrapping --- */
@media (max-width: 640px) {
  /* Switch to grid: [icon][text] and let content wrap beneath */
  .sns-row a {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 10px;
    align-items: start;
  }
  .sns-label {
    grid-column: 2;
  }
  .sns-url {
    grid-column: 2;
    padding-left: 0; /* no manual indent when using grid */
    margin-top: 4px;
  }
}

/* Make long URLs safe to wrap on any device */
.sns-url a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Optional: add class 'clamp' to sns-label to truncate to 2 lines */
.sns-label.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* If you want auto-clamp on very small screens */
@media (max-width: 360px) {
  .sns-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
