/*
Theme Name: portfolio_recreation
Author: Your Name
Description: ポートフォリオ「portfolio_recreation」のWordPressテーマ
Version: 1.0
*/


/* =========================
   基本設定
========================= */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --text: #222222;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --accent: #1f1f1f;
  --accent-2: #3a3a3a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 18px 34px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --narrow: 960px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(100%, var(--narrow));
}

.section {
  padding: 96px 0;
}


/* =========================
   セクション見出し
========================= */

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}


/* =========================
   カード
========================= */

.card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.08);
}


/* =========================
   ヘッダー
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  transition:
    box-shadow var(--transition),
    background var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  position: relative;

  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}


/* =========================
   ロゴ
========================= */

.logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo {
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;

  border-radius: 8px;

  display: grid;
  place-items: center;

  background: #222;
  color: #fff;

  font-weight: 700;
  font-size: 0.95rem;

  flex-shrink: 0;
}

.logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}


/* =========================
   PCナビゲーション
========================= */

.header-nav {
  display: block;
}

.global-nav {
  display: flex;
  align-items: center;

  gap: 26px;

  padding: 0;
  margin: 0;

  list-style: none;
}

.global-nav li {
  margin: 0;
  padding: 0;
}

.global-nav a {
  position: relative;

  font-size: 0.94rem;
  color: #444;

  white-space: nowrap;

  transition:
    color var(--transition),
    transform var(--transition),
    opacity var(--transition);
}

.global-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: right;

  transition: transform var(--transition);
}

.global-nav a:hover {
  color: #111;
}

.global-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* =========================
   お問い合わせボタン
========================= */

.nav-cta,
.hero-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: var(--accent);
  color: #fff !important;

  border: 1px solid var(--accent);

  font-weight: 700;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.nav-cta {
  padding: 11px 18px;

  font-size: 0.88rem;

  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta:hover,
.hero-button:hover,
.submit-button:hover {
  transform: translateY(-3px);

  background: #fff;
  color: var(--accent) !important;

  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}


/* =========================
   ハンバーガーボタン
   PCでは非表示
========================= */

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #fff;

  cursor: pointer;

  flex-shrink: 0;
}

.menu-toggle span {
  display: block;

  width: 20px;
  height: 2px;

  margin: 3px auto;

  background: #222;

  transition:
    transform var(--transition),
    opacity var(--transition);
}


/* =========================
   ヒーロー
========================= */

.hero {
  position: relative;

  min-height: 640px;

  display: flex;
  align-items: center;

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.48)
    ),
    url("image/hero-image.jpg") center / cover no-repeat;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.70) 0%,
      rgba(255, 255, 255, 0.38) 45%,
      rgba(255, 255, 255, 0.18) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;

  text-align: center;

  padding: 190px 0 40px;
}

.hero-sub {
  margin: 0 0 18px;

  font-size: 0.88rem;
  letter-spacing: 0.16em;

  color: #575757;
}

.hero h1 {
  margin: 0;

  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.hero-copy {
  margin: 18px auto 0;

  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.8;

  max-width: 760px;
}

.hero-button {
  margin-top: 28px;
  padding: 14px 28px;
}

.scroll-indicator {
  position: absolute;

  left: 28px;
  bottom: 28px;

  font-size: 0.8rem;
  letter-spacing: 0.18em;

  color: #555;

  writing-mode: vertical-rl;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  animation: floatY 2.2s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}


/* =========================
   Service
========================= */

.service-grid,
.works-grid,
.contact-meta {
  display: grid;
  gap: 24px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  padding: 34px 24px 28px;
}

.card-icon {
  width: 58px;
  height: 58px;

  margin: 0 auto 20px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #f4f4f4,
      #ececec
    );

  display: grid;
  place-items: center;

  font-weight: 700;

  color: #2f2f2f;

  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.service-card h3,
.about-card h3 {
  margin: 0 0 14px;

  text-align: center;

  font-size: 1.15rem;
}

.service-card p {
  margin: 0 0 18px;

  color: #505050;

  font-size: 0.96rem;
}

.service-card ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.service-card li {
  position: relative;

  padding-left: 1.3em;

  color: #3c3c3c;

  font-size: 0.92rem;
}

.service-card li + li {
  margin-top: 10px;
}

.service-card li::before {
  content: "✓";

  position: absolute;

  left: 0;
  top: 0;

  color: #111;

  font-weight: 700;
}


/* =========================
   Works
========================= */

.works-section {
  background: #fff;
}

.works-carousel {
  position: relative;

  padding: 0 56px;

  background: #fff;
}

.works-viewport {
  overflow: hidden;

  background: #fff;
}

.works-track {
  display: flex;

  gap: 22px;

  will-change: transform;

  transition: transform 0.6s ease;

  background: #fff;
}

.work-item {
  flex: 0 0 calc((100% - 44px) / 3);

  min-width: 0;

  transition: transform var(--transition);

  background: #fff;
}

.work-card {
  overflow: hidden;

  background: #fff;

  box-shadow: none;

  border: 1px solid #fff;
}

.work-card:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);

  border-color: #eee;
}

.work-item:hover {
  transform: translateY(-6px);
}

.work-item h3 {
  margin: 0 0 12px;

  text-align: left;

  font-size: 1.15rem;
}

.works-arrow {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border-radius: 50%;

  border: 1px solid rgba(0, 0, 0, 0.08);

  background: rgba(255, 255, 255, 0.94);

  color: #222;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);

  cursor: pointer;

  z-index: 2;

  display: grid;
  place-items: center;

  font-size: 1.8rem;
  line-height: 1;
}

.works-arrow-prev {
  left: 0;
}

.works-arrow-next {
  right: 0;
}

.work-thumb {
  position: relative;

  min-height: 220px;

  display: flex;
  align-items: flex-end;

  padding: 18px;

  color: #fff;

  transition:
    transform var(--transition),
    filter var(--transition);
}

.work-item:hover .work-thumb {
  transform: scale(1.02);
}

.work-thumb::before {
  content: "";

  position: absolute;

  inset: 0;
}

.work-thumb-01 {
  background:
    url("image/cocoro.jpg")
    center / cover no-repeat;
}

.work-thumb-02 {
  background:
    url("image/TarosScenery_starter.jpg")
    center / cover no-repeat;
}

.work-thumb-03 {
  background:
    url("image/FlowerRoom.jpg")
    center / cover no-repeat;
}

.work-thumb-04 {
  background:
    url("image/SmileCooking.jpg")
    center / cover no-repeat;
}

.work-thumb-05 {
  background:
    url("image/Gnamgnam.jpg")
    center / cover no-repeat;
}

.work-thumb-06 {
  background:
    url("image/koharu_starter.jpg")
    center / cover no-repeat;
}

.work-thumb-07 {
  background:
    url("image/novatect_starter.jpg")
    center / cover no-repeat;
}

.work-label {
  display: none;
}

.work-body {
  padding: 22px 20px 20px;

  background: #fff;
}

.work-body:empty {
  display: none;
}

.work-category {
  margin: 0 0 8px;

  font-size: 0.82rem;
  letter-spacing: 0.08em;

  color: #6b6b6b;

  text-transform: uppercase;
}

.work-description {
  margin: 0;

  color: #4c4c4c;

  font-size: 0.94rem;
  line-height: 1.8;
}

.work-tags {
  margin: 18px 0 0;
  padding: 0;

  list-style: none;

  display: flex;
  flex-wrap: wrap;

  gap: 8px;
}

.work-tags li {
  padding: 6px 10px;

  border-radius: 999px;

  background: #f2f2f2;

  color: #333;

  font-size: 0.78rem;
  font-weight: 700;
}


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

.about-wrap {
  max-width: 760px;
}

.about-card {
  padding: 42px 36px;

  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;

  margin: 0 auto 18px;

  border-radius: 50%;

  display: block;

  object-fit: cover;

  background: #f1f1f1;
}

.about-romaji {
  margin: -6px 0 18px;

  font-size: 0.9rem;

  color: var(--muted);
}

.about-card p {
  margin: 0;

  color: #444;
}

.about-card .about-romaji ~ p {
  text-align: left;
}

.about-card p + p {
  margin-top: 12px;
}


/* =========================
   Contact
========================= */

.contact-section {
  background: #fff;
}

.contact-meta {
  grid-template-columns: repeat(3, 1fr);

  margin-bottom: 28px;
}

.meta-box {
  min-height: 60px;

  display: grid;
  place-items: center;

  background: #fff;

  border: 1px solid #ededed;
  border-radius: 12px;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.contact-form {
  max-width: 700px;

  margin: 0 auto;

  padding: 34px;
}

.form-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: inline-flex;

  gap: 8px;

  align-items: center;

  margin-bottom: 8px;

  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;

  border: 1px solid #ddd;
  border-radius: 10px;

  background: #fff;

  padding: 14px 16px;

  color: #222;
}

.privacy-check {
  margin: 18px 0 20px;

  display: flex;
  align-items: center;

  gap: 10px;

  font-size: 0.95rem;
}

.submit-button {
  width: 100%;

  min-height: 52px;

  border-radius: 12px;

  cursor: pointer;
}

.form-message {
  min-height: 1.5em;

  margin: 14px 0 0;

  font-size: 0.92rem;

  text-align: center;

  color: #2a6b3f;
}


/* =========================
   Footer
========================= */

.site-footer {
  background: #242424;

  color: rgba(255, 255, 255, 0.9);

  padding: 52px 0 28px;
}

.footer-inner {
  display: grid;

  gap: 28px;
}

.footer-brand {
  color: #fff;
}

.footer-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;

  gap: 18px;
}

.footer-nav a,
.footer-links a {
  position: relative;

  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  padding-top: 18px;

  border-top:
    1px solid rgba(255, 255, 255, 0.12);

  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 16px;

  flex-wrap: wrap;
}


/* =========================
   アニメーション
========================= */

.reveal {
  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;

  transform: translateY(0);
}


/* ==================================================
   タブレット・スマホ
   920px以下
================================================== */

@media (max-width: 920px) {

  .header-inner {
    position: relative;

    min-height: 68px;

    gap: 12px;
  }


  /* ナビゲーション */

  .header-nav {
    position: static;
  }

  .global-nav {
    position: absolute;

    top: calc(100% + 8px);

    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    margin: 0;
    padding: 12px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 14px;

    box-shadow:
      0 15px 35px rgba(0, 0, 0, 0.14);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(-10px);

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;

    z-index: 1050;
  }


  /* JavaScriptで is-open が付いた時 */

  .global-nav.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
  }

  .global-nav li {
    width: 100%;
  }

  .global-nav a {
    display: block;

    width: 100%;

    padding: 12px 16px;

    color: #222;

    border-radius: 8px;
  }

  .global-nav a:hover {
    background: #f5f5f5;
  }

  .global-nav a::after {
    display: none;
  }


  /* ハンバーガー */

  .menu-toggle {
    display: inline-flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: relative;

    z-index: 1100;
  }


  /* 開いたら三本線を×に */

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }


  /* お問い合わせ */

  .nav-cta {
    width: auto;

    padding: 9px 15px;

    font-size: 0.82rem;

    white-space: nowrap;
  }


  /* その他 */

  .service-grid,
  .contact-meta,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }

  .scroll-indicator {
    left: auto;

    right: 18px;
    bottom: 18px;
  }

  .contact-form,
  .about-card {
    padding: 28px 20px;
  }

  .works-carousel {
    padding: 0 44px;
  }

  .work-item {
    flex-basis:
      calc((100% - 22px) / 2);
  }
}


/* ==================================================
   スマホ
   600px以下
================================================== */

@media (max-width: 600px) {

  .section {
    padding: 72px 0;
  }

  .header-inner {
    gap: 8px;

    min-height: 64px;
  }

  .logo {
    gap: 7px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .logo-text {
    font-size: 0.72rem;

    letter-spacing: 0.03em;
  }

  .nav-cta {
    padding: 7px 10px;

    font-size: 0.7rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu-toggle span {
    width: 19px;
  }

  .global-nav {
    top: calc(100% + 4px);
  }

  .hero-content {
    padding: 156px 0 56px;
  }

  .hero-copy br {
    display: none;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .service-card {
    padding: 28px 18px 24px;
  }

  .contact-form {
    padding: 22px 16px;
  }

  .works-carousel {
    padding: 0 34px;
  }

  .works-arrow {
    width: 36px;
    height: 36px;

    font-size: 1.4rem;
  }

  .work-item {
    flex-basis: 100%;
  }

  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;
  }
}


/* =========================
   Contact Form 7
========================= */

.wpcf7-form input,
.wpcf7-form textarea {
  border: 1px solid #c4c4c4;

  padding: 10px;

  margin-bottom: 32px;

  width: 100%;

  font-size: 16px;
}

.wpcf7-form .wpcf7-submit {
  background: #EC8812;

  color: #fff;

  padding: 16px 64px;

  margin: 32px auto 0;

  border: none;

  cursor: pointer;

  width: auto;
}

.u-button {
  width: 240px;

  text-align: center;
}