@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Theme URI: https://saruwakakun.design
 Author: SARUWAKA
 Author URI: https://saruwakakun.com
 Template: sango-theme
 Version: 4.0
*/
/*こちらはSANGOの子テーマ用CSSです。以下にCSSを記入していきましょう。*/

.one-column #main {
	max-width: unset;
}

.page-forfront .alignfull {
  padding: 0 var(--wp--custom--wrap--mobile--padding);
}

@media only screen and (min-width: 769px) {
  #logo img {
      padding: 12px 6px 12px 0;
  }
}


.sgb-box-menu__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media screen and (max-width: 767px) {
  .sgb-box-menu__item {
    justify-content: flex-start;
  }
}

.sgb-box-menu__item p {
  font-size: 18px;
  color: #344070;
}

@media screen and (max-width: 767px) {
  .sgb-box-menu__item p {
    font-size: 12px;
  }
}

.page-template-page-forfront input[type="search"] {
  font-size: 0.9em;
}

:root :where(.wp-element-button, .wp-block-button__link) {
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 200px;
  max-width: 100%;
}

@media screen and (max-width: 767px) {
  :root :where(.wp-element-button, .wp-block-button__link) {
    width: 75px;
  }
}


.passport-section,
.school-card {
  background: #fff;
  padding: 0;
  margin-bottom: 30px;
  border-radius: 11px 11px 12px 12px;
  border: 2px solid #344070;
  box-shadow: 0 4px 15px rgba(52, 64, 112, 0.15);
  position: relative;
}

.passport-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  border-radius: 12px 12px 0 0;
}

.passport-section h2,
.school-header {
  border-radius: 8px 8px 0 0;
  margin: 0 0 20px 0;
  color: #fff;
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  font-size: 18px;
  font-weight: 600;
  padding: 10px 20px;
  /* border-bottom: 2px solid #dee2e6; */
}

.school-header {
  margin-bottom: 0 !important;
}

.passport-section p,
.school-card p {
  color: #495057;
  margin-bottom: 15px;
  line-height: 1.6;
}

.passport-section .deadline-section,
.passport-section .passport-upload-section,
.school-card .deadline-section,
.school-card .passport-upload-section {
  background: #ffffff;
  padding: 0 20px 0;
  border-radius: 8px;
  /* border: 1px solid #e9ecef; */
  margin-bottom: 20px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.passport-section .deadline-section h3,
.passport-section .passport-upload-section h3,
.school-card .deadline-section h3,
.school-card .passport-upload-section h3 {
  color: #344070;
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .passport-section p,
  .school-card p {
    margin-bottom: 0;
  }

  .school-card p,
  .school-card ul li {
    font-size: 14px;
  }
}

.deadline-section,
.passport-upload-section {
  margin-top: 20px;
}

.admin-deadline-control {
  display: flex;
  gap: 10px;
  align-items: center;
}

.passport-deadline-input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.update-deadline-btn,
.view-passport-btn,
.upload-passport-btn {
  background: #344070;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.view-passport-btn {
  display: inline-block;
}

.update-deadline-btn:hover,
.view-passport-btn:hover,
.upload-passport-btn:hover {
  background: #006ba1;
}

.passport-upload-interface {
  border: 2px dashed #ddd;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}

.upload-instruction {
  margin-bottom: 15px;
  color: #666;
}

.upload-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.deadline-reminder {
  margin-top: 15px;
  color: #666;
}

.deadline-reminder.deadline-passed {
  color: #dc3545;
}

.upload-complete {
  color: #28a745 !important;
  font-weight: bold;
}

.awaiting-upload {
  color: #ffc107;
}

/* ワークフローテーブル */
.workflow-container h2:first-child {
  margin-top: 0;
}

/* ワークフローテーブルのスタイル */
.workflow-table {
  margin: 0 0 2rem;
  overflow-x: auto;
}

.workflow-table table {
  width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  margin-top: 0;
  /* border-radius: 8px; */
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
}

.workflow-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 8px;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
  font-size: 14px;
  text-align: center;
}

.workflow-table td {
  padding: 8px;
  border-bottom: 1px solid #e9ecef;
  color: #495057;
  vertical-align: middle;
  font-size: 14px;
}

.workflow-table td:first-child {
  line-height: 0;
  text-align: center;
}

.workflow-table td:nth-child(2) {
  width: 200px;
}

.workflow-table td:nth-child(3) {
  width: 450px;
}

.workflow-table tr:last-child td {
  border-bottom: none;
}

/* チェックボックスのスタイル */
.workflow-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workflow-table input[type="checkbox"]:checked {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

/* ボタンのスタイル */
.workflow-table button,
.update-deadline-btn,
.view-passport-btn,
.upload-passport-btn,
.save-url {
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
  margin-top: 8px;
}

.workflow-table button:hover,
.update-deadline-btn:hover,
.view-passport-btn:hover,
.upload-passport-btn:hover,
.save-url:hover {
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  opacity: 0.8;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

/* ファイル入力とセレクトボックスのスタイル */
.workflow-table input[type="file"],
.workflow-table select,
.workflow-table input[type="datetime-local"] {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  width: 100%;
  max-width: 300px;
  margin-right: 5px;
}

.workflow-table select:focus,
.workflow-table input[type="datetime-local"]:focus {
  outline: none;
  border-color: #344070;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* リンクのスタイル */
.workflow-table a {
  color: #344070;
  text-decoration: underline !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.workflow-table a:hover {
  color: #344070;
  text-decoration: underline;
}

/* ステータス表示のスタイル */
.workflow-table .status-complete {
  color: #10b981;
  font-weight: 500;
}

.workflow-table .status-pending {
  color: #f59e0b;
  font-weight: 500;
}

.url-input {
  margin-top: 10px;
}

.passport-section h2 {
  margin: 0;
}

/* ユーザー一覧 */
.users-list {
  margin: 2rem 0;
  overflow-x: auto;
}

.users-list table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.users-list th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.users-list td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.users-list tr:last-child td {
  border-bottom: none;
}

.users-list .button {
  display: inline-block;
  padding: 6px 12px;
  /* background: #007bff; */
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.users-list .button:hover {
  /* background: #0056b3; */
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  opacity: 0.8;
  /* text-decoration: none; */
}

@media screen and (max-width: 767px) {
  .users-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .users-list table {
    margin-top: 0 !important;
    min-width: 600px; /* テーブルの最小幅を設定 */
  }

  .users-list td,
  .users-list th {
    font-size: 12px;
    padding: 6px;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
  }

  .users-list td:first-child {
    width: 100px;
  }

  .users-list td:nth-child(2) {
    min-width: 150px;
    white-space: nowrap;
  }
}

/* マイページの学校情報 */
.schools-section {
  margin: 2rem 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.entry-content h3 {
  padding: 0 8px;
}

@media screen and (max-width: 767px) {
  .entry-content h2 {
    font-size: 18px;
  }

  .entry-content h3 {
    margin: 20px 0 8px;
    font-size: 16px;
    padding: 0 8px;
  }
}

.school-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.school-card-content {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
}

@media screen and (max-width: 767px) {
  .school-card-content {
    display: block;
  }
}

.school-name {
  margin-bottom: 0 !important;
}

.school-name a,
h2.school-name {
  color: #fff;
  margin: 0;
  font-size: 18px;
}

.school-name a {
  text-decoration: underline !important;
}

@media screen and (max-width: 767px) {
  .school-name a,
  h2.school-name {
    font-size: 14px;
  }
}

.country {
  background: #fff;
  color: #344070;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 14px;
}

@media screen and (max-width: 767px) {
  .country {
    font-size: 12px;
    padding: 4px 8px;
    white-space: nowrap;
  }
}


.info-group {
  margin-bottom: 1.5rem;
}

.info-group h4 {
  font-size: 1.1rem;
  color: #344070;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .info-group h4 {
    font-size: 14px;
  }
}

.period-info,
.courses-info {
  width: 100%;
}

.private-lesson-info,
.accommodation-info,
.meals-info,
.notes-info {
  width: calc(50% - 20px);
}

.courses-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.course-item {
  background: #f8f9fa;
  padding: 0.8rem;
  border-radius: 8px;
}

.course-type {
  display: block;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

@media screen and (max-width: 767px) {
  .course-type {
    font-size: 14px;
    margin-bottom: 0;
  }

  .course-period {
    font-size: 14px;
  }
}

.date-options-title {
  display: inline-block;
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  color: #fff;
  padding: 2px 20px;
  border-radius: 3px;
  font-size: 14px;
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .date-options-title {
    font-size: 14px;
    padding: 4px 8px;
  }
}

.accommodation-details,
.meal-details,
.notes-list {
  /* list-style: none; */
  padding: 0 0 0 1.2rem;
  margin: 0;
}

.accommodation-details li,
.meal-details li,
.notes-list li {
  padding-bottom: 0;
}

/* .notes-list {
  list-style: none;
} */

/* .accommodation-details li,
.meal-details li,
.notes-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
} */

/* 
.accommodation-details li:before,
.meal-details li:before,
.notes-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1a73e8;
} */

.notes-list a {
  color: #344070;
  text-decoration: underline !important;
}

.notes-list a:hover {
  text-decoration: underline;
}

.item-note {
  font-size: 0.9em;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
  white-space: pre-line; /* 改行を保持 */
}

.admin-only {
  display: none !important;
}

/* メニューカラー */
.sgb-box-menu__title {
  background-color: #344070 !important;
  color: #fff !important;
}

#footer-menu a,
.copyright {
  color: #fff !important;
}

/* 制限メッセージのモダンなボックスデザイン */
#wpmem_restricted_msg {
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  /* box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); */
  margin: 2rem 0;
  border: none;
  position: relative;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

#wpmem_restricted_msg p {
  margin-bottom: 0;
  line-height: 1.8;
}

#wpmem_restricted_msg a  {
  color: #ffffff;
  text-decoration: underline;
}

/* #wpmem_restricted_msg::before {
  content: "⚠️";
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#wpmem_restricted_msg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
} */

/* @keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
} */

/* ホバー効果 */

/* レスポンシブ対応 */
@media (max-width: 767px) {
  #wpmem_restricted_msg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    margin: 1rem 0;
  }
  
  #wpmem_restricted_msg::before {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  #wpmem_login, #wpmem_msg, #wpmem_reg, .wpmem_msg {
    width: 100%;
  }
}

/* フォーム */
.wpmem_msg {
  width: 100% !important;
}

#wpmem_login, #wpmem_reg {
  font-family: 'Noto Sans JP', sans-serif !important;
  max-width: 540px;
  margin: 0 auto;
}

form[id^="wpmem_"] legend {
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  color: #333;
  margin-bottom: 32px !important;
  display: block;
}

#wpmem_reg legend {
  display: none;
}

form[id^="wpmem_"] label:not([for="rememberme"]) {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px !important;
  display: block !important;
}

form[id^="wpmem_"] a {
  text-decoration: underline;
}


form[id^="wpmem_"] .buttons {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #344070 0%, #4a5585 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px !important;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 20px auto !important;
}

form[id^="wpmem_"] .buttons:hover {
  opacity: 0.8;
}

/* FAQ */
.faq-list {
  margin-top: 0 !important;
  list-style: none !important;
} 

.post-tab {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.post-tab label {
  width: 100% !important;
}

.post-tab label.tab2 {
  border-right: 1px solid #eaeaea;
}

.post-tab label.tab3 {
  border-right: none !important;
  border-top: none !important;
}

.post-tab__content {
  padding: 0;
}

.post-tab__content.tab-active p {
  /* display: none; */
}

.prnx_box {
	display: none;
}