/* =========================================================
   平川社会保険労務士事務所 - style.css
========================================================= */

:root{
  --green-main:   #19a233;
  --green-dark:   #3d9b41;
  --green-deep:   #2e7d32;
  --green-light:  #D7F2CD;
  --green-pale:   #f3faf3;
  --text-main:    #333333;
  --text-sub:     #666666;
  --white:        #ffffff;
  --max-width:    1120px;
  --font-jp: "Noto Sans JP", sans-serif;
}

*{ 
  box-sizing: border-box; 
}

html{ 
  font-size: 62.5%;
  scroll-behavior: smooth; 
  scroll-padding-top: 90px;
}

body{
  margin:0;
  font-family: var(--font-jp);
  color: var(--text-main);
  line-height: 1.7;
  letter-spacing: .03em;
  font-size: 1.6rem;
  background: var(--white);
}

img{ 
  max-width:100%; display:block; 
}

a{ 
  color:inherit; text-decoration:none; 
}

h1,h2,h3{ 
  margin:0; 
}

.br-sp{
  display: none;
}

.section-title{
  text-align:center;
  font-size: 4.0rem;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 24px;
}
.section-title::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--green-main);
}

.section-title.light{ 
  color: var(--white); 
}

.section-title.light::after{ 
  background: var(--white); 
}

/* =========================================================
   ヘッダー
========================================================= */
.site-header{
  background: var(--green-main);
  border-bottom: 1px solid #eee;
  position: sticky;
  top:0;
  z-index: 100;
}
.header-inner{
  max-width: 1480px;
  margin:0 auto;
  padding: 14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo{
  display:flex;
  flex-direction: column;
  gap: 4px;
}
.logo-img{
  height: 40px;
  width: auto;
}
footer .logo-img{
  max-width: 345px;
  object-fit: contain;

}
.logo-sub{
  margin:0;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: .1em;
  font-weight: 300;
}
.gnav{
  font-size: 1.8rem;
  display:flex;
  align-items:center;
  gap: 28px;
}
.gnav ul{
  list-style:none;
  display:flex;
  gap: 28px;
  margin:0;
  padding:0;
}
.gnav ul a{
  font-weight: 400;
  color: var(--white);
  letter-spacing: .05em;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: .2s;
}
.gnav ul a:hover{
  opacity: 0.8;
  transition: .2s;
}
.btn-contact{
  background: var(--white);
  color: var(--green-main);
  border: 1px solid var(--green-main);
  font-weight: 700;
  letter-spacing: .05em;
  padding: 10px 20px;
  border-radius: 2px;
  white-space: nowrap;
  transition: .2s;
}
.btn-contact:hover{ 
  background: var(--green-main); 
  border: 1px solid var(--white);
  color: var(--white);
}

/* =========================================================
   お知らせバー
========================================================= */
.notice-bar{
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  max-width: 460px;
  background: rgba(255,255,255,.95);
  border: 1px solid #F52427;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.notice-inner{
  padding: 16px ;
  display:flex;
  gap: 12px;
  align-items:center;
  font-size: 13px;
  color: var(--text-main);
}
.notice-icon{
  flex: 0 0 auto;
  width: 48px;
  height:48px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top: 2px;
}
.notice-title{
  font-size: 2.0rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.notice-text p{ 
  font-size: 1.6rem;
  margin: 0 0 4px; 
}
.notice-address{ 
  font-weight: 700; 
}

/* =========================================================
   ヒーロー
========================================================= */
.hero{
  position: relative;
  min-height: 460px;
  height: 85vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background: #223;
}
.hero-bg{
  position:absolute;
  inset:0;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 80%;
}
.hero-copy{
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 8%;
  margin: 0 auto;
}
.hero-copy h1{
  display: inline-block;
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  font-family: "Noto Serif JP", serif;
}
.hero-line{
  display: block;
  width: 100%;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--white);
}

/* =========================================================
   事務所紹介
========================================================= */
.intro{
  padding: 100px 0px 100px 40px;
  background: linear-gradient(180deg, var(--white) 0%, var(--green-pale) 100%);
}
.intro-inner{
  max-width: 1600px;
  margin: 0 auto;
}
.intro-visual{
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
}
.intro-deco{
  position: absolute;
  z-index: -1;
  top: calc(50% + 80px);
  left: -40px;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  background: var(--green-light);
}
.intro-photo{
  position: relative;
  z-index: 1;
  width: 58%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #ddd;
}
.intro-text{
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 46%;
  min-width: 300px;
  background: var(--white);
  padding: 56px 5.5%;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  line-height: 2;
  letter-spacing: 0.12em;
}
.intro-text p{
  margin: 0 0 20px;
  font-size: 15px;
}
.intro-text p:last-child{ 
  margin-bottom: 0; 
}
.intro-text span{
  color: var(--green-dark);
  border-bottom: 1px solid var(--green-dark);
  font-weight: 600;
}

/* =========================================================
   事業内容
========================================================= */
.business{
  background: url(/assets/img/bg-business.jpg) 0% 0% / cover no-repeat;
  padding: 100px 20px;
}
.business .section-title{ 
  color: var(--white); 
}
.business .section-title::after{ 
  background: var(--white); 
}
.business-grid{
  max-width: var(--max-width);
  margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.business-card{
  background: var(--white);
  padding: 36px 32px;
  display:flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.card-icon{
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 0;
}
.business-card-body{
  flex: 1;
  min-width: 0;
}
.business-card-body h3{
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-main);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--green-main);
}
.business-card-body p{
  font-size: 1.6rem;
  color: var(--text-main);
  margin: 0;
}

/* =========================================================
   社労士とは
========================================================= */
.about-sr{
  padding: 70px 20px;
  background: #F9FFF9;
}
.about-sr-inner{
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}
.about-sr-inner__h3{
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--green-light);
  border-left: 20px solid var(--green-main);
  padding: 16px;
  letter-spacing: .15em;
}
.about-sr-body{
  padding: 60px 6.9%;
  background-color: var(--white);
}

.about-sr-body__p{
  margin: 0 0 18px;
  font-size: 1.6rem;
  letter-spacing: .12em;
  line-height: 2;
}
.sr-list{
  list-style:none;
  margin: 0 0 20px;
  padding: 0;
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.sr-list__li{
  position: relative;
  padding-left: 30px;
  font-size: 1.6rem;
  letter-spacing: .1em;
  line-height: 2;
}
.sr-list__li::before{
  content:"■";
  position:absolute;
  left:0;
  top:2px;
  color: var(--green-main);
  font-size: 1.6rem;
}
.sr-list strong{
  font-weight: 700;
  font-size: 1.8rem;
}

/* =========================================================
   川バナー
========================================================= */
.river-banner{
  width:100%;
  max-height: 320px;
  overflow: hidden;
}
.river-banner img{
  width:100%;
  height: 320px;
  object-fit: cover;
  background: #ccc;
}

/* =========================================================
   事務所概要
========================================================= */
.profile{
  padding: 100px 20px;
  background: var(--white);
}
.profile-table-wrap{
  max-width: 800px;
  margin: 0 auto 50px;
  overflow-x: auto;
}
.profile-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 1.6rem;
}
.profile-table th,
.profile-table td{
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #C4C4C4;
  vertical-align: top;
  letter-spacing: .1em;
}
.profile-table th{
  width: 180px;
  background:var(--green-light);
  color: var(--text-main);
  font-weight: 700;
  line-height: 2;
  white-space: nowrap;
  text-align: center;
  letter-spacing: .12em;
  vertical-align: middle; 
}
.profile-table td{
  background: var(--white);
  color: var(--text-main);
}

.profile-table .first-child{
  border-top: 1px solid #C4C4C4;
}

.map-wrap iframe{
  width: 100%;
  height: 540px;
  object-fit: cover;
}
.office-photos{
  display:grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.office-photos img{
  width:100%;
  height: 260px;
  object-fit: cover;
  background: #ddd;
}

/* =========================================================
   お問い合わせ
========================================================= */
.contact{
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
  background: url(/assets/img/bg-contact.jpg) center / cover no-repeat;
}
.contact-bg{
  position:absolute;
  inset:0;
}
.contact-bg img{
  width:100%;
  height:100%;
  object-fit: cover;
  opacity: .18;
}
.contact-inner{
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin:0 auto;
}
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap:8px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  padding: 40px 24px;
  text-align:center;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.contact-card:hover{
  background: rgba(255,255,255,1);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.contact-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-main);
  color: var(--white);
  font-size: 24px;
  margin-bottom: 16px;
}
.contact-label{
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-main);
}
.contact-note{
  font-size: 1.5rem;
  color: var(--text-main);
}
.contact-value{
  font-size: 4.0rem;
  font-weight: 700;
  color: var(--green-main);
  margin: 0;
  letter-spacing: .1em;
}
.contact-value__mail{
  font-size: 3.2rem;
}

/* =========================================================
   フッター
========================================================= */
.site-footer{
  background: var(--green-main);
  padding: 80px 20px 20px;
  position: relative;
}
.footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--white);
  padding-bottom: 60px;
  margin-bottom: 60px;
}
.footer-title{
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
  font-size: 15px;
}
.footer-info p{ 
  color: var(--white);
  margin:16px 0 24px; 
  font-size: 1.6rem;
  letter-spacing: .1em;
}
.footer-info .tel{ 
  color: var(--white);
  font-size: 1.6rem;
  letter-spacing: .1em;
  transition: 0.3s;
}
.footer-info .tel:hover{
  opacity: 0.8;
  transition: 0.3s;
}
.footer-badges{ 
  color: var(--white);
  font-size: 1.6rem; 
  display: flex;
  gap:8px;
}
.to-top{
  cursor: pointer;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--green-main);
  position: fixed;
  right: 24px;
  bottom: 24px;
  color: var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction: column-reverse;
  gap: 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease, visibility .4s ease, background .3s, color .3s;
}
.to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover{
  background: var(--green-light);
  transition: .3s;
  color: var(--green-main);
}
.to-top-arrow{
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 2px;
  transition: .3s;
}
.to-top-label{
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.footer-bottom {
  max-width: 1120px;     
  margin: 0 auto;        
  padding: 0 20px;        
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr; 
  color: var(--white);
}

.copyright {
  grid-column: 2;        
  margin: 0;
  text-align: center;
  font-size: 1.3rem;
}

.footer-bottom a {
  grid-column: 3;        
  justify-self: end;    
  font-size: 1.6rem;
}

/* =========================================================
   レスポンシブ
========================================================= */
@media (max-width: 860px){
  html {
    scroll-padding-top: 60px;
  }
  .br-sp{
    display: block;
  }
  .gnav{ gap: 14px; }
  .gnav ul{ display:none; }
  .notice-bar{ left: 16px; right: 16px; top: 16px; max-width: none; }
  .intro{ 
    padding: 60px 20px;
    overflow: hidden;
  }
  .intro-visual{ display: block; }
  .intro-deco{ 
    right: -30px;
    left: auto;
    top: 64px;
    width: 180px;
    height: 180px;

  }
  .intro-photo{
    width: 85vw;
    max-width: 100vw;
    aspect-ratio: 4 / 3;
    margin-left: -20px;
  }
  .intro-text{
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    margin-top: -40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding: 56px 24px 32px;
  }
  .intro-inner{ 
    grid-template-columns: 1fr; 
  }
  .about-sr-body{
    padding: 16px;
    letter-spacing: .05em;
  }
  .about-sr-body__p{
    font-size: 1.6rem;
    letter-spacing: .05em;
  }
  .sr-list__li,.sr-list strong{
    font-size: 1.6rem;
  }
  .about-sr-inner__h3{
    font-size: 2.0rem;
    padding: 8px 10px;
    border-left: 8px solid var(--green-main);
    margin: 0px auto 16px;
    letter-spacing: .08em;
  }
  .business .section-title{
    margin-bottom: 40px;
    padding-bottom: 16px;
  }
  .business,.about-sr,.profile,.contact{
    padding-block: 60px;
  }
  .business-grid{ 
    grid-template-columns: 1fr; 
    gap:16px;
  }
  .business-card:last-child{ 
    grid-column: auto; 
  }
  .business-card{ 
    gap: 10px; 
    padding: 16px 14px;
  }
  .river-banner img{
    height: 260px;
  }
  .notice-icon{
    width: 30px;
    height: 30px;
  }
  .notice-text p{
    font-size: 1.5rem;
    line-height: 1.5;
  }
  .notice-inner{
    padding: 10px 16px;
  }
  .notice-inner .notice-title{
    font-size: 1.7rem;
    margin-bottom: 8px;
  }
  .card-icon{
    width: 54px; 
    height: 54px; 
  }
  .business-card-body h3{ 
    font-size: 18px; 
    padding-bottom: 4px;
  }
  .hero-copy h1{ font-size: 3.0rem; }
  .map-wrap{
    height: 260px; 
  }
  .map-wrap iframe{
    height: 100%; 
  }
  .office-photos img{
    height: 160px; 
  }
  .office-photos{ grid-template-columns: 1fr 1fr; }
  .contact-grid{
    grid-template-columns: 1fr; 
    gap:16px;
  }
  .contact-card{
    padding: 24px 8px;
  }
  .contact-value{
    font-size: 3.2rem;
  }
  .contact-value__mail{
    font-size: 2.2rem;
  }
  .footer-inner{ 
    flex-direction: column; 
    align-items: flex-start;
    padding-bottom: 40px;
    margin-bottom: 40px;

  }
  .site-footer{
    padding: 60px 20px 16px;
  }
  .footer-badges{ 
    text-align:left; 
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-table th{ 
    width: 95px;    
    font-size: 1.5rem;
  }
  .profile-table th, .profile-table td{
    padding: 8px;
    letter-spacing: .05em;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .footer-info{
    margin-bottom: 16px;
  }
  .footer-info p{
    margin: 8px auto 16px;
  }
  footer .logo-img{
    max-width: 310px;
  }
  .copyright {
    grid-column: 1;
    order: 2;      
    font-size: 1.2rem;
  }
  .footer-bottom a {
    font-size: 1.5rem;
    grid-column: 1;
    justify-self: center;
    order: 1;          
  }
  .to-top{
    width: 56px;
    height: 56px;
    right: 8px;
    bottom: 8px;
  }
  .to-top-arrow{
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px){
  .hero{ min-height: 560px; }
  .hero-copy{ margin-top: 150px; }
  .section-title{ 
    font-size: 24px;
    padding-bottom: 16px;
    margin-bottom: 40px;
  }
}


/* ==========================================
   スマホ用ドロワーメニュー（メニュー部分のみ）
   ========================================== */
@media  (min-width: 990px) {
  .hamburger-btn {
    display: none;
  }
  
}
@media  (max-width: 989px) {
  .gnav{
    display: none;
  }
  .hamburger-btn {
    position: fixed;
    right: 0px;
    top:20px;
  }
  .logo-img{
    max-width: 83%;
    object-fit: contain;
  }
  .logo-sub{
    display: none;
  }
  /* ==========================================
   ハンバーガーボタン
   ========================================== */

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around; 
  position: fixed;
  top: 12px;  
  right:10px; 
  z-index: 100; 
  width: 44px;  
  height: 44px;
  background: transparent;
  border: none;
  padding: 11px 8px;
  cursor: pointer;
  box-sizing: border-box;
}

/* 3本線の共通スタイル */
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 1px; 
  background-color: var(--white); 
  transition: transform 0.3s ease, opacity 0.3s ease; /* アニメーション速度 */
}

/* ----------------------------------
   ×（クローズ）状態のアニメーション
   JavaScriptで .is-active が付いた時のスタイル
   ---------------------------------- */

.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(40deg);
  background-color: var(--green-main); 
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-40deg);
    background-color: var(--green-main); 
}
}
/* --- ドロワーメニュー本体 --- */
.drawer-menu {
  display: block;
  position: fixed;
  top: 0;
  right: 0;                     
  transform: translateX(100%);            
  width: 300px;            
  max-width: 80%;          
  height: 100vh;
  background-color: #fff;
  z-index: 90;
  transition: transform 0.3s ease; 
  padding: 80px 24px 24px;
  box-sizing: border-box;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

/* 開いた状態：画面右端にスライドイン */
.drawer-menu.is-active {
  transform: translateX(0); 
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav-list a {
  display: block;
  padding: 16px 0;
  color:var(--text-main);
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: .12em;
}
.drawer-menu__contact{
  margin-top: 16px;
  background-color: var(--green-main);
}
.drawer-menu__contact a{
  color: var(--white);
}

.drawer-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* オーバーレイ表示状態 */
.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}



