/* まいにちルーティン official page (special/mainichi-routine) */
:root {
  --mr-bg: #fff6ec;
  --mr-card: #ffffff;
  --mr-ink: #5b4a44;
  --mr-ink-soft: #a08d85;
  --mr-accent: #ff9eb5;
  --mr-accent-deep: #ef6f8f;
  --mr-blush: #ffe3ea;
  --mr-mint: #cfeedd;
  --mr-lavender: #e4dcf5;
  --mr-yozora: #2f3350;
  --mr-shadow: 0 6px 20px rgba(120, 80, 60, 0.1);
  --mr-radius: 22px;
  --mr-nav-w: 240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mr-bg);
  color: var(--mr-ink);
  font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mr-accent-deep); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
.u-is-sp { display: none; }
@media (max-width: 768px) {
  .u-is-pc { display: none; }
  .u-is-sp { display: block; }
}

/* dotted petals background */
.p-mr-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 158, 181, 0.16) 0 26px, transparent 27px),
    radial-gradient(circle at 78% 10%, rgba(255, 194, 111, 0.16) 0 20px, transparent 21px),
    radial-gradient(circle at 88% 62%, rgba(255, 158, 181, 0.14) 0 30px, transparent 31px),
    radial-gradient(circle at 20% 80%, rgba(207, 238, 221, 0.6) 0 24px, transparent 25px),
    radial-gradient(circle at 55% 45%, rgba(228, 220, 245, 0.7) 0 18px, transparent 19px),
    var(--mr-bg);
}

/* nav */
.p-mr-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--mr-nav-w); z-index: 20;
  padding: 32px 24px; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(10px);
  border-right: 1px solid rgba(91, 74, 68, 0.06);
  display: flex; flex-direction: column; gap: 24px;
}
.p-mr-nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--mr-ink); }
.p-mr-nav-logo img { width: 40px; height: 40px; border-radius: 12px; }
.p-mr-nav-list a {
  display: block; padding: 8px 12px; border-radius: 999px; color: var(--mr-ink);
  font-weight: 800; letter-spacing: 0.08em; font-size: 13px;
}
.p-mr-nav-list a:hover { background: var(--mr-blush); }
.p-mr-nav-store { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.p-mr-menu-btn { display: none; }
@media (max-width: 768px) {
  :root { --mr-nav-w: 0px; }
  .p-mr-nav {
    width: min(78vw, 320px); transform: translateX(-100%); transition: transform 0.25s ease;
    padding-top: 72px;
  }
  .p-mr-nav.is-open { transform: none; box-shadow: var(--mr-shadow); }
  .p-mr-menu-btn {
    display: flex; position: fixed; top: 14px; left: 14px; z-index: 30;
    width: 44px; height: 44px; border-radius: 14px; border: 0; background: #fff; box-shadow: var(--mr-shadow);
    align-items: center; justify-content: center; cursor: pointer;
  }
  .p-mr-menu-btn span { position: relative; width: 20px; height: 2px; background: var(--mr-ink); border-radius: 2px; }
  .p-mr-menu-btn span::before, .p-mr-menu-btn span::after {
    content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--mr-ink); border-radius: 2px;
  }
  .p-mr-menu-btn span::before { top: -6px; }
  .p-mr-menu-btn span::after { top: 6px; }
}

/* store badges */
.p-mr-store { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* Both badges render at the same height (like the official badge guidelines);
   Google Play uses a margin-trimmed copy so the black plates match. */
.p-mr-store-item { position: relative; display: flex; align-items: center; height: 44px; }
.p-mr-store-item img { height: 100%; width: auto; display: block; }
/* Stacked in the side nav: equal-size black plates, badge centered inside */
.p-mr-nav-store { align-items: stretch; }
.p-mr-nav-store .p-mr-store-item { width: 100%; height: 44px; justify-content: center; background: #000; border: 1px solid #a6a6a6; border-radius: 7px; box-sizing: border-box; }
.p-mr-nav-store .p-mr-store-item img { height: 100%; width: auto; }
.p-mr-nav-store .p-mr-store-item.is-text { width: 100%; }
.p-mr-store-item.is-soon { filter: grayscale(1); opacity: 0.55; pointer-events: none; }
.p-mr-store-item.is-soon::after {
  content: '準備中'; position: absolute; right: -6px; top: -10px;
  background: var(--mr-accent-deep); color: #fff; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; filter: none; opacity: 1;
}
.p-mr-store-note { font-size: 11px; color: var(--mr-ink-soft); line-height: 1.6; }

/* layout */
.p-mr-main { margin-left: var(--mr-nav-w); padding: 0 24px 80px; }
.p-mr-inner { max-width: 960px; margin: 0 auto; }
.p-mr-section { padding-top: 96px; }
.p-mr-section h2 {
  font-size: 13px; letter-spacing: 0.22em; color: var(--mr-accent-deep); font-weight: 800;
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.p-mr-section h2::after { content: ''; flex: 1; height: 2px; background: var(--mr-blush); border-radius: 2px; }
.p-mr-section h2 small { font-size: 12px; letter-spacing: 0.05em; color: var(--mr-ink-soft); font-weight: 700; }
@media (max-width: 768px) {
  .p-mr-main { padding: 0 18px 60px; }
  .p-mr-section { padding-top: 64px; }
}

/* hero */
.p-mr-hero { padding-top: 96px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.p-mr-hero-icon { width: 96px; height: 96px; border-radius: 28px; box-shadow: var(--mr-shadow); margin-bottom: 20px; }
.p-mr-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; line-height: 1.3; letter-spacing: 0.02em; }
.p-mr-hero-lead { margin-top: 12px; font-size: 17px; font-weight: 700; color: var(--mr-ink-soft); }
.p-mr-hero-tags { margin: 18px 0 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.p-mr-hero-tags li {
  background: #fff; border: 2px solid var(--mr-accent); color: var(--mr-accent-deep);
  border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 800;
}
.p-mr-hero-shot { justify-self: center; width: min(100%, 320px); border-radius: 28px; box-shadow: var(--mr-shadow); overflow: hidden; }
@media (max-width: 768px) {
  .p-mr-hero { grid-template-columns: 1fr; padding-top: 88px; text-align: center; }
  .p-mr-hero-icon { margin: 0 auto 16px; }
  .p-mr-hero-tags, .p-mr-store { justify-content: center; }
  .p-mr-hero-shot { width: min(100%, 260px); }
}

/* news */
.p-mr-news-cate { display: flex; gap: 8px; margin-bottom: 14px; }
.p-mr-news-cate button {
  border: 2px solid transparent; background: #fff; color: var(--mr-ink-soft); border-radius: 999px;
  padding: 4px 16px; font: inherit; font-weight: 800; font-size: 12px; letter-spacing: 0.1em; cursor: pointer;
}
.p-mr-news-cate button.is-active { border-color: var(--mr-accent); color: var(--mr-accent-deep); }
.p-mr-news-list { background: var(--mr-card); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow); padding: 8px 24px; }
.p-mr-news-item { display: grid; grid-template-columns: 96px 72px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--mr-blush); font-size: 14px; }
.p-mr-news-item:last-child { border-bottom: 0; }
.p-mr-news-item-date { color: var(--mr-ink-soft); font-weight: 700; font-size: 13px; }
.p-mr-news-item-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-align: center; border-radius: 999px; padding: 1px 0; }
.p-mr-news-item-tag.is-info { background: var(--mr-mint); color: #3f7a55; }
.p-mr-news-item-tag.is-update { background: var(--mr-lavender); color: #6a5a9a; }
.p-mr-news-empty { padding: 18px 0; color: var(--mr-ink-soft); font-size: 14px; }
@media (max-width: 768px) {
  .p-mr-news-item { grid-template-columns: 82px 64px 1fr; row-gap: 6px; }
  .p-mr-news-item-tag { justify-self: start; padding: 1px 10px; }
  .p-mr-news-item-text { grid-column: 1 / -1; }
}

/* about / text */
.p-mr-text { font-size: 15px; }
.p-mr-text + .p-mr-text { margin-top: 12px; }

/* feature cards */
.p-mr-feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-mr-feature-item { background: var(--mr-card); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow); padding: 22px 20px; }
.p-mr-feature-item-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--mr-blush); display: grid; place-items: center; font-size: 28px; margin-bottom: 12px; }
.p-mr-feature-item-icon.is-mint { background: var(--mr-mint); }
.p-mr-feature-item-icon.is-lavender { background: var(--mr-lavender); }
.p-mr-feature-item-icon.is-sun { background: #ffe8c9; }
.p-mr-feature-item h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.p-mr-feature-item p { font-size: 13.5px; color: var(--mr-ink-soft); }
@media (max-width: 768px) { .p-mr-feature-list { grid-template-columns: 1fr; } }

/* screens */
.p-mr-screens { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.p-mr-screens li { flex: 0 0 220px; scroll-snap-align: start; }
.p-mr-screens img { border-radius: 20px; box-shadow: var(--mr-shadow); }
.p-mr-screens-note { font-size: 12px; color: var(--mr-ink-soft); }

/* themes */
.p-mr-theme-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.p-mr-theme-item { background: var(--mr-card); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow); padding: 16px; text-align: center; }
.p-mr-theme-item-swatch { height: 64px; border-radius: 16px; margin-bottom: 10px; }
.p-mr-theme-item-swatch.is-sakura { background: linear-gradient(135deg, #fff6ec, #ffd3de); }
.p-mr-theme-item-swatch.is-himawari { background: linear-gradient(135deg, #fff9db, #ffd166); }
.p-mr-theme-item-swatch.is-mint { background: linear-gradient(135deg, #f1fbf5, #bfe8cf); }
.p-mr-theme-item-swatch.is-lavender { background: linear-gradient(135deg, #f6f2ff, #d5c8f0); }
.p-mr-theme-item-swatch.is-yozora { background: linear-gradient(135deg, #3a3f63, #1f2238); }
.p-mr-theme-item h3 { font-size: 15px; font-weight: 800; }
.p-mr-theme-item p { font-size: 12px; color: var(--mr-ink-soft); }
@media (max-width: 768px) { .p-mr-theme-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 769px) and (max-width: 1100px) { .p-mr-theme-list { grid-template-columns: repeat(3, 1fr); } }

/* privacy / links */
.p-mr-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.p-mr-pill {
  display: inline-block; background: #fff; border: 2px solid var(--mr-blush); color: var(--mr-ink);
  border-radius: 999px; padding: 8px 20px; font-weight: 800; font-size: 14px;
}
.p-mr-pill:hover { border-color: var(--mr-accent); }
.p-mr-pill.is-primary { background: var(--mr-accent); border-color: var(--mr-accent); color: #fff; }

/* download */
.p-mr-download { background: var(--mr-card); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow); padding: 28px 24px; text-align: center; }
.p-mr-download .p-mr-store { justify-content: center; margin: 14px 0; }
.p-mr-download-ano { font-size: 11px; color: var(--mr-ink-soft); line-height: 1.6; }

/* contact + footer */
.p-mr-contact-text { font-size: 15px; }
.p-mr-footer { margin-top: 80px; padding-top: 24px; border-top: 1px solid rgba(91, 74, 68, 0.08); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mr-ink-soft); }
.p-mr-footer a { color: var(--mr-ink-soft); }
.p-mr-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* English page: text badges until the official English store badges are added */
html[lang="en"] .p-mr-store-item.is-soon::after { content: 'Coming soon'; }
.p-mr-store-item.is-text {
  width: 150px; box-sizing: border-box; justify-content: center;
  background: #1d1d1f; color: #fff; border-radius: 10px; padding: 6px 14px;
  font-size: 14px; font-weight: 800; line-height: 1.15; white-space: nowrap;
}
.p-mr-store-item.is-text span { display: block; text-align: left; }
.p-mr-store-item.is-text small { display: block; font-size: 10px; font-weight: 700; opacity: 0.8; }
