@charset "UTF-8";

/* ===== Base ===== */
:root{
  --bg: #dadfe8;
  --ink: #0a1228;
  --muted: rgba(10, 18, 40, 0.68);
  --hairline: rgba(10, 18, 40, 0.18);
  --accent: #97bbd3;
}

html { font-size: 100%; }

body{
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ===== Header / Nav ===== */
.site-header{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 6px;
}

.site-title{
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-title .jp{
  font-weight: 600;
  opacity: 0.85;
}

.global-nav ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.global-nav li{
  background: var(--ink);
  border-radius: 999px;
}

.global-nav a{
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--bg);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.global-nav a:hover{
  color: var(--accent);
  transform: translateY(-1px);
  opacity: 0.98;
}

.global-nav .sep{
  opacity: 0.6;
}

/* ===== Hero (Monochrome / Minimal) ===== */
.hero{
  /* 画像の部分 */
  height: min(72vh, 720px);
  margin: 12px 0 0;
  position: relative;
  overflow: hidden;

  /* 背景画像 */
  background-image: url("/assets/img/Kohei_Ishikawa_Official_Website_Banner1.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;

  /* モノクロ寄りにする */
  filter: grayscale(1) contrast(1.05);
}

/* モノクロ + 余白感 + 読みやすさを作る暗幕 */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(10,18,40,0.82) 0%,
      rgba(10,18,40,0.55) 38%,
      rgba(10,18,40,0.22) 65%,
      rgba(10,18,40,0.06) 100%
    );
}

/* ミニマルな“ノイズ感”を少しだけ（上品に見える） */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: radial-gradient(rgba(218,223,232,0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events:none;
}

/* ヒーロー内テキスト（オーバーレイの上に） */
.hero__inner{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 72px 16px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.hero__kicker{
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(218,223,232,0.88);
}

.hero__name{
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--bg);
  text-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero__sub{
  margin: 0;
  font-size: 1.05rem;
  color: rgba(218,223,232,0.9);
  letter-spacing: 0.06em;
}

/* 細いライン：現代音楽っぽい“余白と緊張感” */
.hero__line{
  width: min(520px, 72vw);
  height: 1px;
  background: rgba(218,223,232,0.35);
  margin: 14px 0 10px;
}

.hero__desc{
  margin: 0;
  color: rgba(218,223,232,0.88);
  max-width: 54ch;
  font-size: 0.98rem;
}

/* ボタン（ミニマル） */
.hero__actions{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(218,223,232,0.92);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hero__btn:hover{
  transform: translateY(-1px);
  opacity: 0.95;
}

.hero__btn--ghost{
  background: rgba(10,18,40,0.22);
  color: rgba(218,223,232,0.92);
  border: 1px solid rgba(218,223,232,0.35);
  backdrop-filter: blur(10px);
}

/* ===== Footer ===== */
.site-footer{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 30px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a{
  font-size: 1.4rem;
  color: var(--ink);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover{
  opacity: 0.9;
  transform: translateY(-2px);
  color: var(--ink);
}

.Copyright small{
  font-size: 0.85rem;
  color: rgba(10, 18, 40, 0.65);
}

/* ===== Responsive ===== */
@media (max-width: 640px){
  .site-title{
    font-size: 1.2rem;
  }
  .hero__inner{
    padding: 54px 16px;
  }
  .hero{
    height: min(66vh, 640px);
  }
}


/* ===== Mobile Fix ===== */
@media (max-width: 640px){

  /* Header：余白と文字サイズを落とす */
  .site-header{
    padding: 14px 14px 6px;
  }

  .site-title{
    font-size: 1.05rem;      /* 小さく */
    line-height: 1.3;
    margin-bottom: 10px;
  }

  /* タイトルの日本語部分を弱めて折り返しを自然に */
  .site-title .jp{
    display: inline;
    opacity: 0.75;
    font-weight: 600;
  }

  /* Nav：2列グリッドにしてボタンを小さく */
  .global-nav ul{
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2列 */
    gap: 10px;
    justify-content: center;
  }

  .global-nav li{
    border-radius: 999px;
  }

  .global-nav a{
    padding: 10px 10px;       /* 小さく */
    font-size: 0.88rem;       /* 小さく */
    text-align: center;
    white-space: nowrap;      /* ボタン内で折り返さない */
  }

  /* 「|」が詰まって見えるのでスマホは消す（任意） */
  .global-nav .sep{
    display: none;
  }

  /* Hero：スマホは“白い部分”に被らないよう暗幕を強める */
  .hero{
    height: min(70vh, 560px);
    filter: grayscale(1) contrast(1.08) brightness(0.92);
    background-position: 65% bottom; /* ←右寄りにして白を避ける */
  }

  .hero::before{
    /* 暗幕を強めて白との干渉を消す */
    background: linear-gradient(90deg,
      rgba(10,18,40,0.90) 0%,
      rgba(10,18,40,0.74) 55%,
      rgba(10,18,40,0.40) 82%,
      rgba(10,18,40,0.18) 100%
    );
  }

  /* テキスト：少しだけ小さく、行間を詰める */
  .hero__inner{
    padding: 40px 16px;
  }

  .hero__kicker{
    font-size: 0.78rem;
    letter-spacing: 0.22em;
  }

  .hero__name{
    font-size: clamp(1.9rem, 8.2vw, 2.6rem);
  }

  .hero__sub{
    font-size: 0.98rem;
  }

  .hero__desc{
    font-size: 0.92rem;
  }

  .hero__actions{
    gap: 10px;
  }

  .hero__btn{
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

/* ===== Common page layout ===== */
.page{
  margin-top: 6px;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section{
  padding: 26px 0;
}

.section-title{
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted{
  color: var(--muted);
}

.link{
  color: rgba(218,223,232,0.92);
  background: rgba(10,18,40,0.35);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
}
.link:hover{
  opacity: 0.9;
}

/* Nav active */
.global-nav a.is-active{
  color: var(--accent);
  opacity: 1;
}

/* ===== Page header (mini-hero) ===== */
.page-hero{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 8px;
}

.page-hero__title{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.page-hero__jp{
  font-weight: 600;
  opacity: 0.78;
}
.page-hero__lead{
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== Cards ===== */
.card{
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
}

.card--soft{
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  padding: 18px 18px;
}

/* ===== Profile image card : グレー枠（背景）を消す ===== */
.card--media{
  background: transparent;   /* ← グレー消す */
  padding: 0;                /* ← 余白消す */
  border: none;              /* ← 枠線消す（.card の border を打ち消し） */
  border-radius: 0;          /* ← 外枠の角丸も不要なら */
  overflow: visible;         /* ← 外枠でクリップしない */
  height: fit-content;
  align-self: start;

  display: flex;
  justify-content: center;
}

/* 画像そのものは今のサイズ感をキープ */
.card--media img{
  width: 100%;
  max-width: 360px;          /* ← “サイズ感はそれでいい” を維持 */
  height: auto;
  display: block;

  border-radius: 18px;       /* ← 画像側だけ角丸（おしゃれ） */
  filter: none;              /* ← 白黒になってるなら解除 */
}

/* SP */
@media (max-width: 820px){
  .card--media img{
    max-width: 320px;
  }
}


/* ===== Profile layout ===== */
.profile-grid{
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.profile-meta{
  margin-top: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.profile-meta dl{
  margin: 0;
  display: grid;
  gap: 10px;
}
.profile-meta dt{
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.profile-meta dd{
  margin: 2px 0 0;
  color: rgba(10,18,40,0.86);
}

/* ===== Awards ===== */
.awards{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}
.awards li{
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(218,223,232,0.22);
}
.awards__year{
  font-weight: 800;
  letter-spacing: 0.08em;
}
.awards__text{
  color: rgba(10,18,40,0.80);
}
.note{
  margin-top: 12px;
  font-size: 0.9rem;
}

/* ===== Responsive (Profile) ===== */
@media (max-width: 820px){
  .profile-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .page-hero__title{
    font-size: 1.15rem;
  }
  .card--soft{
    padding: 16px 14px;
  }
  .awards li{
    grid-template-columns: 62px 1fr;
  }
}

/* =========================
   Works Page
========================= */

.works-intro{
  display: grid;
  gap: 12px;
}

.works-inline-link{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(10,18,40,0.25);
}
.works-inline-link:hover{
  opacity: 0.85;
}

.works-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,18,40,0.18);
  background: rgba(255,255,255,0.18);
  color: rgba(10,18,40,0.78);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  user-select: none;
}
.chip--active{
  background: rgba(10,18,40,0.85);
  color: rgba(218,223,232,0.95);
  border-color: rgba(10,18,40,0.0);
}

.works-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* 2カラムは広い画面だけ */
@media (min-width: 920px){
  .works-grid{
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.work-card{
  border: 1px solid rgba(10,18,40,0.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(6px);
}

.work-head{
  padding: 16px 16px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(10,18,40,0.14);
}

.work-title{
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.work-sub{
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: rgba(10,18,40,0.62);
}

.dot{
  opacity: 0.55;
  padding: 0 6px;
}

.work-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-content: flex-start;
}

.badge{
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(10,18,40,0.85);
  border: 1px solid rgba(10,18,40,0.16);
  background: rgba(218,223,232,0.35);
}

.work-body{
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.work-meta{
  margin: 0;
  display: grid;
  gap: 8px;
}

.work-meta > div{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: baseline;
}

.work-meta dt{
  font-size: 0.82rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.7;
}

.work-meta dd{
  margin: 0;
  color: rgba(10,18,40,0.86);
}

.work-desc{
  margin: 0;
  line-height: 1.75;
}

.work-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(10,18,40,0.92);
  border: 1px solid rgba(10,18,40,0.18);
  background: rgba(255,255,255,0.18);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.work-link:hover{
  transform: translateY(-1px);
  opacity: 0.9;
}
.work-link i{
  opacity: 0.8;
}

/* SP調整 */
@media (max-width: 640px){
  .work-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .work-tags{
    justify-content: flex-start;
  }
  .work-meta > div{
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* ===== Contact (simple / mailto) ===== */
.contact-simple{
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-mail{
  margin: 18px 0 16px;
}

.mailto{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(10,18,40,0.18);
  background: rgba(10,18,40,0.86);
  color: rgba(218,223,232,0.95);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mailto i{
  font-size: 1.2rem;
}

.mailto:hover{
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ===== Contact mail button: SPで右切れ防止 ===== */
@media (max-width: 640px){
  .contact-mail{
    width: 100%;
  }

  .mailto{
    display: flex;           /* inline-flex をやめる */
    width: 100%;             /* 親幅いっぱい */
    max-width: 100%;
    box-sizing: border-box;  /* padding込みで幅計算 */
    justify-content: center;
    padding: 14px 14px;      /* 少しだけ縮める */
    gap: 10px;

    overflow-wrap: anywhere; /* 長いメールは折り返してOK */
    word-break: break-word;  /* 保険 */
    flex-wrap: wrap;         /* 必要なら2行に */
    text-align: center;
  }
}
