@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  /* Color Palette */
  --bg-primary: #fdfbf7;      /* Warm soft off-white/cream */
  --bg-secondary: #f6f2ea;    /* Warm beige for sections */
  --card-bg: #ffffff;
  
  --primary: #ff7e67;         /* Warm friendly coral-orange */
  --primary-hover: #ff6347;
  --primary-light: #fff0ec;   /* Very light coral for tag backgrounds */
  --secondary: #4a5568;       /* Slate grey for subtext */
  
  --text-main: #2d3142;       /* Charcoal for readability */
  --text-muted: #5c6370;
  --border-color: #eae3d5;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #ff7e67 0%, #ff5c7a 100%);
  --grad-soft: linear-gradient(180deg, #fdfbf7 0%, #f6f2ea 100%);
  --grad-glow: radial-gradient(circle, rgba(255, 126, 103, 0.15) 0%, rgba(255, 255, 255, 0) 70%);

  /* Typography */
  --font-family: 'Inter', 'Noto Sans JP', sans-serif;
  
  /* Layout & Spacing */
  --container-width: 1100px;
  --header-height: 80px;
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(229, 220, 203, 0.3);
  --shadow-md: 0 10px 30px rgba(229, 220, 203, 0.5);
  --shadow-hover: 0 20px 40px rgba(255, 126, 103, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset & General --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* --- Layout Containers --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg-alt {
  background: var(--bg-secondary);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 227, 213, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
  background: rgba(253, 251, 247, 0.95);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.logo span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--grad-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 126, 103, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 126, 103, 0.35);
  color: #fff;
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--grad-glow);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-left {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: var(--grad-glow);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 126, 103, 0.2);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 126, 103, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 126, 103, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(234, 227, 213, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}

.hero-visual-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--bg-secondary);
}

/* --- Section Typography & General --- */
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.35;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 60px;
}

.align-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- Concept / About Section --- */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.concept-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.concept-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.concept-right-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.concept-right-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-primary);
}

.concept-stat-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.concept-stat-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,126,103,0.3) 0%, rgba(255,92,122,0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--primary);
  font-size: 1.8rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  background: var(--grad-primary);
  color: #fff;
  transform: scale(1.05);
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.service-card-brand {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Company Overview Section --- */
.company-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--border-color);
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th, .company-table td {
  padding: 24px 16px;
  text-align: left;
}

.company-table th {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  width: 25%;
  vertical-align: top;
}

.company-table td {
  font-size: 1rem;
  color: var(--text-muted);
  width: 75%;
}

.tel-note {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 6px;
  font-weight: 500;
}

/* --- Act on Specified Commercial Transactions / Specific Pages (tokushoho) --- */
.page-header {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.page-content {
  padding: 80px 0;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  max-width: 850px;
  margin: 0 auto;
}

.content-card p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.note-alert {
  background: var(--primary-light);
  border: 1px solid rgba(255, 126, 103, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 30px;
}

.note-alert-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-alert-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0 !important;
}

/* --- Footer --- */
.footer {
  background: var(--text-main);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer-brand .logo span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  line-height: 1.8;
  max-width: 320px;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
}

.footer-bottom-link:hover {
  color: #fff;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Float Animation for Hero Card --- */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .concept-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  /* Navigation Mobile */
  .burger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-primary);
    flex-direction: column;
    padding: 60px 40px;
    gap: 32px;
    transition: var(--transition);
    align-items: flex-start;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual-card {
    margin: 0 auto;
  }
  
  .concept-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .company-info {
    padding: 24px;
  }
  
  .company-table th, .company-table td {
    padding: 16px 8px;
    display: block;
    width: 100%;
  }
  
  .company-table th {
    padding-bottom: 4px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /* Burger Animation */
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger.toggle .line2 {
    opacity: 0;
  }
  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .content-card {
    padding: 24px;
  }
}
