/* AI HOUSE STUDIO Pinboard */

:root{
  --pin-red:#e60023;
  --pin-black:#111;
  --pin-text:#111;
  --pin-sub:#666;
  --pin-soft:#f1f1f1;
  --pin-line:#e9e9e9;
  --pin-shadow:0 12px 38px rgba(0,0,0,.09);
  --pin-radius:24px;
}

*{box-sizing:border-box}

body.aihs-pin-theme{
  margin:0;
  background:#fff;
  color:var(--pin-text);
  font-family:"Inter","Noto Sans JP",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  line-height:1.7;
}

.pin-container{

  margin:0 auto;
}

.pin-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--pin-line);
}

.pin-header__inner{
  min-height:72px;
  padding:10px 18px;
  display:flex;
  align-items:center;
  gap:14px;
}

.pin-logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  color:#111;
  text-decoration:none;
  font-weight:900;
}

.pin-logo__mark{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg,#111,var(--pin-red));
  font-weight:900;
}

.pin-logo__text{
  letter-spacing:.03em;
}

.pin-logo__image{
  display:block;
  width:auto;
  height:44px;
  max-width:220px;
  object-fit:contain;
}

.pin-logo .custom-logo{
  width:auto;
  height:44px;
  max-width:220px;
  object-fit:contain;
}


.pin-main-nav{
  display:flex;
  gap:6px;
  align-items:center;
}

.pin-main-nav a{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:0 16px;
  border-radius:999px;
  color:#111;
  text-decoration:none;
  font-weight:900;
  font-size:14px;
}

.pin-main-nav a.is-active{
  background:#111;
  color:#fff;
}

.pin-search{
  flex:1;
  min-width:180px;
  height:50px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#f1f1f1;
  border-radius:999px;
  padding:0 18px;
}

.pin-search span{
  color:#777;
  font-weight:900;
}

.pin-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-size:15px;
  font-weight:600;
}



.pin-login-btn{
  flex:0 0 auto;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  color:#111;
  background:#fff;
  border:1px solid #ddd;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  white-space:nowrap;
}

.pin-login-btn:hover{
  background:#f7f7f7;
}

.pin-like-list-btn{
  flex:0 0 auto;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  color:#111;
  background:#f1f1f1;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  white-space:nowrap;
}

.pin-create-btn{
  flex:0 0 auto;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  color:#fff;
  background:var(--pin-red);
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
}


.pin-hero-keyvisual{
  width:100%;
  background:#fff;
  padding:0;
  margin:0;
}

.pin-hero-keyvisual__link{
  display:block;
  width:100%;
  text-decoration:none;
  overflow:hidden;
}


.pin-hero-keyvisual picture{
  display:block;
  width:100%;
}

.pin-hero-keyvisual source{
  display:none;
}

.pin-hero-keyvisual img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:cover;
}



.pin-hero{
  padding:54px 0 26px;
  background:
    radial-gradient(circle at 8% 10%, rgba(230,0,35,.08), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(0,0,0,.07), transparent 26%),
    #fff;
}

.pin-hero__inner{
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:48px;
  align-items:center;
}

.pin-kicker{
  margin:0 0 12px;
  color:var(--pin-red);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.pin-hero h1{
  margin:0;
  font-size:clamp(44px,6vw,86px);
  line-height:1.02;
  letter-spacing:-.07em;
  font-weight:900;
}

.pin-hero h1 span{
  color:var(--pin-red);
}

.pin-lead{
  margin:22px 0 0;
  color:#444;
  font-size:17px;
  font-weight:600;
}

.pin-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}

.pin-btn{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
}

.pin-btn--primary{
  background:var(--pin-red);
  color:#fff;
}

.pin-btn--soft{
  background:#f1f1f1;
  color:#111;
}

.pin-hero-board{
  columns:3 160px;
  column-gap:14px;
}

.pin-hero-card{
  width:100%;
  display:inline-block;
  margin:0 0 14px;
  border-radius:24px;
  box-shadow:var(--pin-shadow);
  background:linear-gradient(135deg,var(--c1),var(--c2));
}

.pin-hero-card.h1{height:260px;--c1:#111;--c2:#777}
.pin-hero-card.h2{height:190px;--c1:#b99d80;--c2:#111}
.pin-hero-card.h3{height:330px;--c1:#eee;--c2:#8c745f}
.pin-hero-card.h4{height:230px;--c1:#2d2d2d;--c2:#e60023}
.pin-hero-card.h5{height:160px;--c1:#d7c4aa;--c2:#fff}
.pin-hero-card.h6{height:280px;--c1:#333;--c2:#8d8d8d}

.pin-filter{
  position:sticky;
  top:72px;
  z-index:900;
  background:#fff;
  border-top:1px solid transparent;
  border-bottom:1px solid var(--pin-line);
  padding:12px 0;
}

.pin-chip-row{
  display:flex;
  gap:10px;
  overflow:auto;
  scrollbar-width:none;
}

.pin-chip-row::-webkit-scrollbar{
  display:none;
}

.pin-chip-row button{
  border:0;
  border-radius:999px;
  min-height:42px;
  padding:0 18px;
  background:#f1f1f1;
  color:#111;
  font-weight:900;
  white-space:nowrap;
  cursor:pointer;
}

.pin-chip-row button.is-active{
  background:#111;
  color:#fff;
}

.pin-feed-section,
.pin-ai-section,
.pin-generated-section{
  padding:46px 0;
}

.pin-section-head{
  margin-bottom:22px;
}

.pin-section-head h2{
  margin:0;
  font-size:clamp(26px,3.2vw,42px);
  letter-spacing:-.045em;
}

.pin-section-head p,
.pin-section-head span{
  color:#666;
  margin:8px 0 0;
}

.pin-section-head--center{
  text-align:center;
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}

.pin-section-head--center p{
  color:var(--pin-red);
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
}

.pin-masonry{
  columns:5 190px;
  column-gap:16px;
}

.pin-card{
  display:inline-block;
  width:100%;
  break-inside:avoid;
  margin:0 0 18px;
}

.pin-card__image{
  position:relative;
  height:var(--h,240px);
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(135deg,var(--c1),var(--c2));
  box-shadow:0 8px 28px rgba(0,0,0,.08);
}

.pin-card--tall .pin-card__image{--h:330px}
.pin-card--mid .pin-card__image{--h:250px}
.pin-card--short .pin-card__image{--h:180px}

.pin-card__image button{
  position:absolute;
  right:12px;
  top:12px;
  border:0;
  border-radius:999px;
  background:var(--pin-red);
  color:#fff;
  padding:9px 14px;
  font-weight:900;
  opacity:0;
  transform:translateY(-6px);
  transition:.2s ease;
}

.pin-card:hover .pin-card__image button{
  opacity:1;
  transform:translateY(0);
}

.pin-card h3{
  margin:9px 4px 2px;
  font-size:15px;
}

.pin-card p{
  margin:0 4px;
  color:#666;
  font-size:13px;
}

.pin-grad-1{--c1:#111;--c2:#777}
.pin-grad-2{--c1:#b99d80;--c2:#111}
.pin-grad-3{--c1:#eee;--c2:#777}
.pin-grad-4{--c1:#2d2d2d;--c2:#c9b89f}
.pin-grad-5{--c1:#f4efe8;--c2:#93806c}
.pin-grad-6{--c1:#111;--c2:#e60023}
.pin-grad-7{--c1:#d7c4aa;--c2:#fff}
.pin-grad-8{--c1:#333;--c2:#8d8d8d}
.pin-grad-9{--c1:#444;--c2:#c8b596}
.pin-grad-10{--c1:#f8f8f8;--c2:#222}

.pin-ai-section{
  background:#f7f7f7;
}

.pin-ai-box,
.pin-generated-box,
.pin-placeholder,
.pin-content-card,
.pin-post-card{
  background:#fff;
  border:1px solid var(--pin-line);
  border-radius:28px;
  padding:22px;
  box-shadow:0 12px 42px rgba(0,0,0,.06);
}

.pin-placeholder{
  padding:38px;
  text-align:center;
  color:#666;
}

.pin-archive{
  padding:46px 0;
}

.pin-page-inner{
  max-width:920px;
}

.pin-post-masonry{
  columns:4 220px;
  column-gap:18px;
}

.pin-post-card{
  display:inline-block;
  width:100%;
  break-inside:avoid;
  margin-bottom:18px;
}

.pin-post-card a{
  color:inherit;
  text-decoration:none;
}

.pin-post-card img,
.pin-post-thumb img{
  width:100%;
  height:auto;
  border-radius:20px;
}

.pin-footer{
  padding:42px 0 88px;
  background:#111;
  color:#fff;
}

.pin-footer p{
  color:#bbb;
}

.pin-bottom-nav{
  display:none;
}

@media(max-width:980px){
  .pin-main-nav,
  
.pin-like-list-btn{
  flex:0 0 auto;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  color:#111;
  background:#f1f1f1;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  white-space:nowrap;
}

.pin-create-btn{
    display:none;
  }

  .pin-header__inner{
    min-height:64px;
    padding:8px 12px;
  }

  .pin-logo__text{
    display:none;
  }

  .pin-search{
    height:46px;
  }

  .pin-hero__inner{
    grid-template-columns:1fr;
  }

  .pin-hero-board{
    columns:3 120px;
  }
}

@media(max-width:620px){
  .pin-logo__image,
  .pin-logo .custom-logo{height:34px;max-width:150px;}

  .pin-container{

  }

  .pin-hero{
    padding:34px 0 26px;
  }

  .pin-hero h1{
    font-size:42px;
  }

  .pin-actions{
    display:grid;
  }

  .pin-btn{
    width:100%;
  }

  .pin-hero-board{
    columns:2 130px;
  }

  .pin-filter{
    top:64px;
  }

  .pin-masonry{
    columns:2 150px;
    column-gap:10px;
  }

  .pin-card{
    margin-bottom:14px;
  }

  .pin-card--tall .pin-card__image{--h:260px}
  .pin-card--mid .pin-card__image{--h:210px}
  .pin-card--short .pin-card__image{--h:150px}

  .pin-ai-box,
  .pin-generated-box{
    padding:12px;
    border-radius:20px;
  }

  .pin-footer{
    padding-bottom:92px;
  }

  .pin-bottom-nav{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:1001;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:4px;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    border:1px solid var(--pin-line);
    border-radius:24px;
    padding:8px;
    box-shadow:0 14px 44px rgba(0,0,0,.18);
  }

  .pin-bottom-nav a{
    display:grid;
    place-items:center;
    gap:2px;
    color:#111;
    text-decoration:none;
    font-size:10px;
    font-weight:900;
  }

  .pin-bottom-nav span{
    font-size:18px;
  }

  .pin-bottom-nav .is-main{
    background:var(--pin-red);
    color:#fff;
    border-radius:18px;
  }
}

/* v1.7.0: category chip bar removed */
.pin-filter{display:none!important;}


/* v1.8.0: keyvisual mobile no-crop fix */
.pin-hero-keyvisual{
  width:100%;
  max-width:100%;
  overflow:hidden;
  background:#fff;
}

.pin-hero-keyvisual__link{
  display:block;
  width:100%;
  max-width:100%;
  overflow:hidden;
}

.pin-hero-keyvisual img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
}

@media(max-width:620px){
  .pin-hero-keyvisual{
    padding:0;
    margin:0;
    overflow:visible;
  }

  .pin-hero-keyvisual__link{
    overflow:visible;
  }

  .pin-hero-keyvisual img{
    width:100%;
    max-width:100%;
    height:auto;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center top!important;
  }
}

@media(max-width:390px){
  .pin-hero-keyvisual img{
    width:100%;
    height:auto;
    min-height:0!important;
    object-fit:contain!important;
  }
}

/* v1.8.0 end */


/* v2.0.0: header hamburger menu with login and AI generation */
.pin-hamburger{
  display:none;
  width:46px;
  height:46px;
  border:1px solid #ddd;
  border-radius:999px;
  background:#fff;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  flex:0 0 auto;
  margin-left:auto;
}

.pin-hamburger span{
  display:block;
  width:18px;
  height:2px;
  background:#111;
  border-radius:999px;
}

.pin-mobile-menu{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
  background:rgba(0,0,0,.42);
  backdrop-filter:blur(5px);
}

.pin-mobile-menu__panel{
  position:absolute;
  top:12px;
  right:12px;
  width:min(360px, calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  overflow:auto;
  background:#fff;
  border:1px solid var(--pin-line);
  border-radius:28px;
  padding:18px;
  box-shadow:0 22px 70px rgba(0,0,0,.24);
}

.pin-mobile-menu__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.pin-mobile-menu__head strong{
  font-size:13px;
  letter-spacing:.16em;
  color:#777;
}

.pin-mobile-menu__close{
  width:40px;
  height:40px;
  border:1px solid #ddd;
  border-radius:999px;
  background:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.pin-mobile-menu__actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-bottom:16px;
}

.pin-mobile-menu__actions a{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
}

.pin-mobile-menu__login{
  color:#111;
  background:#fff;
  border:1px solid #111;
}

.pin-mobile-menu__generate{
  color:#fff;
  background:#111;
  border:1px solid #111;
}

.pin-mobile-menu__nav{
  display:grid;
  gap:8px;
}

.pin-mobile-menu__nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:48px;
  padding:0 14px;
  border-radius:16px;
  background:#f6f6f6;
  color:#111;
  text-decoration:none;
  font-weight:800;
}

.pin-mobile-menu__nav a::after{
  content:'→';
  color:#999;
}

body.pin-menu-open{
  overflow:hidden;
}

body.pin-menu-open .pin-mobile-menu{
  display:block;
}

@media(max-width:980px){
  .pin-main-nav,
  .pin-search,
  .pin-login-btn,
  .pin-like-list-btn,
  .pin-create-btn{
    display:none!important;
  }

  .pin-hamburger{
    display:flex!important;
  }

  .pin-header__inner{
    justify-content:space-between;
  }
}

@media(max-width:620px){
  .pin-header__inner{
    min-height:60px!important;
    padding:8px 12px!important;
  }

  .pin-hamburger{
    width:42px;
    height:42px;
  }

  .pin-mobile-menu__panel{
    left:10px;
    right:10px;
    top:10px;
    width:auto;
    border-radius:24px;
    padding:16px;
  }

  .pin-mobile-menu__actions a{
    min-height:50px;
    font-size:15px;
  }
}
