/*
Theme Name: 北茨城レンタルオフィス (rental-office-base)
Theme URI: https://rental-office-base.com/
Author: AKAME
Description: Custom lightweight theme for 北茨城レンタルオフィス — 映像送信型性風俗特殊営業 専用レンタルオフィス. Hand-coded LP + legal pages, no page builder.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: rental-office-base
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root{
  --ink:#16223D;
  --bronze:#B0894A;
  --bronze-dark:#9A763B;
  --white:#FFFFFF;
  --off:#F6F3EE;
  --card:#FAF8F4;
  --slate:#1E2433;
  --muted:#6A7280;
  --border:#E7E2D9;
  --line:#06C755;
  --line-dark:#05b14c;
  --dark:#0F1829;

  --maxw:1120px;
  --maxw-narrow:860px;
  --radius-card:12px;
  --radius-btn:10px;
  --radius-hero:14px;
  --header-h:70px;

  --font:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}

/* =========================================================
   Reset / base
   ========================================================= */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  font-weight:400;
  color:var(--slate);
  background:var(--white);
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,p{margin:0}
button{font-family:inherit}

/* Anchor offset for sticky header */
:target,section[id]{scroll-margin-top:calc(var(--header-h) + 16px)}

/* =========================================================
   Layout helpers
   ========================================================= */
.container{width:min(100% - 40px,var(--maxw));margin-inline:auto}
.container--narrow{width:min(100% - 40px,var(--maxw-narrow));margin-inline:auto}

.section{padding-block:78px}
.section--white{background:var(--white)}
.section--off{background:var(--off)}
.section--ink{background:var(--ink);color:var(--white)}
.section--dark{background:var(--dark);color:var(--white)}

.section-head{margin-bottom:34px}
.eyebrow{
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  color:var(--bronze);
  text-transform:uppercase;
  margin-bottom:10px;
}
.section--ink .eyebrow{color:var(--bronze)}
.section-title{
  font-size:28px;
  font-weight:700;
  line-height:1.4;
  color:var(--ink);
  letter-spacing:.01em;
}
.section--ink .section-title{color:var(--white)}
.section-lead{margin-top:18px;font-size:16px;line-height:1.95}
.section--ink .section-lead{color:rgba(255,255,255,.88)}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:700;
  font-size:15px;
  line-height:1;
  color:var(--white);
  padding:15px 26px;
  border-radius:var(--radius-btn);
  border:0;
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn--line{background:var(--line)}
.btn--line:hover{background:var(--line-dark)}
.btn--bronze{background:var(--bronze)}
.btn--bronze:hover{background:var(--bronze-dark)}
.btn--sm{padding:9px 18px;font-size:13.5px;border-radius:8px}
.btn--block{width:100%}

/* CTA shine sweep (hover) + continuous attention glow on primary CTAs */
.btn{position:relative;overflow:hidden;isolation:isolate}
.btn::after{
  content:"";position:absolute;top:0;left:-130%;width:55%;height:100%;pointer-events:none;
  background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.45) 50%,transparent 100%);
  transform:skewX(-18deg);
  transition:left .7s cubic-bezier(.22,.61,.36,1);
}
.btn:hover::after{left:140%}
@keyframes robGlowBronze{0%,100%{box-shadow:0 6px 16px rgba(176,137,74,.28)}50%{box-shadow:0 10px 30px rgba(176,137,74,.60)}}
@keyframes robGlowLine{0%,100%{box-shadow:0 6px 16px rgba(6,199,85,.26)}50%{box-shadow:0 10px 30px rgba(6,199,85,.56)}}
.hero__ctas .btn--bronze,.band-cta .btn--bronze{animation:robGlowBronze 2.6s ease-in-out infinite}
.hero__ctas .btn--line,.band-cta .btn--line{animation:robGlowLine 2.6s ease-in-out infinite}
.hero__ctas .btn:hover,.band-cta .btn:hover{animation-play-state:paused}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--white);
  border-bottom:1px solid var(--border);
}
.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:var(--header-h);
}
.brand{display:inline-flex;align-items:center;gap:9px}
.brand__mark{width:10px;height:10px;background:var(--bronze);border-radius:2px;flex:none}
.brand__text{font-weight:700;font-size:16px;color:var(--ink);letter-spacing:.02em}

.site-nav{display:flex;align-items:center;gap:28px}
.site-nav__links{display:flex;align-items:center;gap:26px}
.site-nav__links a{font-size:15px;font-weight:500;color:var(--slate);transition:color .15s ease}
.site-nav__links a:hover{color:var(--bronze)}
.site-nav__ctas{display:flex;align-items:center;gap:10px}

.nav-toggle{
  display:none;
  width:42px;height:42px;
  background:transparent;border:0;cursor:pointer;
  padding:9px;
}
.nav-toggle span{display:block;height:2px;background:var(--ink);border-radius:2px;transition:transform .25s ease,opacity .2s ease}
.nav-toggle span+span{margin-top:5px}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* =========================================================
   Hero
   ========================================================= */
.hero{position:relative;min-height:492px;display:flex;align-items:center;overflow:hidden;background:var(--ink)}
.hero__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center right}
.hero__overlay{
  position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(15,24,41,.92) 0%,rgba(18,28,49,.78) 38%,rgba(20,31,55,.45) 70%,rgba(20,31,55,.20) 100%);
}
.hero__inner{position:relative;width:min(100% - 40px,var(--maxw));margin-inline:auto;padding-block:84px}
.hero__copy{max-width:660px;display:flex;flex-direction:column;align-items:flex-start;gap:22px}
.hero__eyebrow{font-size:13px;font-weight:500;letter-spacing:.04em;color:var(--bronze)}
.hero h1{
  font-size:40px;font-weight:700;line-height:1.42;color:var(--white);
  letter-spacing:.01em;
}
.hero__sub{font-size:16px;line-height:1.85;color:rgba(255,255,255,.85)}
.hero__ctas{display:flex;gap:14px;padding-top:8px;flex-wrap:wrap}

/* =========================================================
   Cards: 物件概要 (3-up) / 料金 (2-up)
   ========================================================= */
.cards{display:grid;gap:20px}
.cards--3{grid-template-columns:repeat(3,1fr)}
.cards--2{grid-template-columns:repeat(2,1fr)}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-card);
  padding:26px;
}
.card__label{font-size:14px;font-weight:500;color:var(--muted);margin-bottom:10px}
.card__value{font-size:20px;font-weight:700;color:var(--ink);line-height:1.5}
.card__note{margin-top:8px;font-size:13.5px;color:var(--muted);line-height:1.7}

/* Price cards */
.price-card{padding:30px 32px}
.price-card .card__label{font-size:15px;font-weight:700;color:var(--ink);margin-bottom:14px}
.price-amount{display:flex;align-items:flex-end;gap:8px;line-height:1}
.price-amount b{font-size:42px;font-weight:700;color:var(--ink);letter-spacing:.01em}
.price-amount span{font-size:15px;color:var(--slate);padding-bottom:5px}
.price-card .card__note{margin-top:14px;font-size:13.5px}

.notes-box{
  margin-top:20px;background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-card);padding:24px 28px;
}
.notes-box dl{margin:0;display:grid;gap:16px}
.notes-box dt{font-weight:700;color:var(--ink);font-size:14.5px;margin-bottom:3px}
.notes-box dd{margin:0;color:var(--muted);font-size:14px;line-height:1.75}

/* =========================================================
   Flow steps
   ========================================================= */
.flow{display:grid;gap:24px}
.flow__item{display:flex;gap:20px;align-items:flex-start}
.flow__num{
  flex:none;width:44px;height:44px;border-radius:50%;
  background:var(--ink);color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:700;
}
.flow__body{padding-top:2px}
.flow__title{font-size:16px;font-weight:700;color:var(--ink);margin-bottom:6px}
.flow__desc{font-size:14.5px;color:var(--muted);line-height:1.8}

/* =========================================================
   Notes list (ご利用条件)
   ========================================================= */
.notes-list{
  background:var(--white);border:1px solid var(--border);
  border-radius:var(--radius-card);padding:14px 30px;
}
.notes-list li{
  padding:16px 0;border-bottom:1px dashed var(--border);
  font-size:15px;line-height:1.8;color:var(--slate);
}
.notes-list li:last-child{border-bottom:0}

/* =========================================================
   FAQ
   ========================================================= */
.faq{display:grid;gap:16px}
.faq__item{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius-card);padding:24px 26px;
}
.faq__q,.faq__a{display:flex;gap:14px;align-items:flex-start}
.faq__q{font-size:16.5px;font-weight:700;color:var(--ink);line-height:1.55}
.faq__a{margin-top:14px;font-size:15px;color:var(--muted);line-height:1.85}
.faq__mark{flex:none;font-weight:700;font-size:17px;line-height:1.5}
.faq__q .faq__mark{color:var(--bronze)}
.faq__a .faq__mark{color:var(--muted)}

/* =========================================================
   Support / Contact (ink) bands
   ========================================================= */
.band-cta{margin-top:26px;display:flex;gap:14px;flex-wrap:wrap}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{background:var(--dark);color:rgba(255,255,255,.7);padding-block:48px;text-align:center}
.site-footer__brand{font-weight:700;font-size:16px;color:var(--white);margin-bottom:20px}
.site-footer__links{display:flex;gap:36px;justify-content:center;flex-wrap:wrap;margin-bottom:22px}
.site-footer__links a{font-size:14px;color:rgba(255,255,255,.78);transition:color .15s ease}
.site-footer__links a:hover{color:var(--white)}
.site-footer__copy{font-size:13px;color:rgba(255,255,255,.5)}

/* =========================================================
   Legal pages (simple)
   ========================================================= */
.legal{padding-block:56px}
.legal__inner{width:min(100% - 40px,760px);margin-inline:auto}
.legal h1{font-size:26px;font-weight:700;color:var(--ink);margin:0 0 30px;line-height:1.5}
.legal h2{
  font-size:18px;font-weight:700;color:var(--ink);line-height:1.55;
  margin:42px 0 14px;padding:2px 0 2px 14px;border-left:4px solid var(--bronze);
}
.legal h3{font-size:15.5px;font-weight:700;color:var(--ink);margin:20px 0 6px}
.legal p{font-size:15px;line-height:1.95;color:var(--slate);margin:12px 0}
.legal ol,.legal ul{margin:12px 0;padding-left:1.7em}
.legal li{font-size:15px;line-height:1.9;color:var(--slate);margin-bottom:9px}
.legal ol{list-style:decimal}
.legal ul{list-style:disc}
.legal li>ul,.legal li>ol{margin:8px 0 2px;padding-left:1.4em}
.legal li li{list-style:circle;margin-bottom:5px}
.legal dl{margin:14px 0}
.legal dt{font-weight:700;color:var(--ink);font-size:15px;margin-top:14px;line-height:1.7}
.legal dd{margin:3px 0 0;padding-left:1.2em;font-size:15px;line-height:1.9;color:var(--slate)}
.legal table{width:100%;border-collapse:collapse;margin:14px 0 18px}
.legal th,.legal td{border:1px solid var(--border);padding:12px 14px;font-size:14.5px;line-height:1.85;text-align:left;vertical-align:top}
.legal th{background:var(--off);width:32%;font-weight:700;color:var(--ink)}
.legal td ul,.legal td ol{margin:2px 0;padding-left:1.3em}
.legal td li{margin-bottom:4px}
.legal__updated{margin-top:30px;font-size:13px;color:var(--muted)}
@media (max-width:600px){
  .legal table,.legal tbody,.legal tr,.legal th,.legal td{display:block;width:auto}
  .legal th{border-bottom:0}
  .legal td{border-top:0}
  .legal tr{margin-bottom:14px}
}

/* =========================================================
   Scroll reveal (applied only when JS + IntersectionObserver present)
   ========================================================= */
.reveal-on .hero__copy,
.reveal-on .section-head,
.reveal-on .card,
.reveal-on .notes-box,
.reveal-on .notes-list,
.reveal-on .flow__item,
.reveal-on .section-lead,
.reveal-on .band-cta,
.reveal-on .faq__item,
.reveal-on .legal__inner{
  opacity:0;transform:translateY(26px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal-on .hero__copy.is-visible,
.reveal-on .section-head.is-visible,
.reveal-on .card.is-visible,
.reveal-on .notes-box.is-visible,
.reveal-on .notes-list.is-visible,
.reveal-on .flow__item.is-visible,
.reveal-on .section-lead.is-visible,
.reveal-on .band-cta.is-visible,
.reveal-on .faq__item.is-visible,
.reveal-on .legal__inner.is-visible{
  opacity:1;transform:none;
}

/* =========================================================
   Responsive — mobile (<768px) matches TOP (SP)
   ========================================================= */
@media (max-width:767px){
  :root{--header-h:46px}

  .section{padding-block:48px}
  .section-title{font-size:22px}
  .section-head{margin-bottom:26px}

  /* Header: hide inline nav, show hamburger */
  .nav-toggle{display:block}
  .site-nav{
    position:absolute;left:0;right:0;top:var(--header-h);
    background:var(--white);border-bottom:1px solid var(--border);
    flex-direction:column;align-items:stretch;gap:0;
    padding:8px 20px 20px;
    box-shadow:0 12px 24px rgba(15,24,41,.10);
    display:none;
  }
  .site-nav.is-open{display:flex}
  .site-nav__links{flex-direction:column;align-items:stretch;gap:0}
  .site-nav__links li{border-bottom:1px solid var(--border)}
  .site-nav__links a{display:block;padding:14px 4px;font-size:16px}
  .site-nav__ctas{flex-direction:column;align-items:stretch;gap:10px;margin-top:16px}
  .site-nav__ctas .btn{width:100%;padding:13px 18px;font-size:15px;border-radius:8px}

  /* Hero */
  .hero{min-height:0}
  .hero__bg{object-position:center}
  .hero__overlay{background:linear-gradient(170deg,rgba(15,24,41,.90) 0%,rgba(18,28,49,.78) 55%,rgba(20,31,55,.62) 100%)}
  .hero__inner{padding-block:56px}
  .hero__copy{gap:18px;max-width:none}
  .hero__eyebrow-biz{display:none}
  .hero__eyebrow{white-space:nowrap;font-size:12.5px}
  .hero h1{font-size:25px;line-height:1.45}
  .hero__sub{font-size:15px;line-height:1.8}
  .hero__ctas{flex-direction:column;align-items:stretch;width:100%}
  .hero__ctas .btn{width:100%}

  /* Cards stack */
  .cards--3,.cards--2{grid-template-columns:1fr}
  .price-card{padding:24px 22px}
  .price-amount b{font-size:34px}

  /* Flow */
  .flow__num{width:38px;height:38px;font-size:16px}
  .flow__item{gap:14px}

  .notes-list{padding:6px 20px}
  .faq__item{padding:20px}
  .faq__q{font-size:15.5px}

  .band-cta{flex-direction:column;align-items:stretch}
  .band-cta .btn{width:100%}

  .site-footer__links{flex-direction:column;gap:14px}
}

/* =========================================================
   Reduced motion — disable fade/animation for users who prefer it
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal-on .hero__copy,.reveal-on .section-head,.reveal-on .card,.reveal-on .notes-box,
  .reveal-on .notes-list,.reveal-on .flow__item,.reveal-on .section-lead,.reveal-on .band-cta,
  .reveal-on .faq__item,.reveal-on .legal__inner{opacity:1!important;transform:none!important;transition:none!important}
  .hero__ctas .btn,.band-cta .btn{animation:none!important}
  .btn::after{display:none}
  .btn:hover{transform:none}
}
