@charset "UTF-8";

body#bookList footer {
	flex-shrink: 0;
}

/* --- COLOR --- */
/* WHITE */
div.box p.downloadBtn,
div.contact-list > div div:nth-child(3) div p:nth-child(4) a {
    color: #FFFFFF;
}

div.box,
div.contact-list > div div:nth-child(3) div {
    background-color: #FFFFFF;
}

/* DARK BLUE */
div.document-list h2,
div.contact-list h2,
div.contact-list > div div:nth-child(3) div h3:nth-child(2),
p.paperTitle {
    color: #163A64;
}

/* BLUE */
div.box p.downloadBtn {
    background-color: #1B5FAB;
}

/* PALE LITE BLUE */
div.contact-list {
	background-color: #F0F8FF;
}

/* LITE GRAY */
div.box {
    border: 1px solid #D9D9D9;
}

/* ORANGE */
div.contact-list > div div:nth-child(3) div p:nth-child(4) a {
    background-color: #ff7600;
}

/* --- FONT --- */
/* 35px */
main div.document-list h2,
main div.contact-list h2 {
    font-size: 3.5rem;
}

/* 20px */
div.contact-list > div p:nth-child(2) {
	font-size: 2.0rem;
}

/* 18px */
div.contact-list > div div:nth-child(3) div h3:nth-child(2) {
    font-size: 1.8rem;
}

/* 16px */
div.box p:nth-child(3),
div.box p.downloadBtn,
div.contact-list > div div:nth-child(3) div p:nth-child(4) a {
    font-size: 1.6rem;
}

/* 14px */
div.contact-list > div div:nth-child(3) div p:nth-child(3),
div.contact-list > div div:nth-child(3) div p:nth-child(4) {
    font-size: 1.4rem;
}

/* 12px */
div.box p:first-child {
    font-size: 1.2rem;
}

/* --- TRANSFORM --- */
div.box p.downloadBtn,
div.box p img,
div.contact-list > div div:nth-child(3) div p:nth-child(4) a {
    transition: transform 0.1s ease;
}

div.box p img:hover,
div.box p.downloadBtn:hover,
div.contact-list > div div:nth-child(3) div p:nth-child(4) a:hover {
    cursor: pointer;
    transform: scale(1.05);
	transform-origin: center center;
}

section.document-list > div,
div.contact-list > div {
    padding: 6.4rem 0;
}

div.document-list h2,
div.contact-list h2 {
	text-align: center;
	font-weight: 600;
	line-height: 1.4em;
}

section.document-list {
	padding-top: 96px;
}

/* 資料の件数に依らず、列数はグリッドで決めて自動的に折り返す */
div.container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* カードの高さは行ごとに揃うため、height は指定しない */
div.box {
    min-height: 368px;
    padding: 32px;
    border-radius: 1.6rem;
    display: flex;
    flex-direction: column;
}

div.box p:first-child {
    line-height: 1em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.2rem;
}

div.box p:nth-child(2) {
    margin-bottom: 1.6rem;
    line-height: 1em;
}

div.box p:nth-child(3) {
    line-height: 1em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.6rem;
}

/* ボタンはカード下端に揃え、文言が折り返しても高さが伸びるようにする */
div.box p.downloadBtn {
    line-height: 1.4em;
    font-weight: bold;
    text-align: center;
    width: 100%;
    min-height: 4.8rem;
    margin: auto auto 0;
    padding: 0.8rem 1.6rem;
    border-radius: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.box p img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

div.contact-list > div {
    text-align: center;
    margin: 0 auto;
}

div.contact-list > div h2 {
    margin: 0 auto 4.4rem;
}

div.contact-list > div p:nth-child(2) {
    text-align: left;
    line-height: 1.95em;
    margin: 0 auto 6.4rem;
}

div.contact-list > div div:nth-child(3) {
    display: flex;
    align-items: stretch;
}

div.contact-list > div div:nth-child(3) div {
    width: calc((100% - 48px) / 3);
    text-align: center;
    height: auto;
    min-height: 200px;
    margin-right: 24px;
    padding: 32px;
    border-radius: 1.6rem;
    display: flex;
    flex-direction: column;
}

div.contact-list > div div:nth-child(3) div:last-child {
    margin-right: 0;
}

div.contact-list > div div:nth-child(3) div p:nth-child(1) {
    text-align: center;
    margin-bottom: 1.6rem;
}

div.contact-list > div div:nth-child(3) div p:nth-child(1) img {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

div.contact-list > div div:nth-child(3) div h3:nth-child(2) {
    font-weight: bold;
    margin-bottom: 1.6rem;
}

div.contact-list > div div:nth-child(3) div p:nth-child(3) {
    text-align: left;
    line-height: 1.6em;
    margin-bottom: 1.6rem;
    flex-grow: 1;
}

div.contact-list > div div:nth-child(3) div p:nth-child(4) a {
    line-height: 4.8rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    width: 85%;
    height: 4.8rem;
    min-height: 4.8rem;
    margin: 0 auto;
    padding: 0 16px;
    display: inline-block;
    border-radius: 2.4rem;
}

/* -----------------------------------
	RESPONSIVE SETTINGS
----------------------------------- */
/* BREAKPOINT : 1024px or MORE */
@media screen and (min-width: 1024px) {
	section.document-list > div {
		width: 1216px;
	}

	div.contact-list > div {
		width: 964px;
	}

	section.document-list > div h2,
	div.contact-list > div h2,
	div.contact-list > div p:nth-child(2) {
		width: 632px;
	}
}

/* BREAKPOINT : 1024px ~ 1279px */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
	section.document-list > div,
	div.contact-list > div {
		width: 964px;
	}

	/* カード幅が狭くなるため、ボタンの文言が1行に収まるように詰める */
	div.box p.downloadBtn {
		font-size: 1.4rem;
		padding: 0.8rem 1.2rem;
	}

	div.box {
    	min-height: 323px;
	}
}

/* BREAKPOINT : 768px ~ 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {
	section.document-list > div,
	div.contact-list > div {
		width: 720px;
	}

	section.document-list > div h2,
	div.contact-list > div h2,
	div.contact-list > div p:nth-child(2) {
		width: 632px;
	}

	div.contact-list > div div:nth-child(3) div h3:nth-child(2),
	div.contact-list > div div:nth-child(3) div p:nth-child(4) a {
    	font-size: 1.6rem;
	}

	div.container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	div.box {
    	min-height: 240px;
	}

	div.contact-list > div div:nth-child(3) div p:nth-child(4) a {
    	width: 100%;
	}

	div.contact-list > div div:nth-child(3) div {
    	padding: 24px;
	}
}

/* BREAKPOINT : 520px ~ 767px */
@media screen and (min-width: 520px) and (max-width: 767px) {
	section.document-list > div,
	div.contact-list > div {
		width: 472px;
		padding: 4.6rem 0 4.8rem;
	}

	div.contact-list > div h2 {
		margin-bottom: 3.6rem;
	}

	div.contact-list > div div:nth-child(3) div p:nth-child(4) a,
	div.box p.downloadBtn {
		width: 78%;
	}

	div.contact-list h2 {
		font-size: 2.3rem !important;
		line-height: 1.4em;
	}

	div.contact-list > div p:nth-child(2) {
		font-size: 1.6rem;
	}

	section.document-list {
		padding-top: 56px;
	}

	div.contact-list > div p:nth-child(2) {
		margin: 0 auto 4.0rem;
	}

	div.container {
		grid-template-columns: minmax(0, 1fr);
	}

	div.box {
		min-height: auto;
	}

	div.contact-list > div div:nth-child(3) {
    	display: block;
	}

	div.contact-list > div div:nth-child(3) div {
		width: 100%;
		margin-bottom: 24px;
	}

	div.contact-list > div div:nth-child(3) div:last-child {
		margin-bottom: 0;
	}
}

/* BREAKPOINT : 519px or LESS */
@media screen and (max-width: 519px) {
	section.document-list > div,
	div.contact-list > div {
		width: 100%;
	}

	section.document-list > div,
	div.contact-list > div {
		width: 91%;
		padding: 4.4rem 0 4.6rem;
	}

	div.contact-list > div h2 {
		margin-bottom: 3.6rem;
	}

	div.contact-list > div div:nth-child(3) div p:nth-child(4) a,
	div.box p.downloadBtn {
		width: 90%;
	}

	div.contact-list h2 {
		font-size: 1.9rem !important;
		line-height: 1.4em;
	}

	div.contact-list > div p:nth-child(2) {
		font-size: 1.4rem;
	}

	section.document-list {
		padding-top: 56px;
	}

	div.contact-list > div p:nth-child(2) {
		margin: 0 auto 4.0rem;
	}

	div.container {
		grid-template-columns: minmax(0, 1fr);
	}

	div.box {
		min-height: auto;
	}

	div.contact-list > div div:nth-child(3) {
    	display: block;
	}

	div.contact-list > div div:nth-child(3) div {
		width: 100%;
		padding: 24px;
		margin-bottom: 24px;
	}

	div.contact-list > div div:nth-child(3) div:last-child {
		margin-bottom: 0;
	}
}
