/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
	color: #222;
	font-size: 1em;
	line-height: 1.4;
	font-family: "リュウミン M-KL" , "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif; 
	scroll-behavior: smooth;
	word-break: keep-all;
	line-break: strict;
	overflow-wrap: anywhere;
}

.gothic {
	font-family: "ゴシックMB101 B", "Gothic MB101 Bold", "Hiragino Sans", "Arial", "Yu Gothic", "Meiryo", sans-serif;
}

h1,h2 {
	font-weight: normal;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
	margin: 0;
	background-image: url("/img/body_background.jpg");
	background-repeat: repeat-y;
	background-position: top;
}

h1 {
	font-size: 2.5em;
}

/*
 * header
 */
#header {
	width: 100%;
	height: 500px;
	background-image: url("/img/header_background.jpg");
	background-repeat: no-repeat;
	background-position: center;
}

#header-body {
	width: 100%;
	max-width: 800px;
	height: 100%;
	margin: 0 auto;	
}

#header .copy {
	width: 640px;
	height: 81px;
	display: block;
	position: relative;
	top: 95px;
	left: 0;
}

#header .logo {
	width: 350px;
	height: 95px;
	display: block;
	position: relative;
	top: 140px;
	left: 50px;
}

/*
 * content
 */
#content {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.content-body {
	display: flex;	
}

#content1 {
	flex-wrap: nowrap;
	justify-content: unset;
}

#content1 .pane1 {
	flex-grow: 1;
	min-width: 600px;
}

#content1 .title {
	display: block;
	width: fit-content;
	margin-top: 50px;
	padding-bottom: 25px;
	padding-right: 50px;
	background-image: url("/img/content1_title_back.png");
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: 500px;
}

#content1 .pane-body {
	margin-left: 50px;
	margin-right: 50px;
	background-image: url("/img/content1_background.png");
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

#content1 > .contacts {
	margin-top: 50px;
}

.contacts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.contacts a {
	font-size: 2em;
	text-decoration: none;
	color: black;
}

.contacts img {
	width: 48px;
	height: 48px;
}

#content1 .pane2 {
	flex-grow: 0;
	min-width: 400px;
	height: 400px;
	background-image: url("/img/content1_header.png");
	background-size: cover;
	background-repeat: no-repeat;
}

#content2 {
	display: flex;
	flex-direction: column;
	margin-top: 100px;
}

#content2 .content-header {
	width: auto;
	margin: 0 auto;	
	display: flex;
	justify-content: center;
	flex-direction: column;
}

#content2 .content-header h1 {
	padding: 0 50px;
	margin: 0 auto;
}

.separator {
	display: flex;
	height: 20px;
	align-items: flex-start;
}

.separator .line {
	flex-grow: 1;
	border-bottom: 1px solid black;
	height: 10px;
}

.separator .dot {
	flex-grow: 0;
	display: list-item;
	width: 20px;
	height: 20px;
	position: relative;
	left: 23px;
}


#content2 .content-header small {
	text-align: center;
	letter-spacing: 4px;
}


#content2 .content-wrap {
	display: flex;
	margin-top: 40px;
	background-image: linear-gradient(-90deg, rgba(52, 144, 199, 0.1), rgba(52, 155, 199, 0));
}

#content2 .pane1 {
	flex-grow: 0;
	min-width: 300px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-top: 100px;
}

.mobile-only {
	display: none;
}

.mobile-ignore {
	display: block;
}

#content2 .pane1 img, #content2 .pane2 img {
	display: block;
	width: 150px;
	height: 204px;
}

#content2 .pane2 {
	flex-grow: 1;
	background-image: url("/img/content2_background.png");
	background-position: top 100px left 0;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

#content2 .pane-header {
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 0 30px;
}

#content2 .name {
	display: block;
	width: fit-content;
	font-size: 2.2em;
	margin-top: 50px;
	padding-bottom: 25px;
	padding-right: 50px;
	background-image: url("/img/content2_title_back.png");
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: 200px;
}

#content2 .pane2 p {
	background-image: url("/img/nozaki-sign.png");
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: 200px;
	font-size: 1.2em;
	line-height: 180%;
	padding: 0 1em;
	padding-bottom: 50px;
}

#content3 {
	display: flex;
	flex-direction: column;
	margin-top: 100px;
}

#content3 .content-header {
	width: auto;
	margin: 0 auto;	
	display: flex;
	justify-content: center;
	flex-direction: column;
}

#content3 .content-header h1 {
	padding: 0 50px;
	margin: 0 auto;
}

#content3 .content-header small {
	text-align: center;
	letter-spacing: 4px;
}


#content3 .content-wrap {
	display: flex;
	margin-top: 40px;
}

#content3 p {
	text-align: center;
	width: 100%;
	font-size: 1.5em;
	line-height: 180%;
}

/*
 * division info
 */
.division {
	display: grid;
	background-image: linear-gradient(-90deg, rgba(52, 144, 199, 0.1), rgba(52, 155, 199, 0));
	margin-top: 50px;
	margin-bottom: 40px;
}

.division .child {
	grid-area: 1/1;	
}

.division .content-header {
	z-index: 1;
}

.division .content-header h2 {
	font-size: 2.2em;
	padding-top: 50px;
	padding-left: 50px;
	margin: 0;
}

.division .background-box {
	background-color: rgba(29, 76, 158, 0.12);
	margin-top: 150px;
	margin-right: 100px;
	height: 60%;
}

.division img {
	display: block;
	width: 292px;
	height: 192px;	
	margin: 0 0 0 auto;
}

.division p {
	margin-top: 150px;
	font-size: 1.3em;
	line-height: 180%;
	padding-top: 40px;
	padding-left: 80px;
	padding-right: 40px;
	margin-right: 80px;
	padding-bottom: 30px;
}

/*
 * footer
 */
#footer {
	display: flex;
	width: 100%;
	background-color: #5b5b5b;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding-bottom: 20px;
}

#footer > div {
	flex-grow: 0;
	flex-shrink: 0;
}

#footer .pane1 .title {
	font-size: 2.1em;
	color: white;
	display: block;
	width: fit-content;
	padding-bottom: 10px;
	padding-right: 50px;
	margin-left: 50px;
	background-image: url("/img/footer_title_back.png");
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: 300px;
}

#footer .pane1 .logo {
	width: 300px;
	margin-left: 30px;
}

#footer .contacts {
	justify-content: flex-start;
	margin-top: 40px;
	margin-left: 50px;
}

#footer .pane2 {
	flex-grow: 1;
	min-width: 300px;
	padding: 20px;
	margin-top: 50px;
	text-align: right;
	color: white;
	font-size: 1.2em;
	margin-right: 20px;
}

#footer .pane3 {
	margin-top: 50px;
	min-width: 300px;
}

/*
 * menu
 */
#menu {
	position: fixed;
	top: 20px;
	right: 30px;
	z-index: 2;
}

#menu img {
	width: 50px;
	height: 50px;
}

#menu-list {
	border: solid 4px black;
	border-radius: 10px;
	background-color: rgba(255, 255, 255, 0.8);
	box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
}

#menu-list ul {
	margin-block-start: 0;
	margin-block-end: 0;
	list-style-type: none;
	padding: 0;
	text-align: center;
}

#menu-list li {
	margin: 20px;
	font-size: 1.2em;
	animation-duration: 0.3s;
	animation-name: menu-popup;
}

#menu-list a {
	font-weight: bolder;
	color: #1468A2;
	text-decoration: none;
}

@keyframes menu-popup {
	from {
		margin: 0;
		font-size: 0.1em;
	}
 	to {
		margin: 20px;
		font-size: 1.2em;
	}
}

/*
 * break points
 */
@media only screen and (max-width: 800px) {
	#header .copy {
		width: 427px;
		height: 54px;
	}
	#content {
		max-width: 100%;
		overflow-x: hidden;
	}
	#content1 .pane1 {
		flex-grow: 1;
		min-width: 450px;
	}

	#content1 h1 {
		font-size: 1.5em;
	}

	#content1 .pane-body {
		margin-left: 20px;
		margin-right: 20px;
		background-size: 100% 100%;
	}
	
	#content2 .pane1 {
		min-width: 150px;
		padding-top: 0;
	}

	#content2 .pane1 img, #content2 .pane2 img {
		width: 100px;
		height: 136px;
	}

	#content2 .name {
		font-size: 1.8em;
		margin-top: 30px;
		background-size: 200px;
	}

	#content3 p {
		font-size: 1.1em;
	}

	#footer .pane3 > iframe {
		display: block;
		margin: 0 auto;
		width: 100%;
	}

	#menu {
		top: 5px;
		right: 15px;
	}
}

/*
 * for mobile
 */
@media only screen and (max-width: 440px) {
	#header .copy {
		width: 385px;
		height: 48px;
		top: 140px;
	}
	#header .logo {
		left: 20px;
	}

	#content1 .title {
		margin-left: 10px;
		padding-right: 30px;
		overflow-wrap: normal;
	}

	#content1 .pane1 {
		flex-grow: 1;
		min-width: 300px;
	}

	h1 {
		font-size: 1.8em;
	}
	
	#content1 h1 {
		font-size: 1.2em;
	}

	#content1 .tel {
		font-size: 1.5em;
	}

	#content2 .pane2 p {
		font-size: 1em;
	}	

	.mobile-only {
		display: block !important;
	}

	.mobile-ignore {
		display: none !important;
	}

	#content3 .content-header h1 {
		padding: 0 80px;
	}

	#content3 p {
		font-size: 1em;
	}

	.division p {
		font-size: 1.1em;
		padding-left: 20px;
		padding-right: 10px;
		margin-right: 20px;
	}

	.division .background-box {
		margin-right: 20px;
	}

	#footer .contacts {
		margin: 0;
		justify-content: flex-end;
	}
}



@media only screen and (min-width: 800px) {
	#content {
		max-width: 800px;
		overflow-x: hidden;
	}
}

@media only screen and (min-width: 1000px) {
	#content {
		max-width: 1000px;
	}
}


@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/*
 * white round
 */
.white-border-text {
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

