/*=====================================================

  BASE STYLES allsize

===================================================== */

/* ===== old　browser ===== */
/* IE8-9 box-sizing support */
*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* IE8 HTML5 element support */
header, nav, section, article, aside, footer, main {
    display: block;
}

/* IE9 opacity filter */
.ie9 .header-links .japanese-link {
    filter: alpha(opacity=80);
}

.ie9 .header-links .japanese-link:hover {
    filter: alpha(opacity=100);
}
body {
    color: #0A2143;
    font-family: 'Zen Kaku Gothic New', "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #fff;
}

/* responsive */
._sp,
._sp_df {
    display: none !important;
}

._tab {
    display: none !important;
}

/* form */
input[type="text"],
input[type="password"],
textarea,
select {
    outline: none;
}

*:focus {
    outline: none;
}

/* CLEARFIX */
*:first-child + html .clearFix {
    display: inline-block;
}

.clearFix:after {
    content: " ";
    display: block;
    visibility: hidden;
    clear: both;
    height: 0.1px;
    font-size: 0.1em;
    line-height: 0;
}

* html .clearFix {
    display: inline-block;
    height: 1%;
}

.clearFix {
    display: block;
}

/*=====================================================

  MOBILE FIRST STYLES (basic)

===================================================== */

/* ===== header ===== */
.header {
    background: linear-gradient(to bottom, #E52A00 0%, #E52A00 60%, #0A2143 60%, #0A2143 100%);
    color: white;
    padding: 10px 0;
}

.header-top {
    display: flex;
    display: -webkit-flex; /* Safari 6.1+ */
    display: -ms-flexbox; /* IE 10+ */
    justify-content: space-between;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    align-items: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    text-align: center;
    gap: 10px;
}

/* IE8-9 fallback for header-top */
.ie8 .header-top,
.ie9 .header-top {
    display: block;
    text-align: center;
}

.ie8 .header-top > *,
.ie9 .header-top > * {
    display: inline-block;
    vertical-align: middle;
    margin: 5px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.contact-info {
    color: white;
    text-decoration: none;
}

.contact-info:hover {
    text-decoration: underline;
}

.header-links {
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
    gap: 15px;
    align-items: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    justify-content: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
}

/* IE8-9 fallback for header-links */
.ie8 .header-links,
.ie9 .header-links {
    text-align: center;
}

.ie8 .header-links > *,
.ie9 .header-links > * {
    display: inline-block;
    margin: 0 7px;
}

.japanese-link {
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    transition: all 0.3s ease;
}

.japanese-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* ===== navi ===== */
.nav {
    background-color: #f8f8f8;
    padding: 0;
    border-bottom: 3px solid #E52A00;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav .container {
    padding: 0;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    width: max-content;
    min-width: 100%;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    position: static;
    box-shadow: none;
}

.nav li {
    border-right: 1px solid #ddd;
    border-bottom: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav li:last-child {
    border-right: 1px solid #ddd;
}

.nav a {
    padding: 15px 20px;
    text-align: center;
    display: block;
    min-width: 120px;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #E52A00;
    color: white;
}

.nav a:visited {
    color: #0A2143;
}

/* スクロールバーのスタイリング */
.nav::-webkit-scrollbar {
    height: 4px;
}

.nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.nav::-webkit-scrollbar-thumb {
    background: #E52A00;
    border-radius: 2px;
}

.nav::-webkit-scrollbar-thumb:hover {
    background: #c41f00;
}

/* ===== main content ===== */
.main-content {
    padding: 40px 0;
}

.container {
    padding: 0 15px;
}

/* ===== hero section ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

/* Legend page specific alignment */
.hero .hero-image .founder-portrait {
    margin-top: -60px !important;
    align-self: start;
    position: relative;
    top: -40px;
}

.hero-text {
    width: 100%;
}

.hero-text h1 {
    font-size: 2.4rem;
    color: #E52A00;
    margin-bottom: 20px;
    text-align: center;
}

.hero-text .subtitle {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 50px;
    color: #0A2143;
}

.hero-text p {
    margin: 30px 0;
    text-align: left;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #0A2143;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.0);
}

/* ===== 特徴セクション ===== */
.features {
    margin: 60px 0;
}

.features h2 {
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #0A2143;
    text-align: center;
}

.features p {
    margin: 30px 0;
    text-align: left;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #0A2143;
}

.feature-item {
    margin-bottom: 20px;
}

.feature-title {
    font-weight: bold;
    margin-bottom: 5px;
    border-left: solid 5px #0066cc;
    padding: 10px;
}

/* ===== detail ===== */
.detailed-usage {
    margin: 60px 0;
}

.detailed-usage h2 {
    font-size: 2.0rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #0A2143;
    text-align: center;
}

.detailed-usage-title p {
    font-weight: bold;
    margin-bottom: 5px;
    border-left: solid 5px #0066cc;
    padding: 10px;
}

.detailed-usage-title p:first-child::first-letter,
.detailed-usage-title p:nth-child(2)::first-letter,
.detailed-usage-title p:nth-child(3)::first-letter {
    color: #0066cc;
    font-weight: bold;
    margin-right: 5px;
}

.detailed-usage img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

/* ===== HOWTO コンテンツ ===== */
.howto-content {
    width: 100%;
    padding: 40px 0 60px 0;
    margin: 40px 0 60px 0;
    position: relative;
}

.howto-content:before {
    content: "";
    width: 100%;
    height:100%;
    background: #edd5d5;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.howto-inner {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto;
}

.howto-main-title {
    font-size: 2.0rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.howto-warning {
    text-align: center;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.howto-warning.red {
    color: #d93c3c;
}

.video-link-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(229, 42, 0, 0.05);
    border-radius: 8px;
    border-left: 4px solid #E52A00;
}

.video-link-container p {
    margin: 0;
    font-size: 1.4rem;
    color: #0A2143;
}

.video-link {
    color: #E52A00;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.video-link:hover {
    background-color: rgba(229, 42, 0, 0.1);
    text-decoration: underline;
}

.howto-reserve {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border: 1px solid #0A2143;
    margin-bottom: 40px;
}

.howto-reserve span {
    width: 100%;
    background: #0A2143;
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 10px 20px;
}

.howto-reserve p {
    width: 100%;
    padding: 10px 20px;
}

.howto-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.howto-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 30px 20px;
    border-bottom: 1px solid #dddcdb;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
}

.howto-list li:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #0A2143;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1;
}

.howto-list li:last-child {
    border-bottom: none;
}

.howto-list li:last-child:after {
    content: none;
}

.howto-list .step {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    background: #0A2143;
    padding: 9px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin: 0 auto 20px;
}

.howto-list .step .min {
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.3;
    font-weight: bold;
}

.howto-list .step .number {
    font-size: 3rem;
    color: #fff;
    line-height: 0.8;
    font-weight: bold;
}

.howto-list .textarea {
    width: 100%;
    margin: 0 0 20px 0;
    order: 2;
}

.howto-list .textarea .title {
    font-size: 1.8rem;
    border-bottom: 1px solid #0A2143;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.howto-list .textarea p {
    margin-top: 15px;
    font-size: 1.4rem;
    line-height: 1.6;
}

.howto-list .textarea .red {
    color: #d93c3c;
}

.howto-list .img {
    width: 60%;
    max-width: 300px;
    margin: 0 auto;
    order: 3;
    flex-shrink: 0;
}

.howto-list .img img {
    width: 100%;
    height: auto;
}

.howto-subdescri {
    width: calc(100% - 40px);
    margin: 0 auto 80px;
    max-width: 1100px;
}

.howto-subdescri-inner {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #d7d6d3;
}

.howto-subdescri-inner:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.howto-subdescri-inner .big {
    font-size: 1.6rem;
    margin: 10px 0 5px;
    display: block;
    font-weight: 700;
    line-height: 1.4;
}

.howto-subdescri-inner .red {
    color: #d93c3c;
}

.howto-subdescri .title {
    color: #fff;
    font-size: 1.6rem;
    background: #6c6b69;
    font-weight: 400;
    display: inline-block;
    padding: 5px 10px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.howto-subdescri .title.red {
    background: #d93c3c;
}

.howto-subdescri-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.howto-subdescri-list li {
    padding-left: 15px;
    position: relative;
    margin-bottom: 5px;
    font-size: 1.4rem;
    line-height: 1.6;
}

.howto-subdescri-list li:last-child {
    margin-bottom: 0;
}

.howto-subdescri-list li:before {
    content: "";
    background: #6c6b69;
    width: 8px;
    height: 8px;
    position: absolute;
    top: 8px;
    left: 0;
}

/* ===== usage セクション ===== */
.usage {
    background: #fff;
    padding: 40px;
    margin: 40px 0 0 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.usage h2 {
    font-size: 2.0rem;
    color: #0A2143;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.usage h3 {
    font-size: 1.6rem;
    color: #E52A00;
    margin: 30px 0 15px 0;
    font-weight: bold;
}

.usage p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.usage ul {
    margin: 15px 0;
    padding-left: 20px;
}

.usage li {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #333;
}

/* ===== SNSシェア ===== */
.snsshare {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
}

.snsshare li {
    margin: 0;
}

.snsshare a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s;
}

.snsshare a:hover {
    opacity: 0.8;
}

.snsshare .twitter a {
    background: #1da1f2;
    color: #fff;
}

.snsshare .facebook a {
    background: #3b5998;
    color: #fff;
}

.snsshare .line a {
    background: #00c300;
    color: #fff;
}

.snsshare img {
    width: 20px;
    height: 20px;
}

/* ===== 製品ギャラリー ===== */
.products {
    margin: 60px 0;
}

.products h2 {
    font-size: 2.0rem;
    color: #E52A00;
    font-style: italic;
    margin-bottom: 40px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.product-item {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-name {
    font-weight: bold;
    color: #0A2143;
    margin-bottom: 10px;
}

/* ===== History page specific styles ===== */
.hero .hero-text:only-child {
    max-width: none;
    width: 100%;
}

/* ===== Hero section list styles ===== */
.hero-text ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.hero-text li {
    margin-bottom: 8px;
    padding-left: 0;
}

/* ===== Reliability images grid ===== */
.reliability-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    justify-items: center;
}

.reliability-images img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== Founder portrait ===== */
.founder-portrait {
    text-align: center;
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

/* Override for hero-image container */
.hero-image .founder-portrait {
    transform: translateY(-600px);
}

.founder-portrait img {
    max-width: 100%;
    width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.founder-portrait .caption {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0A2143;
    margin: 0 10px;
    letter-spacing: 0.1em;
    text-align: left;
    
}

/* ===== 履歴テーブル ===== */
.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    font-size: 1.2rem;
}

.history-table td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    line-height: 1.5;
}
 .history-table tr:first-child td { 
    border-top: 1px solid #e0e0e0; 
}
.history-table td:first-child {
    width: 20%;
    background-color: #f8f9fa;
    font-weight: 700;
    text-align: right;
    color: #0A2143;
    border-right: 2px solid #e0e0e0;
    font-size: 1.2rem;
}

.history-table td:last-child {
    background-color: #fff;
    color: #2c3e50;
    font-size: 1.2rem;
}

.history-table tr:hover {
    background-color: rgba(229, 42, 0, 0.02);
}

.history-table tr:hover td:first-child {
    background-color: rgba(229, 42, 0, 0.05);
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table a {
    color: #E52A00;
    text-decoration: none;
    font-weight: 500;
}

.history-table a:hover {
    text-decoration: underline;
    color: #c41f00;
}

/* ===== ビデオセクション ===== */
.video-section {
    background: #f8f9fa;
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 10px;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 0 15px;
}

.video-container h2 {
    font-size: 2.0rem;
    color: #0A2143;
    margin-bottom: 20px;
    font-weight: bold;
}

.video-container p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-caption {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 0;
}

/* ===== フッター ===== */
.footer {
    background-color: #0A2143;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
}

.footer-brand h3 {
    color: #E52A00;
    font-size: 2.0rem;
    font-style: italic;
    margin-bottom: 10px;
}

.footer-contact h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-social {
    text-align: center;
    margin: 20px 0;
}

.footer-social h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links .x-link {
    background-color: #000;
    color: #fff;
}

.social-links .x-link:hover {
    background-color: #333;
}

.social-links .youtube-link {
    background-color: #ff0000;
    color: #fff;
}

.social-links .youtube-link:hover {
    background-color: #cc0000;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* ===== TOPに戻るボタン ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #E52A00;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 42, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 18px;
}

.scroll-to-top:hover {
    background-color: #c41f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 42, 0, 0.4);
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/*=====================================================

  TABLET STYLES (768px - 1023px)

===================================================== */
@media (min-width: 768px) {
    ._tab {
        display: block !important;
    }
    
    ._pct {
        display: none !important;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* タブレット用ナビゲーション - 3列レイアウト */
    .nav {
        overflow-x: visible;
    }
    
    .nav ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        width: 100%;
    }
    
    .nav li {
        border-right: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
    }
    
    .nav li:nth-child(3n) {
        border-right: none;
    }
    
    .nav li:nth-last-child(-n+2) {
        border-bottom: none;
    }
    
    .hero {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .hero .hero-text:only-child {
        grid-column: 1 / -1;
        max-width: none;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .hero-text .subtitle {
        font-size: 2.2rem;
    }
    
    .features h2 {
        font-size: 2.4rem;
    }
    
    .detailed-usage h2 {
        font-size: 2.4rem;
    }
    
    .howto-main-title {
        font-size: 2.4rem;
    }
    
    .howto-list .textarea .title {
        font-size: 2.2rem;
    }
    
    .howto-subdescri .title {
        font-size: 2.0rem;
    }
    
    .howto-subdescri-inner .big {
        font-size: 2.0rem;
    }
    
    .usage h2 {
        font-size: 2.4rem;
    }
    
    .usage h3 {
        font-size: 2.0rem;
    }
    
    .products h2 {
        font-size: 2.4rem;
    }
    
    .history-table {
        font-size: 1.2rem;
    }
    
    .history-table td {
        padding: 14px;
    }
    
    .history-table td:first-child {
        font-size: 1.2rem;
    }
    
    .history-table td:last-child {
        font-size: 1.2rem;
    }
    
    .hero-image img {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: left;
    }
    
    /* ビデオセクション - タブレット */
    .video-section {
        padding: 50px 0;
        margin: 50px 0;
    }
    
    .video-container h2 {
        font-size: 2.4rem;
    }
    
    .video-container p {
        font-size: 1.6rem;
    }
    
    /* usage セクション - タブレット */
    .usage {
        padding: 50px;
        margin: 50px 0 0 0;
    }
}

/*=====================================================

  DESKTOP STYLES (1024px以上)

===================================================== */
@media (min-width: 1024px) {
    .header-top {
        flex-direction: row;
        text-align: left;
        gap: 0;
    }
    
    .header-links {
        justify-content: flex-end;
        gap: 20px;
    }
    
    .hero {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .hero .hero-text:only-child {
        grid-column: 1 / -1;
        max-width: none;
    }
    
    /* デスクトップ用ナビゲーション - 横並び */
    .nav {
        overflow-x: visible;
    }
    
    .nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
    
    .nav li {
        border-right: 1px solid #ddd;
        border-bottom: none;
        white-space: normal;
    }
    
    .nav li:last-child {
        border-right: none;
    }
    
    .nav a {
        min-width: auto;
    }
    
    .hero-text h1 {
        font-size: 2.6rem;
    }
    
    .hero-text .subtitle {
        font-size: 2.3rem;
    }
    
    .features h2 {
        font-size: 2.3rem;
    }
    
   .howto-content {
    width: 100%;
    padding: 40px 0 60px 0;
    margin: 40px 0 60px 0;
    position: relative;
}
.howto-content:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #edd5d5;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.howto-inner {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto;
}

    
    .howto-main-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .howto-warning {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .howto-reserve {
        margin-bottom: 70px;
    }
    
    .howto-reserve span {
        width: 200px;
        padding: 20px;
    }
    
    .howto-reserve p {
        width: calc(100% - 200px);
        padding: 20px;
    }
    
    .howto-list li {
        padding: 60px;
        flex-direction: row;
        align-items: center;
    }
    
    .howto-list .step {
        width: 90px;
        height: 90px;
        padding: 19px 0;
        margin: 0;
    }
    
    .howto-list .step .min {
        font-size: 1.6rem;
    }
    
    .howto-list .step .number {
        font-size: 4rem;
    }
    
    .howto-list .textarea {
        width: calc(100% - 90px - 150px - 100px);
        margin: 0 20px;
        order: 0;
    }
    
    .howto-list .textarea .title {
        font-size: 2.6rem;
    }
    
    .howto-list .img {
        width: 150px;
        margin: 0;
        order: 0;
    }
    
    .howto-subdescri {
        margin: 0 auto 160px;
    }
    
    .howto-subdescri-inner {
        padding-bottom: 60px;
        margin-bottom: 60px;
    }
    
    .howto-subdescri-inner .big {
        font-size: 1.8rem;
        margin: 20px 0 5px;
        line-height: normal;
    }
    
    .howto-subdescri .title {
        font-size: 2.1rem;
        margin-bottom: 20px;
    }
    
    .howto-subdescri-list li:before {
        width: 10px;
        height: 10px;
        top: 11px;
    }
    
    .snsshare {
        flex-direction: row;
        gap: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .history-table {
        font-size: 1.2rem;
    }
    
    .history-table td {
        padding: 15px;
    }
    
    .history-table td:first-child {
        font-size: 1.2rem;
        width: 18%;
    }
    
    .history-table td:last-child {
        font-size: 1.2rem;
    }
    
    /* usage セクション - デスクトップ */
    .usage {
        padding: 60px;
        margin: 60px 0 0 0;
    }
    
    .usage h2 {
        font-size: 2.4rem;
        margin-bottom: 30px;
    }
    
    .usage h3 {
        font-size: 2.0rem;
        margin: 40px 0 20px 0;
    }
    
    .usage p {
        font-size: 1.5rem;
    }
    
    .usage li {
        font-size: 1.5rem;
    }
    
    /* ビデオセクション - デスクトップ */
    .video-section {
        padding: 60px 0;
        margin: 60px 0;
    }
    
    .video-container {
        max-width: 900px;
    }
    
    .video-container h2 {
        font-size: 2.6rem;
    }
    
    .video-container p {
        font-size: 1.8rem;
    }
}

/*=====================================================

  EXTRA SMALL SMARTPHONE STYLES (480px以下)

===================================================== */
@media (max-width: 480px) {
    ._pc,
    ._pc_df {
        display: none !important;
    }
    
    ._sp {
        display: block !important;
    }
    
    ._sp_df {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }
    
    .nav a {
        padding: 12px 15px;
        font-size: 0.9em;
        min-width: 100px;
    }
    
    /* 480px以下で画像を縦並び */
    .reliability-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* usage セクション - 極小スマートフォン */
    .usage {
        padding: 20px;
        margin: 20px 0 0 0;
    }
    
    .usage h2 {
        font-size: 2.0rem;
        margin-bottom: 15px;
    }
    
    .usage h3 {
        font-size: 1.6rem;
        margin: 20px 0 10px 0;
    }
    
    .usage p {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .usage li {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .hero-text h1 {
        font-size: 2.0rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.6rem;
    }
    
    .features h2 {
        font-size: 1.8rem;
    }
    
    .detailed-usage h2 {
        font-size: 1.8rem;
    }
    
    .howto-main-title {
        font-size: 1.8rem;
    }
    
    .howto-list .textarea .title {
        font-size: 1.6rem;
    }
    
    .products h2 {
        font-size: 1.8rem;
    }
    
    .history-table {
        font-size: 1.2rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .history-table td {
        padding: 10px 12px;
        line-height: 1.4;
    }
    
    .history-table td:first-child {
        width: 25%;
        font-size: 1.2rem;
        padding: 10px 10px;
    }
    
    .history-table td:last-child {
        font-size: 1.2rem;
    }
    
    /* ビデオセクション - 極小スマートフォン */
    .video-section {
        padding: 30px 0;
        margin: 30px 0;
    }
    
    .video-container h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .video-container p {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .video-wrapper {
        border-radius: 5px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .video-wrapper iframe {
        border-radius: 5px;
    }
    
    /* TOPに戻るボタン - 極小スマートフォン */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
/* legnd.html matoba section style */
.founder-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.founder-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.founder-photo {
    display: inline-block;
}

.founder-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.founder-name {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
    letter-spacing: 1px;
}

/* PC用：Grid レイアウトで最適化 */
@media screen and (min-width: 1024px) {
    .hero {
        display: grid;
        grid-template-columns: 1fr 450px !important;
        gap: 40px;
        align-items: center;
        margin-bottom: 40px;
    }
    
    .hero-text {
        grid-column: 1;
        order: 1;
    }

    .hero-image {
        grid-column: 2;
        order: 2;
        align-self: center;
    }

    .founder-section {
        grid-column: 2;
        order: 2;
        margin-top: 0;
        margin-bottom: 0;
        align-self: start;
        position: sticky;
        top: 20px;
    }
    
    .founder-title {
        margin-bottom: 15px;
        font-size: 20px;
    }
    
    .founder-photo {
        margin-top: 0;
    }
}

/* タブレット用は従来通り */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .founder-section {
        margin-top: -200px;
    }
    
    .founder-title {
        margin-bottom: 15px;
    }
    
    .founder-photo {
        margin-top: 0;
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 20px;
    }

    .founder-section {
        order: 3;
        position: static;
        margin-top: 20px;
    }

    .founder-title {
        font-size: 16px;

    }

    .founder-photo img {
        width: 150px;
        height: auto;
    }

    .founder-name {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 15px;
    }

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

    .founder-section {
        order: 3;
        position: static;
        margin-top: 15px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .founder-title {
        font-size: 14px;
    }

    .founder-photo img {
        width: 120px;
        height: auto;
    }
}