/* style.css */

:root {
  --main-color: #4caf50;
  --primary-color: #005fdb;
  --accent-color: #4caf50;
  --text-color: #202124;
  --mainbtn-color: #ff9e27;
  --linear-color: #ffff77;
  --page-max-width: 1000px;
  --alert-color: #d93025;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

body.loaded {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.sp-br {
  display: none;
}

@media (max-width: 600px) {
  .sp-br {
    display: block;
  }

  .line-space {
    display: block;
    margin-bottom: 0.5rem;
  }
}

.hero {
  background-image: url("/26/02/assets/img/header-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  padding: 1.5rem 0;
  text-align: center;
}

.hero-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-weight: 600;
  opacity: 0.95;
  text-shadow: 1px 1px 2px black, 0 0 10px var(--linear-color);
}

.hero-title {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px black;
  font-weight: 700;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.3); /* 背景と文字の視認性UP */
  padding: 15px 30px;
  border-radius: 8px;
  display: inline-block;
}

/* バナー */
.hero img {
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hero img:hover {
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .hero-title {
    font-size: 0.9rem;
    padding: 10px 15px;
    margin: 0 1rem;
  }
}

.navi-section {
  background-color: color-mix(in srgb, var(--accent-color) 40%, white);
}

.nav-bar {
  max-width: var(--page-max-width);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar a {
  flex: 1;
  text-align: center;
  padding: 1rem 0;
  color: var(--text-color);
  font-weight: bold;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-bar a:hover {
  color: var(--accent-color);
  border-bottom: 5px solid var(--accent-color);
  transition: all 0.3s ease;
}

.nav-bar a.active {
  border-bottom: 5px solid var(--accent-color);
  font-weight: bold;
}

.apply-menu[data-period="application"][data-when="preopen,before"],
.apply-menu[data-period="application"][data-when="after"] {
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .nav-bar {
    font-size: 0.85rem;
  }
}

.container {
  max-width: var(--page-max-width);
  margin: auto;
  padding: 2rem 0;
}

@media (max-width: 600px) {
  .container {
    padding: 2rem 1rem;
  }
}

/* --------------------------------------------------------------------------------------------------------
要素の表示/非表示切り替え */
.is-period-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------------------------------------
申込みボタン */

.cta-wrapper {
  text-align: center;
}

.cta-button[data-period="application"][data-when="before,preopen"],
.cta-button[data-period="application"][data-when="after"] {
  background: #ccc;
  color: #888888;
  pointer-events: none;
}

.cta-button[data-period="application"][data-when="active"] {
  background: linear-gradient(
    135deg,
    #ffd48c,
    /* 上側・少し明るい */ var(--mainbtn-color),
    #e37400 /* 右下・少し暗い */
  );
  color: white;
}

.cta-button {
  display: inline-block;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25);
  font-weight: bold;
  font-size: 1.3rem;
  padding: 2.2rem 7rem;
  margin: 5rem auto;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0px);
  box-shadow: none;
}

.cta-button a {
  text-decoration: none;
}

@media (max-width: 600px) {
  .cta-button {
    padding: 1.5rem 2rem;
    margin: 4rem auto;
    font-size: 1.05rem;
    min-width: 200px;
  }
}

/* --------------------------------------------------------------------------------------------------------
インフォメーション */

.info-section {
  padding: 0 0 4rem;
  background-color: #f5f5f5;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: var(--page-max-width);
  margin: auto;
}

.info-title {
  background: var(--accent-color);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
}

.info-content {
  text-align: center;
}

.date-banner {
  display: inline-block;
  margin: 1.8rem auto 0;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 0.5rem 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 2rem;
  font-size: 0.95rem;
}

.label {
  background-color: color-mix(in srgb, var(--accent-color) 20%, white);
  font-weight: bold;
  text-align: center;
  padding: 0.5rem;
  border-radius: 6px;
  align-self: center;
}

.info-content .content {
  padding-top: 0.2rem;
  text-align: left;
}

.info-section .note {
  color: #d93025;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .info-section {
    padding: 0 1rem 3rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.5rem;
  }

  .info-content .content {
    margin-bottom: 1rem;
  }

  .label {
    width: fit-content;
    text-align: center;
    border-radius: 999px;
    font-size: 0.9rem;
    padding: 0.2rem 1rem;
  }

  .info-section .note {
    display: block;
    padding-top: 0.5rem;
  }
}

/* --------------------------------------------------------------------------------------------------------
スケジュール */

.schedule-section {
  padding: 4rem 0 2rem;
  background-color: #fff;
  max-width: var(--page-max-width);
  margin: auto;
}

.section-title {
  font-size: 1.4rem;
  font-weight: bold;
  border-left: 6px solid var(--accent-color);
  padding-left: 0.5rem;
  margin: 0 0 2rem;
}

.schedule-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: color-mix(in srgb, var(--accent-color) 20%, white);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.step-badge {
  background-color: var(--accent-color);
  color: #fff;
  font-weight: bold;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  margin: 0 1.5rem 0 0;
  min-width: 80px;
  text-align: center;
}

.step-content {
  flex: 1;
  min-width: 200px;
}

.step-content h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  font-size: 0.95rem;
}

.schedule-step .step-date {
  padding: 0.2rem 1rem;
  border-radius: 99px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.9rem;
  text-align: right;
}

@media (max-width: 600px) {
  .schedule-section {
    padding: 3rem 1rem 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .schedule-step {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .step-badge {
    background-color: transparent;
    color: var(--accent-color);
    padding: 0;
    margin: 0;
    text-align: left;
  }

  .schedule-step .step-date {
    padding: 0.2rem 1rem;
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------------------------------------
プログラム */

.program-section {
  padding: 0 0 4rem;
  background-color: #fff;
}

.program-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: var(--page-max-width);
  margin: 0 auto;
  overflow: hidden;
}

.program-title {
  background-color: var(--accent-color);
  color: #fff;
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.program-list {
  list-style: disc;
  padding: 1.5rem 1.5rem 0;
  margin: 0;
  font-size: 0.95rem;
  padding-inline-start: 2.5rem;
}

.program-list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.program-section .note {
  font-size: 0.85rem;
  color: #5f6368;
  padding: 0 1.5rem 1.5rem;
  margin: 0;
}

@media (max-width: 600px) {
  .program-section {
    padding: 0 1rem 4rem;
  }

  .program-title {
    font-size: 1rem;
  }

  .program-list {
    font-size: 0.9rem;
  }

  .program-section .note {
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------------------------------------
ABOUT */

.about-section {
  padding: 2rem 0;
  background: #f9f9f9;
}

.about-wrap {
  max-width: var(--page-max-width);
  margin: 1.5rem auto;
}

.about-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
  border-left: 6px solid var(--accent-color);
  margin: 2rem auto;
}

.about-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a73e8;
}

.about-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.about-card li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.about-card .important {
  background: linear-gradient(transparent 75%, #ffff77 30%);
}

.about-card .note {
  font-size: 0.8rem;
  list-style-type: none;
}

.about-card .note.red {
  color: #d93025;
  font-weight: bold;
}

.link-accent {
  font-weight: bold;
  text-decoration: underline;
}

.link-accent:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .about-section {
    padding: 2rem 1rem;
  }
  .about-card {
    padding: 1rem;
  }
  .about-title {
    padding: 0 0 1rem;
    margin: 0;
  }
}

/* --------------------------------------------------------------------------------------------------------
研修概要 */

.overview-section {
  background-color: #fff;
  padding-top: 4rem;
}

.overview-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: var(--page-max-width);
  margin: auto;
  overflow: hidden;
}

.overview-title {
  background-color: var(--accent-color);
  color: #fff;
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.overview-content {
  padding: 1rem 2rem;
}

.overview-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.overview-card ol,
.overview-card ul {
  padding-left: 1rem;
}

.subheading {
  font-size: 1.05rem;
  color: #1a73e8;
  font-weight: bold;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .overview-section {
    padding: 3rem 1rem;
  }

  .overview-title {
    font-size: 1.1rem;
  }

  .overview-content {
    padding: 0.5rem 1rem;
  }
}

/* --------------------------------------------------------------------------------------------------------
課題・研修ページ */

.tasks-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.tasks-lead {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 24px;
}

/* カード＋アコーディオン */
.step-card {
  border-radius: 14px;
  margin-bottom: 2rem;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.step-card:hover {
  border: 1.5px solid var(--accent-color);
  box-shadow: 0 6px 6px color-mix(in srgb, var(--accent-color) 40%, white);
}

.step-card .left-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.step-card .step-date {
  font-size: 0.85em;
  color: #808080;
  margin-top: 5px;
}

.step-card details {
  list-style: none;
}

.step-card:has(details[open]) {
  border: 1.5px solid var(--accent-color);
  box-shadow: 0 6px 6px color-mix(in srgb, var(--accent-color) 40%, white);
}

.step-card summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card summary::after {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.step-card details[open] summary::after {
  transform: rotate(-135deg);
}

.step-body {
  padding: 1.5rem;
  border-top: 1px dashed #b9b9b9;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

/* 全体の流れの図 */
.flow-image-wrapper {
  text-align: center;
  margin-top: 12px;
}

.flow-image-wrapper img {
  max-width: 100%;
  height: auto;
}

/* 箇条書き */
.task-list,
.task-note-list {
  padding-left: 1.4em;
  margin: 8px 0;
}

.task-note {
  margin-top: 18px;
}

.task-note__inner {
  padding: 12px 14px 8px;
  border-radius: 10px;
  border: 2px dotted #c4494d;
  background-color: #fffafa;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* アテンション強調 */
.text-emphasis {
  background: linear-gradient(transparent 65%, #ffcccc 80%);
  font-style: normal;
}

/* 小さめの注意書き */
.caption-text {
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  color: #424242;
  text-shadow: 1px 1px 3px yellow;
}

/* 状態ピル（準備中・終了しました） */
.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.tag-pill--ready {
  background: linear-gradient(135deg, #bdbdbd, #9e9e9e);
}

.tag-pill--ended {
  background: linear-gradient(135deg, #9e9e9e, #757575);
}

/* ボタン周り */
.button-container {
  text-align: center;
  margin: 2rem auto;
}

.button-container p {
  text-decoration: underline;
}

.login-button[data-when="before,preopen"],
.login-button[data-when="after"] {
  background: #ccc;
  color: #888888;
}

.login-button[data-when="active"] {
  background: linear-gradient(
    135deg,
    #ffd48c,
    /* 上側・少し明るい */ var(--mainbtn-color),
    #e37400 /* 右下・少し暗い */
  );
  color: white;
}

.login-button {
  display: inline-block;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.8rem 3rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.login-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.login-button:active {
  transform: translateY(0px);
  box-shadow: none;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .step-body {
    padding: 1rem;
  }

  .step-card summary {
    padding: 1rem;
  }

  .button-container {
    margin: 2.5rem auto;
  }
}

/* =========================================
   お問合せページ用スタイル
========================================= */

.faq-dl {
  margin: 0;
  padding: 0;
}

.faq-dl > div {
  padding: 14px 16px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #e0e5f0;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.faq-dl dt {
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.faq-dl dd {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.faq-dl .question,
.faq-dl .answer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.faq-dl .question {
  background: #4682b4;
}

.faq-dl .answer {
  background: #ca1f5e;
}

/* ------------------------------
   お問合せブロック（カード）
------------------------------ */
.form {
  margin: 0;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, #f3f8ff 0%, #edfcf6 60%, #ffffff 100%);
}

.contact-notice {
  padding: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ------------------------------
   テーブルレイアウト
------------------------------ */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e5f0;
}

.contact-table th,
.contact-table td {
  padding: 0.5rem 0;
  vertical-align: top;
}

.contact-table tr:last-child th,
.contact-table tr:last-child td {
  border-bottom: none;
}

.contact-table th {
  width: 26%;
  text-align: left;
  font-weight: 600;
}

.contact-table td input[type="text"],
.contact-table td input[type="email"],
.contact-table td select,
.contact-table td textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  background-color: #ffffff;
}

.contact-table td textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-table td input:focus,
.contact-table td select:focus,
.contact-table td textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.contact-table ::placeholder {
  color: #9ca3af;
}

/* 必須ラベル */
.required {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.78rem;
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.5);
}

/* ------------------------------
   ボタン
------------------------------ */
.Form-Btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 180px;
  padding: 0.8rem 2.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #00b3a1, #00796b);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.Form-Btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #fff; /* 枠線 */
  border-top-color: transparent; /* 1箇所だけ透明にして回転感を出す */
  border-radius: 50%; /* 丸くする */
  display: none; /* 初期状態では非表示 */
  box-sizing: border-box;
  animation: spin 0.6s linear infinite;
}

.Form-Btn.is-loading .spinner {
  display: inline-block;
}

.Form-Btn.is-loading #submitBtnText {
  opacity: 0.8;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.Form-Btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

.Form-Btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.Form-Btn:disabled {
  pointer-events: none;
}

/* ------------------------------
   エラーメッセージ
------------------------------ */
#contactError {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #b91c1c !important;
}

/* ------------------------------
   送信完了ブロック
------------------------------ */
#contactResult {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e0e5f0;
  margin-top: 8px;
  animation: contactResultFadeIn 0.25s ease-out;
}

#contactResult h3 {
  font-size: 1.4rem;
  margin: 0;
  color: #009688;
}

#contactResult p {
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 0.95rem;
}

#contactResult .contact-table th {
  color: #009688;
}

/* 改行を維持するためのスタイル（detail 用） */
#resultDetail {
  white-space: pre-wrap;
}

/* フェードイン */
@keyframes contactResultFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------
   スマホ向け調整
------------------------------ */
@media screen and (max-width: 600px) {
  .contact-table th,
  .contact-table td {
    display: block;
    width: auto;
  }

  .contact-table th {
    border-bottom: none;
    padding-bottom: 4px;
    font-size: 0.9rem;
  }

  .contact-table td {
    padding-top: 4px;
    margin-bottom: 8px;
  }

  .faq-dl > div {
    padding: 12px 12px;
  }

  #contactResult .contact-table th {
    font-size: 0.85rem;
  }
}

/* =============================================
   フッター
============================================= */

.footer {
  background-color: color-mix(in srgb, var(--accent-color) 30%, white);
}

.footer-inner {
  text-align: center;
  padding: 2rem 1rem;
}

.footer-nav {
  margin-bottom: 1.5rem;
}

.footer-nav a {
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

@media (max-width: 600px) {
  .footer-inner {
    padding: 2rem 0;
  }

  .footer-nav {
    font-size: 0.9rem;
  }

  .footer-nav a {
    margin: 0 0.7rem;
  }
}

.contact .divider {
  font-weight: bold;
  margin: 1rem 0 0.5rem;
  position: relative;
  display: inline-block;
}

.contact .divider::before,
.contact .divider::after {
  content: "";
  display: inline-block;
  width: 6rem;
  height: 1px;
  background: #777777;
  vertical-align: middle;
  margin: 0 10px;
}

.contact .org,
.contact .address,
.contact .email {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

@media (max-width: 600px) {
  .contact .address,
  .contact .email {
    font-size: 0.75rem;
  }
}

.copyright {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
}
