:root {
    --primary-color: #1A237E; /* 深い青 */
    --secondary-color: #5C6BC0; /* 明るめの青 */
    --surface-color: #F5F5F0; /* 薄いベージュ・セピア調 */
    --text-color: #333;
    --heading-font: 'Noto Sans JP', sans-serif;
    --body-font: 'Noto Sans JP', sans-serif;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px; /*基準フォントサイズを指定*/
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--text-color);
}

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

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn--primary:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn.line {
    background: #00B900;
    border-color: #00B900;
    color: #fff;
}

.btn.line:hover {
    background: #fff;
    color: #00B900;
}


.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand__logo {
    max-width: 280px; /* PCでのロゴサイズ調整 */
    transition: all 0.3s ease;
}

.nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list li:not(:last-child) {
    margin-right: 2rem;
}

.nav__list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav__list a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav__list a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* PCでは非表示 */
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }


.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(45deg, #1A237E, #E8EAF6); /* 青系のグラデーション */
    color: #fff;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(img/7.png);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3rem;
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero__title .accent {
    color: #FFD600; /* 黄色でアクセント */
}

.lead {
    font-size: 1.1rem;
}

.hero__image img {
    width: 100%;
}

.surface-muted {
    background: var(--surface-color);
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    /* flex-grow removed */
}

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

.price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.tax {
    font-size: 1rem;
    margin-left: 5px;
}

.site-footer {
    background: #1A237E; /* 深い青 */
    color: #fff;
    padding: 60px 0 20px;
}

#contact {
    padding: 0;
    margin-bottom: 4rem;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.problem-list {
    list-style: none;
    padding-left: 0;
    display: inline-block;
    text-align: left;
}

.problem-list li {
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23B71C1C"><path d="M10 17l5-5-5-5v10z"/></svg>') no-repeat left center;
    padding-left: 25px;
    margin-bottom: 0.5rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--surface-color);
    padding: 4rem;
    border-radius: 15px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .nav {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }
    .nav.nav--visible {
        transform: translateY(0);
    }
    .nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }
    .nav__list li {
        margin: 0;
    }
    .nav__list a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav__list a:hover {
        background: #f9f9f9;
    }
    .nav__list a::after {
        display: none;
    }

    .grid-3 { grid-template-columns: 1fr; }
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .profile-section { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
    .brand__logo { max-width: 240px; } /* スマホでのロゴサイズ調整 */
    .section { padding: 60px 0; }
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero__title { font-size: 2.5rem; }
    .card { padding: 1.5rem; }
}

/* --- Problem list: モバイルでの崩れ対策 --- */
.problem-list{
  list-style: none;
  margin: 0 auto;
  padding: 0 1rem;       /* 端の貼り付き防止 */
  max-width: 42rem;      /* 行長制御（任意） */
}

/* 背景画像をやめ、擬似要素の三角で安定表示 */
.problem-list li{
  position: relative;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  line-height: 1.7;
  padding: .25rem 0 .25rem 0;  /* 左パディングは擬似要素に任せる */
  margin: .25rem 0;
  background: none;           /* 既存の背景アイコンを無効化 */
}

.problem-list li::before{
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 9px;              /* ▶ の矢印 */
  border-color: transparent transparent transparent var(--primary-color);
  margin-top: .55rem;                        /* 行頭高さ調整 */
  flex: 0 0 9px;
}

.problem-lead{
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
}

@media (max-width: 767px){
  .problem-list{ padding: 0 1rem; }
  .problem-list li{ font-size: 0.95rem; }
}

/* ===== Problemセクションの崩れ最終対策 ===== */
#problem .container { 
  text-align: initial !important;  /* 親の中央寄せを無効化 */
}

#problem .section-header { 
  text-align: center;              /* 見出しだけ中央 */
}

#problem .problem-list{
  list-style: none;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 42rem;
  display: block;                  /* 念のためリストをブロックに固定 */
  text-align: left;                /* リスト本文は左寄せに固定 */
  row-gap: 0;                      /* 余白管理はli側で */
}

#problem .problem-list li{
  position: relative;
  display: block;                  /* flexをやめて安定させる */
  padding-left: 1.25rem;           /* 矢印ぶんの左余白 */
  margin: .4rem 0;                 /* 行間 */
  line-height: 1.7;                /* 行高を固定 */
  word-break: break-word;          /* 日本語の折返し安定化 */
  background: none !important;     /* もし背景アイコンがあれば無効化 */
}

/* 行頭の▶マーカーを絶対配置で固定（縦ズレ防止） */
#problem .problem-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;                      /* 行頭位置にぴったり合わせる要 */
  width: 0; 
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 9px;     /* ▶ の三角 */
  border-color: transparent transparent transparent var(--primary-color);
  margin: 0;
}

#problem .problem-lead{
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
}

@media (max-width: 767px){
  #problem .problem-list{ padding: 0 1rem; }
  #problem .problem-list li{ font-size: .95rem; }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
