/* ==========================================================================
   common.css
   全ページ共通のスタイル（ヘッダー・ページ見出し・フッター・レイアウト部品）

   ■ 読み込み順（各HTMLの <head>）
     1. destyle.css（リセットCSS）
     2. common.css   … このファイル
     3. ページ固有CSS … style.css / news.css / publication.css など
     4. hamburger.css … スマホ用メニュー（最後に読み込む）

   ■ 編集のルール
     ・ヘッダー／フッター／ページ上部の見出し帯など「どのページでも同じ見た目」に
       したいものは、ここだけを編集してください（全ページに反映されます）。
     ・特定のページだけ変えたい場合は、そのページ固有のCSSに上書きを書きます。
   ========================================================================== */

/* --------------------------------------------------------------------------
   ベース
   -------------------------------------------------------------------------- */
html {
  font-family: 'Noto Sans JP', sans-serif;
}

* {
  margin: 0;
  padding: 0;
}

a,
li {
  color: black;
  text-decoration: none;
  list-style: none;
}

/* Poppins フォントを使う箇所（英字見出しなど）に付けるクラス */
.pop {
  font-family: 'Poppins', sans-serif;
}

/* --------------------------------------------------------------------------
   レイアウト部品
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}
@media screen and (max-width: 1090px) {
  .container {
    width: 100%;
    max-width: 100%;
  }
}

.container2 {
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
  position: relative;
}

.container3 {
  width: 60%;
  margin: 0 auto;
  position: relative;
}

.flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.cent {
  text-align: center;
  padding: 20px;
}

/* --------------------------------------------------------------------------
   ヘッダー（header.html）
   ※ スマホ用メニューの開閉は hamburger.css
   -------------------------------------------------------------------------- */
header {
  padding: 27px 0;
}

@media screen and (max-width: 1090px) {
  header .logo {
    margin-left: 8%;
  }
}

.logo span {
  color: #80BA4A;
}

.header_menu li {
  margin-left: 40px;
  transition: opacity 0.3s ease;
}
@media only screen and (max-width: 768px) {
  .header_menu li {
    margin: 20px 16px 0;
  }
}

/* メニューのどれかにホバーしたら、他の項目を薄くする */
.header_menu:has(li:hover) li:not(:hover) {
  opacity: 0.5;
}

.link {
  margin-left: 1rem;
  text-align: center;
}

/* ホバーで下線が中央から伸びるリンク */
.hover-Uline {
  position: relative;
  cursor: pointer;
  text-decoration: none;
}
.hover-Uline:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;               /* 線の上下位置 */
  width: 100%;
  height: 2px;                /* 線の太さ */
  background-color: #9e9c9c;  /* 線の色 */
  transform: scale(0, 1);
  transform-origin: center;
  transition: transform .2s;
}
.hover-Uline:hover:before {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   ページ上部の見出し帯（<section id="heading" class="heading_inner pop">）
   -------------------------------------------------------------------------- */
#heading {
  background-image: url(../images/main/hero.avif);
  background-position: center;
  background-size: cover;
  height: 150px;
  display: flex;
  align-items: center;
  margin-bottom: 90px;
  overflow: hidden;
}

.heading_inner h1 {
  text-align: center;
  color: rgb(255, 255, 255);
  width: 100%;
  font-size: 40px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   フッター（footer.html）
   -------------------------------------------------------------------------- */
.footer-1 {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 25px 10px 10px;
  background-color: #2c3841;
  margin-top: 50px;
}

.footer-1__logo {
  width: 220px;
  height: auto;
  margin-bottom: 20px;
}

.footer-1__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style-type: none;
  margin: 0 0 .9em;
  padding: .5em;
}

.footer-1__link {
  color: #fff;
  font-weight: 200;
  text-decoration: none;
  padding: 0 1.5em;
  border-right: 1px solid #fff;
}

.footer-1__list li:last-child .footer-1__link {
  border-right: none;
}

.footer-1__copyright {
  margin: 0;
  color: #ffffffb3;
  font-weight: 200;
  font-size: .8em;
}

@media only screen and (max-width: 768px) {
  .footer-1__list {
    flex-wrap: wrap;
    line-height: 30px;
  }
}
