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

html {
    scroll-behavior: smooth;
}

/* 全体のフォント設定 */
body {
font-family: 'Noto Sans JP', sans-serif;
line-height: 1.6;
color: #333;
border: 10px solid #FF9B00;
background-color: #FF9B00;
}

/* ヘッダー */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: #FFA94D;
}
header .logo {
font-family: 'Fredoka One', sans-serif;
color: white;
font-size: 1.8rem;
display: flex;          /* アイコンとテキストを横並びに */
align-items: center;    /* 縦方向の中央揃え */
gap: 0.5rem;            /* アイコンと文字の間の隙間 */
}

.logo-icon {
width: 40px;  /* お好みのサイズ */
height: auto;
}
nav ul {
list-style: none;
display: flex;
gap: 1.5rem;
}
nav a {
text-decoration: none;
color: #fff;
font-weight: bold;
transition: color 0.3s ease;
}
nav a:hover {
color: #FFD93D;
}

/* ヒーローセクション */
.hero {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 90vh;
text-align: center;
padding: 2rem;
background-color: #69C9E2;
overflow: hidden;
}

/* 飾り用の絶対配置画像 */
.hero img.hero-image {
position: absolute;
width: auto;
height: auto;
z-index: 1;
}
.hero-image1 {
max-width: 180px;
top: 10%;
left: 5%;
animation: tilt 6s ease-in-out infinite;
}
.hero-image2 {
max-width: 200px;
bottom: 5%;
right: 10%;
animation: tilt 8s ease-in-out infinite;
}

/* メイン画像 */
.main-center-image {
max-width: 400px;
width: 80%;
height: auto;
margin: 1rem auto;
display: block;
transform-origin: center center;
animation: tilt 6s ease-in-out infinite;
}

/* 上下テキスト */
.hero h1 {
font-family: 'Fredoka One', sans-serif;
font-size: 3rem;
color: #FF6C00;
margin-bottom: 1rem;
z-index: 10;
}
.hero p {
font-size: 1.4rem;
margin: 1rem 0 2rem;
color: #fff;
z-index: 10;
}
.hero button {
background-color: #FFF17C;
border: none;
padding: 1rem 2rem;
font-size: 1.2rem;
font-weight: bold;
cursor: pointer;
border-radius: 50px;
transition: transform 0.2s ease, background-color 0.3s ease;
z-index: 10;
}
.hero button:hover {
background-color: #ffe400;
transform: scale(1.05);
}

/* -------------------------
    それぞれ異なるコーナーからスタートする
    寿司アニメ4種
------------------------- */

/* 基本設定 */
.sushi-run {
position: absolute;
width: 80px;
height: auto;
z-index: 2;
}

/*
サーモン (左上 => 右上 => 右下 => 左下 => 左上)
*/
.sushi-run-tl {
animation: cornerRunTL 40s linear infinite;
}
@keyframes cornerRunTL {
0%   { top: 0; left: 0; }
25%  { top: 0; left: calc(100% - 80px); }
50%  { top: calc(100% - 80px); left: calc(100% - 80px); }
75%  { top: calc(100% - 80px); left: 0; }
100% { top: 0; left: 0; }
}

/*
たまご (右上 => 右下 => 左下 => 左上 => 右上)
*/
.sushi-run-tr {
animation: cornerRunTR 40s linear infinite;
}
@keyframes cornerRunTR {
0%   { top: 0; left: calc(100% - 80px); }
25%  { top: calc(100% - 80px); left: calc(100% - 80px); }
50%  { top: calc(100% - 80px); left: 0; }
75%  { top: 0; left: 0; }
100% { top: 0; left: calc(100% - 80px); }
}

/*
えび (左下 => 左上 => 右上 => 右下 => 左下)
*/
.sushi-run-bl {
animation: cornerRunBL 40s linear infinite;
}
@keyframes cornerRunBL {
0%   { top: calc(100% - 80px); left: 0; }
25%  { top: 0; left: 0; }
50%  { top: 0; left: calc(100% - 80px); }
75%  { top: calc(100% - 80px); left: calc(100% - 80px); }
100% { top: calc(100% - 80px); left: 0; }
}

/*
★ いくら (右下 => 左下 => 左上 => 右上 => 右下)
*/
.sushi-run-br {
animation: cornerRunBR 40s linear infinite;
}
@keyframes cornerRunBR {
0%   { top: calc(100% - 80px); left: calc(100% - 80px); }
25%  { top: calc(100% - 80px); left: 0; }
50%  { top: 0; left: 0; }
75%  { top: 0; left: calc(100% - 80px); }
100% { top: calc(100% - 80px); left: calc(100% - 80px); }
}

/* 画像の左右ゆらゆらアニメ */
@keyframes tilt {
0%   { transform: rotate(0deg); }
20%  { transform: rotate(-5deg); }
40%  { transform: rotate(5deg); }
60%  { transform: rotate(-5deg); }
80%  { transform: rotate(5deg); }
100% { transform: rotate(0deg); }
}

/* サービスセクション以下は元の通り */
.services {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5rem;
padding: 2rem;
background-color: #fff8e1;
}
.service-card {
flex: 1 1 calc(33.333% - 2rem);
min-width: 250px;
background-color: #fff;
border-radius: 10px;
padding: 1.5rem;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
text-align: center;
transition: transform 0.3s ease;
background-color: #FFE59B;
}
.service-card {
transition: transform 0.3s ease;
}

.service-card:hover {
transform: translateY(-5px); /* カード全体を上に浮かせる */
}

.service-card img {
/* 初期状態では静止：動きが欲しい場合の準備として transform-origin を指定 */
transform-origin: center center;
transition: transform 0.3s ease; /* ホバーでスムーズに変化 */
}

.service-card:hover img {
/* ホバー中、0.5秒かけて wiggle アニメを再生 */
animation: wiggle 0.5s ease forwards;
transform: translateY(-5px);
}

@keyframes wiggle {
0%   { transform: rotate(0deg); }
20%  { transform: rotate(-5deg); }
40%  { transform: rotate(5deg); }
60%  { transform: rotate(-5deg); }
80%  { transform: rotate(5deg); }
100% { transform: rotate(0deg); }
}


.service-card img {
max-width: 100px;
margin-bottom: 1rem;
}
.service-card h3 {
font-family: 'Fredoka One', sans-serif;
margin-bottom: 0.5rem;
color: #FF6C00;
}
.service-card p {
color: #555;
}

.cta-section {
text-align: center;
padding: 3rem 2rem;
background-color: #FFE59B;
color: #333;
}
.cta-section h2 {
font-family: 'Fredoka One', sans-serif;
font-size: 2rem;
margin-bottom: 1rem;
color: #FF6C00;
}
.cta-section p {
font-size: 1.2rem;
margin-bottom: 2rem;
}
.cta-section a.button {
display: inline-block;
background-color: #FF9B00;
color: #fff;
padding: 1rem 2rem;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s ease;
}
.cta-section a.button:hover {
background-color: #ff6b6b;
}

footer {
background-color: #FFA94D;
text-align: center;
padding: 1rem;
color: #fff;
}
footer .social-links {
display: flex;
justify-content: center;
gap: 1rem;
margin-bottom: 0.5rem;
}
footer .social-links a {
color: #fff;
font-size: 1.2rem;
text-decoration: none;
transition: opacity 0.3s ease;
}
footer .social-links a:hover {
opacity: 0.7;
}