﻿body {
 margin: 0;
 font-family: 'Meiryo UI',Meiryo, メイリオ;
 letter-spacing: 0.05em;
}

a, p {
 margin: 0;
}

h1, h2 { 
 margin-left: 16px;
}

h1 {
 border-left: 8px solid #342659;
 padding-left: 8px;
}

h2 {
 border-bottom: 4px solid #342659;
}

h3 {
 border-bottom: 2px solid #342659;
 margin-left: 24px;
}

.wrapper {
 max-width: 1100px;
 margin: 8px auto;
 padding: 0 4%;
}

.b_backg {
 color: white;
 background-color: #342659;
}

.d_block {
 display: block; /* 要素下部の空白を消去 */
}

.top_ul {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  font-size: 1.25rem;
  justify-content: space-evenly;
}

.nav_item {
  list-style: none;
  margin: 0 36px;
  box-sizing: border-box;
  display: inline-block;
}

.nav_item a {
 text-decoration: none;
}

.nav_item a:link, .nav_item a:visited {
 color: white;
}

/* 900px以上では表示しない */
.flex_on_off_block {
 display: none;
}

/* TOP写真 */
.styled-image {
  margin:0 auto;
  width: 100%;
  max-width: 960px;
  border-radius: 8px;
 }

/* 司令写真 */
#portrait {
 width: 400px;
}

.organization-image {
 margin: 0 16px;
 width: 450px;
 min-width: 450px;
}

#scc_logo {
 width: 150px;
}

#logo_image {
 height:100px;
 margin: 8px;
}

#logo_mini {
 width: 70%;
}

.top_title {
 display: flex;
 align-items: center;
}

#logo_message {
 line-height: 1.4
}

#g_message {
 font-size: 20px;
 line-height: 1.7;
}

#footer {
 padding: 10px;
 text-align: center;
}

.pagename {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
}

.c_top-margin {
 margin-top: 8px;
}

.c_left-margin {
 margin-left: 8px;
}

.contents1 {
 display: flex;
 margin-left: 16px;
 align-items: flex-start;
}

.contents2 {
 margin-left: 16px;
}

.contents2 a, .contents3 a {
 color: black;
}

.contents3 {
 margin-left: 32px;
}

.contents4 {
 display: flex;
 align-items: flex-start;
 margin-left: 24px;
 align-items: center;
}

.contents4 p {
 margin-left: 16px;
}

.n_jpn {
 font-size: 35px;
 margin: 0;
}

.n_eng {
 font-size: 25px;
 margin: 0px 0px 0px 8px;
}

.text-align_right {
 text-align: right;
}

/* 900px以下で適用 */
@media (max-width: 900px) {
 .flex_on_off_flex {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
 }

 .flex_on_off_block {
  display: block;
 }

 /* 900px未満では表示しない */
 .flex_on_off_none {
  display: none;
 }

 /* 司令挨拶・ロゴマーク説明用 */
 .u900style_1 {
  flex-direction: column;
  align-items: center;
 }

 .namelogo-image {
  width: 80%;
  margin: auto;
 }

 #portrait {
  width: 200px;
 }

 #co_photo {
  align-items: center;
 }

 .organization-image {
  margin: 0 16px;
  width: 300px;
  min-width: 300px;
 }

}
/* 900px以下で適用ここまで */

/* 🍔 */
.hamburger {
  width: 40px;
  height: 30px;
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 3;
  display: block;
}

.hamburger span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: white;
  border-radius: 2px;
  transition: 0.4s;
}
/* 🍔 */

/* 🍔ハンバーガーがXに変形 */
#menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
/* 🍔ハンバーガーがXに変形 */

/* 🍔メニュー用記述 */
.menu-wrapper {
 position: relative;
}

/* オーバーレイ背景 */
.overlay {
 position: fixed;
 inset: 0;
 background: rgba(0,0,0,0.5);
 opacity: 0;
 pointer-events: none;
 transition: 0.4s;
 z-index: 1;
}

#menu-toggle:checked ~ .overlay {
 opacity: 1;
 pointer-events: auto;
}

/* メニュー本体 */
.menu {
 position: fixed;
 top: 0;
 left: -250px; /* 初期位置を左へ */
 width: 250px;
 heigth: 100%;
 background: #342659;
 box-shadow: 2px 0 8px rgba(0,0,0,0.2);
 transition: left 0.4s ease;
 z-index: 2;
}

#menu-toggle:checked ~ .menu {
 left: 0;
}

.menu ul {
 list-style: none;
 padding: 60px 20px;
}

.menu li {
 margin: 20px 0;
}

.menu a {
 text-decoration: none;
 color: white;
 font-size: 1.2rem;
 transition: color 0.3s;
}

.menu a:hover {
 color: #007bff;
}
/* 🍔メニュー用記述 */