@charset "UTF-8";

/* Variables */
:root {
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --color-text: #1E293B; /* UX: 文字のコントラストを濃く */
  --color-text-light: #5A6A7D;
  --color-accent: #E8652D; /* オレンジ色 */
  --color-accent-hover: #D05322;
  --color-bg: #EAEFF2;
  --color-white: #ffffff;
  --color-border: #E2E8F0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography Classes */
.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 100;
  transition: 0.3s;
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-left: 4px;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--color-accent);
}

.btn-contact {
  background: var(--color-accent);
  color: white !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
}

.btn-contact:hover {
  background: var(--color-accent-hover);
}

.hamburger {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 生成したAI画像を背景にセットするための場所 */
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--color-bg);
  background-image: url('images/medical_fv_bg.webp'); /* AI生成画像 */
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* 視認性を高めるためのグラデーション */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.15em;
  letter-spacing: 0.15em;
  padding-left: 4px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-outline {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--color-accent);
  color: var(--color-white);
  background: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.btn-outline:hover {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

/* Layout utilities */
.pc-only { display: block; }
.sp-only { display: none; }

.sec-pad {
  padding: 140px 0;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

/* About Section */
.sec-head {
  text-align: center;
  margin-bottom: 80px;
}
.sec-en {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.sec-ja {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-text);
  line-height: 1.4;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-content .lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--color-text);
}
.about-content .text {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 2;
  text-align: justify;
}

/* Service Section */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.service-card {
  background: var(--color-white);
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  transition: 0.3s;
}
.service-icon {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--color-text);
  word-break: auto-phrase;
  line-height: 1.5;
  height: 3.3em;
  overflow: hidden;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Works Section */
.bg-light {
  background-color: var(--color-bg);
}
.cms-notice {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 16px;
  padding: 12px;
  background: rgba(245, 166, 35, 0.1);
  display: inline-block;
  border-radius: 4px;
  word-break: auto-phrase;
  line-height: 1.6;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.work-card {
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.work-img {
  width: 100%;
  height: 200px;
  background: #dce4e8;
}
.work-info {
  padding: 24px;
}
.work-cat {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.work-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.5;
}
.work-info p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Contact Section */
.contact {
  text-align: center;
}
.contact-links {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-radius: 8px; /* UI: 押しやすさを表現 */
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* 浮き上がり */
  transform: translateY(0);
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-text);
}
.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.contact-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: var(--color-text);
  color: var(--color-white);
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* SP Fixed CTA (Hidden on PC) */
.sp-fixed-cta {
  display: none;
}

/* 中間幅：3カラムが狭すぎる帯域 */
@media screen and (min-width: 769px) and (max-width: 920px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.9) 60%, rgba(255,255,255,1) 100%);
  }
  
  .header {
    height: 60px;
  }
  .nav { display: none; }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30px;
  }
  .hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--color-text);
  }
  
  .hero-content {
    padding-top: 60px;
  }
  .hero-title {
    font-size: 2.2rem; /* 文字サイズを調整して折り返しを防ぐ */
  }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Utilities & Text */
  .pc-only { display: none !important; }
  .sp-only { display: block !important; }
  
  .sec-pad { padding: 80px 0; }
  .sec-ja { font-size: 2rem; }
  
  .about-content .lead {
    font-size: 1.15rem;
    text-align: left;
  }
  .about-content .text {
    text-align: left;
  }
  
  .service-grid, .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* ボタンと要素内余白 */
  .contact-btn {
    padding: 20px 20px;
    font-size: 1rem;
    gap: 8px;
  }
  .btn-text {
    word-break: keep-all;
    line-height: 1.4;
  }
  
  /* Footer (固定CTAの被り防止) */
  .footer {
    padding-bottom: 100px; /* CTAボタンの高さ分、下部に余白を追加 */
  }
  
  /* SP CTA */
  .sp-fixed-cta {
    display: block;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  }
  .sp-fixed-cta a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 54px;
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
  }
}
