/* Crop only the outer white margin; preserve the printed border and content. */
.plan-card .plan-artwork{grid-area:art;display:block;width:100%;max-width:220px;justify-self:center;color:#736b5e;text-align:center;text-decoration:none;font-size:12px;line-height:1.5;position:relative;overflow:hidden;aspect-ratio:998 / 1435;border-radius:3px}
.plan-artwork img{display:block;position:absolute;width:105.712%;max-width:none;height:auto;left:-2.806%;top:-1.742%;border-radius:0;box-shadow:none}
.plan-artwork:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
.plan-list .plan-card{grid-template-columns:210px minmax(0,2fr) minmax(0,2fr) minmax(140px,1fr);grid-template-areas:'art name name name' 'art price services button';gap:18px 28px;padding:28px 32px;align-items:center}
.plan-card .plan-name{grid-area:name}
.plan-card .plan-price{grid-area:price}
.plan-card .plan-services{grid-area:services}
.plan-card .plan-button{grid-area:button;justify-self:stretch;width:100%;min-width:0;min-height:64px;gap:12px;padding:14px 12px}
.plan-card .plan-button br{display:block}
.plan-card .plan-price strong{font-size:54px}
.plan-card .plan-price>span:not(.price-prefix){font-size:23px}
.plan-card .plan-services{padding-left:18px}
.plan-card .plan-name>p{margin-top:8px}
@media(min-width:761px) and (max-width:1000px){
 .plan-list .plan-card{grid-template-columns:140px minmax(0,2fr) minmax(0,2fr) minmax(0,1fr);gap:16px 12px;padding:24px}
 .plan-card .plan-price strong{font-size:40px}
 .plan-card .plan-price>span:not(.price-prefix){font-size:18px}
}
@media(max-width:760px){
 .plan-card .plan-price strong{font-size:60px}
 .plan-card .plan-price>span:not(.price-prefix){font-size:24px}
 .plan-card .plan-services{padding-left:0}
 .plan-card .plan-button br{display:none}
 .plan-list .plan-card{grid-template-columns:minmax(0,1fr);grid-template-areas:'name' 'art' 'price' 'services' 'button';gap:22px;padding:26px 22px}
 .plan-card .plan-artwork{max-width:260px}
 .plan-card .plan-button{width:100%;min-width:0}
 .plan-card .plan-name h3{min-width:0}
}

/* Subtle paper depth, with movement only for precise hover pointers. */
.plan-card .plan-artwork{
 box-shadow:1px 2px 0 #d7d2c8,3px 4px 0 #e8e3d9,0 10px 22px -8px #352e2b36;
 transition:transform .35s ease,box-shadow .35s ease;
}
@media(hover:hover) and (pointer:fine){
 .plan-card .plan-artwork:hover{
  transform:perspective(900px) translateY(-5px) rotateY(-3deg) rotateX(1deg);
  box-shadow:2px 3px 0 #d7d2c8,4px 5px 0 #e8e3d9,4px 18px 28px -10px #352e2b45;
 }
}
@media(prefers-reduced-motion:reduce){
 .plan-card .plan-artwork{transition:none}
 .plan-card .plan-artwork:hover{transform:none}
}

/* Compact red arrow link, centered in the existing third column. */
.plan-card .plan-button,
.plan-card .plan-button:hover{
 display:inline-flex;justify-self:center;align-items:center;justify-content:center;
 width:auto;min-width:0;min-height:48px;padding:0;gap:12px;
 background:transparent;border:0;box-shadow:none;border-radius:24px;
 color:#d71920;font-size:15px;letter-spacing:.025em;white-space:nowrap;
 transform:none;text-decoration:none;
}
.plan-card .plan-arrow{
 display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;
 border-radius:50%;background:#d71920;color:#fff;
 box-shadow:0 3px 8px #d719201a;
 transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease;
}
.plan-card .plan-arrow .icon{width:22px;height:22px;transition:transform .25s ease}
.plan-card .plan-button:focus-visible{outline:3px solid #d71920;outline-offset:6px}
@media(hover:hover) and (pointer:fine){
 .plan-card .plan-button:hover .plan-arrow{transform:translateY(-3px);background:#b90f16;box-shadow:0 7px 14px #d7192030}
 .plan-card .plan-button:hover .plan-arrow .icon{transform:translateX(3px)}
}
@media(prefers-reduced-motion:reduce){
 .plan-card .plan-arrow,.plan-card .plan-arrow .icon{transition:none}
 .plan-card .plan-button:hover .plan-arrow,.plan-card .plan-button:hover .plan-arrow .icon{transform:none}
}

@media(min-width:761px) and (max-width:1000px){
 .plan-card .plan-button{flex-direction:column;font-size:14px;gap:8px}
}

/* Center the service group within its column while retaining readable list alignment. */
@media(min-width:761px){
 .plan-card .plan-services{align-items:flex-start;padding-left:34px;padding-right:18px}
 .plan-card.blue .plan-services { padding-left: clamp(36px, 5.5vw, 65px); }
 .plan-card.pink .plan-services,
 .plan-card.green .plan-services { padding-left: clamp(36px, 5.5vw, 60px); }
 .plan-card .plan-services ul{width:max-content;max-width:100%;text-align:left}
 .plan-card .plan-services .plan-footnote{text-align:left;max-width:100%}
}

/* Keep the link visible without a heavy shadow. */
.plan-card .plan-button,
.plan-card .plan-button:hover{color:#c96b6b}
.plan-card .plan-arrow{background:#c96b6b;box-shadow:none}
.plan-card .plan-button:focus-visible{outline-color:#c96b6b}
@media(hover:hover) and (pointer:fine){
 .plan-card .plan-button:hover .plan-arrow{background:#b65b5b;box-shadow:none}
}

/* Selected option E: a quiet text link whose underline strengthens on hover. */
.plan-card .plan-button,
.plan-card .plan-button:hover{
 display:inline-flex;justify-self:center;align-items:center;justify-content:center;
 width:max-content;min-width:0;min-height:0;padding:8px 2px;gap:0;
 color:#781b2b;background:transparent;border:0;border-bottom:2px solid #781b2b;
 border-radius:0;box-shadow:none;font-size:16px;letter-spacing:.025em;
 transform:none;text-decoration:none;white-space:nowrap;
}
.plan-card .plan-button .plan-arrow{display:none}
.plan-card .plan-button:hover{border-bottom-width:4px;color:#9f3a4a}
.plan-card .plan-button:focus-visible{outline:3px solid #781b2b;outline-offset:5px}
@media(max-width:760px){
 .plan-card .plan-button{width:max-content;min-width:0}
}

/* Selected option: small coral arrow circle with calm text. */
.plan-card .plan-button,
.plan-card .plan-button:hover{
 display:inline-flex;justify-self:center;align-items:center;justify-content:center;
 width:max-content;min-width:0;min-height:44px;padding:0;gap:10px;
 color:#51473f;background:transparent;border:0;border-radius:0;box-shadow:none;
 font-size:15px;font-weight:700;letter-spacing:.025em;transform:none;text-decoration:none;
}
.plan-card .plan-button .plan-arrow{
 display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;
 background:#d45b68;color:#fff;border-radius:50%;box-shadow:none;
 transition:transform .22s ease,background-color .22s ease;
}
.plan-card .plan-button .plan-arrow .icon{width:19px;height:19px}
.plan-card .plan-button:focus-visible{outline:2px solid #d45b68;outline-offset:5px}
@media(hover:hover) and (pointer:fine){
 .plan-card .plan-button:hover .plan-arrow{transform:none;background:#d45b68;box-shadow:none}
 .plan-card .plan-button:hover .plan-arrow .icon{transform:none}
}
@media(prefers-reduced-motion:reduce){.plan-card .plan-button .plan-arrow{transition:none}}

.plan-button > span:last-child { position: relative; }
.plan-button > span:last-child::after {
 content: "";
 position: absolute;
 inset: auto 0 -3px;
 height: 2px;
 background: #d45b68;
 transform: scaleX(0);
 transform-origin: left;
 transition: transform .25s ease;
}
.plan-button:is(:hover, :focus-visible) > span:last-child::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
 .plan-button > span:last-child::after { transition: none; }
}

#plans-title {
  font-family: "Yu Mincho", "YuMincho", "游明朝", "Hiragino Mincho ProN", serif;
  font-weight: 700;
}

#plans-title .plan-count {
  position: relative;
  aspect-ratio: 219 / 240;
  display: inline-block;
  width: auto;
  height: 1.35em;
  vertical-align: -.18em;
  mix-blend-mode: multiply;
  margin-inline: .06em;
}

#plans-title .plan-count img {
  display: block;
  width: 100%;
  height: 100%;
}

#plans-title .plan-count::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/tsunagari/assets/plan-count-three.png") center / contain no-repeat;
  filter: saturate(.58) brightness(1.22);
  mask-image: linear-gradient(135deg, transparent 10%, black 48%, transparent 85%);
  pointer-events: none;
}
