/*
Theme Name: office-tt
Theme URI: https://office-tt.com
Author: TT
Author URI: https://office-tt.com
Description: TT Web制作のポートフォリオテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: office-tt
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:   #0D1B2A;
  --blue:   #1B4FD8;
  --accent: #3B82F6;
  --light:  #EFF6FF;
  --gray:   #64748B;
  --light-gray: #F1F5F9;
  --white:  #FFFFFF;
  --text:   #1E293B;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Utility ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.8;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: #1340b0; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--light); }

/* ===== Header / Nav ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .05em;
}
.logo span { color: var(--blue); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta { font-size: 14px; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3461 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,.15) 0%, transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,.2);
  border: 1px solid rgba(59,130,246,.4);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 24px;
}
.hero-tag .dot {
  width: 6px; height: 6px;
  background: #60A5FA;
  border-radius: 50%;
}
.hero-title {
  font-size: clamp(36px, 3.2vw, 45px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-title .accent { color: #60A5FA; }
.hero-subtitle {
  font-size: 18px;
  color: #94A3B8;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item {}
.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: #60A5FA;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
}

/* Hero Card */
.hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(8px);
}
.profile-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.profile-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #1B4FD8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.2);
}
.profile-name {
  font-size: 22px;
  font-weight: 800;
  color: white;
}
.profile-role {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 4px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.6;
}
.feature-list .icon {
  width: 22px; height: 22px;
  background: rgba(59,130,246,.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Differentiation Banner ===== */
#diff {
  background: var(--blue);
  color: white;
  padding: 64px 0;
}
.diff-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.diff-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.diff-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.diff-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.diff-text {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

/* ===== Service ===== */
#service { background: var(--light-gray); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.service-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}
.service-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray);
  margin-left: 4px;
}
.service-duration {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}
.tag {
  display: inline-block;
  background: var(--light);
  color: var(--blue);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== Works ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  transition: transform .2s, box-shadow .2s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
}
.work-thumb {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.work-thumb-nishian {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}
.work-thumb-portfolio {
  background: linear-gradient(135deg, #0D1B2A 0%, #1B4FD8 100%);
}
.work-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}
.work-body { padding: 28px; }
.work-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.work-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.work-tag {
  background: var(--light-gray);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}
.work-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--light-gray);
  border-radius: 8px;
}
.result-item { text-align: center; }
.result-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.result-label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* ===== Work Thumbnails ===== */
.thumb-nishian-inner {
  text-align: center;
  z-index: 1;
}
.thumb-nishian-en {
  font-size: 12px;
  letter-spacing: .4em;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
  font-weight: 600;
}
.thumb-nishian-ja {
  font-size: 48px;
  font-weight: 900;
  color: white;
  letter-spacing: .3em;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.thumb-nishian-sub {
  font-size: 12px;
  letter-spacing: .25em;
  color: rgba(255,255,255,.5);
  margin-top: 12px;
  font-weight: 600;
}
.work-thumb-nishian {
  background: linear-gradient(160deg, #1a0a00 0%, #3d1a00 50%, #1a0a00 100%);
  position: relative;
  overflow: hidden;
}
.work-thumb-nishian::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(200,80,0,.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255,140,0,.1) 0%, transparent 50%);
}
.thumb-portfolio-inner {
  text-align: center;
  z-index: 1;
}
.thumb-portfolio-logo {
  font-size: 36px;
  font-weight: 900;
  color: white;
  letter-spacing: .05em;
  line-height: 1;
}
.thumb-portfolio-logo span { color: #60A5FA; }
.thumb-portfolio-sub {
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.4);
  margin-top: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.thumb-portfolio-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.thumb-portfolio-tags span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}
.work-thumb-portfolio {
  background: linear-gradient(135deg, #0D1B2A 0%, #1B3a6e 60%, #1B4FD8 100%);
  position: relative;
}
.work-thumb-portfolio::before {
  content: '</>';
  position: absolute;
  font-size: 160px;
  font-weight: 900;
  color: rgba(255,255,255,.03);
  right: -10px;
  bottom: -20px;
  line-height: 1;
  font-family: monospace;
}

/* ===== About ===== */
#about { background: var(--light-gray); }
.about-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo-wrap {
  position: sticky;
  top: 96px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 20px;
  background: linear-gradient(135deg, #1B4FD8 0%, #0D1B2A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255,255,255,.3);
  margin-bottom: 24px;
}
.about-name {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 4px;
}
.about-name-en {
  font-size: 14px;
  color: var(--gray);
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.about-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-info li {
  display: flex;
  gap: 12px;
  font-size: 14px;
}
.about-info .label {
  color: var(--gray);
  min-width: 64px;
  flex-shrink: 0;
}
.about-content {}
.about-headline {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
}
.about-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 16px;
}
.career-timeline {
  margin-top: 40px;
  border-left: 3px solid var(--border);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.career-item { position: relative; }
.career-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--blue);
}
.career-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.career-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.career-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== Flow ===== */
#flow {}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.flow-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
}
.flow-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(27,79,216,.35);
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}
.step-duration {
  display: inline-block;
  background: var(--light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
}

/* ===== Message ===== */
#message {
  background: var(--navy);
  color: white;
  text-align: center;
}
.message-icon {
  font-size: 48px;
  margin-bottom: 24px;
}
.message-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
}
.message-text {
  font-size: 16px;
  color: #94A3B8;
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.9;
}

/* ===== Contact ===== */
#contact { background: var(--light-gray); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}
.contact-info-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-form {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.form-label .required {
  color: #EF4444;
  margin-left: 4px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: var(--light-gray);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue);
  background: white;
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: #94A3B8;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: white;
}
.footer-logo span { color: #60A5FA; }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 13px;
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 1040px) {
  .service-name { font-size: 15px; }
}

@media (max-width: 1040px) and (min-width: 901px) {
  .hero-title { font-size: 30px; }
}

@media (max-width: 960px) {
  .about-headline { font-size: 24px; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .flow-steps::before { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card {
    order: -1;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 28px;
  }
  .hero-card .feature-list { display: none; }
  .hero-inner { gap: 28px; }
  .profile-area { margin-bottom: 0; gap: 14px; }
  .profile-photo { width: 52px; height: 52px; font-size: 18px; }
  .profile-name { font-size: 16px; }
  .profile-role { font-size: 12px; }
  .diff-inner { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo-wrap { position: static; }
  .about-photo { aspect-ratio: 4/3; font-size: 48px; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .flow-steps::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 32px; }
  .hero-title br { display: none; }
  .hero-stats { flex-direction: column; gap: 12px; padding-top: 24px; padding-bottom: 32px; margin-top: 32px; }
  .stat-item { display: flex; align-items: center; gap: 16px; }
  .stat-num { font-size: 22px; width: 80px; flex-shrink: 0; }
  .stat-label { font-size: 12px; color: #94A3B8; margin-top: 0; flex: 1; }
  .work-results { grid-template-columns: 1fr; gap: 8px; }
  .result-item { display: flex; align-items: center; gap: 12px; text-align: left; }
  .result-num { font-size: 20px; width: 72px; flex-shrink: 0; text-align: left; line-height: 1; }
  .result-item:nth-child(2) .result-num { font-size: 16px; }
  .result-label { font-size: 12px; text-align: left; margin-top: 0; }
  .result-label br { display: none; }
  .about-headline br { display: none; }
  .message-title br { display: none; }
  #message .container { text-align: left !important; }
  #message .message-text { text-align: left; }
  #message .btn { display: block; text-align: center; }
  .flow-steps { grid-template-columns: 1fr; gap: 28px; }
  .flow-step { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
  .step-num { margin: 0 0 16px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .nav-cta { font-size: 13px; padding: 10px 14px; }
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 99;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-nav-link:hover { color: var(--blue); }
.mobile-nav-cta {
  margin-top: 24px;
  text-align: center;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
}

/* ===== Back to Top ===== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(27,79,216,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 200;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover { transform: translateY(-2px); }
#back-to-top svg { width: 18px; height: 18px; }
