:root{
     --main-color: #1a7a8c;
    --sub-color: #666666;
    --accent-color: #ff6b81;
}


*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header{
    height: 40px;
    width: 100%;
    position: fixed;
    background: var(--sub-color);
    background-color: rgba(153, 153, 153, 0.5);
    z-index: 1000;
}

.header nav{
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.menu{
    display: flex;
    margin-left: 2rem;
    list-style: none;
}

.menu li{
    height: 40px;
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.menu li a{
    display: block;
    padding: 0.15px;
    line-height: 40px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.menu li a:hover{
    background: #cacaca;
    color: #000;
}

body, main {
    font-family: 'Noto Sans JP', 'Inconsolata', monospace, sans-serif;
}


main{
   /* font-family: "Inconsolata", MS MINCHO;*/
    color: var(--main-color);
    padding-bottom: 750px;
}



.first-view{
    height: calc(100vh - 110px);
    /*background: url(./images/oriduru.jpg);*/
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    margin-bottom: 500px;
}

.content {
    display: flex;
    flex-direction: column; /* 縦並び */
    justify-content: center; /* 縦方向中央寄せ */
    align-items: center; /* 横方向中央寄せ */
    height: 100vh; /* 画面の高さを満たす */
    text-align: center; /* テキストも中央揃え */
    color: var(--main-color);
  }

  footer {
    background-color: #000;
    padding: 2rem 0;
    text-align: center;
    color: #fff;
}
.copylight {
    position: static;
    font-size: 14px;
    margin-top: 1rem;
}
  

.first-view{
    font-family: "Inconsolata", Zen Kaku Gothic Antique;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-bottom: 80px;
    color: var(--main-color);
    /*text-shadow: 1px 1px 10px #fff;*/
    font-weight: lighter;
    font-size: 200%;
}

.content h1{
    text-align: center;
    font-weight: bold;
}

.content p{
    font-size: 13px;
    text-align: center;
    color: #000;
    font-family: sans-serif;
}

#About-me{
    font-size: 2rem;
    height: 500px;
    font-weight: bold;
    ruby-position: under;
    ruby-align: center;
    text-align: center;
    margin-bottom: 70px;
}

#About-me rt{
    font-weight: lighter;
}

#About-me, #Works, #Skill {
    height: 500px;
}


.name{
    font-size: 1.7rem;
}

#Works{
    height: 500px;
    font-size: 2rem;
    height: 500px;
    font-weight: bold;
    ruby-position: under;
    ruby-align: center;    
    margin-top: 70px;
    margin-bottom: 70px;
}

#Works rt{
    font-weight: lighter;
}

#Skill{
    height: 500px;
    font-size: 2rem;
    height: 500px;
    font-weight: bold;
    ruby-position: under;
    text-align: center;
    margin-top: 70px;
    margin-bottom: 70px;
}

footer {
    position: relative; /* 親の基準位置 */
    height: 500px;
    background-color: #000;
  }
  
  .copylight {
    position: absolute;
    bottom: 10px;  /* フッターの下から10px上 */
    left: 10px;
    color: #fff;
    font-size: 12px;
  }
  

main {
    background: linear-gradient(
        40deg,
        var(--main-color) 0%,
        #3ea8b0 15%,
        #7abac3 25%,
        #c7d9de 40%,
        #fff 75%
    );
    color: #fff;
    min-height: 100vh;
}

.SelfIntroduction{
    color: var(--main-color);
}

.card-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background-color: rgba(255, 255, 255, 0.8);        /* 背景を白に */
    padding: 20px;                 /* 内側に余白 */
    border-radius: 8px;            /* 角を少し丸く（お好みで） */
    box-shadow: 0 2px 10px rgb(35, 115, 101); 
    max-width: 600px;              /* 幅制限（お好みで） */
    margin: 0 auto;                /* 中央寄せ */
}




.work:hover{
    box-shadow: 0 4px 16px #1b4b4e;
}

.footer-menu{
    font-family: "Inconsolata", MS MINCHO;
    font-size: 5rem;
    text-align: center;
}

.footer-menu li a {
    color: #fff;               /* 白い文字 */
    text-decoration: none;     /* 下線なし */
    font-size: 2rem;           /* お好みで調整 */
    font-family: "Inconsolata", sans-serif;
  }
  
  .footer-menu li a:hover {
    text-decoration: underline; /* ホバー時に下線つけたい場合 */
    color: #ccc;                /* ホバー時の色 */
  }
  
  .footer-menu {
    justify-content: center;
    gap: 2rem;
    padding-top: 2rem;
    list-style: none;
  }

  .cursor {
    display: inline-block;
    color: var(--main-color); /* または好みの色 */
    animation: blink 0.8s steps(1) infinite;
    font-weight: bold;
  }
  
  @keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
  }

  .skill-logo{
    ruby-position: under;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .SIbutton button{
    background: #eee;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 240px;
    padding: 10px 25px;
    color: var(--main-color);
    transition: 0.3s ease-in-out;
    font-weight: 500;
    margin-top: 70px;
    border-color: var(--main-color);
}
.SIbutton button:before {
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    right: -2em;
    transform: translateY(calc(-50% - 2px)) rotate(30deg);
    width: 12px;
    height: 2px;
    background-color: var(--main-color);
    transition: 0.3s;
}
.SIbutton button:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2em;
    transform: translateY(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--main-color);
    transition: 0.3s;
}
.SIbutton button:hover:before, .SIbutton button:hover:after {
    right: -2.5em;
}
.SIbutton button:hover {
    background: #edf6ff;
    color: var(--main-color);
}


/*SelfIntroduction------------------------------------*/
.name{
    margin-top: 300px;
}

.kanon{
    color: var(--main-color);
    padding: 100px;
    text-align: center;

}

.jikosyokai{
    color: var(--main-color);
}

h1.kanon {
    font-size: 2.5rem;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    color: var(--main-color);
    border-left: 5px solid var(--main-color);
    padding-left: 10px;
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    border-left: 5px solid var(--accent-color);
}

ul.jikosyokai {
    padding-left: 20px;
}

ul.jikosyokai li {
    margin-bottom: 8px;
}

/* 段落のスタイル */
.sentence{
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 100px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.0.5);
    letter-spacing: 2px;
    line-height: 1.5;
    padding-left: 100px;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.face{
    text-align: center;
    margin-bottom: 30px;
}

.face img{
    border: 10px solid var(--accent-color);
    border-radius: 20px;
}

/* 自己紹介ページだけ余白を調整 */
.selfintro-page main {
    padding-bottom: 20px;  /* 必要なだけに減らす */
}


.accent{
    color: var(--accent-color);
    font-size: 2.5rem;
}


/*works----------------------------------------*/

.yuan {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 横2列 */
    grid-template-rows: repeat(2, auto);   /* 縦2行（自動高さ） */
    gap: 4px; /* 画像の間隔（お好みで） */
    justify-items: center; /* 中央揃え（オプション） */
}

.yuan img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mockup{
    text-align: center;
}

.fullsize{
    text-align: center;
}

.work-info-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin: 20px auto;
  font-family: sans-serif;
}

.work-info-table th,
.work-info-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

.work-info-table th {
  background-color: #f2f2f2;
  width: 30%;
}


@media (max-width: 600px) {
  .mockup img{
    height: 200px;
  }
}

