/* ===== Yui Partners 行政書士・経営コンサルティング事務所 デモサイト ===== */
:root{
  --blue: #1e93d1;
  --blue-dark: #0d6ba8;
  --blue-light: #6fc4ec;
  --orange: #f5a623;
  --orange-dark: #e08c0a;
  --yellow: #fbe500;
  --tile-blue: #7fd0ee;
  --tile-green: #b7dd6a;
  --tile-pink: #f49bc4;
  --gray-bg: #f4f6f7;
  --gray-border: #e1e6e8;
  --text: #333940;
  --text-light: #6b7580;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1080px;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family: "Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px;}

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.header-inner{
  max-width: var(--maxw); margin:0 auto; padding: 12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{display:flex; align-items:center; gap:10px;}
.brand-mark{width:42px;height:42px;flex:none;}
.brand-text{line-height:1.3;}
.brand-text .name-jp{font-size:15px; font-weight:700; color:var(--blue-dark); letter-spacing:.02em;}
.brand-text .name-sub{font-size:10px; color:var(--text-light); letter-spacing:.05em;}

.main-nav{display:flex; align-items:center; gap:2px;}
.main-nav a{
  display:block; padding:10px 14px; font-size:13.5px; font-weight:600;
  color:var(--text); border-radius:6px; transition:.2s;
  position:relative;
}
.main-nav a:hover{color:var(--blue-dark); background:#eef7fc;}
.header-cta{display:flex; align-items:center; gap:10px;}
.header-tel{
  font-size:11px; color:var(--text-light); text-align:right; line-height:1.5;
}
.header-tel strong{display:block; font-size:16px; color:var(--blue-dark); font-weight:700;}
.header-btn{
  background:var(--orange); color:var(--white); font-weight:700; font-size:13px;
  padding:11px 18px; border-radius:24px; white-space:nowrap;
  box-shadow:0 3px 0 var(--orange-dark);
}
.nav-toggle{display:none;}

/* ---------- Hero / Carousel ---------- */
.hero{
  position:relative; overflow:hidden;
  height: 320px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}
.hero-slide{
  position:absolute; inset:0; opacity:0; transition:opacity 1s ease;
  background-size:cover; background-position:center;
}
.hero-slide::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(20,110,170,.86) 0%, rgba(70,180,225,.72) 100%);
}
.hero-slide.active{opacity:1;}
.hero-content{
  position:relative; z-index:2; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding: 20px;
}
.hero-glow{
  position:absolute; width:480px; height:480px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 68%);
  top:50%; left:50%; transform:translate(-50%,-50%); z-index:1; pointer-events:none;
}
.hero-logo{width:120px; height:auto; position:relative; z-index:2; margin-bottom:14px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));}
.hero-tagline{position:relative; z-index:2; color:var(--white); font-size:20px; font-weight:700; text-shadow:0 2px 8px rgba(0,40,70,.4); letter-spacing:.03em;}
.hero-sub{position:relative; z-index:2; color:rgba(255,255,255,.92); font-size:12.5px; margin-top:8px;}

.hero-dots{
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
  display:flex; align-items:center; gap:10px; z-index:3;
}
.hero-dots button{
  width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.5);border:none;cursor:pointer;padding:0;
}
.hero-dots button.active{background:#fff; width:22px; border-radius:5px; transition:.3s;}
.hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  background:rgba(255,255,255,.25); border:none; color:#fff; width:34px;height:34px;border-radius:50%;
  cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center;
}
.hero-arrow:hover{background:rgba(255,255,255,.45);}
.hero-arrow.prev{left:16px;}
.hero-arrow.next{right:16px;}

/* ---------- Service Panels ---------- */
.panels{padding: 40px 20px 10px;}
.panel{
  max-width: var(--maxw); margin: 0 auto 22px; border-radius: 18px;
  display:flex; align-items:stretch; overflow:hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.panel-blue{background: linear-gradient(135deg,#1e93d1,#3fb0e8); border:2px solid #1e93d1;}
.panel-orange{background: linear-gradient(135deg,#f5a623,#f7bb52); border:2px solid #f5a623;}
.panel-icon{
  flex:0 0 130px; display:flex; align-items:center; justify-content:center; padding:18px;
}
.panel-icon svg{width:72px;height:72px;}
.panel-label{
  position:absolute; margin-top:-84px; margin-left:8px;
  font-size:11px; color:#fff; font-weight:700; background:rgba(0,0,0,.18); padding:3px 10px; border-radius:12px;
}
.panel-links{
  flex:1; display:grid; grid-template-columns:repeat(4,1fr); background:rgba(255,255,255,.94);
}
.panel-links a{
  padding:18px 10px; text-align:center; border-left:1px solid #eef1f2;
  display:flex; flex-direction:column; align-items:center; gap:8px; transition:.2s;
}
.panel-links a:first-child{border-left:none;}
.panel-links a:hover{background:#f5fafd;}
.panel-links svg{width:30px;height:30px;}
.panel-blue .panel-links svg{color:var(--blue-dark);}
.panel-orange .panel-links svg{color:var(--orange-dark);}
.panel-links span{font-size:12px; font-weight:600; line-height:1.4;}

/* ---------- Topics ---------- */
.topics{background:var(--gray-bg); padding:36px 20px;}
.topics-inner{max-width:var(--maxw); margin:0 auto;}
.topic-tag{
  display:inline-block; background:#333; color:#fff; font-size:11px; font-weight:700;
  padding:4px 14px; letter-spacing:.1em; margin-bottom:14px;
}
.topic-list li{
  display:flex; gap:22px; padding:13px 4px; border-bottom:1px solid var(--gray-border);
  font-size:13.5px; align-items:baseline; flex-wrap:wrap;
}
.topic-list time{color:var(--text-light); flex:0 0 110px; font-size:12.5px;}
.topic-list a{color:var(--text); font-weight:500;}
.topic-list a:hover{color:var(--blue-dark); text-decoration:underline;}

/* ---------- CTA Banner ---------- */
.cta-banner{
  background: var(--yellow); margin: 0 20px; border-radius: 10px;
  max-width: calc(var(--maxw) - 40px); margin-left:auto; margin-right:auto;
  padding: 34px 20px; text-align:center;
}
.cta-banner h2{font-size:20px; font-weight:800; color:#3a3200; margin-bottom:6px;}
.cta-banner p{font-size:13px; color:#4a4200; margin-bottom:16px;}
.cta-banner .btn{
  display:inline-block; background:#333; color:#fff; font-weight:700; font-size:13.5px;
  padding:12px 30px; border-radius:26px;
}
.cta-banner .btn:hover{background:var(--blue-dark);}

/* ---------- Tiles ---------- */
.tiles{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; max-width:var(--maxw); margin:36px auto; padding:0 20px;}
.tile{
  border-radius:12px; padding:30px 16px; text-align:center; color:#fff; font-weight:700; font-size:14px;
  display:flex; flex-direction:column; align-items:center; gap:10px; transition:.2s;
}
.tile:hover{transform:translateY(-3px);}
.tile svg{width:34px;height:34px;}
.tile-blue{background:var(--tile-blue);}
.tile-green{background:var(--tile-green);}
.tile-pink{background:var(--tile-pink);}

/* ---------- Company Info ---------- */
.company-info{background:var(--gray-bg); padding:40px 20px;}
.company-info-inner{max-width:var(--maxw); margin:0 auto;}
.section-badge{
  display:inline-block; background:var(--blue); color:#fff; font-size:12px; font-weight:700;
  padding:5px 16px; border-radius:0 12px 12px 0; margin-bottom:18px;
}
.info-table{width:100%; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.05);}
.info-table tr{border-bottom:1px solid var(--gray-border);}
.info-table tr:last-child{border-bottom:none;}
.info-table th,.info-table td{padding:14px 18px; text-align:left; font-size:13.5px; vertical-align:top;}
.info-table th{width:170px; background:#eef5f8; color:var(--blue-dark); font-weight:700;}

/* ---------- Map / Contact / Footer ---------- */
.map-wrap iframe{width:100%; height:320px; border:0; display:block;}
.contact-strip{
  background:var(--gray-bg); text-align:center; padding:44px 20px;
}
.contact-strip .btn-contact{
  display:inline-block; background:#fff; border:2px solid var(--blue); color:var(--blue-dark);
  font-weight:800; font-size:16px; padding:18px 56px; border-radius:8px; transition:.2s;
}
.contact-strip .btn-contact:hover{background:var(--blue); color:#fff;}
.social-row{display:flex; justify-content:center; gap:16px; padding:26px 20px;}
.social-row a{
  width:38px;height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--gray-bg); transition:.2s;
}
.social-row a:hover{background:var(--blue); color:#fff;}
.social-row svg{width:18px;height:18px;}

.site-footer{border-top:4px solid var(--blue); background:#fff; padding:30px 20px 18px;}
.footer-inner{max-width:var(--maxw); margin:0 auto; display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:20px;}
.footer-brand{display:flex; align-items:center; gap:10px;}
.footer-brand img{width:34px;height:34px;}
.footer-brand span{font-size:13px; font-weight:700; color:var(--blue-dark);}
.footer-links{display:flex; gap:18px; flex-wrap:wrap;}
.footer-links a{font-size:12px; color:var(--text-light);}
.footer-links a:hover{color:var(--blue-dark);}
.copyright{text-align:center; font-size:11px; color:var(--text-light); margin-top:20px;}

/* ---------- Inner page (subpage template) ---------- */
.page-hero{
  background:linear-gradient(135deg,var(--blue),var(--blue-light)); color:#fff; padding:46px 20px;
  text-align:center;
}
.page-hero h1{font-size:24px; font-weight:800; letter-spacing:.02em;}
.breadcrumb{font-size:11.5px; color:rgba(255,255,255,.85); margin-top:8px;}
.content-wrap{max-width:840px; margin:0 auto; padding:44px 20px 70px;}
.content-wrap h2{
  font-size:22px; font-weight:800; color:var(--blue-dark); border-left:6px solid var(--blue);
  padding:4px 0 4px 14px; margin:44px 0 20px;
}
.content-wrap h2:first-child{margin-top:0;}
.content-wrap h3{
  font-size:18px; font-weight:700; color:var(--text); background:var(--gray-bg);
  padding:10px 16px; border-radius:6px; margin:30px 0 16px;
}
.content-wrap h4{
  font-size:15.5px; font-weight:700; color:var(--blue-dark); margin:24px 0 10px;
  padding-bottom:6px; border-bottom:2px solid var(--gray-border);
}
.content-wrap h5{
  font-size:14px; font-weight:700; color:var(--text); margin:18px 0 8px;
}
.content-wrap h5::before{content:"▸ "; color:var(--orange);}
.content-wrap p{font-size:14px; margin-bottom:14px; color:var(--text);}
.content-wrap ul.disc{margin:0 0 18px 0;}
.content-wrap ul.disc li{position:relative; padding-left:20px; font-size:14px; margin-bottom:8px;}
.content-wrap ul.disc li::before{content:""; position:absolute; left:2px; top:9px; width:7px; height:7px; background:var(--blue); border-radius:50%;}
.content-wrap ol.num{margin:0 0 18px 22px;}
.content-wrap ol.num li{font-size:14px; margin-bottom:8px; padding-left:6px;}
.content-wrap .check-list li{position:relative; padding-left:26px; font-size:14px; margin-bottom:10px;}
.content-wrap .check-list li::before{content:"✓"; position:absolute; left:0; top:0; color:var(--white); background:var(--blue); width:18px;height:18px;border-radius:50%;font-size:11px;display:flex;align-items:center;justify-content:center;}
.info-box{background:#eef7fc; border:1px solid #cfe8f5; border-radius:8px; padding:18px 20px; margin:20px 0; font-size:13.5px;}
.info-box strong{color:var(--blue-dark);}
.sample-table{width:100%; border-collapse:collapse; margin:16px 0 24px; font-size:13px;}
.sample-table th,.sample-table td{border:1px solid var(--gray-border); padding:10px 12px; text-align:left;}
.sample-table th{background:#eef5f8; color:var(--blue-dark);}

/* ---------- Contact form ---------- */
.form-wrap{max-width:640px; margin:0 auto; padding:44px 20px 80px;}
.form-note{background:#eef7fc; border:1px solid #cfe8f5; border-radius:8px; padding:16px 18px; font-size:13px; margin-bottom:28px;}
.form-row{margin-bottom:20px;}
.form-row label{display:block; font-size:13.5px; font-weight:700; margin-bottom:7px;}
.form-row label .req{color:#e0483c; font-size:11px; background:#fdeceb; padding:2px 7px; border-radius:3px; margin-left:6px; font-weight:700;}
.form-row input[type=text], .form-row input[type=email], .form-row input[type=tel], .form-row select, .form-row textarea{
  width:100%; padding:12px 14px; border:1px solid var(--gray-border); border-radius:6px; font-size:14px; font-family:inherit;
}
.form-row textarea{resize:vertical; min-height:130px;}
.form-radio{display:flex; gap:22px; flex-wrap:wrap;}
.form-radio label{display:flex; align-items:center; gap:6px; font-weight:500; font-size:13.5px;}
.form-submit{text-align:center; margin-top:32px;}
.form-submit button{
  background:var(--orange); color:#fff; font-weight:800; font-size:15px; padding:15px 60px;
  border:none; border-radius:28px; box-shadow:0 3px 0 var(--orange-dark); cursor:pointer;
}
.form-submit button:hover{filter:brightness(1.05);}

/* ---------- Privacy page ---------- */
.policy-wrap{max-width:760px; margin:0 auto; padding:44px 20px 80px; font-size:13.8px;}
.policy-wrap h2{font-size:17px; font-weight:800; color:var(--blue-dark); margin:32px 0 12px;}
.policy-wrap p{margin-bottom:12px;}
.policy-wrap ul{margin:0 0 12px 20px;}
.policy-wrap li{list-style:disc; margin-bottom:6px;}
.policy-date{text-align:right; color:var(--text-light); font-size:12px; margin-top:30px;}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .main-nav{display:none;}
  .header-tel{display:none;}
  .panel{flex-direction:column;}
  .panel-icon{flex:none; padding:16px;}
  .panel-links{grid-template-columns:repeat(2,1fr);}
  .tiles{grid-template-columns:1fr;}
  .info-table th{width:130px;}
}
@media (max-width:520px){
  .hero{height:260px;}
  .hero-logo{width:88px;}
  .hero-tagline{font-size:15px;}
  .header-btn{display:none;}
}
