/* 基本スタイル */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

/* ヘッダー */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  margin: 0;
  color: #FF7F00;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #FF7F00;
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/hero.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  padding: 8rem 1rem 6rem 1rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h2 {
  margin: 0 0 1rem 0;
  font-size: 4rem;
  letter-spacing: 0.12em;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin: 0 0 2rem 0;
  max-width: 600px;
  line-height: 1.5;
}

.hero .since {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* メインコンテンツ */
main {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
}

/* 事業一覧セクション */
.services-section {
  margin-bottom: 6rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #FF7F00;
  margin-bottom: 4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #FF7F00;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* サービスグリッド */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.service {
  margin: 0;
  padding: 1.5rem 1rem;
  background: #fff;
  border-left: 6px solid #FF7F00;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  height: 280px;
  display: flex;
  flex-direction: column;
}

.service-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.service > *:not(.service-bg-img) {
  position: relative;
  z-index: 2;
}

.service h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #FF7F00;
  font-size: 2rem;
  flex-shrink: 0;
}

.service p {
  margin: 0 0 1rem 0;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.usp {
  list-style: disc inside;
  margin: 0 0 0 0.5em;
  padding: 0 0 0 1em;
  color: #444;
  flex-grow: 1;
  font-size: 1.05rem;
}

.usp li {
  margin-bottom: 0.3em;
}

.service-link {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #007A70;
  font-size: 1.15rem;
  font-weight: 500;
}

.service-link span {
  flex-grow: 1;
  font-size: 1.3rem;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.instagram-link:hover {
  background: linear-gradient(45deg, #d17a1a 0%, #c5532a 25%, #b91e35 50%, #a91a52 75%, #9a1570 100%);
  transform: scale(1.1);
}

.instagram-link svg {
  width: 48px;
  height: 48px;
}

.web-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  background: #0077CC;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.web-link:hover {
  background: #005FA3;
  transform: scale(1.1);
}

.web-link svg {
  width: 44px;
  height: 44px;
}

@media (max-width: 600px) {
  .web-link {
    width: 64px;
    height: 64px;
  }
  .web-link svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 400px) {
  .web-link {
    width: 52px;
    height: 52px;
  }
  .web-link svg {
    width: 26px;
    height: 26px;
  }
}

/* CEOメッセージ */
.ceo-message {
  margin: 6rem 0 3rem 0;
  padding: 3rem 0 2rem 0;
  background: #f8f8f8;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.ceo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ceo-message h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #FF7F00;
  margin: 0 0 4rem 0;
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
}

.ceo-message h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #FF7F00;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.ceo-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ceo-photo {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ceo-text {
  flex: 1;
  padding-left: 0;
}

.ceo-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.ceo-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 会社概要 */
.company-profile {
  margin: 6rem auto 3rem auto;
  padding: 0 1rem 1.5rem 1rem;
  background: #f3f3f3;
  border-radius: 8px;
  max-width: 650px;
}

.company-profile h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #FF7F00;
  margin: 0 0 4rem 0;
  padding-top: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
}

.company-profile h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #FF7F00;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.company-profile table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.company-profile th, .company-profile td {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.company-profile th {
  background: #f8f8f8;
  color: #333;
  width: 7em;
  font-weight: bold;
}

.company-profile tr:last-child th, .company-profile tr:last-child td {
  border-bottom: none;
}

/* フッター */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 4rem;
  font-size: 0.95rem;
}

/* レスポンシブデザイン */
@media (max-width: 900px) {
  main {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
  
  .services-section {
    margin-bottom: 5rem;
  }
  
  .ceo-message {
    margin: 5rem 0 2.5rem 0;
    padding: 2.5rem 0 1.5rem 0;
  }
  
  .ceo-container {
    padding: 0 0.8rem;
  }
  
  .ceo-content {
    gap: 1.5rem;
  }
  
  .ceo-photo {
    flex: 0 0 35%;
  }
  
  .ceo-text {
    padding-left: 0;
  }
  
  .ceo-image {
    width: 180px;
    height: 180px;
  }
  
  .company-profile {
    margin: 5rem auto 2.5rem auto;
    max-width: 95%;
  }
  
  .hero {
    padding: 6rem 1rem 4rem 1rem;
    min-height: 55vh;
  }
  
  .hero h2 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero .since {
    font-size: 1.2rem;
  }
  
  .section-title,
  .ceo-message h2,
  .company-profile h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  .services-grid {
    gap: 1.5rem;
  }
  
  .company-profile table {
    font-size: 0.98rem;
  }
}

@media (max-width: 768px) {
  .ceo-message {
    margin: 4rem auto 2rem auto;
    padding: 2.5rem 1rem 1.5rem 1rem;
    width: auto;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
    position: static;
    max-width: 100%;
  }
  
  .ceo-container {
    padding: 0 0.8rem;
    max-width: 100%;
  }
  
  .ceo-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .ceo-photo {
    flex: none;
    order: 1;
  }
  
  .ceo-text {
    order: 2;
    flex: none;
    padding-left: 0;
    text-align: center;
  }
  
  .ceo-image {
    width: 160px;
    height: 160px;
  }
  
  .ceo-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav ul {
    gap: 1rem;
  }
  
  .nav a {
    font-size: 0.9rem;
  }
  
  .hero {
    background-attachment: scroll;
    padding: 6rem 1rem 4rem 1rem;
    min-height: 50vh;
  }
  
  .hero h2 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
  }
  
  .hero .since {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.04em;
  }
  
  main {
    padding: 0 0.5rem;
  }
  
  .services-section {
    margin-bottom: 4rem;
  }
  
  .ceo-message {
    margin: 4rem auto 2rem auto;
    padding: 2rem 1rem 1.5rem 1rem;
    width: auto;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
    position: static;
    max-width: 100%;
  }
  
  .ceo-container {
    padding: 0 0.5rem;
    max-width: 100%;
  }
  
  .company-profile {
    margin: 4rem auto 2rem auto;
    max-width: 98%;
  }
  
  .section-title,
  .ceo-message h2,
  .company-profile h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }
  
  .section-title::after,
  .ceo-message h2::after,
  .company-profile h2::after {
    width: 60px;
    height: 2px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service {
    padding: 1rem 0.5rem;
    margin: 0 1rem;
    height: auto;
    min-height: 180px;
  }
  
  .ceo-content {
    flex-direction: column;
    text-align: center;
    gap: 1.8rem;
  }
  
  .ceo-content::after {
    display: none;
  }
  
  .ceo-photo {
    padding-right: 0;
  }
  
  .ceo-text {
    padding-left: 0;
    text-align: center;
  }
  
  .ceo-text p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
  }
  
  .ceo-image {
    width: 140px;
    height: 140px;
  }
  
  .company-profile {
    padding: 0.5rem 0.2rem;
  }
  
  .company-profile table {
    display: block;
    width: 100%;
    overflow-x: auto;
    font-size: 0.95rem;
  }
  
  .company-profile th, .company-profile td {
    padding: 0.5em 0.5em;
    white-space: nowrap;
  }
  .instagram-link {
    width: 64px;
    height: 64px;
  }
  .instagram-link svg {
    width: 36px;
    height: 36px;
  }
}

/* 極小スクリーン用 */
@media (max-width: 400px) {
  .hero {
    padding: 4rem 0.5rem 3rem 0.5rem;
    min-height: 40vh;
  }
  
  .services-section {
    margin-bottom: 3rem;
  }
  
  .ceo-message {
    margin: 3rem auto 1.5rem auto;
    padding: 1.5rem 0.5rem 1rem 0.5rem;
    width: auto;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
    position: static;
    max-width: 100%;
  }
  
  .ceo-container {
    padding: 0 0.3rem;
    max-width: 100%;
  }
  
  .ceo-content {
    gap: 1.5rem;
  }
  
  .ceo-text {
    padding-left: 0;
  }
  
  .ceo-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
  }
  
  .ceo-image {
    width: 120px;
    height: 120px;
  }
  
  .company-profile {
    margin: 3rem auto 1.5rem auto;
    max-width: 100%;
  }
  
  .hero h2 {
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
  }
  
  .hero .since {
    font-size: 1rem;
    letter-spacing: 0.03em;
  }
  
  .header-content {
    padding: 0.5rem;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .section-title,
  .ceo-message h2,
  .company-profile h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .section-title::after,
  .ceo-message h2::after,
  .company-profile h2::after {
    width: 50px;
    height: 2px;
  }
  
  .nav a {
    font-size: 0.85rem;
  }
  .instagram-link {
    width: 52px;
    height: 52px;
  }
  .instagram-link svg {
    width: 28px;
    height: 28px;
  }
}

/* スマホ版のフォントサイズ統一 */
@media (max-width: 768px) {
  body {
    font-size: 12px;
  }

  /* ヒーローテキスト：モバイルでも読みやすいサイズを確保 */
  .hero-subtitle {
    font-size: 1rem !important;
  }

  .hero .since {
    font-size: 1.15rem !important;
  }

  /* 4事業カードの本文・箇条書き（黒字部分） */
  .service p {
    font-size: 1rem !important;
  }

  .usp,
  .usp li {
    font-size: 1rem !important;
  }

  /* その他の本文 */
  li,
  .ceo-text p,
  .company-profile table,
  .company-profile th,
  .company-profile td,
  footer,
  small {
    font-size: 12px !important;
  }

  /* 見出し */
  h1,
  h2,
  h3,
  .section-title,
  .service h2,
  .ceo-message h2,
  .company-profile h2,
  .hero h2 {
    font-size: 24px !important;
  }

  .service-link span {
    margin-left: 10px;
    font-size: 16px;
  }
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
}

@media (max-width: 600px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 0.95rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 110;
  }

  .header-content {
    position: relative;
    padding-top: 3rem;
  }

  .menu-toggle__icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 14px;
  }

  .menu-toggle__icon::before,
  .menu-toggle__icon::after,
  .menu-toggle__icon span {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }

  .menu-toggle__icon::before { top: 0; }
  .menu-toggle__icon::after { bottom: 0; }
  .menu-toggle__icon span { top: 6px; }

  /* ナビ初期状態を隠す */
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav {
    display: none;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .nav li {
    border-bottom: 1px solid #f2f2f2;
  }
  .nav a {
    display: block;
    padding: 1rem 0.75rem;
    font-size: 14px;
    min-height: 44px;
  }
}

@media (max-width: 600px) {
  /* ロゴとハンバーガーを同一行・同じ高さに揃える */
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0;
  }
  .logo { order: 1; }
  .menu-toggle {
    position: static;
    order: 2;
    margin-left: auto;
  }
  .nav {
    order: 3;
    width: 100%;
  }
}

/* ロゴのモバイル用フォントサイズ調整（上書き） */
@media (max-width: 768px) {
  .logo h1 { font-size: 20px !important; }
}
@media (max-width: 600px) {
  .logo h1 { font-size: 18px !important; }
}
@media (max-width: 400px) {
  .logo h1 { font-size: 16px !important; }
}

@media (max-width: 600px) {
  /* ハンバーガーアイコンの視覚サイズを縮小 */
  .menu-toggle {
    padding: 0.25rem 0.5rem;
  }
  .menu-toggle__icon {
    width: 14px;
    height: 10px;
  }
  .menu-toggle__icon::before,
  .menu-toggle__icon::after,
  .menu-toggle__icon span {
    height: 1.5px;
  }
  .menu-toggle__icon span { top: 4px; }

  /* ヘッダー上部の余白を確保 */
  .header-content {
    padding-top: 0.5rem;
  }
}

@media (max-width: 600px) {
  /* ハンバーガー外枠を消して三本線のみ表示 */
  .menu-toggle {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  /* 三本線の位置ズレ補正：中央バーを正確に中央へ、線の太さを統一 */
  .menu-toggle__icon {
    width: 16px;
    height: 12px;
  }
  .menu-toggle__icon::before,
  .menu-toggle__icon::after,
  .menu-toggle__icon span {
    height: 2px;
  }
  .menu-toggle__icon span {
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 600px) {
  /* モバイルメニューのテキスト中央寄せ */
  .nav ul {
    align-items: stretch;
  }
  .nav a {
    width: 100%;
    display: flex;
    justify-content: center !important;
    align-items: center;
    text-align: center !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 600px) {
  /* モバイルメニューの文字を少し大きく */
  .nav a {
    font-size: 16px !important;
  }
}
