@charset "UTF-8";

body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif, Verdana, "メイリオ", "Meiryo", "MS Ｐゴシック", "MS PGothic", Sans-Serif;
    color: #393b3e;
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.2em;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 4%;
    text-align: center;
}

.sec-title {
    color: #5b4310;
    display: inline-block;
    font-size: 1.4rem;
    margin: 100px 0 30px 0;
    position: relative;
    padding-bottom: 12px;
}

.sec-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 284px;
    height: 24px;
    background: url('../images/top/h2_line\ .png') no-repeat center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

.section-gap {
    margin-top: 2.5em;
}

.pc-only { 
  display: inline; 
}

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(137, 137, 137, 0.08);
    padding: 30px 0;
}

#header .wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .logo img {
  width: 195px;
  height: 32px;
  object-fit: contain;
}

#header nav ul {
  display: flex;
  gap: 45px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#header nav ul li img {
  height: 20px;
  width: auto;
    vertical-align: text-bottom;
}

#header nav ul li a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  position: relative;
}

#about {
  scroll-margin-top: 100px;
}

#works{
  scroll-margin-top: 100px;
}

#contact{
  scroll-margin-top: 100px;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FFD8FC 0%, #FFD4BB 32%, #F4C6DC 70%, #DFFEB9 100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 0.6;
}

#mainvisual {
    width: 100%;
    overflow: hidden;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#mainvisual picture,
#mainvisual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
}

/* === About Me === */
.about-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  max-width: 920px;
  margin: 40px auto 0;
  text-align: left;
}

.about-img {
  flex: 0 0 180px;
  display: flex;
  justify-content: center;
}

.about-avatar-circle {
  width: 150px; 
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 30% 30%, #FFD8FC, #FFD4BB 70%, #DFFEB9);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === わたしにできること === */
.skill-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.skill-cards .skill-card:nth-child(-n+3) {
    margin-top: 30px;
}

.skill-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 0; 
    width: 260px;
    height: 145px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: bold;
}

.skill-card p {
    font-size: 0.7rem;
    white-space: nowrap;
}

.skill-card .icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.skill-card img {
    height: 40px;
    width: auto;
}

/* === Works === */
.workslist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.work-card {
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  border: 1.5px dashed #ccc;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.work-card a {
  width: 100%;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.work-card a img {
  height: 100%;
  object-fit: contain;
  display: block;
}

.work-title {
  font-size: 1rem;
}

.work-meta {
  font-size: 0.7rem;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === viewボタン === */
.contact-button {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 100px;
}

.button-link {
  display: inline-block;
  background-color: #393b3e;
  color: white;
  border: solid 1px #393b3e;
  padding: 10px 30px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.button-link:hover {
  background-color: #fff;
  color: #393b3e;
}


/* === Contact === */
#contact {
    position: relative;
    margin: 0 auto;
    padding-bottom: 60px;
    background-image: url('../images/top/contact_backgrand.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

#contact .sec-title {
  margin-top: 30px;
}

/* === ラベルと入力欄 === */
.contact-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
    text-align: left;
}

#contact p:last-of-type {
    margin-bottom: 30px;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #393b3e;
}

.contact-form textarea {
    min-height: 140px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 24px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    width: auto; 
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

.privacy-area {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.privacy-area label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: normal;
}

.privacy-area input[type="checkbox"] {
  margin: 0;
}

.privacy-area small {
  font-size: 0.75rem;
}

.privacy-area a {
  text-decoration: underline;
  color: #393b3e;
}

.form-button {
    text-align: center;
    margin-top: 30px;
}

.form-button button {
    background-color: #393b3e;
    color: white;
    border: none;
    padding: 14px 74px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button button:hover {
    background-color: #fff;
    color: #393b3e;
}

#footer {
    background-color: #fafafa00;
    text-align: center;
    padding: 34px 0;
    font-size: 0.7rem;
}

@media screen and (max-width: 1000px) and (min-width: 768px) {
.skill-cards {
  justify-content: center;
  gap: 20px;
}

.skill-cards .skill-card {
  width: calc(50% - 20px);
  height: auto;
}

.skill-cards .skill-card:nth-child(-n+2) {
  margin-top: 30px;
}

.skill-cards .skill-card:nth-child(n+3) {
   margin-top: 0;
}
}

@media screen and (max-width: 767px) {
html {
    list-style:list-style;
    font-size: 100%;
    overflow-x: hidden;
}

body {
    font-size: 0.875rem;
    line-height: 1.8;
    letter-spacing: 0.2em;
}

img, video {
  max-width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
}

.pc-only { display: none; }

#about p,
#skills p,
#works p:not(.work-title):not(.work-meta) {
  text-align: left;
  max-width: 90%;
  margin: 0 auto; 
}

.sec-title {
  font-size: 1.2rem;
  margin: 100px 0 20px 0;
  padding-bottom: 12px;
}

.sec-title::after {
    width: 240px;
    height: 18px;
}

wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#mainvisual {
  height: auto;
}

#mainvisual picture,
#mainvisual img {
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

#header {
  position: static;
  box-shadow: none;
  padding: 20px 20px 10px;
}

#header .wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

#header .logo img {
  width: 170px;
  height: 30px;
}
  
#header nav {
  width: 100%;
}

#header nav ul {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#header nav ul li a {
  font-size: 0.875rem;  
  white-space: nowrap;
}

#header nav ul li img {
  height: 18px;
  vertical-align: text-bottom;
}


.about-inner {
  flex-direction: column;
  align-items: center;   
  text-align: center;    
  gap: 10px;
}


.skill-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.skill-cards .skill-card {
    width: calc(50% - 10px);
    height: 130px;
    box-sizing: border-box;
    margin-top: 0 !important;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-cards .skill-card:nth-child(-n+2) {
    margin-top: 30px !important;
}

.skill-card h3 {
  font-size: 0.875rem;
}

.skill-card p {
   font-size: 0.6rem;
   white-space: normal;
   word-break: break-word;
   margin: 0 auto;
}

.skill-card img {
   height: 36px;
}

.workslist {
   flex-direction: column;
}

.work-card {
   width: 100%;
}

.work-card a {
  height: 160px; 
}

.work-card a img {
  max-width: 75%;
}

.work-title {
  font-size: 0.875rem;
}

.work-meta {
  font-size: 0.7rem;
}

.contact-inner p {
  text-align: left;  
  max-width: 90%;
  margin: 0 auto;
}

.contact-form textarea {
  height: 160px;
  resize: vertical;
}
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  backdrop-filter: blur(2px);
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #393b3e;
}

.modal-buttons {
  margin-top: 24px;
  display: flex;
  justify-content: space-around;
  gap: 16px;
}

.modal-buttons button {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.modal-buttons button:focus {
  outline: 2px solid #F4C6DC;
  outline-offset: 2px;
}


#cancel-button {
  background: #dfd8d8;
  color: #393b3e;
}

#cancel-button:hover {
  background: #f1f1f1;
}


#confirm-button {
  background: #393b3e;
  color: white;
}

#confirm-button:hover {
  background: #fff;
  color: #393b3e;
  border: 1px solid #393b3e;
}
