@charset "UTF-8";
/*!
 * style.css
 * Version - 1.0.0
 * author samueltakuya
 */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: #595959;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* グローバルなtextareaスタイル - input要素と完全に統一 */
textarea,
textarea.form-control {
    font-weight: normal !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-style: normal !important;
    line-height: 1.2 !important;
    -webkit-font-smoothing: auto !important;
    -moz-osx-font-smoothing: auto !important;
    color: #595959 !important;
}

h1 {}

h2 {
    color: #595959;
    font-size: 26px;
    margin-bottom: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: solid 3px #2C58FA;
}

h2::before {
    content: "";
    background-image: url(../img/circle_square.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 28px;
    height: 34px;
    margin-right: 0.4rem;
}

h3 {
    color: #595959;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 1.2rem;
}

h3::before {
    content: "";
    background-image: url(../img/circle_square.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: top;
    display: inline-block;
    width: 23px;
    height: 23px;
    margin-right: 0.3rem;
}

h4 {
    color: #595959;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

h5 {
    color: #595959;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: solid 2px #2C58FA;
}

p {
    color: #595959;
}

a {
    text-decoration: none;
}

table {
    border: solid 1px #595959;
}

th {
    background: #DCE3FF;
    border: solid 1px #595959;
    font-weight: normal;
    padding: 0.6rem;
    width: 140px;
}

td {
    border: solid 1px #595959;
    padding: 0.6rem;
}

a:hover {
    opacity: .7;
    transition: .3s;
}

section {
    margin-bottom: 50px;
}

dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    width: 240px;
    font-size: 13px;
}

dt {
    background: #2C58FA;
    border-radius: 6px;
    color: #ffffff;
    font-weight: normal;
    margin-right: 0.5rem;
    padding: 0.3rem;
}

dd {
    background: #F2F2F2;
    border-radius: 6px;
    margin-bottom: 0;
    padding: 0.3rem;
}

.page-item {
    margin: 0 0.7rem;
}

.page-item.active {
    color: #595959;
}

.page-link {
    border: solid 1px #2C58FA;
    border-radius: 50%!important;
    color: #595959;
    height: 34px;
    padding: 4px 12px 5px;
}

/* header */

header {
    border-bottom: solid 2px #2C58FA;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

header div {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


header img {
    width: 180px;
}


header h1 {
    font-size: 16px;
    margin-bottom: 0;
}

header p {
    margin-bottom: 0;
}

header .grid__item a {
    white-space: nowrap;
}

header .a-btn {
    font-size: 0.9rem;
    width: 100px;
    height: 40px;
    padding: 9px;
}

header div.grid {
    display: grid;
    grid-template-columns: 180px 815px 1fr 80px;
    row-gap: 20px;
    column-gap: 20px;
    align-items: center;
}

header #comp_sp {
    display: none;
}


#headline {
    margin-bottom: 0;
}

#headline span {
    color: red;
    font-weight: bold;
}

/* nav */

nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    height: 100px;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* main */

.main {
    width: 780px;
}

.login-main {
    padding: 40px 0;
}



/* breadcrumb */

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

.breadcrumb li {
    font-size: 14px;
    display: inline;
    list-style: none;
    font-weight: bold;
}

.breadcrumb li:after {
    content: '>';
    padding: 0 0.4em;
    color: #555;
}

.breadcrumb li:last-child:after {
    content: '';
}

.breadcrumb li a {
    text-decoration: none;
    color: gray;
}

.breadcrumb li.current {
    text-decoration: underline;
    color: #333;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

/* wrapper */

.wrapper {
    width: 100%;
    box-sizing: border-box;
}

.wrapper.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 35px;
    justify-items: center;
}

/* select */

select {
    cursor: pointer;
}

/* btn */

.a-btn {
    color: #333;
    text-decoration: none;
    position: relative;
    display: block;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    padding: 15px 35px;
    width: 100%;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
}

.a-btn:link {
    color: #fff;
}


.a-btn.is-disabled {
    color: #333;
    background-color: #acacac;
    border-color: #d4d4d4;
    pointer-events: none;
    cursor: default;
}

.bg-blue {
    color: #fff;
    font-weight: 700;
    border-color: #2C58FA;
    background-color: #2C58FA;
}

.bg-yellow {
    color: #fff;
    font-weight: 700;
    border-color: #fdbf1c;
    background-color: #fdbf1c;
}

.bg-yellow:hover {
    color: #fff;
    border-color: #fdbf1c;
    background-color: #fdbf1c;
    opacity: .7;
    transition: .3s;
}

.btn-message {
    padding: 0.7rem 1.2rem;
    width: 265px;
}

.btn-message::before {
    content: "";
    background-image: url(../img/icon/message.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: top;
    display: inline-block;
    width: 26px;
    height: 20px;
    position: relative;
    top: 3px;
}


/* circle */

#circle {
    margin-bottom: 50px;
}

#circle p {
    margin: 0;
    font-weight: bold;
}

#circle .circle-search-grid {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    row-gap: 20px;
    column-gap: 40px;
    justify-content: center;
    margin: 0 auto 30px;
}

#circle .subgrid {
    display: grid;
    grid-template-columns: 90px 270px;
    column-gap: 10px;
    align-items: center;
    justify-items: start;
}

#circle .subgrid select {
    width: 270px;
}

#circle .category {
    order: 1;
}

#circle .sport {
    order: 2;
}

#circle .prefectures {
    order: 3;
}

#circle .city {
    order: 4;
}

#circle .sex {
    order: 5;
}

#circle .age {
    order: 6;
}

#circle .subgrid button {
    width: 150px;
}

#circle .a-btn {
    width: 220px;
    height: 45px;
    margin: 0 auto;
    padding: 9px;
}

.selectbox {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.selectbox::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #595959;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

#circle select {
    appearance: none;
    min-width: 150px;
    padding: .4em calc(.8em + 30px) .4em .8em;
    border: 1px solid #595959;
    border-radius: 6px;
    background-color: #fff;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
}


.btn-dropdown {
    border: solid 1px #212529;
}

.btn-dropdown:hover {
    border: solid 1px #212529;
}

/* search_sport */

#search_sport {
    margin-bottom: 50px;
}

#search_sport .container {
    display: grid;
    grid-template: repeat(2, 100px) / repeat(5, 100px);
    gap: 64px 62px;
    margin-bottom: 70px;
    font-weight: bold;
}

#search_sport a {
    text-decoration: none;
}

#search_sport .soccer::before {
    content: "";
    background-image: url(../img/category/soccer.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .futsal::before {
    content: "";
    background-image: url(../img/category/futsal.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .basketball::before {
    content: "";
    background-image: url(../img/category/basketball.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .baseball::before {
    content: "";
    background-image: url(../img/category/baseball.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .volleyball::before {
    content: "";
    background-image: url(../img/category/volleyball.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .cycling::before {
    content: "";
    background-image: url(../img/category/cycling.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 84px;
    height: 88px;
}

#search_sport .tennis::before {
    content: "";
    background-image: url(../img/category/tennis.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .table_tennis::before {
    content: "";
    background-image: url(../img/category/table_tennis.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .badminton::before {
    content: "";
    background-image: url(../img/category/badminton.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .running::before {
    content: "";
    background-image: url(../img/category/running.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

#search_sport .snow_board::before {
    content: "";
    background-image: url(../img/category/snow_board.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 68px;
    height: 88px;
}

/* search_area */

#search_area {
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
    height: 700px;
}

#search_area::before {
    position: absolute;
    z-index: -1;
    content: "";
    background-image: url(../img/japan_map.svg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: 150px 150px;
    vertical-align: middle;
    display: inline-block;
    width: 740px;
    height: 710px;
}

#search_area a {
    text-decoration: none;
    text-align: center;
}

#search_area h4 {
    color: #2C58FA;
    font-size: 22px;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: #2C58FA solid 2px;
}

#search_area article {
    border: #2C58FA solid 3px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 1px 1px 20px #999;
    text-align: center;
}

#search_area #touhoku {
    width: 185px;
    position: absolute;
    right: 20px;
    top: 250px
}

#search_area #hokkaidou {
    width: 185px;
    position: absolute;
    right: 0px;
}

#search_area #kanto {
    width: 230px;
    position: absolute;
    right: 0;
    bottom: 170px;
}

#search_area #tokai {
    width: 185px;
    position: absolute;
    right: 0;
    bottom: 20px;
}

#search_area #kansai {
    width: 185px;
    position: absolute;
    bottom: 20px;
    right: 200px;
}

#search_area #shikoku {
    width: 185px;
    position: absolute;
    bottom: 0px;
    left: 160px;
}

#search_area #koushinetu {
    width: 185px;
    position: absolute;
    right: 290px;
    top: 120px;
}

#search_area #tyugoku {
    width: 185px;
    position: absolute;
    left: 180px;
    top: 260px;
}

#search_area #kyusyu {
    width: 230px;
    position: absolute;
    bottom: 150px;
}

#search_gender_age {
    display: grid;
    grid-template-columns: 290px 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 30px;
    grid-row-gap: 0px;
    height: 210px;
}

#search_gender {
    width: 280px;
}

#search_gender a {
    text-decoration: none;
}

#search_gender div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    height: 100px;
}

#search_gender h4 {
    font-size: 1.2rem;
}

#search_gender a {
    text-decoration: none;
}

#search_gender #mens::before {
    content: "";
    background-image: url(../img/men.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 58px;
    height: 68px;
}

#search_gender #womens::before {
    content: "";
    background-image: url(../img/wemon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 58px;
    height: 68px;
}

#search_gender #no_gender::before {
    content: "";
    background-image: url(../img/no_gender.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 58px;
    height: 68px;
}

#search_age div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    height: 100px;
    justify-items: center;
}

#search_age h4 {
    font-size: 2.5rem;
}

#search_age h4 span {
    font-size: 1rem;
}

/* test */

.mod-topSearchList .marketList {
    display: flex;
    justify-content: space-between
}

.mod-topSearchList .marketList .marketListItem {
    margin-top: 20px
}

.mod-topSearchList .marketList .marketListItem a {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 1px 0 rgba(0, 0, 0, .2);
    color: #333;
    display: inline-block;
    font-weight: bold;
    line-height: 26px;
    padding: 0 12px;
    position: relative;
    text-decoration: none
}

.mod-topSearchList .marketList .marketListItem a:hover {
    background-color: #eee;
    box-shadow: none;
    top: 2px
}

.mod-topSearchList .searchList {
    display: flex;
    flex-wrap: wrap
}

.mod-topSearchList .searchList .searchListItem {
    margin: 20px 60px 0 0;
    position: relative;
    width: calc((100% - 180px) / 4)
}

.mod-topSearchList .searchList .searchListItem:nth-of-type(4n) {
    margin-right: 0
}

.mod-topSearchList .searchList .searchListItemButton {
    background: none 50% calc(50% - 1em) no-repeat;
    border: 0;
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 92.3%;
    font-weight: bold;
    line-height: 1;
    letter-spacing: .1em;
    padding: 0;
    padding-top: calc(135px - 1em);
    width: 100%;
    text-align: center;
    text-decoration: none;
    white-space: nowrap
}

.mod-topSearchList .searchList .searchListItemButton .searchListItemButtonLabel {
    position: relative
}

.mod-topSearchList .searchList .searchListItem:hover::before,
.mod-topSearchList .searchList .searchListItem:hover::after,
.mod-topSearchList .searchList .searchListItem:hover .searchListItemButton::before,
.mod-topSearchList .searchList .searchListItem:hover .searchListItemButton::after {
    background-image: url(../img/icon_focus.svg);
    content: "";
    display: block;
    height: 22px;
    position: absolute;
    width: 22px
}

.mod-topSearchList .searchList .searchListItem:hover::before {
    left: 0;
    top: 0;
    transform: rotate(90deg)
}

.mod-topSearchList .searchList .searchListItem:hover::after {
    right: 0;
    top: 0;
    transform: rotate(180deg)
}

.mod-topSearchList .searchList .searchListItem:hover .searchListItemButton::before {
    bottom: 22px;
    left: 0
}

.mod-topSearchList .searchList .searchListItem:hover .searchListItemButton::after {
    bottom: 22px;
    right: 0;
    transform: rotate(-90deg)
}


.searchList .searchListItem:hover::before,
.searchList .searchListItem:hover::after,
.searchList .searchListItem:hover .searchListItemButton::before,
.searchList .searchListItem:hover .searchListItemButton::after {
    background-image: url(../img/icon_focus.svg);
    content: "";
    display: block;
    height: 22px;
    position: absolute;
    width: 22px
}

.icon_focus a:hover::before {
    left: 0;
    top: 0;
    transform: rotate(90deg)
}

.icon_focus a:hover::after {
    right: 0;
    top: 0;
    transform: rotate(180deg)
}

.icon_focus a:hover .searchListItemButton::before {
    bottom: 22px;
    left: 0
}

.icon_focus a:hover .searchListItemButton::after {
    bottom: 22px;
    right: 0;
    transform: rotate(-90deg)
}


/* #popular_sports */

#popular_sports ul {
    padding: 0px;
}

#popular_sports ul li {
    font-size: 20px;
    list-style: none;
    position: relative;
    padding: 0 0 10px 0;
    margin-bottom: 10px;
    border-bottom: solid 1px #595959;
}

#popular_sports ul li::after {
    font-family: "Font Awesome 6 Free";
    content: '\f105';
    font-weight: 900;
    padding-right: 3px;
    color: #444;
    display: block;
    position: absolute;
    right: 20px;
    top: 0;
    width: 6px;
    height: 10px;
    background-size: 12px 20px;
}

#popular_sports ul a {
    color: #333;
}

#sport_list section {
    margin-bottom: 50px;
}

#sport_list section ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    row-gap: 20px;
    column-gap: 45px;
    padding: 0;
}

#sport_list section ul li {
    list-style: none;
}

#circle_list .circle_desc {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-gap: 20px;
}

#circle_list article p {
    background: #F2F2F2;
    color: #595959;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.circle-gallery-scroll {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.circle-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.circle-gallery__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    aspect-ratio: 4 / 3;
    width: 100%;
    cursor: pointer;
}

.circle-gallery__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .circle-gallery-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .circle-gallery {
        display: inline-flex;
        flex-wrap: nowrap;
        gap: 16px;
        width: max-content;
        min-width: 100%;
    }

    .circle-gallery__item {
        flex: 0 0 140px;
        width: 140px;
    }
}

@media (min-width: 768px) {
    .circle-gallery {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.recruitment-closed-message {
    border: 2px solid #D9D9D9;
    background: #fff;
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;
}

#circle_list .recruitment-closed-message p {
    background: #fff;
    color: #595959;
    padding: 0.7rem 1rem;
    margin: 0;
}

.circle_member p {
    font-size: 13px;
}

.circle-member-scroll-wrapper {
    position: relative;
    --circle-scroll-fade-opacity: 0;
}

.circle-member-scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.circle-member-scroll-wrapper.is-scrollable::after {
    opacity: var(--circle-scroll-fade-opacity, 1);
}

.circle-member-scroll {
    margin-top: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.circle-member-list {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    min-width: 100%;
    align-items: flex-start;
}
.circle-member-list .circle-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 0 0 160px;
    width: 160px;
}


.circle-member-card__image {
    cursor: default;
    display: block;
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}

.circle-member-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.circle-member-card__name {
    font-size: 13px;
    margin: 0;
    min-height: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    text-align: center;
}

@media (max-width: 767px) {
    .circle-member-list .circle-member-card {
        flex: 0 0 140px;
        width: 140px;
    }
}


.circle_member button {
    font-size: 13px;
}

@media (min-width: 576px) {
    .col-sm-5th {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.collapse-toggle .when-not-collapsed {
    display: none;
}

.collapse-toggle:not(.collapsed) .when-collapsed {
    display: none;
}

.collapse-toggle:not(.collapsed) .when-not-collapsed {
    display: inline;
}

.show_member {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdbf1c;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.7rem 0;
    border-radius: 6px;
}

.show_member:after {
    content: 'メンバー全員を見る';
}

.show_member i:before {
    content: "";
    background-image: url(../img/icon/plus_mark.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: -2px;
    left: -4px;
}

.show_member:hover {
    opacity: .7;
    transition: .3s;
}

.checkbox {
    display: none;
}

.checkbox:checked + .show_member {
    background: #D9D9D9;
}

.checkbox:checked + .show_member:after {
    content: '閉じる';
}

.checkbox:checked + .show_member i:before {
    content: "";
    background-image: url(../img/icon/minus_mark.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: -2px;
    left: -4px;
}

.p-fixed {
    background: rgb(0, 0, 0, 0.5);
    bottom: 0;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    z-index: 20;
}

.grid__item {
    display: block;
}

.grid__item-img img {
    width: 100%;
    height: auto;
}

.grid__txt {
    padding: 15px 10px 10px;
}

.narrow_down {
    border: solid 1px #D9D9D9;
    padding: 0.2rem 0.5rem 0.2rem 0.5rem;
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.narrow_down::before {
    content: "";
    background-image: url(../img/icon/narrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: -2px;
}

.narrow_down::after {
    content: "";
    background-image: url(../img/icon/close.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
}

.checkbox:checked + .narrow_down:after {
    content: "";
    background-image: url(../img/icon/plus.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
}


.narrow_down span {
    margin-left: 0.5rem;
}

.list_result {
    font-size: 16px;
    border-bottom: 1px solid #595959;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.list_result .list_result_attribute {
    display: flex;
    flex-wrap: wrap;
}

.list_result .list_result_attribute dl dd {
    color: #595959;
}

.list_result .list_result_attribute dl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: auto;
}

.list_result .list_result_attribute dl dt,
.list_result .list_result_attribute dl dd {
    width: 140px;
    margin-right: 0;
    margin-bottom: 0;
}

.list_result .list_result_attribute .sex_age {
    font-size: 14px;
    margin-top: 5px;
    flex: 0 0 100%;
}

.list_result .list_result_attribute dt.list_result_status {
    background: #000;
}

.list_result_title {
    color: #2C58FA;
    font-weight: bold;
    font-size: 18px;
    margin: 7px 0;
}

.list_result .list_result_attribute dl,
.list_result .list_result_attribute p {
    font-size: 16px !important;
}

.list_result .row dl {
    font-size: 16px !important;
}

/* Keep restored links from staying faded */
#sport_list_result a:focus,
.list_result a:focus {
    opacity: 1;
}

/* PC hover effect only; touch stays opaque */
@media (hover: hover) and (pointer: fine) {
    #sport_list_result a:hover,
    .list_result a:hover {
        opacity: .8;
    }
}

.list_result dl.list_result_details {
    width: 100%;
    grid-template-columns: 100px 1fr;
    text-align: left;
    margin-bottom: 7px;
}

.list_result dl.list_result_details:last-child {
    margin-bottom: 0;
}

.list_result .list_result_details dt,
.list_result .list_result_details dd {
    background: none;
    border-radius: 0;
    color: #595959;
    width: 100%;
    padding: 0;
}

.list_result .list_result_details dd {
    background: #F2F2F2;
    border-radius: 4px;
    padding: 2px 10px;
}

.list_result .list_result_details dt.map_pin::before {
    content: "";
    background-image: url(../img/icon/map.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 16px;
    height: 20px;
    position: relative;
    top: 0px;
    margin-right: 3px;
}

.list_result .list_result_details dt.activity_time::before {
    content: "";
    background-image: url(../img/icon/clock.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 16px;
    height: 20px;
    position: relative;
    top: 0px;
    margin-right: 3px;
}

.list_result .list_result_details dt.level::before {
    content: "";
    background-image: url(../img/icon/star.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 16px;
    height: 20px;
    position: relative;
    top: 0px;
    margin-right: 3px;
}

.pic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    background-color: #fefefe;
    gap: 1rem;
}

.pc-pagination {
    display: flex;
}

.sp-pagination {
    display: none;
}

.pagination {
    display: flex;
    gap: 1rem;
}

.pagination a {
    display: inline-block;
    color: black;
    border-radius: 50%;
    border: 1px solid #2C58FA;
    text-decoration: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.pagination i {
    line-height: 40px;
}

.pagination .active a {
    background-color: #2C58FA;
    color: white;
}

.pagination a:hover {
    opacity: .7;
    transition: .3s;
}

.pagination .disabled a {
    pointer-events: none;
}

.edit_link {
    font-size: 14px;
    text-align: right;
}

.list_edit_link {
    position: absolute;
    right: 0px;
    top: 5px;
}

.list_result_attribute.rel {
    position: relative;
}

.profile_detail dl {
    display: block;
    text-align: left;
    width: 100%;
}

.profile_detail dt {
    background: none;
    border-radius: 0;
    color: #595959;
}

.profile_detail p.profile_content {
    background: #F2F2F2;
    border-radius: 9px;
    padding: 7px 10px;
}

.play-sports-set {
    margin-bottom: 20px;
}

.play-sports-set__title {
    font-weight: bold;
    color: #595959;
    margin: 0 0 6px;
}

.play-sports-set__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 15px;
}

.play-sports-set__field.level-field {
    grid-column: 1 / -1;
    width: calc((100% - 20px) / 2);
    justify-self: start;
}

.play-sports-set__field .s-text {
    margin-bottom: 6px;
}

.play-sports-set__field .selectbox,
.play-sports-set__field select {
    width: 100%;
}

.play-sports-set__field.level-field {
    grid-column: 1 / -1;
    max-width: calc((100% - 20px) / 2);
    justify-self: start;
}

@media (max-width: 767px) {
    .play-sports-set__grid {
        grid-template-columns: 1fr;
    }
    .play-sports-set__field.level-field {
        width: 100%;
        max-width: 100%;
    }
}

/* mypage */

#mypage .preview-img {
    border-radius: 200px;
}

#mypage .profile_detail p {
    margin-bottom: 5px;
}

#mypage .profile_detail ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    gap: 10px;
}

#mypage .profile_detail ul li {
    list-style: none;
    background: #F2F2F2;
    border-radius: 9px;
    padding: 7px 10px;
    width: 100%;
}

#mypage .profile_detail p.profile_content {
    margin-bottom: 20px;
}

#mypage .message_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdbf1c;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.7rem 0;
    border-radius: 6px;
    width: 320px;
}

.message_btn:after {
    content: 'メッセージ管理';
}

.message_btn i:before {
    content: "";
    background-image: url(../img/mypage/mypage_comment.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: -2px;
    left: -4px;
}

.message_btn:hover {
    opacity: .7;
    transition: .3s;
}

.circle_add {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdbf1c;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.7rem 0;
    border-radius: 6px;
    width: 320px;
}

.circle_add:after {
    content: 'サークルを作る';
}

.circle_add i:before {
    content: "";
    background-image: url(../img/mypage/mypage_plus.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: -2px;
    left: -4px;
}

.circle_add:hover {
    opacity: .7;
    transition: .3s;
}

#mypage #browsing_history {
    margin-top: 50px;
}

#mypage #browsing_history dl {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 13px;
}

#mypage #browsing_history dl dt {
    margin: 0 0 5px 0;
}

.browsing_history_pc {
    display: block;
}

.browsing_history_sp {
    display: none;
}

.error_message p {
    color: red;
    font-size: 13px;
    margin-bottom: 5px;
}

input.disable {
    border: solid 1px #9A9A9A;
    background: #D9D9D9;
    padding: 3px 5px;
}

#mypage input {
    border: solid 1px #9A9A9A;
    padding: 3px 5px;
}

#mypage .form-control {
    border-radius: 0;
}

#mypage .form-control.is-invalid {
    border-color: #dc3545;
}

#mypage .form-select.is-valid,
#mypage .form-select.is-invalid,
#mypage .form-control.is-valid,
#mypage .form-control.is-invalid {
    background-image: none !important;
}

.password_available_symbols {
    font-size: 13px;
}

.password_available_symbols .label {
    background: #C4C4C4;
    border: solid 1px #C4C4C4;
    color: #676767;
    padding: 7px;
    width: 140px;
}

.password_available_symbols .sentence {
    border: solid 1px #C4C4C4;
    color: #9A9A9A;
    padding: 7px;
    width: 200px;
}


.image_add {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D9D9D9;
    color: #595959;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.7rem 0;
    border-radius: 6px;
    width: 190px;
    margin-top: 10px;
}

.image_add:after {
    content: '画像をアップロード';
}

.image_add i:before {
    content: "";
    background-image: url(../img/icon/camera.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: -2px;
    left: -4px;
}

.image_add_02 {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D9D9D9;
    color: #595959;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.7rem 0;
    border-radius: 6px;
    width: 113px;
}

.image_add_02:after {
    content: '画像追加';
}

.image_add_02 i:before {
    content: "";
    background-image: url(../img/icon/camera.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: -2px;
    left: -4px;
}


.edit_image {
    border: solid 1px #9A9A9A;
    background: #F5F5F5;
    width: 190px;
    margin-bottom: 20px;
    position: relative;
}

.edit_image::before {
    content: "";
    background-image: url(../img/mypage/x.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 2px;
    right: 2px;
}

.edit_image img {
    width: 188px;
    border-radius: 150px;
}



#mypage input[type=number],
#mypage input[type=text],
#mypage input[type=email],
#mypage input[type=password],
#mypage textarea {
    width: 100%;
    font-size: 0.8rem;
}

#mypage select {
    appearance: none;
    min-width: 200px;
    padding: 3px 5px;
    border: solid 1px #9A9A9A;
    background-color: #fff;
    color: #333333;
    font-size: 0.8rem;
    cursor: pointer;
}

#mypage textarea {
    padding: 3px 5px;
    border: solid 1px #9A9A9A;
    border-radius: 0px;
    font-weight: normal !important;
    font-family: inherit !important;
    font-style: normal !important;
    line-height: normal !important;
}

.edit_save {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2C58FA;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.7rem 0;
    border-radius: 6px;
    width: 320px;
}

.btn01:hover {
    opacity: .7;
    transition: .3s;
}

.disable_area {
    background: #D9D9D9;
    font-size: 0.8rem;
    border: solid 1px #9A9A9A;
    padding: 3px 5px;
    min-height: 27px;        /* ← これを追加 */
    line-height: 1.5;        /* ← 文字が入った時も安定 */
    display: block;          /* 念のため明示 */
    word-break: break-word;
    overflow-wrap: break-word;


}

.edit_image_02 {
    border: solid 1px #9A9A9A;
    background: #F5F5F5;
    width: 190px;
    margin-bottom: 20px;
    position: relative;
}

.edit_image_02 img {
    width: 188px;
    border-radius: 150px;
}


.thumbnail_image {
    margin-bottom: 20px;
    position: relative;
    width: 280px;
}

.thumbnail_image::before {
    content: "";
    background-image: url(../img/mypage/x.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 2px;
    right: 2px;
}

.thumbnail_image img {
    width: 280px;
}

.thumbnail_image_confirm {
    margin-bottom: 20px;
    position: relative;
    width: 280px;
}

.gallery_image {
    margin-bottom: 10px;
    position: relative;
    width: 110px;
}

.gallery_image::before {
    content: "";
    background-image: url(../img/mypage/x.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 2px;
    right: 2px;
}


.gallery_image_confirm {
    margin-bottom: 20px;
    position: relative;
    width: 110px;
}

.menber_image img {
    width: 110px;
}

.menber_image {
    margin-bottom: 20px;
    position: relative;
    width: 96px;
}

.menber_image::before {
    content: "";
    background-image: url(../img/mypage/x.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 2px;
    right: 2px;
}

.menber_image img {
    width: 96px;
}

.menber_image_del {
    position: relative;
    padding-left: 12px;
}

.menber_image_del::before {
    content: "";
    background-image: url(../img/mypage/trash.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 13px;
    position: absolute;
    top: 0px;
    left: 0px;
}

.line_image {
    border: solid 1px #9A9A9A;
    background: #F5F5F5;
    width: 190px;
    margin-bottom: 20px;
    position: relative;
}

.line_image::before {
    content: "";
    background-image: url(../img/mypage/x.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 2px;
    right: 2px;
}

.line_image img {
    width: 190px;
}

.modal-content {
    width: 850px;
    border-radius: 0;
    box-shadow: 0px 0px 0px 6px rgba(150, 150, 150, 1);
}

.modal-dialog {
    max-width: 850px;
    margin-top: 6vh;
}

.modal-header {
    border-bottom: none;
    padding: 20px 16px 0 16px;
}

.modal-header h2 {
    width: 100%;
}

.modal-body {
    border-bottom: none;
    padding: 0 26px;
}

.modal-footer {
    border-top: none;
    justify-content: center;
    padding-bottom: 1.5rem;
}

.modal_li {
    color: #E80000;
    padding-left: 1rem;
    list-style: circle;
}

.form-check-input:disabled ~ .form-check-label,
.form-check-input[disabled] ~ .form-check-label {
    opacity: .9;
}

.form-check-input:disabled {
    opacity: .9;
}


#loginModal input[type=email],
#loginModal input[type=password] {
    width: 330px;
    border: solid 1px #9A9A9A;
    padding: 3px 5px 3px 30px;
    position: relative;
    display: block;
}

.login-modal-mail,
.login-modal-password {
    position: relative;
    width: 100%;
}

.login-modal-mail input[type="email"],
.login-modal-mail .login-modal-text {
    padding-left: 44px;
}

#mypage .login-modal-mail input[type="email"],
#mypage .login-modal-mail .login-modal-text {
    padding-left: 35px;
}

.login-modal-mail::before {
    content: "";
    background-image: url(../img/modal_mail.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 1100;
}

.login-modal-mail--with-label::before {
    top: 35px;
    left: 5px;
    transform: none;
}

.login-modal-mail--with-label input[type="email"],
.login-modal-mail--with-label .login-modal-text {
    padding-left: 30px;
}

#mypage .login-modal-mail--with-label input[type="email"],
#mypage .login-modal-mail--with-label .login-modal-text {
    padding-left: 30px;
}

.login-modal-password::before {
    content: "";
    background-image: url(../img/modal_password.svg);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 35px;
    left: 5px;
    z-index: 1100;
}

.modal-content .close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #ccc;
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0);
    border: solid 2px #ccc;
    cursor: pointer;
    z-index: 10000;
}

.modal-content .close-btn::before {
    content: "✕";
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 22px;
    height: 33px;
    font-size: 23px;
    position: relative;
    top: -6px;
}

#modal-logo {
    display: grid;
    justify-content: center;
}

#modal-logo img {
    width: 250px;
}

.modal-title {
    color: #9A9A9A;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-signup-message {
    width: 100%;
    max-width: 640px;
}

.modal-signup-message .signup-notice {
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .modal-signup-message.col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


#password_reissue ::placeholder {
    color: #d1d1d1;
}

#loginModal ::placeholder,
.login-modal-text::placeholder {
    color: #d1d1d1;
}


#terms ol{
    padding-left: 25px;
}

#terms ol li{
    margin-bottom: 5px;
}

#about p{
    line-height: 1.7;
}

/* footer */

footer {
    background: #595959;
    color: white;
    display: grid;
    row-gap: 20px;
    justify-items: center;
    padding: 2rem 0 1rem;
}

footer .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    text-align: center;
}

footer .grid__item {
    flex: 0 0 180px;
}

footer a {
    color: white;
}

footer div {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

footer .copy {
    color: #ffffff;
    text-align: center;
}

#circle_details footer {
    height: 220px;
    padding: 0 0 5rem 0;
}



/* ad */

.top_ad {
    display: grid;
    justify-content: center;
    align-content: center;
    margin: 2rem 0;
}

.side_ad {
    margin-bottom: 15px;
}


/* MediaQuery */

.pc_only {
    display: block!important;
}

.sp_only {
    display: none!important;
}

@media screen and (max-width: 820px) {

    img {
        width: auto;
    }

    header div {
        width: 100%;
        margin: 0 auto;
    }
    header div.grid {
        display: grid;
        grid-template-columns: 105px 1fr 47px;
        column-gap: 10px;
        align-items: center;
        justify-items: start;
        width: 93%;
    }

    header h1#logo img {
        width: 100px;
    }

    header #headline {
        font-size: 11px;
    }

    header #comp_sp {
        width: 100%;
    }

    header #comp_sp:not(.header-sp-nav) {
        display: grid;
        font-size: 12px;
        justify-items: center;
    }

    header #comp_sp:not(.header-sp-nav) a {
        background: #2C58FA;
        border-radius: 20px;
        padding: 6px;
    }

    header #comp_sp:not(.header-sp-nav) a img {
        color: #fff;
        width: 20px;
    }

    header #comp_sp.header-sp-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
    }

    .header-sp-nav__logout {
        background: #E5E5E5;
        color: #333;
        padding: 4px 10px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        text-decoration: none;
        white-space: nowrap;
    }

    .header-sp-nav__mypage {
        color: #2C58FA;
        text-decoration: none;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        white-space: nowrap;
    }

    .header-sp-nav__label {
        font-size: 11px;
        line-height: 1;
    }

    .header-sp-nav__icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #2C58FA;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 14px;
    }

    header .header-sp-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    .top_ad {
        display: grid;
        justify-content: center;
        align-content: center;
        margin: 1.5rem 0 2rem;
    }

    main {
        width: auto;
        margin: 0 1rem;
    }
    .login-main {
        padding: 20px 0 40px;
    }
    .main {
        width: 100%;
        min-width: 0;
    }

    .wrapper.grid {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: stretch;
        column-gap: 0;
        width: 100%;
    }

    .wrapper.grid > * {
        width: 100%;
        min-width: 0;
    }

    .l_sidebar {
        width: 100%;
    }

    .l_sidebar aside {
        width: auto;
    }

    #circle .circle-search-grid {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 20px;
        column-gap: 20px;
        margin: 0 auto 30px;
        justify-items: center;
        width: 100%;
    }

    #circle .subgrid {
        display: grid;
        grid-template-columns: 95px 220px;
        align-items: center;
        justify-content: start;
        justify-items: start;
    }

    #circle .category {
        order: 1;
    }

    #circle .sport {
        order: 2;
    }

    #circle .prefectures {
        order: 3;
    }

    #circle .city {
        order: 4;
    }

    #circle .sex {
        order: 5;
    }

    #circle .age {
        order: 6;
    }

    #circle .subgrid select {
        width: 220px;
        color: #212529;
    }

    .dropdown-toggle::after {
        margin-left: 5.255em;
    }

    #search_sport .container {
        display: grid;
        grid-template: repeat(3, 90px) / repeat(3, 95px);
        gap: 55px 25px;
        margin-bottom: 70px;
        font-weight: bold;
        padding: 0;
        justify-content: center;
    }

    #search_sport .soccer::before {
        height: 78px;
    }

    #search_sport .futsal::before {
        height: 78px;
    }

    #search_sport .basketball::before {
        height: 78px;
    }

    #search_sport .baseball::before {
        height: 78px;
    }

    #search_sport .volleyball::before {
        height: 78px;
    }

    #search_sport .cycling::before {
        height: 78px;
    }

    #search_sport .tennis::before {
        height: 78px;
    }

    #search_sport .table_tennis::before {
        height: 78px;
    }

    #search_sport .badminton::before {
        height: 78px;
    }

    #search_sport .running::before {
        height: 78px;
    }

    #search_area {
        height: 760px;
    }

    #search_area h4 {
        font-size: 20px;
        padding: 5px 0;
    }

    #search_area .container {
        display: grid;
        grid-template: repeat(5, 90px) / repeat(2, 158px);
        gap: 52px 18px;
        margin-bottom: 0px;
        font-weight: bold;
        padding: 0;
        justify-content: center;
    }

    #search_area .container p {
        font-size: 15px;
        margin-bottom: 0;
    }

    #search_area #koushinetu {
        width: 160px;
        height: 115px;
        position: static;
    }

    #search_area #koushinetu p {
        margin-top: 12px;
    }

    #search_area #hokkaidou {
        width: 160px;
        height: 115px;
        position: static;
    }

    #search_area .container #hokkaidou p {
        font-size: 15px;
        margin-top: 22px;
    }

    #search_area #tyugoku {
        width: 160px;
        height: 110px;
        position: static;
    }

    #search_area #touhoku {
        width: 160px;
        height: 110px;
        position: static;
    }

    #search_area #kanto {
        width: 160px;
        height: 130px;
        position: static;
    }

    #search_area #tokai {
        width: 160px;
        height: 110px;
        position: static;
    }

    #search_area #kansai {
        width: 160px;
        height: 110px;
        position: static;
    }

    #search_area #shikoku {
        width: 160px;
        height: 110px;
        position: static;
    }

    #search_area #kyusyu {
        width: 160px;
        height: 130px;
        position: static;
    }

    #search_area::before {
        position: absolute;
        z-index: -1;
        content: "";
        background-image: url(../img/japan_map.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: 0px 90px;
        vertical-align: middle;
        display: inline-block;
        width: 92vw;
    }

    #search_gender {
        width: auto;
        margin-bottom: 2rem;
    }

    #search_age h4 {
        font-size: 2rem;
    }

    #search_gender_age {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: 30px;
        grid-row-gap: 0px;
        height: 310px;
    }

    #sport_list section ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
        column-gap: 45px;
        padding: 0;
    }


    #circle_list .circle_desc {
        display: block;
    }

    #circle_list .circle_desc_img {
        margin-bottom: 20px;
    }

    .list_result {
        margin-bottom: 1.5rem;
    }

    .list_result dl.list_result_details {
        margin-top: 10px;
    }

    .list_result .list_result_attribute {
        display: block;
    }

    .list_result_details {
        display: block;
    }

    .list_result_details dt {
        margin-bottom: 5px;
    }

    .list_result .list_result_details dd {
        padding: 7px 10px;
    }

    .list_result .list_result_attribute .sex_age {
        margin-top: 5px;
        margin-bottom: 12px;
    }

    .pc-pagination {
        display: none;
    }

    .sp-pagination {
        display: flex;
    }

    .pagination {
        gap: 0.5rem;
    }

    .p-fixed {
        padding: 1rem 0;
        z-index: 10;
    }

    #mypage .preview-img {
        width: 60%;
        border-radius: 200px;
    }

    .browsing_history_pc {
        display: none;
    }

    .browsing_history_sp {
        display: block;
    }

    .gallery_image {
        width: 158px;
    }

    .gallery_image img {
        width: 158px;
    }

    .gallery_image_confirm {
        width: 158px;
    }

    p.menber_name {
        max-width: 100px;
    }

    input.menber_name {
        max-width: 100px;
    }

    .modal-dialog {
        margin-top: 2vh;
    }


    .modal-content {
        width: auto;
    }

    #loginModal input[type=email],
    #loginModal input[type=password] {
        width: 100%;
    }

    #login-mail,
    #login-pass,
    #login-new-mail {}

    #terms li {
        margin-bottom: 10px;
    }

    footer {
        height: fit-content;
        padding: 2rem 0 1rem;
    }

    footer div {
        width: auto;
        margin: 0 auto;
    }
    footer .grid {
        display: block;
        flex-direction: column;
        gap: 20px;
    }
    footer .grid__item {
        display: block;
        flex: none;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    footer .copy {
        font-size: 13px;
        margin: 2rem 0 1rem;
    }

    #circle_details footer {
        height: 330px;
        padding: 2rem 0 5rem 0;
    }


    .pc_only {
        display: none!important;
    }

    .sp_only {
        display: block!important;
    }

}

/* Profile Image Cropper Styles Override */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image-container .profile-image-preview {
    border: solid 1px #9A9A9A;
    background: #F5F5F5;
    width: 120px;
    margin-bottom: 30px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 新しいプロフィール画像スタイル - アップロードボタンと同じ幅 */
.profile-image-preview-new {
    position: relative;
    width: 190px !important;
    height: 190px !important;
    border-radius: 50% !important;
    overflow: hidden;
    border: none !important;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px !important;
}

.profile-image-preview-new img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-image-container .profile-image-preview::before {
    display: none !important;
}

.profile-image-container .profile-image-preview img {
    width: 118px;
    border-radius: 50%;
}

.remove-image-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1;
    padding: 0;
}

.remove-image-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
}

/* Crop Modal Styles */
.crop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    width: 580px;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.crop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
}

.crop-header h3 {
    margin: 0;
    color: #333;
    font-weight: normal;
    font-size: 16px;
}

.crop-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.crop-container {
    padding: 20px;
    max-height: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.crop-container .cropper-container {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.crop-container img {
    max-width: 100%;
    max-height: 100%;
}

.crop-controls {
    padding: 25px 30px 15px;
    border-top: 1px solid #ddd;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.crop-controls label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.crop-controls input[type="range"] {
    flex: 1;
    accent-color: #2C58FA;
}

/* 円形クロップボックス - ボーダーなし */
.cropper-crop-box {
    border-radius: 50% !important;
    overflow: hidden !important;
    border: none !important;
}

.cropper-view-box {
    border-radius: 50% !important;
    outline: none !important;
    border: none !important;
}

.cropper-face {
    border-radius: 50% !important;
    border: none !important;
}

/* リサイズハンドルを非表示（円形では混乱を避けるため） */
.cropper-point,
.cropper-line {
    display: none !important;
}

/* クロップ領域以外を白いオーバーレイで覆って、クロップ領域内をくっきり見せる */
.cropper-modal {
    background: rgba(255, 255, 255, 1) !important;
}

/* cropperの全ての背景要素を統一 */
.cropper-bg,
.cropper-canvas,
.cropper-wrap-box {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* ===== ズームコントロール ===== */
.zoom-control-container {
    width: 70%;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.zoom-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    transition: background-color .2s;
}

.zoom-button:hover {
    background: #f0f0f0;
}

.crop-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 18px 30px 25px;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
}

.crop-cancel,
.crop-apply {
    min-width: 120px;
    border: none;
    border-radius: 4px;
    padding: 10px 40px;
    cursor: pointer;
}

.crop-cancel {
    background: #6c757d;
    color: white;
}

.crop-cancel:hover {
    background: #545b62;
}

.crop-apply {
    background: #2C58FA;
    color: white;
}

.crop-apply:hover {
    background: #1e47d8;
}

/* ===== スマートフォン対応 ===== */
@media (max-width: 768px) {
    /* モーダルサイズ調整 */
    .crop-modal-content {
        width: 95vw;
        height: 90vh;
        max-width: none;
        margin: 20px;
    }
    
    /* クロップ領域 */
    .crop-container {
        height: 60vh;
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* ヘッダー・コントロール領域の調整 */
    .crop-header {
        padding: 15px;
    }
    
    .crop-controls {
        padding: 10px 15px;
    }
    
    /* ズームコントロール */
    .zoom-control-container {
        width: 100%;
        max-width: 280px;
    }
    
    #zoom-slider {
        min-width: 180px;
        max-width: 220px;
    }
    
    /* アクションボタン */
    .crop-actions {
        justify-content: center;
        padding: 15px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .crop-actions .btn {
        flex: 1 1 45%;
        max-width: 160px;
        min-width: 120px;
    }

    .selectbox {
        display: block;
        width: 100%;
    }

    .selectbox::after {
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .selectbox select,
    #mypage select,
    #circle select {
        width: 100%;
        min-width: unset;
        font-size: 14px;
    }

    select option {
        font-size: 14px;
    }

    .form-row,
    .form-row > [class*="col-"],
    .form-row .col {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .form-row > .col-sm-3 {
        margin-bottom: 5px;
    }

    .form-row--region p,
    .form-row--sports p,
    .form-row--body p {
        margin-bottom: 5px;
    }
    .form-row--password-request p {
        margin-bottom: 5px;
    }

.form-row--region .row,
.form-row--sports .row,
.form-row--body .row,
.form-row--password-request .row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.form-row--body .row .mb20 {
    margin-bottom: 0 !important;
}

.form-row--region .row > .col,
.form-row--sports .row > .col,
.form-row--body .row > .col,
.form-row--password-request .row > .col,
.form-row--region .row > [class*="col-"],
.form-row--sports .row > [class*="col-"],
.form-row--body .row > [class*="col-"],
.form-row--password-request .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    flex: 1 1 100%;
}
.form-row--body .row > .col span,
.form-row--body .row > [class*="col-"] span {
    display: block;
    width: 100%;
}

.form-row--sports .s-text {
    margin-top: 10px;
}

.form-row select:not(.form-control),
.form-row select.form-control {
    display: block;
    width: 100%;
}

.form-row .disable_area {
    display: block;
    width: 100%;
    font-size: 1rem;
}

}

.crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.crop-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.crop-cancel:hover {
    background: #545b62;
}

.crop-apply {
    background: #2C58FA;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.crop-apply:hover {
    background: #1e47d8;
}


/* ===============================
   サムネイル画像（プロフィールUI準拠 / 3:2）
   =============================== */

.thumbnail-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* プレビュー枠（3:2 固定） */
.thumbnail-preview {
    position: relative;
    width: 260px;                  /* 固定幅 */
    height: calc(260px * 0.66);    /* ← 3:2 */
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* プレビュー画像 */
.thumbnail-preview .preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* サムネイルなど丸くしたくない preview-img を上書き */
.thumbnail-preview .preview-img,
.gallery_image img,
#main-preview {
    border-radius: 0 !important;
}

/* サムネイルの削除ボタン位置調整 */
.thumbnail-preview .remove-image-btn {
    top: 4px !important;   /* 内側へ */
    right: 4px !important; /* 内側へ */
}

/* ===============================
   ギャラリー画像（3:2固定）
   =============================== */

.gallery-row {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    --bs-gutter-x: 0 !important;
}

.gallery-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 固定 3:2 サイズ */
.gallery_image {
    width: 100px;
    height: calc(100px * 2 / 3); /* 3:2 */
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.gallery_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ギャラリー用アップロードボタン */
.image_add_02 {
    width: 100px;
    margin-top: 8px;
}

/* ギャラリー画像の削除ボタン位置調整 */
.gallery_image .remove-image-btn {
    top: 4px !important;
    right: 4px !important;
}

.gallery_image::before {
    content: none !important;
}

/* ===============================
   共通：削除ボタン
   =============================== */

.remove-image-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.remove-image-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}


/* ============================
   メンバー画像カード全体
   ============================ */
.member-item {
    width: 120px;                 /* お好みで調整可能 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================
   画像プレビュー（3:4で固定）
   ============================ */
.member-item .menber_image {
    width: 120px;
    height: 120px;  /* ← 3:4比率（縦長） */
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* メンバー画像 */
.member-item .menber_image img.preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 画像選択ボタン */
.member-item .image_add {
    width: 120px;
    margin-bottom: 8px;
}

/* テキスト入力欄 */
.member-item .menber_name {
    width: 120px;
    margin-bottom: 6px;
}

/* 削除リンク */
.member-item .menber_image_del {
    font-size: 12px;
    text-align: center;
}

/* ======================================
   メンバー追加ボタン（image_add と同じ見た目）
   ====================================== */
.add-member-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D9D9D9;
    color: #595959;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.7rem 0;
    border-radius: 6px;
    width: 190px;            /* サムネイルと同じ幅 */
    margin-top: 10px;
    text-align: center;
}

/* hover の動きも image_add と同じ */
.add-member-btn:hover {
    opacity: .7;
    transition: .3s;
}

/* image_add にある「画像をアップロード」の擬似要素を無効化 */
.add-member-btn::after {
    content: none !important;
}

.member-upload-btn::after {
    content: '画像を追加';
}

/* メンバー画像用アップロードボタン（アイコンのズレ修正） */
.member-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;          /* お好みで調整可：サムネと同じくらいの幅 */
    padding: 0.7rem 0;
}

/* カメラアイコンをボタン内にきれいに収める */
.member-upload-btn i:before {
    position: static;      /* relative のズレをリセット */
    top: auto;
    left: auto;
    margin-right: 4px;     /* 文字との余白 */
}

/* メンバー画像のカード全体（横並び＋余白） */
#member-list {
    display: flex;
    flex-wrap: wrap;   /* 5人以上になった場合は次の行へ */
    gap: 16px;         /* カード同士のスキマ */
}

/* 各メンバーカード */
#member-list .member-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* メンバー画像用アップロードボタン（幅を広げる） */
.member-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;              /* ← 好きな幅に調整可能（現状より少し広め） */
    padding: 0.7rem 0;
}

/* カメラアイコンの位置調整：左に寄り過ぎを防ぐ */
.member-upload-btn i:before {
    margin-right: 8px;         /* ← アイコンと文字の間に余白を追加 */
    position: relative;
    top: 0;
    left: 0;
}

/* メンバー画像の古い × アイコンを完全に無効化 */
.menber_image::before {
    display: none !important;
    content: unset !important;
}

/* QRコード部分の初期×を消す */
#qr-upload-section .line_image::before {
    content: none !important;
}

.placeholder-gray::placeholder {
    color: #AAAAAA;
}

.circle_desc_txt {
    word-break: break-word;
    overflow-wrap: break-word;
}



/* サークル公開状態ボタン */
.circle-visibility-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px; /* ピル型 */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
}

/* 公開中 */
.circle-visibility-btn.is-public {
    background-color: #2f5cff; /* ブランドブルー寄せ */
    color: #fff;
}

.circle-visibility-btn.is-public:hover {
    background-color: #1f46d6;
}

/* 非公開中 */
.circle-visibility-btn.is-private {
    background-color: #e5e5e5;
    color: #555;
}

.circle-visibility-btn.is-private:hover {
    background-color: #d5d5d5;
    color: #333;
}

/* 右下に寄せる用（既存の text-right があれば不要） */
.circle-visibility-wrapper {
    margin-top: 12px;
    text-align: right;
}