*{box-sizing: border-box;}
#container{
    width: 1024px;
    margin: 0 auto;
    background-color: #fff;
}

.zen-old-mincho-regular {
  font-family: "Zen Old Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    font-family: "Zen Old Mincho", serif;
    color: #444;
    background-color: #f5f5f5;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
}

.header-main {
    background-image: url(../images/headerportrait_31.jpg);
    background-size: cover;
    background-position: center;
    height: 580px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    padding-left: 60px;
}

.header-main h2 {
    font-size: 22px;
    font-weight: normal;
    color: #fff;
    background-color: #444;
    padding: 5px 60px 5px 15px;
    letter-spacing: 0.15em;
}

.header-main h2:nth-child(2) {
    margin-left: 120px;
}

nav {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li {
    text-align: center;
}

nav a {
    display: block;
    position: relative;
    color: #222;
    text-decoration: none;
    padding-bottom: 5px;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

 footer {
    background-color: #222;
 }
 footer p {
    color: #fff;
    text-align: center;
    padding: 10px 0;
 }
 h1 {
    font-size: 32px;
 }
 h2 {
    font-size: 22px;
    color: #fff;
    background-color: #222;
 }
 h3 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 30px;
    color: #444;
    text-align: center;
 }
 h4 {
    text-align: center;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
 }

.Profile {
    background-color: #d9d9d9;
    padding: 25px;
}

.Profile section {
    width: 512px;
    margin: 0 auto;
}

.Profile section p {
    color: #444;
    font-weight: 500;
}

section {
    border-bottom: 1px solid #fff;
    padding: 25px 0;
}

.Works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 50px;
    padding: 50px;
}

.Works h3 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.work-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #aaa;
    transition: opacity 0.3s;
}

.work-item a:hover img {
    opacity: 0.6;
}

.work-item p {
    text-align: center;
}

.work-item a {
    color: inherit;
    text-decoration: none;
}

.work-item a:visited {
    color: #989898;
}

.Skills {
    padding: 25px;
    text-align: center;
}

.skills-inner {
    width: 512px;
    margin: 0 auto;
    color: #444;
}

.skills-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
    margin-top: 40px;
}

.icons-credit {
    text-align: right;
    color: #444;
}

.skills-more {
    text-align: center;
    margin: 100px 0;
}

.skills-more a {
    display: inline-block;
    background-color: #444;
    color: #fff;
    padding: 12px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.skills-more a:hover {
    background-color: #222;
}

.Skills h3 {
    margin-bottom: 40px;
    margin-top: 20px;
}

.show-less {
    text-align: center;
}

.Works .show-less {
    grid-column: 1 / -1;
}

.show-less button {
    display: inline-block;
    background-color: #fff;
    color: #444;
    border: 1px solid #444;
    padding: 12px 32px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    transition: background-color 0.3s, color 0.3s;
    margin: 40px 0;
}

.show-less button:hover {
    background-color: #a5a5a5;
    color: #222;
    border: 1px solid #999;
}

/* Works：最初は7個目以降を非表示 */
.Works:not(.is-open) .work-item:nth-of-type(n+7) {
    display: none;
}

/* Profile：最初は2個目以降を非表示 */
.Profile:not(.is-open) section:nth-of-type(n+2) {
    display: none;
}

/* 07 動画の案内文 */
.sangetsu-video-note {
    width: 775px;
    margin: 25px auto 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    line-height: 1.8;
    color: #444;
}

.sangetsu-video-note p {
    margin-bottom: 5px;
}


/* ========================================
   07 サンゲツデザインアワード 作品写真
======================================== */

/* プレゼンテーションボード */
.sangetsu-panel {
    width: 775px;
    margin: 100px auto 0;
}

.sangetsu-panel img {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid #ccc;
    box-sizing: border-box;
}


/* 制作写真 */
.sangetsu-gallery {
    width: 775px;
    max-width: 100%;
    margin: 100px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 50px;
}

.sangetsu-gallery img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    align-self: flex-start;
}

/* 3枚目だけ幅650px */
.sangetsu-gallery img:nth-child(3) {
    width: 650px;
}

