:root{
  --bg:#fff8ef;
  --paper:#fffdf9;
  --ink:#231f20;
  --muted:#6f6264;
  --accent:#f23879;
  --accent-soft:#ffe0ea;
  --blue:#4d90aa;
  --blue-soft:#dceff7;
  --line:#efcad7;
  --shadow:0 16px 40px rgba(52,39,49,.10);
  --yellow:#fff7b8;
  --orange:#ff9d22;
  --pink:#f23879;
  --sky:#b9d9e8;
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(185,217,232,.42) 0 120px, transparent 121px),
    radial-gradient(circle at 93% 16%, rgba(242,56,121,.09) 0 180px, transparent 181px),
    var(--bg);
  font-family:Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.6;
}
a{color:inherit}
img{max-width:100%;display:block}
.site-header{
  width:min(1180px,calc(100% - 36px));
  margin:18px auto 0;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:rgba(255,253,249,.94);
  border:1px solid var(--line);
  border-radius:22px;
  position:sticky;
  top:12px;
  z-index:20;
  backdrop-filter:blur(12px);
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}

.brand-logo{
  width:58px;
  height:58px;
  object-fit:contain;
  flex:0 0 auto;
  display:block;
}
.brand-mark{
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--yellow);color:var(--accent);
  font-weight:900;font-size:1.35rem;border:1px solid #f1c6d5;
}
.brand strong{display:block;font-size:1.05rem;line-height:1.1}
.brand small{display:block;color:var(--muted);font-size:.75rem;margin-top:3px}
nav{display:flex;gap:18px;align-items:center}
nav a{text-decoration:none;font-weight:700;font-size:.92rem}
.instagram-link{color:var(--blue)}
main{width:min(1180px,calc(100% - 36px));margin:0 auto}
.hero{
  min-height:680px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:52px;
  align-items:center;
  padding:64px 0 40px;
}
.eyebrow{
  margin:0 0 12px;
  font-size:.78rem;
  letter-spacing:.16em;
  font-weight:900;
  color:var(--blue);
}
h1,h2,h3{line-height:1.08;margin:0}
h1{font-size:clamp(3rem,6vw,5.8rem);letter-spacing:-.05em}
h1 span{color:var(--accent)}
.hero-lead{font-size:1.15rem;max-width:640px;margin:24px 0 4px;color:#66585c}
.jp-note{margin:0 0 28px;color:var(--muted)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.button{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:0 19px;border-radius:14px;
  text-decoration:none;font-weight:800;border:1px solid transparent;
}
.button.primary{background:var(--accent);color:white}
.button.primary:hover{background:#d92c69}
.button.secondary{background:var(--paper);border-color:var(--line)}
.usage-note{font-size:.78rem;color:var(--muted);margin-top:16px}
.hero-art{
  padding:18px;background:linear-gradient(145deg,var(--sky),#eef8fb 58%,var(--yellow));
  border:1px solid var(--line);border-radius:36px;box-shadow:var(--shadow);
  transform:rotate(1deg);
}
.hero-art img{
  border-radius:24px;
  width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:top center;
}
.intro-strip{
  display:grid;grid-template-columns:repeat(3,1fr);
  background:var(--accent);color:white;border-radius:24px;
  overflow:hidden;margin:18px 0 74px;
}
.intro-strip div{padding:24px 28px;border-right:1px solid rgba(255,255,255,.12)}
.intro-strip div:last-child{border-right:0}
.intro-strip strong{display:block;font-size:1.8rem;line-height:1}
.intro-strip span{font-size:.86rem;color:#3f5963}
.gallery-section{padding:0 0 80px}
.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:22px}
.section-heading h2,.about h2{font-size:clamp(2.2rem,4vw,4rem);letter-spacing:-.04em}
.section-heading p{color:var(--muted);margin:12px 0 0}
.search-wrap{min-width:280px}
.search-wrap label{display:block;font-size:.75rem;font-weight:800;margin:0 0 6px;color:var(--muted)}
.search-wrap input{
  width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--line);
  background:var(--paper);font:inherit;color:var(--ink);outline:none;
}
.search-wrap input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,113,131,.12)}
.filters{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 8px}
.filter-btn{
  border:1px solid var(--line);background:var(--paper);color:var(--ink);
  border-radius:999px;padding:9px 13px;font-weight:800;cursor:pointer;
}
.filter-btn.active{background:var(--accent);border-color:var(--accent);color:white}
.result-count{margin:10px 0 18px;color:var(--muted);font-size:.85rem}
.gallery-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;
}
.card{
  background:var(--paper);border:1px solid var(--line);border-radius:22px;overflow:hidden;
  box-shadow:0 8px 24px rgba(87,55,34,.06);
  display:flex;flex-direction:column;
}
.card-image{
  aspect-ratio:3 / 4;
  background:#fffdf7;
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:12px 12px 0;
}
.card-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:top center;
}
.badge{
  position:absolute;
  left:10px;
  bottom:10px;
  top:auto;
  background:rgba(255,247,184,.96);
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 9px;
  font-size:.67rem;
  font-weight:900;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.card-body{padding:15px 15px 16px;display:flex;flex-direction:column;gap:12px;flex:1}
.card h3{font-size:1.02rem;letter-spacing:-.01em}
.card-actions{display:flex;gap:8px;margin-top:auto}
.card-actions button,.card-actions a{
  flex:1;min-height:40px;border-radius:12px;font:inherit;font-size:.82rem;font-weight:800;
  display:flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;
}
.preview-btn{background:var(--blue-soft);border:1px solid #b7dce9;color:#2e7089}
.pdf-btn{background:var(--yellow);border:1px solid #f1d86c;color:#7a4b00}
.about{
  display:grid;grid-template-columns:1fr 1fr;gap:60px;
  padding:60px;border:1px solid var(--line);border-radius:32px;background:var(--paper);
  margin-bottom:70px;
}
.about p{margin-top:0;color:#66585c}
footer{
  width:min(1180px,calc(100% - 36px));margin:0 auto 30px;
  display:flex;justify-content:space-between;gap:20px;
  color:var(--muted);font-size:.84rem;
}
footer a{font-weight:800;color:var(--blue)}
.preview-dialog{
  width:min(980px,calc(100% - 24px));border:0;padding:0;border-radius:26px;
  box-shadow:0 30px 100px rgba(0,0,0,.28);overflow:hidden;
}
.preview-dialog::backdrop{background:rgba(35,31,32,.62);backdrop-filter:blur(5px)}
.dialog-close{
  position:absolute;right:12px;top:10px;z-index:2;width:40px;height:40px;border:0;
  border-radius:50%;background:var(--paper);box-shadow:0 4px 14px rgba(0,0,0,.12);font-size:1.6rem;cursor:pointer;
}
.dialog-body{display:grid;grid-template-columns:1.2fr .8fr;background:white}
.dialog-image-wrap{background:#f5fbfd;min-height:580px;display:grid;place-items:center;padding:20px}
.dialog-image-wrap img{max-height:70vh;width:auto;object-fit:contain;border-radius:10px}
.dialog-copy{padding:46px 34px;display:flex;flex-direction:column;justify-content:center}
.dialog-copy h3{font-size:2rem;margin-bottom:14px}
.dialog-copy p:not(.eyebrow){color:var(--muted)}
.empty{
  grid-column:1/-1;padding:50px;text-align:center;background:var(--paper);border:1px dashed var(--line);border-radius:20px;color:var(--muted)
}
@media (max-width:980px){
  .gallery-grid{grid-template-columns:repeat(3,1fr)}
  .hero{grid-template-columns:1fr;gap:30px;padding-top:44px}
  .hero-art{max-width:620px;margin:auto}
  .about{grid-template-columns:1fr;gap:22px;padding:38px}
}
@media (max-width:720px){

  .brand-logo{
    width:50px;
    height:50px;
  }
  .site-header{top:8px}
  nav a:not(.instagram-link){display:none}
  .hero{min-height:auto}
  h1{font-size:clamp(2.8rem,15vw,4.3rem)}
  .hero-actions{flex-direction:column;align-items:stretch}
  .intro-strip{grid-template-columns:1fr;margin-bottom:54px}
  .intro-strip div{border-right:0;border-bottom:1px solid rgba(255,255,255,.12)}
  .section-heading{display:block}
  .search-wrap{margin-top:20px;min-width:0}
  .gallery-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .card-body{padding:12px}
  .card-actions{flex-direction:column}
  .dialog-body{grid-template-columns:1fr}
  .dialog-image-wrap{min-height:0}
  .dialog-copy{padding:28px 22px}
  .about{padding:28px 22px}
  footer{display:block}
}
@media (max-width:460px){
  main,.site-header,footer{width:min(100% - 20px,1180px)}
  .gallery-grid{grid-template-columns:1fr}
}
/* ------------------------------
   Terms of Use page
------------------------------ */
.footer-links{display:flex;gap:18px;align-items:center}
.terms-main{max-width:920px}
.terms-hero{padding:80px 0 34px}
.terms-hero h1{font-size:clamp(3rem,6vw,5.4rem);letter-spacing:-.05em}
.terms-lead{font-size:1.12rem;color:#66585c;margin:22px 0 6px;max-width:720px}
.terms-card{background:var(--paper);border:1px solid var(--line);border-radius:30px;padding:46px 52px;box-shadow:var(--shadow);margin-bottom:26px}
.terms-section{padding:0 0 30px;margin:0 0 30px;border-bottom:1px solid var(--line)}
.terms-section:last-of-type{border-bottom:0;margin-bottom:12px}
.terms-section h2{font-size:1.35rem;letter-spacing:-.02em;margin-bottom:12px}
.terms-section p{margin:0 0 10px;color:#66585c}
.terms-section ul{margin:8px 0 14px;padding-left:1.4em;color:#66585c}
.terms-section li{margin:7px 0}
.terms-jp{color:var(--muted)!important;font-size:.94rem}
.terms-updated{padding-top:10px;color:var(--muted);font-size:.84rem}
.terms-back{margin:0 0 70px}
.terms-back a{font-weight:800;color:var(--blue);text-decoration:none}
@media (max-width:720px){

  .brand-logo{
    width:50px;
    height:50px;
  }
  .footer-links{margin-top:8px;flex-wrap:wrap}
  .terms-hero{padding-top:52px}
  .terms-card{padding:28px 22px;border-radius:24px}
}


/* ------------------------------
   Canva-inspired cream / blue / pink refinements
------------------------------ */
.hero{
  position:relative;
}
.hero::before{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  border-radius:46% 54% 58% 42%;
  background:var(--yellow);
  left:-70px;
  bottom:36px;
  z-index:-1;
  opacity:.72;
}
.hero-copy{position:relative}
.hero-copy::after{
  content:"";
  position:absolute;
  width:95px;
  height:95px;
  border:12px solid var(--pink);
  border-radius:50%;
  right:8%;
  top:-24px;
  opacity:.16;
  z-index:-1;
}
.hero-art{border-color:#b9d9e8}
.button.secondary{background:var(--yellow);border-color:#f0d967}
.intro-strip{box-shadow:0 12px 30px rgba(77,144,170,.16)}
.intro-strip div{border-right:1px solid rgba(35,31,32,.10)}
.filter-btn{background:#fffdf9}
.filter-btn:hover{border-color:var(--pink)}
.card{border-color:#efd2dc}
.card:nth-child(3n+1){box-shadow:0 8px 24px rgba(77,144,170,.08)}
.card:nth-child(3n+2){box-shadow:0 8px 24px rgba(242,56,121,.07)}
.card:nth-child(3n){box-shadow:0 8px 24px rgba(255,157,34,.08)}
.card h3{color:#2c2225}
.preview-btn:hover{background:#cce8f3}
.pdf-btn:hover{background:#ffef8e}
.about{
  background:linear-gradient(135deg,#fffdf9 0 58%,#e6f3f8 58% 100%);
}
.terms-card{background:linear-gradient(180deg,#fffdf9,#fff9f2)}
.terms-section h2{color:var(--pink)}
.terms-back a{color:#2e7089}
footer{border-top:1px solid #efd2dc;padding-top:22px}
