@charset "utf-8";

/* 基本設定 */
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-color: #425081;
  --sub-color-1: #dfeef5;
  --sub-color-2: #efcea3;
  --sub-color-3: #5a6baa;
  --accent-color: #FFB24A;
  }

body {
  font-family: 'Cormorant', 'Zen Kaku Gothic New';
  color: #333;
  background-color: var(--sub-color-1);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover img,
a:hover .btn {
  opacity: 0.5;
}

a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.category {
  text-align: center;
}

h2 {
  font-size: 50px;
  padding-top: 56px;
}

.category p {
  margin-bottom: 40px;
}

#previous h2 {
  padding-top: 0;
}


/* 横幅と左右の余白 */
.w-container {
  width: min(75%, 1040px);
  margin: auto;
}


/* ヘッダー */
header {
  height: 64px;
  width: 100%;
  position: fixed;
  inset: 0;
  z-index: 555;
  display: flex;
  align-items: center;
}

.header-container ul{
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-shadow: 1px 1px 5px #444;
  font-size: 18px;
}

.home {
  width: 18px;
  filter: drop-shadow(1px 1px 2px #888);
}

/* ヘッダー ホバーエフェクト */
nav a {
  position: relative;
  display: inline-block;
}

.en {
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.side-note {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

nav a:hover .en {
  opacity: 0;
}

nav a:hover .side-note {
  opacity: 1;
  color: #fff;
}


/* ハンバーガーメニュー */
.hamburger {
  position: relative;
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 1px 1px 5px #444;
}

.hamburger::before {
  transform: rotate(-50deg) translateY(-10px) translateX(10px);
}

.hamburger span {
  transform: rotate(-50deg);
}

.hamburger::after {
  transform: rotate(-50deg) translateY(10px) translateX(-10px);
}

/* クリック後（バツに変形） */
.hamburger.active::before {
  transform: rotate(45deg) translateY(0);
}

.hamburger.active span {
  opacity: 0;
}

.hamburger.active::after {
  transform: rotate(-45deg) translateY(0);
}

.hamburger {
  display: none;
}


/* メインビジュアル */
.main-visual {
  width: 100%;
  min-height: 100dvh;
  background-image: url(../image/main-visual.jpg);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.index .main-visual::before {
  content: "";
  width: 100%;
  height: 40%;
  display: block;
  background: linear-gradient(rgba(100,100,100,0) 0, var(--sub-color-1) 100%);
  position: absolute;
  bottom: -10px;
  left: 0;
}

.main-visual-txt {
  height: calc(100dvh - 64px);
  position: relative;
  top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  color: #fff;
  text-shadow: 1px 1px 5px #444 ;
}

.main-visual-title h1 {
  font-size: clamp(45px, 9vw, 120px);
  min-height: 0;
  font-family: 'Cormorant SC';
}

.main-visual-subtitle p {
  text-align: right;
  font-size: clamp(18px, 2vw, 24px);
  min-height: 0;
}


/* コンテンツ */
.content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 60px;
  margin-bottom: 120px;
}

.works-category {
  font-size: 14px;
  color: var(--sub-color-3);
  padding-top: 6px;
}


/* 自己紹介 */
#profile {
  padding-bottom: 56px;
  background-color: var(--sub-color-2);
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.profile-container > img {
  width: 35%;
  object-fit: cover;
}

.profile-txt {
  width: 65%;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.8;
}

.profile-name {
  width: clamp(180px, 20vw, 210px);
  min-height: 0;
  padding-top: 35px;
  float: right;
}

.profile-serif {
  display: inline-block;
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--main-color);
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.profile-serif::before,
.profile-serif::after {
    position: absolute;
    width: 20px;
    height: 25px;
    content: '';
}

.profile-serif::before {
    border-left: double 5px;
    border-top: double 5px;
    top: 0;
    left: 0;
}

.profile-serif::after {
    border-right: double 5px;
    border-bottom: double 5px;
    bottom: 0;
    right: 0;
}


/* お問い合わせ */
.mail-btn-txt {
  margin: 48px 0 24px 0;
  text-align: center;
}

.btn-container {
  margin-top: 35px;
  text-align: center;
}

.btn {
  background-color: var(--main-color);
  color: #fff;
  font-size: 17px;
  padding: 12px 20px;
  border-radius: 30px;
  border-style: none;
  margin: 0 auto;
}

/* フッター */
footer {
  height: 50dvh;
  background-image: url(../image/footer.jpg);
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

footer p {
  width: 100%;
  background-color: var(--main-color);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  position: absolute;
  bottom: 0;
}


/* =============== 下層ページ =============== */
.main-visual-area {
  position: relative;
  height: auto;
  min-height: 100dvh;
}

.sub-page-title {
  color: #fff;
  text-shadow: 1px 1px 5px #444 ;
  text-align: center;
}

.sub-page-title h1 {
  position: relative;
  top: 64px;
  font-size: 80px;
  padding: 50px 0 40px 0;
}

.sub-page-title h1 + p {
  padding: 25px 0;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.background-white {
  min-height: 60dvh;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 333;
}

.works-image1 img {
  padding: 60px 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 444;
}

.works-image2 {
  display: flex;
  align-items: center;
  width: 90%;
  gap: 32px;
  padding: 70px 0;
  overflow-x: auto;
  position: relative;
  margin: 0 auto;
  z-index: 444;
}

.works-image2 img {
  object-fit: cover;
}

.works-logo {
  padding: 60px 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.works-image-blog-pc {
  display: flex;
  align-items: center;
  max-width: fit-content;
  margin: 0 auto;
  gap: 32px;
  padding: 70px 0;
  overflow-x: auto;
  white-space: nowrap;
  z-index: 444;
}

.works-image-blog-pc img {
  object-fit: cover;
  min-width: 320px;
}

.works-image-blog-sp {
  display: none;
}


/* デザイン内容詳細 */
.breakdown {
  height: auto;
  padding-top: 80px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.breakdown table {
  border-collapse: collapse;
}

.breakdown tr {
  border-top: 1px var(--2accent-color) solid;
  border-bottom: 1px var(--sub-color-2) solid;
}

.breakdown th,
.breakdown td {
  padding: 3em 1em;
}

.breakdown th {
  width: 14em;
}

@media (max-width:800px) {

  /* 共通 */
  .w-container {
    width: 100%;
    max-width: 85%;
  }

  h2 {
    font-size: 40px;
  }

  .home {
    filter: drop-shadow(1px 1px 2px #444);
  }

  /* ヘッダー */
  .header-container {
    position: relative;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: -10px;
    right: 0;
    z-index: 777;
  }

  .header-container ul {
    display: none;
    position: fixed;
    height: 100dvh;
    inset: 0;
    z-index: 666;
    background-color: var(--main-color);
    justify-content: space-between;
    line-height: 0.9;
    }
  
  .header-container ul.active {
    display: flex;
    flex-direction: column;
    padding: 50% 0;
    font-size: 30px;
    text-align: center;
    gap: 40px;
  }

  .side-note {
    position: absolute;
    top: 170%;
    opacity: 1;
    display: inline-block;
    font-size: 16px;
  }


  /* メインビジュアル */
  .main-visual-area {
    min-height: 70dvh;
  }

  .main-visual {
    min-height: 70dvh;
    background-image: url(../image/main-visual-sp.jpg);
  }

  .main-visual-txt {
    gap: 160px;
  }

  .content {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    padding-bottom: 40px;
    margin-bottom: 60px;
  }

  .content article {
    flex-shrink: 0;
    width: 90%;
  }

  .profile-container {
    flex-direction: column;
    width: 100%;
  }

  .profile-container > img,
  .profile-txt {
    width: auto;
  }

  /* フッター */
  footer {
    height: 30dvh;
    background-image: url(../image/footer-sp.jpg);
  }

  /* =============== 下層ページ =============== */
  .sub-page-title h1 {
    font-size: 48px;
    padding: 50px 0;
  }

  .sub-page-title h1 + p {
    font-size: 1.2rem;
  }

  .works-image1 img {
    width: 330px;
    padding: 100px 0;
  }

  .works-image2 {
    gap: 20px;
  }

  .works-image2 img {
    width: 320px;
  }

  .works-logo img {
    max-width: 280px;
  }

  .works-image-blog-pc {
    display: none;
  }

  .works-image-blog-sp {
    display: block;
    display: flex;
    align-items: center;
    width: 90%;
    gap: 20px;
    padding: 70px 0;
    overflow-x: auto;
    position: relative;
    margin: 0 auto;
    z-index: 444;
  }

  .works-image-blog-sp img {
    width: 320px;
  }

  /* デザイン内容詳細 */
  .breakdown {
    padding-top: 50px;
  }

  .breakdown th,
  .breakdown td {
    width: 95%;
    display: block;
    text-align: left;
    padding: 0;
    margin: 25px 15px;
  }

  .under-line {
    display: inline-block;
    border-left: 4px solid #4F5877;
    padding: 0 0.5rem;
  }

}
