@charset "utf-8";

:root {
  --header-width: 75%;
}

body {
  background-color: #f0f0f0;
  font-size: 16px;
  /*font-family: sans-serif, 'Hiragino Sans','arial','Meiryo';*/
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  padding-top: 40px;
  line-height: 1.6;
}

.header {
  display: flex;
  flex-direction: column; 
  align-items: center;    
}

.header-top {
  display: flex;
  /*align-items: stretch;*/
  width: var(--header-width);
}

.header-img {
  flex: 0 0 auto; /* flex-grow: 0;  flex-shrink: 0; flex-basis: auto; */
  width: 60%; 
}
.header-img img {
  height: auto; 
  display: block;
  width: 100%; 
}

.header-box {
  flex: 1;         
  background: #3974C5;
  display: flex;
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央 */
  text-align: center;
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;     
}

.header-text h1{
  font-size: 20px;
  font-weight: bold;
  color: rgb(255,255,255);
}
.header-text p{
  font-size: 12px;
  color: rgb(255,255,255);
}


.nav {
  display: flex;
  width: var(--header-width);
  gap:12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.nav-item {
  width: 40%;
  height: 70px;

  flex: 1;
  display: flex;  
  align-items: center;
  flex-direction: column;
  justify-content: center;

  border: 2px solid #3D5A8D;
  background: #fff;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.2s;
}

.nav-title {
  color: #3D5A8D;
}
.nav-sub {
  font-size: 0.8em;
  color: #3D5A8D;
}

/* active */
.nav-item.active {
  background: #3D5A8D;
}
.nav-item.active .nav-title,
.nav-item.active .nav-sub {
  color: #fff;
}

/* hover */
.nav-item:hover {
  background: #3D5A8D;
}
.nav-item:hover .nav-title,
.nav-item:hover .nav-sub {
  color: #fff;
}

/* active and hover*/
.nav-item.active:hover {
  background: #fff;
}
.nav-item.active:hover .nav-title,
.nav-item.active:hover .nav-sub {
  color: #3D5A8D;
}




.main {
  background: #fff;
  width: var(--header-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: 40px;
  padding-bottom: 200px;
}

.main-title {
  text-align: center; 
  margin-bottom: 15px;
  color: #3D5A8D;
  font-weight: bold;
}

.main figure{
  width: 70%;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}
.main figure.small{
  width: 30%;
}
.main figure img {
  width: 100%;
}

.title {
  font-weight: bold;
  width: 85%;
  margin: 20px auto 0;
}

.title-line {
  width: 85%;
  height: 2px;
  background: rgb(200,200,200);
  margin: 10px auto 10px;
}

.main-sub_title {
  text-align: center; 
  margin-bottom: 50px;
  color: #3D5A8D;
  font-size: 12px;
}

.content {
  width: 85%;
  margin: 0 auto;
  margin-bottom: 30px;
  display: flex;
  gap: 10px;           
  align-items: flex-start;
}
.content-img {
  flex: 0 0 50%; 
}
.content-img img {
  width: 100%;
  height: auto;
  display: block;
}
.content-text {
  flex: 1;
  text-align: justify;
}

.main p{
  width: 85%;
  margin: 0 auto;
}

/* --------- Member page --------------*/

.profile {
  width: 85%;
  display: flex;
  align-items: flex-start;
  margin: 0 auto;
  margin-top: 80px;
}
.profile-body {
  margin-top: 10px;
  flex: 1;
}
.profile-body h1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}
.profile-body h3 {
 font-weight: bold;
 margin-top: 10px;
}
.profile-body div{
  width: 85%;
}

.profile-link {
  background-color: #9AA2C3;
  color: #fff;              
  padding: 5px 10px;
  font-size: 10px;
  text-decoration: none;     /* 初期は下線なし */
  border-radius: 4px;        /* 少し丸く（任意） */
}
.profile-link:hover {
  text-decoration: underline;
}
.profile-photo {
  width: 15%;
  height: auto;
  margin-right: 5%;
}
.profile-photo img {
  width: 100%;
  height: auto;
}
.separator_name{
  width: 100%;
  margin-top: 5px;
  border: none;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
}









/* スマホ対応（任意） */
@media (max-width: 720px){
  .profile{
    flex-direction: column;
  }
  .profile-photo{
    width: 100%;
    height: 220px;
  }
}
