:root{
  /* Temply tokens */
  --c-bg:#ffffff;
  --c-fg:#111827;
  --c-outline:#e5e7eb;
  --acc:#0ea5e9;
  --space:16px;
  --radius:16px;
  --maxw:1100px;
}

/* base */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Arial,sans-serif;
  color:var(--c-fg);
  background:var(--c-bg);
  line-height:1.8;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;vertical-align:bottom}

/* header */
.site-header{
  position:sticky;top:0;z-index:10;
  border-bottom:1px solid var(--c-outline);
  backdrop-filter:saturate(180%) blur(8px);
}
.header-inner{
  margin-inline:auto;max-width:var(--maxw);
  padding:12px var(--space);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand{display:flex;align-items:baseline;gap:8px;font-weight:700}
.brand .logo{font-size:20px}
.brand .sub{font-size:12px;opacity:.7;font-weight:600}

/* hero */
.hero{
  margin-inline:auto; max-width:var(--maxw);
  padding:24px var(--space) 0;
  text-align:center;
}

/* 画像＋テキスト重ね用のラッパ */
.hero-visual{
  position: relative;
  /* フルブリード（画面いっぱい） */
  margin-top:16px;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  width:100vw;
  height:48vh;            /* ← 画像の高さ（小さめに） */
  min-height:300px;       /* 小画面で潰れ防止 */
  overflow:hidden;
}

.hero-visual img{
  position:absolute; inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  /* 少しだけ暗くしてテキストを読みやすくしたい場合はON*/
  filter: brightness(0.60) blur(1.5px); /* ← ほんのりボケ＋暗く */
  transform: scale(1.02); /* ブラーの縁切れ防止 */
  object-position: center 45%; /* Safari向け: ガラス効果の互換性 */
}

/* 画像の上に重ねるテキスト */
.hero-copy{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -40%);
  text-align:center;
  color:#111827;
  background:rgba(255,255,255,.60);
  backdrop-filter: blur(6px);
  padding:18px 40px;              /* ← 横を広めに */
  border-radius:12px;
  white-space: nowrap;            /* ← 改行させない */
  max-width:90vw;                 /* ← スマホで画面からはみ出さないよう制限 */
  box-sizing:border-box;
  -webkit-backdrop-filter: blur(6px); /* 見せたい位置をキープしたい時だけ */
}

.hero-copy h1{
  margin:0 0 6px;
  font-size:clamp(22px,4vw,32px);
  line-height:1.25;
}

.hero-copy p{
  margin:0;
  font-size:clamp(13px,1.6vw,15px);
  color:#334155;
}

/* スマホでさらに高さを低めに・余白調整 */
@media (max-width:640px){
  .hero-visual{ height:42vh; min-height:240px; }
  .hero-copy{ padding:12px 18px; }
}

/* cards (見出し + グリッド) */
.cards{
  margin-inline:auto;
  max-width:var(--maxw);
  padding:16px var(--space) 56px;
  text-align:center;
}
.cards h2{margin:0 0 12px}

/* グリッド本体 */
.cards-grid{
  display:grid;gap:16px;
  grid-template-columns:repeat(1,minmax(0,1fr));
  justify-items:stretch;
}
@media (min-width:680px){
  .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* card */
.card{
  border:1px solid var(--c-outline);
  border-radius:var(--radius);
  overflow:hidden;background:#fff;
  display:flex;flex-direction:column;
  transition:transform .18s,box-shadow .18s,border-color .18s;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 30px rgba(0,0,0,.06);
  border-color:#cbd5e1;
}

.card-media{
  aspect-ratio:16/9;
  background:#f1f5f9;
  display:grid;
  place-items:center;
  font-weight:700;
}
.card-body{padding:16px}
.tag{
  display:inline-block;
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(14,165,233,.12);
  color:#0369a1;
  font-weight:700;
  margin-bottom:8px;
}
.card h3{margin:6px 0;font-size:18px}
.card p{margin:0;color:#475569;font-size:14px}
.cta{
  margin-top:auto;
  padding:12px 16px;
  border-top:1px dashed var(--c-outline);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:700;
  color:#0369a1;
}
.cta span{font-size:14px}
.cta svg{width:18px;height:18px;flex:0 0 auto}

/* lucide icon */
.card-media .icon{
  width:64px;
  height:64px;
  stroke-width:1.6;
  margin-bottom:8px;
  color:var(--acc);
}

/* footer */
.site-footer{
  border-top:1px solid var(--c-outline);
  background:#fff;
}
.footer-inner{
  margin-inline:auto;
  max-width:var(--maxw);
  padding:24px var(--space) 56px;
}
.links{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  margin:0;
  padding:0;
  list-style:none;
  justify-content:center;
}
.links a{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--c-outline);
  font-size:14px;
  background:#fff;
  transition:background .15s,border-color .15s;
}
.links a:hover{
  background:#f8fafc;
  border-color:#cbd5e1;
}
.copyright{
  margin-top:16px;
  font-size:12px;
  color:#64748b;
  text-align:center;
}


/* ========== terms page ========== */
.page{
  margin-inline:auto;
  max-width:var(--maxw);
  padding:24px var(--space) 56px;
}

.page-title{
  font-size:24px;
  font-weight:700;
  margin:16px 0 4px;
}

.page-lead{
  margin:0 0 24px;
  font-size:14px;
  color:#64748b;
}

.tokushoho-section h2,
.privacy-section h2,
.about-section h2,
.terms-section h2{
  font-size:18px;
  margin:32px 0 8px;
  padding-bottom:4px;
  border-bottom:1px solid var(--c-outline);
}

.tokushoho-section h3,
.privacy-section h3,
.about-section h3,
.terms-section h3{
  font-size:15px;
  margin:18px 0 6px;
}

.tokushoho-section p,
.privacy-section p, 
.about-section p,
.terms-section p{
  margin:0 0 8px;
}

.tokushoho-section ul,
.privacy-section ul,
.about-section ul,
.terms-section ul{
  margin:0 0 16px 1.2em;
  padding:0;
  font-size:14px;
}

.tokushoho-section a,
.privacy-section a,
.about-section a,
.terms-section a{
  color: #0ea5e9;
}

.tokushoho-footer,
.privacy-footer,
.about-footer,
.terms-footer{
  margin-top:32px;
  font-size:12px;
  color:#64748b;
  text-align:right;
}


.policy-meta,
.terms-meta{
  margin-top: 24px;
  font-size: 12px;
  color: #64748b;
  text-align: right;
}


/* header nav (右側リンク) */
/* ========== header button style ========== */

.header-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
}

.nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:8px 18px;
  font-size:13px;
  font-weight:700;

  color:#fff;
  background:var(--acc); /* Templyのアクセントカラー */

  border-radius:999px;
  border:1px solid #0284c7;

  box-shadow:0 3px 10px rgba(14,165,233,.28);

  transition:
    background .15s,
    box-shadow .15s,
    transform .15s;
}

/* hover（PCのみ） */
@media (hover: hover){
  .nav-btn:hover{
    background:#0284c7;
    box-shadow:0 6px 20px rgba(14,165,233,.35);
    transform:translateY(-1px);
  }
}

/* スマホで少し小さめに */
@media (max-width:640px){
  .nav-btn{
    padding:7px 14px;
    font-size:12px;
  }
}
