body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #f4f4f4;
}

.container {
  width: 80vw;
  margin: 50px auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.container_min {
  width: 570px;
  margin: 50px auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

h1 {
  text-align: center;
  color: #004d00;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-image-source: linear-gradient(90deg, #ffffff, #48922b, #ffffff);
  border-image-slice: 1;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
input[type='tel'] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #004d00;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #003300;
}

.required {
  display: inline-block;
  border: 1px solid red;
  background-color: white;
  color: red;
  padding: 2px 4px;
  font-size: 0.8em;
  border-radius: 4px;
}

.gender-options {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.gender-options input[type='radio'] {
  display: none;
}

.gender-options label.gender-label {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  background-color: #f4f4f4;
}

.gender-options input[type='radio']:checked + label.gender-label {
  background-color: #004d00;
  color: white;
  border-color: #004d00;
}

.form-group.agreement {
  display: flex;
  align-items: center;
  border: 2px solid #004d00;
  padding: 10px;
  border-radius: 4px;
}

.form-group.agreement input[type='checkbox'] {
  margin-right: 10px;
}

.icon-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  margin: 10px;
  width: 120px;
  color: #004d00;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  transition: background-color 0.2s ease;
}

.icon-button:hover {
  background-color: #f0f0f0;
  border-width: 1px;
  border-style: solid;
  border-image-source: linear-gradient(60deg, #48922b, #ffffff, #48922b);
  border-image-slice: 1;
}

.icon-button img {
  width: 64px;
  height: 64px;
}

.icon-button span {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
}

.content {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/*月例会のリスト*/
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th,
td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}
th {
  background-color: #004d00;
  color: #fff;
}
.button {
  padding: 5px 10px;
  background-color: #004d00;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}
.closed {
  color: #999;
  font-weight: bold;
  white-space: nowrap;
}
.no-available {
  text-align: center;
  padding: 20px;
  font-size: 18px;
  color: #004d00;
}

/*月例会の申し込み*/

.competition-details {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}
table.details-table {
  width: 100%;
  border-collapse: collapse;
}
table.details-table th,
table.details-table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
  color: #000000;
}
table.details-table th {
  background-color: #f0f0f0;
  width: 30%;
}
.apply-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #004d00;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  margin-top: 20px;
  cursor: pointer;
}
.status-message {
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  color: #999;
}
.applicants-list {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}
.applicants-list h3 {
  margin-bottom: 10px;
  color: #004d00;
}
table.applicants-table {
  width: 100%;
  border-collapse: collapse;
}
table.applicants-table th,
table.applicants-table td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
}

/*オリジナルイベントのリスト*/
.event-details {
  max-width: 90%;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}
table.details-table {
  width: 100%;
  border-collapse: collapse;
}
table.details-table th,
table.details-table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
}
table.details-table th {
  background-color: #f0f0f0;
  width: 30%;
}

.description {
  margin-top: 20px;
  padding: 10px;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.plan-selection {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}
.plan-selection h3 {
  margin-top: 0;
}
.plan-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-options input[type='radio'] {
  display: none;
}

.plan-option-label {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.plan-options input[type='radio']:checked + label.plan-option-label {
  background-color: #004d00;
  border-color: #004d00;
  color: #fff;
}
.application-status {
  margin-top: 20px;
}
.apply-button {
  padding: 10px 20px;
  background-color: #004d00;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.status-message {
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  color: #999;
}
.applicants-list {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}
.applicants-list h3 {
  margin-bottom: 10px;
  color: #004d00;
}
table.applicants-table {
  width: 100%;
  border-collapse: collapse;
}
table.applicants-table th,
table.applicants-table td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
}

/*プロフィール*/
.profile-container {
  max-width: 600px;
  margin: 50px auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
}
.profile-container h1 {
  text-align: center;
  color: #004d00;
  margin-bottom: 20px;
}
.profile-table {
  width: 100%;
  border-collapse: collapse;
}
.profile-table th,
.profile-table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
  color: #000000;
}
.profile-table th {
  background-color: #f0f0f0;
  width: 35%;
}
.edit-button {
  display: block;
  width: 200px;
  margin: 20px auto 0;
  padding: 10px;
  background-color: #004d00;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
}

/*プロフィール編集*/

h1 {
  text-align: center;
  color: #004d00;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}
.required {
  display: inline-block;
  border: 1px solid red;
  background-color: white;
  color: red;
  padding: 2px 4px;
  font-size: 0.8em;
  border-radius: 4px;
}
input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
input[type='tel'] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.gender-group {
  margin-bottom: 15px;
}
.gender-options {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}
.gender-options input[type='radio'] {
  display: none;
}
.gender-label {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f4f4f4;
  flex: 1;
  text-align: center;
}
.gender-options input[type='radio']:checked + label.gender-label {
  background-color: #004d00;
  color: white;
  border-color: #004d00;
}
button {
  width: 100%;
  padding: 10px;
  background-color: #004d00;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
button:hover {
  background-color: #003300;
}
.cancel-button {
  display: block;
  width: 200px;
  margin: 10px auto;
  padding: 10px;
  background-color: #ccc;
  color: #000;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cancel-button {
  display: block;
  width: 200px;
  margin: 10px auto;
  padding: 10px;
  background-color: #ccc;
  color: #000;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-group input,
.form-group button {
  box-sizing: border-box;
}
.form_low {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px auto;
}

.form_low a {
  text-decoration: none;
  color: #000000;
}

.form_complete{
  margin: 0 auto;
  text-align: left;
}

/*フレンドシップのコースエントリ－*/
.course_entry_flow{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.course_entry_flow .triangle-right {
  display: inline-block;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #000;
  height: fit-content;
  margin: 20px 20px 0 20px;
}

.course_entry_flow .flow_item{
  width: 200px;
  height: 90px;
  background-color:#234f11; 
  color: #ffffff;
  display: grid;
  border-radius: 25px;
  margin: 20px 0 0 0;
}

.course_entry_flow .flow_item p{
  margin: auto 0;
}

.course_list{
  display: flex;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  justify-content: center;
}


.left_text{
  text-align: left;
  margin: 0 70px;
}

.course{
  width: 320px;
  height: auto;
  border-width: 2px;
  border-style: solid;
  border-image-source: linear-gradient(60deg, #48922b, #ffffff, #48922b);
  border-image-slice: 1;
  margin: 20px;
}

.course a{
  text-decoration: none;
  color: #000000;
  transition: 0.3s ease-in-out;
}

.course a:hover{
  color:#48922b ;
}

.course h3{
  margin: 20px auto 0 auto;
  padding-bottom: 5px;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-image-source: linear-gradient(90deg, #ffffff, #48922b, #ffffff);
  border-image-slice: 1;
}

.course h3 span{
  font-size: 0.8em;
}

.course2{
  display: grid;
  grid-template-columns: 0.5fr auto 0.5fr;
}

.course2 div:nth-child(1){
  grid-column: 2/3;
}

.course .course_entry a {
  font-family: 'Noto Sans JP', sans-serif;
  color: #ffffff;
  background: linear-gradient(0deg, #234f11, #48922b);
  text-align: center;
  padding:5px 20px;
}

.course_entry a:hover {
  background: linear-gradient(0deg, #1e440f, #397521);
}

.course .course_entry{
  margin: 40px auto  20px auto ;
  width: fit-content;
}

/*コースコンタクト*/
.course_detail,
.course_contact .form-group{
  display: grid;
  width: 80%;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto auto;
  margin: 0 auto;
  text-align: left;
  column-gap: 20px;
  margin-bottom: 20px;
}

.course_contact .select_time{
  display: flex;
  flex-wrap: wrap;
}

.course_contact .select_time label{
  margin-right: 20px;
}

.course_contact .name{
  white-space: nowrap;
}

.course_contact_item{
  display: grid;
  grid-template-columns: 150px 150px;
  gap: 30px;
  justify-content: center;
}

.course_contact .asuta{
  grid-column: 2/3;
  font-size: 0.8em;
}

.course_name a{
  text-decoration: none;
  color: #004d00;
}

.course_contact .entry_name{
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.course_contact .entry_name::after,
.course_contact .entry_name::before{
 content: "";
 width: 70px;
 height: 0.4px;
 background-color: #004d00;
 display: block;
 margin: 0 20px;
 border-radius: 10px;
}

/*ニュース管理*/

.news_mypage_list{
  margin: 0 auto;
}

.news_mypage_list li{
  display: flex;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.news_mypage_list .label{
  color: #ffffff;
}

.news_mypage_list .day,
.news_mypage_list .text{
color: #000000;
margin: auto 0;
}
textarea{
  height: 150px;
}

.add_clear{
  display: flex;
  flex-flow: column;
  align-items: end;
}

.add_clear #clear{
  width: fit-content;
}


@media (max-width: 700px) {
  .course_entry_flow{
    flex-flow: column;
  }

  .course_entry_flow .triangle-right{
    border-width: 24px 14px 0 14px;
    border-color: #000 transparent transparent transparent;
    margin-top: 0;
  }

  .course_entry_flow .flow_item{
    width: 180px;
    height: 70px;
    margin: 5px 0;
  }

  .course{
    width: 168px;
    margin: 7px;
  }

  .course h3 span{
    white-space: nowrap;
  }

  .course h3{
    height: 33px;
  }

  .course2 {
    display: flex;
    flex-flow:column-reverse;
  }

  .course2 div:last-child{
    text-align: right;
    padding: 5px;
  }

  .course2 .course_entry{
    margin: 20px auto;
  }

  .left_text{
    margin: 0 20px;
  }

  .course_detail,
  .course_contact .form-group{
  width: 90%;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  row-gap: 7px; 
  }

  .pc {
    display: none;
  }
  .container,
  .container_min {
    padding: 5px 5px 15px 5px;
    width: 95vw;
  }
  h1 {
    font-size: 1.5em;
  }
  button {
    font-size: 14px;
    padding: 8px;
  }
}


