@charset "utf-8";

/* =========================================================
   Base
========================================================= */
body {
  margin: 0;
  color: #332f24;
  background: #fff url(../../img/body_bg.png);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

a {
  color: #333;
  text-decoration: underline;
}

a:hover {
  color: #8f7f2c;
  text-decoration: none;
}

strong,
b,
.attention3,
[style*="color: #b21717"],
[style*="color:#b21717"],
[style*="color: #CC0000"],
[style*="color:#CC0000"],
[style*="color: #cc0000"],
[style*="color:#cc0000"] {
  font-weight: 800 !important;
}

.inlineLink {
  padding: 0 25px 0 20px;
  background: url(../../img/icon_arrow_01.png) no-repeat 0 50%;
}


/* =========================================================
   Header / Footer
========================================================= */
.visible-xs {
  display: none !important;
}

.hidden-xs {
  display: block !important;
}

header,
header.hidden-xs,
.visible-xs {
  background: #ded8cc url(../../img/body_bg.png) repeat-x 0 0;
}

header {
  position: relative;
  height: 62px;
  min-height: 62px;
  overflow: hidden;
  background-size: auto 62px;
}

header .container,
header .row {
  height: 62px;
  align-items: center;
}

header h1 {
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 1;
}

header h1 img {
  display: block;
  max-height: 38px;
  width: auto;
}

header p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

header p img {
  max-height: 34px;
  width: auto;
}

footer {
  clear: both;
  padding: 25px 0 20px;
  font-size: 85.71%;
  text-align: center;
  background: #f4f3f3 url(../../img/body_bg.png) repeat-x 0 0;
}


/* =========================================================
   Breadcrumb
========================================================= */
.topicPath {
  margin-top: 0;
  background: url(../../img/topicpath_bg_01.png) repeat-x 0 0;
  font-size: 14px;
}

.topicPath ol {
  overflow: hidden;
  margin: 0 auto;
}

.topicPath li {
  float: left;
  margin: 10px 0;
}

.topicPath li:last-child {
  background: none;
}

.topicPath li a {
  display: block;
  padding: 0 25px 0 20px;
  background: url(../../img/icon_arrow_01.png) no-repeat 0 50%;
}

.breadcrumb {
  padding: 0;
  background: none;
}


/* =========================================================
   Layout
========================================================= */
#container,
.container {
  max-width: 1180px;
}

#container {
  overflow: hidden;
  padding-top: 24px;
  line-height: 1.5;
}

.wrapper1 {
  width: 100%;
  margin: 0 15px 44px;
  overflow: hidden;
  background-color: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(56, 43, 21, 0.14);
}

.wrapper3 {
  overflow: hidden;
  padding: 0 42px 30px;
}

.wrapper3 p {
  line-height: 1.9;
}

.obi {
  border-left: 0;
  border-radius: 0 !important;
  background: #dcd5b3 !important;
  color: #514b2c !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}


/* =========================================================
   Buttons
========================================================= */
.modern-action-button,
.teacher-detail-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #9b221f 0%, #d95b43 100%) !important;
  box-shadow: 0 10px 22px rgba(154, 34, 31, 0.22);
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.modern-action-button {
  width: auto !important;
  min-width: 320px;
  margin: 24px auto 8px !important;
}

.modern-action-button a {
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.modern-action-button:hover,
.teacher-detail-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(154, 34, 31, 0.3);
  opacity: 0.92;
}


/* =========================================================
   Teacher Cards
========================================================= */
.teacher-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  justify-content: start;
}

.teacher-card {
  position: relative !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto 1fr auto !important;
  align-items: start !important;
  height: 100% !important;
  min-height: 500px !important;
  padding: 18px 18px 20px !important;
  background: #fffaf0 !important;
  border: 1px solid rgba(188, 153, 74, 0.26) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(40, 25, 10, 0.10) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease !important;
  column-gap: 26px;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(40, 25, 10, 0.15) !important;
  opacity: 0.96;
}

.teacher-card-body {
  display: contents !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.teacher-photo-frame {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  align-self: start !important;
  background: #f4efe4 !important;
  border-radius: 8px !important;
}

.teacher-photo {
  display: block !important;
  width: 100% !important;
  height: auto;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.teacher-card:hover .teacher-photo {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.teacher-name {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  color: #251d18 !important;
  font-size: 27px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  letter-spacing: 0.02em !important;
}

.teacher-name a {
  color: #251d18 !important;
  text-decoration: none !important;
}

.teacher-name a:hover {
  color: #c81322 !important;
}

.teacher-name-main {
  display: block !important;
  color: #111 !important;
  font-size: 24px !important;
  line-height: 1.22 !important;
}

.teacher-rank {
  display: block !important;
  margin: 3px 0 0 !important;
  color: #111 !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.teacher-comment {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px 0 8px !important;
  padding: 13px 15px !important;
  overflow-wrap: break-word !important;
  background: #fff8e6 !important;
  border: 1px solid rgba(188, 153, 74, 0.34) !important;
  border-radius: 14px !important;
  color: #4c3a23 !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  min-height: 5.0em !important;
  display:flex !important;
  align-items:center !important;
}

.teacher-comment::before{
  content:"";
  position:absolute;
  top:-8px;
  left:58px;

  width:16px;
  height:16px;

  background:#fff8e6;

  border-left:1px solid rgba(188,153,74,.34);
  border-top:1px solid rgba(188,153,74,.34);

  transform:rotate(45deg);
}

.teacher-service-tags {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  gap: 8px !important;
  min-height: 62px !important;
  margin: 6px 0 8px !important;
  padding-top: 0 !important;
}

.service-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  color: #40352b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.service-tag-1 { background: #bde5f4 !important; }
.service-tag-2 { background: #d6c6ef !important; }
.service-tag-3 { background: #c9eb9b !important; }
.service-tag-4 { background: #ffd58d !important; }
.service-tag-5 { background: #f7b5c9 !important; }


/* =========================================================
   Lesson Prices in Teacher Cards
========================================================= */
.lesson-prices {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
  clear: none !important;
  margin: 0 !important;
  padding-top: 8px !important;
  border-top: 1px solid #e2d7c5 !important;
  font-size: 14.5px !important;
}

.lesson-prices div {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: baseline !important;
  gap: 12px !important;
  padding: 9px 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid #e7ddcd !important;
}

.lesson-prices div:last-child {
  border-bottom: 0 !important;
}

.lesson-prices dt {
  color: #c81322 !important;
  font-weight: 900 !important;
}

.lesson-prices dd {
  margin: 0;
  color: #b21717 !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.lesson-prices .price-num {
  color: #b21717 !important;
  font-weight: 700 !important;
}

.lesson-prices .price-unit {
  margin-left: 1px !important;
  color: #111 !important;
  font-size: 0.88em !important;
  font-weight: 400 !important;
}


/* =========================================================
   Teacher Detail Popover
========================================================= */
.teacher-detail-wrap {
  grid-column: 1 / -1 !important;
  grid-row: 5 !important;
  position: relative !important;
  clear: none !important;
  align-self: end !important;
  margin-top: 14px !important;
}

.teacher-detail-button {
  position: relative;
  z-index: 2;
  width: 100% !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 14px 44px 14px 24px !important;
  background: linear-gradient(135deg, #b51f1d 0%, #df5a42 100%) !important;
  box-shadow: 0 10px 22px rgba(154, 34, 31, 0.22) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  cursor: pointer;
}

.teacher-detail-button::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-52%);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.teacher-detail-popover {
  position: absolute !important;
  top: auto !important;
  right: 0 !important;
  bottom: calc(100% + 12px) !important;
  left: 0 !important;
  z-index: 300 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(110, 95, 76, 0.22) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 42px rgba(45, 33, 19, 0.22) !important;
  transform: translateY(8px) !important;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease !important;
}

.teacher-detail-popover::after {
  content: "" !important;
  position: absolute !important;
  top: auto !important;
  bottom: -8px !important;
  left: 50% !important;
  width: 16px !important;
  height: 16px !important;
  background: #fff !important;
  border-right: 1px solid rgba(110, 95, 76, 0.22) !important;
  border-bottom: 1px solid rgba(110, 95, 76, 0.22) !important;
  transform: translateX(-50%) rotate(45deg) !important;
}

.teacher-detail-wrap:hover .teacher-detail-popover,
.teacher-detail-wrap:focus-within .teacher-detail-popover,
.teacher-detail-wrap.is-open .teacher-detail-popover {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.teacher-detail-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

.teacher-detail-table th,
.teacher-detail-table td {
  box-sizing: border-box !important;
  padding: 8px 9px !important;
  border: 1px solid #e1d9d1 !important;
  vertical-align: top !important;
  word-break: break-word !important;
}

.teacher-detail-table th {
  width: 34% !important;
  background: #fff3ef !important;
  color: #c81322 !important;
  font-weight: 900 !important;
  text-align: left !important;
  white-space: normal !important;
}

.teacher-detail-table td {
  background: #fff !important;
  color: #2d2520 !important;
  font-weight: 700 !important;
}


/* =========================================================
   Lesson Plan Area
========================================================= */
.lesson-plan-area {
  padding: 22px;
  background: #f7f5de;
  border: 3px dotted #c8aaaa;
  border-radius: 15px;
}

.lesson-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lesson-plan-card {
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #eadccd;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(92, 66, 40, 0.08);
}

.lesson-plan-card h3 {
  margin: 0 0 10px;
  color: #b21717;
  font-size: 1.25em;
  font-weight: 800;
}

.lesson-plan-card p {
  margin: 0;
  line-height: 1.7;
}

.lesson-plan-notes {
  margin-top: 15px;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.82em;
  line-height: 1.65;
}

.lesson-plan-notes p {
  margin: 0;
}

.lesson-plan-notes p + p {
  margin-top: 4px;
}


/* =========================================================
   Legacy Modal
   現在の棋士詳細はポップオーバー表示ですが、既存JSが参照する場合に備えて残しています。
========================================================= */
.profile-modal[aria-hidden="true"] {
  display: none;
}

.profile-modal[aria-hidden="false"] {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.profile-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 4, 0.58);
  backdrop-filter: blur(3px);
}

.profile-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  background: #fffdf7;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.profile-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1ead8;
  color: #514b2c;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-modal__close:hover {
  background: #e0d4ad;
  transform: rotate(90deg);
}

.profile-modal__title {
  margin: 0 48px 20px 0;
  color: #332f24;
  font-size: 24px;
  font-weight: 800;
}

.profile-modal__table {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e5dac2;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 14px;
}

.profile-modal__table th,
.profile-modal__table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5dac2;
  vertical-align: top;
}

.profile-modal__table tr:last-child th,
.profile-modal__table tr:last-child td {
  border-bottom: 0;
}

.profile-modal__table th {
  width: 34%;
  background: #f5eedc;
  color: #514b2c;
  font-weight: 800;
  text-align: left;
}

.profile-modal__table td {
  background: #fff;
}

body.modal-open {
  overflow: hidden;
}


/* =========================================================
   Responsive
========================================================= */
@media screen and (min-width: 992px) {
  #container,
  .container {
    max-width: 1240px;
  }
}

@media screen and (max-width: 1100px) {
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 991px) {
  #container,
  .container {
    max-width: 94%;
  }

  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

@media screen and (max-width: 959px) {
  .max959-mt20 {
    margin-top: 20px;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 14.5px;
  }

  .hidden-xs {
    display: none !important;
  }

  .visible-xs {
    display: block !important;
  }

  .visible-xs .row {
    min-height: 56px;
    margin-bottom: 0 !important;
    align-items: center;
  }

  .visible-xs img {
    max-height: 38px;
    width: auto;
  }

  #container,
  .container {
    max-width: 100%;
  }

  #container {
    padding-top: 16px;
  }

  .wrapper1 {
    margin: 0 10px 32px;
    border-radius: 14px;
  }

  .wrapper3 {
    padding-right: 18px;
    padding-left: 18px;
  }

  .modern-action-button {
    width: 92% !important;
    min-width: 0;
  }

  .modern-action-button a {
    font-size: 16px !important;
  }

  .teacher-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .teacher-card {
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto auto !important;
    min-height: 0 !important;
    padding: 16px 16px 18px !important;
  }

  .teacher-name-main {
    font-size: 24px !important;
  }

  .teacher-rank {
    font-size: 20px !important;
  }

  .teacher-comment {
    margin: 10px 0 8px !important;
    font-size: 14.5px !important;
  }

  .teacher-comment::before {
    left: clamp(42px, 17%, 72px) !important;
  }

  .teacher-service-tags {
    min-height: 58px !important;
    margin: 5px 0 7px !important;
  }

  .lesson-prices dd {
    font-size: 15.5px !important;
  }

  .teacher-detail-popover {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: calc(100% + 12px) !important;
    left: 0 !important;
    z-index: 300 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
  }

  .teacher-detail-wrap:hover .teacher-detail-popover,
  .teacher-detail-wrap:focus-within .teacher-detail-popover,
  .teacher-detail-wrap.is-open .teacher-detail-popover {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .teacher-detail-table,
  .teacher-detail-table tbody,
  .teacher-detail-table tr,
  .teacher-detail-table th,
  .teacher-detail-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .teacher-detail-table th {
    padding-bottom: 4px !important;
    border-bottom: 0 !important;
  }

  .teacher-detail-table td {
    padding-top: 4px !important;
  }

  .lesson-plan-area {
    padding: 16px;
  }

  .lesson-plan-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-modal__dialog {
    padding: 22px 18px;
  }

  .profile-modal__title {
    font-size: 21px;
  }

  .profile-modal__table th,
  .profile-modal__table td {
    display: block;
    width: 100%;
  }

  .profile-modal__table th {
    padding-bottom: 6px;
  }

  .profile-modal__table td {
    padding-top: 8px;
  }
}








.lesson-price-area{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e7ddcd;
}

.lesson-price-grid{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  width:fit-content;
  margin:0 auto;
  border-top:0;
}

.lesson-price-item{
  padding:0 14px;
  text-align:center;
  flex:0 0 auto;
}

.lesson-price-item + .lesson-price-item{
  border-left:1px solid #ddd2c2;
}

.lesson-time{
  margin-bottom:4px;

  color:#b21717;
  font-size:20px;
  font-weight:600;
}

.lesson-fee{
  white-space:nowrap;
  line-height:1.1;
}

.lesson-fee .price-num{
  color:#b21717;
  font-size:22px;
  font-weight:600;
  letter-spacing:-0.02em;
}

.lesson-fee .price-unit{
  margin-left:1px;

  color:#111;
  font-size:12px;
  font-weight:500;
}



.teacher-card > dl,
.teacher-card-body > dl{
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}








.page-top-wrap{
  margin:0 0 30px;
  text-align:center;
}

.page-top-link{
  display:inline-flex;
  align-items:center;
  gap:6px;

  color:#333;
  font-size:18px;
  font-weight:500;
  text-decoration:none;
  transition:opacity .2s ease, transform .2s ease;
}

.page-top-link:hover{
  opacity:.75;
  transform:translateY(-2px);
}

.page-top-arrow{
  color:#c53a2b;
  font-size:20px;
  font-weight:bold;
  line-height:1;
}

html{
  scroll-behavior:smooth;
}






.lesson-choice-buttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  max-width:840px;
  margin:34px auto 10px;
}

.lesson-choice-button{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:190px;
  padding:28px 24px;
  border-radius:16px;
  background:linear-gradient(135deg,#a90f24 0%,#c91e2d 55%,#df5a42 100%);
  box-shadow:0 14px 30px rgba(169,15,36,.28);
  color:#fff !important;
  text-align:center;
  text-decoration:none !important;
  transition:.22s ease;
}

.lesson-choice-button:hover{
  transform:translateY(-4px);
  opacity:.94;
}

.lesson-choice-title{
  font-size:32px;
  font-weight:900;
  line-height:1.45;
}

.lesson-choice-sub{
  margin-top:22px;
  font-size:21px;
  font-weight:800;
}

@media screen and (max-width:767px){
  .lesson-choice-buttons{
    grid-template-columns:1fr;
    gap:16px;
    margin-top:24px;
  }

  .lesson-choice-button{
    min-height:150px;
  }

  .lesson-choice-title{
    font-size:25px;
  }

  .lesson-choice-sub{
    font-size:17px;
  }
}







.lesson-form-button-wrap{
  margin:36px 0 10px;
  text-align:center;
}

.lesson-form-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:500px;
  min-height:102px;
  padding:18px 40px;

  border-radius:999px;

  background:
    linear-gradient(135deg,#aa1225 0%,#c91e2d 58%,#de5c45 100%);

  box-shadow:
    0 10px 24px rgba(169,15,36,.22),
    inset 0 1px 0 rgba(255,255,255,.22);

  color:#fff !important;
  font-size:24px;
  font-weight:800;
  letter-spacing:.03em;
  text-decoration:none !important;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.lesson-form-button:hover{
  transform:translateY(-2px);
  box-shadow:
    0 14px 28px rgba(169,15,36,.28),
    inset 0 1px 0 rgba(255,255,255,.22);

  opacity:.96;
}

@media screen and (max-width:767px){

  .lesson-form-button{
    width:100%;
    min-width:0;

    font-size:20px;
    min-height:60px;
    padding:12px 20px;
  }

}







.qa-q,
.qa-a{
  display:flex;
  align-items:flex-start;
  gap:12px;

  margin:18px 0;
  line-height:1.9;
}

.qa-badge{
  flex:0 0 auto;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:34px;
  height:34px;

  border-radius:999px;

  font-size:19px;
  font-weight:700;
}

.qa-badge-q{
  background:#dff3b8;
  color:#111;
}

.qa-badge-a{
  background:#ffd9e3;
  color:#111;
}

.qa-q{
  color:#4f7d1f;
  font-size:1.12em;
  font-weight:700;
}

.qa-a{
  color:#444;
}





.campaign-box{
  position:relative;

  margin:40px 0;
  padding:38px 34px 30px;

  border:2px solid #d7bb73;
  border-radius:22px;

  background:
    linear-gradient(
      180deg,
      #fffbe8 0%,
      #fff2bf 58%,
      #ffe39a 100%
    );

  box-shadow:
    0 14px 34px rgba(180,140,30,.16),
    inset 0 2px 0 rgba(255,255,255,.92);

  text-align:center;
}

.campaign-title{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-bottom:28px;
  padding:12px 28px;

  border-radius:999px;

  background:
    linear-gradient(
      135deg,
      #c9a23c 0%,
      #e0bc58 100%
    );

  box-shadow:
    0 8px 20px rgba(180,140,30,.18),
    inset 0 1px 0 rgba(255,255,255,.7);

  color:#fff;

  font-size:34px;
  font-weight:900;
  letter-spacing:.08em;
}

.campaign-title::before,
.campaign-title::after{
  content:"★";
  margin:0 10px;

  color:#fff4b8;
  font-size:.9em;
}

.campaign-lead{
  margin:0;

  color:#8a5a00;

  font-size:24px;
  font-weight:900;
  line-height:2;
}

.campaign-box hr{
  margin:24px auto;
  border:none;
  border-top:1px solid rgba(138,90,0,.22);
}

.campaign-note{
  margin:0;

  color:#6b5525;

  font-size:18px;
  font-weight:700;
  line-height:2;

  text-align:center;
}




.qa-text{
  flex:1;
  min-width:0;
}

.qa-alert{
  color:#b21717;
  font-weight:800;
}





.sub-return-wrap{
  margin:40px auto 30px;
  text-align:center;
}

.sub-return-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:12px 28px;

  border-radius:999px;

  background:#e8dfcf;
  border:1px solid #d7c8ae;

  color:#6b5b45;
  font-size:18px;
  font-weight:500;
  text-decoration:none;

  transition:.25s ease;
}

.sub-return-button:hover{
  background:#d9c7a5;
  color:#4d3e2d;
  text-decoration:none;

  transform:translateY(-1px);
}




.topic-path{
  margin:0 0 10px;
  padding:8px 42px 15px;

  border-bottom:1px solid #e5ded2;

  font-size:14px;
  line-height:1.4;
}

.topic-path a{
  color:#7d5d2e;
  text-decoration:none;
  font-weight:500;
}

.topic-sep{
  margin:0 8px;
  color:#9d927f;
}

.topic-current{
  color:#746751;
  font-weight:500;
}

@media screen and (max-width:767px){
  .topic-path{
    padding:8px 18px 9px;
    margin-bottom:28px;
  }
}





.course-list{
  margin:40px 0 20px;
}

.course-card{
  display:flex;
  gap:30px;

  margin-bottom:34px;
  padding:28px;

  border:1px solid #ddd1bb;
  border-radius:22px;

  background:#f7f3ea;

  box-shadow:
    0 4px 12px rgba(120,90,40,.06);
}

.course-photo{
  flex:0 0 220px;
}

.course-photo img{
  width:220px;
  height:300px;

  object-fit:cover;
  object-position:center top;

  border-radius:16px;
  display:block;
}

.course-main{
  flex:1;
}

.course-title{
  margin-bottom:18px;

  color:#333; /*#b21717*/
  font-size:28px;
  line-height:1.4;
  font-weight:800;
}

.course-info{
  margin:0;
}

.course-row{
  display:flex;

  border-top:1px solid #e2d7c6;
}

.course-row:last-child{
  border-bottom:1px solid #e2d7c6;
}

.course-row dt{
  flex:0 0 140px;

  padding:15px 16px;

  background:#ece4d2;

  color:#5a4b32;
  font-weight:700;
}

.course-row dd{
  flex:1;

  margin:0;
  padding:15px 20px;

  line-height:1.9;

  background:#faf7f0;
}

.course-button-wrap{
  margin-top:30px;
  text-align:center;
}

.course-entry-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:320px;
  min-height:68px;

  padding:16px 34px;

  border-radius:999px;

  background:
    linear-gradient(
      135deg,
      #b51420 0%,
      #cf3f33 100%
    );

  box-shadow:
    0 8px 20px rgba(178,23,23,.20);

  color:#fff;
  font-size:20px;
  font-weight:800;
  text-decoration:none;

  transition:.22s ease;
}

.course-entry-button:hover{
  transform:translateY(-2px);
  opacity:.94;
  color:#fff;
  text-decoration:none;
}

@media screen and (max-width:767px){

  .course-card{
    display:block;
    padding:20px;
  }

  .course-photo{
    margin-bottom:18px;
  }

  .course-photo img{
    width:100%;
    max-width:260px;
    margin:0 auto;
  }

  .course-title{
    font-size:25px;
  }

  .course-row{
    display:block;
  }

  .course-row dt{
    width:100%;
    box-sizing:border-box;
  }

  .course-entry-button{
    min-width:100%;
    box-sizing:border-box;
  }
}




.lesson-note{
  color:#b21717;
  font-weight:500;
}





.page-main-title{
  margin:24px auto 34px;
  text-align:center;
}

.page-main-title span{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:620px;

  padding:24px 54px;

  border:4px solid #b21717;
  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      #fffdfa 0%,
      #f8f2ea 100%
    );

  color:#b21717;

  font-size:42px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.4;
}

.page-main-title span::before,
.page-main-title span::after{
  content:"●";

  margin:0 18px;

  color:#d3b690;
  font-size:.45em;
}

@media screen and (max-width:767px){

  .page-main-title{
    margin:16px auto 24px;
  }

  .page-main-title span{
    min-width:0;
    width:100%;

    padding:18px 16px;

    font-size:28px;
    line-height:1.5;
  }

}




a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
