/* ============================================================================= 
   手ぶらdeお遍路 - メインスタイルシート
   ============================================================================= */

:root {    
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    --bg-light: #f8fdf9;
    --bg-secondary: #e8f5e8;
    
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
    
    --transition-normal: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    --border-radius: 8px;
    --border-radius-lg: 15px;
    --border-color: var(--gray-200);
    
    --header-height: 80px;
    --nav-item-height: 44px;

    --hero-h-pc: 560px;
    --hero-h-sp: 500px;
}

/* ============================================================================= 
   ベーススタイル
   ============================================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: white;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    color: var(--primary-dark);
}

.section-subtitle {
    margin-bottom: 50px;
    font-size: 1.1em;
    text-align: center;
    color: var(--gray-600);
}

/* ============================================================================= 
   ヘッダー
   ============================================================================= */

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    color: #fff;
    background: linear-gradient(
        to bottom right,
        var(--primary-dark) 0%,
        var(--primary-color) 80%,
        var(--secondary-color) 100%
    );
    box-shadow: var(--shadow);
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.header > .container {
    height: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .35em;
    line-height: 1;
    text-decoration: none;
    color: #fff;
}

.brand-mark {
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.brand-text {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
}

.brand-accent {
    color: #F5551B;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.nav a {
    display: inline-flex;
    align-items: center;
    height: var(--nav-item-height);
    padding: 0 16px;
    border-radius: 5px;
    line-height: 1;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity .3s ease, background .3s ease;
    cursor: pointer;
}

.nav a.active {
    font-weight: 700;
    background: rgba(255,255,255,.20);
}

.nav a:hover {
    background: rgba(255,255,255,.10);
    opacity: 0.95;
}

.nav-mobile {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: none;
    color: #fff;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.nav-mobile:hover {
    opacity: 0.8;
}

.nav-mobile:active {
    opacity: 0.6;
}

.icon-menu {
    display: block;
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ============================================================================= 
   ヒーローセクション
   ============================================================================= */

.hero {
    position: relative;
    min-height: 500px;
    padding: 150px 0 100px;
    overflow: hidden;
    text-align: center;
}

.hero--image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero--fixed {
    height: var(--hero-h-pc);
    min-height: 0;
    padding: 0;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 576px) {
    .hero--fixed {
        height: var(--hero-h-sp);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero--light .hero-content {
    color: white;
}

.hero-title {
    margin-bottom: 30px;
    font-size: 3.5em;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero h1 {
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero--light h1,
.hero--light .hero-title {
    color: white;
}

.hero-subtitle {
    max-width: 800px;
    margin-right: auto;
    margin-bottom: 30px;
    margin-left: auto;
    font-size: 1.4em;
}

.hero p {
    max-width: 800px;
    margin-right: auto;
    margin-bottom: 30px;
    margin-left: auto;
}

.hero-description {
    margin-bottom: 50px;
    font-size: 1.2em;
    opacity: 0.9;
}

.hero-small {
    padding: 120px 0 60px;
}

.hero-small h1 {
    font-size: 2.5em;
}

.hero-small p {
    font-size: 1.2em;
}

main > .hero:first-child.hero--fixed { 
  margin-top: var(--header-height); 
}

/* ============================================================================= 
   CTAボタン
   ============================================================================= */

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-buttons--center {
    justify-content: center;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--ui-action-pad-y) var(--ui-action-pad-x);
    border: none;
    border-radius: 50px;
    font-size: var(--ui-action-font-size);
    font-weight: var(--ui-action-font-weight);
    line-height: var(--ui-action-line-height);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn--lg {
    padding: var(--ui-action-pad-y) var(--ui-action-pad-x);
    font-size: var(--ui-action-font-size);
    line-height: var(--ui-action-line-height);
}

.cta-sub {
    margin-top: 20px;
}

.link-muted {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
}

.link-muted:hover {
    color: white;
}

/* ============================================================================= 
   グリッドレイアウト
   ============================================================================= */

.problems-grid,
.solutions-grid,
.features-grid,
.services-grid,
.pricing-grid,
.comparison-grid,
.testimonials-grid,
.stats-grid,
.trust-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.problems-grid,
.solutions-grid,
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.comparison-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.trust-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.problem-item,
.solution-item,
.feature-item,
.service-item,
.comparison-item,
.testimonial-item,
.stat-item,
.trust-item {
    padding: 30px;
    border-radius: var(--border-radius-lg);
    background: white;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-item:hover,
.solution-item:hover,
.feature-item:hover,
.service-item:hover,
.comparison-item:hover,
.testimonial-item:hover,
.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-item h3,
.solution-item h3,
.feature-item h3,
.service-item h3,
.comparison-item h3,
.testimonial-item h3,
.trust-item h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    color: var(--primary-dark);
}

.problem-item p,
.solution-item p,
.feature-item p,
.service-item p,
.comparison-item p,
.testimonial-item p,
.trust-item p {
    line-height: 1.7;
    color: var(--gray-600);
}

.pricing-card {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    background: white;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    color: white;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: scale(1.05);
}

.pricing-card.featured h3,
.pricing-card.featured .price {
    color: white;
}

.pricing-card h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: var(--primary-dark);
}

.price {
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.pricing-card ul {
    margin-bottom: 30px;
    list-style: none;
    text-align: left;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card.featured ul li {
    border-bottom-color: rgba(255,255,255,0.2);
}

/* ============================================================================= 
   統計セクション
   ============================================================================= */

.stat-value {
    margin-bottom: 10px;
    font-size: 3.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.2em;
    color: var(--gray-600);
}

/* ============================================================================= 
   サポートリスト
   ============================================================================= */

.support-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    justify-items: start;
    gap: 25px 35px;
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.support-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 100%;
    padding: 0;
    line-height: 1.8;
}

.support-list li:before {
    content: "";
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    margin-top: 0.2em;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--primary-color) 60%, transparent 61%);
}

/* ============================================================================= 
   最終CTA
   ============================================================================= */

.final-cta {
    position: relative;
    padding: 80px 0;
    background: none;
    background-image: url("../images/bg-cta-henro.jpg");
    background-color: var(--primary-dark);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
}

.final-cta::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    margin-bottom: 20px;
    font-size: 2.5em;
    color: #fff;
}

.final-cta p {
    margin-bottom: 40px;
    font-size: 1.3em;
    color: #fff;
    opacity: 0.9;
}

.final-cta .btn.btn--outline {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.final-cta .btn.btn--outline:hover {
  background: #fff;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============================================================================= 
   フッター
   ============================================================================= */

.footer {
    padding: 60px 0 20px;
    background: var(--gray-800);
    color: var(--gray-300);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    text-decoration: none;
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.footer__logo .brand-mark {
    width: 2.5em;
    height: 2.5em;
}

.footer__logo .brand-text {
    margin-left: 0;
    font-weight: bold;
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    color: var(--gray-400);
}

/* ============================================================================= 
   他社との比較テーブル
   ============================================================================= */
.compare-header,
.compare-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 1fr 1fr;
  align-items: stretch;
}

.compare-header {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #fff;
  box-shadow: var(--shadow);
}

.compare-header .compare-cell {
  padding: 18px 24px;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.25);
}

.compare-header .compare-cell:first-child {
  text-align: left;
}

.compare-header .compare-cell:last-child  {
  border-right: none;
}

.compare-row {
  background: #fff;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.compare-row + .compare-row {
  border-top: 1px solid var(--border-color);
}

.compare-row:last-child {
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-row .compare-cell {
  padding: 16px 24px;
  border-right: 1px solid var(--border-color);
  text-align: center;
  color: var(--gray-700);
}
.compare-row .compare-cell:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--primary-dark);
}

.compare-row .compare-cell:last-child {
  border-right: none;
}

@media (max-width: 576px) {
    .compare-header {
        display: none;
    }

    .compare-row {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .compare-row .compare-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }

    .compare-row .compare-cell:nth-child(1) {
        justify-content: center;
        border-bottom: 1px solid rgba(255,255,255,0.25);
        background: var(--primary-color);
        font-weight: 700;
        color: #fff;
    }

    .compare-row .compare-cell:nth-child(2)::before {
        content: "手ぶらdeお遍路";
        margin-right: 12px;
        font-weight: 600;
        color: var(--gray-600);
    }

    .compare-row .compare-cell:nth-child(3)::before {
        content: "一般宅配業者";
        margin-right: 12px;
        font-weight: 600;
        color: var(--gray-600);
    }

    .compare-row .compare-cell:last-child {
        border-bottom: none;
    }
}
