/* =========================================================
   2027年 マヤ暦編だけで使う見た目（mx- で始まるクラスだけ）
   土台は /2027/style.css と year-jewel.css（金色の装飾）。共通のクラスはここで上書きしない
   マヤ暦のオレンジは差し色だけ：#efb05c（線・印）／#fdf0da（淡い地）
   形は四柱推命編（shichu2027.css）にそろえている
   ========================================================= */

.page--year-special .hero h1 .title-tail{white-space:nowrap}
.mx-year,.mx-sec,.mx-you,.mx-message,.mx-notice,.mx-wslink,.mx-you-invite{--mx-orange:#efb05c;--mx-orange-deep:#a8732a;--mx-orange-wash:#fdf0da}
html{scroll-behavior:smooth}
.mx-sec,.mx-you{margin-top:54px;scroll-margin-top:20px}
.mx-year{scroll-margin-top:20px}

/* 軽い見出し（✦ 英字ラベル＋見出し） */
.mx-head{max-width:850px;margin:0 auto 22px;text-align:center}
.mx-head .kicker{margin-bottom:2px}
.mx-head h2{display:inline-block;padding:4px 22px 8px;border-bottom:1px solid #d9bd7c;font-size:28px;letter-spacing:.08em;color:#594021;text-shadow:0 1px #fff}
.mx-head h2::after{content:"✦　❧　✦";display:block;margin-top:3px;color:#d39a45;font-family:serif;font-size:12px;letter-spacing:.2em}
.mx-head .section-lead{margin-top:6px}

/* 本文カード */
.mx-panel{position:relative;padding:32px 36px;border:1px solid #e5d4ae;border-radius:22px;background:linear-gradient(145deg,#fffefa 0%,#fffaf0 100%);box-shadow:0 7px 22px #98713a12}
.mx-panel--gold{border-top:5px solid #c9a448}
.mx-panel--rose{border-top:5px solid #d394a1}
.mx-panel--green{border-top:5px solid #83b1a7}
.mx-panel--blue{border-top:5px solid #8daed1}
.mx-text p{font-size:17px;line-height:1.95}
.mx-text p+p{margin-top:12px}
.mx-text h3{margin:26px 0 8px;font-size:19px;color:#644723}
.mx-text--wide{max-width:860px;margin:28px auto 0}
.mx-text a,.mx-wslink a,.mx-guide-link a,.mx-ws-link a,.mx-you-panel a,.mx-you-invite a{color:#8b6720}

/* 2027年の立ち位置：紋章のイラスト＋テーマ */
.mx-intro{display:grid;grid-template-columns:240px 1fr;align-items:center;gap:34px;position:relative;padding:34px 38px;border:1px solid #ccb071;border-radius:27px;background:radial-gradient(ellipse at 0 0,#fdf0dacc,transparent 58%),radial-gradient(ellipse at 100% 100%,#f4e0d4a8,transparent 60%),#fffdf5;box-shadow:0 9px 32px #aa7d2b1a}
.mx-intro::before{content:"";position:absolute;inset:8px;border:1px solid #d6bc80;border-radius:20px;pointer-events:none}
.mx-intro>*{position:relative;z-index:1}
.mx-intro-art{text-align:center}
.mx-intro-art img{display:block;width:200px;height:auto;margin:0 auto 10px;filter:drop-shadow(0 7px 8px #bf9c4130)}
.mx-rel-row{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:6px;font-size:13px;color:#76604e}
.mx-rel-when{min-width:7.5em;text-align:right}
.mx-chip{display:inline-block;min-width:6em;padding:1px 12px;border:1px solid #e2cf9f;border-radius:50px;background:#fffcf4;color:#76604e;font-size:13px;text-align:center}
.mx-chip.is-special{background:var(--mx-orange);border-color:var(--mx-orange);color:#fff;text-shadow:0 1px 2px #7a4e1255}
.mx-theme{margin:4px 0 14px;font-size:25px;line-height:1.6;color:#644723}
.mx-verdict{padding:18px 22px;border:1px solid #e2cfaa;border-radius:18px;background:linear-gradient(120deg,#fffdf7,#f8f2e4)}
.mx-summary{font-size:17px;line-height:1.9;color:#4b3a2f}
.mx-reason{margin-top:8px;font-size:14px;line-height:1.8;color:#76604e}
.mx-reason span{display:inline-block;margin-right:8px;padding:0 10px;border-radius:50px;background:var(--mx-orange-wash);color:var(--mx-orange-deep);font-size:12px;letter-spacing:.06em}
.mx-common-note{font-size:14px}

/* 目次 */
.mx-toc{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:860px;margin:24px auto 0}
.mx-toc a{padding:3px 15px;border:1px solid #d6bf88;border-radius:50px;background:#fffcf4;color:#594021;font-size:14px;text-decoration:none}
.mx-toc a:hover{background:var(--mx-orange-wash);border-color:var(--mx-orange)}

/* 小見出し＋本文 */
.mx-items{display:grid;gap:22px;margin-top:6px}
.mx-text+.mx-items{margin-top:22px}
.mx-item h3{position:relative;margin-bottom:6px;padding-left:22px;font-size:19px;line-height:1.6;color:#644723}
.mx-item h3::before{content:"✦";position:absolute;left:0;top:1px;color:var(--mx-orange)}
.mx-items--flow .mx-item{padding:16px 20px;border:1px solid #ecdcb8;border-radius:16px;background:#fffdf8}

/* 13の月 */
.mx-moons-card{padding:30px 34px 28px}
.mx-moon-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;max-width:960px;margin:0 auto;padding:0;list-style:none}
.mx-moon-group{grid-column:1/-1;margin-top:6px;font-family:"Zen Antique Soft",serif;font-size:19px;color:var(--mx-orange-deep);text-align:center;letter-spacing:.08em}
.mx-moon{padding:14px 18px 15px;border:1px solid #e6d4ac;border-left:4px solid var(--mx-orange);border-radius:16px;background:#fffdf8}
.mx-moon.is-doot{grid-column:1/-1;border-left-color:#c9b9d8;background:linear-gradient(120deg,#f6f1fa,#fffdf8 70%)}
.mx-moon-head{font-family:"Zen Antique Soft",serif;font-size:16px;line-height:1.6;color:#594021}
.mx-moon-text{margin-top:6px;font-size:15px;line-height:1.85}

/* 追い風・ひと休み */
.mx-timing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:960px;margin:0 auto}
.mx-timing-card{padding:24px 26px}
.mx-timing-title{font-family:"Zen Antique Soft",serif;font-size:19px;color:#594021}
.mx-timing-card ul{margin:10px 0 0;padding:0;list-style:none}
.mx-timing-card li+li{margin-top:12px}
.mx-timing-card strong{display:block;font-size:16px;color:var(--mx-orange-deep)}
.mx-timing-card span{display:block;font-size:15px;line-height:1.8}
.mx-timing-card.is-good{background:linear-gradient(150deg,#fffefa,var(--mx-orange-wash));border-color:#efd2a0}
.mx-timing-card.is-rest{background:linear-gradient(150deg,#fffefa,#f0eaf5);border-color:#d9cce4}
.mx-timing-card.is-rest strong{color:#5e4d6e}
.mx-tips{max-width:960px;margin:20px auto 0}
.mx-tips h3{font-size:18px;color:#644723;margin-bottom:6px}

/* 合言葉・リンク・お知らせ */
.mx-message .forecast-weather{font-size:21px}
.mx-wslink{margin-top:28px;text-align:center;font-size:16px}
.mx-notice{max-width:860px;margin:36px auto 0;padding:22px 26px;border:1px dashed #d8b98a;border-radius:16px;background:#fffaf2}
.mx-notice-title{font-family:"Zen Antique Soft",serif;font-size:18px;color:#594021}
.mx-notice p+p{margin-top:6px;font-size:15px;line-height:1.85}

/* ほかの紋章 */
.mx-seal-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:960px;margin:0 auto;padding:0;list-style:none}
.mx-seal-nav a,.mx-seal-nav .is-current{display:flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid #dcc58f;border-radius:50px;background:#fffcf4;color:#594021;text-decoration:none;font-size:14px;line-height:1.4}
.mx-seal-nav img{width:34px;height:34px;flex-shrink:0}
.mx-seal-nav a:hover{transform:translateY(-2px);box-shadow:0 6px 16px #9f79221f}
.mx-seal-nav .is-current{background:var(--mx-orange-wash);border-color:var(--mx-orange)}
.mx-back{margin-top:28px;text-align:center}

/* あなたの年回りのKINから見る2027年 */
.mx-you-invite{max-width:860px;margin:0 auto 8px;text-align:center;font-size:14px;color:#76604e}
.mx-you-panel{max-width:960px;margin:0 auto;border:2px solid var(--mx-orange);background:linear-gradient(150deg,#fffefa,var(--mx-orange-wash))}
.mx-you-other{margin-bottom:16px;padding:10px 14px;border-radius:12px;background:#fff;font-size:15px}
.mx-you-sig{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 20px}
.mx-you-sig div{padding:10px 6px;border:1px solid #ecd6ad;border-radius:14px;background:#fffdf8;text-align:center}
.mx-you-sig dt{font-size:12px;color:#8a7560}
.mx-you-sig dd{margin:2px 0 0;font-size:15px;color:#594021}
.mx-you-nen{text-align:center;margin-bottom:18px}
.mx-you-label{font-size:13px;letter-spacing:.08em;color:var(--mx-orange-deep)}
.mx-you-kin{font-family:"Zen Antique Soft",serif;font-size:26px;color:#594021}
.mx-you-range{font-size:13px;color:#76604e}
.mx-you-cycle{display:inline-block;margin-top:8px;padding:2px 16px;border-radius:50px;background:var(--mx-orange);color:#fff;font-size:14px;text-shadow:0 1px 2px #7a4e1255}
.mx-you-block{margin-top:18px;padding:16px 20px;border:1px solid #ecdcb8;border-radius:16px;background:#fffdf8}
.mx-you-block h3{margin-bottom:6px;font-size:18px;line-height:1.6;color:#644723}
.mx-you-block p{font-size:16px;line-height:1.9}
.mx-you-block p+p{margin-top:8px}
.mx-you-yr{display:inline-block;margin-right:8px;padding:0 10px;border-radius:50px;background:var(--mx-orange-wash);color:var(--mx-orange-deep);font-size:13px}
.mx-you-small{font-size:13px !important;color:#8a7560}
.mx-you-dates{font-size:17px !important;color:var(--mx-orange-deep)}
.mx-you-before{margin-top:16px;padding:12px 16px;border:1px dashed #d8b98a;border-radius:12px;background:#fffaf2;font-size:15px;line-height:1.85}

/* トップ：2つのマヤの年 */
.mx-years{display:grid;grid-template-columns:1fr .7fr 1fr;gap:16px;margin-top:10px}
.mx-yearcard{padding:20px 22px;border:1px solid #e6d4ac;border-radius:20px;background:#fffdf8}
.mx-yearcard.is-red{border-top:5px solid #d98a6a;background:linear-gradient(160deg,#fffdf8,#fbebe3)}
.mx-yearcard.is-white{border-top:5px solid #c9b88f;background:linear-gradient(160deg,#fffdf8,#f6f1e4)}
.mx-yearcard.is-doot{border-top:5px solid #c9b9d8;background:linear-gradient(160deg,#fffdf8,#f3eef8)}
.mx-yearcard-when{font-size:13px;color:#8a7560;letter-spacing:.04em}
.mx-yearcard h3{margin:2px 0 8px;font-size:20px;line-height:1.5;color:#594021}
.mx-yearcard h3 small{margin-left:8px;font-size:12px;color:#8a7560}
.mx-yearcard p{font-size:15px;line-height:1.85}
.mx-yearcard p+p{margin-top:8px}
.mx-next{max-width:860px;margin:22px auto 0;font-size:15px;line-height:1.9;text-align:center;color:#76604e}

/* トップ：フォーム */
.mx-form-card{max-width:640px;margin:0 auto;padding:28px 30px;text-align:center}
.mx-form fieldset{border:0;margin:0;padding:0}
.mx-form legend{margin:0 auto 12px;font-size:16px;color:#594021}
.mx-date{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.mx-date label{display:flex;align-items:center;gap:4px}
.mx-date select{padding:6px 10px;border:1px solid #d6bf88;border-radius:10px;background:#fff;font-size:16px}
.mx-form .primary{margin-top:18px}
.mx-form-note{margin-top:12px;font-size:13px;line-height:1.8;color:#76604e}
.mx-error{margin-top:10px;color:#a3412c}

/* トップ：20の紋章 */
.mx-seal-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;max-width:1000px;margin:0 auto;padding:0;list-style:none}
.mx-seal-cards a{display:flex;flex-direction:column;align-items:center;height:100%;padding:14px 10px 16px;border:1px solid #dcc58f;border-radius:20px;background:linear-gradient(160deg,#fffefa,#fdf3e2);color:#594021;text-decoration:none;text-align:center;transition:transform .2s,box-shadow .2s}
.mx-seal-cards a:hover{transform:translateY(-3px);box-shadow:0 8px 18px #9f79221f}
.mx-card-img img{width:96px;height:96px}
.mx-card-name{margin-top:6px;font-family:"Zen Antique Soft",serif;font-size:16px}
.mx-card-theme{margin-top:4px;font-size:12px;line-height:1.6;color:#76604e}

/* トップ：表 */
.mx-table-wrap{overflow-x:auto}
.mx-table{width:100%;border-collapse:collapse;font-size:15px}
.mx-table th,.mx-table td{padding:9px 10px;border-bottom:1px solid #eadcbc;text-align:center}
.mx-table thead th{font-size:13px;color:#8a7560;font-weight:normal}
.mx-table thead small{font-size:11px}
.mx-table tbody th{text-align:left;font-weight:normal}
.mx-table td.is-special{background:var(--mx-orange-wash);color:var(--mx-orange-deep)}
.mx-table a{color:#594021}
.mx-table--moons tbody th,.mx-table--ws tbody th{white-space:nowrap}
.mx-row-group th{background:#fbf4e4;text-align:center !important;color:var(--mx-orange-deep);font-family:"Zen Antique Soft",serif}
.mx-table tr.is-doot td,.mx-table tr.is-doot th{background:#f6f1fa}
.mx-table--ws td:last-child,.mx-table--moons td:last-child{text-align:left}
.mx-nowrap{white-space:nowrap}
.mx-table-note{margin-top:12px;font-size:13px;color:#76604e}
.mx-guide h3:first-child{margin-top:0}
.mx-dl{margin:12px 0 16px}
.mx-dl dt{margin-top:10px;font-weight:bold;color:var(--mx-orange-deep)}
.mx-dl dd{margin:2px 0 0;font-size:16px;line-height:1.85}
.mx-guide-link{margin-top:18px;text-align:center}
.mx-faq details{padding:12px 4px;border-bottom:1px dashed #e2cf9f}
.mx-faq summary{cursor:pointer;font-size:16px;color:#594021}
.mx-faq details p{margin-top:8px;font-size:15px;line-height:1.85}

/* ウェイブスペル一覧 */
.mx-toc--ws a{font-size:13px}
.mx-ws{margin-top:30px}
.mx-ws-panel{max-width:960px;margin:0 auto}
.mx-ws-head{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.mx-ws-head img{width:80px;height:80px}
.mx-ws-head h2{font-size:23px;color:#594021}
.mx-item--theme h3{color:var(--mx-orange-deep)}
.mx-ws-dates{margin-top:18px;padding:10px 14px;border-radius:12px;background:var(--mx-orange-wash);font-size:15px}
.mx-ws-dates span{display:block;font-size:12px;color:#8a7560}
.mx-ws-link{margin-top:12px;text-align:right}

@media(max-width:900px){
  .mx-intro{grid-template-columns:190px 1fr;gap:24px;padding:30px 26px}
  .mx-intro-art img{width:160px}
  .mx-seal-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
  .mx-seal-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mx-years{grid-template-columns:1fr}
  .mx-you-sig{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .page--year-special .hero h1{font-size:25px;letter-spacing:.04em}
  .mx-head h2{font-size:22px;letter-spacing:.04em}
  .mx-sec,.mx-you{margin-top:40px}
  .mx-panel{padding:24px 18px}
  .mx-intro{grid-template-columns:1fr;gap:12px;padding:26px 18px;text-align:center}
  .mx-intro-body{text-align:left}
  .mx-intro-body .kicker{text-align:center}
  .mx-theme{font-size:21px;text-align:center}
  .mx-text p{font-size:16px}
  .mx-item h3{font-size:17px}
  .mx-moons-card{padding:6px 18px}
  .mx-moon-list{grid-template-columns:1fr;gap:0}
  .mx-moon,.mx-moon.is-doot{padding:12px 2px 13px;border:0;border-bottom:1px dashed #e2cf9f;border-radius:0;background:none}
  .mx-moon-text{font-size:14px}
  .mx-timing-grid{grid-template-columns:1fr;gap:14px}
  .mx-seal-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mx-seal-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mx-seal-nav a,.mx-seal-nav .is-current{font-size:13px;padding:5px 8px}
  .mx-you-sig{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mx-you-kin{font-size:21px}
  .mx-table{font-size:13px}
  .mx-table th,.mx-table td{padding:7px 5px}
}

/* 紋章の小さな絵 */
.mx-ico{display:inline-block;width:34px;height:34px;margin-right:8px;vertical-align:middle;object-fit:contain}
.mx-ico--inline{width:40px;height:40px}
.mx-seal-link{display:inline-flex;align-items:center;white-space:nowrap;text-decoration:none}
.mx-seal-link .mx-ico{width:38px;height:38px}
.mx-table--ws tbody th,.mx-table tbody th{vertical-align:middle}
.mx-yearcard-ico{float:right;width:64px;height:64px;margin:-4px -4px 4px 10px;filter:drop-shadow(0 4px 6px #bf9c4130)}
.mx-item.has-ico h3{display:flex;align-items:center;padding-left:0}
.mx-item.has-ico h3::before{display:none}
.mx-item.has-ico .mx-ico{width:44px;height:44px;margin-right:10px}
.mx-timing-card li{display:flex;align-items:flex-start;gap:10px}
.mx-ico--timing{width:48px;height:48px;margin:2px 0 0;flex-shrink:0}
.mx-you-sig-ico{display:block;width:46px;height:46px;margin:2px auto 2px}
.mx-you-nen-ico{display:block;width:96px;height:96px;margin:0 auto 4px;filter:drop-shadow(0 5px 7px #bf9c4130)}
.mx-you-ws h3{display:flex;align-items:center}
@media(max-width:700px){
  .mx-seal-link .mx-ico{width:30px;height:30px;margin-right:5px}
  .mx-yearcard-ico{width:52px;height:52px}
  .mx-ico--timing{width:40px;height:40px}
}
@media(max-width:700px){
  /* ウェイブスペル・カレンダーは、スマホでは1区切りを2行で見せる */
  .mx-table--ws thead{display:none}
  .mx-table--ws,.mx-table--ws tbody{display:block}
  .mx-table--ws tr{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px;padding:10px 2px;border-bottom:1px solid #eadcbc}
  .mx-table--ws th,.mx-table--ws td{display:block;padding:0;border:0;text-align:left}
  .mx-table--ws th{grid-column:1;grid-row:1}
  .mx-table--ws td.mx-nowrap{grid-column:2;grid-row:1;font-size:12px;color:#8a7560}
  .mx-table--ws td:last-child{grid-column:1/-1;grid-row:2;padding-left:36px;font-size:13px}
  .mx-panel .mx-table-wrap{margin:0 -4px}
}
