@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
}

body {
    background-color: ivory;
}

header {
    display: flex;
    width: 85%;
    margin-top: 1%;
    margin-left: auto;
    margin-right: auto;
    align-items: baseline;
    border-bottom: 2px solid #502200;
}

header h1 {
    width: 30%;
}

header h1 img {
    width: 70%;
    vertical-align: bottom;
}

header nav {
    width: 50%;
    margin-left: 5%;
}

header nav ul {
    display: flex;
}

header nav ul li {
    width: calc(100%/6);
    margin-left: -1px;
}

header nav ul li a {
    display: block;
    padding: 0.9vw 0;
    color: ivory;
    font-size: 0.8vw;
    text-align: center;
    border: 1px solid ivory;
    border-radius: 10px 10px 0 0;
    background-color: #502200;
    transition: 0.5s;
}

header nav ul li a:hover {
    color: #502200;
    border: 1px solid #502200;
    background-color: ivory;
    transition: 0.5s;
}

header .deep {
    width: 14.5%;
    margin-left: 0.5%;
    background-color: aliceblue;
}

header .deep p {
    display: block;
    padding: 0.9vw 0;
    color: ivory;
    font-size: 0.9vw;
    text-align: center;
    border: 1px solid ivory;
    border-radius: 10px 10px 0 0;
    background-color: #502200;
    transition: 0.5s;
}

header .deep p:hover {
    color: #502200;
    border: 1px solid #502200;
    background-color: ivory;
    transition: 0.5s;
}

/* メインビジュアル部分 */

main .mainvisual {
    height: 700px;
    background-attachment: fixed;
    background-image: url(../images/yubetu.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

main h2 {
  margin-top: 5%;
  margin-bottom: 5%;
  font-size: 1.6vw;
  text-align: center;
}

main .pearent-box {
  width: 60%;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2%;
}

main .pearent-box .image-box {
  width: 49%;
  padding: 10px;
  border: 1px solid #502200;
}

main .pearent-box .left:hover {
  transform: rotate(-5deg);
}

main .pearent-box .right:hover {
  transform: rotate(5deg);
}

main .pearent-box .image-box img {
  width: 100%;
  vertical-align: bottom;
}

main .pearent-box .text-box {
  width: 49%;
  padding: 5%;
  border: 1px solid #502200;
  border-radius: 20px;
}

main .pearent-box .text-box h3 {
  margin-bottom: 1vw;
  font-size: 1.2vw;
  font-weight: 600;
}

main .pearent-box .text-box p {
  font-size: 1.1vw;
  white-space: pre-wrap;
}

main .pearent-box .child:nth-of-type(2) {
  margin-left: 2%;
}

/* フッター */

footer {
    padding: 2%;
    background-color: #502200;
}

footer ul {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

footer ul li {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.2vw;
    border-right: 1px solid ivory;
}

footer ul li:last-child {
    border: none;
}

footer ul li a {
    display: block;
    font-size: 1vw;
    color: white;
    text-align: center;
    transition: 0.5s;
}

footer ul li a:hover {
    opacity: 0.6;
    transition: 0.5s;
}

footer p {
    margin-top: 1.5vw;
    font-size: 0.9vw;
    color: white;
    text-align: center;
}