/*
Theme Name: LoopStyle
Theme URI: https://loopstyle.jp/
Author: HaSeRu
Author URI: https://haseru.co.jp/
Description: 札幌のレトロ雑貨・古着店「ルプスタ」様向けオリジナルテーマ（提案デモ）
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: loopstyle
*/

:root{
  --cream:#EFE8D5;      /* 実測: ブランド背景 */
  --cream-2:#F7F3E8;
  --orange:#A94E15;     /* 実測: ブランドオレンジ */
  --orange-lt:#D4772F;
  --green:#47B39D;      /* 実測: ヘッダー緑 */
  --pink:#F2A0B5;
  --yellow:#F5C518;
  --red:#C0392B;
  --ink:#3A3229;
  --ink-lt:#6B5F52;
  --shadow:4px 4px 0 var(--ink);
  --shadow-sm:3px 3px 0 var(--ink);
}

*{box-sizing:border-box}
body{
  margin:0; background:var(--cream-2); color:var(--ink);
  font-family:"Hiragino Maru Gothic ProN","ヒラギノ丸ゴ ProN",-apple-system,"Segoe UI","Meiryo",sans-serif;
  line-height:1.9; font-size:16px;
}
img{max-width:100%; height:auto; display:block}
a{color:var(--orange)}
.wrap{max-width:1080px; margin:0 auto; padding:0 20px}

/* ============ ヘッダー ============ */
.site-header{background:var(--green); border-bottom:4px solid var(--ink); position:sticky; top:0; z-index:50}
.hd-inner{max-width:1080px; margin:0 auto; padding:10px 20px; display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.hd-logo{display:flex; align-items:center; gap:9px; color:#fff; font-weight:800; text-decoration:none; font-size:17px}
.hd-logo .mark{
  width:34px;height:34px;border-radius:50%;background:var(--cream);
  border:2.5px solid var(--ink); display:grid;place-items:center;
  color:var(--orange); font-size:17px; font-weight:900; line-height:1;
}
.hd-nav{margin-left:auto; display:flex; gap:18px; flex-wrap:wrap}
.hd-nav a{color:#fff; text-decoration:none; font-weight:700; font-size:14.5px}
.hd-nav a:hover{color:var(--yellow)}
.hd-tel{
  background:var(--yellow); border:2.5px solid var(--ink); border-radius:999px;
  padding:5px 15px; font-weight:900; color:var(--ink); text-decoration:none;
  box-shadow:var(--shadow-sm); font-size:14px; white-space:nowrap;
}

/* ============ ヒーロー ============ */
/* 装飾で賑やかさを作らない。ロゴを主役にし、賑やかさは直下の実写真ストリップで出す */
.hero{
  /* ロゴ画像の地色(#EFE8D5)と完全に一致させ、画像の四角い境目を消す。
     グラデはロゴより十分下（58%以降）から効かせる */
  background:linear-gradient(180deg,#EFE8D5 0%,#EFE8D5 58%,#E7DEC4 100%);
  border-bottom:4px solid var(--ink);
  padding:56px 20px 48px; text-align:center;
}
.hero-logo{max-width:560px; margin:0 auto 10px}  /* 現行は原寸ではみ出していた */
.hero-copy{
  font-size:29px; font-weight:900; color:var(--orange);
  margin:10px 0 6px; letter-spacing:.01em;
}
.hero-sub{margin:0 0 26px; color:var(--ink-lt); font-weight:700; font-size:15px}
.hero-btns{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}
.hero-badges{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:26px 0 0}
.badge{
  background:#fff; border:2.5px solid var(--ink); border-radius:12px;
  padding:8px 16px; font-weight:800; font-size:14px; box-shadow:var(--shadow-sm);
}
.badge b{color:var(--orange)}

/* ============ 実店舗写真ストリップ（賑やかさは本物の商品写真で出す） ============ */
.strip{
  background:var(--ink); border-bottom:4px solid var(--ink);
  overflow:hidden; padding:14px 0; position:relative;
}
.strip-track{
  display:flex; gap:14px; width:max-content;
  animation:strip-scroll 46s linear infinite;
}
.strip:hover .strip-track{animation-play-state:paused}
.strip-item{
  width:150px; height:150px; flex:none; border-radius:12px;
  border:3px solid var(--cream); overflow:hidden; background:var(--cream);
  transition:transform .18s;
}
.strip-item:hover{transform:scale(1.06) rotate(-1.5deg)}
.strip-item img{width:100%; height:100%; object-fit:cover}
@keyframes strip-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(calc(-50% - 7px))}   /* 同じ列を2回並べて無限ループ */
}
@media(prefers-reduced-motion:reduce){
  .strip-track{animation:none}
  .strip{overflow-x:auto}
}

/* ============ ボタン ============ */
.btn{
  display:inline-block; text-decoration:none; font-weight:900; font-size:15.5px;
  padding:13px 30px; border-radius:999px; border:3px solid var(--ink);
  box-shadow:var(--shadow); transition:transform .08s, box-shadow .08s;
}
.btn:active{transform:translate(4px,4px); box-shadow:0 0 0 var(--ink)}
.btn-primary{background:var(--orange); color:#fff}
.btn-green{background:var(--green); color:#fff}
.btn-yellow{background:var(--yellow); color:var(--ink)}
.btn-sm{padding:9px 22px; font-size:14px; box-shadow:var(--shadow-sm)}

/* ============ セクション見出し ============ */
.section{padding:56px 0}
.section-alt{background:var(--cream)}
.section-head{text-align:center; margin-bottom:34px}
.section-head h2{
  display:inline-block; margin:0; font-size:27px; font-weight:900; color:var(--ink);
  background:var(--yellow); border:3px solid var(--ink); border-radius:999px;
  padding:7px 34px; box-shadow:var(--shadow); transform:rotate(-1.2deg);
}
.section-head p{margin:12px 0 0; color:var(--ink-lt); font-weight:800; font-size:12.5px; letter-spacing:.32em}

/* ============ 3つの柱 ============ */
.pillars{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.pillar{
  background:#fff; border:3px solid var(--ink); border-radius:18px;
  box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column;
}
.pillar-img{height:168px; background:var(--cream); border-bottom:3px solid var(--ink); overflow:hidden}
.pillar-img img{width:100%; height:100%; object-fit:cover}
.pillar-body{padding:20px; flex:1; display:flex; flex-direction:column; text-align:center}
.pillar-no{
  display:inline-block; align-self:center; background:var(--green); color:#fff;
  border:2.5px solid var(--ink); border-radius:8px; width:32px; height:32px;
  line-height:27px; font-weight:900; margin:-38px 0 10px; position:relative;
}
.pillar h3{margin:0 0 8px; font-size:19px; font-weight:900; color:var(--orange)}
.pillar p{margin:0 0 16px; font-size:14px; color:var(--ink-lt); flex:1}
.pillar .btn{align-self:center}
.tag-soon{
  display:inline-block; background:var(--pink); color:#fff; border:2px solid var(--ink);
  border-radius:999px; padding:2px 12px; font-size:11.5px; font-weight:900; margin-bottom:8px;
}

/* ============ 買取CTA ============ */
.kaitori{
  background:var(--orange);
  background-image:repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px);
  border-top:4px solid var(--ink); border-bottom:4px solid var(--ink);
  padding:52px 20px; text-align:center; color:#fff;
}
.kaitori h2{margin:0 0 10px; font-size:29px; font-weight:900}
.kaitori p{margin:0 0 22px; font-weight:700; font-size:15px}
.kaitori-items{display:flex; gap:9px; justify-content:center; flex-wrap:wrap; margin:0 0 24px}
.kaitori-items span{
  background:var(--cream); color:var(--ink); border:2.5px solid var(--ink);
  border-radius:999px; padding:6px 16px; font-weight:800; font-size:13.5px;
  box-shadow:var(--shadow-sm);
}

/* ============ Instagram ============ */
.ig-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:12px}
.ig-cell{
  aspect-ratio:1/1; background:var(--cream); border:3px solid var(--ink);
  border-radius:12px; box-shadow:var(--shadow-sm); overflow:hidden;
  display:block; position:relative; transition:transform .16s;
}
.ig-cell:hover{transform:translateY(-4px) rotate(-1deg)}
.ig-cell img{width:100%;height:100%;object-fit:cover; display:block}
.ig-cell::after{
  content:""; position:absolute; inset:0;
  background:rgba(169,78,21,0); transition:background .16s;
}
.ig-cell:hover::after{background:rgba(169,78,21,.14)}

/* ============ ブログ ============ */
.post-list{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.post-card{
  background:#fff; border:3px solid var(--ink); border-radius:16px;
  box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column;
}
.post-card .thumb{height:158px; background:var(--cream); border-bottom:3px solid var(--ink); overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{padding:16px; flex:1; display:flex; flex-direction:column}
.post-meta{display:flex; gap:8px; align-items:center; margin-bottom:8px; flex-wrap:wrap}
.post-cat{
  background:var(--green); color:#fff; border:2px solid var(--ink); border-radius:999px;
  padding:1px 11px; font-size:11px; font-weight:900;
}
.post-date{font-size:12px; color:var(--ink-lt); font-weight:700}
.post-card h3{margin:0 0 8px; font-size:16px; font-weight:900; line-height:1.6}
.post-card h3 a{color:var(--ink); text-decoration:none}
.post-card h3 a:hover{color:var(--orange)}
.post-card .ex{font-size:13.5px; color:var(--ink-lt); margin:0 0 14px; flex:1}

/* ============ 店舗情報 ============ */
.info-wrap{
  background:#fff; border:3px solid var(--ink); border-radius:18px;
  box-shadow:var(--shadow); padding:8px 24px 24px; max-width:720px; margin:0 auto;
}
.info-table{width:100%; border-collapse:collapse}
.info-table th,.info-table td{padding:15px 8px; border-bottom:2px dashed #D8CDB8; text-align:left; font-size:14.5px}
.info-table th{width:120px; color:var(--orange); font-weight:900; white-space:nowrap}
.info-table tr:last-child th,.info-table tr:last-child td{border-bottom:none}

/* ============ フォーム ============ */
.contact-box{
  background:#fff; border:3px solid var(--ink); border-radius:18px;
  box-shadow:var(--shadow); padding:28px; max-width:640px; margin:0 auto;
}
.field{margin-bottom:16px}
.field label{display:block; font-weight:900; font-size:14px; margin-bottom:6px}
.field .req{background:var(--red); color:#fff; border-radius:4px; padding:1px 7px; font-size:10.5px; margin-left:6px}
.field .opt{background:var(--ink-lt); color:#fff; border-radius:4px; padding:1px 7px; font-size:10.5px; margin-left:6px}
.field input,.field textarea{
  width:100%; padding:11px 13px; border:2.5px solid var(--ink); border-radius:10px;
  background:var(--cream-2); font-size:15px; font-family:inherit;
}
.field textarea{min-height:120px; resize:vertical}
.file-note{font-size:12.5px; color:var(--ink-lt); margin:5px 0 0}

/* ============ 記事本文 ============ */
.entry{
  background:#fff; border:3px solid var(--ink); border-radius:18px;
  box-shadow:var(--shadow); padding:32px; max-width:800px; margin:0 auto;
}
.entry h1{font-size:25px; font-weight:900; margin:0 0 10px; line-height:1.55}
.entry .entry-meta{margin-bottom:22px}
.entry-content p{font-size:15.5px}

/* ============ フッター ============ */
.site-footer{background:var(--ink); color:#fff; padding:36px 20px 22px; text-align:center}
.ft-logo{font-size:19px; font-weight:900; color:var(--yellow); margin-bottom:6px}
.ft-nav{display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin:14px 0}
.ft-nav a{color:#fff; text-decoration:none; font-size:13.5px; font-weight:700}
.ft-copy{font-size:11.5px; opacity:.65; margin-top:14px}

/* ============ スマホ ============ */
@media(max-width:860px){
  .pillars,.post-list{grid-template-columns:1fr}
  .ig-grid{grid-template-columns:repeat(2,1fr)}
  .hd-nav{display:none}
  .hero-copy{font-size:21px}
  .hero-logo{max-width:100%}
  .section-head h2{font-size:22px; padding:7px 22px}
  .kaitori h2{font-size:23px}
  .info-table th{width:auto; display:block; padding-bottom:2px; border:none}
  .info-table td{display:block; padding-top:2px}
}
