@charset 'utf-8';

/* Color */
:root {
  --black: #1a1a1a;
  --light-black: #333333;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --border: #e5e7eb;
  --peach: #face9d;
  --green: #a8c798;
  --gold: #ffd700;
  --amethyst: #9966cc;
  --white: #ffffff;
  --enter: #1c40f0;
  --deep-green: #34a853;
}

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  letter-spacing: -.02em;
  background: var(--white);
  color: var(--black);
}

/* Background patterns */
body::before {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(250, 206, 157, .08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 199, 152, .08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(153, 102, 204, .06) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  content: '';
}
body::after {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(255, 215, 0, .02) 45%, transparent 50%),
    linear-gradient(-105deg, transparent 40%, rgba(250, 206, 157, .02) 45%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  content: '';
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  z-index: 1000;
}
.header-inner {
  margin: 0 auto;
  padding: 0 40px;
  max-width: 1400px;
  width: 100%;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--black);
}

/* Loading screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-left,
.loading-right {
  position: absolute;
  width: 50%;
  height: 100%;
  background: var(--white);
  transition: transform 1.5s cubic-bezier(.76, 0, .24, 1);
}
.loading-left {
  left: 0;
}
.loading-right {
  right: 0;
}
.loading-screen.open .loading-left {
  transform: translateX(-100%);
}
.loading-screen.open .loading-right {
  transform: translateX(100%);
}
.gear-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .5s;
  z-index: 10000;
}
.loading-screen.open .gear-container {
  opacity: 0;
}
.gear-icon {
  font-size: 48px;
  color: var(--black);
  animation: rotateGear 2s linear infinite;
}
@keyframes rotateGear {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Wrapper */
.wrapper {
  margin: 0 auto;
  padding: 100px 40px 40px;
  max-width: 1400px;
  position: relative;
  display: flex;
  gap: 40px;
}

/* Sidebar */
.sidebar {
  padding: 48px 32px;
  width: 320px;
  height: fit-content;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--border), 0 20px 50px -20px rgba(0, 0, 0, .1);
  position: sticky;
  top: 100px;
}
.sidebar::before {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--peach), transparent, var(--green));
  opacity: .1;
  z-index: -1;
  content: '';
}
.profile-img {
  margin: 0 auto 28px;
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  position: relative;
}
.profile-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
  z-index: 10;
}
.profile-name {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -.03em;
  color: var(--black);
}
.profile-title {
  margin-bottom: 32px;
  font-size: 15px;
  text-align: center;
  color: var(--gray);
}
.social-links {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.social-link {
  width: 40px;
  height: 40px;
  text-decoration: none;
  border-radius: 10px;
  background: var(--light-gray);
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}
.social-link:hover {
  transform: translateY(-2px);
  background: var(--black);
  color: var(--white);
}
.contact-info {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.contact-item {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--gray);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-item:hover {
  color: var(--black);
}
.contact-item .material-icons {
  font-size: 18px;
  color: var(--black);
}
.cta-button {
  margin-top: 32px;
  padding: 10px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  background: var(--deep-green);
  color: var(--white);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.cta-button .material-icons {
  font-size: 18px;
}
.cta-button::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--peach), var(--gold));
  opacity: 0;
  transition: opacity .3s;
  content: '';
}
.cta-button:hover::before {
  opacity: .2;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .2);
}

/* Main */
.main {
  padding: 0;
  flex: 1;
  opacity: 0;
  animation: fadeIn .6s ease-out 2.3s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Section */
.section {
  margin-bottom: 32px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  position: relative;
}
.section-tag {
  margin-bottom: 5px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  border-radius: 0;
  background: none;
  color: var(--amethyst);
  opacity: .7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-tag::before {
  width: 40px;
  height: 1px;
  background: var(--amethyst);
  opacity: .5;
  content: '';
}
.section-title {
  margin-bottom: 12px;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--black);
  position: relative;
}
.section-title span {
  background: linear-gradient(135deg, var(--amethyst), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  margin-bottom: 40px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--gray);
}
.section-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}
.section-content p b {
  background: #fef3c7;
  padding: 0 .2em;
  border-radius: 2px;
}

/* Services grid */
.services-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--peach), var(--green));
  opacity: 0;
  transition: opacity .3s;
  content: '';
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .1);
}
.service-icon {
  margin-bottom: 20px;
  width: 56px;
  height: 56px;
  font-size: 24px;
  border-radius: 14px;
  background: var(--light-gray);
  color: var(--black);
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card:hover .service-icon {
  background: var(--black);
  color: var(--white);
}
.service-title {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--black);
}
.service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

/* Workflow */
.workflow {
  margin-top: 40px;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.workflow::before {
  position: absolute;
  top: 44px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  z-index: 0;
  content: '';
}
.workflow-step {
  position: relative;
  flex: 1;
  text-align: center;
  z-index: 1;
}
.workflow-icon {
  margin: 0 auto 20px;
  width: 88px;
  height: 88px;
  font-size: 32px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--gray);
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-step:hover .workflow-icon {
  transform: scale(1.1);
  border-color: var(--black);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, .2);
  color: var(--black);
}
.workflow-step:nth-child(1) .workflow-icon {
  border-color: var(--peach);
}
.workflow-step:nth-child(3) .workflow-icon {
  border-color: var(--green);
}
.workflow-step:nth-child(5) .workflow-icon {
  border-color: var(--gold);
}
.workflow-title {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}
.workflow-desc {
  font-size: 13px;
  color: var(--gray);
}

/* Portfolio */
.portfolio-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .15);
}
.portfolio-image {
  width: 100%;
  height: 200px;
  font-size: 48px;
  background: var(--light-gray);
  color: var(--gray);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portfolio-image::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(250, 206, 157, .2));
  opacity: 0;
  transition: opacity .3s;
  content: '';
}
.portfolio-card:hover .portfolio-image::after {
  opacity: 1;
}
.portfolio-content {
  padding: 28px;
}
.portfolio-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}
.portfolio-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

/* Form */
.form-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group.full {
  grid-column: 1/-1;
}
.form-label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  display: block;
}
.form-input,
.form-textarea {
  padding: 12px;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  transition: all .2s;
}
.form-textarea {
  overflow-y: scroll;
  resize: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .05);
  outline: none;
}
.form-submit-wrapper {
  margin-bottom: 24px;
  width: 100%;;
  display: flex;
  justify-content: center;
}
.form-submit {
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: var(--enter);
  color: var(--white);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form-submit .material-icons {
  font-size: 16px;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .2);
}
input.customer-no {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  text-decoration: none;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transition: all .3s;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Footer */
footer {
  padding: 60px 0 40px;
  font-size: 14px;
  text-align: center;
  color: var(--gray);
}

/* Modal */
.modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, .25);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: flex;
  opacity: 0;
  pointer-events: none;
}
.modal-layer.is-open {
  opacity: 1;
  pointer-events: auto;
  animation: modalIn .5s ease;
}
.modal-box {
  padding: 24px;
  width: min(92%, 640px);
  background: var(--white);
  color: var(--light-black);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  border: 1px solid var(--border);
}
.modal-box ul {
  padding: 0;
  list-style: none;
}
.modal-box ul li {
  padding: 10px 0;
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.modal-box li:last-child {
  border-bottom: none;
}
.modal-box li strong {
  padding: 6px 0;
  min-width: 96px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.modal-box li.confirm-block {
  flex-direction: column;
  gap: 8px;
}
.modal-box li.confirm-block strong {
  min-width: auto;
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
}
.modal-box li span,
.modal-box .confirm-message {
  padding: 6px;
  width: 100%;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;   /* 改行を保持 */
  color: var(--black);
}
.process-message {
  padding-bottom: 20px;
}
.modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 24px;
  justify-content: center;
}
.btn-sendmail,
.btn-close {
  padding: 10px 30px;
  color: var(--light-black);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-sendmail {
  background: var(--enter);
}
.btn-close {
  background: var(--light-black);
}
.btn-sendmail .material-icons,
.btn-close .material-icons {
  font-size: 16px;
}
.btn-sendmail:hover,
.btn-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .2);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
  }
  .header-inner {
    padding: 0;
  }
  .wrapper {
    padding: 80px 20px 20px;
    flex-direction: column;
  }
  .sidebar {
    margin-bottom: 32px;
    width: 100%;
    position: static;
  }
  .section {
    padding: 32px 24px;
  }
  .workflow {
    flex-direction: column;
  }
  .workflow::before {
    top: 10%;
    left: 50%;
    width: 1px;
    height: 80%;
    transform: translateX(-50%);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* animation */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
