@charset "utf-8";
/*
Theme Name: Artist Portfolio
Theme URI: https://tokyo-ip-consulting.com/
Author: Tokyo IP Consulting
Author URI: https://tokyo-ip-consulting.com/
Description: Portfolio WordPress theme for artists featuring selectable header/footer design sets (TopSlide, TopPhoto, Simple). Supports customizable typography (Gothic/Mincho), text colors, background colors, and flexible layout options. SEO-oriented structure. Open-source theme developed by Tokyo IP Consulting with collaboration from artists.
Version: 1.5.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artist-portfolio-top-slide
Tags: portfolio, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ========== Reset / Base ========== */
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
}

ul {
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

/* ========== Variables ========== */
:root {
    --font-base: system-ui, -apple-system, 'Hiragino Kaku Gothic ProN W3',
    'ヒラギノ角ゴ ProN W3', "Noto Sans JP", 'Arial', sans-serif;
}

/* ========== Font Set Switch ========== */
body {
  font-family: var(--font-base);
  color: var(--base-text-color, #444444);
  background-color: var(--base-bg-color, #ffffff);

  &.fontset-gothic {
    --font-base: 'Hiragino Kaku Gothic ProN W3', 'ヒラギノ角ゴ ProN W3',
      "Noto Sans JP", 'Arial', sans-serif;
  }

  &.fontset-mincho {
    --font-base: "Noto Serif JP", 'ヒラギノ明朝 ProN W6', 'HiraMinProN-W6',
      '游明朝', 'Yu Mincho', serif;
  }
}

/* ========== Links ========== */
a {
    color: var(--base-text-color, #444444);

    &:hover img {
    opacity: 0.7;
    }
}

/* ========== Muted Text (まとめ) ========== */
.caption,
.caption span,
.footer,
.footer a,
.postingInfo {
    color: var(--muted-text-color, #888888);
}

/* ========== Common Utilities ========== */
.container {
    font-weight: 100;
    font-optical-sizing: auto;
    font-style: normal;

    dt {
        font-weight: bold;
    }
}

.horizontal {
    margin-inline: 20px;

    @media screen and (min-width: 750px) {
    margin-inline: 10vw;
    }
}

.lastHr {
    margin-top: 80px;

    @media screen and (min-width: 750px) {
        margin-top: 110px;
    }
}

.Japanese {
    margin-block: 10px;
}

.English {
    margin-block: 10px 40px;
}

/* ========== Headings / Header Common ========== */
.header {
    height: 250px;
    color: var(--base-text-color, #444444);
    text-align: center;
    position: relative;

    @media screen and (min-width: 750px) {
        height: 360px;
    }
}

h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    br {
        display: block;
        content: "";
        margin: -15px;
    }
}

@media screen and (min-width: 1000px) {
h1 br {
    margin: 0;
    }
}

.mainname {
    font-size: 18px;
    line-height: 18px;
    text-transform: uppercase;

    @media screen and (max-width: 350px) {
        font-size: 16px;
        line-height: 16px;
    }

    @media screen and (min-width: 750px) and (max-width: 1000px) {
        font-size: 24px;
        line-height: 24px;
    }

    @media screen and (min-width: 1000px) {
        font-size: 32px;
        line-height: 32px;
    }
}

.sub {
    font-size: 16px;
    line-height: 16px;
    font-weight: 100;
    text-transform: capitalize;
    letter-spacing: 1px;

    @media screen and (max-width: 350px) {
        font-size: 14px;
        line-height: 14px;
    }

    @media screen and (min-width: 750px) and (max-width: 1000px) {
        font-size: 20px;
        line-height: 20px;
        letter-spacing: 2px;
    }

    @media screen and (min-width: 1000px) {
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 2px;
    }
}

/* front header h1 color */
.header-front {
    h1,
    h1 a,
    h1 a:hover {
        color: var(--front-h1-color, #EEEEEE);
    }
}

/* ========== Design: TopPhoto ========== */
body.design-topphoto {
    .headerWrapper {
        @media screen and (min-width: 760px) and (max-width: 1000px) {
        padding-inline: 10px;
        padding-top: 10px;
        }

        @media screen and (min-width: 1000px) {
            padding-inline: 20px;
            padding-top: 20px;
        }
    }

    .header {
        height: 850px;
        position: relative;
        width: 100%;
        overflow: hidden;

        &::before {
            content: '';
            display: block;
            width: 100%;
            height: 100%;
            background: no-repeat center / cover var(--topphoto-image-url);
            animation: zoom 15s 1 forwards;
            z-index: -100;
        }
    }

  /* h1 の position 指定は共通 h1 にあるため、ここでは色だけ */
  h1 {
    color: var(--front-h1-color, #EEEEEE);

    a,
    a:hover {
      color: var(--front-h1-color, #EEEEEE);
    }
  }

  /* Subpage Header */
  .subHeader {
    height: 200px;
    color: var(--base-text-color, #444444);
    text-align: center;
    position: relative;

    &::before {
      content: '';
      display: block;
      width: 100%;
      height: 100%;
      background: no-repeat center / cover var(--topphoto-image-url);
    }

    h1 {
      br {
        margin: -15px;

        @media screen and (min-width: 1000px) {
          margin: 0;
        }
      }

      a,
      a:hover {
        color: var(--front-h1-color, #EEEEEE);
      }
    }

    .mainname {
      text-align: left;
      text-transform: uppercase;
    }
  }

  /* Footer (TopPhoto) */
  .footer {
    height: 62vw;
    background-color: #444;
    color: #eee;
    margin-top: 10vw;
    padding-top: 5vw;
    padding-inline: 5vw;
    font-size: 14px;
    display: grid;
    grid-template-columns: 8fr 1fr;
    grid-template-rows: 5fr 1fr;

    @media screen and (min-width: 760px) and (max-width: 1000px) {
      height: 43vw;
      font-size: 16px;
    }

    @media screen and (min-width: 1000px) {
      height: 38vw;
      font-size: 16px;
    }

    .footerMenu {
      a {
        color: #eee;
      }

      ul {
        margin-block: 5vw;

        li {
          font-size: 12px;
          margin-inline: 5vw;
          margin-block: 1vw;

          @media screen and (min-width: 760px) {
            font-size: 14px;
          }
        }
      }
    }

    .snsLogo {
      img {
        width: 7vw;

        @media screen and (min-width: 760px) {
          width: 3vw;
        }
      }
    }

    .copyright {
      grid-column: 1/3;
      font-size: 10px;
      color: #aaa;
      text-align: center;

      @media screen and (min-width: 760px) {
        font-size: 12px;
      }
    }
  }
}

@keyframes zoom {
  0% { transform: scale(1.2); }
  100% { transform: scale(1.0); }
}

/* ========== Design: TopSlide ========== */
body.design-topslide {
  .header {
    height: 250px;

    &.withSlide {
      height: 66.7vw;

      a {
        color: var(--front-h1-color, #EEEEEE);
      }

      img {
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
        opacity: 0.6;
      }
    }

    h1 {
      z-index: 1000;
    }
  }

  .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .slick-prev { left: 10px; }
  .slick-next { right: 10px; }

  /* Footer: TopSlide only difference */
  .footer {
    grid-template-columns: 5fr 1fr 1fr;
    grid-template-rows: 6fr 1fr 0.5fr;
    align-items: baseline;

    @media screen and (max-width: 350px) {
      grid-template-columns: 4fr 1fr 1fr;
    }

    @media screen and (min-width: 750px) and (max-width: 1000px) {
      grid-template-columns: 5fr 1fr 1fr;
    }

    @media screen and (min-width: 1000px) {
      grid-template-columns: 7fr 1fr 1fr;
    }

    .copyright {
      grid-column: 1 / 2;
      grid-row: 5 / 6;
    }

    .privacy {
      grid-column: 2 / 3;
      grid-row: 5 / 6;
    }

    .snsLinks {
      grid-column: 3 / 4;
      grid-row: 5 / 6;

      img {
        margin-left: 10px;
        margin-bottom: -5px;
        width: 25px;
        height: 25px;

        @media screen and (min-width: 750px) {
          width: 35px;
          height: 35px;
        }
      }
    }
  }
}

/* ========== Footer Common (TopSlide + Simple) ========== */
body.design-topslide,
body.design-simple {
  .footer {
    height: 140px;
    font-size: 8px;
    display: grid;
    margin-inline: 20px;

    @media screen and (min-width: 750px) and (max-width: 1000px) {
      font-size: 12px;
      margin-inline: 10vw;
    }

    @media screen and (min-width: 1000px) {
      font-size: 12px;
      margin-inline: 10vw;
    }
  }
}

/* ========== Footer: Simple only ========== */
body.design-simple {
  .footer {
    grid-template-columns: 6fr 1fr;
    grid-template-rows: 4fr 1fr;

    @media screen and (max-width: 350px) {
      grid-template-columns: 5fr 1fr;
    }

    @media screen and (min-width: 750px) and (max-width: 1000px) {
      height: 200px;
      grid-template-columns: 6fr 1fr;
    }

    @media screen and (min-width: 1000px) {
      grid-template-columns: 8fr 1fr;
    }

    .space {
      grid-column: 1 / 2;
      grid-row: 1 / 2;
    }

    .copyright {
      grid-column: 1 / 2;
      grid-row: 2 / 3;
    }

    .snsLinks {
      grid-column: 2 / 3;
      grid-row: 1 / 2;

      img {
        width: 20px;
        height: 20px;

        @media screen and (min-width: 750px) {
          width: 30px;
          height: 30px;
        }
      }
    }

    .privacy {
      grid-column: 2 / 3;
      grid-row: 2 / 3;
    }
  }
}

/* ========== Main / Contents ========== */
.imgCenter {
  margin-inline: auto;
  margin-block: 30px;
}

.topImg {
  text-align: center;

  img {
    width: 90vw;
    margin-bottom: 80px;

    @media screen and (min-width: 750px) {
      width: 80vw;
      margin-bottom: 110px;
    }
  }
}

h2 {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin-block: 80px 40px;
  text-align: center;

  @media screen and (min-width: 750px) {
    font-size: 18px;
  }
}

h3 {
  text-transform: capitalize;
  font-size: 12px;
  letter-spacing: 1px;
  margin-block: 40px 20px;

  @media screen and (min-width: 750px) {
    font-size: 16px;
  }
}

.main {
  text-align: center;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.2px;
  margin-top: 160px;
  margin-inline: 20px;

  @media screen and (min-width: 750px) {
    font-size: 14px;
    line-height: 20px;
    margin-top: 220px;
    margin-inline: 10vw;
    letter-spacing: 0.6px;
  }
}

p.innerLink {
  text-transform: capitalize;
  margin-bottom: 80px;
  text-align: center;

  span {
    margin-inline: 2vw;
    font-size: 8px;

    @media screen and (min-width: 750px) {
      margin-inline: 3vw;
      font-size: 14px;
    }
  }
}

a.innerLink {
  text-decoration: underline;
}

.caption {
  font-size: 8px;

  @media screen and (min-width: 750px) {
    font-size: 12px;
  }
}

/* Privacy Policy */
div.privacy {
  text-align: left;
}

/* ========== Profile Page ========== */
.artistImg > img {
  width: 40vw;
  height: auto;
  margin-bottom: 80px;
}

.biography {
  .exhibitions h3,
  .competitions h3 {
    text-align: left;
    margin-left: 15vw;
  }

  dl {
    display: grid;
    grid-template-columns: 1fr 5fr;
    text-align: left;
    margin-left: 15vw;

    @media screen and (min-width: 1000px) {
      grid-template-columns: 1fr 14fr;
    }
  }

  dt { grid-column: 1/2; }
  dd { grid-column: 2/3; text-align: left; }

  .bio,
  .exhibitions,
  .competitions {
    margin-bottom: 40px;
  }

  .exhibitions dl,
  .competitions dl {
    text-align: left;
  }

  .competitions .Japanese {
    margin-bottom: 100px;
  }
}

.concept {
  .Japanese { margin-bottom: 30px; }

  .English {
    letter-spacing: 0;

    @media screen and (min-width: 750px) {
      letter-spacing: 0.6px;
    }
  }
}

/* ========== Artwork Page ========== */
.artwork {
  h3 {text-align: center;}

  .artworkImg {
    margin-top: 30px;
    text-align: left;

    img {
      width: 90vw;

      @media screen and (min-width: 750px) {
        max-width: 80vw;
        max-height: 80vw;
        object-fit: contain;
        margin: 0 auto;
      }
    }

    /* 2列表示（.artworkImg.twoCol） */
    &.twoCol {
      @media screen and (min-width: 1000px) {
        display: grid;
        grid-template-columns: 1fr 1fr;

        img {
          width: 31vw;
        }
      }
    }
  }
}

/* topページ用artwork2列表示 */
.artworkImg {
  &.topPage {
    display: grid;
    grid-template-columns: 1fr 1fr;

    img {
      width: 31vw;
    }
  }
}


/* ========== Exhibition ========== */
.exhibitions{
  h3 {text-align: center;}
  
  .hallPhotos {
    margin-block: 40px 60px;

    @media screen and (min-width: 750px) {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1.67vw;
    }

    img {
      width: 90vw;

      @media screen and (min-width: 750px) {
        width: 25vw;
      }
    }
  }
}

/* ========== Atelier ========== */
.atelier {
  h3 {text-align: center;}
  
  .hallPhotos {
    margin-block: 40px 60px;

    @media screen and (min-width: 750px) {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1.67vw;
    }

    img {
      width: 90vw;

      @media screen and (min-width: 750px) {
        width: 25vw;
      }
    }
  }
}

/* artwork dpn 仮 */
.dpn {
  display: none;
}

/* ========== WP Contents Common ========== */
.wpContents {
  text-align: left;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.2px;
  margin-top: 40px;
  margin-inline: 20px;
  min-height: 50vh;

  @media screen and (min-width: 750px) {
    font-size: 14px;
    line-height: 20px;
    margin-top: 80px;
    margin-inline: 10vw;
    letter-spacing: 0.6px;
  }

  h2 {
    text-align: center;
  }

  @media screen and (min-width: 750px) {
    table {
      width: 60vw;
      margin: 0 auto;
    }
  }
}

.postingInfo {
  font-size: 8px;

  @media screen and (min-width: 750px) and (max-width: 1000px) {
    font-size: 12px;
  }
}

/* Gutenberg heading */
h2.wp-block-heading {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin-block: 80px 20px;

  @media screen and (min-width: 750px) {
    font-size: 18px;
  }
}

/* ========== frontpage.php ========== */
.wpContentsTop {
  text-align: left;

  /* 投稿一覧 */
  div section ul li.wp-block-post {
    margin: 0;
    padding: 0;

    h3 {
      text-align: left;
      margin-block: 20px 10px;
      padding: 0;
    }
  }

  div figure {
    width: 60vw;
    height: 45vw;
    margin: 0 auto;
  }
}

/* ========== index.php (archive) ========== */
.archiveWrapper {
  text-align: left;
  display: grid;
  margin-bottom: 30px;
  grid-template-rows: 1fr 2fr;

  .archiveTitleWrapper {
    margin-block: 10px 5px;

    @media screen and (min-width: 1000px) {
      display: grid;
      grid-template-columns: 1fr 2fr;
      margin-block: 10px 5px;
    }

    .postingTitle {
      font-weight: bold;
      font-size: 12px;
      letter-spacing: 1px;

      @media screen and (min-width: 750px) {
        font-size: 16px;
      }
    }
  }
}

/* ========== single.php ========== */
.postingInfoSingle {
  text-align: right;
  margin-bottom: 50px;
}

.postContents {
  div.wp-block-image {
    margin-block: 80px 0;
  }
}

/* ========== general setting ========== */
@media screen and (max-width: 750px) {
  .br-dpn {
    display: none;
  }
}

@media screen and (max-width: 750px) {
  .overlayImg {
    position: relative;
    display: inline-block;
  }
}

@media screen and (min-width: 750px) {
  i.font-awesome {
    display: none;
  }
}

@media screen and (max-width: 750px) {
  i.font-awesome {
    position: absolute;
    top: 5%;
    left: 90%;
    opacity: 0.5;
  }
}