@charset "UTF-8";

/*
COLORS
================================================ */
:root {
    --light-blue: #4db1ec;
    --blue: #1665cc;
    --purple: #c59bcc;
    --pink: #ffb2c1;
    --orange: #ff9f67;
    --yellow: #ffd673;
    --light-green: #a2e29b;
    --green: #00a2af;
    --grey: #333;
    --white: #fff;
}

/* 共通部分
------------------------------- */
html {
    font-size: 100%;
}
body{
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
    line-height: 1.7;
    color: #432;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}

/* 大きな背景画像 */
.big-bg {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/*
HERO
================================================ */

#hero {

    /* ↓ 省略形だとブラウザーによってうまく表示されない
    background: var(--light-blue) url('../images/hero.jpg') no-repeat center / cover; */
    background-color: var(--white);
    background-image: url('../mt_images/mt_main-bg.jpg');
    text-transform: none;
    text-align: center;
    margin-top: 0;
    font-size: 1.125rem;
    
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-blend-mode: screen;
 
    animation: bg-color 15s forwards;
    height: 100vh;
    display: flex;
    align-items: center;
 
    -webkit-clip-path: polygon(0 0, 97% 3%, 98% 93%, 0 100%);
    clip-path: polygon(0 0, 97% 3%, 98% 93%, 0 100%);
}  

@keyframes bg-color {
    10% { background-color: var(--blue); }
    30% { background-color: var(--light-blue); }
    45% { background-color: var(--yellow); }
    50% { background-color: var(--white); }
    65% { background-color: var(--purple); }
    80% { background-color: var(--light-blue); }
    100% { background-color: var(--blue); }
}

@keyframes blink{
    0%{opacity: 0;}
    100%{opacity: 1;}    
}
.blinking{
 animation: blink 300ms ease-in-out infinite alternate;
}

/* 見出し */
.page-title {
    font-size: 4rem;
    font-family: 'Philosopher', serif;
    text-transform: uppercase;
    font-weight: normal;
    color:rgb(16, 156, 33);

    text-shadow:2px 2px 2px rgba(255,255,255,0.9);

}
.sub-title {
    font-size: 1.375rem;
    border-bottom: 2px #0bd solid;
    font-weight: normal;
}

/* ボタン */
.button {
    font-size: 1.5rem;
    font-family: 'Philosopher', serif;
    color: white;
    background:rgba(16, 156, 33,0.5);
    border-radius: 5px;
    padding: 1px 1px;

    animation:spin 3s linear infinite;
    @keyframes spin{
        0% {transform: rotate(0deg);}
        100% {transform: rotate(360deg);}
    }
}

.button:hover {
    color:white;
    background: rgba(16, 156, 33,1);
}

/* iframe */
iframe {
    width: 100%;
}

/* HEADER
------------------------------- */
.page-header {
    display: flex;
    justify-content: space-between;
}
.logo {
    width: 60px;
    margin-top: 14px;
    justify-content: space-between;
}
.main-nav {
    display: flex;
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-top: 34px;
    list-style: none;
}
.main-nav li {
    margin-left: 36px;
}
.main-nav a {
    color: #432;
    text-shadow:1px 1px 1px rgba(255, 255, 255, 0.8);
}
.main-nav a:hover {
    color: #0bd;
}

/* HOME
------------------------------- */
#home {
    min-height: 100vh;
 }
  .home-content {
    text-align: center;
    margin-top: 10%;
}
 .home-content p {
    font-size: 1.125rem;
    margin: 10px 0 42px;
}

/* tree */
/*  ------------------------------- */
#tree {
    background-image: url(../mt_images/mt_sub-bg.jpg);
    height: 270px;
    margin-bottom: 40px;
}

ol{
    counter-reset:number;
    list-style:none;
    margin:0;
    padding:0;
    }
    ol li{
    }
    ol li:before{
    counter-increment: number;
    content: counter(number);
    background: url(../mt_images/mt_star.png);
    display: inline-block;
    width: 3em;
    height: 3em;
    background-size: cover;
    text-align: center;
    font-weight: bold;
    line-height: 3;
    color:rgb(255, 0, 0);
}

/*  Flexboxの指定と下のmargin 50px */
.tree-contents {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

/* 記事部分 */
article {
    width: 74%;
}

/* 相対位置の配慮。.post-infoのクラスにCSSを指定 */
.post-info {
    position: relative;
    padding-top: 4px;
    margin-bottom: 40px;
}

/* 日付部分の背景等指定。.post-infoからの絶対位置調整 */
.post-date {
    background: #0bd;
    border-radius: 50%;
    color: #fff;
    width: 80px;
    height: 80px;
    font-size: 1.1rem;
    text-align: center;
    position: absolute;
    top: 0;
    padding-top: 10px;
}

/* 日付指定と日付の上に水平線。白い線５０％透明に */
.post-date span {
    font-size: 1rem;
    border-top: 1px rgba(255,255,255,.5) solid;
    padding-top: 6px;
    display: block;
    width: 60%;
    margin: 0 auto;
}

/* タイトルとカテゴリーを装飾　*/
.post-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 2rem;
    font-weight: normal;
}
.post-title,
.post-cat {
    margin-left: 120px;
}


/* 画像と本文に余白を足す　*/
article img {
    margin-bottom: 20px;
}
article p {
    margin-bottom: 1rem;
}

/* サイドバー */
aside {
    width: 22%;
}

/* style.css */
.sub-menu {
    margin-bottom: 60px;
    list-style: none;
}
.sub-menu li {
    border-bottom: 1px #ddd solid;
}
.sub-menu a {
    color: #432;
    padding: 10px;
    display: block;
}
.sub-menu a:hover {
    color: #0bd;
}


/* MENU
------------------------------- */

#menu {
    background-image: url(../mt_images/mt_sub-bg.jpg);
    height: 270px;
    margin-bottom: 40px;
}

.menu-content {
    max-width: 560px;

}
.menu-content .page-title {
    text-align: center;
}
.menu-content p {
    font-size: 1.125rem;
    margin: 10px 0 0;
}

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 50px;
}
.item:hover{
    transform: scale(1.03);
    transition:.2s;
    box-shadow: 0 0 1rem rgba(0,0,0,.5);
}

/* CONTACT
------------------------------- */
#contact {
    background-image: url(../mt_images/mt_sub-bg.jpg); 
    min-height: 100vh;
}

/* フォーム */
form div {
    margin-bottom: 14px;
}
label {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: block;
    color:rgb(255, 255, 255)
}
input[type="text"],
input[type="email"],
textarea {
    background: rgba(255,255,255,.5);
    border: 1px #fff solid;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
}
input[type="text"],
input[type="email"] {
    width: 100%;
    max-width: 240px;
}
textarea {
    width: 100%;
    max-width: 480px;
    height: 6rem;
}
input[type="submit"] {
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* フッター
------------------------------- */
footer {
    background: #432;
    text-align: center;
    padding: 14px 0;
}
footer p {
    color: #fff;
    font-size: 0.875rem;
}

/* モバイル版
------------------------------- */
@media (max-width: 600px) {
    .page-title {
        font-size: 2.5rem;
    }
    .page-header {
        flex-direction: column;
        align-items: center;
    }

    /* HEADER */
    .main-nav {
        font-size: 1rem;
        margin-top: 10px;
    }
    .main-nav li {
        margin: 0 20px;
    }

    /* HOME */
    .home-content {
        margin-top: 20%;
    }

    /* tree */
    .tree-contents {
        flex-direction: column;
    }
    #tree .page-title {
        margin-top: 30px;
    }
    article,
    aside {
        width: 100%;
    }
    aside {
        margin-top: 60px;
    }

     .post-info {
        margin-bottom: 30px;
    }
    .post-date {
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }
    .post-date span {
        font-size: 0.875rem;
        padding-top: 2px;
    }
    .post-title {
        font-size: 1.375rem;
    }
    .post-cat {
        font-size: 0.875rem;
        margin-top: 10px;
    }
    .post-title,
    .post-cat {
        margin-left: 80px;
    }

    /* MENU */
    .menu-content {
        margin-top: 20%;
    }

}
