/* ============================================
   ハカロ -Hacaro- 静的サイト スタイルシート
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  color: #3E3E3E;
  line-height: 1.8;
  background-image: url('../images/p0043_l.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

a {
  color: #17b767;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #108241;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-menu li a {
  display: block;
  padding: 10px 12px;
  color: #21339e;
  font-size: 0.8rem;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #62c0ef;
}

.nav-login a {
  background: #2bb5a0;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 4px;
}

.nav-login a:hover {
  background: #239688;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #3E3E3E;
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================
   Hero Banner (Top Page)
   ============================================ */
.hero-banner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  right: 30%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero-icon {
  width: 120px;
  height: auto;
}

.hero-appstore {
  height: 55px;
  width: auto;
}

/* Fade-in animations */
@keyframes fadeInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-top {
  animation: fadeInFromTop 0.8s ease-out 0.3s both;
}

.fade-in-bottom {
  animation: fadeInFromBottom 0.8s ease-out 0.6s both;
}

/* ============================================
   Top Page - Two Column Layout
   ============================================ */
.top-two-col {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  align-items: flex-start;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.top-left {
  width: 65%;
  min-width: 0;
  padding: 15px;
}

.top-right {
  width: 35%;
  flex-shrink: 0;
  border-left: 1px solid #eee;
  padding: 15px;
}

/* Menu Block (Left) */
.menu-block {
  background: #fff;
  overflow: hidden;
}

.menu-block-header {
  background: #156e9b;
  color: #fff;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: bold;
}

.menu-grid {
  display: flex;
  gap: 0;
}

.menu-grid-item {
  flex: 1;
  display: block;
  text-align: center;
  padding: 10px;
  transition: background 0.3s;
  border-bottom: 1px solid #eee;
  color: #3E3E3E;
}

.menu-grid-item:first-child {
  border-right: 1px solid #eee;
}

.menu-grid-item:hover {
  background: rgba(255,255,255,0.4);
}

.menu-grid-item img {
  width: 100%;
  height: 215px;
  object-fit: contain;
  margin-bottom: 5px;
}


/* Sidebar (Right) */
.sidebar-block {
  background: #fff;
  overflow: hidden;
  margin-bottom: 20px;
}


.sidebar-header {
  background: #156e9b;
  color: #fff;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
}

.sidebar-content {
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.sidebar-desc {
  font-size: 0.8rem;
  margin: 0;
  color: #666;
}

/* 小ボタン：サイドバーやカード内など、狭いスペース向け（width 80%、padding小さめ） */
.btn-sm {
  display: block;
  width: 60%;
  background: #2bb5a0;
  color: #fff !important;
  padding: 9px 15px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
}

.btn-sm:hover {
  background: #239688;
}

.custom-bg-section {
  background: #eef7fb;
  border-radius: 6px;
  padding: 10px 15px;
  margin-top: 20px;
}

.inclusion-box {
  background: #fff0f3;
  border: 1px solid #f5c0cc;
  border-radius: 6px;
  padding: 15px 20px;
  margin: 15px 0;
}

.option-box {
  background: #f0fae0;
  border: 1px solid #c0e090;
  border-radius: 6px;
  padding: 15px 20px;
  margin: 15px 0;
}

.option-title {
  font-size: 1rem;
  font-weight: bold;
  color: #4a7c20;
  margin-bottom: 10px;
}

.inclusion-title {
  font-size: 1rem;
  font-weight: bold;
  color: #c0446a;
  margin-bottom: 10px;
}

/* 大ボタン：コンテンツ内の目立つCTAボタン向け（width 60%、padding大きめ） */
.btn-lg {
  display: block;
  width: 60%;
  background: #2bb5a0;
  color: #fff !important;
  padding: 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
}

.btn-lg:hover {
  background: #239688;
}

/* ============================================
   About Section (Top Page)
   ============================================ */
.about-section {
  margin-top: 20px;
}

.about-title {
  font-size: 1.4rem;
  color: #3E3E3E;
  margin-bottom: 15px;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 15px;
}

.breadcrumb a {
  color: #21339e;
}

.breadcrumb a:hover {
  color: #62c0ef;
}

/* ============================================
   Main Content (Sub pages)
   ============================================ */
.main-content {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}

.content-card {
  background: #fff;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.page-title {
  font-size: 1.6rem;
  color: #fff;
  background: #156e9b;
  padding: 12px 20px;
  margin: -10px -10px 20px -10px;
  border-radius: 4px 4px 0 0;
}

.content-section {
  margin-bottom: 35px;
}

.content-section h2 {
  font-size: 1.5rem;
  color: #fff;
  background: #4a9ec8;
  padding: 8px 15px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.h2-content {
  margin-left: 0.5rem;
  width: 90%;
}

.h3-content {
  margin-left: 1.5rem;
  width: 80%;
}

.lead-text {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* 画像左・テキスト右 レイアウト */
.image-text-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.image-text-row__image {
  flex-shrink: 0;
  width: 350px;
  max-width: 100%;
}

.image-text-row__image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-text-row__text {
  flex: 1;
}

/* テキスト左・画像右 レイアウト */
.text-image-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.text-image-row__text {
  flex: 1;
}

.text-image-row__image {
  flex-shrink: 0;
  width: 350px;
}

.text-image-row__image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content-section h3::before {
  content: 'label_important';
  font-family: 'Material Icons';
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.content-section h3.no-icon::before {
  content: none;
}

.content-section h3 {
  font-size: 1.5rem;
  color: #3E3E3E;
  margin-bottom: 12px;
  margin-left: 1rem;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 80%;
  border-bottom: 2px solid #156e9b;
}

/* H3より一段弱い見出し */
.sub-heading {
  font-size: 1rem;
  font-weight: bold;
  color: #156e9b;
  border-left: 3px solid #156e9b;
  padding-left: 8px;
  margin: 12px 0 6px;
}

.content-section p {
  margin-bottom: 15px;
  line-height: 1.9;
}

.p-note {
  font-size: 0.85rem;
  color: #888;
}

.content-section a:not(.btn-lg):not(.btn-sm):not(.btn-external) {
  text-decoration: underline;
}

.content-section ul,
.content-section ol {
  margin: 10px 0 20px 25px;
  line-height: 2;
}

.content-section img {
  display: block;
  margin: 20px auto;
}

/* ============================================
   About Page
   ============================================ */
.about-top-image-figure {
  display: inline-block;
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 10px;
  border-radius: 4px;
  margin: 0 auto 30px;
}

figcaption {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

.about-top-image {
  max-width: 100%;
  margin: 0 auto 30px;
  display: block;
}


/* フロースライダー */
.flow-slider {
  margin: 10px 0;
}

.flow-slider__item {
  background: #fffde7;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  margin: 0 8px;
}

.flow-slider__item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-top: 10px;
}

.flow-step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.flow-step-item img {
  width: 300px;
  height: auto;
  margin-top: 8px;
}

.flow-step-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #156e9b;
  margin: 0 0 4px 0;
}

.flow-step-num {
  font-size: 1.2rem;
}

.flow-step-remark {
  font-size: 0.75rem;
  color: #888;
  margin: 2px 0 0 1.5rem;
}

.flow-step-note {
  font-size: 0.85rem;
  background: #ffff99;
  padding: 2px 6px;
  margin: 2px 0 0 1.5rem;
}

.content-section .flow-step-label,
.content-section .flow-step-note,
.content-section .flow-step-remark {
  margin-bottom: 0;
}

.gif-demo {
  max-width: 400px;
  margin: 20px auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.price-table th,
.price-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.price-table th {
  background: #b3dff0;
  color: #000;
  font-weight: bold;
}

.price-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* ============================================
   Measurement Method Page
   ============================================ */
.measurement-category {
  margin-bottom: 30px;
}

.measurement-category h3 {
  font-size: 1rem;
  color: #3E3E3E;
  padding: 8px 12px;
  background: #e8f5e9;
  border-left: 4px solid #2bb5a0;
  margin-bottom: 15px;
  border-bottom: none;
}

.measurement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.measurement-item {
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.measurement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.measurement-item img {
  width: 90px;
  height: 90px;
  margin: 0 auto 5px;
  display: block;
}

.measurement-item span {
  font-size: 0.8rem;
  font-weight: bold;
  color: #3E3E3E;
}

/* ============================================
   Structure Page - Expert Cards
   ============================================ */
.expert-cards {
  display: grid;
  gap: 20px;
  margin-top: 15px;
}

.expert-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 4px;
}

.expert-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.expert-info h3 {
  font-size: 1.05rem;
  color: #3E3E3E;
  margin-bottom: 2px;
  border-bottom: none;
  padding-bottom: 0;
}

.expert-info .expert-title {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

.expert-info .expert-quote {
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ============================================
   mypage-service Page
   ============================================ */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.feature-item {
  padding: 15px;
  background: #fffde7;
  border-radius: 4px;
  text-align: center;
}

.feature-item-title {
  font-size: 1.37rem;
  font-weight: bold;
  color: #f59f00;
  margin-bottom: 5px;
  border-bottom: 2px solid #f59f00;
  padding-bottom: 4px;
}

.feature-item-body {
  font-size: 1.22rem;
}

.price-highlight {
  background: #fff8e1;
  border: 2px solid #ffaa56;
  border-radius: 4px;
  padding: 25px;
  text-align: center;
  margin: 20px 0;
}

.price-highlight .price {
  font-size: 2rem;
  color: #ff8800;
  font-weight: bold;
}

.eval-images {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.eval-images img {
  max-width: 300px;
  border: 1px solid #ddd;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.form-label .required {
  background: #ffaa56;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #156e9b;
  outline: none;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  display: block;
  width: 400px;
  max-width: 100%;
  margin: 20px auto 0;
  padding: 12px;
  background: #ffaa56;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.form-submit:hover {
  background: #ff8800;
}

.contact-info {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 25px;
  line-height: 2;
}

.phone-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #156e9b;
}

/* ============================================
   Measurement Belt Page
   ============================================ */
.belt-image {
  max-width: 400px;
  margin: 20px auto;
  display: block;
}

/* 外部リンクボタン：外部サイトへのリンクに使用（青系） */
.btn-external {
  display: inline-block;
  background: #156e9b;
  color: #fff !important;
  padding: 12px 35px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-external:hover {
  background: #0d5a82;
}

.btn-external::after,
.link-external::after {
  content: 'open_in_new';
  font-family: 'Material Icons';
  font-size: 1em;
  vertical-align: middle;
  margin-left: 6px;
}

.belt-features {
  margin: 20px 0;
}

.belt-features li {
  padding: 6px 0 6px 20px;
  position: relative;
  list-style: none;
}

.belt-features li::before {
  content: "●";
  color: #2bb5a0;
  font-size: 0.7rem;
  position: absolute;
  left: 0;
  top: 8px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  margin-top: 20px;
}

.footer-downloads {
  background: #666;
  max-width: 100%;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.footer-downloads a {
  color: #CACACA;
  font-size: 0.85rem;
  padding: 5px 10px;
}

.footer-downloads a:hover {
  color: #fff;
}

.footer-downloads .app-store-badge {
  padding: 0;
}

.footer-downloads .app-store-badge img {
  height: 35px;
}

.footer-bottom {
  background: #666;
  color: #CACACA;
  text-align: center;
  padding: 15px 20px;
  font-size: 0.8rem;
  border-top: 1px solid #777;
}

.footer-bottom a {
  color: #CACACA;
  margin: 0 12px;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-copyright {
  margin-top: 8px;
  color: #aaa;
  font-size: 0.75rem;
}

.footer-copyright a {
  color: #CACACA;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1060px) {
  .h2-content {
    width: 95%;
  }

  .h3-content {
    width: 95%;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .hero-banner-inner {
    flex-direction: column;
  }


  .top-two-col {
    flex-direction: column;
  }

  .top-left {
    width: 100%;
  }

  .top-right {
    width: 100%;
  }

  .menu-grid-item img {
    height: 200px;
  }

  .content-card {
    padding: 20px;
  }

  .page-title {
    margin: -20px -20px 20px -20px;
    font-size: 1.3rem;
  }


  .expert-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .flow-step-item img {
    width: 100%;
    max-width: 300px;
  }

  .measurement-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .eval-images {
    flex-direction: column;
    align-items: center;
  }


  .form-submit {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .hero-icon {
    width: 70px;
  }

  .hero-appstore {
    height: 32px;
  }

  .hero-overlay {
    gap: 8px;
  }

  .h2-content {
    width: 100%;
    margin-left: 0;
  }

  .h3-content {
    width: 100%;
    margin-left: 0;
  }

  .content-section h3 {
    margin-left: 0;
  }

  .image-text-row {
    flex-direction: column;
  }

  .image-text-row__image {
    width: 100%;
    order: 2;
  }

  .image-text-row__text {
    order: 1;
  }

  .text-image-row {
    flex-direction: column;
  }

  .text-image-row__image {
    width: 100%;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .menu-grid {
    flex-direction: column;
  }

  .menu-grid-item:first-child {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .content-card {
    padding: 15px;
  }

  .page-title {
    margin: -15px -15px 15px -15px;
  }
}
