:root{
  --bg:#0f1117;--panel:#171a22;--panel-soft:#1d2130;--text:#f4f6fb;
  --muted:#a7afbf;--line:#2a3040;--accent:#d8b46a;--accent-strong:#f0cf87;
  --danger:#b94949;--success:#4c9661;--shadow:0 18px 45px rgba(0,0,0,.28);--radius:18px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);background:radial-gradient(circle at top left,rgba(216,180,106,.08),transparent 34%),linear-gradient(180deg,#0d0f14,#11141b);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;line-height:1.7}a{color:inherit}img{max-width:100%;display:block}button,input,textarea,select{font:inherit}.wrap{width:min(1180px,calc(100% - 32px));margin:auto}
.hero-banner{overflow:hidden;background:#0d1b2d}.hero-banner a{display:block}.hero-banner-image{display:block;width:100%;height:auto;aspect-ratio:16/5;object-fit:contain}
.common-nav{padding:.75rem 0;border-bottom:1px solid rgba(127,127,127,.22);background:#fff}.common-nav-inner{display:flex;justify-content:center;align-items:center;gap:.6rem;flex-wrap:nowrap}.common-nav-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border:1px solid #cfd7e6;border-radius:10px;background:#f8fafc;color:#1f2937;font-weight:700;text-decoration:none;white-space:nowrap}.common-nav-button:hover,.common-nav-button.is-current{background:#eef4ff;border-color:#7aa7ff}
.site-main{padding-top:30px;padding-bottom:60px}.hero{position:relative;overflow:hidden;padding:38px;margin-bottom:24px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,rgba(216,180,106,.12),rgba(23,26,34,.96) 45%),var(--panel);box-shadow:var(--shadow)}.hero:after{content:"✦";position:absolute;right:34px;top:8px;color:rgba(240,207,135,.12);font-size:150px;line-height:1}.hero h1{position:relative;z-index:1;margin:0 0 12px;font-size:clamp(32px,5vw,58px);line-height:1.15}.hero>p{position:relative;z-index:1;max-width:820px;color:#d9dee7;font-size:1.04rem}.notice,.success{position:relative;z-index:1;padding:13px 15px;border-radius:12px}.notice{border:1px solid rgba(216,180,106,.35);background:rgba(216,180,106,.1);color:#f4dfb0}.success{border:1px solid rgba(76,150,97,.45);background:rgba(76,150,97,.12);color:#c9f0d3}
.card,.form-card{margin-bottom:24px;padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.card h1,.form-card h1{margin-top:0}.card h2,.form-card h2{margin-top:1.6em;color:#fff}.form-card{max-width:920px;margin-left:auto;margin-right:auto}.form-card form{display:grid;gap:6px}.form-card button{justify-self:start;margin-top:12px}
input,select,textarea{width:100%;padding:12px 14px;color:var(--text);background:#11151e;border:1px solid var(--line);border-radius:12px;outline:none}textarea{min-height:150px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(216,180,106,.12)}label{display:block;margin:14px 0 4px;font-weight:700}button,.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 17px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--accent),var(--accent-strong));color:#211b10;font-weight:800;text-decoration:none;cursor:pointer}button:hover,.btn:hover{filter:brightness(1.08)}.btn.secondary,button.secondary{background:#303747;color:#fff}.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px;margin-top:28px}.profile-card{position:relative;overflow:hidden;min-height:350px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow);transition:.22s}.profile-card:hover{transform:translateY(-5px);border-color:rgba(216,180,106,.55)}.profile-card>img,.profile-card>.no-image,.profile-card>div[style]{width:100%;height:280px!important;aspect-ratio:auto!important;object-fit:cover;background:linear-gradient(135deg,#1c202b,#151821)!important;color:#737d90}.profile-card .body{position:absolute;inset:auto 0 0;padding:56px 18px 18px;background:linear-gradient(to top,rgba(8,10,14,.98),rgba(8,10,14,.82) 62%,transparent)}.profile-card h2{margin:0 0 2px;font-size:22px}.profile-card h2 a{text-decoration:none}.profile-card p{margin:3px 0}.profile-card .body p:last-child{color:var(--accent-strong);font-weight:700}.tag{display:inline-flex;margin:3px 3px 3px 0;padding:3px 9px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(255,255,255,.05);color:#dbe0e8;font-size:12px}
blockquote{margin:16px 0;padding:18px 20px;border-left:4px solid var(--accent);border-radius:0 12px 12px 0;background:var(--panel-soft);color:#e3e7ee}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.gallery figure{margin:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel-soft)}.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}.gallery figcaption{padding:10px 12px;color:var(--muted);font-size:13px}
.admin-table{width:100%;border-collapse:collapse;background:var(--panel)}.admin-table th,.admin-table td{padding:11px;border:1px solid var(--line);text-align:left;vertical-align:top}.admin-table th{background:var(--panel-soft)}
.site-footer{margin-top:3rem;padding:2rem 0 1.4rem;border-top:1px solid rgba(127,127,127,.25);background:rgba(20,31,52,.97);color:#eef4ff}.footer-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr);gap:2rem;align-items:start}.footer-title{display:block;margin-bottom:.65rem;font-size:1.15rem}.footer-about p,.footer-notice p{margin:.35rem 0;line-height:1.75;opacity:.84}.footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem 1rem}.footer-links a{color:#fff;text-decoration:none}.footer-links a:hover{text-decoration:underline}.footer-notice{text-align:center;margin-top:1.5rem;padding:18px 0 0;border-top:1px solid rgba(255,255,255,.14)}.footer-notice p{margin:4px 0}.footer-small{font-size:.8rem;line-height:1.5;color:#b8b8b8}.footer-copyright{font-size:.85rem;color:#d6d6d6;font-weight:600}
@media(max-width:700px){.wrap{width:min(100% - 20px,1180px)}.common-nav-inner{gap:.4rem;overflow-x:auto;justify-content:flex-start;padding-bottom:.15rem}.common-nav-button{min-height:38px;padding:0 12px;font-size:.9rem;flex:0 0 auto}.site-main{padding-top:18px}.hero{padding:24px 18px}.hero:after{font-size:100px;right:10px}.card,.form-card{padding:18px}.grid{grid-template-columns:1fr 1fr;gap:10px}.profile-card{min-height:280px}.profile-card>img,.profile-card>div[style]{height:230px!important}.profile-card .body{padding:44px 12px 12px}.profile-card h2{font-size:17px}.footer-grid{grid-template-columns:1fr;gap:1.3rem}.footer-links{grid-template-columns:1fr 1fr}.admin-table{display:block;overflow-x:auto}}
@media(max-width:430px){.grid{grid-template-columns:1fr}.profile-card{min-height:330px}.profile-card>img,.profile-card>div[style]{height:280px!important}}

/* ヒカセンのメイン画像 */
.admin-image-card.is-main-image{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(216,180,106,.18),var(--shadow);
}
.profile-detail-card{
  display:grid;
  grid-template-columns:minmax(280px,46%) 1fr;
  margin:28px 0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.profile-main-visual{min-height:440px;background:var(--panel-soft)}
.profile-main-visual img{width:100%;height:100%;min-height:440px;object-fit:cover}
.profile-detail-body{padding:36px}
.profile-detail-body h1{margin-top:0;font-size:clamp(32px,5vw,56px);line-height:1.1}
@media(max-width:820px){
  .profile-detail-card{grid-template-columns:1fr}
  .profile-main-visual,.profile-main-visual img{min-height:300px;max-height:520px}
  .profile-detail-body{padding:24px}
}

/* ========================================
   ヒカセン詳細ページ リニューアル 2026-08
   ======================================== */
.profile-page{
  width:100%;
  min-width:0;
}
.profile-back{
  margin:4px 0 14px;
}
.profile-back a{
  color:var(--accent-strong);
  text-decoration:none;
  font-weight:700;
}
.profile-back a:hover{text-decoration:underline}

/* 既存定義を上書き。長文・長いURLでも横幅を押し広げない */
.profile-detail-card{
  display:grid;
  grid-template-columns:minmax(0,46%) minmax(0,1fr);
  align-items:stretch;
  width:100%;
  min-width:0;
  margin:0 0 24px;
  overflow:hidden;
}
.profile-detail-card > *{min-width:0}
.profile-main-visual{
  position:relative;
  min-width:0;
  min-height:540px;
  overflow:hidden;
  background:linear-gradient(135deg,#202635,#11151d);
}
.profile-main-visual img{
  width:100%;
  height:100%;
  min-height:540px;
  object-fit:cover;
  object-position:center;
}
.profile-main-visual.is-empty{display:grid;place-items:center}
.profile-main-placeholder{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  min-height:540px;
  color:#788295;
  font-size:1rem;
  letter-spacing:.16em;
}
.profile-detail-body{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:40px;
}
.profile-heading h1{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
  font-size:clamp(34px,5vw,58px);
  line-height:1.08;
  overflow-wrap:anywhere;
}
.verified-badge{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--accent);
  color:#211b10;
  font-size:16px;
  font-weight:900;
}
.profile-world{
  margin:14px 0 0;
  color:var(--muted);
  font-size:clamp(17px,2vw,21px);
  font-weight:500;
  overflow-wrap:anywhere;
}
.profile-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:24px;
  min-width:0;
}
.profile-tags .tag{
  margin:0;
  padding:5px 11px;
  font-size:13px;
}
.profile-summary{
  margin-top:26px;
  color:#e6e9ef;
  font-size:1.04rem;
  line-height:1.95;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.profile-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:26px;
  min-width:0;
}
.profile-link-button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
  min-height:48px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel-soft);
  color:#f3f5f8;
  text-decoration:none;
  font-weight:750;
}
.profile-link-button span:first-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-link-button:hover{
  border-color:rgba(216,180,106,.65);
  background:#242a39;
}
.profile-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
  padding-top:30px;
}
.support-form{margin:0}
.support-button,.profile-action-button{min-height:48px}
.support-button span{font-weight:700}

.profile-section-card{
  overflow:hidden;
}
.profile-section-card h2,
.owner-request-card h2{
  margin:.12rem 0 0;
  font-size:clamp(23px,3vw,30px);
}
.profile-section-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.profile-section-kicker{
  display:block;
  color:var(--accent-strong);
  font-size:.73rem;
  font-weight:900;
  letter-spacing:.13em;
}
.profile-count{
  flex:0 0 auto;
  padding:5px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:.82rem;
}
.profile-intro-list{
  display:grid;
  gap:12px;
}
.profile-intro{
  margin:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.profile-empty-state{
  padding:22px;
  border:1px dashed #343b4d;
  border-radius:14px;
  background:rgba(255,255,255,.025);
  text-align:center;
}
.profile-empty-state p{margin:.3rem 0}
.profile-section-action{margin:20px 0 0}

.profile-gallery{
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
}
.profile-gallery-item img{
  transition:transform .24s ease,filter .24s ease;
}
.profile-gallery-item:hover img{
  transform:scale(1.018);
  filter:brightness(1.05);
}
.main-image-label{
  display:inline-flex;
  margin-left:7px;
  padding:2px 7px;
  border:1px solid rgba(216,180,106,.42);
  border-radius:999px;
  color:var(--accent-strong);
  font-size:.72rem;
  font-weight:800;
}
.owner-request-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
}
.owner-request-card p{
  margin:.6rem 0 0;
  color:#d2d7e0;
}
.owner-request-card .btn{flex:0 0 auto}

@media(max-width:820px){
  .profile-detail-card{
    display:block;
    overflow:hidden;
  }
  .profile-main-visual,
  .profile-main-visual img,
  .profile-main-placeholder{
    width:100%;
    height:auto;
    min-height:0;
    max-height:none;
  }
  .profile-main-visual{
    aspect-ratio:4/3;
  }
  .profile-main-visual img{
    height:100%;
    aspect-ratio:4/3;
    object-fit:cover;
  }
  .profile-main-placeholder{height:100%}
  .profile-detail-body{
    display:block;
    width:100%;
    height:auto;
    min-width:0;
    padding:26px 22px 24px;
    overflow:visible;
  }
  .profile-heading h1{font-size:clamp(32px,9vw,46px)}
  .profile-tags{margin-top:20px}
  .profile-summary{
    margin-top:22px;
    font-size:1rem;
    line-height:1.9;
  }
  .profile-links{margin-top:22px}
  .profile-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding-top:24px;
  }
  .profile-actions .support-form{
    grid-column:1 / -1;
  }
  .profile-actions .support-button,
  .profile-action-button{
    width:100%;
  }
  .owner-request-card{
    display:block;
  }
  .owner-request-card .btn{
    margin-top:18px;
  }
}

@media(max-width:520px){
  .profile-back{margin-top:0}
  .profile-detail-card{
    margin-left:0;
    margin-right:0;
    border-radius:20px;
  }
  .profile-main-visual{aspect-ratio:1/1}
  .profile-main-visual img{aspect-ratio:1/1}
  .profile-detail-body{padding:24px 20px 22px}
  .profile-heading h1{font-size:34px}
  .verified-badge{width:25px;height:25px;font-size:14px}
  .profile-world{font-size:17px}
  .profile-tags{gap:4px}
  .profile-tags .tag{font-size:12px}
  .profile-summary{line-height:1.85}
  .profile-links{
    grid-template-columns:1fr;
  }
  .profile-actions{
    grid-template-columns:1fr;
  }
  .profile-actions .support-form{grid-column:auto}
  .profile-section-heading{gap:10px}
  .profile-gallery{grid-template-columns:1fr}
  .owner-request-card{padding:20px}
}


/* 一覧：メイン画像からプロフィール詳細へ（スマホの縦スワイプを維持） */
.profile-image-link{
  display:block;
  width:100%;
  text-decoration:none;
  touch-action:pan-y;
  -webkit-tap-highlight-color:rgba(216,180,106,.16);
}
.profile-image-link img,
.profile-image-link .no-image{
  display:block;
  width:100%;
  height:280px;
  object-fit:cover;
  background:linear-gradient(135deg,#1c202b,#151821);
  color:#737d90;
}
.profile-image-link .no-image{
  display:grid;
  place-items:center;
}
.profile-image-link:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:-3px;
}
.profile-card:hover .profile-image-link img{
  filter:brightness(1.04);
}
@media(max-width:700px){
  .profile-image-link img,
  .profile-image-link .no-image{
    height:230px;
  }
}
@media(max-width:430px){
  .profile-image-link img,
  .profile-image-link .no-image{
    height:280px;
  }
}
