@charset "UTF-8";

/*  登録団体紹介ページ  */

/*  登録団体紹介（一覧）  */
.SL_groups-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  /*gap: 60px;*/
}
.SL_groups-content {
    position: relative;
  }
@media screen and (max-width: 1100px) {
/*.SL_groups-wrapper  {
    grid-template-columns: 1fr;
  }*/
}


/* タイトル（大見出し） */
.SL_section-title {
		color: var(--color-title);
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
		font-weight: bold;	
		display: flex;
		align-items:center;
		line-height: normal;
}
.SL_section-title._detail {
	border-left: 5px solid var(--color-border);
	padding-left: 20px;
}
@media screen and (max-width: 898px) {
.SL_section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
}
@media screen and (max-width: 480px) {
.SL_section-title {
  font-size: 1.4rem;
  /*margin-bottom: 10px;*/
}
}


/* 登録団体一覧 */
.groups-box {
  background-color: var(--color-card-bg);
  padding: 20px;
  border-radius: 20px;
  border: 3px solid var(--color-frame);
  box-shadow: 4px 4px 0px 0px var(--color-frame);
}

.groups-list {
  background-color: var(--color-card-bg);
  padding: 0px 5px;
		width: 100%;
}
.groups-list li {
  padding: 15px 0;
  border-bottom: 1px dotted var(--color-border);
  display: flex;
  gap: 15px;
}

.groups-list li:last-child {
  border-bottom: none;
}

@media screen and (max-width: 480px) {
  .groups-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

.groups-date {
  font-size: 1rem;
  white-space: nowrap;
		flex-basis: 90px;
}

.groups-category {
		flex-basis: 100px;
		margin-right: 10px;
}
.groups-categoryWaku {
		width: 100%;
  background: var(--color-bg-pink);
  font-size: 0.7rem;
		line-height: 1.2;
  padding: 5px;
  border-radius: 5px;
		text-align: center;
		display: block;
}

.groups-title {
  font-size: 1rem;
		flex-basis:calc(100% - 100px);
}
@media screen and (max-width: 480px) {
.groups-date {
		flex-basis: 100%;
		margin-bottom: 5px;
}

.groups-category {
		flex-basis: 100%;
		margin-bottom: 5px;
		margin-right: 0px;
}
.groups-categoryWaku {
		width: 100px;
}

.groups-title {
		flex-basis:100%;
}
}


/* -------------------------------------------------

詳細ページ

------------------------------------------------- */

/* -------------------------------------------------

groups_Photo

------------------------------------------------- */
.groups_Photo_two	{
 width: 100%;
	margin: 0px auto;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}
.groups_Photo_two > div	{
	width: calc(50% - 8px);
 margin:0 15px 15px 0;
}
.groups_Photo_two > div:nth-child(2n) {
 margin-right: 0;
}
.groups_Photo_two > div:last-child {
 margin-right: 0;
	margin-bottom: 0;
}
.groups_Photo_two > div img	{
	width: 100%;
}
.groups_Photo_two > div:hover	{
 opacity: 0.7;
 filter: alpha(opacity=70);
 -moz-opacity: 0.7;
	transition: .3s;
}

@media screen and (max-width: 480px)  {
.groups_Photo_two	{
	flex-flow: column wrap;
}
.groups_Photo_two > div	{
	width: 100%;
 margin:0 0 15px;
}
.groups_Photo_two > div:last-child	{
 margin:0;
}
}




/* -------------------------------------------------

pagination

------------------------------------------------- */
.pager {
	width: 100%;
 text-align: center;
	margin: 30px auto;
}
.pager .pagination {
	width: 100%;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
}
.pager .pagination li {
	font-weight: 400;
 margin: 0 2px;
 padding: 0;
	border: 3px solid var(--color-btn-border);
 background-color:var(--color-btn-bg);
 width: 200px;
 height: 50px;
 text-align: center;
 position: relative;
	border-radius: 25px;
}
.pager .pagination li.pre,
.pager .pagination li.next{
 width: 150px;
 height: 50px;
 text-align: center;
}
.pager .pagination li a{
	border-radius: 25px;
 vertical-align: middle;
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 text-align: center;
 display:table;
 /*color: #333333;*/
 text-decoration: none;
 -webkit-transition: all 0.3s ease;
 -moz-transition: all 0.3s ease;
 -o-transition: all 0.3s ease;
 transition: all  0.3s ease;
}
.pager .pagination li a span {
 display:table-cell;
 vertical-align:middle;
}
.pager .pagination li a:hover{
 background-color: var(--color-btn-bg-hover);
}
.pager .pagination li a:hover.active{
 background-color: var(--color-btn-bg-hover);
}
.pager .pagination li a.active{
 /*color: #333333;*/
 /*background-color: #eee;*/
}
.pager .sp_back{
 display: none;
}

@media screen and (max-width: 640px) {
 .pager .pagination {
	 /*margin: 0px auto 30px;*/
	}
 .pager .pagination li{
  display: none;
 }
 .pager .pagination li.pre,
 .pager .pagination li.next{
  display: inline-block;
  width: 50%;
  height: 50px;
  text-align: center;
		/*font-size: 1.4rem;*/
 }
 .pager .pagination li.pre a,
 .pager .pagination li.next a{
  width: 100%;
  text-align: center;
 }
.pager .sp_back{
	display: block;
	width: 99.5%;
 margin: 0 auto 15px;
 padding: 0;
 background-color:var(--color-btn-bg);
	border-radius: 25px;
 height: 50px;
	font-weight: 400;
 text-align: center;
 position: relative;
}
.pager .sp_back a{
	/*font-size: 1.4rem;*/
 position: absolute;
	padding-top: 10px;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
	/*color: #333333;*/
	border: 3px solid var(--color-btn-border);
 text-align: center;
 text-decoration: none;
 -webkit-transition: all 0.3s ease;
 -moz-transition: all 0.3s ease;
 -o-transition: all 0.3s ease;
 transition: all  0.3s ease;
	border-radius: 25px;
}
.pager .sp_back a:hover{
 background-color: var(--color-btn-bg-hover);
}
}


/*  検索フォーム  */
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  /*padding: 30px;
  background: var(--color-card-bg);
  border: 3px solid var(--color-border);
  border-radius: 20px;*/
  margin-bottom: 50px;
}
@media (max-width: 768px) {
  .search-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-field label {
  display: block;
  font-size: 1rem;
		font-weight: 500;
  color: var(--color-title);
  margin-bottom: 6px;
}

.search-field input,
.search-field select {
  height: 46px;
  padding: 0 14px;
  font-size: 1rem;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-card-bg);
}

.search-field input { width: 500px; }
.search-field select {
	min-width: 200px; 
	position: relative;
	appearance: none;
}

.search-field input:focus,
.search-field select:focus {
  outline: 3px solid var(--color-primary-focus);
  outline-offset: -1px;
}

.form-select-wrap {
    position: relative;
}

/* プルダウン矢印（borderで三角形を描画して45度回転） */
.form-select-wrap::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    position: absolute;
    right: 14px;
    bottom: 20px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
   	rotate: 45deg;
    pointer-events: none;
}

@media (max-width: 768px) {

  .search-field input,
  .search-field select {
    width: 100%;
  }
}

.search-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
@media (max-width: 1250px) {
  .search-actions {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .search-actions button {
    flex: 1;
  }
}

/* ===== ボタン ===== */
.btn-primary,
.btn-secondary {
  height: 46px;
  padding: 0 30px;
  font-size: 1rem;
		font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  color: #fff;
  background: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover) }

.btn-primary:focus {
  outline: 3px solid var(--color-primary-focus);
  outline-offset: -1px;
}

/*.btn-secondary {
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg);
  border-color: #9AA5B4;
}*/
@media (max-width: 768px) {

  .search-field input,
  .search-field select {
    width: 100%;
  }

  .search-actions button {
    flex: 1;
  }
}


/* 登録団体詳細 */

/* =========================================
   1. リスト全体を囲むラッパー
========================================= */
.SL-dl-wrapper {
    /*background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 2em;*/
    padding: 32px;
}

/* 
   ▼ 修正の要：dl自体をグリッドコンテナにする ▼
   dtを160px固定、ddを残りすべて(1fr)に分割 
*/
.SL-dl-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 160px 1fr;
    column-gap: 0px; /* 左右の隙間 */
}

/* =========================================
   3. 項目名(dt)と説明文(dd)のデザイン
========================================= */
.SL-dl-term,
.SL-dl-desc {
    padding: 30px 0;
    border-bottom: 1px solid var(--color-border); /* 1行ずつの区切り線 */
}

/* 最初の行の上側余白を無くす */
.SL-dl-term:first-of-type,
.SL-dl-desc:first-of-type {
    padding-top: 0;
}

/* 最後の行の下線と下側余白を無くす */
.SL-dl-term:last-of-type,
.SL-dl-desc:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
}

.SL-dl-term {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-title);
    margin: 0;
    grid-column: 1; /* 必ず1列目に配置 */
}

.SL-dl-desc {
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 500;
    grid-column: 2; /* 必ず2列目に配置 */
}

.SL-dl-link {
    color: #2589d0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.SL-dl-link:hover {
    color: #1a6da7;
}

/* =========================================
   4. レスポンシブ対応（スマホ時は縦並び）
========================================= */
@media screen and (max-width: 1100px) {
	.SL-dl-wrapper {
    padding: 16px;
	}
	.SL-dl-list {
        /* スマホでは縦1列に変更 */
        grid-template-columns: 1fr;
    }

    .SL-dl-term,
    .SL-dl-desc {
        grid-column: 1; /* 全要素を1列目にまとめる */
        border-bottom: none; /* 個別の下線を消す */
        padding: 0;
    }

    .SL-dl-term {
        /*color: #2589d0;
        font-size: 0.9rem;*/
        margin-top: 20px; /* 行ごとの隙間 */
    }
    
    .SL-dl-term:first-of-type {
        margin-top: 0;
    }

    .SL-dl-desc {
        padding-top: 10px; /* dtとddの隙間 */
        padding-bottom: 20px;
        border-bottom: 1px solid var(--color-border); /* スマホ時は行ごとに下線を引く */
    }

    .SL-dl-desc:last-of-type {
        padding-bottom: 0;
        border-bottom: none;
    }
}
@media screen and (max-width: 480px) {
	.SL-dl-wrapper {
    padding: 6px;
	}
}
@media screen and (max-width: 374px) {
	.SL-dl-wrapper {
    padding: 0px;
	}
}


