
:root {
  --base: 20px; /* ベースライングリッド */
}

body {
  margin: 0;
  font-family: 'Public Sans', 'Zen Kaku Gothic New', Arial, sans-serif;
  background: #FBFBFB;
  color: #202020;
  line-height: var(--base);
  font-size: 16px;
  font-weight: 200;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  letter-spacing: -0.01em;
  margin-top: 0px;
  margin-right: 20px;
  min-width: 1080px; /* 例: 960px以下には縮まない */
  
  
  place-items: center;
}

.container {
  display: grid;
  grid-template-columns: 730px 1fr;
  gap: var(--base);
  width: 200vw;
  height: 200vh;
  margin-top: 30px; /* 上の余白固定 */
  max-width: 1600px;
  max-height: 900px;
  margin-left: 20px;
}

.left {
  display: flex;
  flex-direction: column;
  gap: var(--base);
  margin-bottom: 20px;
}

.left img {
  width: 730px;
  height: 730px;
  object-fit: cover;
  background: #888;
  display: block;
  width: 100%;
  margin-bottom: 10px; /* ← 間隔固定 */
}

.left img:hover{
	opacity:0.5;
	transition:0.1s;
}


.right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;

}

.right2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}


h1 {
  font-size: 210px;
  font-weight: 700;
  margin: -25px 0 calc(var(--base) * 2) 0;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-left: -14px;
}

.info-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr; /* ← 3カラム構成 */
  gap: calc(var(--base) * 2);          /* カラム間の間隔を統一 */
  margin-bottom: calc(var(--base) * 2);
}

.links a {
  display: block;
  text-decoration: none;
  color: #000;
  margin-bottom: calc(var(--base) * 4); /* さらに倍間隔 */
  font-size: 16px;
 
}

.links a:hover {
  font-weight: 800;
}

.about h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 var(--base) 0;
  margin-bottom: calc(var(--base) * 1);
}

.about a {
    color: #202020;
    text-decoration : none;
  }

.about p {
  font-size: 16px;
  line-height: var(--base);
  max-width: 400px;
  margin-bottom: calc(var(--base) * 1.0);
  text-decoration : none;
}

.contact {
  font-size: 16px;
  margin-top: auto;
  text-decoration : none;
}

.works {
  margin-left: 20px; /* ← 位置調整用 */
}

.works h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 var(--base) 0;
  margin-bottom: calc(var(--base) * 1);
}

.works p {
  font-family: "Zen Kaku Gothic New";
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: var(--base);
  max-width: 400px;
  margin-bottom: calc(var(--base) * 1.0);
}

.about, .works {
  display: inline-block; /* 横並びにする */
  vertical-align: top;   /* 上揃え */
  margin-right: 0px;    /* 間隔 */
}

.works {
  margin-right: 0; /* 最後なので余計な余白を消す */
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
  body {
    background: #202020;
    color: #FBFBFB;
  }

  .links a {
    color: #fff;
  }

  .contact a {
    color: #fff;
  }
  
  .about a {
    color: #FBFBFB;
  }
}

@media (max-width: 1600px) {
  
  :root {
  --base: 30px; /* ベースライングリッド */
}
  
  
    body {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 上に揃える */
    padding: 0px;
    margin: 0;
    padding-right: 30px;
    box-sizing: border-box;
    overflow-x: hidden; /* ← 横スクロール禁止 */
  }
  .container {
    grid-template-columns: 1fr; /* 1カラムに */
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: var(--base);
    margin-top: 20px;
    
  }
  
  .left {
  flex-direction: flex;
}

  .left img {
    width: 100%;
    height: auto; /* アスペクト比を維持して縮む */
  }
  
    .links {
    display: grid;
    grid-template-columns: 1fr 1fr; /* ← 横2列に */
    gap: 10px 20px; /* 上下 10px, 左右 20px の間隔 */
  }

  .links a {
    font-size: 30px; 
  }
  
  .works {
    margin-left: 0px;
  }
  
    .works p {
  font-size: 30px;
  }
  
    .works h2 {
  font-size: 30px;
  }
  
  .about p {
  font-size: 30px;
  }
  
    .about h2 {
  font-size: 30px;
  }
  
  body {
    font-size: 30px; 
  }

  h1 {
    font-size: 170px; /* モバイル用に縮小 */
  }
  
.left img {
  width: calc(100% - 30px); /* 右だけ余白を削る */
  margin-left: 0;
  margin-right: 30px;
}

  .left img:nth-of-type(n+2) {
    display: none; /* 2枚目以降を非表示 */
  }

  .info-grid {
    grid-template-columns: 1fr; /* リンクとaboutも縦並び */
  }
}
