/* 根岸会計事務所 — 旧サイトの見た目を再現したスタイル */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:#fff;color:#363636;
  font-family:メイリオ,Meiryo,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","Hiragino Sans",Osaka,"ＭＳ Ｐゴシック",sans-serif;
  font-size:13px;line-height:20px;
}
img{max-width:100%;height:auto;vertical-align:bottom;border:0}
a{color:#1f72b9;text-decoration:none}
a:hover{text-decoration:underline}
p{margin:0 0 10px}
b,strong{font-weight:bold}
hr{height:0;border:0;border-top:1px solid #ddd;border-bottom:1px solid #fff;margin:20px 0}
.mincho{font-family:"ヒラギノ明朝 Pro W6","Hiragino Mincho Pro",HGS明朝E,"ＭＳ Ｐ明朝",serif}
.c{text-align:center}
.clearfix::after{content:"";display:table;clear:both}

/* 外枠 */
.container{max-width:965px;margin:0 auto;padding:0 12.5px;background:#fff}
.site-header{padding-top:20px;min-height:68px}
.site-header h1,.site-header p{margin:0 0 10px;font-size:13px;font-weight:normal;text-align:center;line-height:20px}

/* モジュール */
.mod{margin-bottom:20px}
.cols3{display:flex;gap:18.5px}
.cols3>div{flex:0 0 calc((100% - 37px)/3);max-width:calc((100% - 37px)/3)}
.cols3 img{display:block;width:100%}
.cols3 .txt{margin-top:6px}

/* 見出し */
h3,h4{font-weight:normal;margin:0 0 10px}
h3.h-line{
  font-size:18px;line-height:21.6px;color:#333;background:#fff;
  padding:9px 10px 7px 32px;border-bottom:3px solid #000;position:relative;
}
h3.h-line::before{
  content:"";position:absolute;left:4px;top:8px;width:22px;height:22px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23333'%3E%3Ccircle cx='12' cy='6.5' r='3.6'/%3E%3Ccircle cx='17.2' cy='10.3' r='3.6'/%3E%3Ccircle cx='15.2' cy='16.3' r='3.6'/%3E%3Ccircle cx='8.8' cy='16.3' r='3.6'/%3E%3Ccircle cx='6.8' cy='10.3' r='3.6'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23fff'/%3E%3Cpath d='M11 19.5c-1 1.6-2.4 2.8-4.2 3.3' stroke='%23333' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") no-repeat center/contain;
}
h3.h-bar{
  font-size:18px;line-height:21.6px;color:#fff;
  padding:11px 10px 8px 14px;
  background:#939393 linear-gradient(to bottom,#a2a2a2 0%,#7d7d7d 48%,#6a6a6a 52%,#808080 100%);
  text-shadow:0 1px 1px rgba(0,0,0,.25);
}
h4.h-arrow{
  font-size:16px;line-height:19.2px;color:#000;
  padding:10px 10px 9px 22px;border-bottom:1px dotted #a4a4a4;position:relative;
}
h4.h-arrow::before{
  content:"";position:absolute;left:4px;top:14px;
  border-style:solid;border-width:6px 0 6px 9px;border-color:transparent transparent transparent #000;
}

/* 画像回り込み */
.float-r{float:right;margin:0 0 6.5px 13px}
.float-l{float:left;margin:0 13px 6.5px 0}
.w30{width:30%}.w40{width:40%}.w50{width:50%}

/* フッター */
.site-footer{border-top:1px solid #e8e8e8;margin-top:20px;padding-top:20px}
.site-footer .f-logo{margin-bottom:20px}
.site-footer .f-text{text-align:center}
.site-footer .f-bottom{display:flex;justify-content:space-between;align-items:flex-start;margin-top:40px}
.site-footer .f-bottom a{color:#333}
.site-footer address{font-style:normal;text-align:right;margin:0 0 20px}

/* プライバシーポリシー（モーダル） */
.modal{position:fixed;inset:0;z-index:100;display:none;background:rgba(0,0,0,.5);padding:40px 16px;overflow:auto}
.modal.open{display:block}
.modal .box{max-width:720px;margin:0 auto;background:#fff;border-radius:4px}
.modal .hd{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #e5e5e5;font-size:16px;font-weight:bold}
.modal .hd button{background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:#666}
.modal .bd{padding:18px}
.modal .bd h5{font-size:14px;margin:18px 0 8px}

/* 問合せフォームのページ */
.form-page h2{font-size:18px;font-weight:normal;margin:0 0 16px}
.policy-box{height:260px;overflow:auto;border:1px solid #ccc;padding:12px;margin:0 0 20px;background:#fafafa}
.form-embed iframe{display:block;width:100%;height:1500px;border:0}
.form-embed .placeholder{padding:40px 12px;text-align:center;border:1px dashed #ccc}

/* スマホ */
@media (max-width:767px){
  .container{padding:0 23px}
  .site-header{padding-top:2px}
  .cols3{display:block}
  .cols3>div{max-width:none;margin-bottom:20px}
  .cols3>div:last-child{margin-bottom:0}
  .float-r,.float-l{float:none;width:100%;margin:0 0 10px}
  .site-footer .f-bottom{flex-direction:column;gap:8px}
  .site-footer address{text-align:left}
}
