/* =========================================================
   entry.css — Post / page content (.entrypost, gallery, boxes)
   Used by document singles, news, static pages, etc.
   Do not rename selectors stored in post_content.
   ========================================================= */

/* ---------- Document / single title ---------- */
.single-document .inner h3,
#content .subcaseinr > h3 {
  padding-bottom: 0.3em;
  border-bottom: 2px solid #555;
  font-size: calc(var(--fs-heading) * 1.1);
  line-height: 1.4;
}

/* ---------- Box ---------- */
.box {
  margin-bottom: 2em;
  padding: 1.5em;
  background: #e9eef5;
}

.box > :last-child,
.box > :last-child > :last-child,
.box > :last-child > :last-child > :last-child {
  margin-bottom: 0;
}

.box.alt {
  border: solid 1px #9d9db4;
  padding: 1em;
  background: #fff;
}

.box.alt:last-child {
  margin-bottom: 0;
}

/* ---------- Video ---------- */
.youtube {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 2em;
}

.youtube iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Entrypost typography ---------- */
.entrypost h5 {
  color: #000;
  margin-bottom: 1em;
  font-weight: 700;
  font-style: normal;
  line-height: 1.45;
  position: relative;
  display: block;
  font-size: 1em;
  border-bottom: 2px solid #555;
  padding-bottom: 0.3em;
}

.entrypost h6 {
  font-size: 1em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5em;
}

/* Contact / form privacy heading (forum.css is not loaded on these pages) */
.msage {
  margin: 0 0 1.25em;
  line-height: 1.7;
}

.msage.none {
  margin-bottom: 1.5em;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.form-group {
  margin-bottom: 0.75em;
}

.form-group h6 {
  display: block;
  margin: 1.75em 0 0.75em;
  padding: 0;
  border: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.45;
  color: #111;
}

.entrypost h4 {
  color: #000;
  font-weight: 600;
  font-size: var(--fs-heading);
  padding-bottom: 0.5em;
  background-image: repeating-linear-gradient(
    to right,
    #000,
    #ddccee,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0)
  );
  background-size: 4px 4px;
  background-repeat: repeat-x;
  background-position: center bottom;
  text-align: left;
  margin-bottom: 1em;
}

.entrypost p {
  line-height: 2em;
}

.entrypost img {
  max-width: 100%;
  height: auto;
}

.entrypost ul.mbtm {
  margin-bottom: 0;
}

.entrypost ul:not(.actions) {
  padding-left: 0.5em;
}

.entrypost ul:not(.actions) li {
  list-style-type: none;
  text-indent: -1em;
  line-height: 1.7;
}

.entrypost ol {
  counter-reset: num;
  list-style-type: none !important;
  padding: 0;
  margin: 0 0 1.5em 0;
}

.entrypost ol li {
  position: relative;
  line-height: 1.6em;
  padding: 0.5em 0.5em 0.5em 30px;
  margin-bottom: 0;
}

.entrypost ol li:before {
  position: absolute;
  counter-increment: num;
  content: counter(num);
  display: inline-block;
  background: #fff;
  border: 1px solid #5700a2;
  color: #5700a2;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 0.8em;
  left: 0;
  width: 18px;
  height: 1.6em;
  line-height: 1.6em;
  text-align: center;
  top: 10px;
  letter-spacing: 0;
}

.entrypost ol li ol {
  margin-left: 1em;
  margin-top: 0.5em;
}

.entrypost ol li ol li:before {
  content: "-";
  padding-right: 0;
}

.entrypost ul.good {
  padding-left: 0;
}

/* Content list helpers (used in post_content) */
ol.asterisk {
  counter-reset: number;
  list-style: none;
}

ol.asterisk li {
  font-size: 0.9em;
  line-height: 1.8em;
  letter-spacing: 0;
  padding: 0 0 0.5em 25px;
}

ol.asterisk li:before {
  counter-increment: number;
  content: "※" counter(number) " ";
  border: none;
  padding: 0 0.2em;
  top: 3px;
  width: auto;
}

ul.asterisk {
  padding-left: 0;
}

ul.asterisk li {
  list-style-type: none;
  text-indent: -1em;
  padding-left: 1em;
}

ul.asterisk li:before {
  display: inline;
  content: "※";
  padding: 0;
}

ul.dot {
  margin: 0 0 2em 0;
  padding: 0 0 0 0.3em;
}

ul.dot li {
  list-style-type: none;
  text-indent: -1em;
}

ul.dot li:before {
  display: inline;
  content: "・";
  padding-right: 0;
}

ul.dot ul li:before {
  display: inline;
  content: " - ";
}

ul.dot ul li {
  list-style-type: none;
  text-indent: -0.7em;
}

ul.good li:before {
  display: inline;
  content: "\f00c";
  font-family: FontAwesome;
  color: #dce;
}

ul.good li {
  margin-bottom: 0.3em;
  padding-left: 1em;
  text-indent: -1.5em;
}

ul.btm li {
  margin-bottom: 1em;
}

ul.btmh ul li,
ol ul.btm li,
ul.btm ul li {
  margin-bottom: 0;
}

ul.mbtm {
  margin-bottom: 1em;
}

/* ---------- Entrypost links ---------- */
.entrypost a:not(.button) {
  border-bottom: 1px dotted #582f9f;
  padding-bottom: 0.1em;
  margin-right: 0.3em;
  color: #000;
}

.entrypost a:not(.button):after {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-transform: none !important;
  content: "\f0c6";
  color: #070707;
  margin-left: 0.2em;
  vertical-align: middle;
  font-size: 0.8em;
}

.entrypost a.image {
  border-bottom: none;
  padding-bottom: 0;
  margin-right: 0;
}

.entrypost a.image:after {
  content: none;
}

.entrypost .gallery-item a {
  border-bottom: none;
  padding-bottom: 0;
  margin-right: 0;
}

.entrypost .gallery-item a:after {
  content: none;
  margin-left: 0;
}

/* ---------- Gallery ---------- */
.gallery {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
}

.gallery br {
  display: none;
}

.gallery-item {
  float: left;
  margin-bottom: 0;
  position: relative;
  background: #eee;
  padding: 0.1em;
}

.gallery-icon {
  text-align: center;
  margin-bottom: 0;
}

.gallery-icon img {
  width: 100%;
  height: auto;
}

.gallery-columns-1 .gallery-item {
  width: 100%;
  margin-right: 0;
}

.gallery-columns-2 .gallery-item {
  width: calc(100% / 2 - 2%);
  margin: 0 2% 0 0;
}

.gallery-columns-3 .gallery-item {
  width: calc(100% / 3 - 2%);
  margin: 0 2% 0 0;
}

.gallery-columns-4 .gallery-item {
  width: calc(100% / 4 - 2%);
  margin: 0 2% 0 0;
}

.gallery-columns-5 .gallery-item {
  width: calc(100% / 5 - 2%);
  margin: 0 2% 0 0;
}

.gallery-columns-18 .gallery-item,
.gallery-columns-12 .gallery-item,
.gallery-columns-6 .gallery-item {
  width: calc(100% / 6 - 2%);
  margin: 0 2% 0 0;
}

.entrypost .gallery.gallery-columns-2 dl.gallery-item:nth-child(2n) {
  margin-right: 0;
}

.entrypost .gallery.gallery-columns-3 dl.gallery-item:nth-child(3n) {
  margin-right: 0;
}

.entrypost .gallery.gallery-columns-18 dl.gallery-item:nth-child(6n),
.entrypost .gallery.gallery-columns-12 dl.gallery-item:nth-child(6n),
.entrypost .gallery.gallery-columns-6 dl.gallery-item:nth-child(6n) {
  margin-right: 0;
}

.entrypost .gallery.gallery-columns-18 dl.gallery-item:nth-child(n + 7),
.entrypost .gallery.gallery-columns-12 dl.gallery-item:nth-child(n + 7) {
  margin-top: 1em;
}

/* ---------- News / post helpers ---------- */
.thefooter {
  font-size: 0.9em;
  color: #666;
  text-align: right;
  margin-top: 0.5em;
}

p.simg {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
}

p.ssimg {
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
}

p.image.fit.bod img,
p.ssimg.bod img,
p.simg.bod img {
  border: 1px dashed #aaa;
  padding: 4px;
}

.entrypost .button.alt {
  background: #51c5e8;
  box-shadow: inset 0 0 0 1px #51c5e8;
  color: #fff;
}

.entrypost .button.alt.icon:before {
  color: #fff;
}

@media screen and (max-width: 736px) {
  .gallery-columns-18 .gallery-item,
  .gallery-columns-12 .gallery-item,
  .gallery-columns-6 .gallery-item {
    width: calc(100% / 3 - 2%);
    margin: 0 2% 1em 0;
  }

  /* .entrypost p br {
    display: none;
  } */

  .entrypost p br.mnon {
    display: none;
  }

  .entrypost p.rlink br,
  .entrypost p br.brblock,
  p.brblock br {
    display: block;
  }

  p.ssimg,
  p.simg {
    max-width: 100%;
  }

  .entrypost .button.alt {
    width: 100%;
  }

  

  
}

/* =========================================================
   Migrated from main.css — article / DB content classes
   ========================================================= */

.asta{
font-size: 0.6em;
}

a.text{
	border-bottom: 1px dotted #6f6f6f;
	padding-bottom: 1px;
	color: #000;
}

.email{
	background: #e9eef5;
	padding: 1em 0 2em;
	text-align: center;
	margin-bottom: 2em;
}

.email img{
	width: 200px;
	height: auto;
	max-width: 100%;
}

#popinline img{max-width: 100%;height: auto;}

#popinline{background: #fff;padding: 2em;}

#popinline p{letter-spacing: 0.05em;margin-bottom: 0;}

.mbtm{margin-bottom: 1em;}

/* ---------- Adjacent entry nav (cocodiary-style, blue) ---------- */
.entry-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e6e6ea;
}

.entry-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: #111;
  background: linear-gradient(135deg, rgba(81, 197, 232, 0.08), rgba(56, 168, 218, 0.02));
  border: 1px solid rgba(56, 168, 218, 0.18);
  transition:
    background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.entry-nav__link--next {
  justify-content: flex-end;
  text-align: right;
}

.entry-nav__spacer {
  display: block;
  min-height: 1px;
}

.entry-nav__icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  color: #1f8fb0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(56, 168, 218, 0.28);
  transition:
    background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.entry-nav__icon svg {
  display: block;
}

.entry-nav__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.entry-nav__label {
  font-size: var(--fs-label, 0.72rem);
  letter-spacing: 0.06em;
  color: #000;
}

.entry-nav__title {
  font-size: var(--fs-lead, 0.92rem);
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-nav__link:hover {
  color: #1f8fb0;
  background: linear-gradient(135deg, rgba(81, 197, 232, 0.14), rgba(56, 168, 218, 0.04));
  border-color: rgba(56, 168, 218, 0.36);
}

.entry-nav__link--prev:hover .entry-nav__icon {
  color: #fff;
  background: #38a8da;
  border-color: #38a8da;
  transform: translateX(-0.12rem);
}

.entry-nav__link--next:hover .entry-nav__icon {
  color: #fff;
  background: #38a8da;
  border-color: #38a8da;
  transform: translateX(0.12rem);
}

@media (max-width: 720px) {
  .entry-nav {
    grid-template-columns: 1fr;
  }

  .entry-nav__link--next {
    justify-content: flex-start;
    text-align: left;
  }

  .entry-nav__link--next .entry-nav__icon {
    order: -1;
  }

  .entry-nav__title {
    white-space: normal;
  }
}

/* Image links: no dotted underline / clip icon (WordPress added .image to these) */
.entrypost a:has(> img),
.entrypost a[data-lity] {
  border-bottom: none;
  padding-bottom: 0;
  margin-right: 0;
}

.entrypost a:has(> img):after,
.entrypost a[data-lity]:after {
  content: none;
}

/* =========================================================
   In-article buttons — same system as Back / top buttons:
   fixed height, label left, boxed icon pinned to the right edge
   ========================================================= */
.entrypost a.button.icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: auto;
  min-width: var(--btn-width, 11rem);
  max-width: 100%;
  height: var(--btn-height, 3.25rem);
  min-height: var(--btn-height, 3.25rem);
  margin: 0.25em 0.5em 0.25em 0;
  padding: 0 var(--btn-icon-pad, 3.1rem) 0 var(--btn-icon-inset, 0.7rem);
  border: 0;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.entrypost a.button.icon:before {
  position: absolute;
  top: 50%;
  right: var(--btn-icon-inset, 0.7rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--btn-icon-size, 1.85rem);
  height: var(--btn-icon-size, 1.85rem);
  margin: 0;
  border: 1px solid currentColor;
  font-size: 0.95em;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.entrypost a.button.icon:hover:before,
.entrypost a.button.icon:focus-visible:before {
  transform: translateY(-50%) translateX(0.12rem);
}

/* "go to page" arrows become a chevron like the rest of the site */
.entrypost a.button.icon.fa-arrow-right:before {
  content: "\f105";
}

.entrypost a.button.alt.icon {
  background: #51c5e8;
  color: #fff;
}

.entrypost a.button.alt.icon:hover,
.entrypost a.button.alt.icon:focus-visible {
  background: #3bb3d8;
  color: #fff;
}

/* ---------- Numbered lists: boxed numbers in the site's blue (same as chevron icons) ---------- */
.entrypost ol li {
  padding: 0.45em 0.5em 0.45em 2.5rem;
  line-height: 1.75;
}

.entrypost ol li:before {
  top: 0.55em;
  width: 1.65rem;
  height: 1.65rem;
  box-sizing: border-box;
  border: 1px solid rgba(56, 168, 218, 0.28);
  background: rgba(255, 255, 255, 0.95);
  color: #1f8fb0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: calc(1.65rem - 2px);
}

.entrypost ol li ol {
  margin-left: 0.2rem;
}

.entrypost ol li ol li:before {
  border-color: transparent;
  background: transparent;
  color: #1f8fb0;
  font-weight: 700;
}

/* ---------- Legal pages (免責事項 / プライバシーポリシー / 利用規約) ---------- */
.entrypost.legal {
  max-width: 48rem;
}

.entrypost.legal > p {
  margin: 0 0 1.1em;
  line-height: 1.95;
}

.entrypost.legal h4 {
  margin: 2.25em 0 0.8em;
  padding: 0.1em 0 0.1em 0.8rem;
  border-left: 4px solid #51c5e8;
  background: none;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.entrypost.legal a:not(.button) {
  color: #1f8fb0;
}

.legal-contact {
  margin: 3rem 0 0.5rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid rgba(56, 168, 218, 0.18);
  background: linear-gradient(135deg, rgba(81, 197, 232, 0.08), rgba(56, 168, 218, 0.02));
}

.entrypost.legal .legal-contact h4 {
  margin: 0 0 0.6em;
}

.legal-contact p {
  margin: 0 0 1.1em;
  line-height: 1.8;
}

.entrypost.legal .legal-contact a.button {
  margin: 0;
}
