:root{
    --bg:#050505;
    --fg:#f2f2f2;
    --muted:rgba(242,242,242,.70);
    --line:rgba(242,242,242,.18);
    --line2:rgba(242,242,242,.12);
    --glass:rgba(255,255,255,.06);
    --shadow: 0 22px 80px rgba(0,0,0,.55);
    --container: 1120px;
  }
  
  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    background: radial-gradient(1200px 700px at 50% 10%, rgba(255,255,255,.06), transparent 60%),
                radial-gradient(900px 600px at 50% 95%, rgba(255,255,255,.05), transparent 55%),
                var(--bg);
    color:var(--fg);
    font-family: Inter, "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing:.2px;
  }
  
  a{ color:inherit; text-decoration:none; }
  .container{
    width:min(var(--container), calc(100% - 44px));
    margin-inline:auto;
  }
  
  /* Header */
  .topbar{
    border-bottom:1px solid var(--line);
    background: rgba(5,5,5,.65);
    backdrop-filter: blur(10px);
    position: sticky;
    top:0;
    z-index:50;
  }
  .topbar__inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
  }
  .brandBox{
    display:inline-flex;
    align-items:center;
    padding:8px 14px;
    border:1px solid var(--line);
    font-family: "Cormorant Garamond", serif;
    letter-spacing:.04em;
  }
  .topnav{
    display:flex;
    gap:18px;
    font-family: "Cormorant Garamond", serif;
    letter-spacing:.04em;
    color:rgba(242,242,242,.82);
  }
  .topnav a{ padding:8px 6px; }
  .topnav a:hover{ opacity:.82; }
  
  /* Hero */
  .hero2{ padding: 20px 0 30px; }
  .hero2__inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:18px;
    text-align:center;
  }
  
  .laptop{
    width:min(860px, 92vw);
    margin-top:10px;
  }
  .laptop__screen{
    border:1px solid var(--line);
    border-radius: 18px;
    background:
      radial-gradient(700px 400px at 50% 20%, rgba(255,255,255,.08), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    box-shadow: var(--shadow);
    overflow:hidden;
  }
  .laptop__screenInner{
    padding: 44px 22px;
    min-height: 320px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
  }
  .heroTitle{
    margin:0;
    font-family:"Cormorant Garamond", serif;
    font-weight:600;
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing:.06em;
  }
  .heroSub{
    margin:0;
    color:rgba(242,242,242,.75);
    font-size: 13px;
    letter-spacing:.12em;
  }
  
  .laptop__base{
    height:14px;
    width:92%;
    margin: 10px auto 0;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    filter: blur(.2px);
    opacity:.9;
  }
  
  .heroCopy{
    max-width: 78ch;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.0;
    margin: 0;
  }
  
  .heroBtns{
    display:flex;
    gap:14px;
    margin-top:6px;
  }
  
  .btnPill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 10px 18px;
    border-radius: 999px;
    border:1px solid var(--line);
    font-size: 12.5px;
    letter-spacing:.06em;
    background: transparent;
  }
  .btnPill--fill{
    background: var(--fg);
    color: var(--bg);
  }
  
  /* Sections */
  .section2{
    padding: 44px 0 54px;
  }
  .sectionLabel{
    width:fit-content;
    margin: 0 auto 22px;
    padding: 8px 18px;
    border:1px solid var(--line);
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.14em;
  }
  .sectionLead{
    text-align:center;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.0;
    margin: 0 auto 26px;
    max-width: 74ch;
  }
  
  /* About */
  .aboutGrid{
    display:grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 26px;
    align-items:start;
  }
  .aboutText p{
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.05;
  }
  .em{ color: rgba(242,242,242,.92); }
  
  .miniTitle{
    margin: 18px 0 10px;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.12em;
    color: rgba(242,242,242,.86);
  }
  
  .careerList{ display:flex; flex-direction:column; gap:10px; }
  .careerRow{
    display:grid;
    grid-template-columns: 86px 1fr 1.3fr;
    gap: 10px;
    align-items:center;
    color: rgba(242,242,242,.72);
    font-size: 12px;
  }
  .careerLine{
    height:1px;
    background: var(--line2);
  }
  
  .aboutPhoto{
    display:flex;
    justify-content:flex-end;
  }
  .photoPlaceholder{
    width: min(430px, 100%);
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    border:1px solid var(--line);
    background:
      radial-gradient(500px 260px at 50% 30%, rgba(255,255,255,.10), transparent 60%),
      #000;
    box-shadow: var(--shadow);
  }
  
  /* Skills */
  .skillCards{
    display:grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
    margin-top: 18px;
  }
  .skillCard{
    display:block;
    text-align:center;
    padding: 18px 14px 14px;
    border:1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
  }
  .skillBox{
    width:100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border:1px solid var(--line2);
    background: #000;
  }
  .skillName{
    margin-top: 12px;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
  }
  .skillMore{
    margin-top: 8px;
    font-size: 11px;
    color: rgba(242,242,242,.62);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  
  .credBox{
    margin-top: 26px;
    padding: 18px 16px;
    border:1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
  }
  .credList{
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.0;
  }

  /* ===== Skills Detail (drawer-like card) ===== */
.skillDetail{
    margin-top: 18px;
    border:1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    overflow:hidden;
    transform: translateY(-6px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
  }
  .skillDetail.is-open{
    opacity: 1;
    transform: translateY(0);
  }
  .skillDetail__inner{ padding: 16px; }
  
  .skillDetail__head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line2);
  }
  .skillDetail__kicker{
    font-size: 11px;
    letter-spacing: .14em;
    color: rgba(242,242,242,.62);
    font-family:"Cormorant Garamond", serif;
  }
  .skillDetail__title{
    margin: 6px 0 0;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
    font-weight:600;
  }
  .skillDetail__close{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border:1px solid var(--line);
    background: transparent;
    color: var(--fg);
    font-size: 20px;
  }
  .skillDetail__body{
    padding-top: 14px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .skillDetail__block{
    border:1px solid var(--line2);
    border-radius: 14px;
    background: rgba(0,0,0,.35);
    padding: 12px 12px;
  }
  .skillDetail__block h4{
    margin:0 0 8px;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
  }
  .skillDetail__block ul{
    margin:0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.0;
  }
  
  @media (max-width: 920px){
    .skillDetail__body{ grid-template-columns: 1fr; }
  }
  
  /* Skill card button style reset */
  .skillCard{
    cursor: pointer;
  }
  .skillCard:focus{
    outline: 2px solid rgba(242,242,242,.25);
    outline-offset: 3px;
  }
  
  /* Works list */
  .workList{ display:flex; flex-direction:column; gap: 16px; }
  .workRow{
    display:grid;
    grid-template-columns: 320px 1fr;
    border:1px solid var(--line);
    border-radius: 16px;
    overflow:hidden;
    background: rgba(255,255,255,.02);
  }
  .workImg{
    min-height: 170px;
    background:
      radial-gradient(420px 240px at 50% 30%, rgba(255,255,255,.08), transparent 60%),
      #000;
    border-right:1px solid var(--line);
  }
  .workCard{
    padding: 16px 16px 14px;
  }
  .workCard h3{
    margin:0 0 6px;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
    font-weight:600;
  }
  .workCard p{
    margin:0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.0;
  }
  .workTags{
    margin-top: 10px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
  }
  .workTags span{
    border:1px solid var(--line2);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    color: rgba(242,242,242,.72);
  }

  /* ===== Works hero (image + glass card) ===== */
.worksHero{
    position: relative;
    min-height: 600px;
    display:flex;
    align-items:center;
    border-bottom: 1px solid var(--line);
  }
  .worksHero__bg{
    position:absolute;
    inset:0;
    background:
      radial-gradient(900px 420px at 50% 30%, rgba(255,255,255,.10), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.20)),
      #000;
    filter: blur(0px);
  }
  .worksHero__inner{
    position:relative;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 18px;
    padding: 44px 0;
  }
  .worksHero__glass{
    width: min(820px, 92vw);
    border:1px solid var(--line);
    background: rgba(255,255,255,.01);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 22px 18px;
    text-align:center;
  }
  .worksHero__title{
    margin:0;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.12em;
    font-size: 44px;
  }
  .worksHero__sub{
    margin: 6px 0 10px;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
    opacity:.9;
  }
  .worksHero__lead{
    margin:0;
    color: rgba(242,242,242,.75);
    font-size: 12.5px;
    line-height: 2.0;
  }
  .worksHero__arrow{
    opacity:.8;
    font-size: 22px;
  }
  
  /* Cards like screenshot bottom list */
  .workGridCards{
    display:flex;
    flex-direction:column;
    gap: 14px;
  }
  .workCard2{
    border:1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.02);
    overflow:hidden;
    display:grid;
    grid-template-columns: 320px 1fr;
  }
  .workCard2__thumb{
    background:
      radial-gradient(420px 240px at 50% 30%, rgba(255,255,255,.08), transparent 60%),
      #000;
    border-right:1px solid var(--line);
    min-height: 190px;
  }
  .workCard2__body{ padding: 16px; }
  .workCard2__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .workCard2__top h3{
    margin:0;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
  }
  .pill{
    border:1px solid var(--line2);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    color: rgba(242,242,242,.72);
  }
  .workCard2__body p{
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.0;
  }
  .workMeta{
    border-top:1px solid var(--line2);
    padding-top: 10px;
    display:flex;
    flex-direction:column;
    gap: 8px;
    color: rgba(242,242,242,.74);
    font-size: 12px;
  }
  .workMeta span{
    display:inline-block;
    min-width: 48px;
    color: rgba(242,242,242,.55);
    letter-spacing:.08em;
  }
  .workMeta a{
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-right: 10px;
  }
  
  @media (max-width: 920px){
    .workCard2{ grid-template-columns: 1fr; }
    .workCard2__thumb{ border-right:none; border-bottom:1px solid var(--line); }
    .worksHero__title{ font-size: 34px; }
  }

  /* ===== Works hero background image (opacity) ===== */
.worksHero__bg{
    position:absolute;
    inset:0;
    overflow:hidden;
  }
  .worksHero__bgImg{
    width:100%;
    height:100%;
    object-fit: cover;
    opacity: .60;          /* ここで薄くする */
    filter: blur(0.5px);
    transform: scale(1.03);
  }
  .worksHero__bg::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.60));
  }
  
  /* Blog */
  .blogBox{
    display:grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    border:1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,.02);
  }
  .blogThumb{
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    border:1px solid var(--line2);
    background:#000;
  }
  .blogTitle{
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
    font-size: 18px;
  }
  .blogInfo p{
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.0;
  }
  .textLink{
    font-size: 12px;
    color: rgba(242,242,242,.82);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  
  /* Contact */
  .contactFrame{
    border:1px solid var(--line);
    border-radius: 16px;
    padding: 22px 16px;
    background: rgba(255,255,255,.02);
  }
  .contactText{
    margin:0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2.0;
    text-align:center;
  }
  .contactLinks{
    margin-top: 16px;
    display:flex;
    justify-content:center;
    gap: 12px;
    flex-wrap:wrap;
  }
  
  /* Footer */
  .footer2{
    margin-top: 14px;
    border-top:1px solid var(--line);
    padding: 18px 0;
  }
  .footer2__inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    color: rgba(242,242,242,.65);
    font-size: 12px;
  }
  .footerLink{
    color: rgba(242,242,242,.70);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .footerCopy{ opacity:.85; }
  
  /* Responsive */
  @media (max-width: 920px){
    .topnav{ display:none; }
    .aboutGrid{ grid-template-columns: 1fr; }
    .skillCards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
    .workRow{ grid-template-columns: 1fr; }
    .workImg{ border-right:none; border-bottom:1px solid var(--line); }
    .blogBox{ grid-template-columns: 1fr; }
  }

  /* ===== Media (image placeholders that never break layout) ===== */
.media{
    position: relative;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
  }
  
  /* 比率を固定して、画像サイズに依存しないようにする */
  .media--16x10{ aspect-ratio: 16 / 10; }
  .media--16x9 { aspect-ratio: 16 / 9; }
  .media--4x3  { aspect-ratio: 4 / 3; }
  .media--1x1  { aspect-ratio: 1 / 1; }
  
  /* 画像は枠にフィットさせる（大きくても小さくてもOK） */
  .media > img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;      /* 重要：比率固定でトリミングして崩れない */
    object-position: center;
  }
  
  /* 画像が未設定でも“黒ベースの図形”として成立させる */
  .media::after{
    content: "";
    position:absolute;
    inset:0;
    background:
      radial-gradient(600px 320px at 50% 30%, rgba(255,255,255,.10), transparent 60%);
    pointer-events:none;
  }
  
  /* 見え方をより添付イメージ寄り（必要なら） */
  .media--soft{
    box-shadow: var(--shadow);
  }
  
  /* ===== Works section title row (View More right) ===== */
  .sectionRow{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom: 10px;
  }
  .viewMoreRight{
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
    font-size: 13px;
    color: rgba(242,242,242,.78);
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
  }
  .viewMoreRight:hover{ opacity:.82; }

  /* ===== Hero PC (crop white bg + bigger) ===== */
.heroPc{
    width: min(980px, 94vw);            /* 画像も少し大きく */
    margin-top: 8px;
  }
  
  .heroPc .media{
    border-radius: 18px;
  }
  
  /* pc.png の白背景を“見切らせる”ため、拡大してトリミング */
  .heroPc img{
    transform: scale(1.18);            /* 重要：白縁を切る */
    object-position: center 58%;       /* 重要：少し下寄せで白を減らす */
  }
  
  /* PC上に文字を載せる */
  .heroPc__overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 22px;
    text-align:center;
  }
  
  .heroPc__panel{
    width: min(720px, 92%);
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: var(--shadow);
  }
  
  .heroPc__title{
    margin:0;
    font-family:"Cormorant Garamond", serif;
    letter-spacing:.10em;
    font-weight:600;
    font-size: clamp(34px, 4.6vw, 56px); /* 文字も大きく */
    line-height: 1.15;
  }
  
  .heroPc__sub{
    margin: 10px 0 0;
    color: rgba(242,242,242,.76);
    font-size: 13px;
    letter-spacing:.12em;
  }
  
  /* Hero本文も少し大きく */
  .heroCopy{
    font-size: 13.5px;
  }

  /* ===== Hero PC Mock (show whole laptop like screenshot-2) ===== */
.heroPcWrap{
    width: min(1040px, 96vw);   /* 画像も文字も大きく */
    margin: 10px auto 0;
    position: relative;
    transform: scale(.9);
    transform-origin: top center;
  }
  
  /* PC画像は「全体を見せる」ので aspect-ratio 固定しない */
  .heroPcWrap .pcMock{
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 28px 90px rgba(0,0,0,.65));
  }
  
  /* 画面内に文字を出す（画面領域に合わせて配置） */
  .heroPcWrap .pcScreenOverlay{
    position: absolute;
    /* ↓ここが“画面の位置”です。画像に合わせて微調整できます */
    left: 9%;
    top: 10%;
    width: 82%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    pointer-events: none;
  }
  
  /* 画面上のテキストパネル */
  .heroPcWrap .pcPanel{
    width: min(760px, 96%);
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
  }
  
  .heroPcWrap .pcTitle{
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: .10em;
    font-weight: 600;
    font-size: clamp(32px, 4vw, 40px); 
    line-height: 1.18;
  }
  
  .heroPcWrap .pcSub{
    margin: 10px 0 0;
    color: rgba(242,242,242,.76);
    font-size: 12px;
    letter-spacing: .12em;
  }
  
  /* スマホでの見え方調整 */
  @media (max-width: 920px){
    .heroPcWrap{ width: min(980px, 96vw); }
    .heroPcWrap .pcScreenOverlay{
      left: 7%;
      top: 12%;
      width: 86%;
      height: 66%;
    }
  }