@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --border-color: #ccc;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display: inline;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}

a img {
	display: inline-block;
}

a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}
.center {
	text-align: center;
}

summary {
  display: grid; 
  grid-template-columns:  1fr 24px;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  padding: 16px 24px;
  border: 1px solid #808080;
  font-weight: bold;
  color: #000000;
  &::-webkit-details-marker {
    display: none;
  }
}
.icon {
  display: block;
  position: relative;
  width: 24px;
  transform-origin: center 43%;
  transition: transform 0.4s;
  &::before, &::after {
    content: "";
    position: absolute;
    display: block;
    width: 15px;
    height: 3px;
    background-color: #7050ff;
  }
  &::before {
    left: 0;
    transform: rotate(45deg);
  }
  &::after {
    right: 0;
    transform: rotate(-45deg);
  }
}

details[open] .icon {
  transform: rotate(180deg);
}
.content {
  background-color: white;
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/*ヘッダー
-------------------------------------*/
.head {
	display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
}

.head h1 { 
    padding: 1rem 0;
	font-weight: 700;
	letter-spacing: 3px;
}
.header-logo_left {
	margin-left: 0px;
	font-size: 3.0rem;
	padding: 1rem 0 0 0;
/*
	position: relative;
	height: 100px;
	right: 0;
	height: auto;
*/
}

.header-logo_right {
	position: absolute;
	top: 40px;
	right: 0px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.heade-logo_right img {
	width: 15x;
	height: 15px;
	cursor: pointer;
}

.heade-logo_right a {
	display: inline-block;
}

.heade-logo_right img:hover {
	opacity: 0.7;
}

nav ul {
	display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 20px;
    font-weight: bold;
    list-style: none;
	margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}

nav li {
    display: block;
    flex: 0 0 15%;
}
nav li a {
    text-decoration: none;
    text-align: center;
}
nav a:hover {
    text-decoration: underline;
}
nav a {
    padding: 1rem;
}

@media screen and (min-width: 769px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.head {
	flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}
.telbox {
	margin-left: 0;
	text-align: center;
}
.head #open,#close  {
    position: absolute;
    top: 28px;
    right: 12px;
    }
nav ul {
	flex-direction: column;
}

nav li {
	padding-top: 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 0;
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}


/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
    font-family: "Helvetica",sans-serif;
}

.page-title {
  background-color: #F1F1F1;
  height: 50px;                 /* 背景帯の高さ（お好みで調整） */
  display: flex;                /* フレックスボックスで中央寄せ */
  align-items: center;          /* 縦方向中央寄せ */
  margin-bottom: 0.1rem;
}

.page-title h4 {
  margin: 15;                    /* デフォルト余白を消す */
  font-size: 3rem;            /* 見出しの大きさ（お好みで） */
}

/*　Figures for the top page
-------------------------------------*/
.top_figure {
      display: flex;         /* 左右に並べる */
      gap: 20px;             /* カラム間の余白 */
      align-items: flex-start; /* 上揃え */
}
.top_figure .left {
      display: flex;
      flex-direction: column; /* 縦に並べる */
      gap: 20px;              /* 上下の余白 */
      flex: 1;                /* 横幅の比率調整（右とバランスをとる） */
}
.top_figure .left img {
      width: 80%;            /* 横幅を揃える */
      height: auto;
 }
.top_figure .right {
      flex: 1;                /* 左右の比率を1:1に */
}
.top_figure .right img {
      width: 100%;
      height: auto;
}

/* photo for the member page (uniform squares) */
.member_photo {
  display: inline-block;     /* ← セミコロン必須 */
  width: 120px;              /* 好みの枠サイズに調整可（例：160px） */
  height: 130px;             /* 正方形にそろえる */
  border-radius: 5px;        /* 角丸はお好みで */
  overflow: hidden;          /* はみ出た部分をトリミング */
  vertical-align: middle;
}

.member_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* 枠いっぱいに“切り抜き表示” */
  object-position: center;   /* 中央を基準にトリミング */
  display: block;
}

/* レティナ対策：モバイルでは少し大きめにしてもOK */
@media (max-width: 768px) {
  .member_photo {
    width: 140px;
    height: 140px;
  }
}

ul {
  list-style-position: outside; /* マーカーは外側に */
  padding-left: 1.8em;         /* 左余白を調整 */
}

li {
  text-indent: -1.2em;         /* 行頭を少し戻すことでぶら下がり防止 */
  padding-left: 1.2em;         /* 全体のバランスをとる */
}
/*キャッチタイトル
-------------------------------------*/
h2.catch {
	text-align: center;
	color: var(--link-color);
	font-size: 4.0rem;
	margin-bottom: 3rem;
}

h4.title {
	font-size: 24px;
	margin: 18px;
	font-family: "Helvetica", "Arial", sansserif;
}

/*フッター
-------------------------------------*/
footer {
    background-color: var(--white-color);
    padding: 3rem 0;
}
footer h5 {
    border-bottom: 1px solid var(--border-color);
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #000033;
    color: white;   
}
.copyright a {
    color: white;
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background: var(--link-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background: var(--linkhover-color:);
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}

/* ===== Mobile fixes (added) ===== */
.top_figure img { width: 100%; height: auto; }

@media (max-width: 768px) {
  .top_figure { display: flex; flex-direction: column; gap: 16px; }
  .left, .right { flex: 1 1 auto; }
  .left img, .right img { width: 100%; height: auto; }
  .header-logo_right { position: static; margin-top: 8px; justify-content: flex-start; }
  #close { display: none; }
}



/* ===== Header logo overlap fix (desktop & mobile) ===== */
.head { display: flex; align-items: center; justify-content: space-between; position: relative; }
.header-logo_left img { height: auto; max-height: 64px; width: auto; }

/* remove absolute positioning that caused overlap */
.header-logo_right { position: static; right: auto; top: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-logo_right img { height: 36px; width: auto; }

@media (min-width: 1024px) {
  .header-logo_right img { height: 44px; }
}


/* ===== Header logo size enlarged (1.5x) ===== */
.header-logo_left img { max-height: 96px; }
.header-logo_right img { height: 54px; }
@media (min-width: 1024px) {
  .header-logo_right img { height: 66px; }
}

.photo1 {
 text-align:center;
}

.photo2 {
 text-align:right;
}

/* Reduce image width to 40% on desktop, keep 100% on mobile */
@media (min-width: 769px) {
  .photo1 img, .photo2 img { width: 40% !important; height: auto; }
}
@media (max-width: 768px) {
  .photo1 img, .photo2 img { width: 100% !important; height: auto; }
}

