/* ================= FONTS ================== */
@font-face {
    font-family: 'TitilliumWebRegular';
    src: url('./fonts/TitilliumWebRegular.eot');
    src: url('./fonts/TitilliumWebRegular.eot') format('embedded-opentype'),
         url('./fonts/TitilliumWebRegular.woff2') format('woff2'),
         url('./fonts/TitilliumWebRegular.woff') format('woff'),
         url('./fonts/TitilliumWebRegular.ttf') format('truetype'),
         url('./fonts/TitilliumWebRegular.svg#TitilliumWebRegular') format('svg');
}
@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-Regular.woff2') format('woff2'),
      url('./fonts/Raleway-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-Italic.woff2') format('woff2'),
      url('./fonts/Raleway-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-Medium.woff2') format('woff2'),
      url('./fonts/Raleway-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-SemiBoldItalic.woff2') format('woff2'),
      url('./fonts/Raleway-SemiBoldItalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-LightItalic.woff2') format('woff2'),
      url('./fonts/Raleway-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-Bold.woff2') format('woff2'),
      url('./fonts/Raleway-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-Light.woff2') format('woff2'),
      url('./fonts/Raleway-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-SemiBold.woff2') format('woff2'),
      url('./fonts/Raleway-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('./fonts/Raleway-MediumItalic.woff2') format('woff2'),
      url('./fonts/Raleway-MediumItalic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* ================= RESET ================== */
/*
  Made by Elly Loel - https://ellyloel.com/
  参考記事:
    - Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
    - Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
    - Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
  メモ:
    - :where()は簡単に上書きできるように詳細度を低くするために使用しています。
*/
 
* {
    /* すべてのデフォルトのマージンを削除 */
    margin: 0;
    /* すべてのデフォルトのパディングを削除 */
    padding: 0;

    list-style: none;
  }
   
  /* より直感的なボックスサイズのモデルを使用 */
  *,
  ::before,
  ::after {
    box-sizing: border-box;
  }
   
  /* fieldset, progress, meter以外のすべての要素でボーダーを削除し、背景に適切なデフォルトを設定 */
  *:where(:not(progress, meter)) {
    border-width: 0;
    border-style: solid;
    background-origin: border-box;
    background-repeat: no-repeat;
  }
   
  html {
    /* アプリケーションでパーセントによる高さを許可する  */
    block-size: 100%;
    /* テキストのサイズはfont-sizeのみで制御されるようにする */
    -webkit-text-size-adjust: none;
  }
   
  /* 減速を好まないユーザーのためにスムーズなスクロールを実現 */
  @media (prefers-reduced-motion: no-preference) {
    html:focus-within {
      scroll-behavior: smooth;
    }
  }
   
  body {
    /* テキストのレンダリングを改善 */
    -webkit-font-smoothing: antialiased;
    /* https://marco.org/2012/11/15/text-rendering-optimize-legibility */
    text-rendering: optimizeSpeed;
    /* アプリケーションでパーセントによる高さを許可する */
    min-block-size: 100%;
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter#example_2 */
    /* scrollbar-gutter: stable both-edges; バグが修正されるまで削除: https://bugs.chromium.org/p/chromium/issues/detail?id=1318404#c2 */
  }
   
  /* 各メディア要素のデフォルトを改善 */
  :where(img, svg, video, canvas, audio, iframe, embed, object) {
    display: block;
  }
  :where(img, svg, video) {
    block-size: auto;
    max-inline-size: 100%;
  }
   
  /* ストロークを削除し、fillの塗りつぶしカラーはフォントカラーを継承 */
  :where(svg) {
    stroke: none;
    fill: currentColor;
  }
   
  /* fill属性のないSVG */
  :where(svg):where(:not([fill])) {
    /* fillを取り除き、ストロークのカラーはフォントカラーを継承 */
    stroke: currentColor;
    fill: none;
    /* 丸みを帯びたストローク */
    stroke-linecap: round;
    stroke-linejoin: round;
  }
   
  /* width属性のないSVGのサイズを設定 */
  :where(svg):where(:not([width])) {
    inline-size: 5rem;
  }
   
  /* フォーム内のタイポグラフィのスタイルを削除 */
  :where(input, button, textarea, select),
  :where(input[type="file"])::-webkit-file-upload-button {
    color: inherit;
    font: inherit;
    font-size: inherit;
    letter-spacing: inherit;
  }
   
  /* textareaのサイズ変更は垂直のみにし、ブラウザがサポートしている場合にのみblockにします */
  :where(textarea) {
    resize: vertical;
  }
  @supports (resize: block) {
    :where(textarea) {
      resize: block;
    }
  }
   
  /* テキストのオーバーフローを回避 */
  :where(p, h1, h2, h3, h4, h5, h6) {
    overflow-wrap: break-word;
  }
   
  /* article、aside、nav、section内のh1フォントサイズを修正 */
  h1 {
    font-size: 2em;
  }
   
  /* リストの役割をするul、ol要素のリストスタイルを削除。デフォルトのスタイルが削除されることを示唆しています */
  :where(ul, ol)[role="list"] {
    list-style: none;
  }
   
  /* クラスを持たないアンカータグに、より読みやすい下線スタイルを設定。アンカータグに設定することもできますが、コンフリクトを引き起こす可能性があります */
  a:not([class]) {
    text-decoration-skip-ink: auto;
  }
   
  /* インタラクティブな要素は適切なカーソルを設定して操作できることを明確にする */
  :where(a[href], area, button, input, label[for], select, summary, textarea, [tabindex]:not([tabindex*="-"])) {
    cursor: pointer;
    touch-action: manipulation;
  }
  :where(input[type="file"]) {
    cursor: auto;
  }
  :where(input[type="file"])::-webkit-file-upload-button,
  :where(input[type="file"])::file-selector-button {
    cursor: pointer;
  }
   
  /* フォーカスのアウトラインをアニメーション化 */
  @media (prefers-reduced-motion: no-preference) {
    :focus-visible {
      transition: outline-offset 145ms cubic-bezier(0.25, 0, 0.4, 1);
    }
    :where(:not(:active)):focus-visible {
      transition-duration: 0.25s;
    }
  }
  :where(:not(:active)):focus-visible {
    outline-offset: 5px;
  }
   
  /* ユーザーがボタンのテキストを選択できないようにする */
  :where(button, button[type], input[type="button"], input[type="submit"], input[type="reset"]),
  :where(input[type="file"])::-webkit-file-upload-button,
  :where(input[type="file"])::file-selector-button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    text-align: center;
  }
   
  /* 無効化されたボタンには無効化されたカーソルを表示 */
  :where(button, button[type], input[type="button"], input[type="submit"], input[type="reset"])[disabled] {
    cursor: not-allowed;
  }
/* =============== BASES =============== */  
html {
    font-size: 62.5%;
}
body {
  line-height: 1.3;
    font-size: 1.4em;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    background-color: #f0f1f3;
}
/* =============== CUSTOM CSS =============== */  
.flex {
  display: flex;
}
.nowrap {
  white-space: nowrap;
}
.italic {
    font-style: italic;
}
.right {
    text-align: right;
}
.f-10 {
  font-size: 1rem;
}
.f-12 {
  font-size: 1.2rem;
}
.pink {
  color: rgb(255, 115, 115);
}
/* =============== TOP PAGE =============== */  
.bg-top {
    width: 100%;
    height: 100%;
    background-image: url(../assets/img/bg-top.jpg);
    background-size: cover;
    background-position: center;
}
/* =============== NAV =============== */  
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    font-size: 1.8rem;
    padding: 10px;
    background-color: rgba(59, 59, 59, 0.7);
    z-index: 99;
}
#main-nav ul {
    text-align: right;
    padding-top: 18px;
}
#main-nav li a {
    display: block;
    text-decoration: none;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    padding: 3px 10px;
}
#main-nav li a:hover, #main-nav li a.active {
    color: #fff;
    transition: all 0.4s;
}
@media screen and (max-width: 768px){
  #main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 70px;
  }
  h1 img {
    height: 40px;
  }
  #main-nav ul {
    text-align: center;
    padding-top: 0;
  }
  #main-nav li {
    display: inline-block;
}
}
/* =============== WORK LIST =============== */  
#work-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    max-width: 1300px;
    font-size: 1.8rem;
    margin-left: 220px;
    padding: 60px 20px 30px 0;
}
.work-list-item {
    margin: 25px 20px;
}
.work-list-item a {
    text-decoration: none;
}
.item-thumb {
    margin-bottom: 6px;
}
.item-title {
    font-size: 1.4rem;
    text-align: right;
    color: #000;
}
.item-title .italic {
    font-size: 1.6rem;
    margin-bottom: 5px;
}
.work-list-item a:hover {
    opacity: 0.8;
    transition: all 0.6s;
}
@media screen and (max-width: 768px){
  #work-list {
    justify-content: center;
    position: relative;
    top: 70px;
    margin-left: 0;
    padding: 0 10px 30px 10px;
  }
}
/* =============== WORK DETAIL =============== */  
#work-detail, #profile, #contact-form  {
    position: relative;
    max-width: 1500px;
    font-size: 1.6rem;
    margin-left: 240px;
    padding: 60px 20px 30px 0;
}

.work-detail-bloc {
    margin-bottom: 60px;
}
.work-detail-bloc img, .work-detail-video {
    margin-bottom: 20px;
}
.detail-text-title {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 10px;
}
.detail-text-info {
    margin-bottom: 6px;
}
.detail-text-description {
    max-width: 760px;
    font-size: 1.8rem;
    padding: 10px 0;
    margin: 20px 0;
    border-top: 1px solid #9f9f9f;
    border-bottom: 1px solid #9f9f9f;
}
.work-detail-text p {
text-align: justify;
}
.detail-text-link {
    color: #4d4d4d;
}
.detail-text-link:hover {
    color: #6f6f6f;
}
.work-detail-video {
    width: 100%;
    min-width: ;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
}
@media screen and (max-width: 768px){ 
  #work-detail, #profile, #contact-form  {
    position: relative;
    top: 80px;
    margin-left: 0;
    padding: 0 10px 30px 10px;
}
}
/* =============== PROFILE =============== */  
#profile p {
  display: flex;
  max-width: 850px;
    margin-bottom: 4px;
}
.profile-categorie {
    font-weight: 600;
    margin: 12px 0 6px 0
}
.profile-year {
    font-weight: 600;
    color: #6f6f6f;
    margin-right: 10px;
}
/* =============== GALLERY =============== */  
.flex-gallery {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 20px;
}
.flex-gallery a {
    width: 120px;
    height: 120px;
    overflow: hidden;
}
.flex-gallery img {
    width: 120px;
    height: 120px;
    opacity: 1;
}
.flex-gallery img:hover {
    opacity: 0.6;
    transform: scale(1.2);
    transition: all 0.2s;
}
/* =============== CONTACT =============== */  
#contact-form {
    width: 100%;
    max-width: 360px;
}
#contact-form legend {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}
#contact-form li {
    margin-bottom: 10px;
}
#contact-form label {
    display: block;
    margin-bottom: 4px;
}
#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 2px;
    border-radius: 5px;
}
#button-send {
    position: relative;
    color: #fff;
    background-color: #4d4d4d;
    padding: 6px 10px;
    border-radius: 5px;
}
#button-send:hover {
    top: 1px;
    left: 1px;
    opacity: 0.8;
    transition: all 0.2s;
}
/* =============== Lang change =============== */  
 /* === ラジオボタンは非表示 ================== */
 #langBox input[type="radio"]{
  display    : none;
}
 /* === 各ラジオボタンのラベルをボタンに変更 == */
#langBox label{
  display    : inline-block;
  color: #777777;
  border-radius: 2px;
  padding    : 1px 3px;
  margin-bottom: 6px;
  text-decoration: underline;
}
#langBox label:hover {
  color: #3e3e3e;
}
 /* === 選択されている言語のラベル色を変更 ==== */
#langBox input[type="radio"]:checked + label {
  font-weight: bold;
  color: #252525;
}