
@font-face {
	font-family: "lg";
	src: url("./font/lg.eot");
	src: url("./font/lg.eot?") format('embedded-opentype'),
	url("./font/lg.woff") format('woff'),
	url("./font/lg.otf") format('opentype');
}
@font-face {
	font-family: "ku";
	src: url("./font/ku.eot");
	src: url("./font/ku.eot?") format('embedded-opentype'),
	url("./font/ku.woff") format('woff'),
	url("./font/ku.otf") format('opentype');
}
@font-face {
	font-family: "mk";
	src: url("./font/mk.eot");
	src: url("./font/mk.eot?") format('embedded-opentype'),
	url("./font/mk.woff") format('woff'),
	url("./font/mk.otf") format('opentype');
}
@font-face {
	font-family: "anz";
	src: url("./font/anz.eot");
	src: url("./font/anz.eot?") format('embedded-opentype'),
	url("./font/anz.woff") format('woff'),
	url("./font/anz.otf") format('opentype');
}
@font-face {
    font-family: "craftmincho";
    src: url("./font/craftmincho.ttf") format("truetype");
    src: url("./font/craftmincho.woff") format("woff");
}

/* styles.css */
body {
    font-family: 'craftmincho';
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
}
#name_title{
    font-size: 28px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
}


main {
    padding: 1rem;
    margin-right: 1.5%;
}

.tool {
    text-align: center;
    border: 2px dashed #696969;
    padding: 12px 22px;
    width: 90%;
    margin: 2rem auto;
}

.tool h2 {
    /* font-size: 1.5rem; */
    margin-bottom: 1rem;
    position: relative;
    padding: 1.5rem 2.5rem;
    border: 4px solid #000;
    
}

.tool h2:before {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 18px);
    height: calc(100% - 15px);
    content: '';
    border: 4px dotted #000;
  }

.tool p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.image{
    background-color: #fff8be;
    margin-bottom: 22px;
    padding: 22px 0;
}
.image img{
    border: 2px solid #b4b4b4;
}
.btn_area{
    width: 80%;
    margin: 27px auto;
    background-color: #007BFF;
    
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
}
.cta-button {

    text-decoration: none;
    color: white;
    font-size: 1rem;
}

/* .cta-button:hover {
    background-color: #0056b3;
} */

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.container a {
    color: rgb(197, 205, 240);
    /* text-decoration: none; */
}
.half{
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 上を揃える */
    width: 100%;
}
.half img{
    margin-right: 1%;
    margin-left: 1%;
}

/* 右下固定のボタンスタイル */
.fixed-button {
    font-family: 'craftmincho';
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #2dc0ac;
    color: #fff;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
}

/* トグルで表示するサイドパネル */
.side-panel {
    font-family: 'craftmincho';
    display: none;
    position: fixed;
    bottom: 0;
    right: -70%;
    width: 60%;
    height: 70%;
    background-color: #5582a7;
    color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    padding: 10px;
    overflow-y: auto;
    z-index: 999;
    font-size: 15px;
}

#sidePanel li{
    margin-left: -10px;
}
#sidePanel li a{
    color: #fff;
}
/* パネルが開いた時の状態 */
.side-panel.open {
    right: 0;
}

@media (max-width: 768px) {
    h1{
        font-size: 22px;
    }
    nav ul {
        flex-direction: column;
    }

    .tool h2 {
        font-size: 1.25rem;
        /* width: 100%; */
    }

    .cta-button {
        /* padding: 0.5rem 1rem;
        font-size: 0.9rem; */
    }

    .half img{
        width: 46%;
    }

    .fixed-button {
        display: block;
    }
    .side-panel {
        display: block;
    }
}
@media (min-width: 769px) {

    .tool h2 {
        font-size: 1.25rem;
        width: 70%;
        margin: 0 auto;
    }
    main{
        padding: 0 12%;
    }
    .tool p{
        font-size: 1.2rem;
    }
/* 
    .tool {
        margin-bottom: 2rem;
        text-align: center;
        border: 2px dashed #696969;
        padding: 12px 22px;
        width: 60%;
    } */
}
