/* import Google fonts 
 * Sankofa
 * Major Mono
*/
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&family=Sankofa+Display&display=swap');

/*
 * hero Title
*/
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

/* all elements  - Common styles */
*{
    box-sizing: border-box;
}
html{
    font-size: 16px;
}
body{
    margin: 0px;
}
main{
    max-width:1000px;
    margin   : 0 auto;
}

/* h styles - Common styles */
h1 {
    font-family : 'Sankofa Display', sans-serif; /* google fonts */
    font-size   : 3rem;
    font-weight : 700;
    color       : #000;
}
h2 {
    font-family : 'Major Mono Display', monospace; /* google fonts */
    font-size   : 2rem;
    font-weight : 700;
    color       : #333;
}
h3 {
    font-family : 'Lobster', cursive;
    font-size   : 1.5rem;
    font-weight : 700;
    color       : #666;
}

/* Links Styles - Common styles */
a{
    padding             : 0 10px;
    background-image    : linear-gradient(to right, rgba(0, 0, 0, 0) 50%, #333333a9 50%);
    background-position : 0 0;
    background-size     : 200% auto;
    transition          : all 0.3s ease;
}
a:link{
    color           : #FF8383;
}
a:visited{
    color           : #FF8383;
    text-decoration : none;
}
a:hover{
    color              : #FFF574;
    background-position: -100% 0;
    text-decoration    : underline;
}
a:active{
    color           : #FFF574;
    text-decoration : underline;
} 

/* header styles - Common styles */
:root{
    --background-navbar : rgba(55, 55, 55, 0.98);
}
header {
    background: var(--background-navbar);
    position  : fixed;
    top       : 0;
    width     : 100%;
    height    : 60px;
    z-index   : 10;
    transition:opacity 0.5s ease;
}
header h1 {
    color      : #fff;
    margin     : 0 0 0 30px;
    user-select: none;
    white-space: nowrap;
    display    : inline;
}
header nav > ul {
    list-style: none;
    margin    : 0;
    padding   : 0;
}
header nav > ul li {
    display  : inline-flex;
    padding  : 0 10px;
    font-size: 1.2rem;
    gap      : 1rem;
}
header #menu-btn {
    display: none;
}
header .menu-icon > span{
    position   : relative;
    left       : 10px;
    content    : '';
    display    : inline-block;
    width      : 30px;
    height     : 30px;
    user-select: none;
    background: linear-gradient(
        to bottom,
        white 0%,
        white 18%,
        rgba(0,0,0,0) 18%,
        rgba(0,0,0,0) 28%,
        white 28%,
        white 46%,
        rgba(0,0,0,0) 46%,
        rgba(0,0,0,0) 56%,
        white 56%,
        white 74%,
        rgba(0,0,0,0) 74%
    );

    transition: all 0.3s ease;
}
header #menu-btn:checked ~ .menu-icon > span{
    transform : rotate(270deg);
    
    background: linear-gradient( 
        45deg,
        rgba(0,0,0,0) 45%,
        white 45%,
        white 55%,
        rgba(0,0,0,0) 55%
    ),
    linear-gradient(
        -45deg,
        rgba(0,0,0,0) 45%,
        white 45%,
        white 55%,
        rgba(0,0,0,0) 55%
    );

    background-size    : 70%;
    background-position: center;
    background-repeat  : no-repeat;
}
header #menu-btn:checked ~ nav > ul.menu {
    transform       : scale(1, 1);
    transform-origin: top;
}
header .menu {
    list-style      : none;
    position        : absolute;
    top             : 60px;
    width           : 100%;
    padding         : 10px 30px;
    background      : var(--background-navbar);
    transform       : scale(1, 0);
    transition      : all 0.3s ease;
    transform-origin: top;
}
/* Header Links Styles - Common styles */
header a{
    padding             : 0 10px;
    background-image    : linear-gradient(to right, rgba(0, 0, 0, 0) 50%,#FFF574 50%);
    background-position : 0 0;
    background-size     : 200% auto;
    transition          : all 0.3s ease;
}
header a:link{
    color           : #FFF574;
}
header a:visited{
    color           : #FFF574;
    text-decoration : none;
}
header a:hover{
    color              :  #333333a9;
    background-position: -100% 0;
    text-decoration    : underline;
}
header a:active{
    color           :  #333333a9;
    text-decoration : underline;
} 

/* first section styles - common styles */
section:not(.hero){
    position      : relative;
    padding-left  : 20px;
    padding-top   : 3px;
    padding-bottom: 5px;
}
section:not(.hero):first-child{
    margin: 80px 0px 0px 0px; /* ヘッダに隠れないようにする */
}
section:nth-child(even){
    background-color: #f2f2f2;
}
.content-wrapper{
    position: relative;
    margin  : 0px 20px;
}
section:not(:first-child) .content-wrapper{
    transform       : scale(1, 0);
    transition      : all 0.7s ease;
    transform-origin: top;
}
section:nth-child(even)::after{
    content         : '';
    position        : absolute;
    top             : 0;
    right           : 0;
    bottom          : 0;
    left            : 0;
    background-color: #00000080;
    z-index         : 1;
    transition      : all 1s ease;
    transform-origin: left;
}
section:nth-child(even).visible::after {
    transform : scale(0, 1);
}

/* hero section styles - index.html */
.hero{
    background-attachment: fixed;
    background-size      : cover;
    background-position  : center;
    height               : 100vh;
    display              : flex;
    flex-direction       : column;
    align-items          : center;
    justify-content      : center;
    color                : white;
    text-align           : center;
}
.index-hero{
    background-image    : url('../images/indexHero.JPG');
}
.hero .hero-wrapper{
    background-color: rgba(0, 0, 0, 0.7);
    position        : absolute;
    top             : 0px;
    left            : 0px;
    width           : 100%;
    height          : 100%;
}
.hero #hero-title{
    font-family : 'Sankofa Display', sans-serif; /* google fonts */
    font-size   : 5rem;
    color       :white;
    position    : fixed;
    top         : 40%;
    left        : 50%;
    transform   : translate(-50%, -40%);
    text-align  : center;
    transition  : all 0.7s ease;
}

/* table styles - common styles */
table{
    border-collapse : collapse;
    box-shadow      : 1px 1px 5px black;
}
th{
    background-color : #f2f2f2;
}
th,td{
    padding    : 10px;
    text-align : left;
    border     : 1px solid #ccc;
}

/* content wrapper styles - index.html */
#profile-content-wrapper {
    display               : grid;
    grid-template-columns : 2fr 1fr;
    flex-direction        : row;
    align-items           : center;
    justify-content       : center;
    gap                   : 1rem;
}
#profile-image-wrapper{
    display        : flex;
    flex-direction : column;
    align-items    : center;
    justify-content: center;
}
@media (max-width: 767px) {
    #profile-content-wrapper{
        grid-template-columns : 1fr;
    }
}

/* image styles - index.html */
#profile-user-icon {
    width         : 150px;
    border-radius : 50%;
}

/* footer styles */
footer{
    background-color: #f2f2f2;
    padding         : 10px;
}
footer p{
    margin: 0;
}

/* video,img styles - common styles */
video,img {
    width: 100%;
}
.media-container {
    position      : relative;
    width         : 100%;
    max-height    : 100px;
    overflow      : hidden;
    transition    : all 1s ease-in-out;
    border-radius : 30px;
    display       : block;
}
.media-container:before {
    content         : '全体を見る';
    position        : absolute;
    top             : 0;
    right           : 0;
    bottom          : 0;
    left            : 0;
    display         : flex; /* 中央揃え用 */
    align-items     : center;
    justify-content : center;
    color           : white;
    font-size       : 1.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    z-index         : 1; /* 画像より上に表示 */
    transition      : opacity 0.3s ease-in-out; /* フェードアウト効果 */
    
    border-radius   : 30px;
}
.media-container img {
    object-fit      : cover;
    object-position : 50% bottom;
    z-index         : 0; /* 画像が:beforeより後ろに来る */
}
.media-wrapper input[type="checkbox"]{
    display: none;
}
.media-wrapper input[type="checkbox"]:checked ~ .media-container{
    max-height     : 5000px;
    border-radius  : 0px;
}
.media-wrapper input[type="checkbox"]:checked ~ .media-container:before{
    opacity        : 0;
    pointer-events : none;
}

/* form styles - contact.html */
form textarea{
    width : calc(100% - 3rem);
    height: 100px;
    resize: vertical;
}
.form-wrapper > *{
    margin : 10px 0;
}
.required::after{
    content: '*必須';
    color  : red;
}
.submit-btn-wrapper{
    position: relative;
}
.submit-btn-wrapper::after{
    content         : '';
    position        : absolute;
    border-radius   : 5px;
    top             : 0;
    right           : 0;
    bottom          : 0;
    left            : 0;
    display         : block;
    clear           : both;
    transition      : all 0.3s ease-in-out;
    background-color: #333333a9;
    transform-origin: left;
}
.filled-required::after{
    transform: scale(0, 1);
}
.submit-btn{
    background-color: #333333a9;
    color           : white;
    border          : none;
    padding         : 10px;
    border-radius   : 5px;
    width           : 100%;
}

input[type="text"],input[type="email"],textarea{
    border    : 1px solid #ccc;
    box-shadow: 1px 1px 5px black;
    padding   : 10px;
}
@media (max-width: 767px) {
    form textarea{
        width : 100%;
    }
}

iframe{
    width  : 100%;
    height : 500px;
    border : none;
}