@charset "UTF-8";

:root {
  --color-text: #444;
  --color-muted: #bbb;
  --color-border: #eee;
  --color-accent: #b0a196;
  --color-accent-light: #dec5b1;
  --color-menu-text: #4a2c15;
  --color-surface: #eee;
  --content-width: 78%;
  --mobile-breakpoint: 1000px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--color-text);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

button {
  border: 0;
  background: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent) 70%, white);
  outline-offset: 3px;
}

.wrapper {
  width: 100%;
}

.item {
  padding-top: 70px;
  scroll-margin-top: 20px;
}

.itemani {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease,
    visibility 1.2s ease;
}

.itemani.itemaniact {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.title {
  position: fixed;
  z-index: 4;
  top: 4.5%;
  left: 5%;
  display: flex;
  width: 12%;
  height: 100px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box;
  background: rgb(222 197 177 / 50%);
  color: #fff;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.menu {
  position: fixed;
  z-index: 3;
  top: 2%;
  left: 2%;
  width: 12%;
  height: 100%;
  padding-top: 140px;
  box-sizing: border-box;
  background: var(--color-surface);
  text-align: center;
}

.menu a {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-sizing: border-box;
  color: var(--color-menu-text);
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--color-accent-light);
}

.menu a.is-active {
  font-weight: 800;
}

.content {
  width: var(--content-width);
  margin-left: 22%;
}

.t-header {
  width: 100%;
  height: 160px;
  background: #fff;
}

h1 {
  margin-left: 2.5%;
  padding-top: 110px;
  padding-bottom: 20px;
  color: var(--color-accent);
  font-size: 24px;
  text-align: center;
}

h2 {
  /*
   * Desktop:
   * The side navigation ends at 14vw (left 2% + width 12%).
   * Main content starts at 22vw.
   * Expand the heading 8vw to the left so its centering area is
   * the whole space from the side navigation to the right edge.
   */
  width: calc(100% + 8vw);
  margin: 50px 0 50px -8vw;
  color: var(--color-muted);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.line {
  border-bottom: 2px dashed var(--color-border);
}

.flexba,
.flexlp {
  display: flex;
  flex-wrap: wrap;
}

.flexba {
  align-items: center;
}

.flexlp {
  align-items: flex-start;
}

.flexsite li {
  margin-top: 80px;
}

.website img {
  width: 60%;
  margin-left: 12%;
  border: 1px solid #999;
}

.website li p {
  width: 60%;
  margin-left: 12%;
  padding: 10px 0;
  color: #666;
  line-height: 1.5;
  text-align: left;
}

.website li p::before {
  content: "■";
  font-size: 1.5em;
}

.brs {
  margin-left: 14px;
}

.LP li,
.banner li {
  width: 18%;
  margin: 0 50px 50px 20px;
}

#lpOther img {
  width: 60%;
  margin: 0 12%;
  border: 1px solid #999;
}

.flexba .itemimage {
  width: 100%;
}

.flexlp > li {
  height: 750px;
  overflow: hidden;
  border: 1px solid #999;
  background: #fff;
}

.flexlp .itemimage {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.Headmenu {
  animation: slide-in-up 2.5s;
}

.Headtitle {
  animation: slide-in-left 4s;
}

@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#nav-button {
  display: none;
}

.modal_open,
.modal_switch,
.modal_close {
  padding: 0;
  cursor: pointer;
}

.modal_open {
  display: block;
  width: 100%;
}

.modal_bg {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgb(0 0 0 / 55%);
}

.modal_box,
.modal_box_B {
  position: fixed;
  z-index: 150;
  top: 50%;
  left: 50%;
  display: none;
  width: 40%;
  max-height: 90dvh;
  overflow: auto;
  transform: translate(-50%, -50%);
}

.modal_box.is-open,
.modal_box_B.is-open {
  display: block;
}

.modal_box .box-image,
.modal_box_B .box-image {
  width: 100%;
  height: auto;
}

.modal_close {
  position: fixed;
  z-index: 200;
  top: clamp(16px, 2vw, 32px);
  right: clamp(16px, 2vw, 32px);
  width: clamp(40px, 4vw, 52px);
  height: clamp(40px, 4vw, 52px);
}

.prev,
.next {
  position: fixed;
  z-index: 200;
  top: 50%;
  width: clamp(40px, 4vw, 52px);
  height: clamp(40px, 4vw, 52px);
  transform: translateY(-50%);
}

.prev {
  left: clamp(12px, 2vw, 32px);
}

.next {
  right: clamp(12px, 2vw, 32px);
}



footer {
  width: 100%;
  height: 240px;
  margin-top: 180px;
  border-top: 2px dashed var(--color-border);
  color: var(--color-accent);
  line-height: 240px;
  text-align: center;
}

@media (max-width: 1000px) {
  .item {
    margin-top: -60px;
    padding-top: 60px;
    scroll-margin-top: 60px;
  }

  .item:first-child {
    padding-top: 100px;
  }

  .Headmenu,
  .Headtitle {
    animation: none;
  }

  .menu {
    position: fixed;
    z-index: 8;
    inset: 0;
    visibility: hidden;
    width: 100%;
    height: 100dvh;
    padding-top: 90px;
    opacity: 0;
    background: var(--color-surface);
    font-size: 1.4em;
    text-align: center;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .menu.active {
    visibility: visible;
    opacity: 1;
  }

  .menu a {
    min-height: 100px;
    font-size: 1em;
    line-height: 1.2;
    white-space: nowrap;
  }

  #nav-button {
    position: fixed;
    z-index: 10;
    top: 8px;
    right: 13px;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
  }

  #nav-button span {
    position: absolute;
    right: 7px;
    display: block;
    width: 30px;
    height: 3px;
    background: #666;
    transition:
      transform 0.35s ease-in-out,
      opacity 0.35s ease-in-out,
      top 0.35s ease-in-out;
  }

  #nav-button span:nth-child(1) {
    top: 11px;
  }

  #nav-button span:nth-child(2) {
    top: 21px;
  }

  #nav-button span:nth-child(3) {
    top: 31px;
  }

  #nav-button.active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  #nav-button.active span:nth-child(2) {
    opacity: 0;
  }

  #nav-button.active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  .title {
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 0;
    background: var(--color-accent-light);
    color: #555;
    font-size: 20px;
    line-height: 100px;
    transition:
      height 0.3s ease,
      line-height 0.3s ease,
      color 0.3s ease;
  }

  .title.thin {
    height: 60px;
    color: #fff;
    line-height: 60px;
  }

  .line {
    border-bottom: 0;
  }

  .content {
    width: 95%;
    margin: 0 auto;
    padding: 0;
  }

  h1 {
    height: 150px;
    margin: 0;
    padding: 0;
    background: var(--color-surface);
    color: #666;
    font-size: 18px;
    font-weight: 600;
    line-height: 250px;
    text-align: center;
  }

  .t-header {
    position: relative;
    width: 100%;
    height: 0;
    background: #fff;
  }

  h2 {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 1.5em;
    text-align: center;
  }

  .LP li,
  .banner li {
    width: 40%;
    margin: 5%;
  }

  .flexlp > li {
    height: 300px;
  }

  .flexlp .itemimage {
    height: auto;
  }

  .website {
    margin-top: 50px;
  }

  .website li {
    width: 100%;
    margin-top: 100px;
  }

  .website li:first-child {
    margin-top: 50px;
  }

  .website img {
    width: 90%;
    margin: 0 auto;
  }

  .website li p {
    width: 90%;
    margin: 0 auto;
  }

  .flexsite {
    text-align: center;
  }

  .modal_close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .prev,
  .next {
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
  }

  .prev {
    left: 8px;
  }

  .next {
    right: 8px;
  }

  .modal_box,
  .modal_box_B {
    width: 80%;
    max-height: 88dvh;
  }

  #skillwrap {
    margin-left: 0;
  }

  .flexsk {
    width: 98%;
  }

  .skname {
    width: 90px;
    font-size: 12px;
    white-space: nowrap;
  }

  #lpOther {
    width: 100%;
    margin: 50px auto 0;
    text-align: center;
  }

  #lpOther img {
    width: 90%;
    margin: 0 auto;
  }

  .brs {
    display: block;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   BANNER modal controls
   Keep previous / next / close controls outside the image.
   ========================================================= */
.modal_box_B {
  overflow: visible;
}

.modal_box_B .prev,
.modal_box_B .next {
  position: absolute;
  z-index: 210;
  top: 50%;
  width: clamp(40px, 4vw, 52px);
  height: clamp(40px, 4vw, 52px);
  transform: translateY(-50%);
}

.modal_box_B .prev {
  left: clamp(-64px, -4.5vw, -48px);
}

.modal_box_B .next {
  right: clamp(-64px, -4.5vw, -48px);
}

.modal_box_B .modal_close {
  position: absolute;
  z-index: 210;
  top: clamp(-44px, -3vw, -36px);
  right: 0;
  width: clamp(30px, 2.6vw, 38px);
  height: clamp(30px, 2.6vw, 38px);
}

.modal_box_B .close {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tablet / mobile */
@media (max-width: 1000px) {
  .modal_box_B {
    width: 80%;
    overflow: visible;
  }

  .modal_box_B .prev,
  .modal_box_B .next {
    width: 40px;
    height: 40px;
  }

  .modal_box_B .prev {
    left: -46px;
  }

  .modal_box_B .next {
    right: -46px;
  }

  .modal_box_B .modal_close {
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
  }
}

/* Small phones: leave enough side space for the outside arrows */
@media (max-width: 600px) {
  .modal_box_B {
    width: 72%;
  }

  .modal_box_B .prev,
  .modal_box_B .next {
    width: 36px;
    height: 36px;
  }

  .modal_box_B .prev {
    left: -42px;
  }

  .modal_box_B .next {
    right: -42px;
  }

  .modal_box_B .modal_close {
    top: -42px;
    right: 0;
    width: 36px;
    height: 36px;
  }
}

/* Skills */
#skillwrap {
  width: 86%;
  margin: 0 auto;
}

.skill-group + .skill-group {
  margin-top: 48px;
}

.skill-group h3 {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.skill-name {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
}

.skill-status {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(222 197 177 / 35%);
  color: #6d5a4c;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  #skillwrap {
    width: 94%;
  }

  .skill-group + .skill-group {
    margin-top: 40px;
  }

  .skill-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skill-card {
    min-height: 58px;
    padding: 0 16px;
  }
}
