/* Reset and base styles */
html {
  box-sizing: border-box;
}

* {
  font-family: 'BIZ UDPGothic', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, 'メイリオ', sans-serif;
  /*text-align: justify;*/
  word-wrap: break-word;
  letter-spacing: 0.05em;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  scrollbar-base-color: #A7DAD9;
}

a {
  text-decoration: none;
  color: #333;
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header, main, footer {
  width: 100%;
}

/* Header styles */
header {
  /*display: flex;*/
  /*justify-content: space-between;*/
  /*align-items: center;*/
  /*padding: 1rem 2rem;*/
  /*border-bottom: 1px solid #ddd;*/
  /*color: #666666;*/
  /*z-index: 1;*/
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  max-height: 50px;
  margin-right: 1rem;
}

.office-name {
  font-size: 1.5rem;
}

.header-right, .header-nav {
  display: flex;
  gap: 1rem;
}

.header-right a {
  font-size: 1.1rem;
}

.header-lang {
  margin-left: 2rem;
  vertical-align: top;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.header-nav.active {
  display: block;
}

/* Main content styles */
main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem;
}



main section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

main section a {
  display: block;
}

main section img {
  width: 100%;
  height: auto;
}

/* Footer styles */
footer {
  padding: 1rem 2rem;
  border-top: 1px solid #ddd;
  text-align: center;
  color: #666;
  margin-top: 3rem;
}
@media screen and (max-width: 768px) {
  footer {
    margin-top: 1rem;
  }
}

/* Banner text styles */
.banner-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  height: 120px;
}

.banner-text a {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
}

.banner-text a:hover {
  color: #666;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    margin-top: 1rem;
  }

  .header-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  main {
    padding: 0;
  }
}

/* Hero Section */
/*#hero {*/
/*  position: relative;*/
/*  text-align: center !important;*/
/*  width: 100%;*/
/*  display: block;*/
/*}*/

/*.hero-image {*/
/*  max-height: 500px;*/
/*  overflow: hidden;*/
/*  width: 100%;*/
/*}*/

/*.hero-text {*/
/*  position: absolute;*/
/*  top: 50%;*/
/*  left: 50%;*/
/*  transform: translate(-50%, -50%);*/
/*  color: #fff;*/
/*  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);*/
/*}*/

/* News Section */
#news .news-list {
  /*display: block;*/
  /*flex-wrap: wrap;*/
  /*gap: 1rem;*/
  /*width: 100%;*/
}

@media (min-width: 992px){
  #news li {
    gap: 2.5rem;
  }
}
/* Contact Section */
#contact {
  display: block;
  /*margin-top: 2rem;*/
  width: 100%;
}

.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

/* people Section */
#people, #lawyer, #pa, #newspage {
  margin-top: 75px;
}
.pa-category-text h3::before {
  margin-right: 1rem;
  content: '';
  width: 2rem;
  height: 3px;
  display: inline-block;
  vertical-align: middle;
  background: #dca44d;
}

#people h3::after, .profile-text h3::after, #news h2::after, #contact h2::after, .pa-category-text h3::after {
  margin-left: 1rem;
  content: '';
  width: 2rem;
  height: 3px;
  display: inline-block;
  vertical-align: middle;
  background: #dca44d;
}

#newspage h5.news-date::after  {
  margin-left: .5rem;
  content: '';
  width: 1rem;
  height: 2px;
  display: inline-block;
  vertical-align: middle;
  background: #dca44d;
}

/* Lawyers Section */
.lawyers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.positions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.profile-detail {
  padding: 80px 0 0 0;
}


.person-profile-header {
  background: #5D6166;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 0 calc(50vw - 50%);
}

.profile-text h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.profile-text h3:first-child {
  margin-top: 0;
}

.profile-text h4 {
  font-size: 1.25rem;
}

.person-name {
}

.team-position {
  color: #F6D312;
}

.person-contact-info, .pa-category-list {
  background: #F1F1F0;
  min-height: 100vh;
}

.person-contact-info a, .pa-category-text a, .profile-detail a, #news a, #contact a {
  text-decoration: underline;
  color: #1D42A6;
  display: inline;
}

.person-contact-info .contact-list li, .person-contact-info .contact-list li a {
  letter-spacing: 0;
  margin-bottom: .5rem;
  font-size: .9rem
}

.pa-category-list li {
  border-bottom: 1px solid #dedede;
}

.pa-category-list li a {
  padding: 10px 0;
  display: block;
}

.letter-space-narrow {
  letter-spacing: -0.05em !important;
}

.practice-areas .icon-box, .practice-areas .icon-box-muted {
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  transition: all ease-in-out 0.4s;
  background: #fff;
}
.practice-areas .icon-box:hover {
  transform: translateY(-10px);
}
.practice-areas .icon-box h4, .practice-areas .icon-box-muted h4 {
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 24px;
}
.practice-areas .icon-box-muted h4 {
  color: #212529;
  font-weight: normal;
}
.practice-areas .icon-box h4 a {
  color: #37517e;
  transition: ease-in-out 0.3s;
}

.practice-areas .icon-box p, .practice-areas .icon-box-muted p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/* News area */
#newspage .list-group-item {
  padding: 0;
  border-color: #5D6166;
  margin-top: 2rem;
}

.news-date {
  font-size: 1.5rem; /* 日付のフォントサイズ */
  color: #ffffff; /* ブートストラップのプライマリーカラー */
  background: #5D6166;
  padding: 0.5rem 1rem; /* 日付のパディング */
  margin-bottom: 0.5rem; /* 日付と内容の間隔 */
}

.news-content {
  font-size: 1.2rem; /* コンテンツのフォントサイズ */
  padding: 0.5rem 1rem;
}



/* Responsive styles */
@media screen and (max-width: 768px) {
  .positions {
    grid-template-columns: 1fr;
  }

  .profile-detail {
    padding: 3rem 0;
    margin: 0 -2rem;
  }

  .person-profile-header {
    padding: 1rem 2rem;
  }

  .person-contact-info {
    height: auto;
  }
}



/* 既存のCSSに変更を加えた部分 */

.lawyer {
  position: relative;
  width: 100%;
}

.lawyer h4 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
}

.lawyer:hover h4 {
  color: #dca44d;
}

.lawyer p {
  margin-top: 0;
}

.lawyer:hover {
  /*background-color: #D3ECED;*/
}

.lawyer-image {
  position: relative;
  margin-bottom: 1.25rem;
}

.lawyer img {
  /*object-fit: cover;*/
  /*position: absolute;*/
  /*top: 0;*/
  /*left: 0;*/
  width: 100%;
  /*height: 100%;*/
  /*padding-top: 160%;*/

}

.lawyer .link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all .3s ease-in-out;
  opacity: 0;
  background: rgba(81,91,120,.2);
}
.lawyer:hover .link {
  opacity: 0.8;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  height: 75px;
  background: rgb(0, 115, 208);
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, .5);
  /*background: linear-gradient(rgb(0, 115, 208), rgb(255, 255, 255));*/
}

#header.header-scrolled, #header.header-inner-pages {
  background: rgba(40, 58, 90, 0.9);
}

#header .logo {
  font-size: 30px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#header .logo a {
  color: #fff;
}

#header .logo img {
  max-height: 40px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: #47b2e4;
}

.navbar .getstarted {
  padding: 8px 20px;
  margin-left: 30px;
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  border: 2px solid #47b2e4;
  font-weight: 600;
}

.navbar .getstarted:hover {
  color: #fff;
  background: #31a9e1;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  font-weight: 500;
  color: #0c3c53;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
  color: #47b2e4;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation
*/
.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(40, 58, 90, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 10px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a {
  padding: 10px 20px;
  font-size: 15px;
  color: #37517e;
}

.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a {
  color: #47b2e4;
}

.navbar-mobile .getstarted {
  margin: 15px;
  color: #37517e;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul li:hover > a {
  color: #47b2e4;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 90vh;
  /*background: #37517e;*/
  background-image:  url("/img/top_main.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  margin-top: 75px;
  z-index: 30;

}

#hero .container {
  padding-top: 72px;
  backdrop-filter: blur(12px);
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
}

#hero h2 {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 50px;
  font-size: 24px;
}

@media (max-width: 991px) {
  #hero {
    height: 100vh;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }
  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

