/* =============================================================================
   ⑤Christina 固有のスタイル

   テンプレート（style.css）は原本に近い形で残し、**変更はこのファイルに書く**。
   そうしておくと、テンプレート側の見直しと自分たちの調整を切り分けられる。

   読み込み順: bootstrap → elegant-icons → owl → fresco → style → christina

   【絵を見せるうえでの方針】
   - **作品を切らない。** テンプレートのヒーローは背景画像を画面に合わせて
     切り抜く作りだったが、絵が切れてしまうので contain（全体が入る）にした
   - 色は絵が主役。テンプレートの青 (#242deb) は水彩の隣で強すぎるので、
     面で使うのをやめ、線と小さな印にだけ残した
   ============================================================================= */

:root {
  --cst-bg: #151515;
  --cst-fg: #ffffff;
  --cst-dim: #9a9a9a;
  --cst-line: #2e2e2e;
  --cst-accent: #242deb;
}

/* --- ロゴ -------------------------------------------------------------------
   テンプレートは画像のロゴ（img/logo.png）だった。作家名を文字で出す。 */
.site-logo {
  color: var(--cst-fg);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-logo:hover,
.site-logo:focus {
  color: var(--cst-fg);
  text-decoration: none;
}

/* --- メニューの開閉ボタン ---------------------------------------------------
   テンプレートは <div> にクリックを付けていた。キーボードで操作できるよう
   <button> に変えたので、ボタンの既定の見た目を消す。 */
.menu-switch {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

/* キーボードで辿っているときは、どこにいるかを必ず見せる */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cst-fg);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- 見出し ---------------------------------------------------------------- */
.page-title {
  color: var(--cst-fg);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 30px;
}

.empty {
  color: var(--cst-dim);
}

/* =============================================================================
   トップ（ヒーロー）
   ============================================================================= */

.hero-item {
  gap: 40px;
  padding: 0 40px;
}

/* 作品は全体が入るように置く。**切り抜かない。** */
.hero-art {
  flex: 1 1 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 24px 0;
}

.hero-art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.hero-text {
  flex: 0 1 420px;
  padding-left: 0;
}

/* 見出しは h1。テンプレートは h2 だけを想定していたので、同じ扱いを足す */
.hero-text h1 {
  font-size: 46px;
  line-height: 1.15;
  color: var(--cst-fg);
  margin-bottom: 22px;
  position: relative;
  opacity: 0;
  top: 50px;
}

.owl-item.active .hero-text h1 {
  top: 0;
  opacity: 1;
  transition: all 0.5s ease 0.6s;
}

/* JavaScript が動かなかったときに、文字が消えたままにならないようにする */
.hero-slider:not(.owl-loaded) .hero-text h1,
.hero-slider:not(.owl-loaded) .hero-text p,
.hero-slider:not(.owl-loaded) .hero-text .ht-cata,
.hero-slider:not(.owl-loaded) .hero-text .ht-btn {
  opacity: 1;
  top: 0;
}

/* 青い帯は絵の隣で強い。細い線の見出しに変える */
.hero-text .ht-cata {
  background: none;
  border: 1px solid var(--cst-line);
  color: var(--cst-dim);
  padding: 4px 14px 3px;
}

.hero-text p {
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.75;
}

.hero-empty {
  padding: 120px 40px;
  color: var(--cst-dim);
}

.home-more {
  padding: 0 0 90px;
  text-align: center;
}

.home-more .lead {
  color: #cfcfcf;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 26px;
}

.ht-btn {
  display: inline-block;
  color: var(--cst-fg);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.ht-btn:hover,
.ht-btn:focus {
  color: var(--cst-fg);
  text-decoration: none;
}

.ht-btn i {
  position: relative;
  top: 5px;
  margin-left: 6px;
  font-size: 22px;
  color: var(--cst-accent);
}

.ht-btn.ghost {
  margin-left: 26px;
  color: var(--cst-dim);
}

@media (max-width: 767px) {
  .hero-item {
    display: block;
    padding: 0 20px;
    height: auto !important;
  }

  .hero-art {
    padding: 90px 0 24px;
  }

  .hero-text {
    padding: 0 0 70px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
  }
}

/* =============================================================================
   ギャラリー
   ============================================================================= */

.gallery-section {
  padding: 30px 30px 80px;
}

.gallery-section .page-title {
  padding-left: 15px;
}

/* 升目は作品ページへのリンク。テンプレートはその場で拡大する作りだった */
.gallery-item {
  display: block;
  position: relative;
  margin-bottom: 30px;
  background: #1d1d1d;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

.gallery-item:hover img,
.gallery-item:focus img {
  opacity: 0.55;
}

.gallery-item .gi-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gi-text,
.gallery-item:focus .gi-text {
  opacity: 1;
}

.gallery-item .gi-text h2 {
  font-size: 19px;
  color: var(--cst-fg);
  margin: 0 0 4px;
}

.gallery-item .gi-text p {
  margin: 0;
  font-size: 13px;
  color: #c6c6c6;
}

/* 触る画面では hover が無いので、題名を最初から出しておく */
@media (hover: none) {
  .gallery-item .gi-text {
    opacity: 1;
  }
}

/* =============================================================================
   作品ページ
   ============================================================================= */

.work-section {
  padding: 40px 20px 90px;
}

.work-section .container {
  max-width: 1100px;
}

.work-image {
  text-align: center;
  margin-bottom: 36px;
}

/* 縦長の作品でも**一画面に収まる**ようにする。
   絵を見るのにスクロールが要るのは、見せ方として本末転倒。 */
.work-image img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.work-meta {
  max-width: 720px;
  margin: 0 auto;
}

.work-meta h1 {
  font-size: 32px;
  color: var(--cst-fg);
  margin-bottom: 18px;
}

.work-meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 22px;
  margin: 0 0 24px;
  font-size: 15px;
}

.work-meta dt {
  color: var(--cst-dim);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  align-self: center;
}

.work-meta dd {
  margin: 0;
  color: var(--cst-fg);
}

.work-desc {
  color: #cfcfcf;
  font-size: 17px;
  line-height: 1.85;
}

.work-cta {
  margin-top: 26px;
}

.work-cta a {
  color: var(--cst-fg);
  border-bottom: 1px solid var(--cst-accent);
  padding-bottom: 2px;
  text-decoration: none;
}

.work-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--cst-line);
  font-size: 14px;
}

.work-nav a {
  color: var(--cst-dim);
  text-decoration: none;
  max-width: 34%;
}

.work-nav a:hover,
.work-nav a:focus {
  color: var(--cst-fg);
}

.work-nav .back {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-nav i {
  position: relative;
  top: 4px;
  font-size: 20px;
}

/* =============================================================================
   About
   ============================================================================= */

.about-section {
  padding: 40px 20px 90px;
}

.about-section .container {
  max-width: 1000px;
}

.about-head {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.about-head .portrait {
  width: 220px;
  height: auto;
  border-radius: 2px;
}

.about-head .page-title {
  margin-bottom: 6px;
}

.about-name {
  color: var(--cst-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0;
}

.about-item {
  margin-bottom: 46px;
}

.about-item h2 {
  color: var(--cst-fg);
  font-size: 22px;
}

.ai-text h3 {
  color: var(--cst-fg);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ai-text p {
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.9;
}

.about-cta {
  margin-top: 10px;
}

@media (max-width: 575px) {
  .about-head .portrait {
    width: 150px;
  }

  .ht-btn.ghost {
    display: inline-block;
    margin: 16px 0 0;
  }
}

/* =============================================================================
   問い合わせ

   テンプレートの .contact-form の見た目（枠・背景）を土台に、
   必須の印・エラー・罠欄などを足す。中身は①と同じ ContactForm。
   ============================================================================= */

.contact-section {
  padding: 40px 20px 90px;
}

.contact-section .container {
  max-width: 760px;
}

.contact-lead {
  color: #cfcfcf;
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 36px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.contact-form label em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cst-dim);
  margin-left: 8px;
}

.contact-form select {
  width: 100%;
  height: 43px;
  margin-bottom: 25px;
  padding: 0 16px;
  color: var(--cst-fg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form select option {
  color: #111;
}

.contact-form .hint {
  display: block;
  margin: -16px 0 25px;
  color: var(--cst-dim);
  font-size: 13px;
  line-height: 1.7;
}

/* 誤りのある欄は、色だけでなく**文字でも**知らせる（色が見えない人のため） */
.field-err {
  display: block;
  margin: -18px 0 22px;
  color: #ff8b8b;
  font-size: 13px;
}

.contact-form [aria-invalid="true"] {
  border-color: #ff8b8b;
}

/* 罠欄。人には見せない。display:none にすると埋めないボットがいるので、位置で隠す */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 18px 20px;
  margin-bottom: 30px;
  border: 1px solid var(--cst-line);
  background: rgba(255, 255, 255, 0.04);
}

.notice strong {
  display: block;
  color: var(--cst-fg);
  margin-bottom: 6px;
}

.notice p {
  margin: 0;
  color: #cfcfcf;
  font-size: 15px;
}

.notice.ng {
  border-color: #7a3a3a;
}

.ht-btn.submit {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 13px 28px;
  cursor: pointer;
}

.ht-btn.submit:hover,
.ht-btn.submit:focus {
  border-color: var(--cst-fg);
}

/* =============================================================================
   フッター
   ============================================================================= */

.footer-section {
  border-top: 1px solid var(--cst-line);
}

.copyright p {
  color: #6f6f6f;
  font-size: 12px;
  line-height: 1.8;
}

.copyright a {
  color: #8f8f8f;
}
