.cm-page { --cm-blue: #215574; --cm-text: #626d6e; }
.cm-page main { color: var(--cm-text); }
.cm-page main h1, .cm-page main h2, .cm-page main h3 { color: var(--cm-blue); font-family: "Hiragino Maru Gothic ProN", "Yu Kyokasho", "Yu Gothic", sans-serif; font-weight: 600; }
.cm-page main h1, .cm-page .cm-hero-copy h2, .cm-page .cm-section-title { color: #0a3b62; }
.cm-page main p { font-size: 14px; line-height: 1.95; }
.cm-width { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.cm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cm-story-surface { background: #fdfcf8 url('assets/chirimon-renewal/watercolor-background.webp') center top / 100% 100% no-repeat; }
.cm-story-surface { position: relative; isolation: isolate; }
.cm-story-surface > section, .cm-story-surface > nav { position: relative; z-index: 1; }
.cm-swimming-background { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cm-swimmer { position: absolute; top: var(--depth); left: -120px; width: 100px; height: 70px; opacity: .24; animation: cm-swim-across var(--travel) linear infinite; animation-delay: var(--offset); }
.cm-swimmer > img { display: block; width: 100%; height: 100%; object-fit: contain; animation: cm-swim-bob 6s ease-in-out infinite; animation-delay: var(--offset); }
.cm-swimmer-reverse { animation-direction: reverse; --facing: -1; }
@keyframes cm-swim-across { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 240px)); } }
@keyframes cm-swim-bob { 0%,100% { transform: translateY(-10px) rotate(-7deg) scaleX(var(--facing, 1)); } 50% { transform: translateY(10px) rotate(7deg) scaleX(var(--facing, 1)); } }
.cm-section { padding-block: 34px; scroll-margin-top: 20px; }
.cm-section-title { display: flex; align-items: baseline; gap: 24px; margin: 0 0 20px; font-size: 25px; line-height: 1.6; }
.cm-section-title > span { font-size: 23px; font-weight: 400; }
.cm-hero-inner { position: relative; min-height: 540px; display: grid; grid-template-columns: 49% 51%; padding-block: 12px 24px; }
.cm-hero-copy { position: relative; z-index: 2; }
.cm-hero-copy h1 { margin: 0 0 4px; }
.cm-hero-copy .cm-image-title { margin: 12px 0 22px; }
.cm-image-title > img { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 1366 / 768; object-fit: contain; transform: rotate(-4deg) scale(.94); transform-origin: center; }
.cm-colorful-title { min-height: 190px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cm-title-letters { display: flex; width: fit-content; font-size: 52px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
.cm-title-letters > span:nth-child(1) { color: #145d85; }
.cm-title-letters > span:nth-child(2) { color: #a13e40; }
.cm-title-letters > span:nth-child(3) { color: #34725d; }
.cm-title-letters > span:nth-child(4) { color: #94681d; }
.cm-title-letters > span:nth-child(5) { color: #6f5380; }
.cm-title-letters > span:nth-child(6) { color: #247078; }
.cm-title-letters > span:nth-child(7) { color: #aa4936; }
.cm-title-letters > span:nth-child(8) { color: #527237; }
.cm-title-letters > span:nth-child(9) { color: #355d89; }
.cm-title-english { font-size: 13px; line-height: 1.5; color: #0a3b62; letter-spacing: 0; }
.cm-hero-copy h2 { margin: 0 0 22px; font-size: 31px; line-height: 1.7; }
.cm-hero-copy > p { margin: 0; font-size: 15px; line-height: 1.9; }
.art-slice { display: block; position: relative; overflow: hidden; aspect-ratio: var(--crop-ratio); }
.art-slice > img { position: absolute; display: block; max-width: none; width: var(--sprite-width); height: auto; left: var(--sprite-left); top: var(--sprite-top); }
.art-brand { --crop-ratio: 560 / 215; --sprite-width: 243.9286%; --sprite-left: -7.1429%; --sprite-top: -20.9302%; width: min(480px, 100%); margin-bottom: 18px; }
.art-child { --crop-ratio: 1; }
.art-child > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-pile { aspect-ratio: 1; }
.art-pile > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-drawing { --crop-ratio: 440 / 220; }
.art-drawing > img { left: 25%; top: -50%; width: 50%; height: 200%; object-fit: contain; transform: rotate(90deg); }
.art-tools { --crop-ratio: 480 / 310; width: min(460px, 100%); margin: auto; }
.art-tools > img { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cm-hero-pictures { position: relative; min-width: 0; }
.cm-found-photo { position: absolute; z-index: 2; right: 5px; top: 70px; width: 300px; margin: 0; transform: rotate(5deg); border: 10px solid #fff; box-shadow: 0 3px 8px #26475a1a; }
.cm-found-photo figcaption { position: absolute; z-index: 1; right: 12px; top: -42px; padding: 8px 18px; color: #36434b; background: #f4e9ca; font-size: 18px; line-height: 1.6; font-weight: 600; transform: rotate(-10deg); }
.cm-pile { position: absolute; width: 320px; top: 145px; left: -20px; }
.cm-pile > p { margin: 0 0 0 65px; color: var(--cm-blue); transform: rotate(-10deg); font-size: 14px; font-weight: 600; }
.cm-pile .art-pile { clip-path: ellipse(49% 49%); }
.cm-page-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding-block: 12px; border-block: 1px solid #b9d4df75; }
.cm-page-nav a { color: var(--cm-blue); text-decoration: none; font-size: 13px; padding-block: 5px; }
.cm-page-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cm-about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 65px; align-items: center; }
.cm-about p { margin: 0 0 12px; }
.cm-drawing { position: relative; margin: 0 20px 0 0; transform: rotate(-3deg); }
.cm-drawing .art-drawing { border: 7px solid #fff; }
.cm-drawing figcaption { position: absolute; right: -28px; bottom: -16px; padding: 22px 24px; border-radius: 48% 52% 46% 54%; color: var(--cm-blue); background: #d7eff8ed; font-size: 15px; line-height: 1.7; text-align: center; font-weight: 600; }
.cm-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.cm-tools .cm-section-title { margin-bottom: 4px; }
.cm-tool-list { border: 2px solid #9ecde3; padding: 24px 30px; }
.cm-tool-list h3 { font-size: 22px; margin: 0 0 18px; text-align: center; }
.cm-tool-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.cm-tool-list li { display: flex; align-items: flex-start; gap: 16px; color: var(--cm-blue); font-size: 21px; line-height: 1.6; }
.cm-tool-list svg { width: 30px; height: 30px; flex-shrink: 0; stroke-width: 1.3; margin-top: 4px; }
.cm-howto { padding-top: 45px; }
.cm-howto-heading { display: flex; align-items: baseline; gap: 40px; }
.cm-howto-heading > p { color: var(--cm-blue); font-size: 25px; margin: 0; font-weight: 600; }
.cm-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin: 8px 0 0; padding: 0; list-style: none; }
.cm-step-photo { width: 150px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 15px; overflow: hidden; border-radius: 50%; }
.cm-step-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.cm-step-photo .art-pile { height: 100%; width: 100%; }
.cm-book-symbol { display: grid; place-items: center; background: #e8f2f5; color: #4d7b92; }
.cm-book-symbol svg { width: 86px; height: 86px; stroke-width: 1.2; }
.cm-steps h3 { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-size: 16px; margin: 0 0 6px; white-space: normal; }
.cm-steps h3 span { font-size: 14px; font-weight: 400; }
.cm-steps p { color: #5a7c91; font-size: 12px !important; margin: 0; text-align: center; }
.cm-gallery-heading { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: baseline; }
.cm-gallery-heading h3 { margin: 0 0 5px; font-size: 23px; }
.cm-gallery-heading p { font-size: 12px !important; margin: 0; }
.cm-gallery-heading > a { display: inline-flex; align-items: center; gap: 5px; color: var(--cm-blue); font-size: 12px; white-space: nowrap; }
.cm-gallery-heading svg { width: 14px; height: 14px; }
.cm-specimens { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.cm-specimens figure { margin: 0; min-width: 0; text-align: center; }
.specimen-photo { position: relative; display: block; aspect-ratio: 1.35; overflow: hidden; background: #ecf1f1; }
.specimen-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.specimen-photo > svg { position: absolute; right: 6px; bottom: 6px; padding: 4px; width: 25px; height: 25px; background: #ffffffe0; color: var(--cm-blue); }
.cm-specimens figcaption { color: var(--cm-blue); font-size: 13px; font-weight: 600; margin-top: 8px; overflow-wrap: anywhere; }
.cm-rarity { color: var(--cm-blue); font-size: 12px !important; margin: 10px 0 0; }
.cm-rarity span { display: block; font-size: 17px; line-height: 1.6; }
.cm-fine-note { font-size: 11px !important; margin: 20px 0 0; color: #617987; }
.cm-sea { display: grid; grid-template-columns: 190px 1fr; gap: 34px; padding-top: 38px; padding-bottom: 120px; min-height: 400px; }
.cm-sea h3 { font-size: 26px; line-height: 1.8; margin: 0 0 14px; }
.cm-sea p { max-width: 650px; margin: 0 0 12px; color: #4f646a; }
.cm-sea > div { background: linear-gradient(90deg, #ffffffdd, #ffffffa8 70%, #ffffff00); padding: 12px 20px; }
.cm-resources { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cm-resources h2 { font-size: 21px; margin: 0 0 8px; }
.cm-resources p { margin: 0; }
.cm-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 22px; background: #235c7d; color: #fff; font-size: 14px; text-decoration: none; white-space: nowrap; }
.cm-button svg { width: 18px; height: 18px; }
.cm-shop-band { background: #f2f7f8; border-block: 1px solid #d4e5ec; }
.cm-shop-title { font-size: 26px; margin: 0 0 28px; line-height: 1.8; }
.cm-product { display: grid; grid-template-columns: 40% 1fr; gap: 50px; align-items: center; max-width: 1000px; margin: auto; }
.cm-product > img { display: block; width: 100%; height: 290px; object-fit: contain; }
.cm-product h3 { font-size: 21px; margin: 0 0 12px; }
.cm-product .detail-price { margin: 18px 0; }
.cm-product .add-cart-button { background: #235c7d; }
.cm-product .cm-encounter-note { margin: 0; color: #b02a22; font-size: 13px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.cm-shop-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #cadce5; }
.cm-shop-notes strong { color: #b02a22; }
.cm-shop-notes p { font-size: 13px !important; margin: 0 0 12px; }
.cm-shop-notes h3 { margin: 0 0 10px; font-size: 17px; }
.cm-shop-notes a { color: var(--cm-blue); display: inline-flex; gap: 16px; align-items: center; margin: 4px 20px 4px 0; font-size: 13px; }
.cm-shop-notes svg { width: 16px; height: 16px; }
.specimen-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.specimen-dialog-heading h2 { font-size: 22px; margin: 0; }
.specimen-dialog-heading button, .specimen-dialog-footer button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--cm-blue); }
#specimen-large { display: block; width: 100%; height: min(65svh,650px); object-fit: contain; background: #f2f5f5; margin-top: 14px; }
.specimen-dialog-footer { display: flex; gap: 24px; align-items: center; justify-content: center; margin-top: 12px; }
.cm-hero-copy .art-brand { mix-blend-mode: normal; }
@media (max-width: 1000px) {
  .cm-title-letters { font-size: 34px; }
  .cm-width { width: calc(100% - 48px); }
  .cm-hero-copy h2 { font-size: 26px; }
  .cm-hero-copy > p { font-size: 13px; }
  .cm-hero-inner { min-height: 520px; }
  .cm-found-photo { width: 235px; top: 74px; }
  .cm-pile { width: 270px; top: 175px; left: -20px; }
  .cm-about, .cm-tools { gap: 36px; }
  .cm-tool-list { padding: 20px; }
  .cm-tool-list h3 { font-size: 18px; }
  .cm-tool-list li { font-size: 18px; }
  .cm-steps { gap: 15px; }
  .cm-steps h3 { font-size: 14px; }
  .cm-gallery-heading { grid-template-columns: auto 1fr; }
  .cm-gallery-heading > a { grid-column: 2; justify-self: end; }
  .cm-specimens { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
}
@media (max-width: 700px) {
  .cm-swimmer { width: 72px; height: 52px; opacity: .18; }
  .cm-swimmer:nth-child(n+7) { display: none; }
  .cm-colorful-title { min-height: 125px; align-items: center; gap: 10px; }
  .cm-title-letters { font-size: 29px; }
  .cm-title-english { font-size: 11px; }
  .cm-width { width: calc(100% - 36px); }
  .cm-section { padding-block: 25px; }
  .cm-story-surface { background-image: linear-gradient(#ffffffe0, #ffffffd9), url('assets/chirimon-renewal/watercolor-background.webp'); background-size: auto 100%; }
  .cm-hero-inner { display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 5px; min-height: 0; }
  .art-brand { width: 275px; max-width: 100%; margin: auto; }
  .cm-hero-copy h2 { font-size: 23px; margin: 4px 0 15px; text-align: center; }
  .cm-hero-copy > p { font-size: 13px; line-height: 1.9; margin: auto; width: fit-content; }
  .cm-hero-pictures { width: 100%; height: 330px; margin-top: 15px; }
  .cm-found-photo { width: 190px; right: 7px; top: 38px; border-width: 7px; }
  .cm-found-photo figcaption { font-size: 13px; top: -30px; padding: 5px 10px; }
  .cm-pile { width: 210px; left: -5px; top: 68px; }
  .cm-pile > p { font-size: 11px; margin-left: 25px; }
  .cm-page-nav { gap: 6px 20px; padding-block: 8px; }
  .cm-page-nav a { font-size: 12px; }
  .cm-section-title { font-size: 22px; gap: 17px; margin-bottom: 15px; }
  .cm-section-title > span { font-size: 20px; }
  .cm-about, .cm-tools { grid-template-columns: 1fr; gap: 24px; }
  .cm-about p { font-size: 13px !important; }
  .cm-desktop-break { display: none; }
  .cm-drawing { width: calc(100% - 28px); margin: 4px 20px 5px 0; }
  .cm-drawing figcaption { font-size: 12px; padding: 16px 18px; right: -28px; }
  .cm-tools .art-tools { max-width: 330px; }
  .cm-tool-list { padding: 22px 20px; }
  .cm-tool-list h3 { font-size: 18px; }
  .cm-tool-list li { font-size: 18px; gap: 14px; }
  .cm-howto-heading { display: block; }
  .cm-howto-heading > p { font-size: 20px; margin-bottom: 24px; }
  .cm-steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 16px; }
  .cm-step-photo { width: 130px; margin-bottom: 12px; }
  .cm-steps li:last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
  .cm-steps h3 { font-size: 14px; }
  .cm-steps p { font-size: 11px !important; }
  .cm-gallery-heading { display: flex; flex-wrap: wrap; gap: 10px; }
  .cm-gallery-heading h2 { width: 100%; margin-bottom: 0; }
  .cm-gallery-heading h3 { font-size: 21px; line-height: 1.7; }
  .cm-gallery-heading > a { margin-left: auto; }
  .cm-specimens { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 16px; }
  .cm-specimens figcaption { font-size: 12px; }
  .cm-sea { grid-template-columns: 1fr; gap: 0; padding-bottom: 100px; }
  .cm-sea h3 { font-size: 25px; }
  .cm-sea p { font-size: 13px !important; }
  .cm-resources { display: block; }
  .cm-resources h2 { font-size: 20px; line-height: 1.8; }
  .cm-resources p { font-size: 13px !important; }
  .cm-button { margin-top: 20px; }
  .cm-shop-title { font-size: 23px; }
  .cm-product { grid-template-columns: 1fr; gap: 20px; }
  .cm-product > img { height: 230px; }
  .cm-product h3 { font-size: 20px; }
  .cm-product p { font-size: 13px !important; }
  .cm-shop-notes { grid-template-columns: 1fr; gap: 22px; margin-top: 25px; }
}
@media (max-width: 360px) {
  .cm-found-photo { width: 165px; right: 0; }
  .cm-pile { width: 175px; top: 105px; }
  .cm-pile > p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-swimming-background { display: none; }
  .cm-swimmer, .cm-swimmer > img { animation: none; }
  .cm-page *, .cm-page *::before, .cm-page *::after { scroll-behavior: auto !important; }
}
