/* すべての要素の幅計算を「パディング込み」に統一する */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #0054a6; 
    --accent-color: #ff9900;  
    --bg-light: #f8f9fa;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px; /* 上下を少し詰め、左右を15px程度に */
    width: 100%;       /* 幅を100%に固定 */
    overflow: hidden;   /* はみ出しをカット */
}

/* 集計サマリーセクション */
.summary-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 50px;
    border: 1px solid #e0e0e0;
}

.summary-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.rating-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.big-number {
    font-size: 64px;
    font-weight: bold;
    color: var(--accent-color);
}

.stars {
    color: var(--accent-color);
    font-size: 32px;
    letter-spacing: 2px;
}

.total-count {
    font-size: 18px;
    color: #666;
}

.review-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 軽い影 */
    margin-bottom: 20px;
    padding-right: 5px;
    border-radius: 8px; /* 角を少し丸く */
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-info {
    font-weight: bold;
    background: #eee;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.review-stars {
    color: var(--accent-color);
    font-size: 18px;
}

.review-body {
    font-size: 16px;
    color: #444;
    background: #fffdf5;
    text-align: left !important;
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

header {
    position: relative !important; /* または fixed */
    top: 0 !important;
    z-index: 9999 !important; /* 最前面に持ってくる */
}

.menu-trigger, .navbar-toggler {
    display: block !important; 
}

/* メニューを隠す */
header .menu, 
header nav, 
header .menu-btn sp,
header .button {
    display: none !important;
}
.menu-btn.sp {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

@media screen and (max-width: 480px) {
    .big-number {
        font-size: 48px; /* スマホでは少し小さくする */
    }
    .summary-box {
        padding: 20px 10px; /
    }
    .rating-flex {
        gap: 10px; 
    }
}
@media screen and (max-width: 480px) {
    h1 {
        font-size: 24px; 
        line-height: 1.3; 
        margin-bottom: 15px;
    }
    h2 {
        font-size: 24px; 
        line-height: 1.3; 
        margin-bottom: 15px;
    }
}

.heading-7 {
    display: inline-block;
    position: relative;
    color: #333;
}

.heading-7:before {
    content: '';
    display: inline-block;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #f08c0a;
    margin-bottom: 12px;
}

.purpose-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 900px;
  margin: 20px auto;
  padding-bottom: 50px;
  font-family: sans-serif;
}

.purpose-item {
  display: flex;
  align-items: center;
  width: calc(50% - 6px); /* 2カラム表示 */
  padding: 18px 15px;
  background-color: #ffffff;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.25s ease-in-out;
  box-sizing: border-box;
}

.purpose-item:hover {
  border-color: #007bff; 
  background-color: #f8fbff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* メニューアイコン */
.purpose-item .icon {
  font-size: 1.5rem;
  margin-right: 12px;
  flex-shrink: 0; /* アイコンが潰れないように */
}

.purpose-item .text {
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .purpose-item {
    width: 100% !important;
    padding: 16px;
  }
}

.purpose-item .icon img {
  width: 45px; 
  height: 45px; 
  object-fit: contain; /* 画像の比率を保つ */
  display: block;
}
.purpose-item {
  display: flex;
  align-items: center; 
}