/* ==========================================================
   Meet Arts – modern UI overrides (loaded after style.css)
   ========================================================== */
:root {
  --ma-bg: #f6f5f2;
  --ma-surface: #ffffff;
  --ma-ink: #1c1d21;
  --ma-text: #3d4048;
  --ma-muted: #80838c;
  --ma-line: #e7e5e0;
  --ma-accent: #1f8fd0;
  --ma-accent-ink: #ffffff;
  --ma-accent-soft: #e7f3fb;
  --ma-radius: 14px;
  --ma-radius-sm: 8px;
  --ma-shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 4px 16px rgba(20, 20, 30, .06);
  --ma-shadow-hover: 0 2px 6px rgba(20, 20, 30, .06), 0 12px 32px rgba(20, 20, 30, .10);
  --ma-font: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --ma-font-logo: "Outfit", "Inter", sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--ma-font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ma-text);
  background: var(--ma-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ma-font);
  color: var(--ma-ink);
  font-weight: 700;
  letter-spacing: .01em;
}
a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.main-container {
  background: var(--ma-bg);
  box-shadow: none;
  overflow: visible;
}
#page { padding-top: 32px; }
img { border-radius: 0; }

/* ---------- Trending bar ---------- */
.trending-articles {
  background: var(--ma-ink);
  border-bottom: 0;
  float: none;          /* float だと sticky ヘッダー内に隙間ができる */
  display: flow-root;
}
.trending-articles li {
  border-right: 1px solid rgba(255, 255, 255, .15);
  font-weight: 500;
  margin: 9px 0 8px;
  letter-spacing: .02em;
}
.trending-articles li.firstlink {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}
.trending-articles li a { color: rgba(255, 255, 255, .62); }
.trending-articles li a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  min-height: 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-branding {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  padding: 0 0 0 max(2%, 20px);
  box-sizing: border-box;
}
.site-branding:after { background: var(--ma-line); }
.site-branding h1, .site-branding h2 {
  margin: 18px 0;
  font-size: 30px;
}
#logo a {
  font-family: var(--ma-font-logo);
  font-weight: 700;
  color: var(--ma-ink);
  letter-spacing: -.01em;
}
#logo a:hover { color: var(--ma-accent); }

.primary-navigation a {
  border: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ma-text);
  padding: 23px 18px;
  min-height: 0;
  position: relative;
}
#navigation > ul li:first-child a { border-left: 0; }
.primary-navigation a:hover,
.primary-navigation .sfHover,
.menu .current-menu-item > a { background: transparent; color: var(--ma-accent); }
.primary-navigation a .sub { display: none; }
@media screen and (min-width: 866px) {
  .primary-navigation a::before {
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: 15px;
    height: 2px;
    border-radius: 2px;
    background: var(--ma-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }
  .primary-navigation a:hover::before { transform: scaleX(1); }
}

/* mobile menu */
@media screen and (max-width: 865px) {
  /* off-canvas menu is position:fixed – avoid creating a containing block */
  .site-header { position: relative; }
  .site-branding {
    padding: 0;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-branding h1, .site-branding h2 { margin: 14px 0; font-size: 26px; }
  a#pull {
    background: var(--ma-ink);
    font-weight: 600;
    letter-spacing: .04em;
  }
  #navigation { background: var(--ma-ink); }
  #navigation .menu a { padding-top: 14px; padding-bottom: 14px; }
  #navigation li a { border-bottom: 1px solid rgba(255, 255, 255, .08) !important; }
}

/* ---------- Featured (top) ---------- */
.featuredBox {
  max-width: 1140px;
  width: 96%;
  margin: 28px auto 0;
  float: none;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  overflow: visible;
}
.featuredBox::after { display: none; }
.featuredBox .excerpt {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  border-radius: var(--ma-radius);
  box-shadow: var(--ma-shadow);
  background: #ddd;
}
.featuredBox .firstpost { grid-column: 1; grid-row: 1 / span 2; }
.featuredBox .secondpost { grid-column: 2 / span 2; grid-row: 1; }
.featuredBox .firstpost img { height: auto !important; aspect-ratio: 621 / 315; }
/* right-hand tiles follow the height of the big pickup banner */
.featuredBox .secondpost img,
.featuredBox .thirdpost img {
  position: absolute;
  inset: 0;
}
.featuredBox .excerpt > a,
.featuredBox .featured-thumbnail { display: block; height: 100%; width: 100% !important; float: none; }
.featuredBox img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.featuredBox .excerpt:hover img { transform: scale(1.04); }
.featuredBox .featured-excerpt {
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  padding: 48px 18px 16px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  box-sizing: border-box;
}
.featuredBox .firstpost .featured-excerpt { font-size: 20px; padding: 64px 24px 22px; }
@media screen and (max-width: 865px) {
  .featuredBox { grid-template-columns: 1fr 1fr; }
  .featuredBox .firstpost { grid-column: 1 / span 2; grid-row: auto; }
  .featuredBox .secondpost { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .featuredBox .thirdpost { aspect-ratio: 4 / 3; grid-row: auto; }
}
@media screen and (max-width: 480px) {
  .featuredBox { gap: 10px; }
  .featuredBox .firstpost .featured-excerpt { font-size: 16px; padding: 40px 16px 14px; }
  .featuredBox .featured-excerpt { font-size: 13px; padding: 32px 12px 10px; }
}

/* ---------- Section title ---------- */
.frontTitle {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.frontTitle .latest {
  background: transparent;
  color: var(--ma-ink);
  font-size: 22px;
  font-weight: 800;
  padding: 0;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.frontTitle .latest::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ma-line);
}

/* ---------- Post list cards ---------- */
.home-page article.post.excerpt,
.archive article.post.excerpt,
.search article.post.excerpt,
#page article.excerpt {
  background: var(--ma-surface);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  box-shadow: var(--ma-shadow);
  padding: 18px;
  margin-bottom: 18px;
  box-sizing: border-box;
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease;
}
#page article.excerpt:hover {
  box-shadow: var(--ma-shadow-hover);
  transform: translateY(-2px);
}
#page article.excerpt .featured-thumbnail {
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}
#page article.excerpt .featured-thumbnail img {
  display: block;
  transition: transform .5s ease;
}
#page article.excerpt:hover .featured-thumbnail img { transform: scale(1.05); }
.featured-cat {
  background: var(--ma-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 10px;
  line-height: 1.7;
  top: 26px;
  left: 26px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.title, h2.title {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}
.title a, h2.title a { color: var(--ma-ink); }
.title a:hover { color: var(--ma-accent); }
.post-info, .post-info span { color: var(--ma-muted); font-size: 12px; }
.post-content { font-size: 13.5px; line-height: 1.75; color: var(--ma-text); }
.readMore a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ma-accent);
  font-weight: 600;
  font-size: 12.5px;
}
.readMore a::after { content: "→"; transition: transform .2s ease; }
.readMore a:hover::after { transform: translateX(3px); }

/* ---------- Pagination ---------- */
.pagination a,
.pagination .nav-previous a,
.pagination .nav-next a {
  background: var(--ma-ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 13px;
}
.pagination .nav-previous a:hover,
.pagination .nav-next a:hover,
.pagination a:hover { background: var(--ma-accent); }
.pagination .current { border-radius: 999px; }

/* ---------- Single ---------- */
.single_post {
  background: var(--ma-surface);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  box-shadow: var(--ma-shadow);
  padding: clamp(18px, 3vw, 36px);
  box-sizing: border-box;
}
.single-title, .title.single-title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  margin-bottom: 6px;
}
.post-single-content { font-size: 15px; line-height: 1.9; }
.post-single-content img { border-radius: 10px; }
.post-single-content a, .single_post .post-info a { color: var(--ma-accent); }
.post-single-content iframe { border-radius: 10px; max-width: 100%; }
.related-posts {
  float: none;
  clear: both;
  width: auto;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ma-line);
  border-radius: 0;
  box-shadow: none;
  padding: 24px 0 0;
  margin: 32px 0 0;
  box-sizing: border-box;
}
.related-posts h3, .related-posts h4 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  color: var(--ma-ink);
}
.related-posts ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}
.related-posts li,
.related-posts .last {
  float: none;
  width: auto;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  align-items: start;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.related-posts li:hover { background: var(--ma-bg); }
.related-posts a.relatedthumb { display: contents; }
.related-posts .featured-thumbnail {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 96px !important;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  margin: 0;
  float: none;
}
.related-posts .featured-thumbnail img,
.relatedthumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0;
  display: block;
}
.related-posts a.relatedthumb > span {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ma-ink);
}
.related-posts .meta {
  grid-column: 2;
  grid-row: 2;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ma-muted);
}
@media screen and (max-width: 600px) {
  .related-posts ul { grid-template-columns: 1fr; }
}

/* ---------- Sidebar ---------- */
.sidebar .widget,
#sidebars .widget {
  background: var(--ma-surface);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  box-shadow: var(--ma-shadow);
  padding: 20px 20px 18px;
  margin-bottom: 18px;
  box-sizing: border-box;
}
.sidebar .widget-title,
#sidebars .widget-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ma-ink);
  letter-spacing: .03em;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.sidebar .widget li { border-color: var(--ma-line); }
.sidebar .widget a { color: var(--ma-text); }
.sidebar .widget a:hover { color: var(--ma-accent); }
.widget_categories ul li,
.widget_categories li {
  list-style: none;
  padding: 7px 0;
  margin: 0;
  border-bottom: 1px dashed var(--ma-line);
}
.widget_categories ul li:last-child { border-bottom: 0; }
.widget_categories li::before { display: none; }
.widget_categories li a::before {
  content: "›";
  color: var(--ma-accent);
  margin-right: 8px;
  font-weight: 700;
}

/* widgets accidentally nested (unclosed markup in sidebar.php) */
#sidebars .widget:has(.widget) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* tag cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a,
.sidebar .tagcloud a {
  float: none;
  margin: 0;
  background: var(--ma-accent-soft) !important;
  color: var(--ma-accent) !important;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.6;
}
.tagcloud a:hover,
.sidebar .tagcloud a:hover {
  background: var(--ma-accent) !important;
  color: #fff !important;
}

/* buttons */
.btn, .btn-default, button.btn,
input[type="submit"], #submit {
  background: var(--ma-accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-weight: 700;
  font-family: var(--ma-font);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31, 143, 208, .25);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover, input[type="submit"]:hover, #submit:hover {
  background: #1676ad !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 143, 208, .3);
}
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], select, textarea {
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius-sm);
  padding: 10px 12px;
  font-family: var(--ma-font);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ma-accent);
  box-shadow: 0 0 0 3px var(--ma-accent-soft);
}

/* ---------- Footer ---------- */
.copyrights {
  background: var(--ma-ink);
  color: rgba(255, 255, 255, .6);
  border-top: 0;
  margin-top: 48px;
  padding: 28px 0;
}
.copyrights a { color: rgba(255, 255, 255, .72); }
.copyrights a:hover { color: #fff; }
/* ---------- Site top (固定ページ id=2 / page-fulltop) ---------- */
.page-id-2 .single_page {
  background: var(--ma-surface);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  box-shadow: var(--ma-shadow);
  padding: clamp(18px, 3vw, 36px);
  box-sizing: border-box;
}
.page-id-2 .single_page > header .title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.page-id-2 h2.title { font-size: clamp(20px, 2.4vw, 24px); margin: 36px 0 12px; }
.page-id-2 .post-content { font-size: 15px; line-height: 1.85; }
.page-id-2 br[clear="all"] { display: none; }
.page-id-2 .post-content > a[href="/en"], .page-id-2 .post-content > a[href="/jp"],
.page-id-2 .post-content a[href="/en"], .page-id-2 .post-content a[href="/jp"] {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ma-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(31, 143, 208, .25);
}
.page-id-2 .column ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0 8px;
}
.page-id-2 .column ul li,
.page-id-2 .column ul li:nth-child(n) {
  display: block !important;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0;
  list-style: none;
  background: var(--ma-surface);
  border: 1px solid var(--ma-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ma-shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.page-id-2 .column ul li:hover { box-shadow: var(--ma-shadow-hover); transform: translateY(-2px); }
.page-id-2 .column ul li a { display: block; color: var(--ma-ink); text-decoration: none; }
.page-id-2 .column .imgframe {
  max-height: none !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  background: #eee;
}
.page-id-2 .column ul li img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  float: none !important;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.page-id-2 .column ul li:hover img { transform: scale(1.05); opacity: 1 !important; }
.page-id-2 .column ul li .title {
  display: block;
  padding: 12px 14px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ma-ink);
}
@media screen and (max-width: 580px) {
  .page-id-2 .column ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .page-id-2 .column ul li .title { font-size: 13px; padding: 10px 10px 12px; }
  .page-id-2 .column ul li img { width: 100% !important; }
}

/* ---------- Footer (modern, minimal) ---------- */
.copyrights {
  background: var(--ma-surface) !important;
  border-top: 1px solid var(--ma-line);
  box-shadow: none !important;
  margin-top: 56px;
  padding: 0 !important;
  color: var(--ma-muted);
}
.copyrights #copyright-note {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: 1140px;
  width: auto !important;
  margin: 0 auto !important;
  padding: 28px 16px 24px !important;
  box-sizing: border-box;
  float: none !important;
}
.copyrights .copyright-left-text {
  float: none !important;
  position: static !important;
  left: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  font-family: var(--ma-font-logo);
  font-weight: 700;
  font-size: 15px;
  color: var(--ma-ink);
  letter-spacing: -.01em;
  margin: 0 !important;
}
.copyrights .footer-navigation {
  float: none !important;
  margin: 0 !important;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}
.copyrights .footer-navigation ul.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 22px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
  float: none !important;
}
.copyrights .footer-navigation li {
  float: none !important;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.copyrights .footer-navigation a {
  color: var(--ma-text) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 2px 0;
  background: none !important;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.copyrights .footer-navigation a:hover {
  color: var(--ma-accent) !important;
  border-bottom-color: var(--ma-accent);
}
/* the only control: a black ▲ */
.copyrights .top {
  position: static !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center;
  z-index: auto !important;
}
.copyrights a.toplink {
  position: static !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0;
  font-size: 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #000 !important;
}
.copyrights a.toplink:hover { transform: translateY(-2px); }
.copyrights .toplink .icon-up-dir,
.copyrights .toplink i { color: #000 !important; font-size: 16px; }
@media screen and (max-width: 640px) {
  .copyrights #copyright-note { padding: 22px 0 20px; }
  .copyrights .footer-navigation { flex: 1 1 100%; justify-content: flex-start; order: 3; }
  .copyrights .footer-navigation ul.menu { justify-content: flex-start; gap: 6px 18px; }
  .copyrights .top { order: 2; margin-left: auto !important; }
}

/* footer row: align the brand flush with the grid edge on phones */
@media screen and (max-width: 640px) {
  .copyrights #copyright-note { justify-content: flex-start !important; }
  .copyrights .copyright-left-text { order: 1; flex: 1 1 auto; margin: 0 !important; transform: none !important; text-align: left !important; }
  .copyrights .top { order: 2; flex: 0 0 auto; }
}

/* ---------- Static pages: contact / terms / privacy (page-fullwidth) ---------- */
.page-template-page-fullwidth #page { padding-top: 40px; }
.page-template-page-fullwidth .single_page {
  background: var(--ma-surface);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  box-shadow: var(--ma-shadow);
  padding: clamp(22px, 4vw, 48px);
  box-sizing: border-box;
}
.page-template-page-fullwidth .single_page > header .title {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.3;
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ma-line);
}
.page-template-page-fullwidth .post-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ma-text);
}
.page-template-page-fullwidth .post-content h2 {
  font-size: 20px;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--ma-accent);
  line-height: 1.4;
}
.page-template-page-fullwidth .post-content h3 {
  font-size: 16px;
  margin: 28px 0 10px;
}
.page-template-page-fullwidth .post-content p { margin: 0 0 14px; }
.page-template-page-fullwidth .post-content ol,
.page-template-page-fullwidth .post-content ul {
  padding-left: 1.4em;
  margin: 0 0 16px;
}
.page-template-page-fullwidth .post-content li { margin-bottom: 8px; }
.page-template-page-fullwidth .post-content ol > li::marker { color: var(--ma-accent); font-weight: 700; }
.page-template-page-fullwidth .post-content a { color: var(--ma-accent); text-underline-offset: 3px; }

/* contact form */
.page-template-page-fullwidth .mw_wp_form .form-group {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 8px 28px;
  align-items: start;
  margin: 0 0 18px;
  padding: 0;
}
.page-template-page-fullwidth .mw_wp_form .form-group > div { float: none !important; width: auto !important; padding: 0 !important; }
.page-template-page-fullwidth .mw_wp_form .control-label {
  font-weight: 700;
  color: var(--ma-ink);
  padding-top: 11px;
  font-size: 14px;
}
.page-template-page-fullwidth .mw_wp_form .control-label span,
.page-template-page-fullwidth .mw_wp_form .control-label small { color: #e5484d; font-size: 11px; font-weight: 700; margin-left: 4px; }
.page-template-page-fullwidth .mw_wp_form .form-control,
.page-template-page-fullwidth .mw_wp_form select,
.page-template-page-fullwidth .mw_wp_form input[type="text"],
.page-template-page-fullwidth .mw_wp_form input[type="email"],
.page-template-page-fullwidth .mw_wp_form input[type="tel"],
.page-template-page-fullwidth .mw_wp_form textarea {
  width: 100% !important;
  box-sizing: border-box;
  border: 1px solid var(--ma-line);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ma-ink);
  background: #fff;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.page-template-page-fullwidth .mw_wp_form textarea { min-height: 170px; resize: vertical; }
.page-template-page-fullwidth .mw_wp_form .form-control:focus,
.page-template-page-fullwidth .mw_wp_form select:focus,
.page-template-page-fullwidth .mw_wp_form input:focus,
.page-template-page-fullwidth .mw_wp_form textarea:focus {
  outline: none;
  border-color: var(--ma-accent);
  box-shadow: 0 0 0 3px var(--ma-accent-soft);
}
.page-template-page-fullwidth .mw_wp_form p { margin: 0; }
.page-template-page-fullwidth .mw_wp_form .col-sm-offset-4 { margin-left: 0 !important; }
.page-template-page-fullwidth .mw_wp_form .subm-box {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  float: none !important;
  width: 100%;
}
.page-template-page-fullwidth .mw_wp_form .subm-box input[type="submit"],
.page-template-page-fullwidth .mw_wp_form .subm-box button,
.page-template-page-fullwidth .mw_wp_form .send-btn input {
  min-width: 240px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ma-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 143, 208, .28);
  transition: background-color .2s ease, transform .2s ease;
}
.page-template-page-fullwidth .mw_wp_form .subm-box input[type="submit"]:hover:not(:disabled) { background: #1676ad; transform: translateY(-1px); }
.page-template-page-fullwidth .mw_wp_form .subm-box input[type="submit"]:disabled,
.page-template-page-fullwidth .mw_wp_form .subm-box input[disabled] {
  background: #d6d9de;
  color: #8a8f99;
  box-shadow: none;
  cursor: not-allowed;
}
@media screen and (max-width: 640px) {
  .page-template-page-fullwidth .mw_wp_form .form-group { grid-template-columns: 1fr; gap: 6px; }
  .page-template-page-fullwidth .mw_wp_form .control-label { padding-top: 0; }
}

/* contact form: align with the heading, not centered */
.page-template-page-fullwidth .mw_wp_form { max-width: 760px; margin: 0; padding: 0; float: none; width: 100%; }
.page-template-page-fullwidth .mw_wp_form .form-horizontal { margin: 0; }
.page-template-page-fullwidth .mw_wp_form .form-group { margin-left: 0 !important; margin-right: 0 !important; }
/* contact: remove Bootstrap column offset that pushes the form right */
.page-template-page-fullwidth [class*="col-md-offset-"],
.page-template-page-fullwidth [class*="col-sm-offset-"] { margin-left: 0 !important; }
.page-template-page-fullwidth .mw_wp_form { max-width: none; }
.page-template-page-fullwidth .col-md-8 { width: 100% !important; float: none !important; }
/* contact: the grey "入力してください" placeholder sits exactly where the send button is (same size) */
.page-template-page-fullwidth .mw_wp_form .subm3 {
  position: relative;
  width: 240px;
  height: 49px;
  margin: 0 auto;
  float: none !important;
}
.page-template-page-fullwidth .mw_wp_form .subm3 > span {
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  padding: 0 20px !important;
  margin: 0;
  box-sizing: border-box;
  border-radius: 999px !important;
  background: #d6d9de !important;
  color: #8a8f99 !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  pointer-events: none;
}
.page-template-page-fullwidth .mw_wp_form .subm3 .send-btn,
.page-template-page-fullwidth .mw_wp_form .subm3 .subm,
.page-template-page-fullwidth .mw_wp_form .subm3 .fix-btn { width: 240px; height: 49px; }
/* contact submit: overlay the grey placeholder exactly on the send button (theme positions both at 0,0) */
.page-template-page-fullwidth .mw_wp_form .subm-box {
  display: block !important;
  position: relative;
  width: 240px;
  height: 49px;
  margin: 26px auto 0 !important;
}
.page-template-page-fullwidth .mw_wp_form .subm3 {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 240px;
  height: 49px;
  margin: 0 !important;
  float: none !important;
}

/* buttons: no drop shadow (all states) */
button, input[type="submit"], input[type="button"], .btn, [class*="btn-"], .header-button,
.send-btn input, .subm input, .subm3 span,
.page-id-2 .post-content a[href="/en"], .page-id-2 .post-content a[href="/jp"] {
  box-shadow: none !important;
}
