@charset "utf-8";

/* 
  Portfolio CSS
============================== */

/* 全体共通設定 ==================== */

:root {
  --color-white: #f7f7f3;
  --color-black: #303735;
  --color-darkGray: #64747b;
  --color-lightgray: #e5e7e0;
  --color-sage:#929e8d;
}

html {
  font-size: 16px;
  line-height: 1.8;
  font-family: sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  scroll-behavior: smooth;
}

/* レスポンシブイメージ */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* aタグのアニメーション時間 */
a {
  transition: 0.6s;
}

/* 見出しの共通設定 */
h1,
h2,
h3 {
  font-weight: bold;
  text-align: center;
}

/* 見出しの個別設定 */
h1 {
  font-size: 40px;
}

h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
}

/* ==================== 全体共通設定 */



/* 各セクションの設定 ==================== */

/* Header ######################################## */

header {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
}

header .logo {
  padding: 20px 0;
}

header .eyeCatch {
  background-image: url(../images/photo-eyecatch.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 80px 20px;
  text-shadow: 0 0 8px rgb(0 0 0 / 0.8);
}

/* ######################################## Header */



/* Navigation ######################################## */

nav {
  background-color: var(--color-white);
  border-bottom: 1px solid #d8ddd8;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul li a {
  display: inline-block;
  padding: 16px 10px;
  color: var(--color-black);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.008em;
}

nav ul li a:hover {
  color: var(--color-sage);
}

/* ######################################## Navigation */



/* Main ######################################## */

/* Main 共通設定 ==================== */
main p {
  margin-bottom: 16px;
}

main>section {
  padding: 60px 20px;
  scroll-margin-top: 40px;
}

/* 奇数番目 Section */
main>section:nth-child(odd) {
  background-color: var(--color-white);
}

/* 偶数番目 Section */
main>section:nth-child(even) {
  background-color: var(--color-lightgray);
}

main section .innerWrap {
  max-width: 1000px;
  margin: 0 auto;
}

/* 白枠 */
.frame {
  background-color: var(--color-white);
  box-shadow: 0 0 8px rgb(0 0 0 / 0.2);
  padding: 16px;
  border-radius: 16px;
}

/* カラム（列）設定 */
.column {
  display: grid;
  gap: 24px;
}

/* 2カラム */
.col2 {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

/* 3カラム */
.col3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 4カラム */
.col4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* 5カラム */
.col5 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}


/* Main Works ==================== */

/*profile*/
#profile .profileInfo{
  max-width: 680px;
  margin: 0 auto 48px;
}

#profile .profileInfo h3{
  font-size: 32px;
  text-align: left;
  margin-bottom: 20px;
}

#profile .profileInfo p{
  text-align: left;
  line-height: 2;
}

/* profile 全体の幅と配置を統一 */
#profile .innerWrap{
  max-width: 760px;
}

#profile .profileInfo{
  max-width: 100%;
}

#profile h3{
  text-align: left;
}

#profile .profileDetails{
  display: block;
}

#profile .profileDetails section{
  margin-bottom: 32px;
}

/* works 画像エリア */
.workImage{
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.workImage{
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* worksカード内の縦方向の配置*/
#works .frame{
  display: flex;
  flex-direction: column;
}

/* 詳細リンクをカード下部へ*/
#works .detailLink{
  margin-top: auto;
  padding-top: 20px;
}

/* 詳細リンク ++++++++++ */
.detailLink {
  text-align: right;
  margin-bottom: 0;
}

.detailLink a {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  background-color: var(--color-darkGray);
  color: var(--color-white);
  font-weight: bold;
}

.detailLink a:hover {
  padding: 4px 20px;
}

/* 作品詳細ページの画像枠*/
.work-image{
  align-self: start;
}


/* Main Skill ==================== */
/* Rating ++++++++++ */
#skill .rating {
  border: 2px solid var(--color-black);
}

#skill .rating span {
  display: inline-block;
  background-color: var(--color-lightgray);
  text-align: center;
  padding: 0 4px;
}

.rating-20 {
  width: 20%;
}

.rating-40 {
  width: 40%;
}

.rating-60 {
  width: 60%;
}

.rating-80 {
  width: 80%;
}

.rating-90 {
  width: 90%;
}

/* Main Contact ========== */
#contact form {
  max-width: 400px;
  margin: 0 auto;
}

#contact p {
  text-align: center;
}

#contact form dl {
  margin-bottom: 24px;
}

#contact form input,
#contact form textarea {
  background-color: var(--color-white);
  border: 2px solid var(--color-black);
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  resize: none;
}

/* 送信ボタン */
#contact form .submit {
  text-align: center;
}

#contact form .submit input {
  text-align: center;
  background-color: var(--color-black);
  color: var(--color-white);
  width: 200px;
  transition: 0.6s;
}

#contact form .submit input:hover {
  border-radius: 40px;
  width: 300px;
}

/* ######################################## Main */



/* PageTop ######################################## */
#pageTop a {
  display: block;
  text-align: center;
  padding: 10px 0;
  background-color: var(--color-darkGray);
  color: var(--color-white);
}

#pageTop a:hover {
  background-color: var(--color-white);
  color: var(--color-darkGray);
}

/* ######################################## PageTop */



/* Footer ######################################## */

footer {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 30px 0;
}

/* ######################################## Footer */

/*Quiet Nordic-Header&Hero*/
/*ヘッダー*/
 .site-header{
  background: var(--color-white);
  color: var(--color-black);
  text-align: left;
  border-bottom: 1px solid #d8ddd8;
}

.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

/*ナビゲーション*/
.main-nav {
  position: static;
  background: transparent;
  border: none;
  box-shadow: none;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav ul li a{
  padding: 24px 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.008em;
}

/*ヒーロー全体*/
.hero {
  max-width: 1440px;
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
  background: var(--color-white);
}

/*左側*/
.hero-content {
  padding: 80px 40x 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content h1 {
  font-size: clamp(64px, 8vw, 120px);
  font-weight:300;
  line-height:0.95;
  letter-spacing: -0.05em;
  text-align: left;
  margin-bottom: 48px;
}

.hero-description {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/*右側の写真*/
.hero-image {
  min-height: 560px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/*スマートフォン*/
@media (max-width: 767px) {
  .header-inner{
    padding: 16px 20px;
    flex-direction:column;
    gap: 8px;
  }

  .main-nav ul {
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-nav ul li a {
    padding: 8px 0;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 64px 24px;
  }


.hero-content h1 {
  font-size: clamp(64px, 14vw, 90px);
  margin-bottom: 32px;
}
.hero-image {
  min-height: 350px;
  height: 55vw;
}
}

/*profile*/

#profile {
  background-color:  #f7f7f3;
  padding: 100px 40px;
}

#profile .innerWrap{
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 32% 1fr;
  column-gap: 80px;
  row-gap: 24px;
  align-items: start;
}

#profile h2{
  grid-column: 1;
  grid-row: 1/4;

  text-align: left;
  font-size: 48px;
  font-weight: 400;
  margin: 0;
}

#profile .profileInfo
#profile .profileDetails
#profile .innerWrap > section{
  grid-column: 2;
}

#profile .profileDetails{
  display: block;
  border-top:1px solid #d8ddd8;
  padding-top:28px;
}

/*スマートフォン*/
@media (max-width: 767px){
  #profile {
    padding: 64px 24px;
  }
  
  #profile .innerWrap{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #profile h2,
  #profile .profileInfo,
  #profile .profileDetails,
  #profile .innerWrap > section {
    grid-column: 1;
    grid-row: auto;
  }

  #profile h2 {
    font-size: 40px;
  }
}

/* Quiet Nordic-Works */

#works .frame{
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

#works .column {
  gap: 32px;
}

#works .innerWrap {
  max-width: 1100px;
}

/*works 画像の配置*/
#works .workImage {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
}

#works .workImage img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/*works タイトル・説明文*/
#works .frame h3 {
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  margin: 0 0 12px;
  line-height: 1.5;
}

#works .frame > p:not(.workImage):not(.detai){
  font-size: 13px;
  line-height: 1.8;
  color: #666a68;
  margin: 0;
}

/*works 詳細リンク */

#works .detailLink {
  text-align: left;
  margin-top: 24px;
}

#works .detailLink a {
  display: inline-block;
  background: transparent;
  color: #596b68;
  border: none;
  border-radius: 0;
  padding: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #a5b5af;
  box-shadow: none;
}

#works .detailLink a:hover {
  color: #303735;
  border-bottom-color: #303735;
}