/* ==========================================================================
   ToolMarche Common Styles
   ========================================================================== */

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

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

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  background-color: #F5F7FA;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #1A73E8;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1557b0;
}

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

ul {
  list-style: none;
}

/* Container
   ========================================================================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header
   ========================================================================== */
header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A73E8;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: #1557b0;
}

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

nav a {
  font-weight: 500;
  color: #333333;
  padding: 8px 0;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1A73E8;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #1A73E8;
}

nav a:hover::after {
  width: 100%;
}

/* Main Content
   ========================================================================== */
main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

/* Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #666666;
}

.breadcrumb a:hover {
  color: #1A73E8;
}

.breadcrumb span {
  color: #999999;
}

.breadcrumb .current {
  color: #333333;
  font-weight: 500;
}

/* Card Component
   ========================================================================== */
.card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
}

.card-description {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
}

/* Button Components
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.btn-primary {
  background-color: #1A73E8;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #1557b0;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-accent {
  background-color: #FF9900;
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: #e68a00;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #1A73E8;
  border: 2px solid #1A73E8;
}

.btn-outline:hover {
  background-color: #1A73E8;
  color: #FFFFFF;
}

/* Grid Layout
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Section Styles
   ========================================================================== */
section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #1A73E8;
  display: inline-block;
}

.section-description {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* Footer
   ========================================================================== */
footer {
  background-color: #2C3E50;
  color: #FFFFFF;
  padding: 32px 0;
  margin-top: 64px;
}

footer .container {
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  color: #BDC3C7;
}

footer a {
  color: #FFFFFF;
}

footer a:hover {
  color: #1A73E8;
}

/* Utility Classes
   ========================================================================== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #666666;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* Responsive Design
   ========================================================================== */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  header .container {
    flex-direction: column;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav ul {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: center;
  }

  main {
    padding: 24px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card {
    padding: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }

  section {
    margin-bottom: 32px;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .card-title {
    font-size: 1.125rem;
  }
}

/* ===================================
   フィードバックウィジェット
   /assets/css/style.css に追記してください
   =================================== */

.feedback-widget {
  margin: 48px 0;
  padding: 24px 0;
}

.feedback-card {
  background-color: #F9FAFB;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* フィードバック質問 */
.feedback-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 20px;
}

/* ボタングループ */
.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* フィードバックボタン */
.feedback-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background-color: #FFFFFF;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.feedback-btn:hover:not(:disabled) {
  background-color: #F3F4F6;
  border-color: #1A73E8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.feedback-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* アイコン */
.feedback-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* 役に立ったボタン */
.feedback-btn-good:hover:not(:disabled) {
  background-color: #EEF6FF;
  border-color: #1A73E8;
  color: #1A73E8;
}

/* イマイチボタン */
.feedback-btn-bad:hover:not(:disabled) {
  background-color: #FEF3F2;
  border-color: #DC2626;
  color: #DC2626;
}

/* 感謝メッセージ */
.feedback-thanks {
  padding: 16px 0;
}

.feedback-thanks-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.feedback-thanks-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #10B981;
  margin: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .feedback-card {
    padding: 24px 16px;
  }
  
  .feedback-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .feedback-btn {
    width: 100%;
    justify-content: center;
  }
}