/* ==========================================================
   Miyavi laboratory デザインCSS（Cocoon 用）
   ========================================================== */

:root {
  --ml-cyan: #95FFFF;
  --ml-pink: #FCB9CC;
  --ml-ink: #2B2A4C;
  --ml-cream: #FFFBF4;
  --ml-cyan-soft: #D9FFFF;
  --ml-pink-soft: #FFE3EB;
  --ml-pink-deep: #C93A6E;
  --ml-font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --ml-en: "Fredoka", "M PLUS Rounded 1c", sans-serif;
  --ml-line: 3px solid var(--ml-ink);
  --ml-shadow: 6px 6px 0 var(--ml-ink);
}

/* ----------------------------------------------------------
   サイト全体（Cocoon のヘッダー・ナビ・フッター）
   ---------------------------------------------------------- */
body {
  font-family: var(--ml-font);
  color: var(--ml-ink);
  background: var(--ml-cream);
}

#header-container,
#header-container .header,
#header,
#navi,
#navi .navi-in {
  background: var(--ml-cream);
}

/* ロゴ：サイト名テキストをフラスコ＋2段ロゴに置き換え */
.logo-header a,
.logo-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-header a::before,
.logo-footer a::before {
  content: "";
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: url(flask.svg?v=e) center / contain no-repeat;
}
.logo-footer a::before {
  background-image: url(flask-white.svg?v=e);
}
.logo-header .site-name-text,
.logo-footer .site-name-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0;
  line-height: 1;
}
.logo-header .site-name-text::before,
.logo-footer .site-name-text::before {
  content: "Miyavi";
  font-family: var(--ml-en);
  font-weight: 700;
  font-size: 30px;
  line-height: 0.95;
  color: var(--ml-ink);
}
/* laboratory の左右にピンクと水色の線（E案） */
.logo-header .site-name-text::after,
.logo-footer .site-name-text::after {
  content: "laboratory";
  padding: 0 22px 0 23px;
  background:
    linear-gradient(var(--ml-pink), var(--ml-pink)) left center / 16px 2px no-repeat,
    linear-gradient(var(--ml-cyan), var(--ml-cyan)) right center / 16px 2px no-repeat;
  font-family: var(--ml-en);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ml-ink);
}
.logo-footer .site-name-text::before,
.logo-footer .site-name-text::after { color: #FFFFFF; }

/* グローバルナビ */
#navi .navi-in a {
  color: var(--ml-ink);
  font-weight: 700;
  font-size: 15px;
}
#navi .navi-in a:hover {
  background: transparent;
  color: var(--ml-pink-deep);
}
/* メニューの縦幅を広く */
#navi .navi-in > ul > li {
  height: 96px;
  line-height: 96px;
}
#navi .navi-in > ul > li > a {
  height: 96px;
  padding: 0 22px;
}
#navi .navi-in > ul > li > .sub-menu {
  top: 100%;
}

/* サブメニュー（我々について ▼） */
#navi .navi-in > ul > li.menu-item-has-children > a .item-label::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 8px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
}
#navi .navi-in > ul .sub-menu {
  min-width: 220px;
  padding: 10px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ml-ink);
  z-index: 100;
}
#navi .navi-in > ul .sub-menu li {
  width: 100%;
  height: auto;
  line-height: 1.4;
  background: transparent;
}
#navi .navi-in > ul .sub-menu a {
  display: block;
  height: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--ml-ink);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
#navi .navi-in > ul .sub-menu a:hover {
  background: var(--ml-pink-soft);
  color: var(--ml-ink);
}

/* フッター */
#footer,
.footer {
  background: var(--ml-ink);
  color: #FFFFFF;
}
#footer a,
.footer a,
.navi-footer-in a {
  color: #FFFFFF;
}
#footer a:hover,
.footer a:hover {
  color: var(--ml-pink);
  background: transparent;
}
.copyright {
  font-family: var(--ml-en);
  color: #D9D7EA;
}

/* ----------------------------------------------------------
   トップページ：Cocoon のタイトル・日付・SNSボタンなどを隠す
   （1カラム・固定ページで使う想定）
   ---------------------------------------------------------- */
html:has(.ml-section),
.ml-front {
  overflow-x: clip;
}
.ml-front .main,
.ml-front #main {
  padding: 0;
  border: none;
  background: transparent;
}
.ml-front .article-header,
.ml-front .article-footer,
.ml-front .breadcrumb,
.ml-front .entry-title,
.ml-front .date-tags,
.ml-front .sns-share,
.ml-front .sns-follow,
.ml-front .author-info,
.ml-front .under-entry-content {
  display: none;
}
.ml-front .article {
  margin-bottom: 0;
}
.ml-front .content,
.ml-front #content {
  margin-top: 0;
}

/* ----------------------------------------------------------
   セクション共通
   ---------------------------------------------------------- */
.ml-section {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 0 0 0 -50vw !important;
  padding: 120px 24px;
  box-sizing: border-box;
  font-family: var(--ml-font);
  color: var(--ml-ink);
}
.ml-section *,
.ml-section *::before,
.ml-section *::after {
  box-sizing: border-box;
}
.ml-inner {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Cocoon の見出し装飾をリセット */
.article .ml-section h1,
.article .ml-section h2,
.article .ml-section h3,
.ml-section h1,
.ml-section h2,
.ml-section h3 {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ml-ink);
  font-family: var(--ml-font);
  font-weight: 800;
  line-height: 1.4;
}
.article .ml-section h1::before, .article .ml-section h1::after,
.article .ml-section h2::before, .article .ml-section h2::after,
.article .ml-section h3::before, .article .ml-section h3::after {
  content: none;
}
.article .ml-section p,
.ml-section p {
  margin: 0;
}
.ml-section .wp-block-columns {
  margin-bottom: 0;
}
.ml-section a {
  text-decoration: none;
}

/* 見出しセット */
.ml-section .ml-label {
  font-family: var(--ml-en);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--ml-pink-deep);
  text-align: center;
  margin-bottom: 10px;
}
.ml-section .ml-label--ink { color: var(--ml-ink); }
.article .ml-section .ml-title,
.ml-section .ml-title {
  font-size: 42px;
  text-align: center;
}
.ml-section .ml-sub {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.9;
  text-align: center;
}
.ml-section .ml-left,
.article .ml-section .ml-left {
  text-align: left;
}

/* ボタン */
.ml-btns {
  gap: 20px;
}
.ml-btns--center {
  justify-content: center;
}
.ml-btn .wp-block-button__link {
  display: inline-block;
  padding: 18px 36px;
  border: var(--ml-line);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ml-ink);
  color: var(--ml-ink) !important;
  font-family: var(--ml-font);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ml-btn .wp-block-button__link:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ml-ink);
}
.ml-btn--cyan .wp-block-button__link { background: var(--ml-cyan); }
.ml-btn--pink .wp-block-button__link { background: var(--ml-pink); }
.ml-btn--lg .wp-block-button__link { padding: 22px 56px; font-size: 19px; }

/* キラキラ */
.ml-spark { position: absolute; }

/* ----------------------------------------------------------
   メインビジュアル
   ---------------------------------------------------------- */
.ml-hero {
  padding-top: 60px;
  padding-bottom: 80px;
  background: var(--ml-cream);
}
.ml-hero-cols {
  align-items: center !important;
  gap: 40px;
}
.ml-hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ml-section .ml-badge {
  align-self: flex-start;
  padding: 8px 18px;
  background: var(--ml-cyan);
  border: 2.5px solid var(--ml-ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.article .ml-section .ml-hero-title,
.ml-section .ml-hero-title {
  font-size: 54px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.ml-hero-title strong {
  font-weight: inherit;
  box-shadow: inset 0 -0.34em 0 var(--ml-pink);
}
.ml-section .ml-hero-lead {
  font-size: 18px;
  line-height: 2;
}

.ml-visual-wrap {
  position: relative;
  width: 560px;
  max-width: 100%;
  height: 540px;
  margin-left: auto;
}
.ml-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 540px;
  transform-origin: top left;
}
.ml-blob { position: absolute; border-radius: 50%; }
.ml-blob--cyan { left: 120px; top: 10px; width: 430px; height: 430px; background: var(--ml-cyan); }
.ml-blob--pink { left: 0; top: 320px; width: 200px; height: 200px; background: var(--ml-pink); }
.ml-browser {
  position: absolute;
  left: 50px; top: 80px;
  width: 420px; height: 290px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ml-ink);
  overflow: hidden;
}
.ml-browser-bar {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-bottom: var(--ml-line);
}
.ml-browser-bar span {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--ml-ink);
  background: var(--ml-pink);
}
.ml-browser-bar span:nth-child(2) { background: var(--ml-cyan); }
.ml-browser-bar span:nth-child(3) { background: var(--ml-cream); }
.ml-browser-body { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.ml-browser-hero {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  height: 92px; padding: 0 20px;
  border-radius: 14px; background: var(--ml-pink);
}
.ml-browser-hero i { display: block; width: 170px; height: 12px; border-radius: 6px; background: #FFFFFF; }
.ml-browser-hero i + i { width: 110px; }
.ml-browser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ml-browser-grid b { height: 86px; border-radius: 12px; background: var(--ml-cyan); }
.ml-browser-grid b:nth-child(2) { background: var(--ml-pink-soft); }
.ml-browser-grid b:nth-child(3) { background: var(--ml-cyan-soft); }
.ml-phone {
  position: absolute;
  left: 390px; top: 240px;
  width: 160px; height: 280px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 12px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ml-ink);
}
.ml-phone-user { display: flex; align-items: center; gap: 8px; }
.ml-phone-user span { width: 26px; height: 26px; border-radius: 50%; background: var(--ml-pink); border: 2px solid var(--ml-ink); }
.ml-phone-user i { width: 60px; height: 8px; border-radius: 4px; background: var(--ml-ink); }
.ml-phone-img { display: flex; align-items: center; justify-content: center; height: 130px; border-radius: 14px; background: var(--ml-cyan); }
.ml-phone-icons { display: flex; gap: 10px; }
.ml-line { display: block; width: 110px; height: 8px; border-radius: 4px; background: #E6E4EE; }
.ml-line--short { width: 80px; }
.ml-spark--1 { left: 14px; top: 20px; width: 56px; height: 56px; }
.ml-spark--2 { left: 520px; top: 50px; width: 34px; height: 34px; }
.ml-spark--3 { left: 240px; top: 420px; width: 30px; height: 30px; }

/* ----------------------------------------------------------
   事業内容
   ---------------------------------------------------------- */
.ml-service {
  margin-top: 60px !important;
  padding-top: 60px;
  background: var(--ml-cyan-soft);
}
.ml-service::before,
.ml-reason::before {
  content: "";
  position: absolute;
  left: 0;
  top: -59px;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 60'%3E%3Cpath d='M0 30 Q90 0 180 30 T360 30 V60 H0 Z' fill='%23D9FFFF'/%3E%3C/svg%3E") repeat-x left bottom / 360px 60px;
}
.ml-cards {
  margin-top: 56px;
  gap: 28px;
}
.ml-card {
  height: 100%;
  padding: 32px 26px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 28px;
  box-shadow: var(--ml-shadow);
}
.ml-card,
.ml-card > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ml-card-top { display: flex; align-items: center; justify-content: space-between; }
.ml-icon {
  display: flex; align-items: center; justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2.5px solid var(--ml-ink);
}
.ml-icon--pink { background: var(--ml-pink); }
.ml-icon--cyan { background: var(--ml-cyan); }
.ml-num { font-family: var(--ml-en); font-weight: 700; font-size: 34px; color: var(--ml-pink-deep); }
.article .ml-section .ml-card-title,
.ml-section .ml-card-title { font-size: 23px; }
.ml-section .ml-card-text { font-size: 15px; line-height: 1.85; }
.ml-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ml-tags span { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.ml-tags--pink span { background: var(--ml-pink-soft); }
.ml-tags--cyan span { background: var(--ml-cyan-soft); }

/* ----------------------------------------------------------
   選ばれる理由
   ---------------------------------------------------------- */
.ml-reason {
  margin-top: 60px !important;
  background: var(--ml-pink-soft);
  padding-top: 90px;
}
.ml-reason::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 60'%3E%3Cpath d='M0 30 Q90 0 180 30 T360 30 V60 H0 Z' fill='%23FFE3EB'/%3E%3C/svg%3E");
  background-color: var(--ml-cyan-soft);
}
.ml-points { margin-top: 56px; gap: 40px; }
.ml-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.ml-bubble {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 120px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--ml-ink);
  font-family: var(--ml-en); font-weight: 700; font-size: 52px;
}
.ml-bubble--pink { color: var(--ml-pink-deep); }
.ml-bubble--cyan { color: #0B7C88; }
.article .ml-section .ml-point-title,
.ml-section .ml-point-title { font-size: 24px; }
.ml-section .ml-point-text { font-size: 16px; line-height: 1.9; }

/* ----------------------------------------------------------
   制作実績（準備中）
   ---------------------------------------------------------- */
.ml-works { background: var(--ml-cream); }
.ml-soon {
  margin-top: 56px;
  padding: 56px 40px;
  background: #FFFFFF;
  border: 3px dashed var(--ml-ink);
  border-radius: 32px;
  text-align: center;
}
.ml-soon,
.ml-soon > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ml-soon-flask { display: block; }
.ml-section .ml-soon-en {
  font-family: var(--ml-en); font-weight: 600; font-size: 22px;
  letter-spacing: 0.3em; color: var(--ml-pink-deep);
}
.ml-section .ml-soon-title { font-size: 28px; font-weight: 800; }
.ml-section .ml-soon-text { font-size: 16px; line-height: 1.9; }

/* 実績カード */
.ml-works-grid { margin-top: 56px; gap: 32px; }
.ml-work {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ml-section .ml-work-img {
  height: 320px;
  margin: 0 0 8px;
  overflow: hidden;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 24px;
  box-shadow: var(--ml-shadow);
}
.ml-section .ml-work-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ml-section .ml-work-img--pink { padding: 12px; background: var(--ml-pink-soft); }
.ml-section .ml-work-img--cover img { object-fit: cover; object-position: center top; }
.ml-section .ml-work-cat {
  align-self: flex-start;
  padding: 4px 14px;
  background: var(--ml-cyan-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.article .ml-section .ml-work-title,
.ml-section .ml-work-title { font-size: 20px; }
.ml-section .ml-work-text { font-size: 15px; line-height: 1.8; }
.ml-work--soon {
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  background: #FFFFFF;
  border: 3px dashed var(--ml-ink);
  border-radius: 24px;
  text-align: center;
}
.ml-work--soon .ml-soon-en { font-size: 18px; }
.ml-section .ml-work--soon .ml-soon-title { font-size: 20px; line-height: 1.5; }
.ml-section .ml-work--soon .ml-soon-text { font-size: 14px; }

/* ----------------------------------------------------------
   ご依頼の流れ
   ---------------------------------------------------------- */
.ml-flow { padding-top: 0; background: var(--ml-cream); }
.ml-steps { position: relative; margin-top: 56px; gap: 20px; }
.ml-steps::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 54px;
  border-top: 3px dashed var(--ml-ink);
}
.ml-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.ml-step-num {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 108px; height: 108px;
  border: var(--ml-line);
  border-radius: 50%;
  font-family: var(--ml-en); font-weight: 600; font-size: 34px; line-height: 1;
}
.ml-step-num span { font-size: 13px; letter-spacing: 0.1em; margin-bottom: 2px; }
.ml-step-num--pink { background: var(--ml-pink); }
.ml-step-num--cyan { background: var(--ml-cyan); }
.article .ml-section .ml-step-title,
.ml-section .ml-step-title { font-size: 19px; }
.ml-section .ml-step-text { font-size: 14px; line-height: 1.8; }

/* ----------------------------------------------------------
   事業者概要
   ---------------------------------------------------------- */
.ml-profile { padding-top: 0; background: var(--ml-cream); }
.ml-profile-cols { align-items: center !important; gap: 64px; }
.ml-profile-main { flex-grow: 1; }
.ml-table {
  margin: 32px 0 0;
  padding: 12px 40px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 28px;
  font-size: 16px;
}
.ml-table > div {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 2px dashed #CFCBE0;
}
.ml-table > div:last-child { border-bottom: none; }
.ml-table dt { width: 140px; flex-shrink: 0; margin: 0; font-weight: 800; }
.ml-table dd { margin: 0; line-height: 1.8; }
.ml-profile-art { flex-basis: 380px !important; flex-grow: 0 !important; }
.ml-profile-logo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 360px; height: 360px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ml-pink-soft);
}

/* ----------------------------------------------------------
   お問い合わせ
   ---------------------------------------------------------- */
.ml-contact { padding-top: 0; background: var(--ml-cream); }
.ml-contact-box {
  position: relative;
  overflow: hidden;
  padding: 72px 64px;
  background: var(--ml-cyan);
  border: var(--ml-line);
  border-radius: 40px;
  box-shadow: 10px 10px 0 var(--ml-ink);
  text-align: center;
}
.ml-contact-box::before,
.ml-contact-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ml-contact-box::before { left: -60px; bottom: -80px; width: 220px; height: 220px; background: var(--ml-pink); }
.ml-contact-box::after { right: -40px; top: -70px; width: 180px; height: 180px; background: #FFFFFF; }
.ml-contact-box > * { position: relative; z-index: 1; }
.ml-contact-box .ml-btns { margin-top: 28px; }

/* ----------------------------------------------------------
   タブレット・スマホ
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .ml-cards--4 { flex-wrap: wrap !important; }
  .ml-cards--4 > .wp-block-column { flex-basis: calc(50% - 14px) !important; }
  .ml-visual { transform: scale(0.7); }
  .ml-visual-wrap { width: 392px; height: 378px; }
  .article .ml-section .ml-hero-title,
  .ml-section .ml-hero-title { font-size: 40px; }
}

@media (max-width: 834px) {
  .ml-section { padding: 64px 16px; }
  .ml-hero { padding-top: 24px; padding-bottom: 56px; }
  .ml-hero-cols { flex-direction: column-reverse; gap: 24px; }
  .ml-visual { transform: scale(0.62); }
  .ml-visual-wrap { width: 347px; height: 335px; margin: 0 auto; }
  .article .ml-section .ml-hero-title,
  .ml-section .ml-hero-title { font-size: clamp(26px, 8vw, 32px); line-height: 1.45; }
  .ml-section .ml-hero-lead { font-size: 15px; line-height: 1.9; }
  .ml-section .ml-hero-lead br { display: none; }
  .ml-btns { flex-direction: column; align-items: stretch; gap: 14px; }
  .ml-btns .wp-block-button { width: 100%; }
  .ml-btn .wp-block-button__link { display: block; width: 100%; text-align: center; padding: 16px; font-size: 16px; }
  .ml-btn--lg .wp-block-button__link { padding: 18px; font-size: 17px; }

  .ml-section .ml-label { font-size: 15px; }
  .article .ml-section .ml-title,
  .ml-section .ml-title { font-size: 28px; }
  .ml-section .ml-sub { font-size: 14px; }
  .ml-section .ml-sub br { display: none; }

  .ml-service { padding-top: 40px; }
  .ml-cards, .ml-points, .ml-steps, .ml-soon { margin-top: 32px; }
  .ml-cards--4 > .wp-block-column { flex-basis: 100% !important; }
  .ml-card { padding: 22px; border-radius: 24px; box-shadow: 5px 5px 0 var(--ml-ink); }
  .ml-icon { width: 56px; height: 56px; }

  .ml-reason { padding-top: 56px; }
  .ml-points { gap: 40px; }

  .ml-steps::before { left: 54px; right: auto; top: 20px; bottom: 20px; border-top: none; border-left: 3px dashed var(--ml-ink); }
  .ml-step { display: grid; grid-template-columns: 108px 1fr; column-gap: 20px; row-gap: 4px; align-items: center; text-align: left; }
  .ml-step-num { grid-row: span 2; }

  .ml-soon { padding: 40px 20px; }
  .ml-works-grid { margin-top: 32px; gap: 32px; }
  .ml-section .ml-work-img { height: 300px; }
  .ml-section .ml-soon-text br { display: none; }

  .ml-profile-cols { gap: 32px; }
  .ml-profile-art { flex-basis: auto !important; }
  .ml-profile-logo { width: 220px; height: 220px; }
  .ml-profile-logo svg { width: 150px; height: 150px; }
  .ml-table { padding: 4px 20px; font-size: 15px; }
  .ml-table > div { flex-direction: column; gap: 4px; padding: 16px 0; }
  .ml-table dt { width: auto; }

  .ml-contact-box { padding: 44px 22px; border-radius: 32px; box-shadow: 6px 6px 0 var(--ml-ink); }
  .ml-contact-box::after { display: none; }
}

/* ----------------------------------------------------------
   料金ページ
   ---------------------------------------------------------- */
.ml-price-head {
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--ml-cream);
}
.ml-price-head::before,
.ml-price-head::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ml-price-head::before { left: 6%; top: 20px; width: 180px; height: 180px; background: var(--ml-cyan-soft); }
.ml-price-head::after { right: 7%; top: 90px; width: 120px; height: 120px; background: var(--ml-pink-soft); }
.ml-price-head .ml-inner { position: relative; z-index: 1; }
.article .ml-section .ml-title--page,
.ml-section .ml-title--page { font-size: 48px; }

.ml-price { padding-top: 0; padding-bottom: 100px; background: var(--ml-cream); }
.ml-price-row { gap: 36px; margin-bottom: 36px !important; }
.ml-price-card {
  height: 100%;
  padding: 36px 40px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 28px;
  box-shadow: var(--ml-shadow);
}
.ml-price-head-row { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; }
.ml-price-head-row .ml-icon { width: 64px; height: 64px; flex-shrink: 0; }
.article .ml-section .ml-price-name,
.ml-section .ml-price-name { font-size: 26px; }
.ml-price-name .ml-num { font-size: 26px; margin-right: 10px; }
.ml-price-list { margin: 0; }
.ml-price-list > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 2px dashed #CFCBE0;
}
.ml-price-list--compact > div { padding: 14px 0; }
.ml-price-list dt {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.ml-price-list dt small { flex-basis: 100%; font-size: 13px; font-weight: 400; }
.ml-price-list dd {
  flex-shrink: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.ml-price-list dd b {
  margin: 0 2px;
  font-family: var(--ml-en);
  font-weight: 600;
  font-size: 30px;
}
.ml-price-list--compact dd b { font-size: 28px; }
.ml-chip {
  padding: 3px 10px;
  background: var(--ml-pink);
  border: 2px solid var(--ml-ink);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.ml-price-note {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 64px;
  padding: 36px 48px;
  background: var(--ml-pink-soft);
  border-radius: 28px;
}
.ml-section .ml-price-note-en {
  flex-shrink: 0;
  padding-top: 4px;
  font-family: var(--ml-en);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--ml-pink-deep);
}
.article .ml-section .ml-price-note ul,
.ml-price-note ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
}
.article .ml-section .ml-price-note li { margin: 0; }

@media (max-width: 834px) {
  .ml-price-head { padding-top: 40px; padding-bottom: 40px; }
  .ml-price-head::before { width: 110px; height: 110px; left: -20px; }
  .ml-price-head::after { width: 80px; height: 80px; right: -10px; }
  .article .ml-section .ml-title--page,
  .ml-section .ml-title--page { font-size: 32px; }
  .ml-price { padding-bottom: 64px; }
  .ml-price-row { gap: 24px; margin-bottom: 24px !important; }
  .ml-price-card { padding: 24px 20px; border-radius: 24px; box-shadow: 5px 5px 0 var(--ml-ink); }
  .ml-price-head-row .ml-icon { width: 52px; height: 52px; }
  .article .ml-section .ml-price-name,
  .ml-section .ml-price-name { font-size: 21px; }
  .ml-price-name .ml-num { font-size: 21px; }
  .ml-price-list > div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0; }
  .ml-price-list dt { font-size: 15px; }
  .ml-price-list dd { align-self: flex-end; }
  .ml-price-list dd b, .ml-price-list--compact dd b { font-size: 26px; }
  .ml-price-note { flex-direction: column; gap: 12px; margin-top: 40px; padding: 24px 20px; }
  .ml-price-note ul { font-size: 14px; }
}

/* ----------------------------------------------------------
   特定商取引法に基づく表記・プライバシーポリシー
   ---------------------------------------------------------- */
.ml-legal { padding-top: 0; padding-bottom: 100px; background: var(--ml-cream); }
.ml-legal-inner { max-width: 920px; }
.ml-legal-table { margin-top: 0; font-size: 15px; }
.ml-legal-table dt { width: 180px; }
.ml-legal a { color: var(--ml-pink-deep); text-decoration: underline; }
.ml-legal-doc {
  padding: 48px 56px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 28px;
}
.article .ml-section .ml-legal-doc h3,
.ml-legal-doc h3 {
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 2px dashed #CFCBE0;
  font-size: 20px;
}
.article .ml-section .ml-legal-doc p,
.ml-legal-doc p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
}
.article .ml-section .ml-legal-doc > p:first-child,
.ml-legal-doc > .wp-block-group__inner-container > p:first-child { margin-top: 0; }
.article .ml-section .ml-legal-doc .ml-legal-date { margin-top: 40px; text-align: right; font-size: 14px; }

@media (max-width: 834px) {
  .ml-legal { padding-bottom: 64px; }
  .ml-legal-doc { padding: 28px 20px; border-radius: 24px; }
  .article .ml-section .ml-legal-doc h3,
  .ml-legal-doc h3 { font-size: 18px; }
}

/* ----------------------------------------------------------
   お問い合わせフォーム（Contact Form 7）
   ---------------------------------------------------------- */
.ml-form-card {
  padding: 48px 56px;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 28px;
  box-shadow: var(--ml-shadow);
}
.article .ml-section .ml-form-notes,
.ml-form-notes {
  margin: 0 0 36px;
  padding: 20px 24px 20px 40px;
  background: var(--ml-cyan-soft);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.9;
}
.article .ml-section .ml-form-notes li { margin: 0; }
.ml-req,
.ml-opt {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  vertical-align: middle;
}
.ml-req { background: var(--ml-pink-deep); color: #FFFFFF; }
.ml-opt { background: #ECEAF3; color: var(--ml-ink); }

.ml-form { display: flex; flex-direction: column; gap: 28px; }
.ml-form p { margin: 0; }
.ml-field > label { display: flex; flex-direction: column; gap: 10px; }
.ml-field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}
.ml-form .wpcf7-form-control-wrap { display: block; }
.ml-form input[type="text"],
.ml-form input[type="email"],
.ml-form input[type="tel"],
.ml-form select,
.ml-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--ml-cream);
  border: 2.5px solid var(--ml-ink);
  border-radius: 14px;
  box-shadow: none;
  color: var(--ml-ink);
  font-family: var(--ml-font);
  font-size: 16px;
  line-height: 1.6;
}
.ml-form textarea { min-height: 200px; resize: vertical; }
.ml-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background: var(--ml-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2A4C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 16px;
}
.ml-form input::placeholder,
.ml-form textarea::placeholder { color: #8C8AA3; }
.ml-form input:focus,
.ml-form select:focus,
.ml-form textarea:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--ml-pink-deep);
  box-shadow: 0 0 0 4px var(--ml-pink-soft);
}

/* チェックボックス（ピル型） */
.ml-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.ml-form .wpcf7-checkbox .wpcf7-list-item { margin: 0; }
.ml-form .wpcf7-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  background: #FFFFFF;
  border: 2.5px solid var(--ml-ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ml-form .wpcf7-checkbox label:has(input:checked) { background: var(--ml-pink); }
.ml-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ml-pink-deep);
}

/* 同意・送信 */
.ml-agree { text-align: center; font-size: 15px; font-weight: 700; }
.ml-agree .wpcf7-list-item { margin: 0; }
.ml-agree label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ml-agree a { color: var(--ml-pink-deep); text-decoration: underline; }
.ml-submit { position: relative; text-align: center; }
.ml-form input.wpcf7-submit {
  min-width: 320px;
  padding: 20px 48px;
  background: var(--ml-pink);
  border: var(--ml-line);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ml-ink);
  color: var(--ml-ink);
  font-family: var(--ml-font);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ml-form input.wpcf7-submit:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ml-ink);
}
.ml-form input.wpcf7-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.ml-submit .wpcf7-spinner { position: absolute; right: 0; top: 50%; margin: -12px 0 0; }

/* エラー・送信結果 */
.ml-form-card .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--ml-pink-deep);
  font-size: 14px;
  font-weight: 700;
}
.ml-form-card .wpcf7-not-valid { border-color: var(--ml-pink-deep) !important; }
.ml-form-card .wpcf7 form .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 2.5px solid var(--ml-ink);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.ml-form-card .wpcf7 form.sent .wpcf7-response-output { background: var(--ml-cyan-soft); border-color: var(--ml-ink); }
.ml-form-card .wpcf7 form.invalid .wpcf7-response-output,
.ml-form-card .wpcf7 form.failed .wpcf7-response-output { background: var(--ml-pink-soft); border-color: var(--ml-pink-deep); }

@media (max-width: 834px) {
  .ml-form-card { padding: 28px 18px; border-radius: 24px; box-shadow: 5px 5px 0 var(--ml-ink); }
  .article .ml-section .ml-form-notes,
  .ml-form-notes { padding: 16px 16px 16px 32px; }
  .ml-form input.wpcf7-submit { width: 100%; min-width: 0; padding: 18px; font-size: 17px; }
}

/* ----------------------------------------------------------
   LINE で相談するボタン
   ---------------------------------------------------------- */
.ml-line-wrap { margin-top: 20px; text-align: center; }
a.ml-line-btn,
a.ml-line-float {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  border: 3px solid var(--ml-ink);
  border-radius: 999px;
  color: var(--ml-ink) !important;
  font-family: var(--ml-font);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
a.ml-line-btn {
  padding: 14px 36px 14px 26px;
  box-shadow: 5px 5px 0 var(--ml-ink);
  font-size: 17px;
}
a.ml-line-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ml-ink);
}
.ml-line-icon { flex-shrink: 0; }

/* 右下に追従するボタン（Cocoon の「トップへ戻る」と重ならない位置） */
a.ml-line-float {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 9990;
  padding: 10px 20px 10px 12px;
  box-shadow: 4px 4px 0 var(--ml-ink);
  font-size: 15px;
}
a.ml-line-float:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ml-ink);
}

/* お問い合わせページの LINE 案内 */
.ml-line-card {
  margin-bottom: 36px;
  padding: 28px 24px;
  background: #E3FAEC;
  border: 2.5px dashed var(--ml-ink);
  border-radius: 20px;
  text-align: center;
}
.article .ml-section .ml-line-card-title,
.ml-line-card-title { font-size: 19px; font-weight: 800; }
.article .ml-section .ml-line-card-text,
.ml-line-card-text { margin-top: 6px; font-size: 14px; line-height: 1.8; }
.ml-line-card .ml-line-wrap { margin-top: 16px; }

@media (max-width: 834px) {
  a.ml-line-btn { width: 100%; justify-content: center; box-sizing: border-box; }
  a.ml-line-float { right: 12px; bottom: 80px; padding: 8px 16px 8px 10px; font-size: 14px; }
  a.ml-line-float .ml-line-icon { width: 24px; height: 24px; }
}

/* LINE の URL が未設定のときは案内カードごと隠す */
.ml-no-line .ml-line-card { display: none; }
/* ----------------------------------------------------------
   お知らせ
   ---------------------------------------------------------- */
.ml-news-section { padding-top: 40px; padding-bottom: 60px; background: var(--ml-cream); }
.ml-news-inner,
.ml-news-inner > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.ml-news-inner > .wp-block-group__inner-container { grid-column: 1 / -1; }
.ml-news-head .ml-label { margin-bottom: 6px; }

.article .ml-section .ml-news-list,
.ml-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #FFFFFF;
  border: var(--ml-line);
  border-radius: 24px;
  box-shadow: var(--ml-shadow);
  overflow: hidden;
}
.article .ml-section .ml-news-list li,
.ml-news-list li { margin: 0; padding: 0; list-style: none; }
.ml-news-list li + li { border-top: 2px dashed #CFCBE0; }
.ml-news-list a {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  color: var(--ml-ink) !important;
  text-decoration: none !important;
  transition: background 0.15s;
}
.ml-news-list a:hover { background: var(--ml-pink-soft); }
.ml-news-list time { font-family: var(--ml-en); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; }
.ml-news-cat {
  padding: 3px 12px;
  background: var(--ml-cyan-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ml-news-title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.ml-news-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border: 2.5px solid var(--ml-ink);
  border-radius: 50%;
}
.ml-news-list a:hover .ml-news-go { background: var(--ml-pink); }
.article .ml-section .ml-news-empty,
.ml-news-empty {
  padding: 28px;
  background: #FFFFFF;
  border: 2.5px dashed var(--ml-ink);
  border-radius: 20px;
  font-size: 15px;
  text-align: center;
}
.ml-news-more { margin-top: 18px; text-align: right; }
.ml-news-more a {
  color: var(--ml-pink-deep) !important;
  font-weight: 800;
  font-size: 15px;
  text-decoration: underline !important;
}
.ml-news-more a::after { content: " →"; }

@media (max-width: 834px) {
  .ml-news-section { padding-top: 16px; padding-bottom: 40px; }
  .ml-news-inner,
  .ml-news-inner > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ml-news-list { border-radius: 20px; box-shadow: 5px 5px 0 var(--ml-ink); }
  .ml-news-list a {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 16px 18px;
  }
  .ml-news-list time { grid-column: 1; grid-row: 1; font-size: 14px; }
  .ml-news-cat { grid-column: 2; grid-row: 1; justify-self: start; }
  .ml-news-title { grid-column: 1 / 3; grid-row: 2; font-size: 15px; }
  .ml-news-go { grid-column: 3; grid-row: 1 / 3; width: 32px; height: 32px; }
}