/* 全ページの見た目を設定します。同じ項目は後に書いた指定が優先されます。 */
/* 共通の色。背景・本文・ピンク・ホバー色を変更する場合はここを編集します。 */
:root {
  --paper:#fffafc;
  --ink:#4d4556;
  --pink:#b47094;
  --hover:#edcde3;
  --line:#ece5eb;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:125px;
}

body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:'Yu Mincho','Hiragino Mincho ProN','Noto Serif JP',serif;
  font-size:16px;
  line-height:1.9;
}

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

button,input,textarea {
  font:inherit;
  color:inherit;
}

button,a,input,textarea {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

a:focus-visible,button:focus-visible {
  outline:3px solid var(--pink);
  outline-offset:5px;
}

h1,h2,h3,p,dl,dd {
  margin:0;
}

h1,h2 {
  font-family:Georgia,'Yu Mincho',serif;
  line-height:1.2;
}

h1 {
  font-size:46px;
}

h2 {
  font-size:36px;
  font-weight:400;
}

h3 {
  font-weight:400;
  font-size:20px;
}

img {
  display:block;
  max-width:100%;
}

/* 画面上部に追従するヘッダー。境界はシャドウです。 */
.header {
  height:106px;
  position:sticky;
  top:0;
  z-index:20;
  background:#fff;
  box-shadow:0 3px 14px #4d45560b;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(7.6vw,24px);
  gap:25px;
}

.logo {
  font-family:Georgia,serif;
  white-space:nowrap;
  line-height:1;
}

.logo em {
  font-size:38px;
  font-weight:bold;
}

.logo em span {
  color:var(--pink);
}

.logo small {
  font-size:23px;
}

.header nav {
  display:flex;
  gap:44px;
  font-size:15px;
  font-style:italic;
}

.header nav a:hover {
  color:var(--pink);
}

.wrap {
  max-width:1060px;
  width:calc(100% - 64px);
  margin:auto;
}

.hero {
  position:relative;
  aspect-ratio:1440/630;
  overflow:hidden;
  background:#f5e1ee;
}

/* FV画像は透明度だけを変化させ、拡大・縮小は行いません。 */
.hero img {
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1.6s ease;
}

.hero img.active {
  opacity:1;
}

.eyebrow {
  font-size:14px;
  color:var(--pink);
  margin-bottom:12px;
}

.section-title {
  text-align:center;
  border-top:1px solid var(--line);
  padding-top:60px;
  margin-bottom:85px;
}

.home-works {
  padding-top:185px;
  padding-bottom:40px;
}

/* 作品の一覧。PCは3列、スマートフォンでは下の設定で1列になります。 */
.work-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:65px 44px;
  max-width:930px;
  margin:auto;
}

.work-card {
  min-width:0;
  padding-bottom:30px;
  border-bottom:1px solid var(--line);
}

.work-image {
  display:block;
  width:100%;
  border:0;
  padding:0;
  background:#f4e9f5;
  aspect-ratio:4/3;
  overflow:hidden;
}

.work-image img {
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .5s ease;
}

.work-card h3 {
  font-size:16px;
  margin-top:24px;
  font-weight:600;
}

/* MoreやHomeなどの共通ボタン。 */
.button {
  display:block;
  width:196px;
  min-height:50px;
  padding:4px 22px;
  text-align:center;
  border:1px solid var(--pink);
  border-radius:100px;
  color:var(--pink);
  background:#fffafce8;
  font-family:Georgia,'Yu Mincho',serif;
  font-size:25px;
  line-height:1.5;
  transition:background .25s,color .25s,box-shadow .25s;
  margin:70px auto 0;
}

.band {
  text-align:center;
  padding:90px 30px 40px;
  background-size:cover;
  background-position:center;
}

.bubbles {
  background-image:url('assets/bubbles.jpg');
  background-size:cover;
  background-position:center;
}

.marble {
  background-image:url('assets/marble.jpg');
}

.intro {
  font-size:16px;
  line-height:2;
  margin:45px auto 0;
  max-width:1060px;
}

.band .button {
  margin-top:48px;
}

.band.marble {
  padding:65px 30px 85px;
}

footer {
  height:90px;
  background:var(--pink);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font:13px/1.5 Arial,sans-serif;
}

/* 右下のページ上部へ戻るボタン。 */
.to-top {
  position:fixed;
  right:4%;
  bottom:6%;
  width:80px;
  height:80px;
  border-radius:50%;
  border:2px solid var(--pink);
  background:#fffafce8;
  color:var(--pink);
  display:grid;
  place-items:center;
  font:32px/1 Georgia,serif;
  z-index:19;
  transition:background .25s;
}

.works-page {
  padding:140px 0 145px;
}

.lead {
  font-size:14px;
  margin-top:22px;
}

.filters {
  display:flex;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
  margin:65px 0 54px;
}

.filters button,.pagination a {
  border:1px solid var(--pink);
  border-radius:30px;
  background:transparent;
  padding:5px 18px;
  font-size:14px;
  transition:background .25s;
}

.filters .selected,.pagination .selected {
  background:var(--ink);
  border-color:var(--ink);
  color:white;
}

.pagination {
  text-align:center;
  border-top:1px solid var(--line);
  padding-top:70px;
  margin-top:60px;
  font-size:14px;
}

.pagination p {
  margin-bottom:20px;
}

.pagination a {
  display:inline-grid;
  place-items:center;
  min-width:47px;
  height:47px;
  margin:0 5px;
}

.home {
  margin-top:100px;
}

.about-page {
  padding:140px 0 100px;
}

.about-page .heading {
  border-bottom:1px solid var(--line);
  padding-bottom:90px;
}

.profile {
  display:grid;
  grid-template-columns:290px 1fr;
  gap:120px;
  margin-top:48px;
}

.profile>img {
  width:290px;
  aspect-ratio:1;
  object-fit:cover;
}

.profile h2 {
  font-size:36px;
  font-weight:bold;
}

.profile .eyebrow {
  margin:0;
}

.name {
  font-size:21px;
  line-height:2;
  margin:60px 0 42px;
}

.name small {
  font-size:14px;
}

.skills {
  padding:65px 0;
}

.skills h2,.background h2 {
  font-weight:bold;
}

.skills dl {
  margin:70px 25px 0;
}

.skill {
  display:grid;
  grid-template-columns:220px 1fr;
  gap:25px;
  padding:30px 0;
  min-height:150px;
}

.skill dt:before {
  content:'';
  display:inline-block;
  width:23px;
  height:23px;
  border-radius:50%;
  background:#d8bdea;
  margin-right:8px;
  vertical-align:middle;
}

.skill dt {
  font-size:22px;
}

.skill dd {
  font-size:16px;
}

/* Aboutページの経歴の背景。背景画像と白い膜を重ねて表示します。 */
.background {
  background:linear-gradient(#ffffff60,#ffffff60),url('assets/pearl.jpg') center/cover;
  padding:55px 0 25px;
}

.background article {
  margin:100px 20px 0;
}

.background article p {
  margin-top:20px;
  line-height:2;
}

.background .home {
  margin-top:65px;
}

.about-bottom {
  height:120px;
}

.contact-page {
  padding:160px 0 150px;
  min-height:calc(100vh - 196px);
}

.contact-page .heading {
  padding-left:65px;
  border-bottom:1px solid var(--line);
  padding-bottom:35px;
}

form {
  max-width:760px;
  margin:145px auto 0;
}

label {
  display:block;
  margin-bottom:36px;
}

input,textarea {
  display:block;
  width:100%;
  margin-top:10px;
  border:1px solid var(--pink);
  border-radius:12px;
  background:transparent;
  padding:12px 15px;
  outline-offset:4px;
}

input {
  height:50px;
}

textarea {
  resize:vertical;
  min-height:225px;
}

.form-note {
  font-size:13px;
  line-height:1.8;
  color:#776975;
  margin-top:25px;
}

form .button {
  margin-top:75px;
  font-size:22px;
}

#form-result {
  max-width:760px;
  margin:90px auto;
}

#form-result pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:inherit;
  margin-top:35px;
}

#form-result .button {
  font-size:18px;
  margin-top:20px;
}

/* 作品詳細のモーダル。内容が長い場合は内部をスクロールできます。 */
dialog {
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  color:var(--ink);
  width:min(850px,calc(100% - 32px));
  max-height:90vh;
  padding:40px;
  overflow:auto;
}

dialog::backdrop {
  background:#302739aa;
  backdrop-filter:blur(5px);
}

dialog img {
  width:100%;
  max-height:55vh;
  object-fit:contain;
}

dialog h2 {
  margin-top:25px;
}

dialog dl {
  display:grid;
  grid-template-columns:110px 1fr;
  gap:12px;
  margin-top:25px;
  font-size:14px;
}

.close {
  position:sticky;
  top:0;
  float:right;
  border:0;
  background:white;
  width:38px;
  height:38px;
  border-radius:50%;
  font-size:28px;
  z-index:1;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

body:has(dialog[open]) {
  overflow:hidden;
}

@media(hover:hover) {
  .work-image:hover img {
    transform:scale(1.055);
  }

  .button:hover,.filters button:hover,.pagination a:hover,.to-top:hover {
    background:var(--hover);
  }

}

.work-image:focus-visible img {
  transform:scale(1.055);
}

/* 900px以下の画面向けの調整。 */
@media(max-width:900px) {
  .header {
    height:85px;
    padding:0 28px;
  }

  .logo em {
    font-size:28px;
  }

  .logo small {
    font-size:17px;
  }

  .header nav {
    gap:25px;
  }

  .work-grid {
    gap:40px 25px;
  }

  .profile {
    grid-template-columns:210px 1fr;
    gap:50px;
  }

  .profile>img {
    width:210px;
  }

  .skill {
    grid-template-columns:170px 1fr;
  }

  .name {
    margin:30px 0;
  }

  .to-top {
    width:60px;
    height:60px;
    font-size:24px;
  }

  .home-works {
    padding-top:100px;
  }

  .works-page,.about-page {
    padding-top:90px;
  }

  .contact-page {
    padding-top:100px;
  }

  .contact-page .heading {
    padding-left:0;
  }

  .intro {
    font-size:14px;
  }

  .intro br {
    display:none;
  }

  .band {
    padding:65px 28px 40px;
  }

  .band .intro {
    max-width:650px;
  }

}

/* 600px以下のスマートフォン向けの調整。 */
@media(max-width:600px) {
  body {
    font-size:14px;
  }

  .wrap {
    width:calc(100% - 40px);
  }

  .header {
    height:78px;
    padding:0 20px;
    gap:10px;
  }

  .logo em {
    font-size:23px;
  }

  .logo small {
    font-size:12px;
  }

  .header nav {
    gap:14px;
    font-size:12px;
  }

  .hero {
    aspect-ratio:1440/630;
  }

  .hero img {
    object-fit:contain;
  }

  h1 {
    font-size:30px;
  }

  h2 {
    font-size:25px;
  }

  .eyebrow {
    font-size:12px;
  }

  .section-title {
    padding-top:35px;
    margin-bottom:40px;
  }

  .home-works {
    padding-top:65px;
  }

  .work-grid {
    grid-template-columns:1fr;
    max-width:380px;
    gap:30px;
  }

  .work-card {
    padding-bottom:22px;
  }

  .work-card h3 {
    margin-top:15px;
    font-size:15px;
  }

  .button {
    width:170px;
    min-height:44px;
    font-size:22px;
    margin-top:40px;
  }

  .band h2 {
    font-size:32px;
  }

  .band .intro {
    margin-top:30px;
    line-height:2.1;
  }

  .band.marble {
    padding:55px 25px;
  }

  .filters {
    gap:10px;
    margin:35px 0;
  }

  .filters button {
    font-size:12px;
    padding:5px 12px;
  }

  .works-page {
    padding:65px 0 80px;
  }

  .pagination {
    padding-top:35px;
    margin-top:35px;
  }

  .home {
    margin-top:60px;
  }

  .about-page {
    padding:65px 0;
  }

  .about-page .heading {
    padding-bottom:35px;
  }

  .profile {
    grid-template-columns:1fr;
    gap:32px;
    margin-top:35px;
  }

  .profile>img {
    width:180px;
  }

  .profile h2 {
    font-size:30px;
  }

  .name {
    font-size:18px;
    margin:25px 0;
  }

  .skills {
    padding:45px 0;
  }

  .skills h2,.background h2 {
    font-size:29px;
  }

  .skills dl {
    margin:25px 0 0;
  }

  .skill {
    grid-template-columns:1fr;
    gap:15px;
    min-height:0;
    padding:25px 0;
  }

  .skill dt {
    font-size:20px;
  }

  .skill dd {
    font-size:14px;
  }

  .skill dt:before {
    width:17px;
    height:17px;
  }

  .background {
    padding:45px 0 30px;
  }

  .background article {
    margin:45px 0 0;
  }

  .background article p {
    font-size:14px;
  }

  .about-bottom {
    height:65px;
  }

  .contact-page {
    padding:65px 0 90px;
  }

  .contact-page .heading {
    padding-bottom:30px;
  }

  form {
    margin-top:55px;
  }

  label {
    margin-bottom:25px;
  }

  .to-top {
    right:17px;
    bottom:22px;
    width:48px;
    height:48px;
    font-size:20px;
  }

  footer {
    height:75px;
    font-size:11px;
  }

  dialog {
    padding:20px;
  }

  dialog dl {
    grid-template-columns:90px 1fr;
  }

}

/* 端末の動きを減らす設定が有効な場合は、アニメーションを停止します。 */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }

  *,*:before,*:after {
    transition:none!important;
    animation:none!important;
  }

  .hero img {
    transform:none;
  }

}

.logo {
  display:block;
  flex:0 1 230px;
  min-width:0;
}

.logo img {
  width:230px;
  max-width:100%;
  height:auto;
}

@media(max-width:900px) {
  .logo {
    flex-basis:210px;
  }

  .logo img {
    width:210px;
  }

}

@media(max-width:600px) {
  .logo {
    flex-basis:170px;
  }

  .logo img {
    width:170px;
  }

  .header nav {
    flex-shrink:0;
  }

}

.profile .keep-together {
  display:inline-block;
  white-space:nowrap;
}

/* スクロールして画面に入った際の、ふわっとした表示。 */
.scroll-reveal {
  opacity:0;
  transform:translateY(18px);
  transition:opacity .85s ease,transform .85s ease;
}

.scroll-reveal.is-visible {
  opacity:1;
  transform:none;
}

@media(prefers-reduced-motion:reduce) {
  .scroll-reveal {
    opacity:1;
    transform:none;
    transition:none;
  }

}

@media print {
  .scroll-reveal {
    opacity:1;
    transform:none;
  }

}

#detail-data {
  grid-template-columns:110px minmax(0,1fr);
  line-height:1.95;
  font-size:16px;
  row-gap:20px;
}

#detail-data dt {
  font-weight:600;
  color:var(--pink);
}

#detail-data dd {
  min-width:0;
  overflow-wrap:anywhere;
}

#detail-title {
  font-size:30px;
  line-height:1.5;
}

@media(max-width:600px) {
  #detail-data {
    grid-template-columns:1fr;
    row-gap:8px;
  }

  #detail-data dd {
    margin-bottom:14px;
  }

  #detail-title {
    font-size:24px;
  }

}

#detail-data .detail-list {
  margin:0;
  padding-left:1.4em;
  list-style:disc;
}

#detail-data .detail-list li+li {
  margin-top:.35em;
}

#form-result[role="status"] {
  text-align:center;
  padding:40px 0;
}

#form-result[role="status"] h2 {
  font-size:clamp(22px,4vw,32px);
  line-height:1.6;
  outline:none;
}

#form-result .button.home {
  width:196px;
  min-height:50px;
  padding:4px 22px;
  font-size:25px;
  line-height:1.5;
  margin:100px auto 0;
}

@media(max-width:600px) {
  #form-result .button.home {
    width:170px;
    min-height:44px;
    font-size:22px;
  }

}

/* 作品04・14の追加モックアップ。画像を切り抜かずに表示します。 */
.detail-mockup {
  margin:28px 0 0;
}

.detail-mockup figcaption {
  font-size:14px;
  color:var(--pink);
  margin-bottom:10px;
}

dialog .detail-mockup img {
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
}

@media(hover:hover) {
  /* 選択中のカテゴリーと現在のページ番号だけ、ホバー時にグレーにします。 */
.filters button.selected:hover,.pagination a.selected:hover {
    background:#747078;
    border-color:#747078;
    color:#fff;
  }

}

/* 白い丸の中央に×印を配置 */
.close {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  font-size: 0; /* 元の文字の「×」を非表示にする */
  flex-shrink: 0;
}

/* ×印を構成する2本の線 */
.close::before,
.close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  pointer-events: none;
}

/* 中央に移動させ、線を斜めに交差させる */
.close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
/* お問い合わせフォームに代わるメールリンク。長いアドレスも画面内で折り返します。 */
.contact-mail { text-align: center; margin: 110px auto 0; max-width: 760px; }
.contact-mail p { line-height: 2; }
.mail-address { display: inline-block; margin-top: 30px; color: var(--pink); font-size: clamp(20px, 4vw, 28px); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 6px; }
.contact-mail .mail-button { width: 220px; margin-top: 45px; }
.contact-mail .home { margin-top: 80px; }
@media(max-width:600px) { .contact-mail { margin-top: 60px; } .contact-mail p { text-align: left; } }

/* お問い合わせページの新しいカンプ。説明・アイコン・メール・ボタンを中央に配置します。 */
.contact-page-comp{padding-top:160px;padding-bottom:140px;min-height:979px}
.contact-page-comp .contact-mail-comp{margin:145px auto 0;max-width:760px}
.contact-mail-comp .contact-message{font-size:20px;line-height:1.8;text-align:center}
.contact-mail-comp .contact-mail-icon{display:block;width:128px;height:128px;margin:44px auto 0;object-fit:contain}
.contact-mail-comp .mail-address{display:block;width:fit-content;max-width:100%;margin:10px auto 0;font-family:Georgia,'Yu Mincho',serif;font-size:26px;font-weight:700;line-height:1.5;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.contact-mail-comp .mail-address:hover{text-decoration:underline;text-underline-offset:5px}
.contact-mail-comp .mail-button{display:grid;place-items:center;width:192px;min-height:50px;margin:72px auto 0;padding:8px 14px;font-family:inherit;font-size:17px;line-height:1.5}
@media(max-width:900px){.contact-page-comp{padding-top:100px;min-height:calc(100vh - 175px)}}
@media(max-width:600px){.contact-page-comp{padding-top:65px;padding-bottom:85px;min-height:calc(100svh - 153px)}.contact-page-comp .contact-mail-comp{margin-top:75px}.contact-mail-comp .contact-message{font-size:16px}.contact-mail-comp .contact-mail-icon{width:105px;height:105px;margin-top:35px}.contact-mail-comp .mail-address{font-size:clamp(16px,4.8vw,22px)}.contact-mail-comp .mail-button{margin-top:50px;font-size:16px}}

/* スマートフォンのロゴとハンバーガーメニュー。PCのナビゲーションはそのまま表示します。 */
.menu-toggle{display:none}
@media(max-width:600px){
  .header .logo{flex:0 0 115px;width:115px;height:28px;display:flex;align-items:center}
  .header .logo img{width:115px;height:28px;max-width:none;object-fit:contain;object-position:left center}
  .header.has-mobile-menu .menu-toggle{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:44px;height:44px;padding:10px;border:0;background:transparent;color:var(--ink);z-index:2}
  .menu-toggle span{display:block;width:24px;height:2px;border-radius:2px;background:currentColor;transition:transform .3s ease,opacity .3s ease}
  .menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  .menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .header.has-mobile-menu nav{position:absolute;top:100%;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:0;padding:20px 24px 30px;background:#fff;box-shadow:0 10px 18px #4d455615;font-size:20px;opacity:0;visibility:hidden;transform:translateY(-18px);pointer-events:none;transition:opacity .35s ease,transform .35s ease,visibility .35s}
  .header.has-mobile-menu nav a{display:block;width:100%;padding:12px;text-align:center;opacity:0;transform:translateY(-8px);transition:opacity .3s ease,transform .3s ease}
  .header.has-mobile-menu.menu-open nav{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
  .header.menu-open nav a{opacity:1;transform:translateY(0)}
  .header.menu-open nav a:nth-child(1){transition-delay:.06s}
  .header.menu-open nav a:nth-child(2){transition-delay:.12s}
  .header.menu-open nav a:nth-child(3){transition-delay:.18s}
}
