
trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none;
}

trix-toolbar * {
  box-sizing: border-box;
}
trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto;
}
trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px;
}
trix-toolbar .trix-button-group:not(:first-child) {
  margin-left: 1.5vw;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 0;
  }
}
trix-toolbar .trix-button-group-spacer {
  flex-grow: 1;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button-group-spacer {
    display: none;
  }
}
trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent;
}
trix-toolbar .trix-button:not(:first-child) {
  border-left: 1px solid #ccc;
}
trix-toolbar .trix-button.trix-active {
  background: #cbeefa;
  color: rgb(0, 0, 0);
}
trix-toolbar .trix-button:not(:disabled) {
  cursor: pointer;
}
trix-toolbar .trix-button:disabled {
  color: rgba(0, 0, 0, 0.125);
}
@media (max-width: 768px) {
  trix-toolbar .trix-button {
    letter-spacing: -0.01em;
    padding: 0 0.3em;
  }
}
trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button--icon {
    height: 2em;
    max-width: calc(0.8em + 3.5vw);
  }
}
trix-toolbar .trix-button--icon::before {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.6;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
@media (max-width: 768px) {
  trix-toolbar .trix-button--icon::before {
    right: 6%;
    left: 6%;
  }
}
trix-toolbar .trix-button--icon.trix-active::before {
  opacity: 1;
}
trix-toolbar .trix-button--icon:disabled::before {
  opacity: 0.125;
}
trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%;
}
trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}
trix-toolbar .trix-dialogs {
  position: relative;
}
trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5;
}
trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
trix-toolbar .trix-input--dialog.validate:invalid {
  box-shadow: #F00 0px 0px 1.5px 1px;
}
trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none;
}
trix-toolbar .trix-dialog--link {
  max-width: 600px;
}
trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline;
}
trix-toolbar .trix-dialog__link-fields .trix-input {
  flex: 1;
}
trix-toolbar .trix-dialog__link-fields .trix-button-group {
  flex: 0 0 content;
  margin: 0;
}

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

trix-editor [data-trix-mutable] ::-moz-selection, trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection {
  background: none;
}
trix-editor [data-trix-mutable] ::selection, trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection {
  background: none;
}

trix-editor [data-trix-mutable].attachment__caption-editor:focus::-moz-selection {
  background: highlight;
}
trix-editor [data-trix-mutable].attachment__caption-editor:focus::selection {
  background: highlight;
}

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent;
}
trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight;
}
trix-editor .attachment {
  position: relative;
}
trix-editor .attachment:hover {
  cursor: default;
}
trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text;
}
trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in;
}
trix-editor .attachment__progress[value="100"] {
  opacity: 0;
}
trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center;
}
trix-editor .trix-button-group {
  display: inline-flex;
}
trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent;
}
trix-editor .trix-button:not(:first-child) {
  border-left: 1px solid #ccc;
}
trix-editor .trix-button.trix-active {
  background: #cbeefa;
}
trix-editor .trix-button:not(:disabled) {
  cursor: pointer;
}
trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25);
}
trix-editor .trix-button--remove::before {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.7;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 90%;
}
trix-editor .trix-button--remove:hover {
  border-color: #333;
}
trix-editor .trix-button--remove:hover::before {
  opacity: 1;
}
trix-editor .attachment__metadata-container {
  position: relative;
}
trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
}
trix-editor .attachment__metadata .attachment__name {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
trix-editor .attachment__metadata .attachment__size {
  margin-left: 0.2em;
  white-space: nowrap;
}

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}
.trix-content * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.trix-content h1 {
  font-size: 1.2em;
  line-height: 1.2;
}
.trix-content blockquote {
  border: 0 solid #ccc;
  border-left-width: 0.3em;
  margin-left: 0.3em;
  padding-left: 0.6em;
}
.trix-content [dir=rtl] blockquote,
.trix-content blockquote[dir=rtl] {
  border-width: 0;
  border-right-width: 0.3em;
  margin-right: 0.3em;
  padding-right: 0.6em;
}
.trix-content li {
  margin-left: 1em;
}
.trix-content [dir=rtl] li {
  margin-right: 1em;
}
.trix-content pre {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.5em;
  white-space: pre;
  background-color: #eee;
  overflow-x: auto;
}
.trix-content img {
  max-width: 100%;
  height: auto;
}
.trix-content .attachment {
  display: inline-block;
  position: relative;
  max-width: 100%;
}
.trix-content .attachment a {
  color: inherit;
  text-decoration: none;
}
.trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
  color: inherit;
}
.trix-content .attachment__caption {
  text-align: center;
}
.trix-content .attachment__caption .attachment__name + .attachment__size::before {
  content: " •";
}
.trix-content .attachment--preview {
  width: 100%;
  text-align: center;
}
.trix-content .attachment--preview .attachment__caption {
  color: #666;
  font-size: 0.9em;
  line-height: 1.2;
}
.trix-content .attachment--file {
  color: #333;
  line-height: 1;
  margin: 0 2px 2px 2px;
  padding: 0.4em 1em;
  border: 1px solid #bbb;
  border-radius: 5px;
}
.trix-content .attachment-gallery {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.trix-content .attachment-gallery .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}
.trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
  flex-basis: 50%;
  max-width: 50%;
}
/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *

*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
/* =========================================================
   管理画面（CMS）
   ========================================================= */

body.admin {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: #F6F3EF;
  -webkit-font-smoothing: antialiased;
}
.admin *, .admin *::before, .admin *::after { box-sizing: border-box; }
.admin h1, .admin h2 { margin: 0; font-family: var(--font-round); letter-spacing: .03em; }
.admin a { color: inherit; }

/* ---- レイアウト：左サイドバー＋本文 ---- */
.admin-topbar {
  position: sticky; top: 0; z-index: 40; display: none; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 12px 0 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.admin-topbar__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.admin-topbar__brand img { width: 120px; height: auto; }
.admin-topbar__brand span { font-size: 11px; font-weight: 700; color: var(--muted); }
.admin-burger { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.admin-burger > span:not(.sr-only) { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.admin-shell.is-nav-open .admin-burger > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-shell.is-nav-open .admin-burger > span:nth-child(2) { opacity: 0; }
.admin-shell.is-nav-open .admin-burger > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.admin-overlay { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(42, 37, 34, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.admin .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  position: sticky; top: 0; display: flex; flex: none; flex-direction: column;
  width: 232px; height: 100vh; background: #fff; border-right: 1px solid var(--line);
}
.admin-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.admin-brand__logo { display: block; width: 150px; height: auto; }
.admin-brand__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.admin-brand__mark {
  display: none; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff; font-family: var(--font-round); font-weight: 900; font-size: 18px;
}
.admin-brand__text { font-family: var(--font-round); font-weight: 900; font-size: 15px; line-height: 1.3; color: var(--green); }
.admin-brand__text small { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--muted); }

.admin-menu { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 12px; overflow-y: auto; }
.admin-menu__group { margin: 14px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #A89D93; }
.admin-menu__group:first-child { margin-top: 2px; }
.admin-menu__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.admin-menu__item:hover { background: #FBF6F0; color: var(--ink); }
.admin-menu__item.is-active { background: var(--brand-50); color: var(--brand-dark); }
.admin-menu__item span { overflow: hidden; text-overflow: ellipsis; }
.admin-menu__count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px;
  border-radius: 999px; background: #E5484D; color: #fff; font-size: 11px; line-height: 1;
}
.admin-icon { flex: none; }
.admin-side__foot { padding: 12px; border-top: 1px solid var(--line); }
.admin-side__user { margin: 8px 12px 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-side__foot form { margin: 0; }
.admin-side__logout {
  width: 100%; margin-top: 2px; padding: 8px 12px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); text-align: left; cursor: pointer;
}
.admin-side__logout:hover { background: #FBF6F0; color: var(--ink); }

.admin-main { flex: 1; min-width: 0; max-width: 1240px; padding: 32px 36px 96px; }
.admin-lead { margin: -6px 0 20px; color: var(--ink-2); }
.admin-back { width: 100%; font-size: 13px; font-weight: 700; color: var(--muted) !important; text-decoration: none; }
.admin-back:hover { color: var(--brand-dark) !important; }
.admin-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--brand-dark) !important; text-decoration: none; cursor: pointer; white-space: nowrap; }
.admin-link:hover { text-decoration: underline; }
.admin-narrow { max-width: 640px; }
.admin-narrow .admin-panel + .admin-panel, .admin-narrow .admin-panel + form.admin-panel { margin-top: 16px; }

.admin-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.admin-title-row h1 { font-size: 24px; }
.admin-title-row .admin-actions { display: flex; gap: 8px; margin-left: auto; }

.admin-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border: 1px solid transparent; border-radius: 10px;
  background: var(--brand); color: #fff !important;
  font: inherit; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.admin-btn:hover { background: var(--brand-dark); }
.admin-btn--outline { background: #fff; color: var(--ink) !important; border-color: #DDD2C6; }
.admin-btn--outline:hover { background: #FBF8F4; }
.admin-btn--danger { background: #fff; color: #B83232 !important; border-color: #EFC8C8; }
.admin-btn--danger:hover { background: #FDF1F1; }
.admin-btn--text { padding: 4px 8px; background: none; color: var(--muted) !important; }
.admin-btn--text:hover { background: none; color: var(--ink) !important; text-decoration: underline; }
.admin-btn--sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.admin-btn--block { width: 100%; padding: 12px; }

.admin-flash { margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.admin-flash--notice { background: #E3F4E8; color: #21704A; }
.admin-flash--alert { background: #FDECEC; color: #A82C2C; }

.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-tabs a { margin-bottom: -1px; padding: 10px 16px; border-bottom: 2px solid transparent; font-weight: 700; color: var(--muted); text-decoration: none; }
.admin-tabs a span { margin-left: 4px; font-size: 12px; font-weight: 500; }
.admin-tabs a.is-active { border-color: var(--brand); color: var(--brand-dark); }

.admin-card { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.admin-table th { background: #FBF9F6; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table__thumb { width: 72px; }
.admin-table__thumb img, .admin-table__thumb span { display: block; width: 64px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--brand-50); }
.admin-table__title a { font-weight: 700; font-size: 15px; text-decoration: none; }
.admin-table__title a:hover { color: var(--brand-dark); text-decoration: underline; }
.admin-table__title small { display: block; color: var(--muted); }
.admin-table__date { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.admin-table__actions { display: flex; justify-content: flex-end; gap: 6px; }
.admin-table__actions form { margin: 0; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge--published { background: #E3F4E8; color: #21704A; }
.badge--scheduled { background: #E6EEFB; color: #2F5DB3; }
.badge--draft { background: #EEEBE7; color: #6B635C; }
.badge--news { background: var(--brand-50); color: var(--brand-dark); }
.badge--blog { background: #E6F1F4; color: #2F7285; }
.badge--pending { background: #FDECEC; color: #A82C2C; }
.badge--done { background: #E3F4E8; color: #21704A; }

.admin-empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.admin-main .pagination { margin-top: 28px; }

/* form */
.admin-errors { margin-bottom: 20px; padding: 14px 18px; border-radius: 10px; background: #FDECEC; color: #A82C2C; }
.admin-errors ul { margin: 6px 0 0; padding-left: 1.4em; }
.admin-form__layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.admin-form__side { position: sticky; top: 24px; }
.admin-panel { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.admin-panel + .admin-panel { margin-top: 16px; }
.admin-panel__title { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.admin-panel form { margin: 0; }

/* inquiry detail */
.admin-dl { display: grid; margin: 0; }
.admin-dl > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.admin-dl > div:last-child { border-bottom: 0; }
.admin-dl dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.admin-dl dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.admin-dl dd p { margin: 0 0 8px; }
.admin-status { margin: 0 0 14px; }
@media (max-width: 600px) {
  .admin-dl > div { grid-template-columns: 1fr; gap: 2px; }
}
.admin-field + .admin-field { margin-top: 20px; }
.admin-label { display: block; margin-bottom: 6px; font-weight: 700; }
.admin-label small { margin-left: 6px; font-weight: 500; color: var(--muted); }
.admin-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.admin-input {
  width: 100%; padding: 10px 12px; border: 1px solid #DDD2C6; border-radius: 10px;
  background: #fff; font: inherit; color: var(--ink);
}
.admin-input:focus { outline: 3px solid var(--brand-100); border-color: var(--brand); }
.admin-input--title { padding: 14px 16px; font-size: 20px; font-weight: 700; }
textarea.admin-input { resize: vertical; }

.admin-seg { display: flex; gap: 8px; }
.admin-seg label { position: relative; flex: 1; }
.admin-seg input { position: absolute; opacity: 0; pointer-events: none; }
.admin-seg span { display: block; padding: 9px; border: 1px solid #DDD2C6; border-radius: 10px; background: #fff; text-align: center; font-weight: 700; cursor: pointer; }
.admin-seg input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-dark); }
.admin-seg input:focus-visible + span { outline: 3px solid var(--brand-100); }

.admin-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }

.admin-eyecatch-preview { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 10px; border-radius: 10px; }

/* ---- 本文エディタ（テキスト） ---- */
.admin-editor__bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; background: #F6F3EF; }
.admin-tool {
  padding: 7px 12px; border: 1px solid #DDD2C6; border-radius: 8px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--brand-dark); cursor: pointer;
}
.admin-tool:hover { border-color: var(--brand); background: var(--brand-50); }
.admin-editor__manage { margin-left: auto; font-size: 13px; }
textarea.admin-editor {
  min-height: 480px; padding: 18px 20px; resize: none; overflow: hidden;
  font-size: 16px; line-height: 1.9;
}
.admin-help { margin-top: 10px; padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.admin-help summary { font-weight: 700; cursor: pointer; }
.admin-help ul { margin: 8px 0 0; padding-left: 1.3em; }
.admin-help li + li { margin-top: 4px; }
.admin-help code { padding: 1px 6px; border-radius: 4px; background: var(--brand-50); font-size: 12px; }

/* ---- ダイアログ（画像・動画の挿入） ---- */
.admin-dialog { width: min(760px, 92vw); max-height: 86vh; margin: auto; padding: 0; border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--ink); }
.admin-dialog--sm { width: min(520px, 92vw); }
.admin-dialog::backdrop { background: rgba(42, 37, 34, .45); }
.admin-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.admin-dialog__head h2 { font-size: 16px; }
.admin-dialog__body { padding: 20px; }
.admin-dialog__note { margin: 14px 20px 0; font-size: 13px; color: var(--muted); }
.admin-dialog__empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.admin-dialog__actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.admin-field-error { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #A82C2C; }
.admin-media-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-height: 60vh; padding: 16px 20px 20px; overflow-y: auto; }
.admin-media-choice {
  display: block; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.admin-media-choice:hover { border-color: var(--brand); background: var(--brand-50); }
.admin-media-choice img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #F6F3EF; }
.admin-media-choice span { display: block; margin-top: 6px; overflow: hidden; font-size: 12px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }

/* ---- アイキャッチの選択 ---- */
.admin-picker__preview { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #F6F3EF; color: var(--muted); font-size: 13px; }
.admin-picker__preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-picker__actions { display: flex; gap: 6px; margin-top: 10px; }
[hidden] { display: none !important; }

/* ---- メディア一覧 ---- */
.admin-upload { margin-bottom: 24px; }
.admin-upload__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-file { flex: 1; min-width: 240px; padding: 8px; border: 1px dashed #D3C6B8; border-radius: 10px; background: #FBF9F6; font: inherit; font-size: 13px; cursor: pointer; }
.admin-file::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 1px solid #DDD2C6; border-radius: 8px; background: #fff; font: inherit; font-weight: 700; color: var(--brand-dark); cursor: pointer; }
.admin-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.admin-media { display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.admin-media__thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #F6F3EF; }
.admin-media__thumb img { width: 100%; height: 100%; object-fit: contain; }
.admin-media__name { margin: 10px 0 0; overflow: hidden; font-weight: 700; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-media__meta { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.admin-media__desc { margin-top: 10px; }
.admin-media__desc-row { display: flex; gap: 6px; }
.admin-media__foot { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.admin-media__foot form { margin: 0; }
.admin-label--sm { margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.admin-input--sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }

/* ---- 一覧の絞り込み ---- */
.admin-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-pills { display: flex; gap: 6px; }
.admin-pill { padding: 6px 14px; border: 1px solid #DDD2C6; border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.admin-pill span { margin-left: 6px; font-weight: 500; color: var(--muted); }
.admin-pill.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.admin-pill.is-active span { color: rgba(255, 255, 255, .8); }
.admin-search { display: flex; gap: 6px; margin: 0; }
.admin-search .admin-input { width: 240px; padding: 7px 12px; }
.admin-search .admin-btn { padding: 7px 14px; }

.admin-table__post { display: flex; align-items: center; gap: 12px; }
.admin-table__thumb { display: block; flex: none; width: 72px; height: 46px; object-fit: cover; border-radius: 6px; background: var(--brand-50); }
.admin-table__title { font-weight: 700; font-size: 15px; text-decoration: none; }
.admin-table__title:hover { color: var(--brand-dark); text-decoration: underline; }
.admin-table__muted { color: var(--ink-2); }
.admin-table__muted small { display: block; font-size: 12px; color: #A89D93; }
.admin-table__nowrap { white-space: nowrap; }
.admin-table th.is-right { text-align: right; }
.admin-table__actions { align-items: center; gap: 12px; }
.admin-btn--soft { background: var(--brand-50); color: var(--brand-dark) !important; border-color: var(--brand-100); }
.admin-btn--soft:hover { background: var(--brand-100); }
.admin-panel__gap { margin-top: 8px; }
.admin-danger { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-danger form { margin: 0; }
.admin-state { margin: 0; font-weight: 700; }
.admin-current-pass { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #FBF9F6; border: 1px solid var(--line); }
.admin-current-pass span { font-size: 13px; font-weight: 700; color: var(--muted); }
.admin-current-pass code { padding: 2px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 18px; font-weight: 700; letter-spacing: .04em; user-select: all; }
.admin-current-pass em { font-style: normal; font-size: 13px; color: var(--muted); }
.admin-state--ok { color: #21704A; }
.admin-state--warn { color: #A85A00; }
.admin-submit-row { margin-top: 20px; }
.admin-recipients { margin: 4px 0 0; padding: 0; list-style: none; }
.admin-recipients__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-recipients__item:first-child { border-top: 0; padding-top: 4px; }
.admin-recipients__email { font-weight: 700; word-break: break-all; }
.admin-recipients__actions { display: flex; gap: 8px; }
.admin-recipients__actions form { margin: 0; }
.admin-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: #FFF6E5; font-size: 13px; color: #6B4A00; }
.badge--members { background: #EFEAF7; color: #5B4A8A; }

/* login */
.admin-login { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.admin-login__card { width: 100%; max-width: 400px; padding: 40px 32px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.admin-login__card img { display: block; width: 200px; height: auto; margin: 0 auto 8px; }
.admin-login__card h1 { margin-bottom: 24px; text-align: center; font-size: 18px; }
.admin-login__card .admin-btn { margin-top: 24px; }

@media (max-width: 900px) {
  /* スマホ・タブレット：上部バー＋ハンバーガーで開くメニュー */
  .admin-shell { display: block; }
  .admin-topbar { display: flex; }
  .admin-overlay { display: block; }
  .admin-side {
    position: fixed; top: 0; left: 0; z-index: 60; width: min(280px, 82vw); height: 100vh; height: 100dvh;
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: none;
  }
  .admin-shell.is-nav-open .admin-side { transform: none; box-shadow: var(--shadow-lg); }
  .admin-shell.is-nav-open .admin-overlay { opacity: 1; pointer-events: auto; }
  .admin-main { padding: 24px 16px 80px; }
  .admin-search .admin-input { width: 100%; }
  .admin-form__layout { grid-template-columns: 1fr; }
  .admin-form__side { position: static; }
}

/* お問い合わせ詳細：添付ファイル */
.admin-files { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.admin-files small { margin-left: 8px; color: var(--muted); }
/* =========================================================
   Giggle Assist かわぐち - 公開サイト
   ========================================================= */

:root {
  --brand: #E8792B;
  --brand-dark: #C25A12;
  --brand-50: #FFF4EA;
  --brand-100: #FDE3CD;
  --green: #1F5B4C;
  --green-dark: #173F36;
  --cream: #FFFAF2;
  --paper: #FFFFFF;
  --ink: #2A2522;
  --ink-2: #544B45;
  --muted: #857A72;
  --line: #EDE3D8;
  --sky: #2F7285;
  --accent: var(--brand);

  --radius: 20px;
  --shadow: 0 10px 30px rgba(74, 46, 20, .08);
  --shadow-lg: 0 18px 40px rgba(74, 46, 20, .14);
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --container: 1160px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
/* リセットは :where() で詳細度0にし、各コンポーネントのクラス指定が必ず勝つようにする */
:where(.site) img { max-width: 100%; height: auto; display: block; }
:where(.site) a { color: inherit; }
:where(.site) :is(h1, h2, h3, h4) {
  margin: 0;
  font-family: var(--font-round);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  /* 日本語の見出しを文節の区切りで改行する（対応ブラウザのみ） */
  word-break: auto-phrase;
}
:where(.site) p { margin: 0; }
:where(.site) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.site) small { font-size: .8em; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 880px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff !important; padding: 8px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sp-only { display: none; }
@media (max-width: 640px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-round); font-weight: 700; font-size: 15px; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff !important; box-shadow: 0 5px 0 var(--brand-dark); }
.btn--primary:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--brand-dark) !important; border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-50); }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--line { background: #06C755; color: #fff !important; box-shadow: 0 5px 0 #05A144; }
.btn--line:hover { transform: translateY(2px); box-shadow: 0 3px 0 #05A144; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.btn--sm { padding: 10px 20px; font-size: 14px; box-shadow: 0 4px 0 var(--brand-dark); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--brand-dark) !important; text-decoration: none;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.tag {
  display: inline-block; padding: 1px 10px; border-radius: 6px;
  background: var(--brand-50); color: var(--brand-dark) !important;
  font-size: 12px; font-weight: 700; line-height: 1.8; text-decoration: none;
}
.tag--kind { background: var(--green); color: #fff !important; }

.empty { color: var(--muted); font-size: 14px; padding: 16px 0; }
.empty--large { text-align: center; padding: 64px 0; font-size: 16px; }

/* ---------- Photo ---------- */
.photo { width: 100%; height: 100%; object-fit: cover; }
.photo--placeholder {
  display: grid; place-items: center; min-height: 160px;
  background: repeating-linear-gradient(-45deg, #F7EEE3 0 14px, #F2E6D8 14px 28px);
  color: #9C8570;
}
.photo__label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-size: 12px; font-weight: 700; line-height: 1.4; text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  max-width: 1320px; height: var(--header-h); margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; gap: 24px;
}
.site-header__logo { flex: none; }
.site-header__logo img { height: 46px; width: auto; }

.gnav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.gnav__list { display: flex; gap: 2px; }
.gnav__link {
  position: relative; display: block; padding: 8px 12px;
  font-family: var(--font-round); font-weight: 700; font-size: 15px;
  text-decoration: none; border-radius: 999px; transition: background-color .2s, color .2s;
}
.gnav__link:hover { background: var(--brand-50); color: var(--brand-dark); }
.gnav__link.is-current { color: var(--brand-dark); }
.gnav__link.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--brand);
}
.gnav__cta { display: flex; align-items: center; gap: 16px; }
.header-tel { display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; }
.header-tel__num {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-round); font-weight: 900; font-size: 20px; color: var(--green); letter-spacing: .02em;
}
.header-tel__note { font-size: 11px; color: var(--muted); }

.nav-toggle { display: none; }

@media (max-width: 1240px) {
  .header-tel { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .site-header__logo img { height: 36px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    margin-left: auto; width: 46px; height: 46px; padding: 0;
    border: 0; border-radius: 14px; background: var(--brand); cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gnav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 28px;
    padding: 16px 24px 40px; overflow-y: auto;
    background: var(--cream);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .is-open .gnav { opacity: 1; visibility: visible; transform: none; }
  .gnav__list { flex-direction: column; }
  .gnav__link { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .gnav__link:hover { background: none; }
  .gnav__link.is-current::after { left: auto; right: 8px; top: 50%; margin-top: -3px; }
  .gnav__cta { flex-direction: column; align-items: stretch; }
  .header-tel { display: flex; align-items: center; padding: 16px; background: #fff; border-radius: 16px; }
  .header-tel__num { font-size: 26px; }
  .gnav__cta .btn { padding: 16px; font-size: 16px; }
}

/* ---------- Section ---------- */
.section { padding: 112px 0; }
.section--tight { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: #fff; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head__en {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-round); font-weight: 900; font-size: 14px; letter-spacing: .22em; color: var(--brand);
}
.section-head__en::before, .section-head__en::after {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
}
.section-head__title { margin-top: 8px; font-size: clamp(26px, 3.4vw, 40px); }
.section-head__title em {
  font-style: normal; color: var(--brand);
  background: linear-gradient(transparent 68%, var(--brand-100) 68%);
}
.section-head__lead { max-width: 680px; margin: 18px auto 0; color: var(--ink-2); }
.section--green .section-head__en { color: #FFB27A; }
.section--green .section-head__title { color: #fff; }
.section--green .section-head__lead { color: rgba(255, 255, 255, .82); }

.sub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: clamp(22px, 2.6vw, 28px); }
.sub-head::before { content: ""; flex: none; width: 8px; height: 1.2em; border-radius: 4px; background: var(--accent); }
.block-gap { margin-top: 72px; }

@media (max-width: 768px) {
  body.site { font-size: 15px; }
  .section { padding: 72px 0; }
  .section--tight { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .block-gap { margin-top: 56px; }
  .container { padding-inline: 20px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 120px; background: var(--cream); }
.hero::before {
  content: ""; position: absolute; top: -200px; right: -160px;
  width: 560px; height: 560px; border-radius: 50%; background: var(--brand-100); opacity: .55;
}
.hero::after {
  content: ""; position: absolute; left: 0; bottom: 64px; width: 220px; height: 150px;
  background-image: radial-gradient(#F6CBA6 2px, transparent 2px); background-size: 18px 18px; opacity: .7;
}
.hero__inner {
  position: relative; z-index: 1; max-width: 1240px;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center;
}
/* 囲みは使わず、ピンのアイコン＋下線つきの文字だけの一行にする */
.hero__eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--ink-2);
}
.hero__eyebrow .icon { flex: none; width: 16px; height: 16px; color: var(--brand); }
.hero__eyebrow-text { display: inline-flex; align-items: center; padding-bottom: 4px; border-bottom: 1px solid var(--brand); }
/* 全角の「｜」は前後が空きすぎるので、文字は隠して細い線で描く */
.hero__eyebrow-sep { display: inline-block; width: 1px; height: 12px; margin-inline: 8px; background: currentColor; opacity: .45; font-size: 0; }
.hero__title {
  display: flex; flex-direction: column; align-items: flex-start;
  margin-top: 22px; font-size: clamp(38px, 5vw, 64px) !important; font-weight: 900 !important;
  line-height: 1.22 !important; letter-spacing: 0 !important; font-feature-settings: "palt";
}
/* 「」は詰めて薄くし、言葉そのものにマーカーを引いて目立たせる */
.hero__pair { display: block; white-space: nowrap; }
.hero__pair .hero__phrase { display: inline-block; }
.hero__pair .hero__phrase--2 { margin-left: .2em; }
.hero__intro { display: block; margin-bottom: .3em; font-size: .42em; letter-spacing: .08em; color: var(--ink-2); }
.hero__phrase { --c: var(--brand); --mark: #FFE0B8; display: block; white-space: nowrap; }
.hero__phrase--2 { --c: #2E8A5E; --mark: #D3EEDC; margin-left: .9em; }
.hero__phrase em {
  font-style: normal; color: var(--c); padding-inline: .04em;
  background: linear-gradient(transparent 60%, var(--mark) 60%, var(--mark) 92%, transparent 92%);
}
.hero__q { color: var(--c); opacity: .4; }
/* 全角かっこの外側の空きを詰め、開きかっこは左にぶら下げる */
.hero__q--open { margin-left: -.42em; margin-right: -.06em; }
.hero__q--close { margin-left: -.06em; margin-right: -.36em; }
.hero__particle { margin-left: .08em; font-size: .7em; color: var(--ink); }
.hero__rest { display: block; margin-top: .1em; font-size: .84em; color: var(--ink); }
.hero__sub { margin-top: 10px; font-family: var(--font-round); font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: var(--green); }
.hero__lead { margin-top: 16px; color: var(--ink-2); }

.subject-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.subject-chip {
  --c: var(--brand);
  padding: 4px 14px; border: 2px solid var(--c); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--c);
}
.subject-chip--jp { --c: #D5505C; }
.subject-chip--math { --c: #2F77BA; }
.subject-chip--en { --c: var(--brand-dark); }
.subject-chip--sci { --c: #2E8A5E; }
.subject-chip--soc { --c: #7A52C7; }
/* 英語は看板教科なので、大きさは他と同じまま塗りつぶして目立たせる */
.subject-chip--main { background: var(--c); color: #fff; }
/* 英検は教科ではないので、「+」を挟み角丸四角で教科チップとは別枠に見せる */
.subject-chips__plus { font-family: var(--font-round); font-size: 18px; font-weight: 900; line-height: 1; color: var(--muted); }
.subject-chip--eiken { --c: var(--green); border-radius: 6px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.hero__visual { position: relative; }
.hero__photo {
  aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: 40px 160px 40px 40px;
  box-shadow: var(--shadow-lg);
}
.hero__badges { position: absolute; left: -24px; bottom: -36px; display: flex; gap: 12px; }
.hero__badges li {
  width: 100px; height: 100px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: #fff; border: 3px solid var(--brand-100); box-shadow: var(--shadow);
  font-size: 12px; font-weight: 700; line-height: 1.35; color: var(--ink-2);
}
.hero__badges strong { display: block; font-family: var(--font-round); font-size: 19px; color: var(--brand-dark); }

@media (max-width: 960px) {
  .hero { padding: 40px 0 96px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__badges { left: 12px; bottom: -32px; }
  .hero__badges li { width: 84px; height: 84px; font-size: 11px; }
  .hero__badges strong { font-size: 16px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  /* スマホでの折り返しを減らす：見出しを詰め、5教科を1行に収める */
  .hero__title { font-size: 34px !important; }
  .hero__phrase--2 { margin-left: .5em; }
  .hero__lead { font-size: 14px; word-break: auto-phrase; }
  /* 教科＋英検を1行に収める：画面幅に合わせて文字と余白を縮める */
  .subject-chips { flex-wrap: nowrap; gap: min(5px, 1.2vw); }
  .subject-chip { padding: 3px min(8px, 2vw); font-size: min(12px, 2.95vw); white-space: nowrap; }
  .subject-chips__plus { font-size: 14px; }
}

/* ---------- News / Blog (top) ---------- */
.updates { position: relative; z-index: 2; margin-top: -56px; }
.updates__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.updates__panel { padding: 28px 32px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.updates__head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 14px; border-bottom: 2px solid var(--brand-50);
}
.updates__en { font-family: var(--font-round); font-weight: 900; font-size: 13px; letter-spacing: .16em; color: var(--brand); }
.updates__title { font-size: 20px !important; }
.updates__head .link-arrow { margin-left: auto; }
.post-list__item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
  padding: 14px 0; border-bottom: 1px dashed var(--line); text-decoration: none;
}
.post-list li:last-child .post-list__item { border-bottom: 0; }
.post-list__item time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-list__title { flex-basis: 100%; font-weight: 700; line-height: 1.6; transition: color .2s; }
.post-list__item:hover .post-list__title { color: var(--brand-dark); text-decoration: underline; }

.updates__tabs { display: none; }

/* スマホではタブで切り替え、件数と余白を絞って縦に長くならないようにする */
@media (max-width: 860px) {
  .updates { margin-top: -40px; }
  .updates__grid { grid-template-columns: 1fr; gap: 0; }
  .updates__tabs {
    display: flex; gap: 4px; margin-bottom: 10px; padding: 5px;
    background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  }
  .updates__tab {
    flex: 1; padding: 9px 12px; border: 0; border-radius: 999px; background: none;
    font-family: var(--font-round); font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer;
  }
  .updates__tab.is-active { background: var(--brand); color: #fff; }
  .updates__panel { padding: 4px 18px 6px; }
  .updates__panel.is-inactive { display: none; }
  .updates__head { padding: 10px 0 8px; }
  .updates__en, .updates__title { display: none; }
  .post-list li:nth-child(n+4) { display: none; }
  .post-list__item { padding: 10px 0; gap: 0 10px; }
  .post-list__item time { font-size: 12px; }
  .post-list__item .tag { font-size: 11px; line-height: 1.7; }
  .post-list__title {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px; line-height: 1.6;
  }
}

/* ---------- Class cards ---------- */
.class-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
/* PC幅では間隔を少し詰め、左右に少しはみ出させてカード1枚の幅を広げる */
@media (min-width: 1260px) { .class-cards { gap: 18px; margin-inline: -36px; } }
.class-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.class-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.class-card__media { position: relative; aspect-ratio: 4 / 3; }
.class-card__media .photo { position: absolute; inset: 0; }
.class-card__target {
  position: absolute; left: 16px; bottom: -14px;
  padding: 3px 14px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
}
.class-card__body { display: flex; flex-direction: column; flex: 1; padding: 30px 22px 24px; }
.class-card__en { font-family: var(--font-round); font-size: 12px; font-weight: 900; letter-spacing: .14em; color: var(--accent); }
.class-card__title { font-size: 21px !important; }
.class-card__text { flex: 1; margin-top: 10px !important; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.class-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--accent); }
.class-card:hover .class-card__more .icon { transform: translateX(3px); }
.class-card__more .icon { transition: transform .2s; }

@media (max-width: 1024px) { .class-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .class-cards { grid-template-columns: 1fr; } }

/* ---------- Reasons ---------- */
.reasons { display: flex; flex-direction: column; gap: 104px; }
.reason { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.reason__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 32px 120px 32px 32px; background: #fff; box-shadow: var(--shadow); }
.reason--reverse .reason__media { order: 2; border-radius: 120px 32px 32px 32px; }
.reason__num {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-round); font-weight: 900; font-size: 14px; letter-spacing: .16em; color: var(--brand);
}
.reason__num span { font-size: 64px; line-height: 1; letter-spacing: 0; }
.reason__title { margin-top: 14px !important; font-size: clamp(22px, 2.6vw, 30px) !important; }
.reason__text { margin-top: 20px; color: var(--ink-2); }
.reason__text p + p { margin-top: 12px; }
.reason__points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px !important; }
.reason__points li {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 8px; background: var(--brand-50); color: var(--brand-dark);
  font-size: 13px; font-weight: 700; line-height: 1.5;
}
.reason__points .icon { stroke-width: 3; }

@media (max-width: 900px) {
  .reasons { gap: 72px; }
  .reason { grid-template-columns: 1fr; gap: 28px; }
  .reason--reverse .reason__media { order: 0; }
  .reason__num span { font-size: 48px; }
}

/* ---------- Results ---------- */
/* 合格実績：囲みやタグを使わず、罫線で区切った校名の一覧にする */
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.results__label { display: flex; align-items: center; gap: 16px; margin-bottom: 4px !important; font-family: var(--font-round); font-weight: 700; font-size: 15px; letter-spacing: .14em; color: var(--brand-100); }
.results__label::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .4; }
.results__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.results__list li { padding: 14px 2px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-family: var(--font-round); font-weight: 700; font-size: 17px; line-height: 1.5; letter-spacing: .02em; }
.results__note { margin-top: 24px !important; text-align: right; font-size: 13px; opacity: .75; }
.results--light .results__label { color: var(--accent); }
.results--light .results__list li { border-bottom-color: var(--line); }

@media (max-width: 768px) {
  .results { grid-template-columns: 1fr; gap: 36px; }
  .results__list { column-gap: 20px; }
  .results__list li { font-size: 15px; padding: 11px 2px; }
}

/* ---------- Message ---------- */
.message {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px;
  padding: 56px; background: #fff; border-radius: 32px; box-shadow: var(--shadow);
}
.message__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; }
.message__role { margin-top: 20px !important; font-size: 13px; font-weight: 700; color: var(--muted); }
.message__name { font-family: var(--font-round); font-weight: 700; font-size: 26px; line-height: 1.4; }
.message__name span { display: block; font-size: 12px; letter-spacing: .16em; color: var(--brand); }
.message__career { display: grid; gap: 6px; margin-top: 16px !important; font-size: 13px; color: var(--ink-2); }
.message__career li { position: relative; padding-left: 16px; line-height: 1.6; }
.message__career li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.message__title { margin-bottom: 24px !important; font-size: clamp(22px, 2.6vw, 30px) !important; color: var(--brand-dark); }
.message__body p + p { margin-top: 16px; }
.message__sign { margin-top: 28px !important; text-align: right; font-family: var(--font-round); font-weight: 700; }

@media (max-width: 960px) {
  .message { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .message__profile { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
  .message__role { margin-top: 0 !important; }
}
@media (max-width: 480px) {
  .message__profile { grid-template-columns: 1fr; }
  .message__photo { max-width: 240px; }
}

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.flow__step {
  position: relative; padding: 32px 24px 28px; text-align: center;
  background: #fff; border: 2px solid var(--brand-100); border-radius: var(--radius);
}
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -20px; width: 12px; height: 12px;
  border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); transform: translateY(-50%) rotate(45deg);
}
.flow__num {
  display: inline-block; padding: 3px 14px; border-radius: 999px; background: var(--brand); color: #fff;
  font-family: var(--font-round); font-weight: 900; font-size: 12px; letter-spacing: .1em;
}
.flow__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 16px auto 10px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.flow__icon .icon { width: 28px; height: 28px; }
.flow__title { font-size: 19px !important; }
.flow__text { margin-top: 10px !important; font-size: 14px; line-height: 1.8; color: var(--ink-2); text-align: left; }

@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .flow__step::after { display: none; }
}
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 880px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq__q {
  display: flex; align-items: center; gap: 16px; padding: 18px 24px;
  font-family: var(--font-round); font-weight: 700; font-size: 17px; line-height: 1.6;
  list-style: none; cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q > .icon { margin-left: auto; width: 22px; height: 22px; color: var(--brand); transition: transform .25s; }
.faq__item[open] .faq__q > .icon { transform: rotate(180deg); }
.faq__mark {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff; font-family: var(--font-round); font-weight: 900; font-size: 16px;
}
.faq__mark--a { background: var(--green); }
.faq__a { display: flex; gap: 16px; padding: 0 24px 22px; }
.faq__a p { padding-top: 3px; color: var(--ink-2); }

@media (max-width: 640px) {
  .faq__q { padding: 16px; font-size: 15px; gap: 12px; }
  .faq__a { padding: 0 16px 18px; gap: 12px; }
  .faq__mark { width: 30px; height: 30px; font-size: 14px; }
}

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.program { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.program__media { position: relative; aspect-ratio: 16 / 10; }
.program__media .photo { position: absolute; inset: 0; }
.program__body { padding: 28px; }
.program__tag { display: inline-block; padding: 2px 10px; border-radius: 6px; background: #E6F1F4; color: var(--sky); font-size: 12px; font-weight: 700; }
.program__title { margin-top: 10px !important; font-size: 22px !important; }
.program__text { margin-top: 12px !important; font-size: 14px; line-height: 1.85; color: var(--ink-2); }

.check-list { display: grid; gap: 8px; margin-top: 18px !important; }
.check-list li { display: flex; gap: 8px; font-size: 14px; line-height: 1.65; }
.check-list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); stroke-width: 3; }
.check-list--2col { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.check-list--2col li { font-size: 15px; font-weight: 500; }

@media (max-width: 1024px) { .programs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .programs { grid-template-columns: 1fr; }
  .check-list--2col { grid-template-columns: 1fr; }
}

/* ---------- Access ---------- */
.campuses { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.campus { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.campus__media { position: relative; aspect-ratio: 16 / 9; }
.campus__media .photo { position: absolute; inset: 0; }
.campus__body { display: flex; flex-direction: column; gap: 18px; flex: 1; padding: 28px 32px 32px; }
.campus__name { font-size: 22px !important; color: var(--brand-dark); }
.campus__info { display: grid; gap: 8px; margin: 0; }
.campus__info div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; font-size: 15px; line-height: 1.7; }
.campus__info dt { padding-top: 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.campus__info dd { margin: 0; }
.campus__map { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--cream); }
.campus__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.campus .link-arrow { align-self: flex-start; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px !important; }
.gallery__item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; }
.gallery__item .photo--placeholder { min-height: 0; }

.hours {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 40px;
  margin-top: 40px; padding: 22px 32px;
  background: #fff; border: 2px dashed var(--brand-100); border-radius: var(--radius);
}
.hours p { display: flex; align-items: center; gap: 10px; }
.hours .icon { color: var(--brand); }
.hours strong { padding: 1px 10px; border-radius: 6px; background: var(--brand-50); color: var(--brand-dark); font-size: 13px; }

@media (max-width: 900px) {
  .campuses { grid-template-columns: 1fr; }
  .campus__body { padding: 24px 22px 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hours { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: 96px 0; background: linear-gradient(160deg, #EF8A3A 0%, var(--brand) 55%, #DD6A1E 100%); color: #fff; }
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.contact::before { width: 420px; height: 420px; left: -140px; top: -180px; }
.contact::after { width: 300px; height: 300px; right: -80px; bottom: -140px; }
.contact .container { position: relative; z-index: 1; }
.contact__head { text-align: center; }
.contact__recruit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 999px; background: #fff; color: var(--brand-dark);
  font-size: 14px; font-weight: 700;
}
.contact__dot { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.contact__title { margin-top: 20px !important; font-size: clamp(26px, 3.6vw, 40px) !important; color: #fff; }
.contact__lead { margin-top: 12px !important; opacity: .95; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; margin: 48px auto 0; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: 28px;
  background: #fff; color: var(--ink) !important; border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(120, 50, 0, .2); text-decoration: none; transition: transform .2s;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.contact-card__icon .icon { width: 26px; height: 26px; }
.contact-card__title { font-family: var(--font-round); font-weight: 700; font-size: 18px; }
.contact-card__num { font-family: var(--font-round); font-weight: 900; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.25; letter-spacing: .02em; color: var(--brand-dark); }
.contact-card__text { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.contact-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--brand-dark); }
.contact-card--tel { background: #FFFBF5; }
.contact-card--line .contact-card__icon { background: #E4F8EC; color: #06C755; }

/* ---------- Inquiry form ---------- */
.contact-form {
  padding: 36px 36px 40px; background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 12px 30px rgba(120, 50, 0, .2);
}
.contact-form--page { max-width: 760px; margin-inline: auto; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form__title { font-size: 22px !important; }
.contact-form__lead { margin-top: 4px !important; font-size: 14px; color: var(--ink-2); }

.inquiry-form { display: grid; gap: 22px; margin-top: 24px; }
.form-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 15px; line-height: 1.5; }
.form-req, .form-opt { padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.8; }
.form-req { background: var(--brand); color: #fff; }
.form-opt { background: #EEEBE7; color: var(--muted); }
.form-input {
  width: 100%; padding: 12px 14px; border: 1px solid #DDD2C6; border-radius: 12px;
  background-color: #FFFDFB; font: inherit; font-size: 16px; line-height: 1.6; letter-spacing: .02em; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.form-input::placeholder { color: #B5AAA1; }
.form-input:focus { outline: 3px solid var(--brand-100); border-color: var(--brand); background-color: #fff; }
textarea.form-input { resize: vertical; }
select.form-input {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C25A12' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}

.form-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.form-choice { position: relative; }
.form-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid #DDD2C6; border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.5; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.form-choice span::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid #CFC5BB; border-radius: 50%; transition: border .15s; }
/* バリデーションエラー時は Rails が input を div で包むため、兄弟セレクタではなく :has で判定する */
.form-choice:has(input:checked) span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-dark); }
.form-choice:has(input:checked) span::before { border: 5px solid var(--brand); }
.form-choice:has(input:focus-visible) span { outline: 3px solid var(--brand-100); }
.field_with_errors { display: contents; }
.field_with_errors .form-input { border-color: #D14343; background-color: #FFF8F8; }

.form-errors { padding: 14px 18px; border-radius: 12px; background: #FDECEC; color: #A82C2C; font-size: 14px; line-height: 1.7; }
:where(.site) .form-errors ul { margin-top: 4px; padding-left: 1.3em; list-style: disc; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; margin-top: 6px; }
.form-hint { margin-top: 6px !important; font-size: 13px; line-height: 1.7; color: var(--muted); }
.form-aside { margin: -6px 0 0 !important; font-size: 13px; color: var(--muted); }
.form-aside a { color: var(--brand-dark); text-decoration: underline; }
.form-errors__note { margin-top: 6px !important; font-size: 13px; }
.form-field--short .form-unit { display: flex; align-items: center; gap: 8px; max-width: 180px; }
.form-unit span { flex: none; font-weight: 700; }
.form-file {
  display: block; width: 100%; padding: 14px; border: 1px dashed #D5C7B8; border-radius: 12px;
  background: #FFFDFB; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.form-file::file-selector-button {
  margin-right: 12px; padding: 8px 16px; border: 1px solid var(--brand); border-radius: 999px;
  background: #fff; color: var(--brand-dark); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}

.thanks { max-width: 640px; margin-inline: auto; text-align: center; }
.thanks__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.thanks__icon .icon { width: 34px; height: 34px; stroke-width: 3; }
.thanks p + p { margin-top: 12px; }
.thanks p { color: var(--ink-2); }
.thanks .btn { margin-top: 36px; }

/* ---------- Modal ---------- */
.modal {
  width: min(720px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(42, 37, 34, .55); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
.modal__panel { padding: 0 36px 36px; }
.modal__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 24px 0 6px; background: #fff; }
.modal__title { font-size: 22px !important; }
.modal__close {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto;
  border: 0; border-radius: 50%; background: var(--brand-50); color: var(--brand-dark); cursor: pointer; transition: background-color .2s;
}
.modal__close:hover { background: var(--brand-100); }
.modal__close .icon { width: 20px; height: 20px; }
.modal__lead { font-size: 14px; color: var(--ink-2); }

@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .contact { padding: 72px 0; }
}
@media (max-width: 640px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px 32px; }
  .form-row { grid-template-columns: 1fr; }
  .modal__panel { padding: 0 20px 28px; }
  .modal__head { padding-top: 18px; }
  .modal__title { font-size: 18px !important; word-break: keep-all; overflow-wrap: anywhere; }
}

/* 電話番号に添える一言（控えめに） */
.tel-note { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.tel-note--footer { margin-top: 4px !important; color: rgba(255, 255, 255, .65); }
.tel-note--center { margin-top: 12px !important; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 28px; background: var(--green); color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.8; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { height: 50px; width: auto; }
.site-footer__tagline { margin-top: 16px !important; }
.site-footer__tel {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--font-round); font-weight: 900; font-size: 22px; color: #fff !important; text-decoration: none;
}
.site-footer__line {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 16px;
  border-radius: 999px; background: #06C755; color: #fff !important;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.site-footer__line:hover { background: #05A144; }
/* 電話番号と LINE ボタンは、画面幅に関係なくそれぞれ 1 行に置く */
.site-footer__tel, .site-footer__line { display: flex; width: fit-content; }
.site-footer__heading { margin-bottom: 14px !important; font-family: var(--font-round); font-weight: 700; font-size: 15px; color: #fff; }
.site-footer__links { display: grid; gap: 6px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__campus strong { color: #fff; }
.site-footer__campus + .site-footer__campus { margin-top: 14px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 12px; color: rgba(255, 255, 255, .65);
}

@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 32px 0 64px; background: var(--cream); }
.page-hero::after {
  content: ""; position: absolute; top: -140px; right: -100px; width: 400px; height: 400px;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--cream));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero--article { padding: 24px 0 8px; }
.page-hero--article::after { display: none; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }
.page-hero__en { margin-top: 36px !important; font-family: var(--font-round); font-weight: 900; font-size: 13px; letter-spacing: .2em; color: var(--accent); }
.page-hero__title { margin-top: 2px !important; font-size: clamp(32px, 4.4vw, 50px) !important; }
.page-hero__target { display: inline-block; margin-top: 14px !important; padding: 3px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.page-hero__lead { max-width: 720px; margin-top: 18px !important; font-size: 17px; color: var(--ink-2); }

/* ---------- Course pages ---------- */
.course-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.course-intro__title { font-size: clamp(24px, 3vw, 34px) !important; line-height: 1.55 !important; }
.course-intro__title em { font-style: normal; color: var(--accent); }
.course-intro__text p { margin-top: 18px; color: var(--ink-2); }
.course-topics { display: block; }
.course-topic + .course-topic { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.course-topics .course-topic__tag {
  display: flex; align-items: center; gap: 12px; margin: 0;
  color: var(--accent); font-family: var(--font-round); font-weight: 700; font-size: 14px; letter-spacing: .12em; line-height: 1.6;
}
.course-topic__tag::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--accent); }
.course-topic__title { margin-top: 12px !important; font-size: clamp(22px, 2.5vw, 29px) !important; line-height: 1.6 !important; }
.course-topic__title em { display: inline-block; font-style: normal; color: var(--accent); }
.course-topics .course-topic__text { margin-top: 14px; line-height: 2; color: var(--ink-2); }
.course-topics .course-topic__text + .course-topic__text { margin-top: 10px; }
/* メインの紹介の下に置く、補足（サブ）の囲み */
.course-sub { margin-top: 32px; padding: 20px 24px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.course-topics .course-sub__tag {
  display: inline-block; margin: 0; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--accent);
  color: var(--accent); background: #fff; font-family: var(--font-round); font-weight: 700; font-size: 12px; letter-spacing: .08em; line-height: 1.6;
}
.course-sub__title { margin-top: 0 !important; font-size: 17px !important; line-height: 1.6 !important; }
.course-topics .course-sub__text { margin-top: 6px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.course-intro__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 32px; box-shadow: var(--shadow); }
.course-note { padding: 20px 24px; border-radius: 14px; background: var(--cream); color: var(--ink-2); }
/* 囲みや背景をつけない、ふつうの本文 */
.course-text { color: var(--ink-2); }
/* 囲みや背景をつけない、ただの補足の一文 */
.course-footnote { margin-top: 16px !important; font-size: 13px; line-height: 1.8; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features--2 { grid-template-columns: repeat(2, 1fr); }
.feature { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature__num { font-family: var(--font-round); font-weight: 900; font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.feature__title { margin-top: 4px !important; font-size: 19px !important; }
.feature__text { margin-top: 10px !important; font-size: 14px; line-height: 1.85; color: var(--ink-2); }

.highlight {
  position: relative; padding: 40px 44px; border-radius: 28px; background: #fff;
  border: 3px solid color-mix(in srgb, var(--accent) 22%, white);
}
.highlight__label { font-family: var(--font-round); font-weight: 900; font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.highlight__title { margin-bottom: 14px !important; font-size: clamp(22px, 2.6vw, 28px) !important; }
.highlight p + p { margin-top: 12px; }
.highlight p { color: var(--ink-2); }
.highlight .link-arrow { margin-top: 16px; }
.highlight--media { display: grid; grid-template-columns: 1fr minmax(240px, 38%); gap: 36px; align-items: center; }
.highlight__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: #fff; }

.course-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.course-gallery figure { margin: 0; }
.course-gallery__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--cream); }
.course-gallery figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }

/* ---------- Recruit ---------- */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.job {
  display: flex; flex-direction: column; padding: 32px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.job__en { font-family: var(--font-round); font-weight: 900; font-size: 12px; letter-spacing: .14em; color: var(--brand); }
.job__title { margin-top: 4px !important; font-size: 24px !important; }
.job__salary { margin-top: 14px !important; font-family: var(--font-round); font-weight: 900; font-size: clamp(22px, 2.6vw, 28px); color: var(--brand-dark); }
.job__lead { margin-top: 8px !important; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.job__details { display: grid; gap: 10px; margin: 22px 0 0; padding-top: 20px; border-top: 1px dashed var(--line); }
.job__details > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; font-size: 14px; line-height: 1.75; }
.job__details dt { font-weight: 700; color: var(--muted); }
.job__details dd { margin: 0; color: var(--ink-2); }

@media (max-width: 860px) {
  .jobs { grid-template-columns: 1fr; }
  .job { padding: 28px 22px; }
}

.recommend { padding: 32px 40px; border-radius: 24px; background: color-mix(in srgb, var(--accent) 8%, white); }
.recommend__title { font-size: 20px !important; }

/* position: relative がないと、表内の .sr-only（absolute）がスクロール領域の外にはみ出してページ幅が広がる */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
/* 横スクロールの案内（scroll_hint_controller.js） */
.scroll-hint { position: sticky; left: 0; z-index: 2; height: 0; pointer-events: none; }
.scroll-hint__pill {
  position: absolute; top: var(--scroll-hint-top, 60px); left: 50%;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: rgba(42, 37, 34, .82); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transform: translate(-50%, -50%) scale(.96); opacity: 0; visibility: hidden;
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.scroll-hint.is-active .scroll-hint__pill { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition-delay: 0s; }
.scroll-hint__pill { padding: 9px 18px 9px 12px; }
.scroll-hint__swipe { position: relative; flex: none; width: 46px; height: 26px; }
.scroll-hint__finger { position: absolute; top: 1px; left: 11px; }
.scroll-hint__trail { position: absolute; top: 4px; right: 5px; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); transform-origin: right center; transform: scaleX(0); opacity: 0; }
.scroll-hint.is-active .scroll-hint__finger { animation: scroll-hint-finger 2s cubic-bezier(.45, 0, .25, 1) infinite; }
.scroll-hint.is-active .scroll-hint__trail { animation: scroll-hint-trail 2s cubic-bezier(.45, 0, .25, 1) infinite; }
/* 指の動きに合わせて、表そのものも少しだけ横に動かす */
.table-wrap.is-scroll-hinting .data-table { animation: scroll-hint-peek 2s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes scroll-hint-finger {
  0% { transform: translateX(13px) scale(1.08); opacity: 0; }
  14% { transform: translateX(13px) scale(1); opacity: 1; }
  22% { transform: translateX(13px) scale(.9); opacity: 1; }
  62% { transform: translateX(-11px) scale(.9); opacity: 1; }
  78%, 100% { transform: translateX(-11px) scale(1.08); opacity: 0; }
}
@keyframes scroll-hint-trail {
  0%, 22% { transform: scaleX(0); opacity: 0; }
  40% { opacity: .9; }
  62% { transform: scaleX(1); opacity: .9; }
  78%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes scroll-hint-peek {
  0%, 22% { transform: translateX(0); }
  62% { transform: translateX(-26px); }
  90%, 100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint.is-active .scroll-hint__finger, .scroll-hint.is-active .scroll-hint__trail, .table-wrap.is-scroll-hinting .data-table { animation: none; }
  .scroll-hint__finger { opacity: 1; }
}
.data-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.data-table th, .data-table td { padding: 16px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--green); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.data-table tbody th { background: var(--cream); font-weight: 700; white-space: nowrap; }
.data-table tbody th small { font-weight: 500; color: var(--muted); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .num { text-align: right; white-space: nowrap; font-family: var(--font-round); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.data-table thead .num { font-family: var(--font-sans); font-size: 14px; }
.data-table .num small { margin-left: 2px; font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.data-table .num--wide { text-align: center; }
.data-table--center th, .data-table--center td { text-align: center; }
.data-table--schedule { min-width: 480px; }
.data-table--schedule td, .data-table--schedule tbody th { padding: 12px; }
.data-table--schedule tbody th { font-variant-numeric: tabular-nums; }
.mark-yes { display: inline-block; width: 20px; height: 20px; vertical-align: middle; border: 3px solid var(--accent); border-radius: 50%; }
.mark-no { color: #CFC5BB; }
.table-notes { display: grid; gap: 2px; margin-top: 14px !important; font-size: 13px; color: var(--muted); }

.fee-extras { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px !important; }
.fee-extra { display: flex; align-items: baseline; gap: 10px; padding: 10px 20px; border-radius: 12px; background: var(--cream); font-size: 14px; }
.fee-extra strong { font-family: var(--font-round); font-size: 18px; }
.fee-extra small { margin-left: -6px; color: var(--muted); }
@media (max-width: 600px) {
  /* スマホでは控えめな1項目1行の一覧にする（枠なし・小さめ、項目名は左、金額は右） */
  .fee-extras { display: block; margin-top: 14px !important; }
  .fee-extra { padding: 7px 4px; border-radius: 0; background: none; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
  .fee-extra strong { margin-left: auto; font-size: 15px; color: var(--ink); }
  .fee-extra small { font-size: 11px; }
}

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: roadmap; }
.roadmap__item { position: relative; padding: 28px 26px; border-top: 6px solid var(--accent); border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, white); }
.roadmap__grade { font-size: 13px; font-weight: 700; color: var(--accent); }
.roadmap__title { margin: 4px 0 10px !important; font-size: 20px !important; }
.roadmap__item p:last-child { font-size: 14px; line-height: 1.85; color: var(--ink-2); }

.class-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.class-nav__item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 100%;
  padding: 16px 20px; border: 2px solid var(--line); border-radius: 16px; background: #fff;
  font-family: var(--font-round); font-weight: 700; font-size: 17px; line-height: 1.4;
  text-decoration: none; transition: border-color .2s, color .2s;
}
.class-nav__item small { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--muted); }
.class-nav__item .icon { color: var(--accent); }
.class-nav__item:hover { border-color: var(--accent); color: var(--accent); }
.class-nav__item.is-current { border-color: var(--accent); background: var(--accent); color: #fff !important; pointer-events: none; }
.class-nav__item.is-current small, .class-nav__item.is-current .icon { color: rgba(255, 255, 255, .85); }

@media (max-width: 960px) {
  .course-intro { grid-template-columns: 1fr; gap: 32px; }
  .highlight--media { grid-template-columns: 1fr; gap: 24px; }
  .course-gallery { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .class-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features, .features--2 { grid-template-columns: 1fr; }
  .highlight { padding: 28px 22px; }
  .recommend { padding: 24px 22px; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .class-nav { grid-template-columns: 1fr; }
}

/* ---------- News / Blog ---------- */

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.post-meta time { font-variant-numeric: tabular-nums; }

.news-list { border-top: 1px solid var(--line); }
.news-list__item {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: center;
  padding: 24px 12px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s;
}
.news-list__item:hover { background: var(--cream); }
.news-list__main { display: block; }
.news-list__title { display: block; font-weight: 700; font-size: 17px; line-height: 1.6; }
.news-list__excerpt { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.news-list__item > .icon { color: var(--brand); transition: transform .2s; }
.news-list__item:hover > .icon { transform: translateX(4px); }

.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__noimage {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 30%, #FFE1C7, var(--brand-50) 70%);
  font-family: var(--font-round); font-weight: 900; font-size: 22px; letter-spacing: .08em; color: var(--brand);
}
.post-card__body { padding: 20px 22px 24px; }
.post-card__title { margin-top: 10px !important; font-size: 18px !important; line-height: 1.6 !important; }
.post-card__excerpt {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 8px !important; font-size: 14px; line-height: 1.8; color: var(--ink-2);
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.pagination a, .pagination .page.current {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-dark); }
.pagination .page.current { border-color: var(--brand); background: var(--brand); color: #fff; }
.pagination .gap { display: grid; place-items: center; padding: 0 4px; color: var(--muted); }

.article__header { margin-bottom: 36px; }
.article__title { margin-top: 14px !important; font-size: clamp(24px, 3.4vw, 34px) !important; line-height: 1.55 !important; }
.article__eyecatch { margin: 0 0 40px; overflow: hidden; border-radius: var(--radius); }
.article__eyecatch img { width: 100%; }
.article__body { font-size: 16.5px; line-height: 2.05; }
.article__body .trix-content { line-height: inherit; }
.article__body h1 { margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--brand-100); font-size: 24px; }
.article__body a { color: var(--brand-dark); }
.article__body ul { list-style: disc; padding-left: 1.5em; }
.article__body ol { list-style: decimal; padding-left: 1.5em; }
.article__body blockquote { margin: 24px 0; padding: 12px 22px; border-left: 4px solid var(--brand-100); background: var(--cream); color: var(--ink-2); }
.article__body pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: #2A2522; color: #fff; font-size: 14px; }
.article__body figure.attachment { margin: 28px 0; }
.article__body figure.attachment img { border-radius: 12px; margin-inline: auto; }
.article__body .attachment__caption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }

/* テキスト本文（管理画面のテキストエディタで書いた記事） */
.article__body > p { margin: 0 0 1.4em; }
.article__body > h2 { margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--brand-100); font-size: 22px; line-height: 1.6; }
.article__figure { margin: 28px 0; }
.article__figure img { margin-inline: auto; border-radius: 12px; }
.article__video { position: relative; margin: 28px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.article__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 在籍生専用 */
.updates__members { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin-top: 24px !important; font-size: 14px; }
.updates__members-note { color: var(--muted); }
.updates__members-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px 8px 14px;
  border: 1px solid var(--brand-100); border-radius: 999px; background: #fff;
  font-weight: 700; color: var(--brand-dark); text-decoration: none; transition: background-color .2s, border-color .2s;
}
.updates__members-link:hover { border-color: var(--brand); background: var(--brand-50); }
.updates__members-link .icon { width: 15px; height: 15px; }
.updates__members-link .icon:last-child { width: 14px; height: 14px; transition: transform .2s; }
.updates__members-link:hover .icon:last-child { transform: translateX(3px); }
@media (max-width: 600px) { .updates__members { flex-direction: column; gap: 8px; } }
.members-login { max-width: 520px; margin-inline: auto; text-align: center; }
.members-login__lead { margin-bottom: 24px !important; font-weight: 700; }
.members-login__notice { margin-bottom: 16px !important; color: var(--green); font-weight: 700; }
.members-login__form { display: grid; gap: 20px; margin-top: 16px; text-align: left; }
.members-login__form .btn { justify-self: center; min-width: 220px; }
.members-login__help { margin-top: 28px !important; font-size: 14px; color: var(--muted); }
.members-login__help a { color: var(--brand-dark); font-weight: 700; }
.members-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.members-bar form { margin: 0; }
.members-bar__logout { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--brand-dark); cursor: pointer; }
.members-bar__logout:hover { text-decoration: underline; }
.gnav__link--members { display: inline-flex; align-items: center; gap: 4px; }
.gnav__link--members .icon { width: 15px; height: 15px; }
.site-footer__members { display: inline-flex; align-items: center; gap: 4px; }
.site-footer__members .icon { width: 14px; height: 14px; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-nav a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .2s; }
.article-nav a:hover { border-color: var(--brand); }
.article-nav small { display: block; font-size: 12px; font-weight: 700; color: var(--brand); }
.article-nav span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.6; }
.article-nav__next { grid-column: 2; text-align: right; }
.article-back { margin-top: 40px !important; text-align: center; }

.preview-bar { padding: 10px 16px; background: #FFF1B8; color: #6B5200; text-align: center; font-size: 14px; font-weight: 700; }
.preview-bar a { margin-left: 12px; }

@media (max-width: 960px) { .post-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .post-cards { grid-template-columns: 1fr; }
  .news-list__item { grid-template-columns: 1fr; gap: 6px; padding: 20px 4px; }
  .news-list__item > .icon { display: none; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__next { grid-column: auto; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Privacy policy ---------- */
.privacy ul { margin: 0 0 1.4em; }
.privacy li { margin-bottom: .4em; }
.privacy__date { margin-top: 48px !important; text-align: right; font-size: 14px; color: var(--muted); }
.form-privacy { margin: 4px 0 -8px !important; font-size: 13px; color: var(--muted); text-align: center; }
.form-privacy a { color: var(--brand-dark); text-decoration: underline; }
.site-footer__sep { margin: 0 .5em; opacity: .5; }
.site-footer__privacy { color: inherit; text-decoration: underline; }
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
