:root{--teal:#69c3c0;--teal-deep:#2eaaa5;--black:#1b1c1d;--page-bg:#f7f8f8;--footer-icon:#1f2022;--footer-muted:#6f7276}
*,*::before,*::after{box-sizing:border-box}
html{background:var(--page-bg);overflow-x:clip}
body{display:flex;flex-direction:column;min-height:100vh;min-height:100svh;margin:0;background:var(--page-bg);color:var(--black);font-family:"Noto Sans JP",sans-serif;line-height:1.9;overflow-wrap:break-word}
a{color:inherit;text-decoration:none}
.contact-wrapper{position:relative;isolation:isolate;flex:1 0 auto;width:100%;min-width:0;padding:clamp(115px,21vw,310px) 24px 70px;background:var(--page-bg)}
.contact-wrapper::before{content:"";position:absolute;top:0;left:0;z-index:0;width:100%;aspect-ratio:1743/360;background:url("images/ue.svg") center top/100% 100% no-repeat;pointer-events:none}
.contact-wrappernonaka{position:relative;z-index:1;width:100%;max-width:900px;margin:0 auto}
.contact-mobile-logo{display:none}
.contact-section-title{max-width:500px;margin:0 auto 30px;padding-bottom:15px;border-bottom:2px solid var(--teal);font-size:1.65rem;font-weight:700;letter-spacing:.08em;text-align:center}
.media-description{width:100%;max-width:800px;margin:0 auto;font-size:.98rem;line-height:2.1}
.media-description p{margin:0 0 26px}.media-description p:last-child{margin-bottom:0}
.stock-guide{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:34px auto 8px}
.stock{display:inline-block;width:max-content;max-width:100%;font-size:.79rem;font-weight:700;line-height:1.5;padding:5px 10px;border-radius:4px}
.stock--available{color:#247447;background:#e7f3eb}.stock--low{color:#91631c;background:#fff2d8}.stock--soldout{color:#b03e42;background:#fbe9ea}.stock--unknown{color:#60676b;background:#eceff0}
.stock-note{font-size:.77rem;color:#74797b;text-align:center;margin:0 0 34px}
.goods-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px}
.goods-card{min-width:0}.goods-image{aspect-ratio:1/1;background:#fff;border:1px solid #e6e9e9;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:3px}
.goods-image img{width:100%;height:100%;object-fit:contain;display:block}.goods-image--empty{color:#a2a8a9;font-size:.7rem;font-weight:600;letter-spacing:.1em;background:#eef0f0}
.goods-info{padding:12px 2px 0}.goods-name{margin:0;font-size:.93rem;line-height:1.65;font-weight:700;min-height:3.3em}.goods-price{margin:5px 0 10px;font-size:1.08rem;font-weight:700;letter-spacing:.02em}
.sales-section{margin-top:85px}.sales-section .media-description{max-width:800px}.sales-section .media-description p{margin-bottom:12px;font-size:.9rem}
.footer-decoration{flex:0 0 auto;width:100%;aspect-ratio:1743/360;background:url("images/sita.svg") center bottom/100% 100% no-repeat}
.site-footer{flex:0 0 auto;width:100%;padding:36px 20px 42px;background:var(--page-bg);text-align:center}
.footer-inner{width:100%;max-width:900px;margin:0 auto}.footer-sns{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:34px;margin-bottom:26px}
.footer-sns a{display:flex;align-items:center;justify-content:center;width:54px;height:54px;color:var(--footer-icon);transition:transform .2s,opacity .2s}.footer-sns a:hover{transform:translateY(-2px);opacity:.8}.footer-sns i{font-size:2.55rem;line-height:1}
.tanuki-image{display:block;width:44px;height:44px;object-fit:contain}.footer-copy{margin:0;color:var(--footer-muted);font-size:.95rem;letter-spacing:.04em}
.footer-sns a:focus-visible,.mobile-logo-link:focus-visible{outline:3px solid var(--teal-deep);outline-offset:4px}
@media(max-width:960px){.contact-wrapper{padding:clamp(105px,22vw,205px) 26px 60px}.contact-wrappernonaka{max-width:740px}}
@media(max-width:600px){.contact-wrapper{padding:110px 18px 48px}.contact-mobile-logo{display:block;position:absolute;top:0;left:0;z-index:2;width:130px;max-width:65vw;height:auto;padding:24px 18px 20px 12px;background:var(--page-bg)}.contact-section-title{margin-bottom:24px;font-size:1.25rem}.media-description{font-size:.89rem;line-height:1.95}.media-description p{margin-bottom:22px}.stock-guide{gap:6px;margin:26px 0 10px}.stock{font-size:.68rem;padding:4px 7px}.stock-note{font-size:.7rem;text-align:left;margin-bottom:25px}.goods-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 13px}.goods-info{padding-top:8px}.goods-name{font-size:.78rem}.goods-price{font-size:.95rem}.sales-section{margin-top:65px}.sales-section .media-description p{font-size:.83rem}.footer-decoration{aspect-ratio:1743/420}.site-footer{padding:28px 16px 34px}.footer-sns{gap:22px;margin-bottom:20px}.footer-sns a{width:46px;height:46px}.footer-sns i{font-size:2.1rem}.tanuki-image{width:38px;height:38px}.footer-copy{font-size:.82rem;line-height:1.7}}
@media(max-width:360px){.contact-wrapper{padding-right:14px;padding-left:14px}.footer-sns{gap:16px}}


/* ===== グッズカード：第68回三田祭デザイン ===== */
.goods-grid{
  counter-reset:goods;
  gap:28px 22px;
  margin-top:12px;
}
.goods-card{
  counter-increment:goods;
  position:relative;
  display:flex;
  flex-direction:column;
  padding:10px 10px 16px;
  border:1px solid #e1e9e8;
  border-radius:13px;
  background:#fff;
  box-shadow:4px 5px 0 #dcefed;
  transition:transform .22s ease,box-shadow .22s ease;
}
.goods-card:hover{
  transform:translateY(-4px);
  box-shadow:5px 9px 0 #dcefed;
}
.goods-card::before{
  content:"NO. " counter(goods,decimal-leading-zero);
  display:block;
  padding:1px 5px 9px;
  color:#2eaaa5;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.13em;
}
.goods-image{
  position:relative;
  aspect-ratio:1/1;
  border:0;
  border-radius:9px;
  background:#f3f7f6;
  padding:14px;
}
.goods-image img{
  object-fit:contain;
  transition:transform .25s ease;
}
.goods-card:hover .goods-image img{transform:scale(1.045)}
.goods-image--empty{background:#f1f3f4}
.goods-info{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:13px 5px 0;
}
.goods-name{font-size:.91rem;min-height:3.3em;line-height:1.65}
.goods-price{
  margin:5px 0 12px;
  color:#22292a;
  font-size:1.25rem;
  font-weight:900;
}
.goods-info .stock{
  margin-top:auto;
  align-self:flex-start;
  border-radius:30px;
  padding:6px 12px;
  font-size:.75rem;
}
@media(max-width:600px){
  .goods-grid{gap:19px 12px}
  .goods-card{padding:7px 7px 12px;border-radius:11px;box-shadow:3px 4px 0 #dcefed}
  .goods-card::before{font-size:.58rem;padding:1px 3px 6px}
  .goods-image{padding:8px;border-radius:7px}
  .goods-info{padding:10px 3px 0}
  .goods-name{font-size:.77rem}
  .goods-price{font-size:1.07rem;margin:5px 0 10px}
  .goods-info .stock{font-size:.65rem;padding:5px 8px}
}
@media(prefers-reduced-motion:reduce){
  .goods-card,.goods-image img{transition:none}
}

/* 商品番号を非表示 */
.goods-card::before{display:none!important;content:none!important;}

/* 消しゴムの画像だけ縮小（他の商品には影響しない） */
.goods-card--eraser .goods-image img {
  transform: scale(0.60);
}
.goods-card--eraser:hover .goods-image img {
  transform: scale(0.64);
}


/* 3Dシール（商品13）：上下が見切れないように少し小さく中央表示 */
.goods-grid > .goods-card:nth-child(13) .goods-image img {
  width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.goods-grid > .goods-card:nth-child(13):hover .goods-image img {
  transform: scale(1.02);
}

/* ===== PC：公式グッズ紹介文だけ中央揃え ===== */
@media (min-width: 601px) {
  #goods-heading + .media-description {
    text-align: center;
  }
}

/* ===== 共通サイトロゴのPC版位置調整（既存ページに合わせる） ===== */
@media (min-width:601px) {
  .contact-wrapper::after {
    content:""; display:block; position:absolute; top:0; left:0;
    width:250px; height:125px; background:#f7f8f8; z-index:1; pointer-events:none;
  }
  .contact-mobile-logo {
    display:block; position:absolute; top:30px; left:45px;
    width:190px; max-width:none; height:auto; padding:0;
    background:transparent; z-index:2;
  }
}
@media (min-width:961px) { .contact-wrapper {padding-top:clamp(210px,22vw,310px);} }
@media (min-width:601px) and (max-width:960px) { .contact-wrapper {padding-top:clamp(170px,23vw,220px);} }
@media (max-width:600px) {
  .contact-wrapper {padding-top:145px;}
  .contact-section-title {margin-bottom:28px;}
}
@media (max-width:360px) { .contact-wrapper {padding-top:130px;} }

/* ===== 在庫あり：左下 ／ 販売場所：右下 ===== */
.goods-bottom-row {
  display:flex; align-items:center; justify-content:space-between;
  gap:7px; width:100%; margin-top:auto;
}
.goods-bottom-row .stock {
  margin:0; flex-shrink:0; align-self:center; white-space:nowrap;
  font-size:.7rem; padding:5px 9px;
}
.goods-locations {
  display:flex; align-items:center; justify-content:flex-end;
  flex:0 1 auto; gap:4px; min-width:0;
}
.goods-locations .goods-location-icon {
  display:block; width:23px; height:23px; max-width:23px; max-height:23px;
  flex:0 0 23px; object-fit:contain; background:transparent;
  border:0; box-shadow:none; border-radius:0;
}
.goods-locations .goods-location-text {
  display:inline-block; max-width:100%; padding:4px 5px;
  color:#455c59; background:#e8f3f0; border-radius:5px;
  font-size:.58rem; font-weight:700; line-height:1.4; white-space:nowrap;
}
@media (max-width:600px) {
  .goods-bottom-row {gap:3px;}
  .goods-bottom-row .stock {font-size:.56rem; padding:4px 5px;}
  .goods-locations {gap:2px;}
  .goods-locations .goods-location-icon {
    width:16px; height:16px; max-width:16px; max-height:16px; flex-basis:16px;
  }
  .goods-locations .goods-location-text {font-size:.47rem; padding:3px 4px;}
}
@media (max-width:360px) {
  .goods-locations {gap:1px;}
  .goods-locations .goods-location-icon {
    width:13px; height:13px; max-width:13px; max-height:13px; flex-basis:13px;
  }
  .goods-bottom-row .stock {font-size:.52rem; padding:3px 4px;}
}
