/* print.css */
body {
    font-size: 18px;
    margin: 0;
    padding: 0;
    font-family: serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;

}

header, main, footer {
        font-family: serif;
        margin: auto;
}

.top{
	padding-top: 15%;
        display: inline-block;
        width: 150px;
        height: 500px;
        text-align: center;
	background-color: rgba(123,99,0,0.1);
}

.topimg{
position: absolute;
        z-index: -1;
        width: 400px;
        top: 220px;
        left: 0;
        margin: auto;
        right: 0;
}

.left{
	float:right;
	padding-top: 170px;
        padding-right: 60px;
		font-size: medium;
}

.left p{
	-webkit-writing-mode: vertical-rl;
	text-align:left;
	display:inline;
}

.left h2{
	font-size:1em;
	border-bottom-width: 1px;
        border-style: solid;
        border-top: 0;
        border-left: 0;
        border-right: 0;
        padding: 0% 5% 0% 5%;
}

.right{
	float:left;
	padding-top: 170px;
        padding-left: 10px;
	font-size: medium;
}

.right p {
	-webkit-writing-mode: vertical-rl;
	text-align:left;
	display:inline;
	height:700px;
}

.right h2{
	font-size:1em;
	border-bottom-width: 1px;
        border-style: solid;
        border-top: 0;
        border-left: 0;
        border-right: 0;
        padding: 0% 5% 0% 5%;
}

h1 {
font-size: 32px;
        height: 100%;
        text-align: left;
        -webkit-writing-mode: vertical-lr;
        display: inline;
    } 

h2 {
    font-size: 24px;
 
}

h1 .span1{
-webkit-writing-mode: horizontal-tb;
border-bottom-width: 1px;
    border-style: solid;
    border-top: 0;
    border-left: 0;
    border-right: 0;
padding: 0% 5% 0% 5%;
}

h1 .span2{
-webkit-writing-mode: vertical-lr;
   padding-top: 5%;
}

.text1{

}

.bottom{
	display: inline-block;
        position: relative;
        width: 100%;
}

.topspimg{
display:none;

}

#g-nav{

display:none;

}

footer{

display:none;

}

@page {
    size: A4;
    margin: 10mm; /* ページの余白を設定 */
}

@media print {
    header, footer {
        page-break-after: avoid; /* ヘッダーとフッターでページブレイクしないように */
    }

    main {
        page-break-inside: avoid; /* メインコンテンツ内でページブレイクしないように */
    }
}


